# FMX: beginner needs direction-loading movie clips w/mp3s end to end

**URL:** <https://forum.kirupa.com/t/fmx-beginner-needs-direction-loading-movie-clips-w-mp3s-end-to-end/14027>\
**Category:** flash\
**Created:** [February 21, 2003, 3:42am UTC](https://forum.kirupa.com/t/fmx-beginner-needs-direction-loading-movie-clips-w-mp3s-end-to-end/14027 "2003-02-21T03:42:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hutch](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@Hutch](https://forum.kirupa.com/u/Hutch)\
**Post date:** [February 21, 2003, 3:42am UTC](https://forum.kirupa.com/t/fmx-beginner-needs-direction-loading-movie-clips-w-mp3s-end-to-end/14027/1 "2003-02-21T03:42:59Z")

</div>

Does anyone have a tutorial (or steps to reproduce) showing a beginner the best method for loading several swfs end to end, so they play as one movie using ActionScript?

What I need is: to have the first movie play and immediately when it ends, for it to stop and then have the second movie play, but each movie has a different mp3 sound and I can’t seem to get both movie’s and their respective mp3s to play as one long movie.

1. I’ve created 2 fairly robust Flas; horizon1.fla and horizon2.fla
2. I’ve made each fla into a seperate movie clip;  
horizon1\_mc and horizon2\_mc.  
(the last frame in horizon1\_mc uses the same pic as the first frame in horizon2\_mc -so that they will appear to play seamlessly as one long movie)
3. horizon1\_mc needs to play using sun.mp3.
4. horizon2\_mc then needs to play using sunburst.mp3

fyi: I’ve got the “FlashaMX Designer’s ActionScript Reference” book but all I’ve found is how to load content (chap11) using static movie clips using “loadmovie” and I’m not sure how this applies to actual animated clips. Any help would be greatly appreciated! 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:** [February 21, 2003, 6:53am UTC](https://forum.kirupa.com/t/fmx-beginner-needs-direction-loading-movie-clips-w-mp3s-end-to-end/14027/2 "2003-02-21T06:53:13Z")

</div>

I know its a very basic question…but can’t someone attempt an answer to my question?

Just FYI: I’m not looking to see all the mc’s running over one another at once…I’m looking to load the first while hearing it’s sound…then load the second while hearing it’s sound…using Action Script, as opposed to manually placing each mp3 sound on each movie’s timeline.

This seems so basic that I can’t believe I don’t see the same question anywhere else on this site (at least as far as I’ve looked).

If this isn’t the correct forum, please advise which one would be.

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:** [February 21, 2003, 7:05am UTC](https://forum.kirupa.com/t/fmx-beginner-needs-direction-loading-movie-clips-w-mp3s-end-to-end/14027/3 "2003-02-21T07:05:58Z")

</div>

It wouldn’t really be worth it… You might as well just make a preloader at the very beginning to allow the person to download the entire thing…

Or… Have a preloader to load up the first movei and first music file… When those two are done… They both play simultaneously…

Then… while these two are playing… have in the background the other two being loaded up… When those two are fully loaded… have them wait until the first movie reaches the end… And it will have a gotoAndPlay to the 2nd movie.

---

<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:** [February 21, 2003, 7:52am UTC](https://forum.kirupa.com/t/fmx-beginner-needs-direction-loading-movie-clips-w-mp3s-end-to-end/14027/4 "2003-02-21T07:52:15Z")

</div>

Thanks for replying Marz! That was actually what I’d already done; I added the AS below to the main movie on frame 2, following my preloader on Frame 1-

\_root.createEmptyMovieClip(“mySound\_mc”, 10);  
mySound = new Sound(mySound\_mc);  
mySound.loadSound(“eventhorizon1\_mc.mp3”, true);  
mySound.start();

Then via “edit in place” on the original horizon1 movie, I just added the entire timeline of horizon2 onto the end of of horizon1 and added another AS to start at the beginning frame of horizon2, with a stop action at the end of that timeline and ended up with one large file at 943kb. (I suppose I’ll just have to warn folks on my site that they need broadband to see the movie.)

\_root.createEmptyMovieClip(“mySound\_mc”, 10);  
mySound = new Sound(mySound\_mc);  
mySound.loadSound(“eventhorizon2\_mc.mp3”, true);  
mySound.start();

The final swf plays great; I guess I just thought I was missing something very basic by not creating a horizon1.swf and a horizon2.swf and using AS to attach sounds to each with a preloader in front.

Btw; I just have to aks- what does “you’ve been slapped by a Trout” mean; lol?

Thanks again for your wonderful reply.
