![MACROMEDIA FLASH 8-FLASH Скачать руководство пользователя страница 120](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197120.webp)
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);
}
}
}
Содержание FLASH 8-FLASH
Страница 1: ...Flash Lite 1 x ActionScript Language Reference...
Страница 6: ...6 Contents...
Страница 46: ...46 Flash Lite Global Functions...
Страница 62: ...62 Flash Lite Properties...
Страница 76: ...76 Flash Lite Statements...
Страница 110: ...110 Flash Lite Operators...
Страница 162: ...162 Index...