《Flash Lite 2.x ActionScript 语言参考》 |
|
|
|
| ActionScript 语言元素 > 全局函数 > fscommand2 函数 | |||
fscommand2(command:String, parameter1:String,...parameterN:String) : Void
使 SWF 文件能够与 Flash Lite 播放器或移动设备上的主机应用程序进行通信。
若要使用 fscommand2() 将消息发送到 Flash Lite 播放器,必须使用预定义的命令和参数。若要查看可以为 fscommand() 函数的命令和参数指定的值,请参阅"ActionScript 语言元素"下的"fscommand2 命令"部分。这些值控制在 Flash Lite 播放器中播放的 SWF 文件。
fscommand2() 函数类似于 fscommand() 函数,但有以下区别:
fscommand2() 函数可以接受任意数量的参数。而 fscommand() 只能接受一个参数。fscommand2()(换句话说,就是在帧内);而 fscommand() 在所处理的帧的结尾执行。fscommand2() 函数可以返回一个用于报告成功、失败或命令结果的值。注意:任何 fscommand2() 命令在 Web 播放器中都不可用。
不推荐使用的 fscommand2() 命令
在 Flash Lite 2.0 中不推荐使用 Flash Lite 1.1 中的某些 fscommand2() 命令。下表显示了这些不推荐使用的 fscommand2() 命令:
命令 不推荐使用 Escape GetDateDay Date 对象的 GetDateMonth Date 对象的 GetDateWeekday Date 对象的 GetDateYear Date 对象的 GetLanguage GetLocaleLongDate Date 对象的 GetLocaleShortDate Date 对象的 GetLocaleTime Date 对象的 GetTimeHours Date 对象的 GetTimeMinutes Date 对象的 GetTimeSeconds Date 对象的 GetTimeZoneOffset Date 对象的 SetQuality Unescape
escape 全局函数
getDate() 方法
getMonth() 方法
getDay() 方法
getYear() 方法
System.capabilities.language 属性
getLocaleLongDate() 方法
getLocaleShortDate() 方法
getLocaleTime() 方法
getHours() 方法
getMinutes() 方法
getSeconds() 方法
getTimeZoneOffset() 方法
MovieClip._quality
unescape() 全局函数
command:String ― 传递给主机应用程序用于任何用途的一个字符串,或传递给 Flash Lite 播放器的一个命令。
parameters:String ― 传递给主机应用程序用于任何用途的一个字符串,或传递给 Flash Lite 播放器的一个值。
|
|
|
|