I would remove the event listener from menubutton1. I would also not create the function inside the parameter.
What I did is added that removeEventListener function to the mouseUp Handler function. This stops menubutton1 from listening to Mouse Up Events which call mouseUpHandler.Code:menubutton1.addEventListener(MouseEvent.MOUSE_UP,mouseUpHandler); function mouseUpHandler(evt:MouseEvent):void { gotoAndPlay(2); menubutton1.removeEventListener(MouseEvent.MOUSE_UP,mouseUpHandler); }
Now when that tweening is complete call the same exact addEventListener from that 1st line.
You might have to find menubutton1 from the position of where your tweening occurs. I don't know where your clips are located and such, so i can't really help you there.




Reply With Quote