actionscript 3 - Opening external exe file via fscommand -


i have problem opening external exe file clicking button in flash projector. have seen external file must under folder fscommand. , code;

private function fnc(e:mouseevent):void {     fscommand("exec", ".\\fscommand\\externalfile.exe");     trace("***button pressed***"); } 

however found answer , not sure can open flash exe flash exe.

addition: can succesfully open other exes windows media player. answer might case don't know.

i don't know why flash projector can not open 1 !! of course can, it's exe other exe file !

you have little mistake in path of opened exe, should write :

private function fnc(e:mouseevent):void {     // flash knows exe in fscommand dir     fscommand("exec", "externalfile.exe");     trace("***button pressed***"); } 

take on simple example :

enter image description here

hope can help.


Comments