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

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