home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
CGameOverScreen.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
2KB
|
52 lines
class CGameOverScreen extends CScreen
{
function CGameOverScreen()
{
super();
if(_global.AppStarted == undefined)
{
return undefined;
}
CTournament.ins().endTournament();
CTournament.ins().finishedPhase();
if(CTournament.ins().tournamentPhase == 8)
{
var _loc4_ = CTournament.ins().winnerof(CTournament.ins().FinalMatches[0]);
if(_loc4_ == CTeamManager.ins().currentTeam)
{
this.txChamp._visible = true;
this.fc1._visible = true;
this.fc2._visible = true;
this.fc3._visible = true;
this.fc4._visible = true;
this.fc5._visible = true;
this.txChamp.text = _loc4_.teamname;
this.fc1.toid = _loc4_.flagid;
this.fc1.setFlag(_loc4_.flagid);
this.fc2.toid = _loc4_.flagid;
this.fc2.setFlag(_loc4_.flagid);
this.fc3.toid = _loc4_.flagid;
this.fc3.setFlag(_loc4_.flagid);
this.fc4.toid = _loc4_.flagid;
this.fc4.setFlag(_loc4_.flagid);
this.fc5.toid = _loc4_.flagid;
this.fc5.setFlag(_loc4_.flagid);
this.gotoAndStop(2);
}
}
else
{
this.txChamp._visible = false;
this.fc1._visible = false;
this.fc2._visible = false;
this.fc3._visible = false;
this.fc4._visible = false;
this.fc5._visible = false;
}
}
function endButton()
{
_global.__DISPATCH({type:"endScreen",name:this._name});
}
}