# Retrieve node values from combobox

**URL:** <https://forum.kirupa.com/t/retrieve-node-values-from-combobox/297592>\
**Category:** flash\
**Created:** [October 5, 2009, 7:03pm UTC](https://forum.kirupa.com/t/retrieve-node-values-from-combobox/297592 "2009-10-05T19:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cortezcreations](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cortezcreations](https://forum.kirupa.com/u/cortezcreations)\
**Post date:** [October 5, 2009, 7:03pm UTC](https://forum.kirupa.com/t/retrieve-node-values-from-combobox/297592/1 "2009-10-05T19:03:32Z")

</div>

I have populated a comboBox dynamilcally from an xml file. When a user selects an item from the comboBox, I want to search the XML nodes and retrieve an attribute of that node.  
At the moment I had this working correctly by storing the value in a \_global variable and using the info in a function.

```auto

// Create Listener Object.
var cbListener:Object = new Object();

// Assign function to Listener Object.
cbListener.change = function(evt_obj:Object) {
	trace("Value changed to: "+event_obj.target.selectedItem.label);
};

cbList.change = function(eventObj) {
	_global.Uni = (eventObj.target.value);

```

This technique won’t suffice as we are changing languages around.  
How would I use eventObj to target the desired node value?  
A point in the right direction would be greatly appreciated.
