User Guide
Mouse class 15
The Flash Lite 2.0 implementation of the getCode() method returns a string or a number,
depending on what the platform passed in. The only valid key codes are the standard key
codes accepted by this class and the “special” key codes listed as properties of the
ExtendedKey class. This restriction is enforced by the player. For valid key code values, see the
Key class in the Flash Lite 2.x ActionScript Language Reference. This reference provides tables
that map keys to codes for letters, numbers, the numeric keypad, function keys, special
constant keys, and other keys.
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 Applications
■ Chapter 14, “Creating Interaction with ActionScript” in Learning ActionScript 2.0 in Flash
■ Chapter 2, “ActionScript Classes,” in Flash Lite 2.x 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.0.
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