《Flash Lite 2.x ActionScript 语言参考》 |
|
|
|
| ActionScript 语言元素 > 全局属性 > _capStreamSound 属性 | |||
_capStreamSound
自 Flash Lite Player 2.0 后不推荐使用。不推荐使用此操作,而推荐使用 System.capabilities.hasStreamingAudio 属性。
数值变量;指示设备是否能播放(同步)流声音。如果能,则定义此变量并且变量具有值 1;如果不能,则不定义此变量。
如果启用了 canStreamSound,以下示例将播放声音流:
on(press) {
canStreamSound = _capStreamSound;
if (canStreamSound) {
// play a streaming sound in a movieclip with this button
tellTarget("music") {
gotoAndPlay(2);
}
}
capabilities (System.capabilities)
|
|
|
|