Be a Supporter!
Ghost7231
Ghost7231
  • Member since: Jul. 21, 2010
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
AS3 Play button? 2013-03-13 19:26:10 Reply

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.

Mattster
Mattster
  • Member since: Nov. 21, 2007
  • Offline.
Forum Stats
Member
Level 20
Game Developer
Response to AS3 Play button? 2013-03-13 19:30:27 Reply

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);
}
Ghost7231
Ghost7231
  • Member since: Jul. 21, 2010
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to AS3 Play button? 2013-03-13 21:37:23 Reply

thanks! :D