Selection.removeListener() 611
Selection.onSetFocus
Availability
Flash Player 6.
Usage
someListener.onSetFocus = function(oldFocus, newFocus){
statements;
}
Description
Listener; notified when the input focus changes. To use onSetFocus, you must create a listener
object. You can then define a function for
onSetFocus and use addListener() to register the
listener with the Selection object, as in the following:
someListener = new Object();
someListener.onSetFocus = function () { ... };
Selection.addListener(someListener);
Listeners enable different pieces of code to cooperate because multiple listeners can receive
notification about a single event.
See also
Selection.addListener()
Selection.removeListener()
Availability
Flash Player 6.
Usage
Selection.removeListener(listener)
Parameters
listener
The object that will no longer receive focus notifications.
Returns
If the listener was successfully removed, the method returns a true value. If the listener was
not successfully removed, for example if the
listener was not on the Selection object’s listener
list, the method returns a value of
false.
Description
Method; removes an object previously registered with addListener().