home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / Easter_Eggs.swf / scripts / __Packages / com / novelgames / flashgames / eggsAS2 / GameOverDialog.as < prev    next >
Text File  |  2008-09-04  |  1KB  |  31 lines

  1. class com.novelgames.flashgames.eggsAS2.GameOverDialog extends com.novelgames.flashgames.commonAS2.NewMovieClip
  2. {
  3.    function GameOverDialog()
  4.    {
  5.       super();
  6.       this.gotoAndStop("hide");
  7.    }
  8.    function show()
  9.    {
  10.       this.gotoAndStop("show");
  11.    }
  12.    function showPlayAgain()
  13.    {
  14.       var _loc2_ = undefined;
  15.       _loc2_ = this.createMovie("MessagePlayAgain");
  16.       this.messagePlayAgain = _loc2_;
  17.       this.messagePlayAgain.playAgainButton.addEventListener(com.novelgames.flashgames.commonAS2.MouseEvent.CLICK,this,"playAgainButtonClicked");
  18.       this.messagePlayAgain.homeButton.addEventListener(com.novelgames.flashgames.commonAS2.MouseEvent.CLICK,this,"homeButtonClicked");
  19.       this.addChild(this.messagePlayAgain);
  20.       this.gotoAndStop("show");
  21.    }
  22.    function playAgainButtonClicked(mouseEvent)
  23.    {
  24.       Object(this.__get__parent().parent).gotoGamePage();
  25.    }
  26.    function homeButtonClicked(mouseEvent)
  27.    {
  28.       Object(this.__get__parent().parent).gotoTitlePage();
  29.    }
  30. }
  31.