Search Our Web Design Blog...
Monday, April 25, 2011
Friday, April 8, 2011
code for movie clip buttons
YOUR INSTANCE BUTTON NAME.buttonMode = true;
YOUR INSTANCE BUTTON NAME.addEventListener(MouseEvent.ROLL_OVER,animIn);
YOUR INSTANCE BUTTON NAME.addEventListener(MouseEvent.ROLL_OUT,animOut);
function animIn(event:MouseEvent):void {
event.target.gotoAndPlay("over");
}
function animOut(event:MouseEvent):void{
event.target.gotoAndPlay("out");
}
YOUR INSTANCE BUTTON NAME.addEventListener(MouseEvent.ROLL_OVER,animIn);
YOUR INSTANCE BUTTON NAME.addEventListener(MouseEvent.ROLL_OUT,animOut);
function animIn(event:MouseEvent):void {
event.target.gotoAndPlay("over");
}
function animOut(event:MouseEvent):void{
event.target.gotoAndPlay("out");
}
Monday, April 4, 2011
STOPPER!
yourButtonsInstanceName.addEventListener(MouseEvent.CLICK, functionname);
function functionname(event:MouseEvent):void
{
stop();
}
function functionname(event:MouseEvent):void
{
stop();
}
Subscribe to:
Posts (Atom)