home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / MindScape.swf / scripts / __Packages / HUD.as < prev    next >
Encoding:
Text File  |  2007-12-04  |  891 b   |  38 lines

  1. class HUD extends MovieClip
  2. {
  3.    var menuOut = false;
  4.    function HUD()
  5.    {
  6.       super();
  7.    }
  8.    function onLoad()
  9.    {
  10.       var _loc1_ = _root;
  11.       var _loc2_ = this;
  12.       if(_loc1_.currLvl <= 4 || _loc1_.currLvl == 101)
  13.       {
  14.          _loc2_.bg.gotoAndStop(2);
  15.       }
  16.       else if(_loc1_.currLvl >= 5 && _loc1_.currLvl <= 8 || _loc1_.currLvl == 102)
  17.       {
  18.          _loc2_.bg.gotoAndStop(3);
  19.       }
  20.       else if(_loc1_.currLvl >= 9 && _loc1_.currLvl <= 12 || _loc1_.currLvl == 103)
  21.       {
  22.          _loc2_.bg.gotoAndStop(4);
  23.       }
  24.       else
  25.       {
  26.          _loc2_.bg.gotoAndStop(1);
  27.       }
  28.    }
  29.    function onEnterFrame()
  30.    {
  31.       var _loc1_ = this;
  32.       var _loc2_ = _root;
  33.       _loc1_.healthBar.gotoAndStop(_loc2_.health + 1);
  34.       _loc1_.txtScore.text = _loc2_.score;
  35.       _loc1_.txtLifes.text = "x " + _loc2_.lifes;
  36.    }
  37. }
  38.