PDA

View Full Version : Replay Movie - Flash5



joanaa
April 22nd, 2003, 04:06 AM
Hi every one,

I made a flash greeting card and I want to add a button to replay the movie when it ends, which code should I use?

lostinbeta
April 22nd, 2003, 04:11 AM
on your button just use a gotoAndPlay
on (release){
gotoAndPlay(frame#thatStartsAnimation);
}

yyzz
April 22nd, 2003, 04:11 AM
Assuming that your starting frame is 1, use:-

gotoAndPlay (1);

Or alternatively, you can name the frame of your first part of the movie as BEGIN. Then use:-

gotoAndPlay ("BEGIN");

Just add the code to your button.

joanaa
April 22nd, 2003, 04:25 AM
Thanks for the fast reply! :)