home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
CResultScreen.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
2KB
|
60 lines
class CResultScreen extends CScreen
{
function CResultScreen()
{
super();
if(_global.AppStarted == undefined)
{
return undefined;
}
this.fillTeamData();
}
function fillTeamData()
{
var _loc2_ = CTournament.ins().currentMatch;
this.round = _loc2_.round;
var _loc4_ = _loc2_.team1;
var _loc3_ = _loc2_.team2;
if(CTeamManager.ins().currentTeam == _loc2_.team1)
{
if(_loc2_.scoreteam1 == _loc2_.scoreteam2)
{
this.txVictory.text = "TIED MATCH";
}
else if(_loc2_.scoreteam1 > _loc2_.scoreteam2)
{
this.txVictory.text = "VICTORY !";
}
else
{
this.txVictory.text = "YOU LOOSE";
}
}
else if(_loc2_.scoreteam1 == _loc2_.scoreteam2)
{
this.txVictory.text = "TIED MATCH";
}
else if(_loc2_.scoreteam2 > _loc2_.scoreteam1)
{
this.txVictory.text = "VICTORY !";
}
else
{
this.txVictory.text = "YOU LOOSE";
}
this.txTitle.text = "Match Result";
this.txClose.text = "End Match";
this.txCongrats.text = CTournament.ins().nextPhase();
this.txTeamName1.text = _loc4_.teamname;
this.flag1.toid = _loc4_.flagid;
this.mcUniform1.shirt.gotoAndStop(_loc4_.shirtcolor1);
this.mcUniform1.pants.gotoAndStop(_loc4_.pantscolor1);
this.txTeamName2.text = _loc3_.teamname;
this.flag2.toid = _loc3_.flagid;
this.mcUniform2.shirt.gotoAndStop(_loc3_.shirtcolor2);
this.mcUniform2.pants.gotoAndStop(_loc3_.pantscolor2);
this.txScore1.text = String(_loc2_.scoreteam1);
this.txScore2.text = String(_loc2_.scoreteam2);
}
}