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

  1. class CContinueGameScreen extends CScreen
  2. {
  3.    var GroupName = new Array("Group A","Group B","Group C","Group D","Group E","Group F","Group G","Group H");
  4.    function CContinueGameScreen(tipeview)
  5.    {
  6.       super();
  7.       if(_global.AppStarted == undefined)
  8.       {
  9.          return undefined;
  10.       }
  11.       this.txTournamentStatus.text = CTournament.ins().getToutnamentStatus();
  12.       var _loc4_ = CTeamManager.ins().currentTeam;
  13.       this.mcflag.toid = _loc4_.flagid;
  14.       this.mcflag.setFlag(_loc4_.flagid);
  15.       this.txTeamName.text = _loc4_.teamname + " - " + this.GroupName[_loc4_.group];
  16.       this.ctr = 0;
  17.       this.onEnterFrame = function()
  18.       {
  19.          if(this.ctr > 1)
  20.          {
  21.             this.onEnterFrame = null;
  22.             this.CreateList();
  23.          }
  24.          this.ctr = this.ctr + 1;
  25.       };
  26.       if(CTournament.ins().gameover)
  27.       {
  28.          this.txBtc.text = "END";
  29.          this.Btc.onRelease = function()
  30.          {
  31.             _global.__DISPATCH({type:"endScreen",name:this._parent._name,tonew:true});
  32.          };
  33.       }
  34.       else
  35.       {
  36.          this.txBtc.text = "Continue";
  37.          this.Btc.onRelease = function()
  38.          {
  39.             _global.__DISPATCH({type:"endScreen",name:this._parent._name,tonew:false});
  40.          };
  41.       }
  42.    }
  43.    function CreateList()
  44.    {
  45.    }
  46. }
  47.