On Mon, Jan 12, 2009 at 11:54 PM, Dan <[email protected]> wrote:

> 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?

You have to add a listener for each event type separately.

  obj.addEventListener("foo", commonHandler);
  obj.addEventListener("bar", commonHandler);
  obj.addEventListener("baz", commonHandler);
  ...

There's no shortcut way to listen for all events from an object.

Manish

Reply via email to