View Full Version : fscommand help
AndyJB
02-12-2009, 09:44 AM
I know there must be a ton of these and i have tried searching but it still doesnt work. Also sorry if this is the wrong board to post this in.
Im trying to link from 1 exe to another and i have used this command:
on (release) {
fscommand ("exec", "images.exe");
}
and it still doesnt work, i have tried placing it into the same folder but nothing... any suggestions?
oh... and im running flash 8 if that helps
northcode
02-12-2009, 05:20 PM
Your copy of images.exe will have to be in a folder called fscommand as described in the documentation for the EXEC fscommand. You may also want to read these posts from my blog for more information.
FSCommand EXEC is Broken in Flash CS3 (http://www.northcode.com/blog.php/2007/08/14/FSCommand-EXEC-is-Broken-in-Flash-CS3)
Conquering FSCommand EXEC (http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy)
FSCommand and getURL Bug in Flash Player 9 (http://www.northcode.com/blog.php/2007/09/11/FSCommand-and-getURL-Bug-in-Flash-Player-9)
AndyJB
02-12-2009, 06:00 PM
Images.exe is in the fscommand folder and still wont work...
northcode
02-12-2009, 09:03 PM
If you're using Flash 8 and not just publishing to SWF8 then you should not be having a problem.
You MUST publish your FLA as an EXE, fscommand EXEC will not work from a SWF.
Put some other code in the button release handler to make sure it's getting called. It happens :)
AndyJB
02-12-2009, 09:56 PM
sorry for being a hastle but i dont use flash very often... i have been publishing it as an exe but what do u mean about the button release handler??
northcode
02-12-2009, 11:54 PM
If everything else is right, the most common mistake I've seen is the on release handler not being called when you think it should have been called. Instead of just the fscommand in there, try adding some code that changes something on the stage so you KNOW it got called.
on (release)
{
// this is the release handler (for button or movieclip)
}
AndyJB
02-12-2009, 11:58 PM
ok thanku, did try load but didnt work.. but like i said i dont use flash that much so i dont know much coding for it, any suggestions for codes would be greatly appreciated :)
northcode
02-13-2009, 08:17 PM
Here's a simple example (http://www.northcode.com/misc/execdemo.zip.) I posted on my site for you.
Inside the ZIP file is an FLA, SWF, EXE and an fscommand folder with a file called images.exe. The images.exe is a renamed version of my WhoAmI utility which just displays a message box showing its command line and where it was started from.
The movieclip in the FLA has an on release handler that executes an fscommand and rotates the movieclip by 45 degrees for some visual feedback.
Let me know if this works for you.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.