# comboBox + external textFile

**URL:** <https://forum.kirupa.com/t/combobox-external-textfile/176155>\
**Category:** flash\
**Created:** [January 20, 2006, 7:53pm UTC](https://forum.kirupa.com/t/combobox-external-textfile/176155 "2006-01-20T19:53:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timothye](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@timothye](https://forum.kirupa.com/u/timothye)\
**Post date:** [January 20, 2006, 7:53pm UTC](https://forum.kirupa.com/t/combobox-external-textfile/176155/1 "2006-01-20T19:53:24Z")

</div>

hi .  
i have a textField on the stage as well as a comboBox .  
i have populated the the comboBox and i have the text file working ( working with load vars () ) now i am trying to get the event handler ( onchange to load in the external textFile that i have . i cannot figure it out and my head is spinning .

```auto

// Add event listener and event handler function.
var cbListener:Object = new Object();
cbListener.change = function(evt_obj:Object):Void {
	var currentlySelected:Object = evt_obj.target.selectedItem;
	//trace(evt_obj.target);
	trace("data: "+currentlySelected.data);
	//trace("label: "+currentlySelected.label);
	userss_txt.htmlText=selectedItem.data
};
my_cb.addEventListener("change", cbListener);

```

this isnt working . cheers for the help  
:ch:
