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

  1. class CGameOverScreen extends CScreen
  2. {
  3.    function CGameOverScreen()
  4.    {
  5.       super();
  6.       if(_global.AppStarted == undefined)
  7.       {
  8.          return undefined;
  9.       }
  10.       CTournament.ins().endTournament();
  11.       CTournament.ins().finishedPhase();
  12.       if(CTournament.ins().tournamentPhase == 8)
  13.       {
  14.          var _loc4_ = CTournament.ins().winnerof(CTournament.ins().FinalMatches[0]);
  15.          if(_loc4_ == CTeamManager.ins().currentTeam)
  16.          {
  17.             this.txChamp._visible = true;
  18.             this.fc1._visible = true;
  19.             this.fc2._visible = true;
  20.             this.fc3._visible = true;
  21.             this.fc4._visible = true;
  22.             this.fc5._visible = true;
  23.             this.txChamp.text = _loc4_.teamname;
  24.             this.fc1.toid = _loc4_.flagid;
  25.             this.fc1.setFlag(_loc4_.flagid);
  26.             this.fc2.toid = _loc4_.flagid;
  27.             this.fc2.setFlag(_loc4_.flagid);
  28.             this.fc3.toid = _loc4_.flagid;
  29.             this.fc3.setFlag(_loc4_.flagid);
  30.             this.fc4.toid = _loc4_.flagid;
  31.             this.fc4.setFlag(_loc4_.flagid);
  32.             this.fc5.toid = _loc4_.flagid;
  33.             this.fc5.setFlag(_loc4_.flagid);
  34.             this.gotoAndStop(2);
  35.          }
  36.       }
  37.       else
  38.       {
  39.          this.txChamp._visible = false;
  40.          this.fc1._visible = false;
  41.          this.fc2._visible = false;
  42.          this.fc3._visible = false;
  43.          this.fc4._visible = false;
  44.          this.fc5._visible = false;
  45.       }
  46.    }
  47.    function endButton()
  48.    {
  49.       _global.__DISPATCH({type:"endScreen",name:this._name});
  50.    }
  51. }
  52.