M > Mouse.addListener |
![]() ![]() ![]() |
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
events.
When the mouse is pressed, moved, or released, regardless of the input focus, all listening objects that are registered with the addListener
method have either their onMouseDown
method, onMouseMove
method or onMouseUp
method invoked. Multiple objects may listen for keyboard notifications. If the listener newListener
is already registered, no change occurs.
![]() ![]() ![]() |