# Passing an argument using addEventListener

**URL:** <https://forum.kirupa.com/t/passing-an-argument-using-addeventlistener/293411>\
**Category:** Uncategorized\
**Created:** [July 28, 2009, 4:17pm UTC](https://forum.kirupa.com/t/passing-an-argument-using-addeventlistener/293411 "2009-07-28T16:17:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![screeg](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@screeg](https://forum.kirupa.com/u/screeg)\
**Post date:** [July 28, 2009, 4:17pm UTC](https://forum.kirupa.com/t/passing-an-argument-using-addeventlistener/293411/1 "2009-07-28T16:17:40Z")

</div>

Sorry if this is a no-brainer. The transition from AS2.0 to 3.0 has been a long and broken trail for me.

Is there a way to pass arguments to a function via addEventListener, like (but unlike) this:  
**timerTurn.addEventListener(TimerEvent.TIMER, moveUnit, “unitname”, “unitdirection”)**

where **moveUnit** is the function I want triggered, and **“unitname”** / **“unitdirection”** are the arguments?
