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

  1. class CPreGameScreen extends CScreen
  2. {
  3.    function CPreGameScreen()
  4.    {
  5.       super();
  6.       if(_global.AppStarted == undefined)
  7.       {
  8.          return undefined;
  9.       }
  10.       this.fillTeamData();
  11.    }
  12.    function fillTeamData()
  13.    {
  14.       var _loc4_ = CTournament.ins().currentMatch;
  15.       var _loc3_ = _loc4_.team1;
  16.       var _loc2_ = _loc4_.team2;
  17.       if(CTeamManager.ins().currentTeam == _loc4_.team1)
  18.       {
  19.          if(_loc4_.round == 1)
  20.          {
  21.             this.remark.text = "Offense Team , Press Play When You\'re Ready";
  22.          }
  23.          else
  24.          {
  25.             this.remark.text = "Defense Team , Press Play When You\'re Ready";
  26.          }
  27.       }
  28.       else if(_loc4_.round == 1)
  29.       {
  30.          this.remark.text = "Defense Team , Press Play When You\'re Ready";
  31.       }
  32.       else
  33.       {
  34.          this.remark.text = "Offense Team , Press Play When You\'re Ready";
  35.       }
  36.       if(_loc4_.round == 1)
  37.       {
  38.          this.txSide1.text = "OFFENSE";
  39.          this.txSide2.text = "DEFENSE";
  40.       }
  41.       else
  42.       {
  43.          this.txSide1.text = "DEFENSE";
  44.          this.txSide2.text = "OFFENSE";
  45.       }
  46.       this.flag1.toid = _loc3_.flagid;
  47.       this.flag1.setFlag(_loc3_.flagid);
  48.       this.txTeamName1.text = _loc3_.teamname;
  49.       this.txCornerKicker1.text = _loc3_.cornerkicker;
  50.       this.txKicker1.text = _loc3_.kicker;
  51.       this.txGoalie1.text = _loc3_.goalie;
  52.       this.mcUniform1.shirt.gotoAndStop(_loc3_.shirtcolor1);
  53.       this.mcUniform1.pants.gotoAndStop(_loc3_.pantscolor1);
  54.       this.flag2.toid = _loc2_.flagid;
  55.       this.flag2.setFlag(_loc2_.flagid);
  56.       this.txTeamName2.text = _loc2_.teamname;
  57.       this.txCornerKicker2.text = _loc2_.cornerkicker;
  58.       this.txKicker2.text = _loc2_.kicker;
  59.       this.txGoalie2.text = _loc2_.goalie;
  60.       this.mcUniform2.shirt.gotoAndStop(_loc2_.shirtcolor2);
  61.       this.mcUniform2.pants.gotoAndStop(_loc2_.pantscolor2);
  62.    }
  63. }
  64.