3

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");
}
Nick
  • 13,238
  • 17
  • 64
  • 100

2 Answers2

6

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/

Nick
  • 13,238
  • 17
  • 64
  • 100
Simon Groenewolt
  • 10,607
  • 1
  • 36
  • 64
1

This free utility http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy lets you work around some of the limitations of the EXEC fscommand in Flash.

Tim Goss
  • 261
  • 3
  • 5