User Guide

806 ActionScript classes
A Flash application can only monitor mouse events that occur within its focus. A Flash
application cannot detect mouse events in another application.
Availability: ActionScript 1.0; Flash Player 5
Property summary
Properties inherited from class Object
Event summary
Method summary
constructor (Object.constructor property), __proto__ (Object.__proto__
property), prototype (Object.prototype property), __resolve
(Object.__resolve property)
Event Description
onMouseDown =
function() {}
Notified when the mouse is pressed.
onMouseMove =
function() {}
Notified when the mouse moves.
onMouseUp =
function() {}
Notified when the mouse is released.
onMouseWheel =
function([delta:
Number],
[scrollTarget:St
ring]) {}
Notified when the user rolls the mouse wheel.
Modifiers Signature Description
static addListener(listener
:Object) : Void
Registers an object to receive notifications of the
onMouseDown, onMouseMove, onMouseUp, and
onMouseWheel listeners.
static hide() : Number Hides the pointer in a SWF file.
static removeListener(liste
ner:Object) :
Boolean
Removes an object that was previously registered
with addListener().
static show() : Number Displays the mouse pointer in a SWF file.