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 callback handlers.

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 either their onMouseDown method, onMouseMove method or onMouseUp method invoked. Multiple objects may listen for mouse notifications. If the listener newListener is already registered, no change occurs.

See also

Mouse.onMouseDown, Mouse.onMouseMove, Mouse.onMouseUp