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

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.


   _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. :slight_smile:

Fingers