# Help Targeting Combobox in an event handler

**URL:** <https://forum.kirupa.com/t/help-targeting-combobox-in-an-event-handler/310150>\
**Category:** flash\
**Created:** [June 2, 2010, 8:18pm UTC](https://forum.kirupa.com/t/help-targeting-combobox-in-an-event-handler/310150 "2010-06-02T20:18:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Immulsifier](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@Immulsifier](https://forum.kirupa.com/u/Immulsifier)\
**Post date:** [June 2, 2010, 8:18pm UTC](https://forum.kirupa.com/t/help-targeting-combobox-in-an-event-handler/310150/1 "2010-06-02T20:18:13Z")

</div>

Hi

I have a movieclip in my library called clip1 and inside it are a combobox and a button called combo1 and button1. I attach them like this:

```auto

for (var count = 1; count <= 5; count++) {
mc = new clip1 ();
addChild (mc);
}

```

I need to write an event handler that will trace out the label selected in the combobox when the button in the same movieclip as the combobox is pressed. Kind of hard to explain but can attach an fla if needed.

Thanks
