bbonnet18
04-24-2005, 01:09 AM
I just started working with XML. I understand the idea of creating objects, but I can't seem to display any of my information in flash once I load it. I need to know how to get the values from the XML object to the interface so the user can see it. I can't even display the values with the trace command. My code for the XML and flash are below, please help me out.
XML Code from file- thisFile.XML:
<MyValues>
<Name>Joe Johnson</Name>
<Name>Susie Sanchez</Name>
<MyValues>
Flash Code that loads the above XML file into the flash movie:
myXML = new XML();
myXML.load("thisFile.XML");
_root.myVar = myXML.firstChild;
I really need to know how to get to the actual name "Joe Johnson" from my first child node and display that on the screen. Please let me know what I'm doing wrong.
XML Code from file- thisFile.XML:
<MyValues>
<Name>Joe Johnson</Name>
<Name>Susie Sanchez</Name>
<MyValues>
Flash Code that loads the above XML file into the flash movie:
myXML = new XML();
myXML.load("thisFile.XML");
_root.myVar = myXML.firstChild;
I really need to know how to get to the actual name "Joe Johnson" from my first child node and display that on the screen. Please let me know what I'm doing wrong.