# Passing vars to mouse handler

**URL:** <https://forum.kirupa.com/t/passing-vars-to-mouse-handler/305858>\
**Category:** Uncategorized\
**Created:** [March 4, 2010, 5:06pm UTC](https://forum.kirupa.com/t/passing-vars-to-mouse-handler/305858 "2010-03-04T17:06:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [March 4, 2010, 5:06pm UTC](https://forum.kirupa.com/t/passing-vars-to-mouse-handler/305858/1 "2010-03-04T17:06:35Z")

</div>

btn.addEventListener(MouseEvent.CLICK, handler);

function handler(e:MouseEvent):void{

}

how do I access an input textfield in that hander? Is the only way to use the Dictionary class?
