|
|||
|
hello,
I'm interested in buying your application, but I've been messing around with the FFish scripts with the movie and have been able to do some cool things, but I would like to know how exactly would you create a file, and save flash varible lines in it. I would like to have this program I'm making build flash objects, and then save them along with a text file containing the varibles for the flash movie to import (which I already know how to get the variables into flash, but I need to know how to create the files), e.g.: &name=mark ®istered=yes &blah=blalalala And if you can spare the time, would you be able to tell me how I may be able to create a flash movie? This would very much help my project advancement and also most likely influence me to buy your program. ![]() Thanks, Adan |
|
|||
|
Code:
//creates a tmp file and writes the variables into it
var path = Shell.getSpecialFolder("temp");
var name = path + "\\1.txt";
trace(name);
var f = new FileStream(name, "w");
f.writeLine("&name=mark");
f.writeLine("®istered=yes");
f.writeLine("&blah=blalalala");
f.close();
//tests the file
Shell.open(name);
or Code:
//creates a tmp file and writes the variables into it
var path = Shell.getSpecialFolder("temp");
var name = path + "\\1.ini";
var myini = new Ini(name);
myini.writeString("var", "&name", "mark");
myini.writeString("var", "®istered", "yes");
myini.writeString("var", "&blah", "blalalala");
//tests the file
Shell.open(name);
|
|
|||
|
many thanks for the quick help!
I have a few more questions, although I've tried to solve some, I find you might be my only help, heh ;D Anyway, here it is: When I try to pass varibles between flash and ffish script so it can write them into the text file using that great helping code you supplied, I can't seem to get the link between em to work. How would you pass textfield varibles from flash into ffish for writing into the text file? many thanks for any help you may provide! |
|
|||
|
A simular question
In flash there's an object with some vars. for example. test = new object test.name = fsdfs test.age = 14 test.... = .... Is there a way to transfer the object with all the vars to swfkit without calling upon all the vars seperatly, with one command? |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|