120
Flash Lite Specific Language Elements
Example
The following example sets
canSMS
to 1 in Flash Lite 1.1, but leaves it undefined in Flash Lite
1.0 Flash Lite 1.0 (however, not all Flash Lite 1.1 phones can send SMS messages, so this code
is still dependent on the phone):
on(release) {
canSMS = _capSMS;
if (canSMS) {
// send an SMS
myMessage = "sms:4156095555?body=sample sms message";
getURL(myMessage);
}
}
_capStreamSound
Availability
Flash Lite 1.1.
Usage
_capStreamSound
Description
Numeric variable; indicates whether the device can play streaming (synchronized) sound. If
so, this variable is defined and has a value of 1; if not, this variable is undefined.
Example
The following example plays streaming sound if
canStreamSound
is enabled:
on(press) {
canStreamSound = _capStreamSound;
if (canStreamSound) {
// play a streaming sound in a movieclip with this button
tellTarget("music") {
gotoAndPlay(2);
}
}
}
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...