Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
Apr 20, 2009 Apr 20, 2009

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");
}

TOPICS
ActionScript
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 20, 2009 Apr 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 20, 2009 Apr 20, 2009

i test functin by trace .event worked.

but i find aproblem

The exec command runs in the subdirectory fscommand only.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 20, 2009 Apr 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 20, 2009 Apr 20, 2009
LATEST

thanx a lot

worked

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines