# EventListener Parameters

**URL:** <https://forum.kirupa.com/t/eventlistener-parameters/310408>\
**Category:** flash\
**Created:** [June 9, 2010, 12:37pm UTC](https://forum.kirupa.com/t/eventlistener-parameters/310408 "2010-06-09T12:37:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![booglebop](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@booglebop](https://forum.kirupa.com/u/booglebop)\
**Post date:** [June 9, 2010, 12:37pm UTC](https://forum.kirupa.com/t/eventlistener-parameters/310408/1 "2010-06-09T12:37:05Z")

</div>

Is it possible to ad more than one parameter to an eventListener? And if so, how would one go about doing so (syntax-wise). Here’s what I’m trying to do:

```php
button.addEventListener(MouseEvent.CLICK, gotoNextFrame, localID);

function gotoNextFrame(event:MouseEvent, localID):void {
	if (currentFrame !=localID.totalFrames) {
		MovieClip(localID).nextFrame();
	}
}

```

I want to be able to tell the gotoNextFrame function which movieClip to control.
