myTween.addEventListener(TweenEvent.MOTION_FINISH, done_tween); function done_tween(event:TweenEvent):void { removeChild(button); }