Guest User

Untitled

a guest
Jun 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. // Listens if the Play Again button has been clicked
  2. playAgainBtn.addEventListener(MouseEvent.CLICK, startOver);
  3.  
  4. function startOver(evt:MouseEvent):void {
  5. this.gotoAndStop("blank"); // If the button is clicked it goes to the 'blank' frame
  6. if(this.currentFrameLabel == "blank") {
  7. trace("fuck this");
  8. MovieClip(root).addEventListener(KeyboardEvent.KEY_DOWN, MovieClip(root).marioKeys);
  9. }
  10. }
Add Comment
Please, Sign In to add comment