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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With