PDA

View Full Version : How do I export variable values to a txt file?


Amateurgamewright
09-29-2006, 03:37 AM
Hello World!

I am an amateur gamewrite (as the name implys). I have been hobbying away at an rpg (it's kinda neat, if I do say so myself). However, I have developed a incredible urge to make save files for the game.

My battleplan is to export the values of various variables to an external file (I'm thinkin' txt, though I am open to suggestions...).

my problem is that I have no idea how to do this. I have some idea that it has something to do with loadVariables() method, but I can't get it to work...:mad:

Help me please!!!

Cota
09-29-2006, 03:49 AM
WriteToFile tutorial,
http://actionscript.org/forums/showpost.php3?p=421960&postcount=70

Amateurgamewright
09-29-2006, 03:00 PM
Thank you Cota!!!

(I'll try not too bother you people that much any more...)

Cota
09-29-2006, 08:28 PM
Thats what we are here for. If you dont understand something or cant figure out why something isnt working, ask away.

icktoofay
10-06-2006, 04:21 AM
uhhhhhhhhhhhhhhh...
i dont think you can write to a file on the client machine in flash, and still, it probably has to be a program

Cota
10-06-2006, 04:32 AM
no not the client side of things, thats for the server..web security is based around the server-side and client-side being seperate.

nakedkafka
10-15-2006, 12:03 AM
the PHP scripts worked magic, this tutorial is great.
thanks alot keep up the good work, dudes

Flash Gordon
10-15-2006, 12:09 AM
;)

ctxcrossx
10-15-2006, 04:15 AM
Hmm...I am making a flash program that will be run through a Macintosh projector. I was hoping to have it be able to write to and read from a file on the computer. It sounds like this may not be possible. Any info would be great. I am using flash mx, by the way.

Thank you.

Chris

Flash Gordon
10-15-2006, 06:32 AM
need to you a program like C, something like that, or use " Zinc" which is a rather nice product for what you are asking. it isn't too expensive either.

ctxcrossx
10-15-2006, 02:58 PM
What about this example?

http://moock.org/asdg/technotes/saveDataToDisk/

I am in the process of trying to figure out how it works, but it does seem to save things for later retrieval. Where does this info get saved? Are there any drawbacks?

Thanks again.

Chris