
Selection.removeListener() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
752
|
ActionScript Language Reference
See Also
Button.enabled, Button.onSetFocus(), Button.tabEnabled, MovieClip.onSetFocus(),
MovieClip
.selectable, MovieClip.tabEnabled, Selection.addListener(), Selection.
removeListener(), Selection.setFocus(), TextField.onSetFocus(),
TextField.tabEnabled
Selection.removeListener() Method
cancels event notices for the specified listener
Flash 6
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.
See Also
Selection.addListener(), Selection.onSetFocus(); Chapter 10
Selection.setFocus() Method
set input focus to a specific button, movie clip, or text field
Flash 5; enhanced in Flash 6 to support ...