Tutorial :flash action script 2: how can i create custom events?


I would like to create my own events. In action script 3 I can just extend the event class and create my own Event Class. how can I achieve the same results using action script 2?



You can use mx.events.EventDispatcher:


Here's a SO question with a good answer on how to do AS3 style events in AS2:

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

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »