PDA

View Full Version : Add and Remove to XML file via Flash Actionscript


Carl_FK
07-04-2006, 11:49 AM
Hi All,

I've got a couple of forms that I've created in Flash Professional 8 and I need to add and remove data from/to an XML file. What do you reckon is the best way to go about doing this?

I'm thinking...
Use the flash actionscript to submit the form to a PHP script which will add to the xml file using its fopen() and fwrite() functions (etc.)
Is there a better way of doing this/doing it directly from actionscript to XML?
Some examples/links would be most appreciated.

Best regards,

ealbrecht
07-04-2006, 04:15 PM
Reading in the XML from Actionscript is not a problem. Due to security reasons writing to an XML file can only be done through a server-side page, in your case PHP.

Carl_FK
07-04-2006, 05:29 PM
Thanks, got it sorted with the original method =]