Search Our Web Design Blog...

Monday, April 12, 2010

code for buttons...

myBtn.buttonMode = true;


myBtn.addEventListener(MouseEvent.ROLL_OVER,animIn);
myBtn.addEventListener(MouseEvent.ROLL_OUT,animOut);



function animIn(event:MouseEvent):void {
event.target.gotoAndPlay("over");
}
function animOut(event:MouseEvent):void{
event.target.gotoAndPlay("out");
}

No comments:

Post a Comment