Really hope someone can give me an answer to this - I just don’t understand the XML (provided to me):
I have a Flash document for a Real estate site, with movies that load into areas (called “tiles”).
These movies have an image loader, text and combobox components that need to read in realtor and home values from an XML file. How do I do this? I really need an example using this XML … Here is the XML file:
<content>
<document>
<bgcolor>000000</bgcolor>
<bgimage>images/bgimage.jpg</bgimage>
</document>
<tiles>
<maintile bgcolor=“0f0f0f” title=“mainhouse”>
<mainimage>
images/bgimage.jpg
</mainimage>
<price color=“ff0000”>$1,999,999</price>
<payments>
<mortgage type=“30 Year Fixed” apr=“6.625”>
<payment down=“5”>$4,559</payment>
<payment down=“10”>$3,559</payment>
<payment down=“20”>$2,559</payment>
</mortgage>
<mortgage type=“15 Year Fixed” apr=“6.25”>
<payment down=“5”>$4,559</payment>
<payment down=“10”>$3,559</payment>
<payment down=“20”>$2,559</payment>
</mortgage>
<mortgage type=“5/1 Libor ARM” apr=“5.75”>
<payment down=“5”>$4,559</payment>
<payment down=“10”>$3,559</payment>
<payment down=“20”>$2,559</payment>
</mortgage>
</payments>
<description>
<brief>“Charming Mediterranean In The Hills”</brief>
<address>6384 Main Street
City Name, State 90000</address>
<mls>06-008838</mls>
</description>
<realtorinfo>
<company>
<name>Coldwell Banker, Beverly Hills</name>
<logoimage>images/logo.gif</logoimage>
</company>
<realtor name=“Realtor Name”>
<image>images/realtor.jpg</image>
<name>Realtor Name</name>
<phones>
<phone name=“Office”>111.555.1212</phone>
<phone name=“Mobile”>111.555.1213</phone>
</phones>
<emails>
<email name=“FirstName”>name@cdwell.com</email>
</emails>
</realtor>
</realtorinfo>
</maintile>
<virtualtourtile>
<image name=“kitchen”>images/int1.jpg</image>
<image name=“front”>images/ext1.jpg</image>
<image name=“garage”>images/int2.jpg</image>
<image name=“back”>images/ext1.jpg</image>
</virtualtourtile>
<homestatstile>
<stat name=“bedrooms”>3 Bedroom</stat>
<stat name=“baths”>2.5 Baths</stat>
<stat name=“livingroom”>Living Room</stat>
<stat name=“ceilings”>Vaulted Ceilings</stat>
</homestatstile>
<areastatstile>
<areastats>
<stat name=“schools”>Near Highschool</stat>
<stat name=“parks”>Near parks</stat>
</areastats>
<projectedvalue>
<value years=“5”>$2,500,000</value>
<value years=“10”>$3,000,000</value>
<value years=“20”>$6,000,000</value>
</projectedvalue>
</areastatstile>
</tiles>
</content>
…I got only this far with the actionscript in Flash which I borrowed from somewhere 
var comboXML:XML = new XML();
//Create an instance of the XML Object called “comboXML”
comboXML.ignoreWhite = true;
comboXML.onLoad = function()
{
var howMany:Array = new Array(); //An array to store the nodes of the XML document
howMany = this.firstChild.childNodes;
if(howMany.length > 0) //If we have more than 0 results.
{
for(var i:Number =0; i < howMany.length; i++){
myCombo.addItem(this.firstChild.childNodes*.attributes.realtors); //Add Items to the ComboBox
}
}
}
comboXML.load(“realtors.xml”); //Load the XML File
… what should I do to make this work??? HELPPPPP!!!