Best practice for ActionScript 2 events - is there a way to simulate ActionScript 3-style events?

后端 未结 3 1813
轻奢々
轻奢々 2021-02-09 01:31

I love the AS3 event model - it helps keep my code clean and lossely coupled. When I used to work on AS2 projects, my code was not so neat and classes were more reliant on one a

3条回答
  •  野的像风
    2021-02-09 01:45

    I would guess the best practice would be to use the EventDispatcher class where ever posible. You can read about it here: http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00002325.html

    The UI components also have very AS3-like event dispatching.

提交回复
热议问题