# Combo Box Help, Pleaseeeee

**URL:** <https://forum.kirupa.com/t/combo-box-help-pleaseeeee/98529>\
**Category:** Uncategorized\
**Created:** [January 8, 2004, 5:02am UTC](https://forum.kirupa.com/t/combo-box-help-pleaseeeee/98529 "2004-01-08T05:02:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahesh\_r](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mahesh\_r](https://forum.kirupa.com/u/mahesh_r)\
**Post date:** [January 8, 2004, 5:02am UTC](https://forum.kirupa.com/t/combo-box-help-pleaseeeee/98529/1 "2004-01-08T05:02:59Z")

</div>

Hi,

I have a Combo Box with label Name “combobox\_cb”. This Combo Box actually displayes image inside a Scrollpane when a lable is selected. Please check this code. The scrollpane is linked to a Movieclip symbol called scrollContentSymbol

//script-------------------------------------  
//labels to be displayed in the lisbox  
var label\_arr =[  
“my file 1”,  
“my file 2”,  
“my file 3”  
]

//data that you’ll use to load  
var data\_arr =[  
“image01.jpg”,  
“image02.jpg”,  
“image03.jpg”  
]

var dp = new DataProviderClass()  
var max = labels.length  
for(var n =0; n\<max;n++) {  
var obj = {  
label:label\_arr[n],  
data:data\_arr[n]  
}  
dp.addItem(obj)  
}

onItemSelect = function () {  
var imgSrc = comboBox\_cb.getSelectedItem().data  
scrollpane\_sp.loadScrollContent(imgSrc,“onScrollContentLoaded”,this)  
//display loading screen here  
}

onScrollContentLoaded = function () {  
trace(“content finished loading”)  
//hide loading screen here  
}

THanks  
mahesh
