|
-
Senior Member
loadVars and .txt Files
Hello,
I used to know how to send variables to a text file. I forgot now, so this is why I am asking... This is all done on my PC, nothing to do with html or php or anything over the internet. I have a text file named "astats.txt" and I can load all of the variables inside easily... I used this.
Code:
_root.A = new LoadVars();
_root.A.load("Notepads/astats.txt");
Now, I cant seem to send the variables that are in the object A back to astats.txt ... I would like it to be sent back and overwrite the existing variables.
Ive tried to use _root.A.send("Notepads/astats.txt","POST"); But that keeps freezing flash...
Would it be easier to use Shared Object? ... There are quite a bit of variables... And as I asid this WONT run on the internet..
Any ideas? I really hope that someone can help ... Thanks to all of you Flash Gurus I have been able to have most if not all of my questions answered ^_^ ...
Peace,
~Bill
So many Ideas
So little Time
-
Senior Member
It was only possible in the Flash 5 projector ( exe ).
In MX or later you would use Local Shared Objects instead ( like cookies ) that write and retrieve variables from and to a textfile ( that you dont need to name ).
http://www.kirupa.com/developer/mx/sharedobjects.htm
http://www.bestflashanimationsite.com/tutorials/4/
-
Senior Member
Are you sure about that? I mean, I am almost sure that I have done it before...
Anyway, even so... I used .dat files in java, will dat files work in flash? ... Just a thought...
So you are absolutly sure that it is not possible in flash mx?
Thanks,
~Bill
So many Ideas
So little Time
-
Senior Member
Yes, you can make a search on this board, It has been discussed in many threads. It was a undocumented feature of Flash 5 for PC. ( fscommand "save" ).
I have no idea about .dat files, but they would probably not work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|