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