我如何启动一个EXE从Flash SWF使用ActionScript? [英] How do I launch an EXE from Flash SWF using ActionScript?
问题描述
我希望我的Flash的SWF打开从本机操作系统的外部EXE和我曾尝试:
I want my Flash SWF to open an external EXE from the native operating system and I have tried:
protected function LaunchExe():void {
flash.system.fscommand("exec","Test.exe");
}
但没有任何反应。我做得不对的命令,或者我需要一些完全不同?
But nothing happens. Am I doing something wrong with this command or do I need to something entirely differently?
推荐答案
它只能从一个投影文件(可执行闪存)内,如果你正在运行它这样的应用程序,您都争相推出应该是在一个子目录所谓的的fscommand 的。
It works only from within a projector file (executable Flash), and if you are running it like that, the application you are trying to launch should be in a subdirectory called fscommand.
从的Adobe :
在子目录exec命令仅运行在fscommand。换句话说,如果您使用exec命令调用应用程序,该应用程序必须位于名为fscommand的子目录中。 exec命令仅在Flash放映文件内起作用。
The exec command runs in the subdirectory fscommand only. In other words, if you use the exec command to call an application, the application must reside in a subdirectory named fscommand. The exec command works only from within a Flash projector file.
这篇关于我如何启动一个EXE从Flash SWF使用ActionScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!