执行投影机闪光灯的外部exe [英] Execute external exe from projector flash
问题描述
//播放ACQ演示
Acq.addEventListener(MouseEvent.CLICK,clickAcq);
函数clickAcq(event:MouseEvent):void {
flash.system.fscommand(exec,。\\ACQ\\Acq.exe);
trace(ACQ clicked);
gotoAndPlay(Main);
想要执行的文件应位于投影机exe旁边的fscommand文件夹中。 (你可以把bat文件放到那里来启动其他程序)
$ b
http://help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/flash/system/package.html
编辑:如果您想要更高级的选项,您可以尝试第三方工具,如 http://www.northcode.com/
We have a projector application (.exe) compiled from AS3. How can we start another (external) executable from the projector?
This is the code...it does nothing visible.
//Play ACQ Demo
Acq.addEventListener(MouseEvent.CLICK, clickAcq);
function clickAcq(event:MouseEvent):void {
flash.system.fscommand("exec",".\\ACQ\\Acq.exe");
trace("ACQ clicked");
gotoAndPlay("Main");
}
The documentation says the program you want to execute should be in an 'fscommand' folder that is next to the projector exe. (You can put a bat file there to start other programs)
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/package.html
Edit: If you want more advanced options you can try a third party tool like http://www.northcode.com/
这篇关于执行投影机闪光灯的外部exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!