Object | +-Mouse public class Mouse extends Object
The Mouse class is a top-level class whose properties and methods you can access without using a constructor. You can use the methods of the Mouse class to add and remove listeners and to handle mouse events.
Note: The members of this class are supported in Flash Lite only if System.capabilities.hasMouse is true or System.capabilities.hasStylus is true.
Properties inherited from class Object
|
constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property) |
|
Event |
Description |
|---|---|
|
onMouseDown = function() {} |
Notified when the mouse button is pressed. |
|
onMouseMove = function() {} |
Notified when the mouse moves. |
|
onMouseUp = function() {} |
Notified when the mouse button is released. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
static |
addListener(listener:Object) : Void |
Registers an object to receive notifications of the onMouseDown, onMouseMove, and onMouseUp listeners. |
|
static |
removeListener(listener:Object) : Boolean |
Removes an object that was previously registered with addListener(). |
Methods inherited from class Object