00:00
00:00
Newgrounds Background Image Theme

ParallaxDraw just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Actionscript 3 End Screen (help Me)

355 Views | 2 Replies
New Topic Respond to this Topic

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.

Response to Actionscript 3 End Screen (help Me) 2014-09-07 20:55:33


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".


BBS Signature

Response to Actionscript 3 End Screen (help Me) 2014-09-07 22:01:46


Thanks! I figured it out however, but thank you :)