PDA

View Full Version : Read/Write XML Data


mauddib
12-30-2008, 01:42 AM
I have an XML file with data like this:
<email plays="6">user@domain.com</email>

I need Flash to update the XML file for how many times the user@domain.com played. So if they played the game 4 times, then "plays" in the XML file should be changed to "2". I know, in order for Flash to change the XML, Flash requires a server side script.

What I need is to figure out how to export the data from Flash to PHP. I also need a PHP script, since I can't find anything short and sweet that just writes a small amount of data to XML.

Also, I'd like to figure out how this whole thing would work with multiple users using the same XML and Flash file. What happens when 2 users are trying to write the XML at the same time or one is trying to read it while another is writing it?

Anil_kumar
12-30-2008, 05:56 AM
hi

have a look @ the source file of this prgm

Flash CS3 - XML Guestbook (AS3)
http://flash-workshop.blogspot.com/2008/09/flash-cs3-xml-guestbook.html

test it in you local host or a web server

it works

Anil