ActionScript for Flash MX: The Definitive Guide, 2nd Edition By Colin Moock
Chapter 18. ActionScript Language Reference
Selection.removeListener( ) Method
Flash 6
cancels event notices for the specified listener
Selection.removeListener(listener)
Arguments
listener
An object that was previously registered as a listener for Selection.
Returns
A Boolean: true if listener was found and removed; false if listener was not registered as an event listener for Selection. The return value is useful for debugging code that removes listeners.
Description
The removeListener( ) method stops listener from receiving Selection event notifications. It should be used only after listener has been registered as an event listener via addListener( ). The listener object is not deleted, but it can be removed and added repeatedly. Event listeners should be removed explicitly when the task they perform is no longer required.