3 Replies Latest reply on Aug 14, 2009 11:47 AM by Joe ... Ward

    fscommand "exec" from AIR

    mkayyali Level 1

      Dear,

      i need to run exe file from air file, i know only how to run exe from Projector file.

       

      my code:

       

      import flash.system.fscommand;

       

      runBtn.useHandCursor = true;

      runBtn.buttonMode = true;

      runBtn.addEventListener( MouseEvent.CLICK, runExe);

       

      function runExe(event:MouseEvent ):void {

      fscommand ("exec", "TestConsole.exe");

      }