How to suppress Flash migration warnings (1090)

后端 未结 5 1403
不知归路
不知归路 2021-02-20 13:30

In Flash Professional CS4, I get \"migration issue\" warnings when I use mouse/keyboard input handler names such as onMouseDown, onKeyUp, etc., even though I have added event li

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-20 14:17

    I agree with the previous post; the message is trying to tell you that you need to register that event handler. Just adding a method called onMouseDown() won't do it. What you need to do is to add something like

    addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
    

    in either your constructor or maybe in the parent component.

提交回复
热议问题