The Flash Lite 2.0 implementation of the
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
addListener()
hide()
removeListener()
show()
getCode()
Description
Registers an object to receive notifications of the
,
onMouseDown
onMouseMove
listeners.
onMouseWheel
Limitations: Supported if
System.capabilities.hasMouse
System.capabilities.hasStylus
Hides the pointer in a SWF file.
Removes an object that was previously registered
with
.
addListener()
Limitations: Supported if
System.capabilities.hasMouse
System.capabilities.hasStylus
Displays the pointer in a SWF file.
method returns a string or a number,
,
, and
onMouseUp
or
are set to
true
or
are set to
true
Support
Partially
supported
.
Not supported
Partially
supported
.
Not supported
Mouse class
15
Need help?
Do you have a question about the FLASH 8-INTRODUCTION TO FLASH LITE 2.X ACTIONSCRIPT and is the answer not in the manual?