0

I've searched on stackoverflow, but didn't find anything, and looked through the as3 documentation with the same result.
I want to do something like C's system(); or PHP's shell_exec(").

Is this possible? How?

kaiz.net
  • 1,984
  • 3
  • 23
  • 31
11684
  • 7,356
  • 12
  • 48
  • 71

1 Answers1

0

Flash is client-side so you cannot call an executable on the server directly.

You could however create a PHP File on the server that would run your executable. Then you can launch this script from Flash using URLLoader:

var urlLoader:URLLoader = new URLLoader();
var urlRequest:URLRequest = new URLRequest('http://example.com/somescript.php');
urlLoader.load(urlRequest);
laurent
  • 88,262
  • 77
  • 290
  • 428