Hi! My name is Ian, and I am a beginner flash animator.
I have a preloader, but I want an ending at the end of my animation, with a replay button.
I was wondering if anyone knows how to make one? Please help.
Hi! My name is Ian, and I am a beginner flash animator.
I have a preloader, but I want an ending at the end of my animation, with a replay button.
I was wondering if anyone knows how to make one? Please help.
This stuff normally goes in the flash forum, but I'll help you out with this because it's simple.
On the last frame of your animation (the one you're putting the replay button on) put this code:
stop();
replayButton.addEventListener(MouseEvent.CLICK, replayButtonClick);
function replayButtonClick(ev:MouseEvent):void
{
gotoAndPlay(1);
}
Assuming your animation starts on frame one. Make sure you have a button on that frame with the instance name of "replayButton".
Thanks! I figured it out however, but thank you :)