Frame 1
stop();
ifFrameLoaded (90) {
nextFrame();
}
Instance of Symbol 5 MovieClip in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
_root.text = ("LOADING " + int(total / 1024)) + "K";
_root.stop();
}
onClipEvent (enterFrame) {
bytesloaded = _root.getBytesLoaded();
if (bytesloaded < total) {
percent = int((bytesloaded / total) * 100);
bar._xscale = percent;
} else {
_root.play();
}
}
Frame 2
function abbrev(longname) {
var n = longname.split(" ");
var n = n.join("");
var n = n.toLowerCase();
var n = ((url + n) + ".swf");
return(n);
}
function loadplayer(player, team) {
trace("player var is: " + player);
trace("team var is: " + team);
var currenturl = eval ("_level" + team.name);
if ((player + ".swf") != name) {
trace("> Loading: " + player);
loadMovieNum (player, team);
}
}
function howplay() {
gotoAndStop (236);
}
stop();
url = _url;
if (0 < url.indexOf("?")) {
url = substring(url, 0, url.indexOf("?"));
}
url = url.slice(0, url.lastIndexOf("/") + 1);
trace(url);
groupa = ["France", "Senegal", "Uruguay", "Denmark"];
groupb = ["Spain", "Slovenia", "Paraguay", "South Africa"];
groupc = ["Brazil", "Turkey", "China", "Costa Rica"];
groupd = ["South Korea", "Poland", "USA", "Portugal"];
groupe = ["Germany", "Saudi Arabia", "Rep Ireland", "Cameroon"];
groupf = ["Argentina", "Nigeria", "England", "Sweden"];
groupg = ["Italy", "Ecuador", "Croatia", "Mexico"];
grouph = ["Japan", "Belgium", "Russia", "Tunisia"];
groupnames = ["Group A", "Group B", "Group C", "Group D", "Group E", "Group F", "Group G", "Group H"];
i = 0;
while (i < groupnames.length) {
groupnames[i] = groupnames[i].toUpperCase();
i++;
}
teams = [groupa, groupb, groupc, groupd, groupe, groupf, groupg, grouph];
i = 0;
while (i < teams.length) {
j = 0;
while (j < teams[i].length) {
teams[i][j] = teams[i][j].toUpperCase();
j++;
}
i++;
}
allteams = groupa.concat(groupb, groupc, groupd, groupe, groupf, groupg, grouph);
trace(allteams);
shortnames = [];
i = 0;
while (i < allteams.length) {
var n = allteams[i].split(" ");
var n = n.join("");
var n = n.toLowerCase();
shortnames.push(n);
i++;
}
difficulty = 0;
Instance of Symbol 115 MovieClip in Frame 2
onClipEvent (load) {
if (_root.introPlayed) {
gotoAndStop(_totalframes +1);
}
}
Frame 3
stop();
Instance of Symbol 200 MovieClip "gimptext" in Frame 3
onClipEvent (load) {
_visible = 0;
}
Frame 4
_root.loadplayer(_root.abbrev(_root.mycountryname), 1);
Frame 5
round = 1;
fixture = 1;
roundtitletext = mygroupname.toUpperCase() + " - KNOCKOUT:";
round1teams = teams[mygroup - 1];
i = 0;
while (i < round1teams.length) {
if (round1teams[i] == mycountryname) {
myindex = i;
}
i++;
}
trace(myindex);
trace(round1teams);
round1teams.splice(myindex, 1);
trace(round1teams);
trace("fixtures:");
i = 1;
while (i < 4) {
_root["fixture" + i] = round1teams.shift();
trace((("fixture" + i) + " ") + _root["fixture" + i]);
i++;
}
Frame 6
opponent = _root["fixture" + fixture];
trace("opponent " + opponent);
if (3 < fixture) {
round++;
if (round == 2) {
gotoAndPlay (11);
} else if (round == 3) {
gotoAndPlay (17);
} else if (round == 4) {
gotoAndPlay (23);
}
}
Frame 7
stop();
Instance of Symbol 5 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (!_level2.loading) {
attempts++;
if (timeout < attempts) {
attempts = 0;
retries++;
if (maxretries < retries) {
getURL ("javascript:alert('Sorry! There\\'s a problem loading a component of the game.\\nPlease check your internet connection then press OK.');");
} else {
loadoppenent();
}
}
}
total = _level2.getBytesTotal() + _level1.getBytesTotal();
bytesloaded = _level2.getBytesLoaded() + _level1.getBytesLoaded();
if ((bytesloaded < total) && (_level2.loading)) {
percent = int((bytesloaded / total) * 100);
bar._xscale = percent;
} else if (_level2.loading) {
_root.play();
} else {
bar._xscale = 0;
}
}
onClipEvent (load) {
function loadoppenent() {
trace("attemping to load: " + _root.abbrev(_root.opponent));
_root.loadplayer(_root.abbrev(_root.opponent), 2);
}
bar._xscale = 0;
timeout = 150;
maxretries = 3;
loadoppenent();
}
Frame 9
stop();
Frame 10
gotoAndPlay (96);
Frame 12
team1 = mycountryname;
quarterfinalists = teams;
quarterfinalists.splice(mygroup - 1, 1);
i = 0;
while (i < 7) {
_root["team" + (i + 2)] = quarterfinalists[i][random(quarterfinalists[i].length)];
i++;
}
if (random(2) == 1) {
winner1 = team3;
} else {
win1.gotoAndStop(2);
winner1 = team4;
}
if (random(2) == 1) {
winner2 = team5;
} else {
win2.gotoAndStop(2);
winner2 = team6;
}
if (random(2) == 1) {
winner3 = team7;
} else {
win3.gotoAndStop(2);
winner3 = team8;
}
quarterfinalopponents = [winner1, winner2, winner3];
opponent = team2;
trace(winner1);
trace(winner2);
trace(winner3);
Frame 13
stop();
Instance of Symbol 5 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (!_level2.loading) {
attempts++;
if (timeout < attempts) {
attempts = 0;
retries++;
if (maxretries < retries) {
getURL ("javascript:alert('Sorry! There\\'s a problem loading a component of the game.\\nPlease check your internet connection then press OK.');");
} else {
loadoppenent();
}
}
}
total = _level2.getBytesTotal() + _level1.getBytesTotal();
bytesloaded = _level2.getBytesLoaded() + _level1.getBytesLoaded();
if ((bytesloaded < total) && (_level2.loading)) {
percent = int((bytesloaded / total) * 100);
bar._xscale = percent;
} else if (_level2.loading) {
_root.play();
} else {
bar._xscale = 0;
}
}
onClipEvent (load) {
function loadoppenent() {
trace("attemping to load: " + _root.abbrev(_root.opponent));
_root.loadplayer(_root.abbrev(_root.opponent), 2);
}
bar._xscale = 0;
timeout = 150;
maxretries = 3;
loadoppenent();
}
Frame 15
stop();
Frame 16
gotoAndPlay (96);
Frame 18
team1 = mycountryname;
team2 = winner1;
team3 = winner2;
team4 = winner3;
if (random(2) == 1) {
win1.gotoAndStop(1);
finalist = team3;
} else {
win1.gotoAndStop(2);
finalist = team4;
}
opponent = team2;
Frame 19
stop();
Instance of Symbol 5 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (!_level2.loading) {
attempts++;
if (timeout < attempts) {
attempts = 0;
retries++;
if (maxretries < retries) {
getURL ("javascript:alert('Sorry! There\\'s a problem loading a component of the game.\\nPlease check your internet connection then press OK.');");
} else {
loadoppenent();
}
}
}
total = _level2.getBytesTotal() + _level1.getBytesTotal();
bytesloaded = _level2.getBytesLoaded() + _level1.getBytesLoaded();
if ((bytesloaded < total) && (_level2.loading)) {
percent = int((bytesloaded / total) * 100);
bar._xscale = percent;
} else if (_level2.loading) {
_root.play();
} else {
bar._xscale = 0;
}
}
onClipEvent (load) {
function loadoppenent() {
trace("attemping to load: " + _root.abbrev(_root.opponent));
_root.loadplayer(_root.abbrev(_root.opponent), 2);
}
bar._xscale = 0;
timeout = 150;
maxretries = 3;
loadoppenent();
}
Frame 21
stop();
Frame 22
gotoAndPlay (96);
Frame 91
team1 = mycountryname;
team2 = finalist;
opponent = team2;
Frame 92
stop();
Instance of Symbol 5 MovieClip in Frame 92
onClipEvent (enterFrame) {
if (!_level2.loading) {
attempts++;
if (timeout < attempts) {
attempts = 0;
retries++;
if (maxretries < retries) {
getURL ("javascript:alert('Sorry! There\\'s a problem loading a component of the game.\\nPlease check your internet connection then press OK.');");
} else {
loadoppenent();
}
}
}
total = _level2.getBytesTotal() + _level1.getBytesTotal();
bytesloaded = _level2.getBytesLoaded() + _level1.getBytesLoaded();
if ((bytesloaded < total) && (_level2.loading)) {
percent = int((bytesloaded / total) * 100);
bar._xscale = percent;
} else if (_level2.loading) {
_root.play();
} else {
bar._xscale = 0;
}
}
onClipEvent (load) {
function loadoppenent() {
trace("attemping to load: " + _root.abbrev(_root.opponent));
_root.loadplayer(_root.abbrev(_root.opponent), 2);
}
bar._xscale = 0;
timeout = 150;
maxretries = 3;
loadoppenent();
}
Frame 94
stop();
Frame 95
gotoAndPlay (96);
Frame 96
function orientPlayers() {
_level1._y = ground;
_level2._y = ground;
_level1._x = 300 - playerspacing;
_level2._x = 300 + playerspacing;
_level2._xscale = -100;
_level1.me = 1;
_level1.enemy = _level2;
_level1.direction = 1;
_level2.me = 2;
_level2.enemy = _level1;
_level2.direction = -1;
_level1._visible = 1;
_level2._visible = 1;
_level1.gotoAndStop("stationary");
_level2.gotoAndStop("stationary");
}
function loadstatus(mov) {
trace("testing");
if ((mov._framesLoaded = mov._totalFrames && (mov.loading))) {
return(true);
}
return(false);
}
function loadchartemplates() {
trace("loading");
loadMovieNum ("character_template/character_template.swf", 1);
loadMovieNum ("character_template/character_template.swf", 2);
}
function playerKO(name) {
_level1.ready = 0;
_level2.ready = 0;
if (name == 1) {
winner = 2;
_level1.gotoAndPlay("death2");
_level1.flyingspeed = 0;
} else if (name == 2) {
winner = 1;
_level2.gotoAndPlay("death2");
_level2.flyingspeed = 0;
}
play();
}
function removeConfetti() {
i = 1;
while (i < 200) {
removeMovieClip("mov" + i);
i++;
}
unloadMovie ("confetti");
}
playerspeed = 8;
difficulty = difficulty + 2;
ground = 250;
screenleft = 50;
screenright = 550;
playerspacing = 50;
_root.orientPlayers();
_level1._visible = 1;
_level2._visible = 1;
Instance of Symbol 292 MovieClip "energy1" in Frame 120
onClipEvent (enterFrame) {
if ((lastframe != _currentframe) && (started)) {
_root.bloodsplat.init(1);
}
lastframe = _currentframe;
started = 1;
}
Instance of Symbol 292 MovieClip "energy2" in Frame 120
onClipEvent (enterFrame) {
if ((lastframe != _currentframe) && (started)) {
_root.bloodsplat.init(2);
}
lastframe = _currentframe;
started = 1;
}
Frame 130
stop();
Instance of Symbol 302 MovieClip in Frame 130
onClipEvent (enterFrame) {
_root.spacing = int(_level2._x - _level1._x);
if (_root.spacing < 65) {
_root.touching = 1;
incroachment = (_root.spacing - 65) / 2;
_level1._x = _level1._x + incroachment;
_level2._x = _level2._x - incroachment;
} else {
_root.touching = 0;
}
if (_root.spacing < 90) {
_root.punchrange = 1;
} else {
_root.punchrange = 0;
}
if (_root.spacing < 105) {
_root.kickrange = 1;
} else {
_root.kickrange = 0;
}
if (_level1._x < _root.screenleft) {
_level1._x = _root.screenleft;
}
if (_root.screenright < _level2._x) {
_level2._x = _root.screenright;
}
if ((0 < _level1.flyingspeed) && (_root.screenleft < _level1._x)) {
_level1._x = _level1._x - _level1.flyingspeed;
_level1.flyingspeed = _level1.flyingspeed * 0.9;
} else if ((0 < _level2.flyingspeed) && (_level2._x < _root.screenright)) {
_level2._x = _level2._x + _level2.flyingspeed;
_level2.flyingspeed = _level2.flyingspeed * 0.9;
}
}
Instance of Symbol 302 MovieClip "player1controls" in Frame 130
onClipEvent (load) {
function punch() {
if (_level1.punchready && (punchready)) {
punchready = 0;
_level1.gotoAndPlay("punch");
}
}
function kick() {
if (_level1.kickready && (kickready)) {
kickready = 0;
_level1.gotoAndPlay("kick");
}
}
function special() {
if (_level1.specialready && (specialready)) {
specialready = 0;
_level1.gotoAndPlay("special");
}
}
function moveback() {
if (_root.screenleft < _level1._x) {
_level1._x = _level1._x - _root.playerspeed;
}
}
function moveforward() {
if (_level1._x < _root.screenright) {
_level1._x = _level1._x + _root.playerspeed;
}
}
function walkforward() {
if (_root.touching != 1) {
moveforward();
_level1.gotoAndPlay("shuffle");
_level1.blocking = 0;
}
}
function walkback() {
moveback();
_level1.gotoAndPlay("shuffle");
_level1.blocking = 1;
}
ready = 1;
punchready = 1;
kickready = 1;
specialready = 1;
_level1.gotoAndPlay("stance");
}
onClipEvent (keyDown) {
if (_level1.ready) {
keydown = Key.getCode();
if (keydown == 65) {
punch();
} else if (keydown == 68) {
kick();
} else if (keydown == 83) {
special();
}
}
}
onClipEvent (keyUp) {
keyup = Key.getCode();
if (keyup == 65) {
punchready = 1;
} else if (keyup == 68) {
kickready = 1;
} else if (keyup == 83) {
specialready = 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37) && (_level1.ready)) {
walkback();
} else if (Key.isDown(39) && (_level1.ready)) {
walkforward();
} else {
_level1.blocking = 0;
}
}
Instance of Symbol 302 MovieClip "player2controls" in Frame 130
onClipEvent (enterFrame) {
if ((100 < _root.spacing) && (8 < random(10))) {
moveforward();
} else if ((random(18) < _root.difficulty) && (_root.spacing < 150)) {
ai();
}
}
onClipEvent (load) {
function punch() {
if (_level2.punchready && (_level2.ready)) {
_level2.gotoAndPlay("punch");
}
}
function kick() {
if (_level2.kickready && (_level2.ready)) {
_level2.gotoAndPlay("kick");
}
}
function special() {
if (_level2.specialready && (_level2.ready)) {
_level2.gotoAndPlay("special");
}
}
function moveback() {
if ((_level2._x < _root.screenright) && (_level2.ready)) {
_level2.gotoAndPlay("shuffle");
_level2._x = _level2._x + _root.playerspeed;
_level2.blocking = 1;
}
}
function moveforward() {
if (_root.screenleft < _level2._x) {
_level2.gotoAndPlay("shuffle");
_level2._x = _level2._x - _root.playerspeed;
_level2.blocking = 0;
}
}
function walkforward() {
if ((!_root.touching) && (_level2.ready)) {
moveforward();
_level1.gotoAndPlay("shuffle");
_level1.blocking = 0;
}
}
function walkback() {
moveback();
_level1.gotoAndPlay("shuffle");
_level1.blocking = 1;
}
function ai() {
if ((_root.punchrange && (random(20) < _root.difficulty)) && (Key.isDown(65))) {
walkback();
} else if ((Key.isDown(68) && (_root.kickrange)) && (random(15) < _root.difficulty)) {
walkback();
}
rand = random(10);
if (rand == 0) {
walkforward();
} else if (rand == 1) {
walkback();
} else if ((rand == 2) || (rand == 5)) {
punch();
} else if (rand == 3) {
kick();
} else if (rand == 4) {
special();
} else if (((((6 < rand) && (6 < difficulty)) && (kickrange)) && (!_level1.specialready)) && (_level1.punchready)) {
kick();
} else if (punchrange && (5 < difficulty)) {
punch();
} else if (((kickrange && (5 < difficulty)) && (!_level1.kickready)) && (_level1.punchready)) {
walkback();
}
if (((kickrange && (5 < difficulty)) && (!_level1.kickready)) && (_level1.punchready)) {
moveback();
}
}
_level2.gotoAndPlay("stance");
}
Frame 131
if (winner == 1) {
titleanim.mov.gotoAndStop("win");
} else {
titleanim.mov.gotoAndStop("lose");
}
titleanim.play();
Instance of Symbol 328 MovieClip "confetti" in Frame 135
onClipEvent (load) {
if (_name == "confetti") {
i = 1;
while (i < 50) {
duplicateMovieClip ("", "mov" + i, i);
i++;
}
}
_rotation = random(360);
_x = random(600);
_y = (-random(200));
size = random(50) + 75;
gotoAndPlay(random(_totalframes) + 1 +95);
if (random(2) == 1) {
_xscale = (_xscale * -1);
}
_xscale = size;
_yscale = size;
yspeed = size / 14;
xspeed = random(5) - 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
_x = (_x + xspeed);
if (((410 < _y) || (_x < -10)) || (610 < _x)) {
removeMovieClip("");
unloadMovie ();
}
}
Frame 138
if (winner == 1) {
_level1.gotoAndStop("win");
} else {
_level2.gotoAndStop("win");
}
titleanim.stop();
Frame 152
_level1.stop();
_level2.stop();
Frame 183
stopAllSounds();
Frame 185
removeConfetti();
_level1._visible = 0;
unloadMovieNum (2);
unloadMovieNum (3);
if (winner == 1) {
if (round == 4) {
gotoAndPlay (237);
} else {
fixture++;
gotoAndPlay ("firstround");
}
} else {
gotoAndPlay (186);
}
Frame 235
gotoAndStop (2);
Frame 237
endingtext = "CONGRATULATIONS, " + _root.mycountryname;
killfireworks = 0;
stopAllSounds();
Instance of Symbol 348 MovieClip "firework1" in Frame 357
onClipEvent (load) {
function init() {
_visible = 1;
xspeed = (random(100) - 50) / 10;
yspeed = (random(100) - 50) / 10;
size = random(50) + 50;
_xscale = rand;
_yscale = rand;
g = 0.3;
if ((substring(_name, 1, 8)) == "firework") {
_x = random(600);
_y = (random(200) + 100);
i = 1;
while (i < 100) {
duplicateMovieClip ("", "mov" + i, random(999) + 1);
i++;
}
}
}
init();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed * 0.98;
yspeed = yspeed + g;
_y = (_y + yspeed);
if (((((_x < 0) || (600 < _x)) || (_y < 96)) || (303 < _y)) || (_root.killfireworks)) {
_visible = 0;
removeMovieClip("");
}
}
Instance of Symbol 348 MovieClip "firework2" in Frame 357
onClipEvent (load) {
function init() {
xspeed = (random(100) - 50) / 10;
yspeed = (random(100) - 50) / 10;
size = random(50) + 50;
_xscale = rand;
_yscale = rand;
g = 0.3;
if ((substring(_name, 1, 8)) == "firework") {
_x = random(600);
_y = (random(200) + 100);
i = 1;
while (i < 100) {
duplicateMovieClip ("", "mov" + i, random(999) + 1);
i++;
}
}
}
init();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed * 0.98;
yspeed = yspeed + g;
_y = (_y + yspeed);
if (((((_x < 0) || (600 < _x)) || (_y < 96)) || (303 < _y)) || (_root.killfireworks)) {
_visible = 0;
removeMovieClip("");
}
}
Instance of Symbol 348 MovieClip "firework3" in Frame 357
onClipEvent (load) {
function init() {
xspeed = (random(100) - 50) / 10;
yspeed = (random(100) - 50) / 10;
size = random(50) + 50;
_xscale = rand;
_yscale = rand;
g = 0.3;
if ((substring(_name, 1, 8)) == "firework") {
_x = random(600);
_y = (random(200) + 100);
i = 1;
while (i < 100) {
duplicateMovieClip ("", "mov" + i, random(999) + 1);
i++;
}
}
}
init();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed * 0.98;
yspeed = yspeed + g;
_y = (_y + yspeed);
if (((((_x < 0) || (600 < _x)) || (_y < 96)) || (303 < _y)) || (_root.killfireworks)) {
_visible = 0;
removeMovieClip("");
}
}
Instance of Symbol 348 MovieClip "firework4" in Frame 357
onClipEvent (load) {
function init() {
xspeed = (random(100) - 50) / 10;
yspeed = (random(100) - 50) / 10;
size = random(50) + 50;
_xscale = rand;
_yscale = rand;
g = 0.3;
if ((substring(_name, 1, 8)) == "firework") {
_x = random(600);
_y = (random(200) + 100);
i = 1;
while (i < 100) {
duplicateMovieClip ("", "mov" + i, random(999) + 1);
i++;
}
}
}
init();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed * 0.98;
yspeed = yspeed + g;
_y = (_y + yspeed);
if (((((_x < 0) || (600 < _x)) || (_y < 96)) || (303 < _y)) || (_root.killfireworks)) {
_visible = 0;
removeMovieClip("");
}
}
Frame 394
stop();
Frame 395
stopAllSounds();
killfireworks = 1;
Frame 396
gotoAndStop (2);
Symbol 41 MovieClip Frame 15
stop();
Symbol 42 MovieClip Frame 15
stop();
Symbol 55 MovieClip Frame 30
stop();
Symbol 68 MovieClip Frame 21
stop();
Symbol 79 Button
on (release) {
gotoAndPlay (1);
}
Symbol 103 Button
on (release) {
getURL ("http://www.gamer.tv", "_blank");
}
Symbol 104 Button
on (release) {
getURL ("http://www.gamer.tv", "_blank");
}
Symbol 105 Button
on (release) {
getURL ("http://www.gamer.tv", "_blank");
}
Symbol 106 Button
on (press) {
_root.howplay();
}
Symbol 107 Button
on (press) {
getURL ("mailto:?subject=Can you reach the final?&body=England think they’ve got injury problems…it’s a good job they’re not playing Ultimate Soccer Showdown. Let’s just say that it kicks off once the whistle’s blown.%0d%0dClick below to begin:%0d%0dhttp://www.gamer.tv/soccershowdown");
}
Symbol 108 Button
on (press, keyPress "<Space>") {
stopAllSounds();
_root.play();
}
Symbol 109 Button
on (release) {
getURL ("http://www.weplayhere.com", "_blank");
}
Symbol 110 Button
on (release) {
getURL ("http://www.weplayhere.com", "_blank");
}
Symbol 114 Button
on (press) {
getURL ("javascript:alert('ULTIMATE SOCCER SHOWDOWN - CREDITS\\n\\nPROGRAMMING\\nLiam O\\'Donnell\\n\\nGAME DESIGN\\nLiam O\\'Donnell, John O\\'Reilly, Tom Butler and David Pharo\\n\\nCHARACTER DESIGN\\nJohn O\\'Reilly, Tom Butler and Gareth Qually\\n\\nBACKGROUNDS\\nDavid Pharo\\n\\nSCREEN DESIGNS\\nJohn O\\'Reilly and Tom Butler\\n\\n3D MODELLING\\nGareth Qually');");
}
Symbol 115 MovieClip Frame 105
stop();
_root.introPlayed = 1;
Symbol 123 MovieClip Frame 11
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 193 Button
on (rollOver) {
_root.map.gotoAndStop(int(name) + 1);
_root.countrytext = _root.allteams[int(name) - 1];
}
on (rollOut) {
_root.map.gotoAndStop(1);
_root.countrytext = "";
}
on (press) {
_root.mycountry = int(name);
_root.mycountryname = _root.allteams[int(name) - 1];
foundgroup = 0;
i = 0;
while (i < _root.teams.length) {
j = 0;
while (j < _root.teams[i].length) {
if (_root.teams[i][j] == _root.mycountryname) {
foundgroup = 1;
_root.mygroup = i + 1;
_root.mygroupname = _root.groupnames[_root.mygroup - 1];
trace("MY GROUP: " + _root.mygroup);
trace(_root.mygroupname);
}
j++;
}
i++;
}
_root.play();
}
Instance of Symbol 190 MovieClip "flags" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.name);
}
Instance of Symbol 194 MovieClip "f1" in Symbol 195 MovieClip Frame 1
onClipEvent (load) {
name = int(substring(_name, 2, _name.length - 1));
if (name == "1") {
i = 2;
while (i < 17) {
duplicateMovieClip ("", "f" + i, i);
_parent["f" + i]._x = _x + (36 * (i - name));
i++;
}
}
}
Instance of Symbol 194 MovieClip "f17" in Symbol 195 MovieClip Frame 1
onClipEvent (load) {
name = substring(_name, 2, _name.length - 1);
if (name == "17") {
i = 18;
while (i < 33) {
duplicateMovieClip ("", "f" + i, i);
_parent["f" + i]._x = _x + (36 * (i - name));
i++;
}
}
}
Symbol 197 Button
on (press) {
_root.allteams[0] = "GIMP";
_root.groupa[0] = "GIMP";
_root.mycountry = "GIMP";
_root.mycountryname = "GIMP";
_root.mygroup = 1;
_root.mygroupname = "Group A";
_root.play();
}
on (rollOver) {
_root.gimptext._visible = 1;
}
on (rollOut) {
_root.gimptext._visible = 0;
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
name = substring(_name, 8, 1);
if (_root.round == 1) {
if (_root.fixture >= name) {
team1 = _root.mycountryname;
} else {
team1 = "?";
}
team2 = _root["fixture" + name];
if (name < _root.fixture) {
won._visible = 1;
} else {
won._visible = 0;
}
}
Instance of Symbol 208 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
if (_parent.name != _root.fixture) {
_visible = 0;
}
}
Instance of Symbol 210 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
if (_parent.name != _root.fixture) {
gotoAndStop (2);
}
}
Instance of Symbol 212 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
function goto(frame) {
gotoAndStop(frame);
}
i = 0;
while (i < _root.allteams.length) {
if (_root.allteams[i] == _parent.team1) {
index = i;
trace(index);
break;
}
i++;
}
if ((index == null) || (_root.mycountryname == "GIMP")) {
_visible = 0;
} else {
goto(index + 1);
}
}
Instance of Symbol 212 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
function goto(frame) {
gotoAndStop(frame);
}
i = 0;
while (i < _root.allteams.length) {
if (_root.allteams[i] == _parent.team2) {
index = i;
trace(index);
break;
}
i++;
}
if (index == null) {
_visible = 0;
} else {
goto(index + 1);
}
}
Symbol 223 Button
on (press, keyPress "<Space>") {
play();
}
Instance of Symbol 212 MovieClip in Symbol 225 MovieClip Frame 1
onClipEvent (load) {
function goto(frame) {
gotoAndStop(frame);
}
name = substring(_parent._name, 5, 1);
i = 0;
while (i < _root.allteams.length) {
if (_root.allteams[i] == _root["team" + name]) {
index = i;
trace(index);
break;
}
i++;
}
if (index == null) {
_visible = 0;
} else if ((_root.mycountryname == "GIMP") && (name == 1)) {
_visible = 0;
} else {
goto(index + 1);
}
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
gotoAndStop(_root.round);
Symbol 265 MovieClip Frame 2
stop();
loadMovieNum (_root.url + "parkforeground.swf", 3);
Symbol 283 MovieClip Frame 1
gotoAndStop(_root.fixture);
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 3
stop();
Symbol 283 MovieClip Frame 4
stop();
Symbol 283 MovieClip Frame 5
stop();
Symbol 283 MovieClip Frame 6
stop();
Symbol 283 MovieClip Frame 7
stop();
Symbol 283 MovieClip Frame 8
stop();
Symbol 284 MovieClip Frame 17
stop();
Symbol 290 MovieClip Frame 29
stop();
Symbol 292 MovieClip Frame 1
name = substring(_name, 7, 1);
stop();
Symbol 292 MovieClip Frame 50
_root.playerKO(name);
Symbol 306 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 1
gotoAndPlay(random(4) + 1);
_x = (_x + (random(4) - 4));
_xscale = (random(100) + 50);
Symbol 323 MovieClip Frame 13
stop();
Symbol 324 MovieClip Frame 1
function init(player) {
i = random(100) + 100;
duplicateMovieClip ("", "mov" + i, i);
_root["mov" + i]._x = eval ("_level" + player)._x;
_root["mov" + i]._y = random(8) + 220;
if (player == 2) {
_root["mov" + i]._xscale = _root["mov" + i]._xscale * -1;
}
}
Symbol 338 Button
on (press, keyPress "<Backspace>") {
gotoAndStop (2);
}
Symbol 348 MovieClip Frame 1
gotoAndPlay(random(10) + 2);
Symbol 348 MovieClip Frame 39
if ((substring(_name, 1, 8)) == "firework") {
init();
} else {
removeMovieClip("");
}
Symbol 353 Button
on (press) {
play();
}