# ComboBox Problem

**URL:** <https://forum.kirupa.com/t/combobox-problem/152038>\
**Category:** flash\
**Created:** [June 20, 2005, 7:24pm UTC](https://forum.kirupa.com/t/combobox-problem/152038 "2005-06-20T19:24:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mad\_man](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mad\_man](https://forum.kirupa.com/u/mad_man)\
**Post date:** [June 20, 2005, 7:24pm UTC](https://forum.kirupa.com/t/combobox-problem/152038/1 "2005-06-20T19:24:28Z")

</div>

Hello,  
i wanna make it where when u click on an item on the combobox component it shows the value on the textbox.  
here is wut i have:

var gameClickListenerObject:Object = new Object();  
gameClickListenerObject.change = function(eventObject) {  
var game:Object = eventObject.target.value;  
msgBox.text = game.Name.value + " ";  
};  
gameListBox.addEventListener(“change”, gameClickListenerObject);

and i add values to the combobox like this:  
gameListBox.addItem(fullName,[gameName]);

but when i click the textbox shows undefined.

Thanks.
