Search Our Web Design Blog...

Tuesday, December 7, 2010

code to add function to buttons in flash

EVERYTHING IN PINK NEEDS TO BE CHANGED TO MATCH YOUR DOCUMENT:


yourButtonsInstanceName
.addEventListener(MouseEvent.CLICK, functionname);

function
functionname(event:MouseEvent):void
{
gotoAndPlay("framelabel");
}



No comments:

Post a Comment