XML
Actionscript 3: How to use describeType() to Save an Object to XML
Submitted by ben.bishop on Tue, 10/16/2007 - 00:33.Needed Resources:
Final Product:
A base data holder class that will have a toXMLString() method and a parseXML() method to give its descendants the ability to generate a XML string or to instantiate themselves with a XML string.
Execution:
- After creating the class file
and constructor, create the toXMLString method:
public function toXMLString():String{
How to Read and Write XML files with Flex and AIR
Submitted by ben.bishop on Thu, 10/11/2007 - 18:43.Needed Resources:
- Adobe Flex Builder 3 or Flex Builder 3 plug-in for Eclipse
- The xml file attached to this post.
Final Product:
An AIR application with a load xml and save xml button. The load button prompts the user to find an xml file titled "person.xml." Once the user has selected the file, the first name and last name of the person will be displayed in two text inputs. The user can then edit these entries and save them back to the file using the save button.
