Is there a way to catch all events from a specific object?
When I use addEventListener() I must provide the event type. Is there a way to catch them all?
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 get a list of all declared events using
describeType. You’ll need to look at parent classes to get inherited events and you’ll probably want to avoidframeConstructed,enterFrameandexitFrame.But events don’t have to be declared. Any class can send events using string names and those will not get picked up by
describeType(or through any other mechanism).