# Combo box question/help

**URL:** <https://forum.kirupa.com/t/combo-box-question-help/310995>\
**Category:** flash\
**Created:** [June 24, 2010, 7:34pm UTC](https://forum.kirupa.com/t/combo-box-question-help/310995 "2010-06-24T19:34:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robdalton](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@robdalton](https://forum.kirupa.com/u/robdalton)\
**Post date:** [June 24, 2010, 7:34pm UTC](https://forum.kirupa.com/t/combo-box-question-help/310995/1 "2010-06-24T19:34:57Z")

</div>

Hi Everyone.I have a (I’m guessing) very simple problem.  
I have a combo box, and when a item from the drop down is selected I want to jump to a frame label on the timeline…  
Thats it.  
I dont know how to go about setting it up.  
I think it must be something Im not doing within the component inspector…  
Ive given the combo box the instance name of myComboBox

here is the code I’m using:

myComboBoxListener = new Object();  
myComboBoxListener.change = function(eventObj)  
{  
var eventSource = eventObj.target;

```
var theSelectedItem = eventSource.target.selectedItem;
var theSelectedItemLabel = theSelectedItem.label;
       
trace ( "You selected "+theSelectedItemLabel+".");
switch (theSelectedItemLabel) {
case "Premier League":	
	gotoAndStop("Premier League");
	break;
case "League 1":
	movies.gotoAndStop("League 1");
	break;
case "League 2":
	movies.gotoAndStop("League 2");
	break;
case "League 3":
	movies.gotoAndStop("League 3");
	break;
case "League 4":
	movies.gotoAndStop("League 4");
	break;
case "League 5":
	movies.gotoAndStop("League 5");
	break;

}

```

}  
myComboBox.addEventListener (“change”, myComboBoxListener);

Any help would be GREATLY appreciated!  
Thanks,  
Rob
