Tuesday, March 13, 2012

/*This METHOD stops the entire timeline:
We won't move until you click a button.
*/
stop();

/*The BUTTON INSTANCE below moves us to Frame 2 on the main timeline:
(but has no effect on the movie clip timelines)
*/

tlf_2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(2);
}

/*The BUTTON INSTANCE below moves us to Frame 3 on the main timeline:
(but has no effect on the movie clip timelines)
*/

tlf_3.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);
function mouseDownHandler3(event:MouseEvent):void {
gotoAndStop(3);
}

/*The BUTTON INSTANCE below moves us to Frame 4 on the main timeline:
(but has no effect on the movie clip timelines)
*/

tlf_4.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler4);
function mouseDownHandler4(event:MouseEvent):void {
gotoAndStop(4);
}

No comments:

Post a Comment