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

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