Instance of Symbol 17 MovieClip in Frame 1
onClipEvent (load) {
peh.BarMove = 10;
peh.percent = 0;
_root.stop();
}
Frame 2
function LinkDA() {
_root.getURL("http://www.andrewmartin.deviantart.com", "_blank");
}
function LinkPAG() {
_root.getURL("http://www.chrome-arrow.com", "_blank");
}
function LinkCA() {
_root.getURL(sponsor, "_blank");
}
sponsor = "http://www.arcadebliss.com";
MENU = new ContextMenu();
MENU.hideBuiltInItems();
DAlink = new ContextMenuItem("Andy's deviantART page", LinkDA);
CAlink = new ContextMenuItem("Play More Games!", LinkCA);
PAGlink = new ContextMenuItem("We live at Chrome-Arrow.com", LinkPAG);
MENU.customItems.push(DAlink);
MENU.customItems.push(CAlink);
MENU.customItems.push(PAGlink);
_root.menu = MENU;
Frame 3
playmusic = true;
TutorialDone = false;
Frame 4
DBLE = false;
onEnterFrame = function () {
if (DBLE == true) {
DBLE = false;
play();
} else {
DBLE = true;
stop();
}
};
onMouseDown = function () {
};
Frame 65
stop();
onEnterFrame = function () {
};
stop();
Frame 66
DBLE = false;
onEnterFrame = function () {
if (DBLE == true) {
DBLE = false;
play();
} else {
DBLE = true;
stop();
}
};
Frame 103
if (goto == 1) {
gotoAndStop (181);
} else if (goto == 2) {
gotoAndStop (106);
} else {
gotoAndStop (104);
}
onEnterFrame = function () {
};
Frame 104
stop();
Frame 107
stop();
Frame 108
stop();
Frame 109
stop();
stagename = new Array();
stagename[1] = "Group Stage - Match One";
stagename[2] = "Group Stage - Match Two";
stagename[3] = "Group Stage - Match Three";
stagename[4] = "Second Round";
stagename[5] = "Quarter Final";
stagename[6] = "Semi Final";
stagename[7] = "World Cup Final";
losses = 0;
Mstage = new Array();
Mstage[1] = 9 + random(9);
p = 1;
while (p <= 3) {
doody = false;
while (doody == false) {
Mstage[p] = 6 + random(12);
doody = true;
pp = 1;
while (pp < p) {
if (Mstage[p] == Mstage[pp]) {
doody = false;
}
pp++;
}
}
p++;
}
Mstage[4] = 1;
Mstage[5] = 2;
Mstage[6] = 3;
Mstage[7] = 4;
CurrentStage = 0;
TNames = new Array();
TNames[1] = "England";
TNames[2] = "Germany";
TNames[3] = "Brazil";
TNames[4] = "Argentina";
TNames[5] = "Portugal";
TNames[6] = "Italy";
TNames[7] = "Holland";
TNames[8] = "USA";
TMorales = new Array();
TMorales[1] = 82;
TMorales[2] = 90;
TMorales[3] = 84;
TMorales[4] = 98;
TMorales[5] = 80;
TMorales[6] = 84;
TMorales[7] = 82;
TMorales[8] = 70;
TSkills = new Array();
TSkills[1] = 90;
TSkills[2] = 84;
TSkills[3] = 98;
TSkills[4] = 94;
TSkills[5] = 80;
TSkills[6] = 84;
TSkills[7] = 86;
TSkills[8] = 62;
TNames[9] = "Sweden";
TMorales[9] = 75;
TSkills[9] = 81;
TNames[10] = "Mexico";
TMorales[10] = 82;
TSkills[10] = 80;
TNames[11] = "Australia";
TMorales[11] = 72;
TSkills[11] = 80;
TNames[12] = "Switzerland";
TMorales[12] = 78;
TSkills[12] = 76;
TNames[13] = "Ukraine";
TMorales[13] = 75;
TSkills[13] = 73;
TNames[14] = "Ecuador";
TMorales[14] = 82;
TSkills[14] = 80;
TNames[15] = "Ghana";
TMorales[15] = 81;
TSkills[15] = 85;
TNames[16] = "France";
TMorales[16] = 78;
TSkills[16] = 88;
TNames[17] = "Spain";
TMorales[17] = 81;
TSkills[17] = 85;
This = _root.t1;
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
team = 1;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
Frame 110
play();
stagename = new Array();
stagename[1] = "Group Stage - Match One";
stagename[2] = "Group Stage - Match Two";
stagename[3] = "Group Stage - Match Three";
stagename[4] = "Second Round";
stagename[5] = "Quarter Final";
stagename[6] = "Semi Final";
stagename[7] = "World Cup Final";
losses = 0;
Mstage = new Array();
Mstage[1] = 9 + random(9);
p = 1;
while (p <= 3) {
doody = false;
while (doody == false) {
Mstage[p] = 6 + random(12);
doody = true;
pp = 1;
while (pp < p) {
if (Mstage[p] == Mstage[pp]) {
doody = false;
}
pp++;
}
}
p++;
}
Mstage[4] = 1;
Mstage[5] = 2;
Mstage[6] = 3;
Mstage[7] = 4;
CurrentStage = 0;
TNames = new Array();
TNames[1] = "England";
TNames[2] = "Germany";
TNames[3] = "Brazil";
TNames[4] = "Argentina";
TNames[5] = "Portugal";
TNames[6] = "Italy";
TNames[7] = "Holland";
TNames[8] = "USA";
TMorales = new Array();
TMorales[1] = 82;
TMorales[2] = 90;
TMorales[3] = 84;
TMorales[4] = 98;
TMorales[5] = 80;
TMorales[6] = 84;
TMorales[7] = 82;
TMorales[8] = 84;
TSkills = new Array();
TSkills[1] = 90;
TSkills[2] = 84;
TSkills[3] = 98;
TSkills[4] = 94;
TSkills[5] = 80;
TSkills[6] = 84;
TSkills[7] = 86;
TSkills[8] = 74;
TNames[9] = "Sweden";
TMorales[9] = 75;
TSkills[9] = 81;
TNames[10] = "Mexico";
TMorales[10] = 82;
TSkills[10] = 80;
TNames[11] = "Australia";
TMorales[11] = 72;
TSkills[11] = 80;
TNames[12] = "Switzerland";
TMorales[12] = 78;
TSkills[12] = 76;
TNames[13] = "Ukraine";
TMorales[13] = 75;
TSkills[13] = 73;
TNames[14] = "Ecuador";
TMorales[14] = 82;
TSkills[14] = 80;
TNames[15] = "Ghana";
TMorales[15] = 81;
TSkills[15] = 85;
TNames[16] = "France";
TMorales[16] = 78;
TSkills[16] = 88;
TNames[17] = "Spain";
TMorales[17] = 81;
TSkills[17] = 85;
team = 1;
chosenteam = team;
onEnterFrame = function () {
};
Frame 179
onEnterFrame = function () {
};
stop();
Frame 180
stop();
Frame 181
if (TutorialDone == true) {
gotoAndPlay (110);
}
Frame 182
stop();
if (playmusic == false) {
stopAllSounds();
}
Instance of Symbol 437 MovieClip in Frame 182
onClipEvent (keyDown) {
if (Key.isDown(13)) {
_root.nextFrame();
}
}
Instance of Symbol 437 MovieClip in Frame 185
onClipEvent (keyDown) {
if (Key.isDown(87)) {
_root.nextFrame();
}
}
Frame 186
stop();
Instance of Symbol 436 MovieClip "P1" in Frame 186
onClipEvent (load) {
posrot = 0;
chosenteam = 1;
s.p.kit.gotoAndStop(chosenteam);
}
onClipEvent (enterFrame) {
s = this;
if (s.active > 0) {
s._x = s._x + s.xstep;
s._y = s._y + s.ystep;
_root.selecter2._x = _x;
_root.selecter2._y = _y;
s.gotoAndStop(2);
s.p.kit.gotoAndStop(chosenteam);
if (_root.red.hitTest(_x, _y, false)) {
_root.nextFrame();
}
} else {
s.gotoAndStop(1);
s.p.kit.gotoAndStop(chosenteam);
}
_root.ball._x = s._x + (s.xstep * 7);
_root.ball._y = s._y + (s.ystep * 7);
if (!_root.pitch.hitTest(_x, _y, false)) {
s._x = s._x - s.xstep;
s._y = s._y - s.ystep;
_rotation = (_rotation + 180);
}
if (s._x < 25) {
s._x = 25;
}
if (Key.isDown(65)) {
if (posrot >= -15) {
posrot = posrot - 0.7;
} else {
posrot = -1;
}
} else if (Key.isDown(68)) {
if (posrot <= 15) {
posrot = posrot + 0.7;
} else {
posrot = 1;
}
} else if (posrot > 1) {
posrot = posrot - 1;
} else if (posrot < -1) {
posrot = posrot + 1;
} else {
posrot = 0;
}
s._rotation = s._rotation + posrot;
runspeed = 1;
s.xstep = Math.cos(s._rotation * (Math.PI/180)) * runspeed;
s.ystep = Math.sin(s._rotation * (Math.PI/180)) * runspeed;
if (Key.isDown(87)) {
s.active = 2;
} else {
s.active = 0;
}
}
Instance of Symbol 437 MovieClip in Frame 186
onClipEvent (keyDown) {
}
Instance of Symbol 437 MovieClip in Frame 187
onClipEvent (keyDown) {
if (Key.isDown(13)) {
_root.nextFrame();
}
}
Instance of Symbol 462 MovieClip "P1" in Frame 188
onClipEvent (load) {
posrot = 0;
chosenteam = 1;
s.p.kit.gotoAndStop(chosenteam);
_root.powbar._width = 0;
ball = _root.ball;
ball.xstep = 0;
ball.ystep = 0;
ball.zstep = 0;
ball.origwidth = ball._width;
ball.z = 0;
ballbearer = true;
kickpow = 0;
}
onClipEvent (enterFrame) {
ball._x = ball._x + ball.xstep;
ball._y = ball._y + ball.ystep;
if (!_root.pitch.hitTest(ball._x, ball._y)) {
ball._x = ball._x - (ball.xstep * 2);
ball._y = ball._y - (ball.ystep * 2);
ball.xstep = 0;
ball.ystep = 0;
}
ball.z = ball.z + ball.zstep;
ball._width = ball.origwidth + (ball.z / 9);
ball._height = ball.origwidth + (ball.z / 9);
ball.zstep = ball.zstep - 1;
if (ball.z < 0) {
ball.z = 0;
ball.zstep = ball.zstep * -0.6;
if (ball.zstep < 1) {
ball.zstep = 0;
}
ball.xstep = ball.xstep * 0.5;
ball.ystep = ball.ystep * 0.5;
if (_root.red.hitTest(ball._x, ball._y, false) && (ballbearer == false)) {
_root.nextFrame();
}
if ((ball.xstep < 0.2) && (ball.xstep > -0.2)) {
if ((ball.ystep < 0.2) && (ball.ystep > -0.2)) {
ballbearer = true;
}
}
}
if (ballbearer == true) {
s = this;
if (s.active > 0) {
s._x = s._x + s.xstep;
s._y = s._y + s.ystep;
_root.ball.xstep = 0;
_root.ball.ystep = 0;
_root.selecter2._x = _x;
_root.selecter2._y = _y;
s.gotoAndStop(2);
s.p.kit.gotoAndStop(chosenteam);
} else {
s.gotoAndStop(1);
s.p.kit.gotoAndStop(chosenteam);
}
_root.ball._x = s._x + (s.xstep * 7);
_root.ball._y = s._y + (s.ystep * 7);
if (!_root.pitch.hitTest(_x, _y, false)) {
s._x = s._x - s.xstep;
s._y = s._y - s.ystep;
_rotation = (_rotation + 180);
}
if (s._x < 25) {
s._x = 25;
}
if (Key.isDown(65)) {
if (posrot >= -15) {
posrot = posrot - 0.7;
} else {
posrot = -1;
}
} else if (Key.isDown(68)) {
if (posrot <= 15) {
posrot = posrot + 0.7;
} else {
posrot = 1;
}
} else if (posrot > 1) {
posrot = posrot - 1;
} else if (posrot < -1) {
posrot = posrot + 1;
} else {
posrot = 0;
}
s._rotation = s._rotation + posrot;
runspeed = 1;
s.xstep = Math.cos(s._rotation * (Math.PI/180)) * runspeed;
s.ystep = Math.sin(s._rotation * (Math.PI/180)) * runspeed;
if (Key.isDown(87)) {
s.active = 2;
} else {
s.active = 0;
}
if (Key.isDown(16)) {
kickpow = kickpow + 0.6;
if (kickpow > 10) {
kickpow = 10;
}
_root.powbar._width = (kickpow / 10) * 100;
} else {
if (kickpow > 0) {
_root.powbar._width = 0;
ballbearer = false;
runspeed = 1;
ball.xstep = (s.xstep / runspeed) * kickpow;
ball.ystep = (s.ystep / runspeed) * kickpow;
if (ball._x > 400) {
ball.xstep = ball.xstep;
ball.ystep = ball.ystep;
}
ball.zstep = 7;
s.gotoAndStop(4);
s.p.kit.gotoAndStop(chosenteam);
}
kickpow = 0;
}
}
}
Instance of Symbol 437 MovieClip in Frame 188
onClipEvent (keyDown) {
}
Instance of Symbol 437 MovieClip in Frame 189
onClipEvent (keyDown) {
if (Key.isDown(13)) {
stopAllSounds();
_root.nextFrame();
}
}
Frame 190
TutorialDone = true;
if (playmusic == false) {
stopAllSounds();
}
gotoAndPlay (4);
Frame 191
function normalteam() {
p = 1;
while (p <= 4) {
s = _root["P" + p];
s.pos = 0.8;
s._x = 95;
s.shooting = 50;
s.tackling = 100;
p++;
}
s = _root.P1;
s._y = 65;
s = _root.P2;
s._y = 145;
s = _root.P3;
s._y = 225;
s = _root.P4;
s._y = 305;
p = 5;
while (p <= 6) {
s = _root["P" + p];
s.pos = 1;
s._x = 165;
s.shooting = 75;
s.tackling = 75;
p++;
}
s = _root.P7;
s._x = 240;
s._y = 65;
s.pos = 1;
s.shooting = 75;
s.tackling = 75;
s = _root.P5;
s._y = 135;
s = _root.P6;
s._y = 235;
s = _root.P8;
s._x = 240;
s._y = 305;
s.pos = 1;
s.shooting = 75;
s.tackling = 75;
s = _root.P9;
s._x = 220;
s.pos = 1.2;
s._y = 145;
s.shooting = 100;
s.tackling = 75;
s = _root.P10;
s._x = 220;
s.pos = 1.2;
s._y = 225;
s.shooting = 100;
s.tackling = 75;
}
function enemyteam() {
p = 1;
while (p <= 4) {
s = _root["E" + p];
s.pos = 0.8;
s._x = 95;
s.shooting = 50;
s.tackling = 100;
p++;
}
s = _root.E1;
s._y = 65;
s = _root.E2;
s._y = 155;
s._x = s._x - 5;
s = _root.E3;
s._y = 215;
s._x = s._x - 5;
s = _root.E4;
s._y = 305;
p = 5;
while (p <= 6) {
s = _root["E" + p];
s.pos = 1;
s._x = 165;
s.shooting = 75;
s.tackling = 75;
p++;
}
s = _root.E7;
s._x = 240;
s._y = 65;
s.pos = 1;
s.shooting = 75;
s.tackling = 75;
s = _root.E5;
s._y = 145;
s = _root.E6;
s._y = 225;
s = _root.E8;
s._x = 240;
s._y = 305;
s.pos = 1;
s.shooting = 75;
s.tackling = 75;
s = _root.E9;
s._x = 220;
s.pos = 1.2;
s._y = 145;
s.shooting = 100;
s.tackling = 75;
s = _root.E10;
s._x = 220;
s.pos = 1.2;
s._y = 225;
s.shooting = 100;
s.tackling = 75;
p = 1;
while (p <= 10) {
s = _root["E" + p];
s._x = 600 - s._x;
p++;
}
}
skill = TSkills[chosenteam];
morale = TMorales[chosenteam];
allspeed = 1.4;
CurrentStage++;
Eteam = Mstage[CurrentStage];
if (Eteam == chosenteam) {
Eteam = 5;
}
Frame 192
stop();
TEAMONE = TNames[chosenteam];
TEAMTWO = TNames[Eteam];
KIT1.p.kit.gotoAndStop(chosenteam);
KIT2.p.kit.gotoAndStop(Eteam);
flag1.gotoAndStop(chosenteam);
flag2.gotoAndStop(Eteam);
Frame 193
stop();
stagenamedisplay = stagename[CurrentStage];
matchtipdisplay = "You must win this match";
if (CurrentStage < 4) {
if (losses < 1) {
matchtipdisplay = "You can afford to lose this match";
}
}
half = 1;
minutetimer = 0;
secondtimer = 0;
normalteam();
p = 1;
goaltal1 = 0;
goaltal2 = 0;
xpos = new Array();
ypos = new Array();
role = new Array();
Shooting = new Array();
Tackling = new Array();
Speed = new Array();
Onspeed = new Array();
SMfactor = (morale + skill) / 200;
while (p <= 10) {
s = _root["P" + p];
xpos[p] = s._x;
ypos[p] = s._y;
role[p] = s.pos;
s.shooting = s.shooting * SMfactor;
s.tackling = s.tackling * SMfactor;
s.speed = allspeed / s.pos;
s.speed = s.speed * SMfactor;
s.onspeed = allspeed * s.pos;
s.onspeed = s.onspeed * SMfactor;
shooting[p] = s.shooting;
s._rotation = 0;
s.p.kit.gotoAndStop(chosenteam);
p++;
}
skilldisplay = skill;
moraledisplay = morale;
Selected = false;
onMouseDown = function () {
p = 1;
while (p <= 10) {
s = _root["P" + p];
if (s.hitTest(_xmouse, _ymouse, true)) {
Selected = true;
select = "P" + p;
s = _root[select];
selecter._x = s._x;
selecter._y = s._y;
selecter._visible = true;
highlighter._x = _root["r" + s.pos]._x;
highlighter._width = _root["r" + s.pos]._width;
Move = false;
shooting = Math.round(s.shooting);
soff = Math.round(s.speed * 10) * 5;
son = Math.round(s.onspeed * 10) * 5;
tackling = Math.round(s.tackling);
}
p++;
}
if (Move == true) {
if (Selected == true) {
if (pitch.hitTest(_xmouse, _ymouse, true)) {
s = _root[select];
s._x = _xmouse;
s._y = _ymouse;
Selected = false;
selecter._visible = false;
}
}
} else {
Move = true;
}
};
onEnterFrame = function () {
};
Frame 194
function resetpitch() {
p = 1;
while (p <= 10) {
s = _root["P" + p];
s._x = xpos[p];
s._y = ypos[p];
s.Xloc = s._x;
s.xloc = s.Xloc + (playstrat * s.pos);
s.Yloc = s._y;
s.multiplier = 1;
s.yloc = s.Yloc;
s.active = 0;
s.factor = 1;
s.p.kit.gotoAndStop(chosenteam);
s.delay = 0;
s.stamina = 100;
s.possessed = false;
posplayer = false;
p++;
}
enemyteam();
p = 1;
p = 1;
while (p <= 10) {
s = _root["E" + p];
s.Xloc = s._x;
s.yloc = s._y;
s.rad = 60;
s.active = 0;
s.factor = 1;
s.pos = erole[p];
s.onspeed = (allspeed * s.pos) * ESM;
s.speed = (allspeed / s.pos) * ESM;
s.tackling = s.tackling * ESM;
s.shooting = s.shooting * ESM;
s.team = 2;
s.p.kit.gotoAndStop(Eteam);
s.delay = 0;
s.stamina = 100;
p++;
}
if (goalin == goal1) {
ball._x = 400;
ball._y = 185;
ball.xstep = -8;
ball.ystep = 0;
ball.zstep = 10;
} else {
ball._x = 200;
ball._y = 185;
ball.xstep = 8;
ball.ystep = 0;
ball.zstep = 10;
}
ballbearer = ball;
goal = false;
}
function Pausegame() {
if (_root.Paused == false) {
pitch.gotoAndStop(2);
if (posplayer == true) {
possessedplayer.possessed = false;
posplayer = false;
selecter2._visible = false;
}
sound.stop();
p = 1;
while (p <= 10) {
s = _root["P" + p];
s.p.stop();
s = _root["E" + p];
s.p.stop();
p++;
}
_root.Paused = true;
_root.selectedplayer = ball;
_root.selecter._visible = true;
if ((_root.ballbearer.team == 1) && (ballbearer != PG)) {
_root.selecter._x = _root.ballbearer._x;
_root.selecter._y = _root.ballbearer._y;
_root.selectedplayer = _root.ballbearer;
posdisplay = posname[ballbearer.pos];
} else {
_root.selecter._x = -40;
}
_root.pointer._x = -40;
} else {
sound.play();
p = 1;
while (p <= 10) {
s = _root["P" + p];
s.p.play();
s = _root["E" + p];
s.p.play();
p++;
}
posdisplay = "";
pitch.gotoAndStop(1);
_root.Paused = false;
linelayer.clear();
_root.selecter._visible = false;
pointer._visible = false;
}
}
stop();
if (playmusic == false) {
stopAllSounds();
sound.gotoAndPlay(230);
}
resetpitch();
posplayer = false;
tmtimer = 60;
posrot = 0;
kickpow = 0;
teamname1 = TNames[chosenteam];
flag1.gotoAndStop(chosenteam);
teamname2 = TNames[Eteam];
flag2.gotoAndStop(Eteam);
goldengoal = false;
goaltally1 = goaltal1;
goaltally2 = goaltal2;
goal = false;
GK = PG;
PG._x = 30;
PG.dir = 1;
PG.team = 1;
PG.goalie = true;
EG._x = 570;
EG.team = 2;
EG.dir = -1;
strat = 120;
Paused = false;
playstrat = 120;
if (half == 1) {
ball.xstep = -5;
ball._x = 400;
} else {
ball.xstep = 5;
ball._x = 200;
}
ball.zstep = 13;
ball.shot = false;
ball._y = 185;
ball.z = 0;
ball.origwidth = ball._width;
ballplayer = P10;
ballbearer = ball;
highligher._x = -50;
p = 1;
while (p <= 10) {
s = _root["P" + p];
s.action = false;
s._x = xpos[p];
s._y = ypos[p];
s.Xloc = s._x;
s.multiplier = 1;
s.xloc = s.Xloc + (playstrat * s.pos);
s.Yloc = s._y;
s.yloc = s.Yloc;
s.rad = 60;
s.active = 1;
s.speed = Speed[p];
s.onspeed = Onspeed[p];
s.shooting = Shooting[p];
s.tackling = Tackling[p];
s.p.kit.gotoAndStop(chosenteam);
s.factor = 1;
s.pos = role[p];
s.controllable = true;
s.team = 1;
s.delay = 0;
s.xstep = 0.5;
s.stamina = 100;
s.possessed = false;
p++;
}
currentplayer = 0;
onEnterFrame = function () {
if (Paused != true) {
if (posplayer == true) {
s = possessedplayer;
if (s._x < 25) {
s._x = 25;
}
if (ballbearer != s) {
s.possessed = false;
posplayer = false;
selecter2._visible = false;
}
if (Key.isDown(65)) {
if (posrot >= -15) {
posrot = posrot - 0.7;
} else {
posrot = -1;
}
} else if (Key.isDown(68)) {
if (posrot <= 15) {
posrot = posrot + 0.7;
} else {
posrot = 1;
}
} else if (posrot > 1) {
posrot = posrot - 1;
} else if (posrot < -1) {
posrot = posrot + 1;
} else {
posrot = 0;
}
s._rotation = s._rotation + posrot;
runspeed = s.onspeed;
s.xstep = Math.cos(s._rotation * (Math.PI/180)) * runspeed;
s.ystep = Math.sin(s._rotation * (Math.PI/180)) * runspeed;
s.xstep = s.xstep * (s.stamina / 100);
s.ystep = s.ystep * (s.stamina / 100);
if (Key.isDown(87)) {
s.active = 2;
} else {
s.active = 0;
}
if (Key.isDown(16)) {
kickpow = kickpow + 0.6;
if (kickpow > 12) {
kickpow = 12;
}
powbar._width = (kickpow / 12) * 100;
} else {
if (s == ballbearer) {
if (kickpow > 0) {
powbar._width = 0;
ballbearer = ball;
runspeed = s.onspeed * (s.stamina / 100);
ball.xstep = (s.xstep / runspeed) * kickpow;
ball.ystep = (s.ystep / runspeed) * kickpow;
if (ball._x > 400) {
ball.xstep = ball.xstep * (s.shooting / 100);
ball.ystep = ball.ystep * (s.shooting / 100);
}
ball.zstep = kickpow;
if (ball._x > 400) {
if (ball.zstep > 5) {
ball.zstep = 5;
}
} else if (ball.zstep > 8) {
ball.zstep = 8;
}
ball.shot = true;
s.gotoAndStop(4);
s.p.kit.gotoAndStop(chosenteam);
}
}
kickpow = 0;
}
} else {
powbar._width = 0;
kickpow = 0;
selecter2._visible = false;
posdisplay = "";
if (Key.isDown(87)) {
if (ballbearer.team == 1) {
if (ballbearer != PG) {
posplayer = true;
possessedplayer.possessed = false;
possessedplayer = ballbearer;
possessedplayer.possessed = true;
posdisplay = posname[possessedplayer.pos];
selecter2._visible = true;
selecter2._x = possessedplayer._x;
selecter2._y = possessedplayer._y;
}
}
}
}
secondtimer = secondtimer + 1;
if (secondtimer > 60) {
secondtimer = 0;
minutetimer++;
if (half == 1) {
if (minutetimer >= 45) {
stopAllSounds();
gotoAndStop (195);
}
} else if (minutetimer >= 90) {
if (goaltal1 != goaltal2) {
stopAllSounds();
gotoAndStop (196);
} else {
goldengoal = true;
}
}
}
if (goldengoal == true) {
timerdisplay = "Golden Goal";
} else {
timerdisplay = (minutetimer + ":") + Math.round(secondtimer);
}
ball._x = ball._x + ball.xstep;
ball._y = ball._y + ball.ystep;
ball.z = ball.z + ball.zstep;
ball._width = ball.origwidth + (ball.z / 9);
ball._height = ball.origwidth + (ball.z / 9);
ball.zstep = ball.zstep - 1;
if (ball.z < 0) {
ball.z = 0;
ball.zstep = ball.zstep * -0.6;
if (ball.zstep < 1) {
ball.zstep = 0;
}
ball.xstep = ball.xstep * 0.5;
ball.ystep = ball.ystep * 0.5;
}
if (ball._y < 25) {
ballbearer.delay = 15;
ballbearer = ball;
ball._y = 25;
ball.ystep = 3;
ball.zstep = 2;
} else if (ball._y > 345) {
ballbearer.delay = 15;
ballbearer = ball;
ball._y = 345;
ball.ystep = -3;
ball.zstep = 2;
}
if (goal == true) {
ball.shot = false;
if (!goalin.hitTest(ball._x, ball._y, false)) {
ball._x = ball._x - ball.xstep;
ball._y = ball._y - ball.ystep;
ball.xstep = ball.xstep * -0.4;
ball.ystep = ball.ystep * -0.4;
}
goaltimer = goaltimer - 1;
if (goaltimer < 1) {
resetpitch();
}
} else if (ballbearer == ball) {
if (ball._x < 25) {
if (goal1.hitTest(ball._x, ball._y, false)) {
goaltimer = 100;
ball.xstep = ball.xstep * 0.5;
ball.zstep = ball.zstep * 0.3;
ball.ystep = ball.ystep * 0.5;
goalin = _root.goal1;
goaltal2 = goaltal2 + 1;
goaltally2 = goaltal2;
soundcheer.gotoAndPlay(1);
goal = true;
}
if (goal != true) {
ball.shot = false;
ball._x = 25;
ball.xstep = ball.xstep * -0.4;
}
} else if (ball._x > 575) {
if (goal2.hitTest(ball._x, ball._y, false)) {
ball.xstep = ball.xstep * 0.5;
ball.zstep = ball.zstep * 0.3;
ball.ystep = ball.ystep * 0.5;
goaltimer = 100;
goaltal1 = goaltal1 + 1;
goaltally1 = goaltal1;
soundcheer.gotoAndPlay(1);
goalin = _root.goal2;
goal = true;
}
if (goal != true) {
ball.shot = false;
ball._x = 575;
ball.xstep = ball.xstep * -0.4;
}
}
}
if (ballbearer == ball) {
stambar._width = 0;
}
if (easymode == true) {
if (tmtimer < 1) {
tmtimer = 30;
if (lastballbearer.team == 1) {
dn = 1;
} else {
dn = 0;
}
if (ball._x > 250) {
newstrat = strat + (strat * dn);
} else {
newstrat = strat * dn;
}
if (ball._x > 480) {
newstrat = strat + strat;
}
if (playstrat != newstrat) {
playstrat = newstrat;
p = 1;
while (p <= 10) {
s = _root["P" + p];
s.xloc = s.Xloc + (playstrat * s.pos);
s.yloc = s.Yloc;
s.multiplier = 1;
s.factor = 0.1;
p++;
}
}
} else {
tmtimer = tmtimer - 1;
}
}
p = 1;
while (p <= 10) {
s = _root["P" + p];
if (ballbearer == s) {
if (s.active > 0) {
if (s.stamina > 0) {
s.stamina = s.stamina - 0.4;
stambar._width = s.stamina;
}
}
if (s._x > 550) {
s.xstep = 0;
s.ystep = 0;
} else {
ball._x = s._x + (s.xstep * 7);
ball._y = s._y + (s.ystep * 7);
ball.xstep = 0;
ball.ystep = 0;
}
}
if (s.active > 0) {
s.active = s.active - 1;
s._x = s._x + s.xstep;
s._y = s._y + s.ystep;
} else {
s.multiplier = 1;
}
if (posplayer == true) {
if (s == possessedplayer) {
selecter2._x = s._x;
selecter2._y = s._y;
}
}
p++;
}
currentplayer++;
if (currentplayer > 10) {
currentplayer = 1;
chasing = 400;
}
s = _root["P" + currentplayer];
if (s.delay < 1) {
if (ballbearer == s) {
if (s.possessed != true) {
if (command == true) {
command = false;
if (pass == true) {
pass = false;
power = 15 + random(11);
xpath = passx - s._x;
ypath = passy - s._y;
dist = Math.sqrt((xpath * xpath) + (ypath * ypath));
s.xstep = xpath / dist;
s.ystep = ypath / dist;
ball.xstep = xpath / power;
ball.ystep = ypath / power;
ball.zstep = 0.5 * (power - 10);
s.action = true;
s.gotoAndStop(4);
ballbearer = ball;
if (ball.xstep > 0) {
LCT = (575 - ball._x) / ball.xstep;
LCT = ball._y + (LCT * ball.ystep);
if ((LCT > 155) && (LCT < 215)) {
ball.shot = true;
}
}
} else if (commandshoot == true) {
commandshoot = false;
power = 2 + random(5);
xpath = 575 - s._x;
accur = Math.round((1 - (s.shooting / 100)) * 50);
yshot = ((185 + ((random(3) - 1) * 20)) + random((2 * accur) + 1)) - accur;
ypath = yshot - s._y;
dist = Math.sqrt((xpath * xpath) + (ypath * ypath));
if (dist < 110) {
s.xstep = xpath / dist;
s.ystep = ypath / dist;
ball.xstep = (xpath / power) * (s.shooting / 100);
ball.ystep = (ypath / power) * (s.shooting / 100);
ball.zstep = 0.5 * power;
ballbearer = ball;
s.action = true;
s.gotoAndStop(4);
ball.shot = true;
}
}
} else {
power = 2 + random(5);
xpath = 575 - s._x;
accur = Math.round((1 - (s.shooting / 100)) * 50);
yshot = ((185 + ((random(3) - 1) * 20)) + random((2 * accur) + 1)) - accur;
ypath = yshot - s._y;
dist = Math.sqrt((xpath * xpath) + (ypath * ypath));
if (dist < 100) {
if (random(2) == 0) {
s.xstep = xpath / dist;
s.ystep = ypath / dist;
ball.xstep = (xpath / power) * (s.shooting / 100);
ball.ystep = (ypath / power) * (s.shooting / 100);
ball.zstep = 0.5 * power;
ballbearer = ball;
s.action = true;
s.gotoAndStop(4);
ball.shot = true;
}
} else {
S = _root["P" + (random(10) + 1)];
run = true;
if (s != S) {
if (random(3) == 0) {
if (S.pos >= s.pos) {
power = 15 + random(11);
xpath = (S._x + ((power / 2) * S.xstep)) - s._x;
ypath = S._y - s._y;
dist = Math.sqrt((xpath * xpath) + (ypath * ypath));
s.xstep = xpath / dist;
s.ystep = ypath / dist;
ball.xstep = xpath / power;
ball.ystep = ypath / power;
ball.zstep = 0.5 * (power - 10);
ballbearer = ball;
s.action = true;
s.gotoAndStop(4);
run = false;
}
}
}
if (run == true) {
sspeed = s.onspeed;
s.xstep = (sspeed / 2) + (sspeed * (random(6) / 10));
s.ystep = Math.sqrt((sspeed * sspeed) - (s.xstep * s.xstep));
s.xstep = (s.stamina / 100) * s.xstep;
s.ystep = (s.stamina / 100) * s.ystep;
if (random(2) == 0) {
s.ystep = s.ystep * -1;
}
s.active = 15;
}
}
}
}
} else {
if (s.possessed != true) {
movex = s._x - s.xloc;
movey = s._y - s.yloc;
dist = Math.sqrt((movex * movex) + (movey * movey));
if (dist > (s.rad * s.factor)) {
s.xstep = ((movex / dist) * (-s.speed)) * s.multiplier;
s.ystep = ((movey / dist) * (-s.speed)) * s.multiplier;
s.active = Math.round(movex / (-s.xstep));
}
}
movex = ball._x - s._x;
movey = ball._y - s._y;
dist = Math.sqrt((movex * movex) + (movey * movey));
if (chasing > dist) {
chasing = dist;
if (dist < s.rad) {
if (s.team != ballbearer.team) {
if (s.team == 2) {
distcheck = 15 * (s.tackling / 100);
} else {
distcheck = 6;
}
if (dist < distcheck) {
if (ball.z < 8) {
ball.zstep = 0;
ball.z = 0;
if (ballbearer.team != s.team) {
ballbearer.delay = 5;
ballbearer.active = 0;
}
ballbearer = _root[s._name];
s.stamina = 100;
s.multiplier = 1;
s.active = 15;
ball.shot = false;
lastballbearer = s;
if (s.xstep < 0) {
s.xstep = 0;
s.ystep = 0;
} else {
s.xstep = s.xstep * 0.8;
s.ystep = s.ystep * 0.8;
}
}
} else if (s.possessed != true) {
s.xstep = (movex / dist) * s.speed;
s.ystep = (movey / dist) * s.speed;
s.active = Math.round(movex / s.xstep);
}
}
}
}
}
s.factor = 1;
if (s.possessed == false) {
s._rotation = Math.atan(s.ystep / s.xstep) * 57.2957795130823;
if (s.xstep < 0) {
s._rotation = s._rotation + 180;
}
}
} else {
s.delay = s.delay - 1;
}
if (s.action == false) {
if (((s.active > 0) && (s.delay < 1)) && (s.xstep != 0)) {
if (s != ballbearer) {
s.gotoAndStop(2);
} else {
s.gotoAndStop(3);
}
s.p.kit.gotoAndStop(chosenteam);
} else {
s.gotoAndStop(1);
s.p.kit.gotoAndStop(chosenteam);
}
} else {
s.action = false;
s.p.kit.gotoAndStop(chosenteam);
}
if (lastballbearer.team == 2) {
dn = 1;
} else {
dn = 0;
}
if (ball._x < 280) {
enemystrat = strat + (strat * dn);
} else {
enemystrat = strat * dn;
}
if (ball._x < 120) {
enemystrat = strat + strat;
}
p = 1;
while (p <= 10) {
s = _root["E" + p];
if (ballbearer == s) {
if (s.stamina > 0) {
s.stamina = s.stamina - 0.3;
stambar._width = s.stamina;
}
if (s._x < 50) {
s.xstep = 0;
s.ystep = 0;
} else {
ball._x = s._x + (s.xstep * 7);
ball._y = s._y + (s.ystep * 7);
ball.xstep = 0;
ball.ystep = 0;
}
}
if (s.active > 0) {
s.active = s.active - 1;
s._x = s._x + s.xstep;
s._y = s._y + s.ystep;
}
p++;
}
ecurrentplayer++;
if (ecurrentplayer > 10) {
ecurrentplayer = 1;
echasing = 400;
}
s = _root["E" + ecurrentplayer];
if (s.delay < 1) {
if (ballbearer == s) {
power = 3 + random(6);
xpath = 25 - s._x;
accur = Math.round((1 - (s.shooting / 100)) * 40);
yshot = ((185 + ((random(3) - 1) * 20)) + random((2 * accur) + 1)) - accur;
ypath = yshot - s._y;
dist = Math.sqrt((xpath * xpath) + (ypath * ypath));
if (dist < 110) {
if (random(2) == 0) {
s.xstep = xpath / dist;
s.ystep = ypath / dist;
ball.xstep = (xpath / power) * (s.shooting / 100);
ball.ystep = (ypath / power) * (s.shooting / 100);
ball.zstep = 0.5 * power;
ballbearer = ball;
ball.shot = true;
s.action = true;
s.gotoAndStop(4);
}
} else {
S = _root["E" + (random(10) + 1)];
run = true;
if (random(2) == 0) {
if (s != S) {
if (S.pos >= s.pos) {
power = 15 + random(11);
xpath = (S._x + (power * S.xstep)) - s._x;
ypath = S._y - s._y;
dist = Math.sqrt((xpath * xpath) + (ypath * ypath));
s.xstep = xpath / dist;
s.ystep = ypath / dist;
ball.xstep = xpath / power;
ball.ystep = ypath / power;
ball.zstep = 0.5 * (power - 10);
ballbearer = ball;
s.action = true;
s.gotoAndStop(4);
run = false;
}
}
}
if (run == true) {
sspeed = s.onspeed;
s.xstep = -((sspeed / 2) + (sspeed * (random(6) / 10)));
s.ystep = Math.sqrt((sspeed * sspeed) - (s.xstep * s.xstep));
s.xstep = (s.stamina / 100) * s.xstep;
s.ystep = (s.stamina / 100) * s.ystep;
if (random(2) == 0) {
s.ystep = s.ystep * -1;
}
s.active = 15;
}
}
} else {
if (s.active == 0) {
s.factor = 0.1;
} else {
s.factor = 1;
}
s.xloc = s.Xloc - (enemystrat * s.pos);
movex = s._x - s.xloc;
movey = s._y - s.yloc;
dist = Math.sqrt((movex * movex) + (movey * movey));
if (dist > s.rad) {
s.xstep = (movex / dist) * (-s.speed);
s.ystep = (movey / dist) * (-s.speed);
s.active = Math.round(movex / (-s.xstep));
}
movex = ball._x - s._x;
movey = ball._y - s._y;
dist = Math.sqrt((movex * movex) + (movey * movey));
if (echasing > dist) {
echasing = dist;
if (dist < s.rad) {
if (s.team != ballbearer.team) {
if (s.team == 1) {
distcheck = 15 * (s.tackling / 100);
} else {
distcheck = 6;
}
if (dist < distcheck) {
if (ball.z < 8) {
if (ballbearer.team != s.team) {
ballbearer.delay = 5;
ballbearer.active = 0;
}
ball.z = 0;
ball.zstep = 0;
ballbearer = _root[s._name];
s.stamina = 100;
command = false;
s.active = 15;
lastballbearer = s;
ball.shot = false;
if (s.xstep > 0) {
s.xstep = 0;
s.ystep = 0;
} else {
s.xstep = s.xstep * 0.8;
s.ystep = s.ystep * 0.8;
}
}
} else {
s.xstep = (movex / dist) * s.speed;
s.ystep = (movey / dist) * s.speed;
s.active = Math.round(movex / s.xstep);
}
}
}
}
}
s._rotation = Math.atan(s.ystep / s.xstep) * 57.2957795130823;
if (s.xstep < 0) {
s._rotation = s._rotation + 180;
}
} else {
s.delay = s.delay - 1;
}
if (s.action == false) {
if (((s.active > 0) && (s.delay < 1)) && (s.xstep != 0)) {
if (s != ballbearer) {
s.gotoAndStop(2);
} else {
s.gotoAndStop(3);
}
s.p.kit.gotoAndStop(Eteam);
} else {
s.gotoAndStop(1);
s.p.kit.gotoAndStop(Eteam);
}
} else {
s.action = false;
s.p.kit.gotoAndStop(Eteam);
}
if (GK == PG) {
GK = _root.EG;
} else {
GK = _root.PG;
}
if (goalkick == true) {
goaltimer = goaltimer - 1;
GK.p.play();
if (goaltimer < 1) {
GK = _root[GK._name];
ball._x = GK._x;
ball._y = GK._y;
ball.z = 0;
ball.zstep = 10;
ball.xstep = 7 * GK.dir;
ball.ystep = random(3) - 1;
goalkick = false;
ballbearer = ball;
GK.gotoAndStop(4);
}
if (GK == PG) {
GK = _root.EG;
} else {
GK = _root.PG;
}
} else {
if (ballbearer == ball) {
if (ball.shot == true) {
if (GK.team != lastballbearer.team) {
LCT = (GK._x - ball._x) / ball.xstep;
LCT = ball._y + (LCT * ball.ystep);
if ((LCT > 140) && (LCT < 230)) {
ball.shot = true;
} else {
ball.shot = false;
}
if (LCT > (GK._y + 1)) {
if (GK._y < 215) {
GK._y = GK._y + 2;
GK.gotoAndStop(3);
GK._rotation = GK._rotation + (1 * GK.dir);
}
} else if (LCT < (GK._y - 1)) {
if (GK._y > 155) {
GK._y = GK._y - 2;
GK.gotoAndStop(2);
GK._rotation = GK._rotation - (1 * GK.dir);
}
}
if (GK.hitTest(ball._x, ball._y, true)) {
if (Math.sqrt((ball.xstep * ball.xstep) + (ball.ystep * ball.ystep)) < 8) {
ball.shot = false;
ball.xstep = 0;
ball.ystep = 0;
ball.zstep = 0;
ball._x = -100;
ball._y = Gk._y;
ballbearer = GK;
goalkick = true;
goaltimer = 50;
} else {
ball.xstep = ball.xstep * -0.5;
ball.shot = false;
if (GK == PG) {
ball._x = GK._x + GK._width;
} else {
ball._x = GK._x - GK._width;
}
}
}
if (GK == PG) {
GK = EG;
} else {
GK = PG;
}
}
}
}
if (ball.shot != true) {
GK.p.play();
keeperpos = (ball._y - 185) / 100;
keeperpos = 185 + (15 * keeperpos);
if (GK._y < (keeperpos - 0.5)) {
if (GK._y < 215) {
GK._y = GK._y + 1;
if (GK == EG) {
GK._rotation = GK._rotation - 0.5;
} else {
GK._rotation = GK._rotation + 0.5;
}
}
} else if (GK._y > (keeperpos + 0.5)) {
if (GK._y > 155) {
GK._y = GK._y - 1;
if (GK == EG) {
GK._rotation = GK._rotation + 0.5;
} else {
GK._rotation = GK._rotation - 0.5;
}
}
}
}
}
}
};
ESM = (TMorales[Eteam] + TSkills[Eteam]) / 200;
enemystrat = strat;
ecurrentplayer = 0;
erole = new Array();
p = 1;
while (p <= 4) {
erole[p] = 0.8;
p++;
}
p = 5;
while (p <= 8) {
erole[p] = 1;
p++;
}
p = 9;
while (p <= 10) {
erole[p] = 1.2;
p++;
}
enemyteam();
p = 1;
while (p <= 10) {
s = _root["E" + p];
s.Xloc = s._x;
s.yloc = s._y;
s.rad = 60;
s.active = 0;
s.factor = 1;
s.action = false;
s.pos = erole[p];
s.onspeed = (allspeed * s.pos) * ESM;
s.speed = (allspeed / s.pos) * ESM;
s.tackling = s.tackling * ESM;
s.shooting = s.shooting * ESM;
s.team = 2;
s.p.kit.gotoAndStop(Eteam);
s.delay = 0;
s.stamina = 100;
p++;
}
posname = new Array();
posname[0.8] = "Defender";
posname[1] = "Midfielder";
posname[1.2] = "Striker";
posdisplay = "";
onMouseDown = function () {
if (Paused == true) {
newselect = false;
p = 1;
while (p <= 10) {
s = _root["P" + p];
if (s.hitTest(_xmouse, _ymouse, true)) {
newselect = true;
selectedplayer = s;
posdisplay = posname[s.pos];
selecter._x = s._x;
selecter._y = s._y;
selecter._visible = true;
if (s != ballbearer) {
pointer._visible = true;
pointer._x = s.xloc;
pointer._y = s.yloc;
linelayer.clear();
linelayer.lineStyle(1.5, 65280);
linelayer.moveTo(s._x, s._y);
linelayer.lineTo(s.xloc, s.yloc);
} else {
linelayer.clear();
pointer._visible = false;
if (command == true) {
if (pass == true) {
pointer._visible = true;
pointer._x = passx;
pointer._y = passy;
linelayer.lineStyle(1.5, 16711680);
linelayer.moveTo(ballbearer._x, ballbearer._y);
linelayer.lineTo(passx, passy);
}
}
}
}
p++;
}
if (newselect == false) {
if (selectedplayer != ball) {
if (selectedplayer != ballbearer) {
if (pitch.hitTest(_xmouse, _ymouse, false)) {
selectedplayer.xloc = _xmouse;
selectedplayer.yloc = _ymouse;
selectedplayer.multiplier = 1.5;
selectedplayer.factor = 0.1;
pointer._x = _xmouse;
pointer._y = _ymouse;
linelayer.clear();
linelayer.lineStyle(1.5, 65280);
linelayer.moveTo(selectedplayer._x, selectedplayer._y);
linelayer.lineTo(_xmouse, _ymouse);
pointer._visible = true;
tmtimer = 30;
}
} else if (pitch.hitTest(_xmouse, _ymouse, false)) {
passx2 = _xmouse;
passy2 = _ymouse;
xpath = passx2 - ballbearer._x;
ypath = passy2 - ballbearer._y;
dist = Math.sqrt((xpath * xpath) + (ypath * ypath));
if (ballbearer._x < 300) {
maxdist = 270;
} else {
maxdist = 200;
}
if (dist < maxdist) {
command = true;
pass = true;
passx = _xmouse;
passy = _ymouse;
linelayer.clear();
linelayer.lineStyle(1.5, 16711680);
linelayer.moveTo(ballbearer._x, ballbearer._y);
linelayer.lineTo(_xmouse, _ymouse);
pointer._x = _xmouse;
pointer._y = _ymouse;
pointer._visible = true;
commandshoot = false;
tmtimer = 30;
}
}
} else if (pitch.hitTest(_xmouse, _ymouse, false)) {
Pausegame();
}
}
} else if (pitch.hitTest(_xmouse, _ymouse, false)) {
Pausegame();
}
};
Frame 195
stop();
if (playmusic == false) {
stopAllSounds();
}
onEnterFrame = function () {
};
p = 1;
while (p <= 10) {
s = _root["P" + p];
s._x = xpos[p];
s._y = ypos[p] + 15;
s._rotation = 0;
s.gotoAndStop(1);
s.p.kit.gotoAndStop(chosenteam);
p++;
}
Selected = false;
onMouseDown = function () {
p = 1;
while (p <= 10) {
s = _root["P" + p];
if (s.hitTest(_xmouse, _ymouse, true)) {
Selected = true;
select = "P" + p;
s = _root[select];
selecter._x = s._x;
selecter._y = s._y;
selecter._visible = true;
highlighter._x = _root["r" + s.pos]._x;
highlighter._width = _root["r" + s.pos]._width;
Move = false;
shooting = Math.round(s.shooting);
soff = Math.round(s.speed * 10) * 5;
son = Math.round(s.onspeed * 10) * 5;
tackling = Math.round(s.tackling);
}
p++;
}
if (Move == true) {
if (Selected == true) {
if (pitch.hitTest(_xmouse, _ymouse, true)) {
s = _root[select];
s._x = _xmouse;
s._y = _ymouse;
Selected = false;
selecter._visible = false;
}
}
} else {
Move = true;
}
};
onEnterFrame = function () {
};
Frame 196
onEnterFrame = function () {
};
if (playmusic == false) {
stopAllSounds();
}
finalscoredisplay = (("Final Score: " + goaltal1) + " - ") + goaltal2;
if (goaltal1 > goaltal2) {
winningteam = ((TNames[chosenteam] + " won the ") + newline) + "match";
wonmatch = true;
Bmessage = "Proceed to next match...";
wonworldcup = false;
if (CurrentStage == 7) {
Bmessage = "You have won the World Cup!";
wonworldcup = true;
}
} else {
losses++;
winningteam = ((TNames[Eteam] + " won the ") + newline) + "match";
wonmatch = false;
Bmessage = "Back to Main Menu";
if (CurrentStage < 4) {
if (losses < 2) {
wonmatch = true;
Bmessage = "Proceed to next match...";
}
}
}
Frame 197
stopAllSounds();
Frame 198
if (playmusic == false) {
stopAllSounds();
}
Frame 427
gotoAndPlay (428);
Frame 437
stopAllSounds();
Frame 438
stop();
if (playmusic == false) {
stopAllSounds();
}
Instance of Symbol 15 MovieClip in Symbol 16 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.percent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
percentage = _parent.percent + "%";
}
Symbol 17 MovieClip Frame 1
stop();
TotalKB = Math.round(_root.getBytesTotal() / 1024) + "KB";
Instance of Symbol 16 MovieClip "peh" in Symbol 17 MovieClip Frame 1
onClipEvent (enterFrame) {
if (percent > BarMove) {
LoadBar.bar._width = LoadBar.bar._width - 9;
BarMove = BarMove + 9.5;
}
if (percent > 98) {
_root.play();
}
}
Symbol 23 Button
on (release) {
gotoAndPlay (63);
}
Symbol 62 Button
on (release) {
play();
goto = 1;
}
Symbol 63 Button
on (release) {
play();
goto = 2;
}
Symbol 64 Button
on (release) {
play();
goto = 3;
}
Symbol 65 Button
on (release) {
_root.getURL(sponsor, "_blank");
}
Symbol 70 MovieClip Frame 1
stop();
if (_root.playmusic == false) {
gotoAndStop (2);
}
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
stopAllSounds();
nextFrame();
_root.playmusic = false;
}
};
Symbol 70 MovieClip Frame 2
stop();
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
stopAllSounds();
_root.playmusic = true;
play();
}
};
Symbol 70 MovieClip Frame 3
onMouseDown = function () {
};
Symbol 71 MovieClip Frame 19
stop();
Symbol 75 Button
on (release) {
getURL ("http://www.arcadebliss.com", "_blank");
}
Symbol 77 MovieClip Frame 20
stop();
Symbol 97 Button
on (release) {
_root.getURL(sponsor, "_blank");
}
Symbol 101 Button
on (release) {
gotoAndStop (4);
}
Symbol 105 Button
on (release) {
getURL ("http://andrewmartin.deviantart.com");
}
Symbol 109 Button
on (release) {
getURL ("mailto:pagsotrope@hotmail.com");
}
Symbol 113 Button
on (release) {
gotoAndStop (105);
}
Symbol 118 Button
on (release) {
gotoAndStop (104);
}
Symbol 120 Button
on (release) {
getURL ("http://www.flashkit.com/search.php?term=Anders%20Kjeserud&cat=loops&per=10&page=1&field=Contact_Name", "_blank");
}
Symbol 122 Button
on (release) {
getURL ("http://www.flashkit.com/search.php?term=Carlos%20Eduardo&cat=loops&per=10&page=1&field=Contact_Name", "_blank");
}
Symbol 124 Button
on (release) {
getURL ("http://www.straytheories.com/", "_blank");
}
Symbol 136 Button
on (release) {
gotoAndStop (108);
}
Symbol 138 Button
on (release) {
gotoAndStop (107);
}
Symbol 140 Button
on (release) {
gotoAndStop (4);
}
Symbol 146 Button
on (release) {
gotoAndStop (106);
}
Symbol 162 Button
on (release) {
gotoAndStop (106);
}
Symbol 166 Button
on (release) {
play();
}
Symbol 171 Button
on (release) {
team = 17;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 173 Button
on (release) {
team = 2;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 175 Button
on (release) {
team = 3;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 177 Button
on (release) {
team = 4;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 179 Button
on (release) {
team = 5;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 181 Button
on (release) {
team = 6;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 183 Button
on (release) {
team = 8;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 185 Button
on (release) {
team = 7;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 187 Button
on (release) {
team = 9;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 189 Button
on (release) {
team = 10;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 191 Button
on (release) {
team = 11;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 193 Button
on (release) {
team = 12;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 195 Button
on (release) {
team = 13;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 197 Button
on (release) {
team = 14;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 199 Button
on (release) {
team = 15;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 201 Button
on (release) {
team = 16;
This = _root["t" + team];
highlighter._x = 351;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 203 Button
on (release) {
team = 1;
This = _root["t" + team];
highlighter._x = 127;
highlighter._y = This._y - 4;
highlighter._height = This._height + 6;
team = 1;
chosenteam = team;
skilldisplay1 = TSkills[team];
moraledisplay1 = TMorales[team];
}
Symbol 325 Button
on (release) {
chosenteam = 1;
play();
}
Symbol 326 Button
on (release) {
chosenteam = 17;
play();
}
Symbol 327 Button
on (release) {
chosenteam = 2;
play();
}
Symbol 328 Button
on (release) {
chosenteam = 3;
play();
}
Symbol 329 Button
on (release) {
chosenteam = 4;
play();
}
Symbol 330 Button
on (release) {
chosenteam = 5;
play();
}
Symbol 331 Button
on (release) {
chosenteam = 6;
play();
}
Symbol 332 Button
on (release) {
chosenteam = 8;
play();
}
Symbol 333 Button
on (release) {
chosenteam = 7;
play();
}
Symbol 334 Button
on (release) {
chosenteam = 9;
play();
}
Symbol 335 Button
on (release) {
chosenteam = 10;
play();
}
Symbol 336 Button
on (release) {
chosenteam = 11;
play();
}
Symbol 337 Button
on (release) {
chosenteam = 13;
play();
}
Symbol 338 Button
on (release) {
chosenteam = 12;
play();
}
Symbol 339 Button
on (release) {
chosenteam = 14;
play();
}
Symbol 340 Button
on (release) {
chosenteam = 15;
play();
}
Symbol 341 Button
on (release) {
chosenteam = 16;
play();
}
Symbol 345 Button
on (release) {
easymode = true;
gotoAndPlay (191);
}
Symbol 347 Button
on (release) {
easymode = false;
gotoAndPlay (191);
}
Symbol 349 Button
on (release) {
gotoAndStop (4);
}
Symbol 351 Button
on (release) {
gotoAndStop (106);
}
Symbol 355 Button
on (release) {
stopAllSounds();
nextFrame();
}
Symbol 357 Button
on (release) {
gotoAndPlay (110);
}
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 2
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
stop();
Symbol 414 MovieClip Frame 34
gotoAndPlay (6);
Symbol 435 MovieClip Frame 3
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 462 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 475 Button
on (release) {
play();
}
Symbol 485 Button
on (release) {
if (Selected == true) {
s = _root[select];
s.pos = 0.8;
s.shooting = 50 * SMfactor;
s.tackling = 100 * SMfactor;
s.onspeed = allspeed * s.pos;
s.onspeed = s.onspeed * SMfactor;
s.speed = (allspeed / s.pos) * SMfactor;
shooting = Math.round(s.shooting);
soff = Math.round(s.speed * 10) * 5;
son = Math.round(s.onspeed * 10) * 5;
tackling = Math.round(s.tackling);
highlighter._x = _root["r0.8"]._x;
highlighter._width = _root["r0.8"]._width;
}
}
Symbol 487 Button
on (release) {
if (Selected == true) {
s = _root[select];
s.pos = 1;
s.shooting = 75 * SMfactor;
s.tackling = 75 * SMfactor;
s.onspeed = allspeed * s.pos;
s.onspeed = s.onspeed * SMfactor;
s.speed = (allspeed / s.pos) * SMfactor;
shooting = Math.round(s.shooting);
soff = Math.round(s.speed * 10) * 5;
son = Math.round(s.onspeed * 10) * 5;
tackling = Math.round(s.tackling);
highlighter._x = _root.r1._x;
highlighter._width = _root.r1._width;
}
}
Symbol 489 Button
on (release) {
if (Selected == true) {
s = _root[select];
s.pos = 1.2;
s.shooting = 100 * SMfactor;
s.tackling = 75 * SMfactor;
s.onspeed = allspeed * s.pos;
s.onspeed = s.onspeed * SMfactor;
s.speed = (allspeed / s.pos) * SMfactor;
shooting = Math.round(s.shooting);
soff = Math.round(s.speed * 10) * 5;
son = Math.round(s.onspeed * 10) * 5;
tackling = Math.round(s.tackling);
highlighter._x = _root["r1.2"]._x;
highlighter._width = _root["r1.2"]._width;
}
}
Symbol 494 Button
on (release) {
highlighter._x = -50;
p = 1;
while (p <= 10) {
s = _root["P" + p];
xpos[p] = s._x;
ypos[p] = s._y;
role[p] = s.pos;
Shooting[p] = s.shooting;
Tackling[p] = s.tackling;
Speed[p] = s.speed;
Onspeed[p] = s.onspeed;
p++;
}
stopAllSounds();
play();
}
Symbol 507 Button
on (release) {
gotoAndPlay (4);
}
Symbol 520 Button
on (release) {
playstrat = strat;
p = 1;
while (p <= 10) {
s = _root["P" + p];
s.xloc = s.Xloc + (playstrat * s.pos);
s.yloc = s.Yloc;
s.multiplier = 1;
s.factor = 0.1;
p++;
}
tmtimer = 60;
}
Symbol 522 Button
on (release) {
playstrat = 0;
p = 1;
while (p <= 10) {
s = _root["P" + p];
s.xloc = s.Xloc + (playstrat * s.pos);
s.yloc = s.Yloc;
s.multiplier = 1;
s.factor = 0.1;
p++;
}
tmtimer = 60;
}
Symbol 523 Button
on (release) {
playstrat = strat * 2;
p = 1;
while (p <= 10) {
s = _root["P" + p];
s.xloc = s.Xloc + (playstrat * s.pos);
s.yloc = s.Yloc;
s.multiplier = 1;
s.factor = 0.1;
p++;
}
tmtimer = 60;
}
Symbol 525 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 5
stop();
Symbol 533 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 540 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 2
stop();
Symbol 541 MovieClip Frame 3
stop();
Symbol 546 Button
on (release) {
Pausegame();
}
on (keyPress "<Space>") {
Pausegame();
}
on (keyPress "<Enter>") {
getURL ("http://www.arcadebliss.com", "_blank");
}
Symbol 547 Button
on (release) {
if ((ballbearer.team == 1) && (ballbearer != PG)) {
command = true;
commandshoot = true;
pass = false;
pointer._x = -40;
linelayer.clear();
}
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 559 Button
on (release) {
highlighter._x = -50;
p = 1;
while (p <= 10) {
s = _root["P" + p];
xpos[p] = s._x;
ypos[p] = s._y - 15;
p++;
}
half = 2;
stopAllSounds();
gotoAndStop (194);
}
Symbol 568 Button
on (release) {
if (wonworldcup == true) {
gotoAndPlay (197);
} else if (wonmatch == true) {
gotoAndPlay (191);
} else {
gotoAndStop (4);
}
}
Symbol 571 Button
on (release) {
_root.getURL(sponsor, "_blank");
}