-
Button Game AS3.0
I'm new to Flash in general and would like to make a basic game with a button. I'm using CS5. I have set the UP, OVER, DOWN, HIT keyframes but I would like to make it so when someone clicks it, it goes to a new frame that has text. Please send me feedback, Thanks!
-
To make you button clickable, you need to add a click event listener to your button. Then you can use the gotoAndStop() method to go to a different frame.
PHP Code:
yourButtonInstanceName.addEventListener(MouseEvent.CLICK, clicked);
function clicked(e:MouseEvent):void
{
gotoAndStop(yourFrameNumberHere);
}