Replay Movie - Flash5

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?

on your button just use a gotoAndPlay
[AS]on (release){
gotoAndPlay(frame#thatStartsAnimation);
}[/AS]

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.

Thanks for the fast reply! :slight_smile: