《Flash Lite 2.x ActionScript 语言参考》 |
|
|
|
| ActionScript 语言元素 > 全局属性 > _capSMAF 属性 | |||
_capSMAF
自 Flash Lite Player 2.0 后不推荐使用。不推荐使用此操作,而推荐使用 System.capabilities.hasSMAF 属性。
数值变量;表明设备是否能播放合成音乐移动应用程序格式 (SMAF) 的多媒体文件。如果能,则定义此变量并且变量具有值 1;如果不能,则不定义此变量。
以下示例在 Flash Lite 1.1 中将 canSMAF 设置为 1,但在 Flash Lite 1.0 中保留为未定义(但由于并不是所有 Flash Lite 1.1 电话都能发送 SMAF 消息,因此,此代码的使用还取决于电话):
canSMAF = _capSMAF;
if (canSMAF) {
// send movieclip buttons to frame with buttons that trigger events
sounds
tellTarget("buttons") {
gotoAndPlay(2);
}
}
capabilities (System.capabilities)
|
|
|
|