I need help with this AS3 code...
shinyButton.onRollOver = function() {
this.glitter.play();
};
I keep getting this error-
Warning: 1090: Migration issue: The onRollOver event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOver', callback_handler).
Please help ASAP.
Thanks.
the code you show is as2
brush up on your mouse events in as3 here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/events/MouseEvent.html
where is glitter in relationship to shinyButton? inside of it? or outside of it? if it is inside, change your scoping:
shinyButton.addEventListener(MouseEvent.MOUSE_OVER,overMouse);
function overMouse(e:MouseEvent):void{
e.target.glitter.play();
}
//---
and then brush up on your mouse events in as3 here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/events/MouseEvent.html
North America
Europe, Middle East and Africa
Asia Pacific