> Well the problem here is that u don't know what kind of event are
> registered and dispatched. Lets say u have a custom class wich has a
> method with the name 'doAllThingsPossible' and also has a method with
> the name 'click'. This class is registered as an event listener for the
> event 'click', how can u know (dynamicly) to what events a certain
> object is listening?

So far, when we use EventDispatcher it places a _q_eventName array
inside the object that is the dispatcher. On top of that, most
dispatcher objects pretty much should know what events they will in
fact dispatch outward so that in many ways is already there. I was
hoping for an undocumented way of iterating over the dispatcherObj for
all known events and simply look for all objects that subscribe to
this object and remove any that are marked for removal.

I finally decided to stop being lazy and look at EventDispatcher
source code for any clues and like you said, its going to need some
manual intervention. I had hoped that the FLEX EventDispatcher differs
from the FLASH MX 2004 version, but oh well.

Just curious as to whether or not others have built/extended the
EventDispatcher solution and what they found worked?.
-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to