i posted this in a thread in the XML section, but it's a ghost town.
let's say i want to change product b's price from 1.25 to 2.25... what method do you use in flash to accomplish this? i know createElement("name") makes a new element, but i'm wanting to update a current one.
i assumed this would work...
PHP Code:
this.firstChild.childNodes[0].nodeValue = "2.25";
it does, but just in flash. as soon as i reload the flash file, it's back to 1.25 and the xml file never changes.
mystore.xml
--------------
PHP Code:
<store>
<product name="product a">
<type>vegetable</type>
<price>5.50</price>
</product>
<product name="product b">
<type>fruit</type>
<price>1.25</price>
</product>
<product name="product c">
<type>meat</type>
<price>8.50</price>
</product>
</store>