import flash.events.MouseEvent;
stop ();
start_btn.addEventListener(MouseEvent.CLICK, startBtnClicked);
instructions_btn.addEventListener(MouseEvent.CLICK, instructionsBtnClicked);
function startBtnClicked(event:MouseEvent):void{
gotoAndStop(4);}
function instructionsBtnClicked(event:MouseEvent):void
{
gotoAndStop(3);
}
Instructions Screen Code -
import flash.events.MouseEvent;
play_btn.addEventListener(MouseEvent.CLICK, playBtnClicked);
home_btn.addEventListener(MouseEvent.CLICK, homeBtnClicked);
function playBtnClicked(event:MouseEvent):void
{
gotoAndStop(4);
}
function homeBtnClicked(event:MouseEvent):void
{
gotoAndStop(2)
}
No comments:
Post a Comment