home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
CPreGameScreen.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
2KB
|
64 lines
class CPreGameScreen extends CScreen
{
function CPreGameScreen()
{
super();
if(_global.AppStarted == undefined)
{
return undefined;
}
this.fillTeamData();
}
function fillTeamData()
{
var _loc4_ = CTournament.ins().currentMatch;
var _loc3_ = _loc4_.team1;
var _loc2_ = _loc4_.team2;
if(CTeamManager.ins().currentTeam == _loc4_.team1)
{
if(_loc4_.round == 1)
{
this.remark.text = "Offense Team , Press Play When You\'re Ready";
}
else
{
this.remark.text = "Defense Team , Press Play When You\'re Ready";
}
}
else if(_loc4_.round == 1)
{
this.remark.text = "Defense Team , Press Play When You\'re Ready";
}
else
{
this.remark.text = "Offense Team , Press Play When You\'re Ready";
}
if(_loc4_.round == 1)
{
this.txSide1.text = "OFFENSE";
this.txSide2.text = "DEFENSE";
}
else
{
this.txSide1.text = "DEFENSE";
this.txSide2.text = "OFFENSE";
}
this.flag1.toid = _loc3_.flagid;
this.flag1.setFlag(_loc3_.flagid);
this.txTeamName1.text = _loc3_.teamname;
this.txCornerKicker1.text = _loc3_.cornerkicker;
this.txKicker1.text = _loc3_.kicker;
this.txGoalie1.text = _loc3_.goalie;
this.mcUniform1.shirt.gotoAndStop(_loc3_.shirtcolor1);
this.mcUniform1.pants.gotoAndStop(_loc3_.pantscolor1);
this.flag2.toid = _loc2_.flagid;
this.flag2.setFlag(_loc2_.flagid);
this.txTeamName2.text = _loc2_.teamname;
this.txCornerKicker2.text = _loc2_.cornerkicker;
this.txKicker2.text = _loc2_.kicker;
this.txGoalie2.text = _loc2_.goalie;
this.mcUniform2.shirt.gotoAndStop(_loc2_.shirtcolor2);
this.mcUniform2.pants.gotoAndStop(_loc2_.pantscolor2);
}
}