A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Problem with fscommand exec

  1. #1
    Junior Member
    Join Date
    Oct 2005

    Problem with fscommand exec

    Hi, i have created a bat file to run my doc file

    batch file

    @echo off
    start ILOFacilitiesFactsheet.doc

    in my button , i added a actionscript

    fscommand("exec" , "loadILO.bat");

    but its not loading..why iissit

  2. #2
    Junior Member
    Join Date
    Oct 2005
    fscommand is fairly unreliable, in my experience. You've probably run up against a security issue - some browsers have very strong limitations on what they will let Flash do, so the browser might be blocking the fscommand.

  3. #3
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Provo, Utah
    Actually fscommand doesn't work in a browser at all. It has to be used in Projectors and the standalone flash player. If this is what you are using it for, the bat file and doc file will have to be in a folder called fscommand. This is a security feature of Flash. After you put the files in the folder, use your code just as you have it. You could also try using getURL to open your doc, and it should work in a browser:
    on(release) {
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

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