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

后端 未结 3 1777
轻奢々
轻奢々 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:57

    I wrote a few classes for dealing with events in AS2. You can download them here.

    http://dispatchevent.org/mims/as2-eventdispatcher/

提交回复
热议问题