all groups > flash data integration > december 2005 >
You're in the

flash data integration

group:

Flash to XML


Flash to XML peter atkinson
12/12/2005 10:59:36 AM
flash data integration:
I've just started putting xml and flash together and can take xml data and
display it in flash, but now I need to pass the information from flash back the
xml once it has been changed in the interface i have built in flash.

I've not seen any guides on this on the internet and was wondering if it is
actually possible to do? I know it can be done with ASP but in this case i
cannot use asp as the flash file wont be connected to the server that the
database is on while the flash file is in use.

So basically all i want to know is whether flash can get data from XML, the
user changes the data via the flash file i've created and then flash sends the
data back to the xml file.

Thanks :beer;
Re: Flash to XML ImagicDigital
12/14/2005 5:47:25 AM
You can probably do it with PHP. I recently implemented a simple web app that
takes data from XML, allows the user to change it, and writes it back to the
XML file. Motion Maker posted a link to a simple PHP/Flash combo that writes
to and reads from an XML file, here:


http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHP
EchoEx01_Doc.php

I modified the PHP script so that it wrote out an XML header as well as the
info from Flash to the "dump" file. I added to the actionscript a new
statusXML variable that loads and displays the xml doc at the beginning of my
movie, before any user input is made.

Come to think of it, I am really just reading the xml file and then
overwriting it when the user changes the data, because I only have one piece of
data per movie. But you can probably modify the PHP script to write
selectively to the XML, if you look for more info on it.
AddThis Social Bookmark Button