| roomView.mainTable.addEventListener(MouseEvent.CLICK,mainTableListener); function mainTableListener(ev:MouseEvent):void{ gotoAndStop("viewTable"); stage.removeEventListener(Event.ENTER_FRAME, mousePlacementX); } |
to remove the event listener of mousePlacementX (used for changing frames to another camera angle). I still received errors complaining that mousePlacementX movieclip was not accessible (meaning that the movieclip has not been removed).
To sort out this problem and perhaps glitch, I added:
stage.removeEventListener(Event.ENTER_FRAME, mousePlacementX);
to the frame label of viewTable and received no more errors.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.