# Selecting Combobox item with AS, not mouse?

**URL:** <https://forum.kirupa.com/t/selecting-combobox-item-with-as-not-mouse/240265>\
**Category:** flash\
**Created:** [October 1, 2007, 1:58pm UTC](https://forum.kirupa.com/t/selecting-combobox-item-with-as-not-mouse/240265 "2007-10-01T13:58:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iphotostuff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/iphotostuff/32/2368_2.png) [@iphotostuff](https://forum.kirupa.com/u/iphotostuff)\
**Post date:** [October 1, 2007, 1:58pm UTC](https://forum.kirupa.com/t/selecting-combobox-item-with-as-not-mouse/240265/1 "2007-10-01T13:58:34Z")

</div>

How do I dynamically select an item from my combo box? I have a number of them built off of XML, everything works great, but depending on a users settings the default state from my combo boxes may be different. How do I select an item within the combo box with AS instead of dropping down and selecting with my mouse?

It seems that cb.getItemAt(1).label; only returns the data at that index, it doesn’t “select” that item, move it to the top of the list and activate my cb\_Listener.change function. Any bright ideas? Something like this would be ideal:

cb.selectLabel(“label name one”);

Thanks folks.
