# Listbox question

**URL:** <https://forum.kirupa.com/t/listbox-question/101520>\
**Category:** Uncategorized\
**Created:** [February 10, 2004, 9:15pm UTC](https://forum.kirupa.com/t/listbox-question/101520 "2004-02-10T21:15:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![usa4](https://avatars.discourse-cdn.com/v4/letter/u/f9ae1b/32.png) [@usa4](https://forum.kirupa.com/u/usa4)\
**Post date:** [February 10, 2004, 9:15pm UTC](https://forum.kirupa.com/t/listbox-question/101520/1 "2004-02-10T21:15:02Z")

</div>

I am new at actionscripting so please bear with me.  
I am trying to create a listbox that a user can choose a list of monthly updates and once a specific month is chosen, it will goto and stop at a frame label. My labels in the list box have the same name as my frame label. I am using the following code:

function foo (myVar) {  
gotoAndStop(myVar.getSelectedItem().label);  
}

the problems I am facing:  
when I enter the following code  
function foo (myVar) {  
gotoAndStop(myVar.getSelectedItem(december).label);  
}  
as december is the first item in the listbox, it goes to and stops at the december frame label but how do I connect the next label - january so that it will associate with the january frame label?

thanking you in advance
