Thursday, October 9, 2008

starting to add interactivity to Flash

A basic script for moving the playback head in the timeline:

bird01.addEventListener(MouseEvent.MOUSE_OVER, myClickReaction01);

function myClickReaction01(e:MouseEvent):void {
bird01.gotoAndPlay(8);
}

............................

Mouse events you can track: CLICK, DOUBLE_CLICK, MOUSE_DOWN, MOUSE_LEAVE, MOUSE_MOVE, MOUSE_OUT, MOUSE_OVER, MOUSE_UP, MOUSE_WHEEL

No comments: