今天在写
flash退出代码
http://www.panpan.org/htgardenml/ruanjianjiaocheng/Flashjiaocheng/200902/11-407.html
的时候用到了fscommand函数,于是对fscommand()发生了兴趣,下面就是fscommand的详细参考资料,说得很详细:
fscommand()可用性:
Flash Player 3。
用法:fscommand("command", "parameters")
参数:
command 一个传递给宿主应用程序用于任何用途的字符串;或者一个传递给 Flash Player 的命令。
parameters 一个传递给宿主应用程序用于任何用途的字符串;或者一个传递给 Flash Player 的值。
返回:无。
说明:
函数;使 SWF 文件能够与 Flash Player 或承载 Flash Player 的程序(如 Web 浏览器)进行通讯。还可使用 fscommand 动作将消息传递给 Macromedia Director,或者传递给 Visual Basic、Visual C++ 和其它可承载 ActiveX 控件的程序。
用法1:
若要将消息发送给 Flash Player,必须使用预定义的命令和参数。下表显示可为 fscommand 动作的 command 和 parameters 参数指定的值,这些值用于控制在 Flash player(包括播放器)中播放的 SWF 文件:
命令:quit
参数:无
目的:关闭播放器。