Flash Lite 2.x and 3 Help

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:

  • Developing Flash Lite 2.x and 3.0 Applications
  • Chapter 14, "Creating Interaction with ActionScript," in Learning ActionScript 2.0 in Flash
  • Chapter 2, "ActionScript Classes," in Flash Lite 2.x and 3.0 ActionScript Language Reference

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 and later.

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 is 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 is set to true.

Partially supported

show()

Displays the pointer in a SWF file.

Not supported

 

Send me an e-mail when comments are added to this page | Comment Report