home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / CrossingCup.swf / scripts / __Packages / CResultScreen.as < prev    next >
Text File  |  2007-12-11  |  2KB  |  60 lines

  1. class CResultScreen extends CScreen
  2. {
  3.    function CResultScreen()
  4.    {
  5.       super();
  6.       if(_global.AppStarted == undefined)
  7.       {
  8.          return undefined;
  9.       }
  10.       this.fillTeamData();
  11.    }
  12.    function fillTeamData()
  13.    {
  14.       var _loc2_ = CTournament.ins().currentMatch;
  15.       this.round = _loc2_.round;
  16.       var _loc4_ = _loc2_.team1;
  17.       var _loc3_ = _loc2_.team2;
  18.       if(CTeamManager.ins().currentTeam == _loc2_.team1)
  19.       {
  20.          if(_loc2_.scoreteam1 == _loc2_.scoreteam2)
  21.          {
  22.             this.txVictory.text = "TIED MATCH";
  23.          }
  24.          else if(_loc2_.scoreteam1 > _loc2_.scoreteam2)
  25.          {
  26.             this.txVictory.text = "VICTORY !";
  27.          }
  28.          else
  29.          {
  30.             this.txVictory.text = "YOU LOOSE";
  31.          }
  32.       }
  33.       else if(_loc2_.scoreteam1 == _loc2_.scoreteam2)
  34.       {
  35.          this.txVictory.text = "TIED MATCH";
  36.       }
  37.       else if(_loc2_.scoreteam2 > _loc2_.scoreteam1)
  38.       {
  39.          this.txVictory.text = "VICTORY !";
  40.       }
  41.       else
  42.       {
  43.          this.txVictory.text = "YOU LOOSE";
  44.       }
  45.       this.txTitle.text = "Match Result";
  46.       this.txClose.text = "End Match";
  47.       this.txCongrats.text = CTournament.ins().nextPhase();
  48.       this.txTeamName1.text = _loc4_.teamname;
  49.       this.flag1.toid = _loc4_.flagid;
  50.       this.mcUniform1.shirt.gotoAndStop(_loc4_.shirtcolor1);
  51.       this.mcUniform1.pants.gotoAndStop(_loc4_.pantscolor1);
  52.       this.txTeamName2.text = _loc3_.teamname;
  53.       this.flag2.toid = _loc3_.flagid;
  54.       this.mcUniform2.shirt.gotoAndStop(_loc3_.shirtcolor2);
  55.       this.mcUniform2.pants.gotoAndStop(_loc3_.pantscolor2);
  56.       this.txScore1.text = String(_loc2_.scoreteam1);
  57.       this.txScore2.text = String(_loc2_.scoreteam2);
  58.    }
  59. }
  60.