Playing flash movie clips

Hello,

I got a third of the way through building a flash animation and realized it was the wrong size. So I made a movie clip of it and scaled it to the new size. I went ahead a second sequence this way. Now I would like to be able to play each movie clip one after the other. How??

Thanks!
Eric

make sure you add a stop(); action at the first frame of the movie clips that will be played second, third, etc… to ensure that they won’t all be playing at the same time.

then, give each movie clip a unique instance name using the properties panel. (i.e clip2, clip3) then, on the last frame of each movie clip that you want to have another movie clip play after, add this code: (assuming each clip is on the root timeline and that the second movie clip is named clip2_mc)

_root.clip2_mc.gotoAndPlay(2);

Hi Liam

Your tip is much appreciated! I think I must have something messed up.

I posted the fla file at www.aliencola.com/attscreen.fla if you want to see the mess I have going! :hangover:

E

http://www.aliencola.com/fla

k i just downloaded it, i’ll fix it shortly :slight_smile:

here you go.

you needed to:

  1. add a stop(); action to the first frame of your root timeline to stop the movie from strobing (looping)

  2. place both movie clips on the same frame since _root.scene2clip wouldn’t exist if you had it on another frame other than 1.

  3. you needed to add a stop action to the last frame of scene1clip since otherwise it would simply loop resulting in a constant viewing/strobing of the first clip.

  4. at the end of scene1clip, you need to make it invisible with

this._visible = 0;

since otherwise it “masks” the second clip and even though it is playing, you wouldn’t be able to see it.

download the fixed file from:

http://www.vmkdsn.com/kirupa/attscreen_fixed.zip

i also fully commented the code in case you don’t understand any of it.

Thank you!

Since I will have to repeat the process in the future, I practiced it in my original document.

Your commentary in the palette is very very helpful!

Best,
E

PS: I noticed in your file the Flash interface icons were different, smaller and nicer in my opinion.

:thumb:

you’re welcome eric, glad i could help!

to get the interface icons smaller like that, click the button at the top-right of your timeline that looks like two small h’s side by side, then choose short from the list. :slight_smile: