# TextField.addListener()

#### Availability

Flash Player 6.

#### Usage

`my_txt``.addListener(``newListener``)`

#### Parameters

`newListener` An object with the events `onChanged` and `onScroller` notifications.

#### Returns

Nothing.

#### Description

Method; registers an object to receive event notifications. When the `onChanged` or `onScroller` event occurs, the `TextField.onChanged` and `TextField.onScroller` events are invoked, followed by the `onChanged` and `onScroller` methods of listening objects registered with `addListener`. Multiple objects may listen for change notifications. If the listener `newListener` is already registered, no change occurs.