Series of pictures

Hi!

I am doing a small project in Flash. I have created the buttons. I want the pictures and text to play when I click the button. I have 5 pictures with text which should come on screen when I click the respective buttons. i.e. when I rollover the button, the picture and text should come and when I rollout that should disappear.

How to do that? Pls somebody help!

Thanks

first, create a movie clip with the instance name content_mc on your stage.

next, add each set of pictures and text on separate frames and layers of the movie clip, starting on frame 2 so as to leave the first frame blank.

now add a new layer to content_mc’s timeline called actions. add a stop(); action to each frame of the movie clip, including frame 1.

return to the main timeline, and add the following code to each button, adjusting the gotoAndPlay frame of each on(rollOver) function to suit.

[AS]on(rollOver){
_root.content_mc.gotoAndPlay(2);
}

on (rollOut, dragOut){
_root.content_mc.gotoAndPlay(1);
}[/AS]

this code will cause content_mc’s timeline to go to a certain frame when each button is rolled over, and then return to the blank frame 1 when it is rolled off of.

see attached for an example! hope that helped…

sorry, forgot to attach the file to the previous post! here it is:

Thank you so much for the solution. Try it out and let u know.

Hi Liam!

The *.fla file is not opening. It says Unexpected File Format. Is that Flash MX? I am using only Flash 5.

Can u pls send a Flash 5 file?

Thanks

uh oh… i’m sorry, all i have is flash mx… i’ll see what i can do though!