PDA

View Full Version : multiple gotoAndPlay actions


talytech
04-29-2004, 12:52 PM
Hello everybody,

I have 10 frames in a movie and a button called "test". When I click on that button I want to go to frame 1 and play and frame 1 plays and stops at frame 3. Then from that same button after the first command has finished, I want to go to frame 5 and play. Here is what I had in actionscript.

on(release){gotoAndPlay(frame1);
}
gotoAndPlay(frame5);
}

obviously that code didn't work. Can someone help with that? Thanks

Cota
04-29-2004, 02:36 PM
Using that method both would execute at the same time. I'd suggest putting the second gotoAndPlay as a frame action on frame 3.
The button:
on(release){
gotoAndPlay(frame1);
}

On frame 3 put this:
gotoAndPlay(frame5);

That should solve your problem. Assuming "frame1" and "frame5" are frame label.