Monday, 15 April 2013
Flash Action Script
//Stop the flash playing
stop();
//Listen for Home Button
Home.addEventListener(MouseEvent.CLICK, onClickHome);
//Function for Home Button
function onClickHome(myEvent:MouseEvent):void {gotoAndStop(“Home”);}
//Listen for Game Button
Game.addEventListener(MouseEvent.CLICK, onClickGame);
//Function for Game Button
function onClickGame(myEvent:MouseEvent):void {gotoAndStop(“Game”);}
//Listen for Billy Button
Billy.addEventListener(MouseEvent.CLICK, onClickBilly);
//Function for Billy Button
function onClickBilly(myEvent:MouseEvent):void {gotoAndStop(“Billy”);}
//Listen for Olaf Button
Olaf.addEventListener(MouseEvent.CLICK, onClickOlaf);
//Function for Olaf Button
function onClickOlaf(myEvent:MouseEvent):void {gotoAndStop(“Olaf”);}
//Listen for Fido Button
Fido.addEventListener(MouseEvent.CLICK, onClickFido);
//Function for Fido Button
function onClickFido(myEvent:MouseEvent):void {gotoAndStop(“Fido”);}
Original Post Aug 7th 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment