home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / FishyHop.swf / scripts / __Packages / manage / CommonManage.as next >
Encoding:
Text File  |  2008-09-05  |  1.4 KB  |  65 lines

  1. class manage.CommonManage
  2. {
  3.    function CommonManage()
  4.    {
  5.    }
  6.    static function startGame()
  7.    {
  8.       if(_root.game.isIn == true)
  9.       {
  10.          Fade.start();
  11.          if(_root.game.isSelectLevel == false)
  12.          {
  13.             _root.game.gotoAndStop("gamestart");
  14.          }
  15.          else
  16.          {
  17.             _root.game.gotoAndStop("selectlevel");
  18.          }
  19.       }
  20.       else
  21.       {
  22.          Fade.start();
  23.          _root.game.gotoAndStop("Instructions");
  24.       }
  25.    }
  26.    static function pressInSkip()
  27.    {
  28.       Fade.start();
  29.       if(_root.game.isSelectLevel == false)
  30.       {
  31.          _root.game.gotoAndStop("gamestart");
  32.       }
  33.       else
  34.       {
  35.          _root.game.gotoAndStop("selectlevel");
  36.       }
  37.    }
  38.    static function pressIn()
  39.    {
  40.       Fade.start();
  41.       _root.game.gotoAndStop("Instructions");
  42.    }
  43.    static function pressDown()
  44.    {
  45.       getUrl("http://www.ifungames.com", "_blank");
  46.    }
  47.    static function pressAdd()
  48.    {
  49.       getUrl("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
  50.    }
  51.    static function pressMore()
  52.    {
  53.       getUrl("http://www.freeworldgroup.com/", "_blank");
  54.    }
  55.    static function pressMainMenu()
  56.    {
  57.       Fade.start();
  58.       _root.game.gotoAndStop("mainmenu");
  59.    }
  60.    static function viewHighscore()
  61.    {
  62.       getURL("http://www.freeworldgroup.com/score/index.asp?game=" + manage.GameManage.gameName,"_blank");
  63.    }
  64. }
  65.