Hmm, this set me thinking about what was the original question:

1. Remove an obj as listener for all events its registered for with the
dispatching object. 

A method to do this:

        obj.removeListener("click", obj1);      
        obj.removeListener("change", obj1);     
        obj.removeListener("something", obj1);

like this:

        obj.removeAllEvents(obj1);


2. Remove all listeners from a dispatching object.

A method to do this:

        obj.removeListener("click", obj1);              
        obj.removeListener("click", obj2);                      
        obj.removeListener("click", obj3);                      
        obj.removeListener("change", obj1);             
        obj.removeListener("change", obj2);     
        obj.removeListener("something", obj1);

like this:

        obj.removeAllListeners();



Greetz Erik

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Uhlmann
Sent: dinsdag 26 april 2005 12:46
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] EventDispatcher Question.


>Just curious as to whether or not others have built/extended the
EventDispatcher solution and what they found worked?.

you, could use GDispatcher that offers this functionality. 
http://www.gskinner.com/blog/archives/2003/09/code_gdispatche.html

The version shipped with AnimationPackage works with Flex. Note,
GDispatcher API is not compatible to the W3C standard as
mx.events.EventDispatcher is.

Best,
Alex

--
Alex Uhlmann
Software Engineer
iteration::two


 
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