Mouse class

The Mouse class lets you control the mouse in a SWF file; for example, this class lets you hide or show the mouse pointer.

For more information about the Mouse class, see the following references:

Method summary

The following table lists the methods that are either partially or not supported by the Mouse class when using ActionScript for Flash Lite 2.x.

Method

Description

Support

addListener()

Registers an object to receive notifications of the onMouseDown, onMouseMove, onMouseUp, and onMouseWheel listeners.

Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true.

Partially supported

hide()

Hides the pointer in a SWF file.

Not supported

removeListener()

Removes an object that was previously registered with addListener().

Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true.

Partially supported

show()

Displays the pointer in a SWF file.

Not supported