96
ActionScript language elements
_cap4WayKeyAS property
_cap4WayKeyAS
Deprecated
since Flash Lite Player 2.0. This action was deprecated in favor of the
System.capabilities.has4WayKeyAS
property.
Numeric variable; indicates whether Flash Lite executes ActionScript expressions attached to
key event handlers associated with the Right, Left, Up, and Down Arrow keys. This variable is
defined and has a value of 1 only when the host application uses four-way key navigation
mode to move between Flash controls (buttons and input text fields). Otherwise, this variable
is undefined.
When one of the four-way keys is pressed, if the value of the
_cap4WayKeyAS
variable is
1
,
Flash Lite first looks for a handler for that key. If it finds none, Flash control navigation
occurs. However, if an event handler is found, no navigation action occurs for that key. For
example, if a key press handler for the Down Arrow key is found, the user cannot navigate.
Availability:
ActionScript 1.0; Flash Lite 1.1
Example
The following example sets
canUse4Way
to
1
in Flash Lite 1.1, but leaves it undefined in Flash
Lite 1.0 (however, not all Flash Lite 1.1 phones support four-way keys, so this code is still
dependent on the phone):
canUse4Way = _cap4WayKeyAS;
if (canUse4Way == 1) {
msg = "Use your directional joypad to navigate this application";
} else {
msg = "Please use the 2 key to scroll up, the 6 key to scroll right,
the 8 key to scroll down, and the 4 key to scroll left.";
}
See also
capabilities (System.capabilities)
_capCompoundSound property
_capCompoundSound
Deprecated
since Flash Lite Player 2.0. This action was deprecated in favor of the
System.capabilities.hasCompoundSound
property.
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...