Flash Lite 2.x and 3.0 ActionScript Language Reference

Mouse

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.

Property summary

Properties inherited from class Object

constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)

Event summary

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.

Method summary

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

addProperty (Object.addProperty method), hasOwnProperty (Object.hasOwnProperty method), isPropertyEnumerable (Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf method), registerClass (Object.registerClass method), toString (Object.toString method), unwatch (Object.unwatch method), valueOf (Object.valueOf method), watch (Object.watch method)