# I have a movie clip question

**URL:** <https://forum.kirupa.com/t/i-have-a-movie-clip-question/33748>\
**Category:** flash\
**Created:** [October 23, 2003, 1:57am UTC](https://forum.kirupa.com/t/i-have-a-movie-clip-question/33748 "2003-10-23T01:57:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AWog27](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@AWog27](https://forum.kirupa.com/u/AWog27)\
**Post date:** [October 23, 2003, 1:57am UTC](https://forum.kirupa.com/t/i-have-a-movie-clip-question/33748/1 "2003-10-23T01:57:23Z")

</div>

Alright, so I’m trying to put a bunch of movie clip animations that ive made myself in flash together to form my animation.

Let’s say for the purpose of this they are Anim1, Anim2, Anim3, and so on.

I want to make it so that right After Anim1 plays, Anim2 will start up, and after Anim2 plays, Anim3 will start up and so on. I can’t figure out how to do this through the helm manual and fooling with action script and such. Any help of this would be much appreciated :beam: . Also, I would like to be able to play a MP3 song in the background over all of the animations, for the background music of the movie. But that is the lesser issue 🔗

Thanks in advance!

---

<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:** [October 23, 2003, 2:15am UTC](https://forum.kirupa.com/t/i-have-a-movie-clip-question/33748/2 "2003-10-23T02:15:07Z")

</div>

Since you have 3 movieclips setup already then create 3 keyframes on the timeline and place a stop(); action on all 3 frames.

Each of the frame contains one of your movieclips. Now go inside each of those movieclip and on the last frame place a script like this:

```auto
_root.nextFrame();

```

This will tell the maintimeline to play the next frame which contains the next movieclip animation.

---

<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:** [October 23, 2003, 2:20am UTC](https://forum.kirupa.com/t/i-have-a-movie-clip-question/33748/3 "2003-10-23T02:20:30Z")

</div>

Hey AWog,

I just had this problem myself a few days ago. I solved it by putting action script on keyframes inside of each MC.

ex: inside of Anim1, on the last KEYframe of the animation put this script --\> \_root.Anim2.gotoAndPlay(2) :: (b/c frame 1 is a stop)

on the last KEYframe of Anim2 put the same script but change it to \_root.Anim3.gotoAndPlay(2);

so on and so forth. Got It?

As for the sound … on the first key frame of you main movie timeline put this script:

mySound = new Sound();  
mySound.loadSound(“yoursonggoeshere.mp3”); //put path to file  
\_root.mySound.start(0,999); // 999 is the number of times it loops. Change as needed.

Hope this helps.

P.S. This is one way of doing the MC thing.  
electrongeek’s method would work too.

---

<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:** [October 23, 2003, 2:43am UTC](https://forum.kirupa.com/t/i-have-a-movie-clip-question/33748/4 "2003-10-23T02:43:03Z")

</div>

Thank you guys so much! It works now. I knew it had something to do with accessing the next frame, just didn’t know how to.

Thanks again for your time!
