# AS3 - How can I send parameters to another function through addEventListener?

**URL:** <https://forum.kirupa.com/t/as3-how-can-i-send-parameters-to-another-function-through-addeventlistener/207848>\
**Category:** flash\
**Created:** [November 22, 2006, 3:09am UTC](https://forum.kirupa.com/t/as3-how-can-i-send-parameters-to-another-function-through-addeventlistener/207848 "2006-11-22T03:09:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fingers](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Fingers](https://forum.kirupa.com/u/Fingers)\
**Post date:** [November 22, 2006, 3:09am UTC](https://forum.kirupa.com/t/as3-how-can-i-send-parameters-to-another-function-through-addeventlistener/207848/1 "2006-11-22T03:09:17Z")

</div>

Here I’ve got this bit of code that works alright, but I would prefer to have the parameters that are being sent through myTween.tweenMe(\_text, 40, 300, 150, 100, 4000) originate instead with the call to tweenerIt. The problem seems to be that the tweenerIt function needs to receive the e:Event parameter, which is some sort of ‘behind the scenes’ type of thing that I don’t fully understand. If I try putting … \_text.addEventListener(MouseEvent.MOUSE\_DOWN, tweenerIt(\_text, 40, 300, 150, 100, 4000) and then something like… private function tweenerIt(param1, param2, param3, etc…, e:Event):void, it doesn’t work.

```auto

   _text.addEventListener(MouseEvent.MOUSE_DOWN, tweenerIt);
  }
  
  private function tweenerIt(e:Event):void {
   var myTween:Tweener = new Tweener
   myTween.tweenMe(_text, 40, 300, 150, 100, 4000);
  }

```

Please help. 🙂

Fingers
