Grig
04-30-2004, 08:24 AM
I'm writing an app that is compiled and downloaded as an EXE. The EXE wrapper is created using SWF Studio. SWF Studio allows me to save files to the local computer through a series of fscommand calls.
I had this working before, but I've _lost_ the code snippet I had for this. It required 2 things: that the function calls happen on the canvas' script tag AND a special flag to be set before the FSCOMMANDs are called.
I've been hunting around for this all morning and can't find anything. Can someone at Laszlo answer this one for me?
Here's an example of a readfile script:
function readFile(){
_level0.result = "?";
fscommand("Arg","_level0.result");
fscommand("Arg", _level0.ssStartDir + "\\userdata.dat");
fscommand("FILESYS2.READFILE","");
}
I just need a way to enable the fscommand calls.
Thanks! :)
I had this working before, but I've _lost_ the code snippet I had for this. It required 2 things: that the function calls happen on the canvas' script tag AND a special flag to be set before the FSCOMMANDs are called.
I've been hunting around for this all morning and can't find anything. Can someone at Laszlo answer this one for me?
Here's an example of a readfile script:
function readFile(){
_level0.result = "?";
fscommand("Arg","_level0.result");
fscommand("Arg", _level0.ssStartDir + "\\userdata.dat");
fscommand("FILESYS2.READFILE","");
}
I just need a way to enable the fscommand calls.
Thanks! :)