Please, someone could help me?
I need to send the parameter ad_mc by the command:
ad_btn.addEventListener (MouseEvent.MOUSE_MOVE, MouseOver);
to use the same function for all buttons
function MouseOver(evt:MouseEvent):void{
ad_mc.gotoAndPlay("on");
}
function MouseOut(evt:MouseEvent):void{
ad_mc.gotoAndPlay("off");
}
ad_btn.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
ad_btn.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
If I wanted to send the parameter ad_btn I would use:
MovieClip (evt.target). GotoAndPlay ("on");
but is not the case