• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

importing images dynamically

I have attached the swf with the probelm. I am importing images into a swf dynamically. All the images are for a  button movie with simple actionscript rollover functionality.

I am sure its a very simple problem but i cannot get it to work properly. It is importing the first image but not the other two. What am i doing wrong ??
  • 2
1 Solution
headsyAuthor Commented:
the sample can be downloaded at http://www.letterkennyaccommodation.ie/images.zip
You are trying to load a image into a movieclip that only exists on frame two - when the movieclip is on frame one.

The effect of this, is that Flash never finds exit2, thus it cannot load the image into the movieclip.

A quick and dirty way to solve this is the following:

1. Currently you have three keyframes at the same layer. Put each of these keyframes on different layers (frame 1 on the lowest layer, frame 3 on the highest), but at frame 1. For button 1, the work is done.
2. For button two, you need to do a little bit more. Make a new keyframe at frame 2, and then go back to frame 1, and set the empty movieclips alpha to 0.
3. Then do the same for button 3 - only here the keyframe will be at frame 3.

What this does, is to ensure that the movieclip exit1-3 is ON stage when you try to load the images - so the images get loaded, their just invisible. Then, when the movieclip jumps to the different frames - the different images are shown.

Good luck :)
a fixed version in this link


best regards

I'd advice you to try it yourself - better learning by doing

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now