How to suppress Flash migration warnings (1090)

Posted by aaaidan on Stack Overflow See other posts from Stack Overflow or by aaaidan
Published on 2010-03-31T00:18:17Z Indexed on 2010/03/31 0:23 UTC
Read the original article Hit count: 858

Filed under:
|
|
|
|

I get "migration issue" warnings when I use mouse/keyboard input handler names such as onMouseDown, onKeyUp, etc. These names are perfectly legal, but sensibly, we are now warned that their use is no longer automatic in ActionScript 3.

I want to suppress these warnings, but without suppressing all other warnings, which I find useful.

E.g., when I use code like this:

protected override function onMouseDown(e:MouseEvent):void {

I get an annoying warning like this:

Warning: 1090: Migration issue: The onMouseDown 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 ( 'mouseDown', callback_handler).

There are flex compiler (mxmlc) flags which can suppress actionscript warnings, or all warnings, but I don't want that. That's to general.

Ideally I could suppress a specific error/warning number (Warning #1090).

Halp?

© Stack Overflow or respective owner

Related posts about as3

Related posts about mxmlc