fscommand2 函数

fscommand2(command:String, parameter1:String,...parameterN:String) : Void

使 SWF 文件能够与 Flash Lite 播放器或移动设备上的主机应用程序进行通信。

若要使用 fscommand2() 将消息发送到 Flash Lite 播放器,必须使用预定义的命令和参数。若要查看可以为 fscommand() 函数的命令和参数指定的值,请参阅"ActionScript 语言元素"下的"fscommand2 命令"部分。这些值控制在 Flash Lite 播放器中播放的 SWF 文件。

fscommand2() 函数类似于 fscommand() 函数,但有以下区别:

注意:任何 fscommand2() 命令在 Web 播放器中都不可用。

不推荐使用的 fscommand2() 命令

在 Flash Lite 2.0 中不推荐使用 Flash Lite 1.1 中的某些 fscommand2() 命令。下表显示了这些不推荐使用的 fscommand2() 命令:

命令

不推荐使用

Escape

escape 全局函数

GetDateDay

Date 对象的 getDate() 方法

GetDateMonth

Date 对象的 getMonth() 方法

GetDateWeekday

Date 对象的 getDay() 方法

GetDateYear

Date 对象的 getYear() 方法

GetLanguage

System.capabilities.language 属性

GetLocaleLongDate

Date 对象的 getLocaleLongDate() 方法

GetLocaleShortDate

Date 对象的 getLocaleShortDate() 方法

GetLocaleTime

Date 对象的 getLocaleTime() 方法

GetTimeHours

Date 对象的 getHours() 方法

GetTimeMinutes

Date 对象的 getMinutes() 方法

GetTimeSeconds

Date 对象的 getSeconds() 方法

GetTimeZoneOffset

Date 对象的 getTimeZoneOffset() 方法

SetQuality

MovieClip._quality

Unescape

unescape() 全局函数


参数

command:String ― 传递给主机应用程序用于任何用途的一个字符串,或传递给 Flash Lite 播放器的一个命令。

parameters:String ― 传递给主机应用程序用于任何用途的一个字符串,或传递给 Flash Lite 播放器的一个值。