Populating combobox via XML

Hi all,

I’m trying to populate a combobox via an external XML file. Now I can get it to work when I make my XML like this


<?xml version="1.0" encoding="utf-8"?>

<data>
<item label="bla" data="bla.html"/>
</data>

… and my flash 8 actionscript looks like this …


comboXML = new XML();
comboXML.ignoreWhite = true;
comboXML.onLoad=function() {
    var props=this.childNodes[0].attributes;
    var info = this.childNodes[0].childNodes;    
    for (var i=0; i<info.length; i++) {
        myComboBox.addItem( {label:info*.attributes.label, data:info*.attributes.data} );
    }
}
comboXML.load("myxml.xml");

No I’ve got a second XML, made like so…


<?xml version="1.0" encoding="utf-8">

<data>
<items>
<spotX>123</spotX>
<spotY>321</spotY>
<spotName>name</spotName>
</items>
</data>

Now what I would like to achieve is that my combobox gets populated with the childNode spotName, but everytime I try this, I get undefined stated in the combobox.

Someone here that can put me on the right path?