This content has been marked as final. Show 6 replies
I'm actually having the same problem (adding an argument to the fscommand)
i'm a little disappointed no one replied to your question, because i've looked all over the internet and haven't found much help.
I have a partial solution (which might totally fix your problem)
use another language (I'm using c++) to make a small .exe program that doesn't require aruguments. You could then use the shellExecute command (or any other command that runs an external application) to run flash player. Since ShellExecute can take arguments, you could open a specific file in flashplayer.
unfortunately for me, this doesn't totally solve my problem (i'm trying to allow flash to save variable date to a .txt file)
since the c++ file needs to know what data to save, my fscommand call needs to have arguments.
Does anyone on the forum know how to add arguments to fscommand (or ExternalInterface.call)?
I'm not entirely sure what you guys are having problems with, but I am doing something similar. Basically, I'm creating a Flash menu which will autorun when a user inserts a disk into their computer. But in order to do that, I created an exe using Visual Basic which has an ActiveX Flash component. You might find that something similar will work well. It's a standalone exe, so it should have no problems executing on any Windows system with Flash installed. It should also be able to load any movie, though that is more on the Visual Basic side of the coding than the Flash side. As for saving something to text files, I'm under the impression that Flash itself has a very limited capability for writing information to files. However, it should be able to send long, extended, fscommands to the "wrapping" Visual Basic exe. The exe can create the file and write out to it, while the Flash animation tells the exe what to write. You can include arguments to fscommand:
But I don't know if this will help - or if it is even relevant ^^;.
the only problem is that to run fscommand, the "command" is "exec" and the argument is "whatever.exe"
arguments to "whatever.exe" don't seem to be possible
what would like to do is to add variables as arguments to the .exe, and then have the .exe save the variables in a .txt file, which flash can load using the loadVars class
there must be some kind of syntax (like a "-" or "&") to add arguments to fscommand
Does your Flash animation know the value of the variables? It is possible to run:
fscommand("exec", "whatever.exe command_line_argument_1 argument_2");
Alternatively, it is possible to write into your executable:
where it is understood by your executable that the $ symbol is a delimiter between tokens in your string and that the first token is the executable while the following tokens are arguments. You would have to write the code to split the "argument" string, though.
I just found out (after hours of research) that for security reasons, flash mx and flash 8 disabled putting arguments into the fscommand function. apparently some people made a flash virus a while back using flash 5, so macromedia (or adobe?) disabled the save() command and putting arguments into fscommand.
So much for that...
You can do this by using Jugglor.
FlashJester Support Team
e. - firstname.lastname@example.org
w. - http://www.flashjester.com
There is a very fine line between "hobby" and