Copy link to clipboard
Copied
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");
}
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
i test functin by trace .event worked.
but i find aproblem
The exec
command runs in the subdirectory fscommand only.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
thanx a lot
worked