-
loadvariables to .txt
im using this code..
on(press) {
_root.loadVariables("info.txt","id","POST");
}
and it wont work.
on press of the button, i want it to POST the information from the "id" input text field into the "info.txt" file. the info.txt is in the same folder on my computer as the swf when publish it. whats going wrong?
-
-
Flash can not write to a designated textfile ( well., the Flash 5 Projector can, locally ). You have to use a serverside script for that ( if its on a server ). You can read variables from textfiles though.
Flash MX can save "cookies" though, and they are stored locally on the computer. Its called Shared Objects.Lots of threads about it here.
-
do you know of one thread in particular that would be useful for me?
-
It would depend on what script your server supports. I use the FlashDB (cgi) script from www.kessels.com to update textfiles for highscores, news, guestbooks and so on. It works on Win2000 and Unix servers and is relatively easy to set up.
Easiest would be a php script I think.
You might want to make a search on this site ...
http://www.flashkit.com/board/search...der=descending
....or try google.
-
well do you know of any freedomains that would support the .cgi?
-
Sorry, I only know Swedish servers and the ones that are free only supports php.
-