Cap4Waykeyas Property; Capcompoundsound Property - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

_cap4WayKeyAS property

_cap4WayKeyAS
Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the
System.capabilities.has4WayKeyAS
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
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
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
96
ActionScript language elements
property.
to
in Flash Lite 1.1, but leaves it undefined in Flash
canUse4Way
1
property.
variable is
_cap4WayKeyAS
,
1

Advertisement

Table of Contents
loading

Table of Contents