Monday, April 1, 2013
Controlling the Main Timeline and a Movie Clip Instance Timeline with Buttons on the Main Timeline
FredButtonInstanceName1.addEventListener(MouseEvent.MOUSE_DOWN, responseToMouseEvent1);
function responseToMouseEvent1(event:MouseEvent):void {
stop();
}
GeorgeButtonInstanceName2.addEventListener(MouseEvent.MOUSE_DOWN, responseToMouseEvent2);
function responseToMouseEvent2(event:MouseEvent):void {
HarryMovieClipInstanceName1.stop();
}
RonButtonInstanceName3.addEventListener(MouseEvent.MOUSE_DOWN, responseToMouseEvent3);
function responseToMouseEvent3(event:MouseEvent):void {
play();
}
HermioneButtonInstanceName4.addEventListener(MouseEvent.MOUSE_DOWN, responseToMouseEvent4);
function responseToMouseEvent4(event:MouseEvent):void {
HarryMovieClipInstanceName1.play();
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment