Go to frame code for Flash Action Script 3

To go to a frame in AS3, use the following code:

examplebutton_btn.addEventListener(MouseEvent.MOUSE_DOWN, examplebutton);
function examplebutton(event:MouseEvent):void {
gotoAndPlay(FRAME NUMBER HERE);
}

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • MySpace
  • Reddit
  • TwitThis
  • Yahoo! Buzz
  • LinkedIn

Leave a comment