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

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

New Here ,
Apr 20, 2009 Apr 20, 2009

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

TOPICS
ActionScript

Views

1.6K

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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
New Here ,
Apr 20, 2009 Apr 20, 2009

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.

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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
New Here ,
Apr 20, 2009 Apr 20, 2009

Copy link to clipboard

Copied

LATEST

thanx a lot

worked

Votes

Translate

Translate

Report

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