S > Selection.addListener |  |

Selection.addListener

selection, Selection.addListener, addListener

Availability

Flash Player 6.

Usage

`Selection.addListener(``newListener``)`

Parameters

`newListener` An object with an `onSetFocus` method.

Returns

None.

Description

Method; registers an object to receive keyboard focus change notifications. When the focus changes (for example, whenever the `Selection.SetFocus` method is invoked), all listening objects registered with `addListener` have their `onSetFocus` method invoked. Multiple objects may listen for focus change notifications. If the listener `newListener` is already registered, no change occurs.