Skip to main content
April 20, 2009
Question

fscommand("exec","file.exe") not worked

  • April 20, 2009
  • 3 replies
  • 1795 views

hi
i see as3 help and taturials but htis code not work.

what is problem?

mc.addEventListener('click',test);
function test(e:Event):void{
fscommand("exec","1.exe");
}

This topic has been closed for replies.

3 replies

April 20, 2009

thanx a lot

worked

April 20, 2009

i test functin by trace .event worked.

but i find aproblem

The exec command runs in the subdirectory fscommand only.

rafa@mediatech
Inspiring
April 20, 2009

You need to have a folder named fscommand next to your projector. Inside this folder you need to place the EXE you which to open. This is the only way I understand the fscommand will open your EXE

rafa@mediatech
Inspiring
April 20, 2009

I believe you have your "addEventListener" wrong... try this:

mc.addEventListener(MouseEvent.CLICK,test);
function test(e:Event):void{
fscommand("exec","1.exe");
}


Now, I thought they got rid of the fscommand for AS3...

good luck!
Rafa.