00:00
00:00
Newgrounds Background Image Theme

TwistSSD 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!

AS3 Play button?

425 Views | 2 Replies
New Topic Respond to this Topic

AS3 Play button? 2013-03-13 19:26:10


I started with stop(); on frame 1. Now I am trying to get it to go to frame 2 when they click the button called aPlay. how do I do this?

Also, I need to figure out how to do a replay button but I am sure if I can figure out this first one, I will be able to do it.

Response to AS3 Play button? 2013-03-13 19:30:27


At 3/13/13 07:26 PM, Ghost7231 wrote: I started with stop(); on frame 1. Now I am trying to get it to go to frame 2 when they click the button called aPlay. how do I do this?

Also, I need to figure out how to do a replay button but I am sure if I can figure out this first one, I will be able to do it.
//tell "aPlay" that when we CLICK it, call the function startMovie
aPlay.addEventListener(MouseEvent.CLICK, startMovie);

//gets called when aPlay is triggered
function startMovie(e:MouseEvent):void{
     gotoAndPlay(2);
}

Response to AS3 Play button? 2013-03-13 21:37:23


thanks! :D