# Accessing a combobox from within a function

**URL:** <https://forum.kirupa.com/t/accessing-a-combobox-from-within-a-function/302254>\
**Category:** flash\
**Created:** [December 24, 2009, 10:57am UTC](https://forum.kirupa.com/t/accessing-a-combobox-from-within-a-function/302254 "2009-12-24T10:57:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noobie123](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@noobie123](https://forum.kirupa.com/u/noobie123)\
**Post date:** [December 24, 2009, 10:57am UTC](https://forum.kirupa.com/t/accessing-a-combobox-from-within-a-function/302254/1 "2009-12-24T10:57:04Z")

</div>

I have a combo box defined inside a function and want to access it from a function that is called on the OnChange event of the combo box.

combo1.addEventListener(Event.CHANGE, chkAnswer);

How do I access combo1 from function chkAnswer? In other words, what is the equivalent of this.value in as3?
