home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
FileManager.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
10KB
|
41 lines
class FileManager
{
function FileManager()
{
this.stillLoading = true;
}
function handleLoad(success)
{
if(!success)
{
trace("xml load failure");
}
}
function loadList(filename)
{
var _loc6_ = "<content> <team id=\"1\" flagid=\"118\" teamname=\"South Korea\" shirtcolor1=\"white\" pantscolor1=\"red\" shirtcolor2=\"red\" pantscolor2=\"white\" goalie=\"Woon-Jae Lee\" cornerkicker=\"Ji Sung Park\" kicker=\"Jung-Hwan Ahn\" /> <team id=\"2\" flagid=\"177\" teamname=\"Portugal\" shirtcolor1=\"red\" pantscolor1=\"green\" shirtcolor2=\"white\" pantscolor2=\"black\" goalie=\"Vitor Baia\" cornerkicker=\"Cristiano Ronaldo\" kicker=\"Helder Postiga\" /> <team id=\"3\" flagid=\"162\" teamname=\"Nigeria\" shirtcolor1=\"yellow\" pantscolor1=\"green\" shirtcolor2=\"green\" pantscolor2=\"yellow\" goalie=\"Vincent Enyeama\" cornerkicker=\"John Obi Mikel\" kicker=\"Obafemi Martins\" /> <team id=\"4\" flagid=\"230\" teamname=\"USA\" shirtcolor1=\"white\" pantscolor1=\"black\" shirtcolor2=\"light blue\" pantscolor2=\"white\" goalie=\"Tim Howard\" cornerkicker=\"Landon Donovan\" kicker=\"Freddy Adu\" /> <team id=\"5\" flagid=\"67\" teamname=\"Egypt\" shirtcolor1=\"red\" pantscolor1=\"white\" shirtcolor2=\"green\" pantscolor2=\"green\" goalie=\"Sherif Ekramy\" cornerkicker=\"Mohamed Zidan\" kicker=\"Mido\" /> <team id=\"6\" flagid=\"12\" teamname=\"Australia\" shirtcolor1=\"yellow\" pantscolor1=\"green\" shirtcolor2=\"green\" pantscolor2=\"yellow\" goalie=\"Schwarzer Mark\" cornerkicker=\"Kewell Harry\" kicker=\"Viduka Mark\" /> <team id=\"7\" flagid=\"9\" teamname=\"Argentina\" shirtcolor1=\"light blue\" pantscolor1=\"black\" shirtcolor2=\"blue\" pantscolor2=\"blue\" goalie=\"Roberto Abbondanzieri\" cornerkicker=\"Juan Roman Riquelme\" kicker=\"Leo Messi\" /> <team id=\"8\" flagid=\"60\" teamname=\"Czech Rep.\" shirtcolor1=\"red\" pantscolor1=\"blue\" shirtcolor2=\"white\" pantscolor2=\"white\" goalie=\"Peter Cech\" cornerkicker=\"Tomas Rosicky\" kicker=\"Milan Baros\" /> <team id=\"9\" flagid=\"87\" teamname=\"England\" shirtcolor1=\"white\" pantscolor1=\"black\" shirtcolor2=\"red\" pantscolor2=\"white\" goalie=\"Paul Robinson\" cornerkicker=\"Steven Gerrard\" kicker=\"Wayne Rooney\" /> <team id=\"10\" flagid=\"143\" teamname=\"Mexico\" shirtcolor1=\"green\" pantscolor1=\"white\" shirtcolor2=\"white\" pantscolor2=\"green\" goalie=\"Ochoa Guillermo\" cornerkicker=\"Perez Luis\" kicker=\"Fonseca Jose\" /> <team id=\"11\" flagid=\"112\" teamname=\"Japan\" shirtcolor1=\"blue\" pantscolor1=\"white\" shirtcolor2=\"white\" pantscolor2=\"blue\" goalie=\"Narazaki Seigo\" cornerkicker=\"Nakamura Shunsuke\" kicker=\"Takahara Naohiro\" /> <team id=\"12\" flagid=\"197\" teamname=\"South Africa\" shirtcolor1=\"yellow\" pantscolor1=\"green\" shirtcolor2=\"white\" pantscolor2=\"white\" goalie=\"Moeneeb Josephs\" cornerkicker=\"Steven Pienaar\" kicker=\"Benni Mccarthy\" /> <team id=\"13\" flagid=\"105\" teamname=\"Iran\" shirtcolor1=\"white\" pantscolor1=\"white\" shirtcolor2=\"red\" pantscolor2=\"red\" goalie=\"Mirzapour Ebrahim\" cornerkicker=\"Ali Karimi\" kicker=\"Hashemian Vahid\" /> <team id=\"14\" flagid=\"54\" teamname=\"Costa Rica\" shirtcolor1=\"red\" pantscolor1=\"blue\" shirtcolor2=\"white\" pantscolor2=\"white\" goalie=\"Mesen Alvaro\" cornerkicker=\"Hernandez Carlos\" kicker=\"Wanchope Paulo\" /> <team id=\"15\" flagid=\"84\" teamname=\"Germany\" shirtcolor1=\"white\" pantscolor1=\"black\" shirtcolor2=\"red\" pantscolor2=\"white\" goalie=\"Kahn Oliver\" cornerkicker=\"Michael Ballack\" kicker=\"Miroslav Klose\" /> <team id=\"16\" flagid=\"210\" teamname=\"Sweden\" shirtcolor1=\"yellow\" pantscolor1=\"blue\" shirtcolor2=\"blue\" pantscolor2=\"yellow\" goalie=\"Isaksson Andreas\" cornerkicker=\"Ljungberg Fredrik\" kicker=\"Ibrahimovic Zlatan\" /> <team id=\"17\" flagid=\"198\" teamname=\"Spain\" shirtcolor1=\"red\" pantscolor1=\"blue\" shirtcolor2=\"white\" pantscolor2=\"white\" goalie=\"Iker Casillas\" cornerkicker=\"Xavi\" kicker=\"Fernando Torres.\" /> <team id=\"18\" flagid=\"182\" teamname=\"Russia\" shirtcolor1=\"white\" pantscolor1=\"white\" shirtcolor2=\"red\" pantscolor2=\"white\" goalie=\"Igor Akinfeev\" cornerkicker=\"Andrey Arshavin\" kicker=\"Alexander Kerzhakov\" /> <team id=\"19\" flagid=\"231\" teamname=\"Uruguay\" shirtcolor1=\"yellow\" pantscolor1=\"blue\" shirtcolor2=\"white\" pantscolor2=\"white\" goalie=\"Gustavo Munua\" cornerkicker=\"Alvaro Recoba\" kicker=\"Diego Forlan\" /> <team id=\"20\" flagid=\"77\" teamname=\"France\" shirtcolor1=\"blue\" pantscolor1=\"white\" shirtcolor2=\"white\" pantscolor2=\"blue\" goalie=\"Gregory Coupet\" cornerkicker=\"Sidney Govou\" kicker=\"Thierry Henry\" /> <team id=\"21\" flagid=\"110\" teamname=\"Italy\" shirtcolor1=\"blue\" pantscolor1=\"white\" shirtcolor2=\"white\" pantscolor2=\"blue\" goalie=\"Gianluigi Buffon\" cornerkicker=\"Francesco Totti\" kicker=\"Alberto Gilardino\" /> <team id=\"22\" flagid=\"173\" teamname=\"Peru\" shirtcolor1=\"red\" pantscolor1=\"blue\" shirtcolor2=\"blue\" pantscolor2=\"white\" goalie=\"Erick Delgado\" cornerkicker=\"Jefferson Farfan\" kicker=\"Claudio Pizarro\" /> <team id=\"23\" flagid=\"157\" teamname=\"Netherlands\" shirtcolor1=\"orange\" pantscolor1=\"white\" shirtcolor2=\"white\" pantscolor2=\"blue\" goalie=\"Edwin Van Der Sar\" cornerkicker=\"Arjen Robben\" kicker=\"Ruud Van Nisterooy\" /> <team id=\"24\" flagid=\"111\" teamname=\"Jamaica\" shirtcolor1=\"yellow\" pantscolor1=\"green\" shirtcolor2=\"green\" pantscolor2=\"yellow\" goalie=\"Donovan Ricketts\" cornerkicker=\"Jason Euell\" kicker=\"Kevin Lisbie\" /> <team id=\"25\" flagid=\"30\" teamname=\"Brazil\" shirtcolor1=\"yellow\" pantscolor1=\"blue\" shirtcolor2=\"blue\" pantscolor2=\"white\" goalie=\"Dida\" cornerkicker=\"Ronaldinho\" kicker=\"Kaka\" /> <team id=\"26\" flagid=\"55\" teamname=\"Ivory Coast\" shirtcolor1=\"green\" pantscolor1=\"green\" shirtcolor2=\"orange\" pantscolor2=\"orange\" goalie=\"Copa\" cornerkicker=\"Salomon Kalou\" kicker=\"Didier Drogba\" /> <team id=\"27\" flagid=\"37\" teamname=\"Cameroon\" shirtcolor1=\"red\" pantscolor1=\"black\" shirtcolor2=\"white\" pantscolor2=\"white\" goalie=\"Carlos Idriss Kameni\" cornerkicker=\"Geremi\" kicker=\"Samuel Eto\'o\" /> <team id=\"28\" flagid=\"56\" teamname=\"Croatia\" shirtcolor1=\"red\" pantscolor1=\"white\" shirtcolor2=\"blue\" pantscolor2=\"blue\" goalie=\"Pletikosa  Stipe\" cornerkicker=\"Olic Ivica\" kicker=\"Klasnic Ivan\" /> <team id=\"29\" flagid=\"109\" teamname=\"Israel\" shirtcolor1=\"blue\" pantscolor1=\"white\" shirtcolor2=\"white\" pantscolor2=\"blue\" goalie=\"Dudu Aouate\" cornerkicker=\"Yossi Benayoun\" kicker=\"Roberto Colautti\" /> <team id=\"30\" flagid=\"107\" teamname=\"Ireland\" shirtcolor1=\"green\" pantscolor1=\"white\" shirtcolor2=\"white\" pantscolor2=\"green\" goalie=\"Shay Given\" cornerkicker=\"Damien Duff\" kicker=\"Robbie Keane\" /> <team id=\"31\" flagid=\"223\" teamname=\"Turkey\" shirtcolor1=\"red\" pantscolor1=\"red\" shirtcolor2=\"white\" pantscolor2=\"white\" goalie=\"Recber Rustu\" cornerkicker=\"Nihat\" kicker=\"Umit Karan\" /> <team id=\"32\" flagid=\"228\" teamname=\"Ukraine\" shirtcolor1=\"yellow\" pantscolor1=\"yellow\" shirtcolor2=\"blue\" pantscolor2=\"blue\" goalie=\"Shovkovskyi Olexander\" cornerkicker=\"Rotan Ruslan\" kicker=\"Shevchenko Andriy\" />\t\t\t</content>";
this.listXML.ignoreWhite = true;
this.listXML = new XML(_loc6_);
var _loc4_ = 1;
var _loc5_ = this.listXML.firstChild;
var _loc7_ = CTeamManager.ins();
while(_loc4_ < _loc5_.childNodes.length)
{
var _loc3_ = this.listXML.firstChild.childNodes[_loc4_];
CTeamManager.ins().addTeam(Number(_loc3_.attributes.id),Number(_loc3_.attributes.flagid),_loc3_.attributes.teamname,_loc3_.attributes.shirtcolor1,_loc3_.attributes.pantscolor1,_loc3_.attributes.shirtcolor2,_loc3_.attributes.pantscolor2,_loc3_.attributes.goalie,_loc3_.attributes.cornerkicker,_loc3_.attributes.kicker);
_loc4_ += 2;
}
this.stillLoading = false;
_global.__DISPATCH({type:"resumeSite"});
}
static function _buildInstance()
{
FileManager._oI = new FileManager();
return FileManager._oI;
}
static function ins()
{
return !(FileManager._oI instanceof FileManager) ? FileManager._buildInstance() : FileManager._oI;
}
}