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

  1. class com.novelgames.flashgames.commonAS2.Instructions extends MovieClip
  2. {
  3.    function Instructions()
  4.    {
  5.       super();
  6.       this.startButton.onRelease = function()
  7.       {
  8.          this._parent.startButtonClicked();
  9.       };
  10.    }
  11.    function initialize(shownFromGame)
  12.    {
  13.       if(shownFromGame == undefined)
  14.       {
  15.          shownFromGame = false;
  16.       }
  17.       this.shownFromGame = shownFromGame;
  18.    }
  19.    function startButtonClicked()
  20.    {
  21.       if(!this.shownFromGame)
  22.       {
  23.          this._parent.gotoGamePage();
  24.       }
  25.       else
  26.       {
  27.          this._parent.hideInstructionsFromGame();
  28.       }
  29.    }
  30. }
  31.