# Select comboBox item from outside

**URL:** <https://forum.kirupa.com/t/select-combobox-item-from-outside/177161>\
**Category:** Uncategorized\
**Created:** [January 30, 2006, 7:50pm UTC](https://forum.kirupa.com/t/select-combobox-item-from-outside/177161 "2006-01-30T19:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)\
**Post date:** [January 30, 2006, 7:50pm UTC](https://forum.kirupa.com/t/select-combobox-item-from-outside/177161/1 "2006-01-30T19:50:26Z")

</div>

Hey Kirupa people :pleased:

I’ve been messing around with the comboBox component, trying to found a solution to my problem.  
(simple setup)

```auto
//combo setup
var total:Number = 10;
combo.addItem({data:0, label:"Select"});
for (var l:Number = 0; l<total; l++) { 
combo.addItem({data:(l+1), label:"page"+(l+1)});
};

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

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

// Add Listener.
combo.addEventListener("change", cbListener);

test1_btn.onRelease = function() {
combo.target.selectedItem.label = "page3";	// not working!!
};

```

As you can see, I’m trying to ‘access’ the combo from outside - does anyone know if this is possible? (I’m trying to make a back- and forward button) 😉
