Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load mc at a specific frame to sync

Status
Not open for further replies.

sikobabl

Technical User
Jun 18, 2003
8
US
What is the script to delay the start of a movie clip so that it'll sync with another clip at a particular frame?

thanks
siko
 
A stop action and start it up when you so desire, from the other clip.

Regards,

cubalibre2.gif
 
Where do the start action and stop action go? And how does the script read?
 
First of all, assuming both movie clips are on stage, that they both have a stop(); action on their first frames, then they can easily be both started from the main timeline, on a button script such as this...

on(release){
_root.mc1_instance_name.gotoAndPlay(2);
_root.mc2_instance_name.gotoAndPlay(2);
}

They could also be started on a frame action at some point in yoour movie timeline...

_root.mc1_instance_name.gotoAndPlay(2);
_root.mc2_instance_name.gotoAndPlay(2);

Or started from one of the clips...

on(release){
this.gotoAndPlay(2);
_root.mc2_instance_name.gotoAndPlay(2);
}





Regards,

cubalibre2.gif
 
On further review of the provided script, it tell the MC which frame to start on in itself. What I'm trying to do is have MC2 start at a specific frame of MC1. Is there script to do this?

Thanks
Siko
 
On that specific frame in MC1 where you want MC2 to start up, just insert...

_root.MC2.gotoAndPlay(2);

Or...

_root.MC2.play();

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top