A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 30

Thread: Fscommand and exec

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    26
    ok i'm having problems, creating a stand alone application all is well..everything is done..except for the Fscommand..
    and exec function. this is what i have done.

    1. Add event, on press
    2. add action , fscommand
    3. command exec
    4. argument c:\fastdc.exe

    so then it reads
    on (press)
    FS Command("Exec", "c:\fastdc.exe")

    5.then i create a standalone player the flash player.
    6.click on the button (with the FScommand) within the player nothing happens...

    what am i doing wrong???

    please help..
    [Edited by John1234 on 07-27-2002 at 06:04 AM]

  2. #2
    Senior Member Lys12's Avatar
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    5,237
    hi,

    are you sure that fastdc.exe isn't located in a subfolder??

    i'd copy fastdc.exe and place it into the same folder as the swish movie. delete the C:\ in your command path and see if it works.

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    didn't work!!

    Thanks lys12

    it didn't work..:0(

    any other ideas,

    please help

  4. #4
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    Please help me!!!

    anyone...i have spent ages on this...


  5. #5
    Senior Member
    Join Date
    May 2001
    Posts
    116
    Go to the Tools menu and selcet Preferences. Try playing with the "Load Movie from Folder" option. I'm pretty sure that when I was having the same problem, changing that selection fixed it for me.

    Hope this helps

  6. #6
    Senior Member
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    869
    Which version of the player are you using (i.e., 5,6)?

    Your Flash/Swish SWF and EXE files need to be associated with that player.

    To associate your files from (Win 2K) Windows Explorer, click on the SWF file then from the menu choose Tools > Folder Options > File Types (locate the SWF and EXE extensions for Flash) and then highlight the file (each one seperately), then click the change button to find the Flash Standalone Player and click OK.

    If this doesn't resolve you problem, let us know and we'll see what else we can come up with to help.


  7. #7
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    Never mind

    No chaps that didn't work either i'm running flash player 6 all files are associated with this because where i work, they have ten copies of Macromedia flash MX!! (very lucky) but i prefer Swish becuase i find it easier..so they bought me copy..(lucky me)

    I have messed around with the preferences no luck..i have even tried just creating another movie with just a piece of text and fscommand still no luck, also i have tried different files with different locations and still does not execute...

    Thanks for your responses guys any other ideas...

  8. #8
    Senior Member
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    869
    Are we at least on the right track with the problem?
    I mean is the problem that you can't seem to associate the SWF and projector file to the player?

    If so, the only other thing I can think of is to reinstall Swish on top of the old version. Don't uninstall just reinstall again so you don't have any problems with serial numbers.


  9. #9
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    Hi Lisa

    Lisa,

    Thanks for your help so far, The association with swf is fine and runs in Flash player, and when i create a standalone projector exe file it is fine as well, the problem is when running fscommands to run seperate exe programs like for example winzip.exe and i click on the link, nothing happens the program does not execute.

    on (press)
    FS Command("Exec", "Winzip.exe")

    that should work right?? but it doesn't

    :0(

  10. #10
    Senior Member
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    869
    John1234,

    Well glad to hear you can at least see the SWFs and the projector file but as far as FSCommands are concerned, I have only used them on a few occassions and never to open another program.

    If you don't get any help here you may wish to take a look at Cadence's site at http://www.swish-tutorials.com, he's very good with everything Swish and much of Flash or you could try Ziggy's site over at http://www.total-impact.com

    Sorry I couldn't be of any help.

  11. #11
    Junior Member
    Join Date
    Nov 2000
    Posts
    16
    Was having the same problem.

    Info found at http://www.macromedia.com/support/fl...projectors.htm

    In Macromedia Flash MX the external application must be in a subfolder named 'fscommand'. This subfolder must be in the same directory as the projector which uses the fscommand action. This security restriction helps prevent malicious use of the exec option.

    The following script launches the Windows application someApplication.exe, which is in the fscommand folder on the same level as the projector:

    on (release) {
    fscommand ("exec", "someApplication.exe");
    }
    Note: The fscommand subfolder path is not used in the argument. Place someApplication.exe inside the fscommand folder, but just use the name of the application in the argument.


    Flash 5 is different.



  12. #12
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    Cheers!!! Zerok That worked!!!

    Cheers!!! Zerok That worked!!!


    One more problem though (sorry) how do you do sub folders within the Fscommand folder?? because i have alot of files that need to be in subfolders..

    any ideas??

  13. #13
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    Just for more info

    i have checked the the tech notes on macromedia and it says how to do it in flash 5 but not 6

    I have placed the EXE in the Fscommand folder and executed it and it has worked but if i create a sub folder ie Fscommand\programs
    then place FastDC.exe within the programs folder what do i then put in my Exec Fscommand...??

    i have tried the following..

    \programs\fastdc.exe
    .\programs\fastdc.exe
    ..\programs\fastdc.exe
    /programs/fastdc.exe
    ./programs/fastdc.exe
    ../programs/fastdc.exe

    please help...we are half way there!!!



  14. #14
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    please help me

    please help..

  15. #15
    Bending Unit 22 Danny Seager's Avatar
    Join Date
    Sep 2001
    Posts
    447
    have you tried?

    programs\fastdc.exe




  16. #16
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    ohh well!!

    that didn't work either..!!
    nightmare..

    any other ideas

  17. #17
    Member
    Join Date
    Jun 2002
    Posts
    63
    I'm having the same sort of problem, but I'm not as sorted out as john, i looked at the macromedia help file, but i don't understand what or where the projector IS.

    what is the actual folder where /FSCOMMAND should be in?
    (providing i used all the default locations when installing flash mx and player6)

    thx 4 ur time

  18. #18
    Junior Member
    Join Date
    Jul 2001
    Posts
    26

    please don't give up!!

    please don't give up!! help

  19. #19
    Bending Unit 22 Danny Seager's Avatar
    Join Date
    Sep 2001
    Posts
    447
    Originally posted by johnjohnbongo
    I'm having the same sort of problem, but I'm not as sorted out as john, i looked at the macromedia help file, but i don't understand what or where the projector IS.

    what is the actual folder where /FSCOMMAND should be in?
    (providing i used all the default locations when installing flash mx and player6)

    thx 4 ur time
    You have to put all the files you want to link to your projecter file in a folder called "fscommand" but you dont need to add that to your argument as that is where it looks by default.

  20. #20
    Junior Member
    Join Date
    Nov 2000
    Posts
    16
    Yeah, it's a bit dodge. I haven't been able to work out how to exec from subfolders. The only way I can see atm, is to use Flash 5.

    You would think they would make a way to do it from MX. There's not even mention of the fscommand folder in MX help. I also don't like how you have to use the folder 'fscommand', they could've thought of a better name

    Can't complain too much. Might go back to Flash 5.

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