PDA

View Full Version : edit textfile from flash..



pixeldude
October 16th, 2005, 05:26 PM
Ello everyone ..
ok I just load data from textfile into my flash file..so my problem is..how is it in flash I have to code so that I can edit the loaded data from textfile and then when I submit it'll update the data in textfile...of course I'm using php for writing in textfile...Currently I load the data into listbox from my textfile.....

is it possbile to edit the data from flash...????

tq

Phlashman
October 16th, 2005, 08:34 PM
Yeah! Just use the loadVars class. So you'd make a new loadVars, and have your form. A textinput that you would type your content in would be put into the loadVars to send to your form. Then use the loadVars.sendAndLoad(args) function to send your data to the PHP file, and then get the results of the PHP file also (which is unimportant in this application).

pixeldude
October 18th, 2005, 11:13 AM
Yeah! Just use the loadVars class. So you'd make a new loadVars, and have your form. A textinput that you would type your content in would be put into the loadVars to send to your form. Then use the loadVars.sendAndLoad(args) function to send your data to the PHP file, and then get the results of the PHP file also (which is unimportant in this application).
I think u misunderstanding my question...I know how to pass a input data using loadVars..ok my problem is...how to edit data that I load from textfile into textarea..is it I can use sendandload also to updating data in textfile...or using database is the best method...

tq anyway..