Global Properties
97
Numeric variable; indicates whether Flash Lite can process compound sound data. If so, this
variable is defined and has a value of 1; if not, this variable is undefined. For example, a single
Flash file can contain the same sound represented in both MIDI and MFi formats. The player
will then play back data in the appropriate format based on the format supported by the
device. This variable defines whether the Flash Lite player supports this ability on the current
handset.
Availability:
ActionScript 1.0; Flash Lite 1.1
Example
In the following example,
useCompoundSound
is set to
1
in Flash Lite 1.1, but is undefined in
Flash Lite 1.0:
useCompoundSound = _capCompoundSound;
if (useCompoundSound == 1) {
gotoAndPlay("withSound");
} else {
gotoAndPlay("withoutSound");
See also
capabilities (System.capabilities)
_capEmail property
_capEmail
Deprecated
since Flash Lite Player 2.0. This action was deprecated in favor of the
System.capabilities.hasEmail
property.
Numeric variable; indicates whether the Flash Lite client can send e-mailmessages by using
the
GetURL()
ActionScript command. If so, this variable is defined and has a value of 1; if
not, this variable is undefined.
Availability:
ActionScript 1.0; Flash Lite 1.1
Example
If the host application can send e-mail messages by using the
GetURL()
ActionScript
command, the following example sets
canEmail()
to
1
:
canEmail = _capEmail;
if (canEmail == 1) {
getURL("mailto:[email protected]?subject=foo&body=bar");
}
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...