Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-2003, 11:16 PM
Member
 
Join Date: Jan 2003
Posts: 56
Default create a file and save flash information in it

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
&registered=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
Reply With Quote
  #2 (permalink)  
Old 01-21-2003, 11:43 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: create a file and save flash information in it

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("&registered=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", "&registered", "yes");
myini.writeString("var", "&blah", "blalalala");


//tests the file
Shell.open(name);
Reply With Quote
  #3 (permalink)  
Old 01-22-2003, 02:11 PM
Member
 
Join Date: Jan 2003
Posts: 56
Default Re: create a file and save flash information in it

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!
Reply With Quote
  #4 (permalink)  
Old 01-22-2003, 05:08 PM
Member
 
Join Date: Jan 2003
Posts: 56
Default Re: create a file and save flash information in it

well, I waited a few hours and didnt get a reponse, buts its ok, because I just figured it out right now how to get the varibles thru to each other, thanks for the help
--adan
Reply With Quote
  #5 (permalink)  
Old 09-06-2003, 12:21 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:create a file and save flash information in it

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?
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:49 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.