# addEventListener question

**URL:** <https://forum.kirupa.com/t/addeventlistener-question/242300>\
**Category:** flash\
**Created:** [October 24, 2007, 3:52pm UTC](https://forum.kirupa.com/t/addeventlistener-question/242300 "2007-10-24T15:52:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![absolutezero342](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@absolutezero342](https://forum.kirupa.com/u/absolutezero342)\
**Post date:** [October 24, 2007, 3:52pm UTC](https://forum.kirupa.com/t/addeventlistener-question/242300/1 "2007-10-24T15:52:11Z")

</div>

When you use addEventListener functions, is there any way to add parameters to the function that is called? for example:

```auto

some_mc.addEventListener(Event.ENTER_FRAME, onEnterFrame);
 
function onEnterFrame(e:Event):void {
    // some code...
}

```

is there any way to add parameters to the function “onEnterFrame” other than the event parameter? if so, how do you handle this? could you provide an example? Thx!
