How to suppress Flash migration warnings (1090)

后端 未结 5 1371
不知归路
不知归路 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:30

    Why are you overriding that? It never existed in the first place. The error message is actually telling you something useful. Don't suppress it.

    If you want to create an event handler called onMouseDown, try something like

    private function onMouseDown(e:MouseEvent) : void {
      // statements
    }
    

提交回复
热议问题