Wednesday, April 4, 2012

code to use a button to move us along the timeline:
btnInstanceName.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerA);
function mouseDownHandlerA(event:MouseEvent):void {
gotoAndStop(1);
}





buttonInstanceName.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandlerB);
function mouseDownHandlerB(event:MouseEvent):void {
movieClipInstanceName.play();
}

No comments:

Post a Comment