Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Listens if the Play Again button has been clicked
- playAgainBtn.addEventListener(MouseEvent.CLICK, startOver);
- function startOver(evt:MouseEvent):void {
- this.gotoAndStop("blank"); // If the button is clicked it goes to the 'blank' frame
- if(this.currentFrameLabel == "blank") {
- trace("fuck this");
- MovieClip(root).addEventListener(KeyboardEvent.KEY_DOWN, MovieClip(root).marioKeys);
- }
- }
Add Comment
Please, Sign In to add comment