I have class MyEvent extends flash.events.Event.
I also have a second class MyEventChild extends MyEvent.
Both classes define string constants that are used as event type.

How can I add event listener to handle any of MyEvent or MyChildEvent
events?

If I do addEventListener(MyEvent.Evt1, handleEvt), I will handle only
that specific  MyEvent.Evt1 event. I need to be able to handle
MyEvent.Evt2 and MyChildEvent.Evt1 and my FutureChildEvent.EvtX.
How can this be achieved?

Thank you!


Reply via email to