A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Is there some way to get around the exec fscommand?

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    306
    I'm trying to launch an exe from Flash MX but the fscommand doesn't work because of the security breach with the Flash Player..... So is there another way around this????

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    298
    First you need to get ftoolapp from http://www.flastools.net.

    Next you will need to put the file you want to execute in a folder called fscommand which is in the same folder as your flash projector. you will need to put the ftolapp.exe in the fscommand folder also.
    Next you will add this command to the button that will launch the file.
    Code:
    on (press) {
    	fscommand("exec", "ftoolapp.exe" add chr(9) add "YOUR FILE NAME HERE");
    }
    Notice you don't specify the fscommand folder as part of the path. Flash 6 will do this automatically.

    add chr(9) add

    is just to simulate a space to the windows command line.

    BTW: If you need to locate files in sub folders of the fscommand you need to use double backslashes in the path instead of single backslashes.

    Hope this helps. There is a lot of documentation for the ftoolapp on the flashtools.net page. I will keep an eye on this post incase you need assistance.

    Good Luck!

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    306
    awesome, the only thing is I can't find http://www.flastools.net ? Is that URL right?

  4. #4
    Senior Member
    Join Date
    Sep 2000
    Posts
    298
    Doh!--- it's http://www.flashtools.net --- My bad.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center