Link to home
Start Free TrialLog in
Avatar of headsy
headsy

asked on

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 ??
Avatar of headsy
headsy

ASKER

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 :)
ASKER CERTIFIED SOLUTION
Avatar of FLAASHER
FLAASHER
Flag of Saudi Arabia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'd advice you to try it yourself - better learning by doing