all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

Going from one Movie instance to another


Going from one Movie instance to another Fatmat
11/26/2004 9:42:48 PM
flash actionscript:
I have a fla file that has 2 movies on the main timeline. the first movie on
frame 1 the seconf on frame 2. So when the first movies done playing I want it
to then jump to frame 2. I've placed stop action in the scene on ?1 and 2 and
in movie 1 at the end this code but it doesn't seme to work. stop();
gotoAndPlay(_root.frame2) any suggestion? I also tried _parent no luck.
Re: Going from one Movie instance to another J_o_h_n_n_y
11/27/2004 5:10:24 AM
gotoAndPlay() takes either a number if you want to go to a frame number, or a
string if you want to go to a frame label. I think what you are looking for is
"_root.movieclipname.gotoAndPlay(2);", or something to that effect.
Re: Going from one Movie instance to another Fatmat
11/29/2004 7:41:43 PM
thanks, close but this actually worked:

stop();
AddThis Social Bookmark Button