Selection.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 Selection.setFocus() 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.