Mouse.addListener()

Availability

Flash Player 6.

Usage

Mouse.addListener (newListener)

Parameters

newListener An object.

Returns

Nothing.

Description

Method; registers an object to receive notifications of the onMouseDown, onMouseMove, and onMouseUp listeners.

The newListener parameter should contain an object with defined methods for the onMouseDown, onMouseMove, and onMouseUp listeners.

When the mouse is pressed, moved, or released, regardless of the input focus, all listening objects that are registered with this method have their onMouseDown, onMouseMove, or onMouseUp method invoked. Multiple objects can listen for mouse notifications. If the listener newListener is already registered, no change occurs.

See also

Mouse.onMouseDown, Mouse.onMouseMove, Mouse.onMouseUp