# Combobox wont go to function or data problem?

**URL:** <https://forum.kirupa.com/t/combobox-wont-go-to-function-or-data-problem/83006>\
**Category:** Uncategorized\
**Created:** [March 15, 2005, 9:59am UTC](https://forum.kirupa.com/t/combobox-wont-go-to-function-or-data-problem/83006 "2005-03-15T09:59:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![froetloep](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@froetloep](https://forum.kirupa.com/u/froetloep)\
**Post date:** [March 15, 2005, 9:59am UTC](https://forum.kirupa.com/t/combobox-wont-go-to-function-or-data-problem/83006/1 "2005-03-15T09:59:52Z")

</div>

i have a problem with my combobox

code:

var images = xmlNode.childNodes\*.childNodes[3].childNodes.length ;  
for (img=0; img\<images; img++) {  
Name= “image” + img;  
imageloc = xmlNode.childNodes\*.childNodes[3].childNodes[img].firstChild.nodeValue;

list.addItem({label:Name, data:imageloc});  
[//dropDown.setChangeHandler](https://dropDown.setChangeHandler)(“SelectItem”);  
trace (Name);  
trace (imageloc);  
dropDown.addItem(Name, imageloc );

}  
dropDown.setChangeHandler(“SelectItem”);

function SelectItem(){  
imageloc2 = ( dropDown.getSelectedItem().data);  
\_root.imagearea.loadMovie(imageloc2, 1);  
}

what have i done wrong? it loads the names perfectly …  
my guess its the data where it goes wrong

but it doesnt seem to recognise the  
dropDown.setChangeHandler(“SelectItem”);

or it wont call the function

please help me out.
