Actionscript 3 AS3 FS命令打开按钮
我对AS3不太熟悉。 我正在尝试在Catalog按钮上添加此FS命令Actionscript 3 AS3 FS命令打开按钮,actionscript-3,button,filesystems,command,Actionscript 3,Button,Filesystems,Command,我对AS3不太熟悉。 我正在尝试在Catalog按钮上添加此FS命令 fscommand("exec", "c:\kdc\kdc.exe"); 我为AS2找到了这个 Catalog.onRelease = function() { fscommand("exec", "c:\kdc\kdc.exe"); } 这是Air应用程序吗? 因为如果是这样,您可以使用此选项: var path:File = new File("c:\kdc\kdc.exe"); path.openWithDe
fscommand("exec", "c:\kdc\kdc.exe");
我为AS2找到了这个
Catalog.onRelease = function() {
fscommand("exec", "c:\kdc\kdc.exe");
}
这是Air应用程序吗?
因为如果是这样,您可以使用此选项:
var path:File = new File("c:\kdc\kdc.exe");
path.openWithDefaultApplication();
如果我帮忙的话,请标记为已回答 鉴于您的“问题”简短,我只能假设您正在寻找文档,您可以在这里找到:
也就是说,在发布您的问题之前,请查看。请确保导入了FSCommand,以便您可以使用它
导入flash.system.fscommand 你好。请详细说明你的问题,问题是什么?出什么事了吗?