# Passing more argument on event Listener

**URL:** <https://forum.kirupa.com/t/passing-more-argument-on-event-listener/308352>\
**Category:** Uncategorized\
**Created:** [April 21, 2010, 12:40pm UTC](https://forum.kirupa.com/t/passing-more-argument-on-event-listener/308352 "2010-04-21T12:40:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ventoline](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@ventoline](https://forum.kirupa.com/u/ventoline)\
**Post date:** [April 21, 2010, 12:40pm UTC](https://forum.kirupa.com/t/passing-more-argument-on-event-listener/308352/1 "2010-04-21T12:40:02Z")

</div>

Hi there,

I am wondering what is the way of passing and argument to a listener… doing something like this:

```auto

myThing.addEventListener(Event.COMPLETE, doThis(arg));

function doThis(e:Event, arg:int){
...
}

```

What is the proper way, i this doesnt really brake the code, it doesnt work either…
