Create a custom event that uses your current event type string as a
variable. Then your handler can look at the variable value to decide
what to do.

On Mon, Jan 12, 2009 at 1:24 PM, Dan <danijel.arsenov...@gmail.com> wrote:
> 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?




-- 
Howard Fore, howard.f...@hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood

Reply via email to