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?
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use mx.events.EventDispatcher:
http://www.actionscript.org/resources/articles/204/1/Using-EventDispatcher/Page1.html
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?