# Combobox/xml list

**URL:** <https://forum.kirupa.com/t/combobox-xml-list/180498>\
**Category:** Uncategorized\
**Created:** [March 1, 2006, 2:19am UTC](https://forum.kirupa.com/t/combobox-xml-list/180498 "2006-03-01T02:19:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbrollwitme](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@pbrollwitme](https://forum.kirupa.com/u/pbrollwitme)\
**Post date:** [March 1, 2006, 2:19am UTC](https://forum.kirupa.com/t/combobox-xml-list/180498/1 "2006-03-01T02:19:28Z")

</div>

hey all,  
I’m trying to have a combobox load a list of businesses defined by an xml file. The idea is that when you select a category in the combobox, an xml file is loaded and its child nodes are displayed in a list. Here is my code:

var thumb\_spacing = 10;  
listenerObject3 = new Object();  
listenerObject3.change = function() {  
value1 = categorycb.value;  
category\_xml = new XML();  
category\_xml.load(value1);  
category\_xml.ignoreWhite = true;  
category\_xml.onLoad = function() {  
var howMany:Array = new Array();  
howMany = this.firstChild.childNodes;  
if (howMany.length\>0) {  
for (var i:Number = 0; i\<howMany.length; i++) {  
currentLink = howMany\*;  
currentLink\_mc = \_root.textloader.createEmptyMovieClip(“links”+i, i);  
currentLink\_mc.\_y = i_thumb\_spacing;  
currentLink\_mc.createTextField(“links\_container”, 10);  
currentLink\_mc.links\_container.text = business;  
business = category\_xml.firstChild.childNodes_.attributes.business;  
}  
}  
};  
};  
\_root.categorycb.addEventListener(“change”, listenerObject3);

as you can see, i’ve tried to make each node its own movie clip. This, however, isn’t working. Anyone have any ideas???  
Thanks,  
Mat
