Super! removeAllEventListeners(“onRelease”) was what I was looking for! Thx I’ll check those links.

 

Met vriendelijke groeten,
Lieven Cardoen

MULTIMEDIALOFT | POINT X
Engelse Wandeling 2 K18v | 8500 Kortrijk | T +32 (0)56/36.11.97

// communicatie bij voorkeur op [EMAIL PROTECTED]


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Krzysztof Rózalski
Sent: donderdag 23 februari 2006 14:32
To: Open Source Flash Mailing List
Subject: Re: [osflash] addEventListener --> removeAllListenersEventDispatcherclass

 

Hello,

 

You can use Grant Skinner GDispatcher instead of EventDispatcher. I personaly use the version modyfied by Alex Ulhmann ( http://www.alex-uhlmann.de/flash/animationpackage ) for same dispatching behaviour like mx.events.EventDispatcher ).

I also recomend to use Francis Bourre pixLib Delegate instead of standart macromedia Delegate ( See project site : http://osflash.org/pixlib and Delegate docs at: http://www.get-url.net/pixlib/ )

 

Using pixLib Delegate allows to do sth like this:

 

var del:Delegate = new Delegate(controller, controller.correctButton_OnRelease);

correctButton.addEventListener("onRelease", del );

 

...

//and then

 

correctButton.removeEventListener( "onRelease", del );

 

//or

 

correctButton.removeAllEventListeners("onRelease");

 

I hope it is that what You are looking for :)

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to