# Series of pictures

**URL:** <https://forum.kirupa.com/t/series-of-pictures/15796>\
**Category:** flash\
**Created:** [March 18, 2003, 5:04am UTC](https://forum.kirupa.com/t/series-of-pictures/15796 "2003-03-18T05:04:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbmviji](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kbmviji](https://forum.kirupa.com/u/kbmviji)\
**Post date:** [March 18, 2003, 5:04am UTC](https://forum.kirupa.com/t/series-of-pictures/15796/1 "2003-03-18T05:04:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 18, 2003, 10:57pm UTC](https://forum.kirupa.com/t/series-of-pictures/15796/2 "2003-03-18T22:57:31Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 18, 2003, 11:01pm UTC](https://forum.kirupa.com/t/series-of-pictures/15796/3 "2003-03-18T23:01:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 9:28am UTC](https://forum.kirupa.com/t/series-of-pictures/15796/4 "2003-03-19T09:28:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 19, 2003, 11:33am UTC](https://forum.kirupa.com/t/series-of-pictures/15796/5 "2003-03-19T11:33:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 20, 2003, 3:45am UTC](https://forum.kirupa.com/t/series-of-pictures/15796/6 "2003-03-20T03:45:36Z")

</div>

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