通过 fscommand 打开外部 exe 文件
Opening external exe file via fscommand
我在单击 Flash projector
中的按钮打开外部 exe
文件时遇到问题。我看到外部文件必须在文件夹fscommand
下。这是代码;
private function Fnc(e:MouseEvent):void
{
fscommand("exec", ".\fscommand\externalfile.exe");
trace("***button pressed***");
}
但是我发现 answer 现在我不确定我是否可以通过另一个 flash exe 打开一个 flash exe。
加法:
我可以成功打开其他 exe
,例如 Windows Media Player。所以答案可能是这样,但我不知道。
我不知道为什么一个闪光灯不能打开另一个!当然可以,它只是一个 exe,就像任何其他 exe 文件一样!
你刚才打开的exe路径有点错误,应该这样写:
private function Fnc(e:MouseEvent):void
{
// flash knows that the exe is in the fscommand dir
fscommand("exec", "externalfile.exe");
trace("***button pressed***");
}
看看这个非常简单的例子:
希望能帮到你。
我在单击 Flash projector
中的按钮打开外部 exe
文件时遇到问题。我看到外部文件必须在文件夹fscommand
下。这是代码;
private function Fnc(e:MouseEvent):void
{
fscommand("exec", ".\fscommand\externalfile.exe");
trace("***button pressed***");
}
但是我发现 answer 现在我不确定我是否可以通过另一个 flash exe 打开一个 flash exe。
加法:
我可以成功打开其他 exe
,例如 Windows Media Player。所以答案可能是这样,但我不知道。
我不知道为什么一个闪光灯不能打开另一个!当然可以,它只是一个 exe,就像任何其他 exe 文件一样!
你刚才打开的exe路径有点错误,应该这样写:
private function Fnc(e:MouseEvent):void
{
// flash knows that the exe is in the fscommand dir
fscommand("exec", "externalfile.exe");
trace("***button pressed***");
}
看看这个非常简单的例子:
希望能帮到你。