fscommand- FLASH MX PRO

  • hireanil
  • Newbie
  • Newbie
  • User avatar
  • Posts: 5

Post 3+ Months Ago

hi all,

1. I am using flash mx pro 7.2, (slide presentation )

2. I am having multiple button component on the stage.

3. I have an external quiz.exe file which is made in Flash MX which will open after i click on the button called Self Assessment

4. on one of the flash site i found this see below

Code: [ Select ]
on (release)
{
     fscommand ("exec", "launcher.bat");
    trace ("launcher.bat");

}
  1. on (release)
  2. {
  3.      fscommand ("exec", "launcher.bat");
  4.     trace ("launcher.bat");
  5. }


and

LAUNCHER.BAT
Code: [ Select ]
START allreg/quiz.exe


its not working please mail me the details.......
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

When usingthe exec fscommand, the file you are attempting to launch must be in a folder called 'fscommand' in the same directory as the projfector file you are calling it from.
  • hireanil
  • Newbie
  • Newbie
  • User avatar
  • Posts: 5

Post 3+ Months Ago

Thanks a lot

I could only manage to get it this way

Code: [ Select ]
on (release)
{
    geturl ("quiz.exe");
}
  1. on (release)
  2. {
  3.     geturl ("quiz.exe");
  4. }


the only hindrance is that when clicked on button it POPS-Up with open save dialog box, and on pressing OPEN it opens.

is this the right way to open such external appliaction files.

Thanks a lot once again.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

no, fscommand is how to open .exe files from flash.

Well... actually it depends on how you are doing it.

fscommand exec capabilities are for Flash projector files... which are .exe versions of Flash, you can publish them in File/Publish Settings. If you publish your projector file, and you want to open the quiz.exe file you will need to create a subdirectory called 'fscommand' in the same directory as your .exe projector file and place quiz.exe in there. Now, I never use this, so I don't know how to target it, but it would either be
Code: [ Select ]
fscommand("exec", "fscommand/quiz.exe");
or [code]fscommand("exec", "quiz.exe");[/quote] If you are trying to do this from a .swf file, you will have to use a getURL() and request them to manually download and open the file.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.