PDA

View Full Version : playing movieclips inside a file


texbala
12-18-2002, 09:49 PM
i have a quick question!!

Say I have 3 movie clips - mc1, mc2, mc3 (in my library) ( and not swf files) in a single file. How do I make them play indiviually.

on teh first frame: I pull down the movice clip (mc) mc1 in the main timeline.
At the last frame of mc 1, I write gotoAndPlay(5) and at the 5th frame of the main timeline, I put mc2.
At the last frame of mc2, I write gotoAndPLay(10) and the the 10th frame of the main timeline, I put mc3.

Hope it should it work fine.

Is there anyother way to do this?

thnx!!

texbala
12-18-2002, 10:04 PM
am attaching a sample .fla file for better clarity of the question...

Mortimer Jazz
12-19-2002, 02:34 PM
_parent.gotoAndPlay(40);
not
gotoAndPlay(40);

As you are inside a movieclip, this code is currently telling that particular movieclip to goto and play frame 40, but you actually want to affect the main timeline, not the timeline of that particular clip. You could also say _root.gotoAndPlay(40); instead, as it's the root timeline that you want to affect.

ps you'll also need stop() actions on the main timeline (at frames 1,20,40 and 50) :)

nb _parent just means "go back up a level from where you currently are"