Frame 1
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
nextFrame();
}
Frame 2
play();
Frame 6
function radian2angle(number) {
return(number / (Math.PI/180));
}
function angle2radian(number) {
return(number * (Math.PI/180));
}
function roundUp(numberToRound) {
return(Math.floor(numberToRound - 0.001) + 1);
}
function magnitude(number) {
return(Math.sqrt(number * number));
}
function distance(object1, object2) {
var _local1 = object2;
var _local2 = object1;
return(Math.sqrt(((_local2._x - _local1._x) * (_local2._x - _local1._x)) + ((_local2._y - _local1._y) * (_local2._y - _local1._y))));
}
function angle(object1, object2) {
opp = object1._x - object2._x;
adj = object1._y - object2._y;
return(-1 * radian2angle(Math.atan2(opp, adj)));
}
function runAngle(speedx, speedy) {
if ((speedx == 0) and (speedy == 0)) {
return(0);
}
opp = speedx;
adj = speedy;
return(180 + (-1 * radian2angle(Math.atan2(opp, adj))));
}
function setFiveTeams(teamPlayer) {
var _local1 = teamPlayer;
i = 0;
while (i < 6) {
if (countries[i] == _local1) {
sliceHere = i;
}
i++;
}
_root.playerTeam = countries[sliceHere];
_root.playerTeamName = countriesCaps[sliceHere];
fiveCountries = countries.slice();
fiveCountriesCaps = countriesCaps.slice();
fiveCountries.splice(sliceHere, 1);
fiveCountriesCaps.splice(sliceHere, 1);
trace(countries);
trace(fiveCountries);
}
function skillTeams() {
var _local1 = _root;
_local1.playerTeam = "England";
_local1.playerTeamName = "ENGLAND";
switch (random(5)) {
case 0 :
_local1.oppTeam = "Wales";
_local1.oppTeamName = "WALES";
return;
case 1 :
_local1.oppTeam = "France";
_local1.oppTeamName = "FRANCE";
return;
case 2 :
_local1.oppTeam = "Scotland";
_local1.oppTeamName = "SCOTLAND";
return;
case 3 :
_local1.oppTeam = "Ireland";
_local1.oppTeamName = "IRELAND";
return;
case 4 :
_local1.oppTeam = "Italy";
_local1.oppTeamName = "ITALY";
return;
default :
trace("there has been an error setting opp team !!!");
}
}
function setDifficulty(hardness) {
var _local1 = _root;
trace("hardness: " + hardness);
switch (hardness) {
case 0 :
trace("case 0");
_local1.oppReach = 10;
_local1.oppSprint = 6;
_local1.oppForXtopspeed = 3;
_local1.oppForYtopspeed = 4;
_local1.oppBackXtopspeed = 4;
_local1.oppBackYtopspeed = 4;
_local1.oppConvertAcc = 45;
_local1.scrumLevel = 1.7;
return;
case 1 :
trace("case 1");
_local1.oppReach = 12;
_local1.oppSprint = 8;
_local1.oppForXtopspeed = 4;
_local1.oppForYtopspeed = 3;
_local1.oppBackXtopspeed = 5;
_local1.oppBackYtopspeed = 5;
_local1.oppConvertAcc = 40;
_local1.scrumLevel = 1.9;
return;
case 2 :
trace("case 2");
_local1.oppReach = 13;
_local1.oppSprint = 9;
_local1.oppForXtopspeed = 4;
_local1.oppForYtopspeed = 4;
_local1.oppBackXtopspeed = 5;
_local1.oppBackYtopspeed = 5;
_local1.oppConvertAcc = 35;
_local1.scrumLevel = 2.1;
return;
case 3 :
trace("case 3");
_local1.oppReach = 14;
_local1.oppSprint = 10;
_local1.oppForXtopspeed = 5;
_local1.oppForYtopspeed = 4;
_local1.oppBackXtopspeed = 6;
_local1.oppBackYtopspeed = 6;
_local1.oppConvertAcc = 30;
_local1.scrumLevel = 2.3;
return;
case 4 :
trace("case 4");
_local1.oppReach = 15;
_local1.oppSprint = 11;
_local1.oppForXtopspeed = 6;
_local1.oppForYtopspeed = 5;
_local1.oppBackXtopspeed = 7;
_local1.oppBackYtopspeed = 7;
_local1.oppConvertAcc = 25;
_local1.scrumLevel = 2.7;
}
}
stop();
_root.justWonPassing = false;
_root.justWonTackling = false;
_root.justWonKicking = false;
_root.justWonAdvancedKicking = false;
_root.justWonLineout = false;
_root.justWonScrum = false;
countries = new Array("Italy", "Scotland", "Ireland", "Wales", "England", "France");
countriesCaps = new Array("ITALY", "SCOTLAND", "IRELAND", "WALES", "ENGLAND", "FRANCE");
Frame 10
prevFrame();
Frame 11
stop();
_quality = "high";
Frame 12
stop();
_quality = "high";
Frame 15
prevFrame();
Frame 17
stop();
_root.score = 0;
_root.roundNo = 0;
skillTeams();
oppReach = 13;
oppSprint = 8;
oppForXtopspeed = 4;
oppForYtopspeed = 3;
oppBackXtopspeed = 5;
oppBackYtopspeed = 5;
Frame 21
prevFrame();
Frame 23
stop();
_root.score = 0;
_root.roundNo = 0;
skillTeams();
oppReach = 13;
oppSprint = 8;
oppForXtopspeed = 4;
oppForYtopspeed = 3;
oppBackXtopspeed = 5;
oppBackYtopspeed = 5;
Frame 27
prevFrame();
Frame 29
stop();
_quality = "high";
_root.score = 0;
_root.roundNo = 0;
skillTeams();
Frame 33
prevFrame();
Frame 35
stop();
_quality = "high";
_root.score = 0;
_root.roundNo = 0;
_root.oppsLineout = false;
_root.flipped = false;
skillTeams();
Frame 39
prevFrame();
Frame 41
stop();
_quality = "high";
_root.score = 0;
_root.roundNo = 0;
_root.flipped = false;
_root.conversionAngle = false;
skillTeams();
Frame 45
prevFrame();
Frame 47
stop();
_root.score = 0;
_root.roundNo = 0;
skillTeams();
oppReach = 10;
oppSprint = 4;
oppForXtopspeed = 1;
oppForYtopspeed = 1;
oppBackXtopspeed = 1;
oppBackYtopspeed = 1;
Frame 51
prevFrame();
Frame 53
function gameOver() {
var _local1 = _root;
if (_local1.playerScore > _local1.oppScore) {
if (_local1.sixNationsInfo.data.level <= _local1.level) {
trace("update cookie!!");
_local1.sixNationsInfo.data.level = _local1.level + 1;
_local1.medalPopup.newUnlock = true;
}
if ((_local1.playerScore - _local1.oppScore) > (_local1.sixNationsInfo.data["best" + _local1.level] - _local1.sixNationsInfo.data["bestOpp" + _local1.level])) {
_local1.sixNationsInfo.data["best" + _local1.level] = _local1.playerScore;
_local1.sixNationsInfo.data["bestOpp" + _local1.level] = _local1.oppScore;
_local1.medalPopup.bestScore = true;
}
}
if (_local1.playerScore == _local1.oppScore) {
trace("DRAW GAME");
_local1.medalPopup.gotoAndPlay("drawFull");
} else if (_local1.playerScore > _local1.oppScore) {
trace("WIN GAME");
if (_local1.level == 4) {
_local1.medalPopup.gotoAndPlay("winAll");
} else {
_local1.medalPopup.gotoAndPlay("winFull");
}
} else {
trace("LOSE GAME");
_local1.medalPopup.gotoAndPlay("loseFull");
}
}
stop();
_root.playerScore = 0;
_root.oppScore = 0;
trace("Level: " + level);
_root.oppTeam = fiveCountries[level];
_root.oppTeamName = fiveCountriesCaps[level];
setDifficulty(level);
_root.gameMode = "fullGame";
_root.startHalf = true;
_root.roundNo = 0;
if (random(2) == 1) {
_root.playerStart = true;
_root.gamePosition = "start";
_root.gainedPossesion = "player";
} else {
_root.playerStart = false;
_root.gamePosition = "startOpp";
_root.gainedPossesion = "opp";
}
timer.sec = 240;
timer.micro = 0;
timer.halftime = timer.sec / 2;
timer.fulltime = timer.sec;
trace("half time: " + timer.halftime);
trace("+-+- Opp Convertion Accuracy: " + _root.oppConvertAcc);
Instance of Symbol 550 MovieClip in Frame 53
onClipEvent (load) {
gotoAndStop(_root.oppTeam);
}
Instance of Symbol 550 MovieClip in Frame 53
onClipEvent (load) {
gotoAndStop(_root.playerTeam);
}
Frame 58
stop();
_root.roundNo = 2;
Frame 62
prevFrame();
Frame 63
gotoAndStop ("full");
Frame 67
stop();
_quality = "high";
Frame 71
prevFrame();
Frame 73
stop();
_quality = "high";
if (_root.flipped) {
main._xscale = -100;
main._x = main._x + 481;
}
Frame 77
prevFrame();
Frame 79
stop();
_quality = "high";
if (_root.flipped) {
main._xscale = -100;
main._x = main._x - 7;
}
Frame 83
prevFrame();
Symbol 17 Button
on (release) {
getURL ("http://www.grasshopper.uk.com", "_blank");
}
Symbol 32 MovieClip Frame 1
play();
trace((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
Symbol 32 MovieClip Frame 2
prevFrame();
Symbol 36 Button
on (release) {
_root.gotoAndStop("menuFirst");
}
Symbol 38 MovieClip Frame 1
play();
Symbol 38 MovieClip Frame 14
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
this.gotoAndPlay("skip");
}
Symbol 38 MovieClip Frame 15
play();
Symbol 38 MovieClip Frame 16
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
play();
} else {
prevFrame();
}
Symbol 38 MovieClip Frame 17
play();
Symbol 38 MovieClip Frame 24
stop();
Symbol 43 MovieClip Frame 1
play();
fps = 1000 / (getTimer() - lastTime);
lastTime = getTimer();
avgFPS = (avgFPS + fps) / 2;
Symbol 43 MovieClip Frame 2
prevFrame();
Symbol 46 Button
on (release) {
nextFrame();
}
Symbol 49 Button
on (release) {
prevFrame();
}
Symbol 50 MovieClip Frame 1
stop();
global_sound = new Sound();
global_sound.setVolume(100);
Symbol 50 MovieClip Frame 2
stop();
global_sound.setVolume(0);
Symbol 52 Button
on (release) {
gotoAndStop ("passing");
}
Symbol 53 Button
on (release) {
gotoAndStop ("tackling");
}
Symbol 54 Button
on (release) {
gotoAndStop ("kicking");
}
Symbol 55 Button
on (release) {
gotoAndStop ("advancedKicking");
}
Symbol 56 Button
on (release) {
gotoAndStop ("lineout");
}
Symbol 57 Button
on (release) {
gotoAndStop ("scrum");
}
Symbol 60 MovieClip Frame 1
orig_y = this._y;
Symbol 64 Button
on (release) {
this.thumb.scrolling = 0;
this.thumb.gotoAndStop(1);
}
on (releaseOutside) {
this.thumb.scrolling = 0;
this.thumb.gotoAndStop(1);
}
on (press) {
scrollDownOneLine(this.thumb);
this.thumb.scrolling = 1;
this.thumb.gotoAndPlay(2);
}
Symbol 65 Button
on (release) {
this.thumb.scrolling = 0;
this.thumb.gotoAndStop(1);
}
on (releaseOutside) {
this.thumb.scrolling = 0;
this.thumb.gotoAndStop(1);
}
on (press) {
scrollUpOneLine(this.thumb);
this.thumb.scrolling = -1;
this.thumb.gotoAndPlay(2);
}
Symbol 68 Button
on (press) {
this.dragging = true;
this.start_mouse = _root._ymouse;
this.start_drag = this._y;
gotoAndStop (2);
}
on (release) {
this.dragging = false;
gotoAndStop (1);
}
on (releaseOutside) {
this.dragging = false;
gotoAndStop (1);
}
Symbol 69 Button
on (press) {
this.dragging = true;
this.start_mouse = _root._ymouse;
this.start_drag = this._y;
gotoAndStop (2);
}
on (release) {
this.dragging = false;
gotoAndStop (1);
}
on (releaseOutside) {
this.dragging = false;
gotoAndStop (1);
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 7
if (this.scrolling > 0) {
_parent.scrollDownOneLine(this);
gotoAndPlay (6);
} else if (this.scrolling < 0) {
_parent.scrollUpOneLine(this);
gotoAndPlay (6);
} else {
gotoAndStop (1);
}
Symbol 72 Button
on (press) {
scrollOnePage(this.thumb);
}
Symbol 73 MovieClip Frame 1
function getVisiblePercent() {
var _local1 = _parent.maskdummy._height / _parent.scrollText._height;
return(_local1);
}
function initialise() {
if (getVisiblePercent() >= 1) {
gotoAndStop ("noBar");
} else {
gotoAndStop ("bar");
}
}
function jumpToMouse(scrollbar) {
var _local3 = scrollbar;
var _local1 = _root._ymouse - _local3.start_mouse;
_local1 = _local1 * (1 / (this._yscale / 100));
var _local2 = _local3.start_drag + _local1;
jumpToY(_local3, _local2);
}
function jumpToY(scrollbar, newY) {
var _local1 = scrollbar;
var _local2 = newY;
var _local3 = _local1.max - _local1._height;
if (_local2 < _local1.min) {
_local2 = _local1.min;
}
if (_local2 > _local3) {
_local2 = _local3;
}
_local1._y = _local2;
var pct = ((_local2 - _local1.min) / (_local3 - _local1.min));
var range = ((_parent.scrolltext._height + 30) - _parent.maskdummy._height);
var offset = (pct * range);
_parent.scrollText._y = _parent.scrollText.orig_y - offset;
}
function scrollUpOneLine(scrollbar) {
var _local1 = scrollbar;
var _local2 = (_local1.max - _local1._height) - _local1.min;
var _local3 = _local2 / 20;
jumpToY(_local1, _local1._y - _local3);
}
function scrollDownOneLine(scrollbar) {
var _local1 = scrollbar;
var _local2 = (_local1.max - _local1._height) - _local1.min;
var _local3 = _local2 / 15;
jumpToY(_local1, _local1._y + _local3);
}
function downOnePage(scrollbar) {
var _local2 = scrollbar;
var _local1 = _local2._height;
jumpToY(_local2, _local2._y + _local1);
}
function upOnePage(scrollbar) {
var _local2 = scrollbar;
var _local1 = _local2._height;
jumpToY(_local2, _local2._y - _local1);
}
function scrollOnePage(scrollbar) {
var _local2 = scrollbar;
var _local1 = _local2._y + (_local2._height / 2);
_local1 = _local1 * (this._yscale / 100);
if (_parent._ymouse < (this._y + _local1)) {
upOnePage(_local2);
} else {
downOnePage(_local2);
}
}
stop();
thumb.min = thumb._y;
thumb.max = thumb._y + thumb._height;
thumb._yscale = thumb._yscale * getVisiblePercent();
initialise();
Instance of Symbol 70 MovieClip "thumb" in Symbol 73 MovieClip Frame 1
onClipEvent (mouseMove) {
if (this.dragging) {
_parent.jumpToMouse(this);
}
}
Symbol 73 MovieClip Frame 2
stop();
Symbol 77 Button
on (release) {
gotoAndPlay ("send2friend");
}
Symbol 81 Button
on (release) {
gotoAndStop ("index");
}
Symbol 84 Button
on (release) {
gotoAndStop ("sixNations");
}
Symbol 86 MovieClip Frame 1
this._visible = false;
Symbol 88 MovieClip Frame 1
play();
Symbol 88 MovieClip Frame 2
if (random(10) == 1) {
play();
this._x = (origx + random(74)) - 37;
this._y = (origy + random(74)) - 37;
} else {
prevFrame();
}
Instance of Symbol 88 MovieClip in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
Instance of Symbol 88 MovieClip in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
play();
Symbol 102 MovieClip Frame 10
stop();
Symbol 102 MovieClip Frame 13
play();
Symbol 102 MovieClip Frame 21
stop();
Symbol 102 MovieClip Frame 24
play();
Symbol 102 MovieClip Frame 32
stop();
Symbol 102 MovieClip Frame 35
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 5
stop();
Symbol 117 MovieClip Frame 9
prevFrame();
Symbol 117 MovieClip Frame 10
play();
Symbol 117 MovieClip Frame 15
if (_root.gameMode == "try") {
stop();
}
Symbol 117 MovieClip Frame 21
gotoAndPlay ("run");
Symbol 124 MovieClip Frame 1
play();
if (_parent._parent._parent.ballOwner == (_parent._parent.side + _parent._parent.playerNum)) {
this._visible = true;
} else {
this._visible = false;
}
Symbol 124 MovieClip Frame 2
prevFrame();
Symbol 124 MovieClip Frame 3
this._visible = true;
stop();
Symbol 135 MovieClip Frame 12
gotoAndPlay ("run");
Symbol 135 MovieClip Frame 18
gotoAndPlay ("run");
Symbol 135 MovieClip Frame 24
gotoAndPlay ("run");
Symbol 139 MovieClip Frame 1
player2.ball._visible = false;
player3.ball._visible = false;
player1.ball._visible = true;
player1.ball.gotoAndStop("3");
Symbol 139 MovieClip Frame 10
player1.ball._visible = false;
player1.gotoAndPlay("pass");
Symbol 139 MovieClip Frame 14
player2.gotoAndPlay("catch");
Symbol 139 MovieClip Frame 20
player2.ball.gotoAndStop("3");
player2.ball._visible = true;
Symbol 148 MovieClip Frame 13
gotoAndPlay ("run");
Symbol 148 MovieClip Frame 21
gotoAndPlay ("run");
Symbol 149 MovieClip Frame 1
player2.ball._visible = false;
player1.ball._visible = false;
player3.ball._visible = false;
welshplayer.ball.gotoAndStop("3");
player3.ball.gotoAndStop("3");
Symbol 149 MovieClip Frame 20
welshplayer.ball._visible = false;
Symbol 149 MovieClip Frame 23
player3.gotoAndPlay("pass");
Symbol 149 MovieClip Frame 25
player3.ball._visible = true;
Symbol 185 MovieClip Frame 1
play();
Symbol 185 MovieClip Frame 2
if (random(6) == 0) {
play();
} else {
prevFrame();
}
Symbol 185 MovieClip Frame 3
play();
this._x = random(_parent._parent.boxWidth);
this._y = random(_parent._parent.boxHeight);
Symbol 187 MovieClip Frame 1
nextFrame();
Symbol 187 MovieClip Frame 2
stop();
Symbol 187 MovieClip Frame 3
stop();
i = 1;
while (i < bulbAmount) {
collection.bulb.duplicateMovieClip("bulb" + i, i);
i++;
}
Symbol 308 MovieClip Frame 1
ball.gotoAndStop("1");
posts.gotoAndStop("1");
Instance of Symbol 182 MovieClip "posts" in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 187 MovieClip "box1" in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
this.boxWidth = 450;
this.boxHeight = 77;
this.bulbAmount = 10;
}
Instance of Symbol 191 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 308 MovieClip Frame 9
ball.play();
Symbol 318 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 318 MovieClip Frame 2
stop();
Symbol 318 MovieClip Frame 6
stop();
Symbol 318 MovieClip Frame 12
stop();
Symbol 318 MovieClip Frame 17
stop();
Symbol 318 MovieClip Frame 22
stop();
Symbol 318 MovieClip Frame 27
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 10
stop();
Symbol 322 MovieClip Frame 1
play();
ani._rotation = (_parent._parent.angle * 0.7) - 30;
Symbol 322 MovieClip Frame 2
prevFrame();
Symbol 329 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 329 MovieClip Frame 2
stop();
Symbol 329 MovieClip Frame 6
stop();
Symbol 329 MovieClip Frame 12
stop();
Symbol 329 MovieClip Frame 17
stop();
Symbol 329 MovieClip Frame 22
stop();
Symbol 329 MovieClip Frame 27
stop();
Symbol 337 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 337 MovieClip Frame 2
stop();
Symbol 337 MovieClip Frame 6
stop();
Symbol 337 MovieClip Frame 11
stop();
Symbol 337 MovieClip Frame 16
stop();
Symbol 337 MovieClip Frame 21
stop();
Symbol 337 MovieClip Frame 26
stop();
Symbol 341 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 341 MovieClip Frame 2
stop();
Symbol 341 MovieClip Frame 6
stop();
Symbol 341 MovieClip Frame 12
stop();
Symbol 341 MovieClip Frame 17
stop();
Symbol 341 MovieClip Frame 22
stop();
Symbol 341 MovieClip Frame 27
stop();
Symbol 351 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 351 MovieClip Frame 2
stop();
Symbol 351 MovieClip Frame 6
stop();
Symbol 351 MovieClip Frame 12
stop();
Symbol 351 MovieClip Frame 17
stop();
Symbol 351 MovieClip Frame 22
stop();
Symbol 351 MovieClip Frame 27
stop();
Symbol 360 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 360 MovieClip Frame 2
stop();
Symbol 360 MovieClip Frame 6
stop();
Symbol 360 MovieClip Frame 12
stop();
Symbol 360 MovieClip Frame 17
stop();
Symbol 360 MovieClip Frame 22
stop();
Symbol 360 MovieClip Frame 27
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 7
_root.sfx.gotoAndPlay("throw");
Symbol 363 MovieClip Frame 11
stop();
Symbol 370 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 6
stop();
Symbol 370 MovieClip Frame 12
stop();
Symbol 370 MovieClip Frame 17
stop();
Symbol 370 MovieClip Frame 22
stop();
Symbol 370 MovieClip Frame 27
stop();
Symbol 381 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 381 MovieClip Frame 2
stop();
Symbol 381 MovieClip Frame 6
stop();
Symbol 381 MovieClip Frame 12
stop();
Symbol 381 MovieClip Frame 17
stop();
Symbol 381 MovieClip Frame 22
stop();
Symbol 381 MovieClip Frame 27
stop();
Symbol 387 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 387 MovieClip Frame 2
stop();
Symbol 387 MovieClip Frame 6
stop();
Symbol 387 MovieClip Frame 12
stop();
Symbol 387 MovieClip Frame 17
stop();
Symbol 387 MovieClip Frame 22
stop();
Symbol 387 MovieClip Frame 27
stop();
Symbol 409 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 409 MovieClip Frame 2
stop();
Symbol 409 MovieClip Frame 6
stop();
Symbol 409 MovieClip Frame 12
stop();
Symbol 409 MovieClip Frame 17
stop();
Symbol 409 MovieClip Frame 22
stop();
Symbol 409 MovieClip Frame 27
stop();
Symbol 416 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 416 MovieClip Frame 2
stop();
Symbol 416 MovieClip Frame 6
stop();
Symbol 416 MovieClip Frame 12
stop();
Symbol 416 MovieClip Frame 17
stop();
Symbol 416 MovieClip Frame 22
stop();
Symbol 416 MovieClip Frame 27
stop();
Symbol 422 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 422 MovieClip Frame 2
stop();
Symbol 422 MovieClip Frame 6
stop();
Symbol 422 MovieClip Frame 12
stop();
Symbol 422 MovieClip Frame 17
stop();
Symbol 422 MovieClip Frame 22
stop();
Symbol 422 MovieClip Frame 27
stop();
Symbol 425 MovieClip Frame 1
play();
this._visible = false;
if (this.hitTest(_parent._parent.ball) and _parent.playerSide) {
trace("ball catch !");
_parent._parent.ball.gotoAndStop("die");
_root.sfx.gotoAndPlay("ball");
_parent.gotoAndPlay(_parent._currentframe + 20);
}
Symbol 425 MovieClip Frame 2
prevFrame();
Symbol 434 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 434 MovieClip Frame 2
stop();
Symbol 434 MovieClip Frame 6
stop();
Symbol 434 MovieClip Frame 12
stop();
Symbol 434 MovieClip Frame 17
stop();
Symbol 434 MovieClip Frame 22
stop();
Symbol 434 MovieClip Frame 27
stop();
Symbol 441 MovieClip Frame 1
gotoAndStop(_parent.team);
Symbol 441 MovieClip Frame 2
stop();
Symbol 441 MovieClip Frame 6
stop();
Symbol 441 MovieClip Frame 12
stop();
Symbol 441 MovieClip Frame 17
stop();
Symbol 441 MovieClip Frame 22
stop();
Symbol 441 MovieClip Frame 27
stop();
Symbol 444 MovieClip Frame 1
stop();
this._xscale = 128.8;
Symbol 444 MovieClip Frame 4
Symbol 444 MovieClip Frame 14
stop();
Symbol 444 MovieClip Frame 24
Symbol 444 MovieClip Frame 28
_parent["getIt" + this._name].play();
Symbol 444 MovieClip Frame 29
_parent._parent.messages.gotoAndPlay("lineoutWon");
_parent.roundActive = false;
Symbol 444 MovieClip Frame 33
if (this._name == "six") {
this._xscale = -128.8;
gotoAndPlay ("pass");
}
Symbol 444 MovieClip Frame 34
Symbol 444 MovieClip Frame 37
Symbol 444 MovieClip Frame 45
stop();
Symbol 448 MovieClip Frame 1
welshlifter1.shirt.gotoAndStop("wales");
welshlifter1.sleeve.gotoAndStop("wales");
welshlifter1.trouserL.gotoAndStop("wales");
welshlifter1.trouserR.gotoAndStop("wales");
welshlifter2.shirt.gotoAndStop("wales");
welshlifter2.sleeve.gotoAndStop("wales");
welshlifter2.trouserL.gotoAndStop("wales");
welshlifter2.trouserR.gotoAndStop("wales");
welshlifter3.shirt.gotoAndStop("wales");
welshlifter3.sleeve.gotoAndStop("wales");
welshlifter3.trouserL.gotoAndStop("wales");
welshlifter3.trouserR.gotoAndStop("wales");
welshlifter4.shirt.gotoAndStop("wales");
welshlifter4.sleeve.gotoAndStop("wales");
welshlifter4.trouserL.gotoAndStop("wales");
welshlifter4.trouserR.gotoAndStop("wales");
welshjumper1.shirt.gotoAndStop("wales");
welshjumper1.sleeve.gotoAndStop("wales");
welshjumper1.trouserL.gotoAndStop("wales");
welshjumper1.trouserR.gotoAndStop("wales");
welshjumper2.shirt.gotoAndStop("wales");
welshjumper2.sleeve.gotoAndStop("wales");
welshjumper2.trouserL.gotoAndStop("wales");
welshjumper2.trouserR.gotoAndStop("wales");
welshlifter1.stop();
welshlifter2.stop();
welshlifter3.stop();
welshlifter4.stop();
lifter1.stop();
lifter2.stop();
lifter3.stop();
lifter4.stop();
jumper2.gotoAndStop(1);
Symbol 448 MovieClip Frame 2
hooker.throwingArm.ani.gotoAndPlay(2);
hooker.gotoAndPlay(2);
Symbol 448 MovieClip Frame 11
hooker.stop();
Symbol 448 MovieClip Frame 16
lifter1.gotoAndPlay(1);
lifter2.gotoAndPlay(1);
Symbol 448 MovieClip Frame 17
welshlifter1.gotoAndPlay(1);
welshlifter2.gotoAndPlay(1);
Symbol 448 MovieClip Frame 19
jumper2.gotoAndPlay("catch");
Symbol 448 MovieClip Frame 20
welshjumper2.gotoAndPlay("miss");
Symbol 448 MovieClip Frame 30
lifter1.stop();
lifter2.stop();
Symbol 448 MovieClip Frame 31
welshlifter1.stop();
welshlifter2.stop();
Symbol 457 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.side);
Symbol 457 MovieClip Frame 5
stop();
Symbol 457 MovieClip Frame 10
stop();
Symbol 472 MovieClip Frame 1
play();
Symbol 476 MovieClip Frame 1
play();
Symbol 478 MovieClip Frame 1
play();
Symbol 481 MovieClip Frame 1
play();
Symbol 485 MovieClip Frame 1
play();
Symbol 488 MovieClip Frame 1
play();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 5
stop();
Symbol 489 MovieClip Frame 10
stop();
Symbol 489 MovieClip Frame 15
stop();
Symbol 489 MovieClip Frame 20
stop();
Symbol 489 MovieClip Frame 25
stop();
Symbol 490 MovieClip Frame 1
englishTeam.gotoAndStop("england");
welshTeam.gotoAndStop("wales");
welshTeam.side = "opp";
Symbol 495 Button
on (release) {
_parent.gotoAndStop("ST-try3");
}
Symbol 497 MovieClip Frame 1
orig_y = this._y;
Symbol 504 Button
on (release) {
_parent.gotoAndStop("ST-try3");
}
Symbol 508 Button
on (release) {
_parent.gotoAndStop("ST-defend3");
}
Symbol 510 MovieClip Frame 1
orig_y = this._y;
Symbol 511 Button
on (release) {
_parent.gotoAndStop("ST-defend3");
}
Symbol 513 Button
on (release) {
_parent.gotoAndStop("ST-kicking3");
}
Symbol 515 MovieClip Frame 1
orig_y = this._y;
Symbol 517 Button
on (release) {
_parent.gotoAndStop("ST-kicking3");
}
Symbol 518 Button
on (release) {
_parent.gotoAndStop("ST-AdvKicking3");
}
Symbol 520 MovieClip Frame 1
orig_y = this._y;
stop();
Symbol 521 Button
on (release) {
_parent.gotoAndStop("ST-AdvKicking3");
}
Symbol 523 Button
on (release) {
_parent.gotoAndStop("ST-lineout3");
}
Symbol 525 MovieClip Frame 1
orig_y = this._y;
Symbol 527 Button
on (release) {
_parent.gotoAndStop("ST-lineout3");
}
Symbol 528 Button
on (release) {
_parent.gotoAndStop("ST-scrum3");
}
Symbol 530 MovieClip Frame 1
orig_y = this._y;
Symbol 532 Button
on (release) {
_parent.gotoAndStop("ST-scrum3");
}
Symbol 535 Button
on (release) {
gotoAndStop ("sixNations");
}
Symbol 537 Button
on (release) {
gotoAndStop ("init");
}
Symbol 541 Button
on (release) {
_root.lastModuleSelected = "sixNations";
_root.level = thisLevel;
_root.gotoAndStop("fullGame");
}
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 6
stop();
Symbol 550 MovieClip Frame 11
stop();
Symbol 550 MovieClip Frame 16
stop();
Symbol 550 MovieClip Frame 21
stop();
Symbol 550 MovieClip Frame 26
stop();
Instance of Symbol 550 MovieClip in Symbol 551 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.Teamlogo);
}
Symbol 553 MovieClip Frame 1
stop();
countryName = _root.fiveCountriesCaps[thisLevel];
Teamlogo = _root.fiveCountries[thisLevel];
trace(_root.sixNationsInfo.data["best" + thisLevel]);
if (_root.sixNationsInfo.data["best" + thisLevel]) {
best = (("Best: " + _root.sixNationsInfo.data["best" + thisLevel]) + " - ") + _root.sixNationsInfo.data["bestOpp" + thisLevel];
}
if (_root.sixNationsInfo.data.level < thisLevel) {
this.gotoAndStop("locked");
}
Symbol 553 MovieClip Frame 5
stop();
Symbol 556 Button
on (release) {
_parent.gotoAndStop("teamSelect");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 559 MovieClip Frame 1
stop();
currentlyTxt = "Playing as: " + _root.playerTeam;
Instance of Symbol 550 MovieClip in Symbol 559 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.playerTeam);
}
Symbol 559 MovieClip Frame 2
stop();
currentlyTxt = "Change team";
Symbol 566 Button
on (release) {
chooseTeam("Italy");
}
Symbol 569 Button
on (release) {
chooseTeam("France");
}
Symbol 572 Button
on (release) {
chooseTeam("Ireland");
}
Symbol 575 Button
on (release) {
chooseTeam("Wales");
}
Symbol 578 Button
on (release) {
chooseTeam("Scotland");
}
Symbol 581 Button
on (release) {
chooseTeam("England");
}
Symbol 591 Button
on (release) {
this.email = _root.email;
this.fullname = _root.fullname;
this.optOut = _root.optOut;
loadVariables ("http://www.siemensmobileguru.com/rugby/emailtofriend.php", this, "POST");
nextFrame();
}
Symbol 595 Button
on (release) {
gotoAndStop ("out");
}
Symbol 596 Button
on (release) {
gotoAndStop ("in");
}
Symbol 597 MovieClip Frame 1
stop();
if (_root.optOut) {
gotoAndStop ("outAlready");
}
Symbol 597 MovieClip Frame 5
stop();
_root.optOut = false;
Symbol 597 MovieClip Frame 8
stop();
_root.optOut = true;
Symbol 597 MovieClip Frame 11
stop();
_root.optOut = true;
Symbol 605 MovieClip Frame 1
input7._accProps = new Object();
input6._accProps = new Object();
input5._accProps = new Object();
input4._accProps = new Object();
input3._accProps = new Object();
input3.tabIndex = 3;
input4.tabIndex = 4;
input5.tabIndex = 5;
input6.tabIndex = 6;
input7.tabIndex = 7;
stop();
Symbol 605 MovieClip Frame 2
play();
Symbol 605 MovieClip Frame 3
if (error == "emailssent") {
_parent.gotoAndPlay("emailsent");
} else {
prevFrame();
}
Symbol 615 Button
on (release) {
gotoAndPlay ("send2friend");
}
Symbol 617 MovieClip Frame 1
function updateMedals() {
var _local1 = _root;
medalInfo = SharedObject.getLocal("medals");
trace("Cookie value for adv kicking is: " + medalInfo.data.advancedKicking);
if (medalInfo.data.passing == "gold") {
if (_local1.justWonPassing == true) {
_local1.justWonPassing = false;
passingMedals.gotoAndPlay("gold");
} else {
passingMedals.gotoAndStop("gold2");
}
} else if (medalInfo.data.passing == "silver") {
if (_local1.justWonPassing == true) {
_local1.justWonPassing = false;
passingMedals.gotoAndPlay("silver");
} else {
passingMedals.gotoAndStop("silver2");
}
} else if (medalInfo.data.passing == "bronze") {
if (_local1.justWonPassing == true) {
_local1.justWonPassing = false;
passingMedals.gotoAndPlay("bronze");
trace("just won bronze passing--");
} else {
passingMedals.gotoAndStop("bronze2");
trace("got bronze passing--");
}
} else {
trace("no passing medal--");
passingMedals.gotoAndStop("none");
}
if (medalInfo.data.tackling == "gold") {
if (_local1.justWonTackling == true) {
_local1.justWonTackling = false;
tacklingMedals.gotoAndPlay("gold");
} else {
tacklingMedals.gotoAndStop("gold2");
}
} else if (medalInfo.data.tackling == "silver") {
if (_local1.justWonTackling == true) {
_local1.justWonTackling = false;
tacklingMedals.gotoAndPlay("silver");
} else {
tacklingMedals.gotoAndStop("silver2");
}
} else if (medalInfo.data.tackling == "bronze") {
if (_local1.justWonTackling == true) {
_local1.justWonTackling = false;
tacklingMedals.gotoAndPlay("bronze");
} else {
tacklingMedals.gotoAndStop("bronze2");
}
} else {
tacklingMedals.gotoAndStop("none");
}
if (medalInfo.data.kicking == "gold") {
if (_local1.justWonKicking == true) {
_local1.justWonKicking = false;
kickingMedals.gotoAndPlay("gold");
} else {
kickingMedals.gotoAndStop("gold2");
}
} else if (medalInfo.data.kicking == "silver") {
if (_local1.justWonKicking == true) {
_local1.justWonKicking = false;
kickingMedals.gotoAndPlay("silver");
} else {
kickingMedals.gotoAndStop("silver2");
}
} else if (medalInfo.data.kicking == "bronze") {
trace("Playing Bronze Just Won Animation");
if (_local1.justWonKicking == true) {
_local1.justWonKicking = false;
kickingMedals.gotoAndPlay("bronze");
} else {
trace("Playing Bronze Already Won Animation");
kickingMedals.gotoAndStop("bronze2");
}
} else {
kickingMedals.gotoAndStop("none");
}
if (medalInfo.data.advancedKicking == "gold") {
if (_local1.justWonAdvancedKicking == true) {
_local1.justWonAdvancedKicking = false;
advancedKickingMedals.gotoAndPlay("gold");
} else {
advancedKickingMedals.gotoAndStop("gold2");
}
} else if (medalInfo.data.advancedKicking == "silver") {
if (_local1.justWonAdvancedKicking == true) {
_local1.justWonAdvancedKicking = false;
advancedKickingMedals.gotoAndPlay("silver");
} else {
advancedKickingMedals.gotoAndStop("silver2");
}
} else if (medalInfo.data.advancedKicking == "bronze") {
if (_local1.justWonAdvancedKicking == true) {
_local1.justWonAdvancedKicking = false;
advancedKickingMedals.gotoAndPlay("bronze");
} else {
advancedKickingMedals.gotoAndStop("bronze2");
}
} else {
advancedKickingMedals.gotoAndStop("none");
}
if (medalInfo.data.lineout == "gold") {
if (_local1.justWonLineout == true) {
_local1.justWonLineout = false;
lineoutMedals.gotoAndPlay("gold");
} else {
lineoutMedals.gotoAndStop("gold2");
}
} else if (medalInfo.data.lineout == "silver") {
if (_local1.justWonLineout == true) {
_local1.justWonLineout = false;
lineoutMedals.gotoAndPlay("silver");
} else {
lineoutMedals.gotoAndStop("silver2");
}
} else if (medalInfo.data.lineout == "bronze") {
if (_local1.justWonLineout == true) {
_local1.justWonLineout = false;
lineoutMedals.gotoAndPlay("bronze");
} else {
lineoutMedals.gotoAndStop("bronze2");
}
} else {
lineoutMedals.gotoAndStop("none");
}
if (medalInfo.data.scrum == "gold") {
if (_local1.justWonScrum == true) {
_local1.justWonScrum = false;
scrumMedals.gotoAndPlay("gold");
} else {
scrumMedals.gotoAndStop("gold2");
}
} else if (medalInfo.data.scrum == "silver") {
if (_local1.justWonScrum == true) {
_local1.justWonScrum = false;
scrumMedals.gotoAndPlay("silver");
} else {
scrumMedals.gotoAndStop("silver2");
}
} else if (medalInfo.data.scrum == "bronze") {
if (_local1.justWonScrum == true) {
_local1.justWonScrum = false;
scrumMedals.gotoAndPlay("bronze");
} else {
scrumMedals.gotoAndStop("bronze2");
}
} else {
scrumMedals.gotoAndStop("none");
}
}
function chooseTeam(chosenTeam) {
var _local1 = _root;
_local1.setFiveTeams(chosenTeam);
_local1.sixNationsInfo.data.team = chosenTeam;
_local1.sixNationsInfo.data.level = 0;
_local1.sixNationsInfo.data.best0 = undefined;
_local1.sixNationsInfo.data.bestOpp0 = undefined;
_local1.sixNationsInfo.data.best1 = undefined;
_local1.sixNationsInfo.data.bestOpp1 = undefined;
_local1.sixNationsInfo.data.best2 = undefined;
_local1.sixNationsInfo.data.bestOpp2 = undefined;
_local1.sixNationsInfo.data.best3 = undefined;
_local1.sixNationsInfo.data.bestOpp3 = undefined;
_local1.sixNationsInfo.data.best4 = undefined;
_local1.sixNationsInfo.data.bestOpp4 = undefined;
this.gotoAndStop("sixNationsNew");
}
stop();
_root.sixNationsInfo = SharedObject.getLocal("sixNations");
updateMedals();
if (_root.lastModuleSelected != undefined) {
trace("goto last game! " + _root.lastModuleSelected);
gotoAndStop(_root.lastModuleSelected);
_root.lastModuleSelected = undefined;
} else {
trace("no last module");
}
trace("SFX module frame 1");
trace("module page says hi");
Instance of Symbol 58 MovieClip "maskdummy" in Symbol 617 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (keyDown) {
if ((((key.isDown(38) || (key.isDown(40))) || (key.isDown(37))) || (key.isDown(39))) || (key.isDown(32))) {
trace("KEY PRESSED");
trace(_root.lastModuleSelected);
if (_root.lastModuleSelected != undefined) {
trace("LAST ");
_parent.gotoAndStop(_root.lastModuleSelected);
} else {
trace("FIRST MODULE ");
_parent.gotoAndStop("passingKey");
}
}
}
Symbol 617 MovieClip Frame 2
play();
trace("SFX module frame 2");
Symbol 617 MovieClip Frame 3
stop();
Symbol 617 MovieClip Frame 6
stop();
_root.lastModuleSelected = "passingKey";
Instance of Symbol 86 MovieClip in Symbol 617 MovieClip Frame 6
onClipEvent (keyDown) {
if (key.isDown(39)) {
_parent.gotoAndStop("tacklingKey");
}
if (key.isDown(40)) {
_parent.gotoAndStop("lineoutKey");
}
if (key.isDown(32)) {
_parent._parent.gotoAndStop("ST-try3");
}
}
Symbol 617 MovieClip Frame 9
stop();
_root.lastModuleSelected = "passingKey";
Symbol 617 MovieClip Frame 13
stop();
_root.lastModuleSelected = "tacklingKey";
Instance of Symbol 86 MovieClip in Symbol 617 MovieClip Frame 13
onClipEvent (keyDown) {
if (key.isDown(37)) {
_parent.gotoAndStop("passingKey");
}
if (key.isDown(40)) {
_parent.gotoAndStop("scrumKey");
}
if (key.isDown(32)) {
_parent._parent.gotoAndStop("ST-defend3");
}
}
Symbol 617 MovieClip Frame 16
stop();
_root.lastModuleSelected = "tacklingKey";
Symbol 617 MovieClip Frame 20
stop();
_root.lastModuleSelected = "kickingKey";
Instance of Symbol 86 MovieClip in Symbol 617 MovieClip Frame 20
onClipEvent (keyDown) {
if (key.isDown(39)) {
_parent.gotoAndStop("advancedKickingKey");
}
if (key.isDown(38)) {
_parent.gotoAndStop("lineoutKey");
}
if (key.isDown(32)) {
_parent._parent.gotoAndStop("ST-kicking3");
}
}
Symbol 617 MovieClip Frame 23
stop();
_root.lastModuleSelected = "kickingKey";
Symbol 617 MovieClip Frame 27
stop();
_root.lastModuleSelected = "advancedKickingKey";
Instance of Symbol 86 MovieClip in Symbol 617 MovieClip Frame 27
onClipEvent (keyDown) {
if (key.isDown(37)) {
_parent.gotoAndStop("kickingKey");
}
if (key.isDown(38)) {
_parent.gotoAndStop("scrumKey");
}
if (key.isDown(32)) {
_parent._parent.gotoAndStop("ST-AdvKicking3");
}
}
Symbol 617 MovieClip Frame 30
stop();
_root.lastModuleSelected = "advancedKickingKey";
Symbol 617 MovieClip Frame 34
stop();
_root.lastModuleSelected = "lineoutKey";
Instance of Symbol 86 MovieClip in Symbol 617 MovieClip Frame 34
onClipEvent (keyDown) {
if (key.isDown(39)) {
_parent.gotoAndStop("scrumKey");
}
if (key.isDown(40)) {
_parent.gotoAndStop("kickingKey");
}
if (key.isDown(38)) {
_parent.gotoAndStop("passingKey");
}
if (key.isDown(32)) {
_parent._parent.gotoAndStop("ST-lineout3");
}
}
Symbol 617 MovieClip Frame 37
stop();
_root.lastModuleSelected = "lineoutKey";
Symbol 617 MovieClip Frame 41
stop();
_root.lastModuleSelected = "scrumKey";
Instance of Symbol 86 MovieClip in Symbol 617 MovieClip Frame 41
onClipEvent (keyDown) {
if (key.isDown(37)) {
_parent.gotoAndStop("lineoutKey");
}
if (key.isDown(40)) {
_parent.gotoAndStop("advancedKickingKey");
}
if (key.isDown(38)) {
_parent.gotoAndStop("tacklingKey");
}
if (key.isDown(32)) {
_parent._parent.gotoAndStop("ST-scrum3");
}
}
Symbol 617 MovieClip Frame 44
stop();
_root.lastModuleSelected = "scrumKey";
Symbol 617 MovieClip Frame 48
play();
_root.sixNationsInfo.data.flush();
trace("=Cookie value for six nations Team is: " + _root.sixNationsInfo.data.team);
trace("=Cookie value for six nations Level is: " + _root.sixNationsInfo.data.level);
if (sixNationsLocked) {
this.gotoAndStop("sixNationsLocked");
} else if ((_root.sixNationsInfo.data.team == "") or (_root.sixNationsInfo.data.team == undefined)) {
this.gotoAndStop("teamSelectNew");
} else {
_root.setFiveTeams(_root.sixNationsInfo.data.team);
}
trace("SFX module frame 48");
Instance of Symbol 553 MovieClip in Symbol 617 MovieClip Frame 48
onClipEvent (load) {
thisLevel = 0;
}
Instance of Symbol 553 MovieClip in Symbol 617 MovieClip Frame 48
onClipEvent (load) {
thisLevel = 4;
}
Instance of Symbol 553 MovieClip in Symbol 617 MovieClip Frame 48
onClipEvent (load) {
thisLevel = 3;
}
Instance of Symbol 553 MovieClip in Symbol 617 MovieClip Frame 48
onClipEvent (load) {
thisLevel = 2;
}
Instance of Symbol 553 MovieClip in Symbol 617 MovieClip Frame 48
onClipEvent (load) {
thisLevel = 1;
}
Symbol 617 MovieClip Frame 49
stop();
Symbol 617 MovieClip Frame 53
stop();
Symbol 617 MovieClip Frame 59
stop();
Symbol 617 MovieClip Frame 64
stop();
Symbol 617 MovieClip Frame 70
stop();
Symbol 617 MovieClip Frame 77
input2._accProps = new Object();
input1._accProps = new Object();
input1.tabIndex = 1;
input2.tabIndex = 2;
play();
trace("SFX module frame 53");
Symbol 617 MovieClip Frame 78
stop();
Symbol 617 MovieClip Frame 81
play();
Symbol 617 MovieClip Frame 82
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
play();
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 2
play();
Symbol 625 MovieClip Frame 1
this._visible = false;
nextFrame();
Symbol 625 MovieClip Frame 2
stop();
Symbol 628 MovieClip Frame 1
stop();
this._visible = false;
Symbol 631 MovieClip Frame 1
stop();
this._visible = false;
Symbol 635 MovieClip Frame 1
stop();
this._visible = false;
Symbol 635 MovieClip Frame 3
play();
Symbol 635 MovieClip Frame 4
stop();
Symbol 635 MovieClip Frame 7
play();
Symbol 635 MovieClip Frame 8
stop();
Symbol 635 MovieClip Frame 11
play();
Symbol 635 MovieClip Frame 12
stop();
Symbol 635 MovieClip Frame 15
play();
trace("ball caught SFX");
Symbol 635 MovieClip Frame 16
stop();
Symbol 635 MovieClip Frame 19
play();
Symbol 635 MovieClip Frame 20
stop();
Symbol 635 MovieClip Frame 23
play();
Symbol 635 MovieClip Frame 24
stop();
Symbol 641 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 657 MovieClip Frame 15
stop();
Symbol 657 MovieClip Frame 16
stop();
trace("hidey hidey");
Symbol 662 MovieClip Frame 1
stop();
Symbol 662 MovieClip Frame 5
play();
Symbol 662 MovieClip Frame 9
stop();
Symbol 662 MovieClip Frame 10
play();
Symbol 662 MovieClip Frame 16
stop();
Symbol 663 MovieClip Frame 1
play();
Symbol 663 MovieClip Frame 9
stop();
Symbol 666 MovieClip Frame 1
function display() {
if (_root.gameMode == "fullGame") {
matchTime = matchLength - (ratio * (sec + (micro / 100)));
trace("matchTime " + matchTime);
time = Math.floor(matchTime) + " : ";
matchSec = Math.floor((matchTime - Math.floor(matchTime)) * 60);
if (matchSec < 10) {
time = time + 0;
}
time = time + matchSec;
} else {
time = sec + " . ";
if (micro < 10) {
time = time + 0;
}
time = time + micro;
}
}
nextFrame();
matchLength = 80;
Symbol 666 MovieClip Frame 2
stop();
ratio = matchLength / fulltime;
display();
Symbol 666 MovieClip Frame 3
prevFrame();
Symbol 666 MovieClip Frame 5
play();
trace("count up");
Symbol 666 MovieClip Frame 6
play();
micro = micro + 10;
if (micro >= 100) {
micro = 0;
sec = sec + 1;
}
display();
Symbol 666 MovieClip Frame 7
prevFrame();
Symbol 666 MovieClip Frame 10
play();
trace("count down");
Symbol 666 MovieClip Frame 11
play();
micro = micro - 10;
if (micro < 0) {
micro = 90;
sec = sec - 1;
}
display();
if ((micro == 0) and (sec == 0)) {
trace("T I M E U P");
if (_root.gameMode == "fullGame") {
_parent.messages.gotoAndPlay("gameOver");
} else {
_parent.messages.gotoAndPlay("timeUp");
}
_parent.main.main.roundActive = false;
}
if (((halftime and (_root.gameMode == "fullGame")) and (sec == halftime)) and (micro == 0)) {
trace("H A L F T I M E");
_parent.messages.gotoAndPlay("halfTime");
_parent.main.main.roundActive = false;
halftime = false;
}
Symbol 666 MovieClip Frame 12
prevFrame();
Symbol 670 MovieClip Frame 1
play();
this._x = _parent._parent.main.main.ball._x * _parent.mapScale;
this._y = _parent._parent.main.main.ball._y * _parent.mapScale;
Symbol 670 MovieClip Frame 2
prevFrame();
Symbol 676 MovieClip Frame 1
play();
Symbol 676 MovieClip Frame 2
stop();
gotoAndStop(_parent._parent._parent.main.main[team]);
Symbol 676 MovieClip Frame 3
stop();
Symbol 676 MovieClip Frame 7
stop();
Symbol 676 MovieClip Frame 11
stop();
Symbol 676 MovieClip Frame 16
stop();
Symbol 676 MovieClip Frame 21
stop();
Symbol 676 MovieClip Frame 26
stop();
Symbol 677 MovieClip Frame 1
play();
marker = "opp" add this._name;
Instance of Symbol 676 MovieClip in Symbol 677 MovieClip Frame 1
onClipEvent (load) {
team = "oppTeam";
}
Symbol 677 MovieClip Frame 2
play();
this._x = _parent._parent.main.main[marker]._x * _parent.mapScale;
this._y = _parent._parent.main.main[marker]._y * _parent.mapScale;
Symbol 677 MovieClip Frame 3
prevFrame();
Symbol 678 MovieClip Frame 1
play();
marker = this._name;
Instance of Symbol 676 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
team = "playerTeam";
}
Symbol 678 MovieClip Frame 2
play();
this._x = _parent._parent.main.main[marker]._x * _parent.mapScale;
this._y = _parent._parent.main.main[marker]._y * _parent.mapScale;
Symbol 678 MovieClip Frame 3
prevFrame();
Symbol 681 MovieClip Frame 1
mapScale = 0.08;
Symbol 687 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 1
stop();
this._alpha = 70;
Instance of Symbol 689 MovieClip "bar" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
this._xscale = 0;
}
Symbol 693 MovieClip Frame 5
stop();
this._alpha = 100;
Symbol 693 MovieClip Frame 10
stop();
this._alpha = 70;
Symbol 693 MovieClip Frame 15
stop();
this._alpha = 70;
Symbol 693 MovieClip Frame 20
stop();
this._alpha = 100;
Symbol 696 MovieClip Frame 1
function calculateMedals() {
var _local1 = _root;
medalInfo = SharedObject.getLocal("medals");
trace("Score = " + _local1.score);
if (_local1.score == 3) {
if (((medalInfo.data.passing != "bronze") && (medalInfo.data.passing != "silver")) && (medalInfo.data.passing != "gold")) {
trace("Setting Bronze Medal");
medalInfo.data.passing = "bronze";
_local1.justWonPassing = true;
} else {
trace("Bronze Already Won");
_local1.justWonPassing = false;
}
_local1.medalPopup.gotoAndPlay("bronze");
} else if (_local1.score == 4) {
if ((medalInfo.data.passing != "silver") && (medalInfo.data.passing != "gold")) {
medalInfo.data.passing = "silver";
_local1.justWonPassing = true;
} else {
_local1.justWonPassing = false;
}
_local1.medalPopup.gotoAndPlay("silver");
} else if (_local1.score == 5) {
if (medalInfo.data.passing != "gold") {
medalInfo.data.passing = "gold";
_local1.justWonPassing = true;
} else {
_local1.justWonPassing = false;
}
_local1.medalPopup.gotoAndPlay("gold");
} else {
_local1.medalPopup.gotoAndPlay("none");
}
medalInfo.data.flush();
_parent.main.main.roundActive = false;
_parent.main.main.paused = true;
}
function nextRound(situation) {
var _local1 = _parent;
var _local2 = _root;
var _local3 = situation;
trace("next round");
if (_local3 == "try") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("win");
_local2.score++;
}
if ((_local3 == "out") or (_local3 == "outGood")) {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local3 == "tackled") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local3 == "lostPossession") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local2.roundNo < 5) {
_local2.roundNo++;
_local1.main.main.gotoAndPlay(positionArray[_local2.roundNo - 1]);
trace("----");
trace(_local2.main.main);
_local1.timer.sec = 0;
_local1.timer.micro = 0;
_local1.timer.display();
_local1.main.main.possesion = "player";
_local1.main.main.ballOwner = "teamMark9";
_local1.main.main.controlledPlayer = "9";
} else {
trace("TEST OVER");
calculateMedals();
}
trace("score: " + _local2.score);
}
_root.gameMode = "try";
positionArray = new Array("leftScrum", "rightScrum", "middleScrum", "leftScrum", "rightScrum");
nextRound("first");
Symbol 697 Button
on (release, keyPress "<Space>") {
stopAllSounds();
this.gotoAndStop("start");
_root.gotoAndStop("menu");
}
Instance of Symbol 88 MovieClip in Symbol 722 MovieClip Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
Instance of Symbol 88 MovieClip in Symbol 722 MovieClip Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
Instance of Symbol 88 MovieClip in Symbol 722 MovieClip Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
Instance of Symbol 88 MovieClip in Symbol 722 MovieClip Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
Symbol 723 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 5
play();
Symbol 723 MovieClip Frame 13
_quality = "high";
Symbol 723 MovieClip Frame 22
stop();
Symbol 723 MovieClip Frame 25
play();
Symbol 723 MovieClip Frame 33
_quality = "high";
Symbol 723 MovieClip Frame 42
stop();
Symbol 723 MovieClip Frame 45
play();
Symbol 723 MovieClip Frame 53
_quality = "high";
Symbol 723 MovieClip Frame 62
stop();
Symbol 723 MovieClip Frame 65
play();
Symbol 723 MovieClip Frame 73
stop();
_quality = "high";
Symbol 723 MovieClip Frame 75
play();
Symbol 723 MovieClip Frame 79
_quality = "high";
score = (((((_root.playerTeam + " ") + _root.playerScore) + " - ") + _root.oppTeam) + " ") + _root.oppScore;
if (newUnlock) {
txt = "Well done, you have unlocked the next match.";
} else if (bestScore) {
txt = "Well done, you have beaten your previous best score for this match.";
}
Symbol 723 MovieClip Frame 88
stop();
Symbol 723 MovieClip Frame 90
play();
Symbol 723 MovieClip Frame 94
_quality = "high";
score = (((((_root.playerTeam + " ") + _root.playerScore) + " - ") + _root.oppTeam) + " ") + _root.oppScore;
if (bestScore) {
txt = "Well done, you have beaten your previous best score for this match.";
}
Symbol 723 MovieClip Frame 95
stop();
Symbol 723 MovieClip Frame 97
play();
Symbol 723 MovieClip Frame 101
_quality = "high";
score = (((((_root.playerTeam + " ") + _root.playerScore) + " - ") + _root.oppTeam) + " ") + _root.oppScore;
txt = "You didn't win this time. Please try again.";
Symbol 723 MovieClip Frame 102
stop();
Symbol 723 MovieClip Frame 104
play();
Symbol 723 MovieClip Frame 108
_quality = "high";
score = (((((_root.playerTeam + " ") + _root.playerScore) + " - ") + _root.oppTeam) + " ") + _root.oppScore;
if (newUnlock) {
txt = "Well done, you have won the RBS Six Nations Championship.";
} else if (bestScore) {
txt = "Well done, you have beaten your previous best score for this match.";
}
Symbol 723 MovieClip Frame 117
stop();
Symbol 727 MovieClip Frame 1
stop();
Symbol 730 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 1
play();
Symbol 783 MovieClip Frame 7
stop();
Symbol 783 MovieClip Frame 12
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 41
_parent.control.nextRound("try");
Symbol 783 MovieClip Frame 46
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 47
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 71
_parent.control.nextRound("out");
Symbol 783 MovieClip Frame 74
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 78
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 102
_parent.control.nextRound("tackled");
Symbol 783 MovieClip Frame 105
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 109
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 133
_parent.control.nextRound("lostPossession");
Symbol 783 MovieClip Frame 136
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 140
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 170
_parent.control.nextRound("outGood");
Symbol 783 MovieClip Frame 175
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 180
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 210
_parent.control.nextRound("gainedPossession");
Symbol 783 MovieClip Frame 215
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 217
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 247
_parent.control.nextRound("timeUp");
Symbol 783 MovieClip Frame 252
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 253
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 277
_parent.control.nextRound("oppTry");
Symbol 783 MovieClip Frame 280
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 281
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 305
_parent.control.nextRound("scrumLost");
Symbol 783 MovieClip Frame 308
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 312
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 342
_parent.control.nextRound("scrumWon");
Symbol 783 MovieClip Frame 347
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 352
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 376
_parent.control.nextRound("wheel");
Symbol 783 MovieClip Frame 379
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 383
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 404
_parent.control.nextRound("goal");
Symbol 783 MovieClip Frame 409
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 414
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 430
_parent.control.nextRound("miss");
Symbol 783 MovieClip Frame 432
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 435
play();
Symbol 783 MovieClip Frame 459
_parent.control.nextRound("lineoutLost");
Symbol 783 MovieClip Frame 462
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 466
play();
_parent.main.box1.gotoAndPlay("show");
Symbol 783 MovieClip Frame 495
_parent.control.nextRound("lineoutWon");
Symbol 783 MovieClip Frame 501
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 502
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 531
_parent.control.nextRound("advGoal");
Symbol 783 MovieClip Frame 536
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 537
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 566
_parent.control.nextRound("bullseye");
Symbol 783 MovieClip Frame 571
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 572
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 596
_parent.control.nextRound("advMiss");
Symbol 783 MovieClip Frame 599
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 603
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 627
_parent.control.nextRound("advMiss");
Symbol 783 MovieClip Frame 630
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 634
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 663
_parent.control.nextRound("foul");
Symbol 783 MovieClip Frame 668
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 669
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 693
_parent.control.nextRound("oppConvertion");
Symbol 783 MovieClip Frame 696
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 700
play();
_parent.timer.gotoAndPlay("stop");
_parent.control.nextRound("goal");
Symbol 783 MovieClip Frame 726
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 730
play();
_parent.timer.gotoAndPlay("stop");
_parent.control.nextRound("miss");
Symbol 783 MovieClip Frame 748
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 750
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 774
_parent.control.nextRound("dropout22");
Symbol 783 MovieClip Frame 777
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 781
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 810
_parent.control.nextRound("scrum5m");
Symbol 783 MovieClip Frame 815
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 816
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 840
_parent.control.nextRound("scrum5m");
Symbol 783 MovieClip Frame 843
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 847
play();
_parent.timer.gotoAndPlay("stop");
Symbol 783 MovieClip Frame 876
_parent.control.nextRound("oppGoalMiss");
Symbol 783 MovieClip Frame 881
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 882
play();
_parent.timer.gotoAndPlay("stop");
_parent.main.main.specialCam = "zoomOut";
Symbol 783 MovieClip Frame 920
_parent.control.nextRound("halfTime");
Symbol 783 MovieClip Frame 929
gotoAndStop ("blank");
Symbol 783 MovieClip Frame 930
play();
_parent.timer.gotoAndPlay("stop");
_parent.main.main.specialCam = "zoomOut";
Symbol 783 MovieClip Frame 968
_parent.control.nextRound("gameOver");
Symbol 783 MovieClip Frame 969
gotoAndStop ("blank");
Symbol 792 MovieClip Frame 1
function dropKick(ballAngle, ballPower) {
var _local1 = _parent;
_local1.possesion = "none";
_local1.ball.dir = ballAngle;
_local1.ball.zspeed = 2 + (3 * (ballPower / 100));
_local1.ball.speed = 8 + (12 * (ballPower / 100));
_local1.ball.state = "kicked";
_local1.ball.pill.gotoAndPlay("kick");
_local1.camera.dampening = 2;
}
nextFrame();
Symbol 792 MovieClip Frame 2
stop();
_parent.roundStart.play();
_parent._parent._parent.vKey.gotoAndStop("kick");
if ((_root.gameMode == "fullGame") and _parent.roundActive) {
_root.timer.gotoAndPlay("countDown");
}
Symbol 792 MovieClip Frame 6
stop();
trace("Hide arrow");
_parent.roundStart.play();
_parent._parent._parent.vKey.gotoAndStop("kick");
if (_root.gameMode == "fullGame") {
_root.timer.gotoAndPlay("countDown");
}
Symbol 792 MovieClip Frame 11
play();
inc = 12;
powerInc = 20;
rotateRight = true;
count = 0;
this._rotation = 0;
powerUp = true;
power = 0;
_parent.roundStart.stop();
_parent._parent._parent.vKey.gotoAndStop("direction");
if (_root.gameMode == "fullGame") {
_root.timer.gotoAndStop("stop");
}
Symbol 792 MovieClip Frame 23
play();
if (rotateRight) {
this._rotation = this._rotation + inc;
} else {
this._rotation = this._rotation - inc;
}
if (this._rotation > 60) {
rotateRight = false;
count++;
} else if (this._rotation < -60) {
rotateRight = true;
count++;
}
if ((count > 3) and (_parent.startKick != true)) {
trace("hide arrow");
_parent.roundActive = true;
_parent.paused = false;
gotoAndStop ("hidesfx");
}
Symbol 792 MovieClip Frame 24
if (Key.isDown(86) or Key.isDown(32)) {
_parent._parent._parent.vKey.gotoAndStop("power");
play();
} else {
prevFrame();
}
Symbol 792 MovieClip Frame 30
play();
if (powerUp) {
power = power + powerInc;
} else {
power = power - powerInc;
}
if (power > 100) {
power = 100 - powerInc;
powerUp = false;
} else if (power < 0) {
power = 0 + powerInc;
powerUp = true;
}
arrowPower._yscale = 100 - power;
Symbol 792 MovieClip Frame 31
if (Key.isDown(86) or Key.isDown(32)) {
play();
} else {
prevFrame();
}
Symbol 792 MovieClip Frame 32
dropKick(this._rotation, power);
if (this._rotation > 0) {
_parent.lastPassRight = true;
} else {
_parent.lastPassRight = false;
}
_parent.roundActive = true;
_parent.paused = false;
_parent.startKick = false;
gotoAndStop ("hide");
Symbol 796 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 6
play();
Symbol 796 MovieClip Frame 17
play();
Symbol 796 MovieClip Frame 42
stop();
Instance of Symbol 795 MovieClip in Symbol 796 MovieClip Frame 42
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
}
Symbol 797 MovieClip Frame 1
play();
state = "held";
dir = 90;
speed = 22;
z = 10;
zspeed = 0;
bounces = 4;
stopped = false;
changePlaya = true;
Symbol 797 MovieClip Frame 2
play();
if (state == "held") {
owner = _parent.ballOwner.slice(8);
if (_parent.possesion == "opp") {
owner = "opp" + owner;
}
this._x = _parent[owner]._x;
this._y = _parent[owner]._y;
this._visible = false;
z = 10;
zspeed = 0;
speed = 22;
bounces = 4;
stopped = false;
changePlaya = true;
} else if (((state == "thrown") or (state == "dropped")) or (state == "kicked")) {
owner = "";
xspeed = Math.sin(_root.angle2radian(dir)) * speed;
yspeed = Math.cos(_root.angle2radian(dir)) * speed;
this._x = this._x + xspeed;
this._y = this._y - yspeed;
this._visible = true;
pill.pill.ballFrames.play();
if (bounces) {
zspeed = zspeed - 0.5;
z = z + zspeed;
if (z <= 0) {
bounces--;
speed = speed / 2;
zspeed = zspeed * -1;
dir = (dir + random(40)) - 20;
_root.sfx.gotoAndPlay("ball");
}
if (((bounces == 2) and changePlaya) and _parent.roundActive) {
trace("ball appears to be Dropped");
changePlaya = false;
state = "dropped";
bestDist = 1000000 /* 0x0F4240 */;
i = 0;
while (i < _parent.team.length) {
if (eval ("_parent." + _parent.team[i]).active) {
dist = _root.distance(eval ("_parent." + _parent.team[i]), this);
if (dist < bestDist) {
bestDist = dist;
changePlayer = _parent.team[i];
}
}
i++;
}
trace("change Player: " + changePlayer);
_parent.controlledPlayer = changePlayer;
_parent.possesion = "none";
trace("change to closer Player to ball");
_root.sfx.gotoAndPlay("click");
}
} else if (stopped) {
pill.pill.ballFrames.stop();
if ((_root.gameMode == "advKicking") and _parent.roundActive) {
trace("B A L L S T O P P E D");
_parent.roundActive = false;
_parent._parent._parent.messages.gotoAndPlay("advMiss");
}
} else {
z = 0;
speed = 0;
stopped = true;
}
pill.pill._xscale = (z * 3) + 70;
pill.pill._yscale = (z * 3) + 70;
}
Symbol 797 MovieClip Frame 3
prevFrame();
Symbol 805 MovieClip Frame 1
stop();
Symbol 805 MovieClip Frame 5
stop();
Symbol 806 MovieClip Frame 1
play();
Symbol 806 MovieClip Frame 6
stop();
Symbol 807 MovieClip Frame 1
play();
this._x = _parent[_parent.controlledPlayer]._x;
this._y = _parent[_parent.controlledPlayer]._y;
this._rotation = _parent[_parent.controlledPlayer]._rotation;
if (_parent.possesion == "player") {
ani.marker.gotoAndStop("normal");
} else {
ani.marker.gotoAndStop("noBall");
}
Symbol 807 MovieClip Frame 2
prevFrame();
Symbol 808 MovieClip Frame 1
play();
if (_parent.possesion == "opp") {
this._visible = true;
this._x = _parent.ball._x;
this._y = _parent.ball._y;
this._rotation = this._rotation + 5;
} else {
this._visible = false;
}
Symbol 808 MovieClip Frame 2
prevFrame();
Symbol 820 MovieClip Frame 1
play();
if (_root.gameMode != "advKicking") {
if (_parent.passRight == "none") {
this._visible = false;
if ((Key.isDown(88) and (_parent.ball.state == "held")) and _parent.roundActive) {
trace("bad pass right");
_parent.possesion = "none";
_parent.ball.dir = 90;
_parent.ball.state = "thrown";
_parent.ball.pill.gotoAndPlay("highlight");
if (_parent[_parent.controlledPlayer].vars.yspeed <= 0) {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwRight");
} else {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwLeft");
}
_parent.lastPassRight = true;
}
} else {
this._visible = true;
this._x = eval ("_parent." + _parent.passRight)._x;
this._y = eval ("_parent." + _parent.passRight)._y;
if ((Key.isDown(88) and (_parent.ball.state == "held")) and _parent.roundActive) {
trace("pass right");
_parent.ball.dir = _root.angle(eval ("_parent." + _parent.controlledPlayer), eval ("_parent." + _parent.passRight)) + (2 * _parent[_parent.controlledPlayer].vars.yspeed);
_parent.ball.state = "thrown";
_parent.ball.pill.gotoAndPlay("normal");
if (_parent[_parent.controlledPlayer].vars.yspeed <= 0) {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwRight");
} else {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwLeft");
}
_parent.controlledPlayer = _parent.passRight;
_parent[_parent.passRight].vars.justChanged = 10;
_parent.currentPlayer.ani.play();
_parent.lastPassRight = true;
}
}
} else {
this._visible = false;
}
Symbol 820 MovieClip Frame 2
if (_parent.possesion == "player") {
prevFrame();
} else {
nextFrame();
}
Symbol 820 MovieClip Frame 3
play();
if (_parent.switchRight != "none") {
this._visible = true;
this._x = eval ("_parent." + _parent.switchRight)._x;
this._y = eval ("_parent." + _parent.switchRight)._y;
if (Key.isDown(88) and _parent.roundActive) {
trace("switch right");
_parent.controlledPlayer = _parent.switchRight;
_parent.currentPlayer.ani.play();
_root.sfx.gotoAndPlay("click");
}
} else {
this._visible = false;
}
Symbol 820 MovieClip Frame 4
if (_parent.possesion == "player") {
gotoAndPlay ("attack");
} else {
prevFrame();
}
Symbol 828 MovieClip Frame 1
play();
if (_root.gameMode != "advKicking") {
if (_parent.passLeft == "none") {
this._visible = false;
if ((Key.isDown(90) and (_parent.ball.state == "held")) and _parent.roundActive) {
trace("bad pass left");
_parent.possesion = "none";
_parent.ball.dir = -90;
_parent.ball.state = "thrown";
_parent.ball.pill.gotoAndPlay("highlight");
if (_parent[_parent.controlledPlayer].vars.yspeed <= 0) {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwLeft");
} else {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwRight");
}
_parent.lastPassRight = false;
}
} else {
this._visible = true;
this._x = eval ("_parent." + _parent.passLeft)._x;
this._y = eval ("_parent." + _parent.passLeft)._y;
if ((Key.isDown(90) and (_parent.ball.state == "held")) and _parent.roundActive) {
trace("pass left");
_parent.ball.dir = _root.angle(eval ("_parent." + _parent.controlledPlayer), eval ("_parent." + _parent.passLeft)) - (4 * _parent[_parent.controlledPlayer].vars.yspeed);
_parent.ball.state = "thrown";
_parent.ball.pill.gotoAndPlay("normal");
if (_parent[_parent.controlledPlayer].vars.yspeed <= 0) {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwLeft");
} else {
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("throwRight");
}
_parent.controlledPlayer = _parent.passLeft;
_parent[_parent.passLeft].vars.justChanged = 10;
_parent.currentPlayer.ani.play();
_parent.lastPassRight = false;
}
}
} else {
this._visible = false;
}
Symbol 828 MovieClip Frame 2
if (_parent.possesion == "player") {
prevFrame();
} else {
nextFrame();
}
Symbol 828 MovieClip Frame 3
play();
if (_parent.switchLeft != "none") {
this._visible = true;
this._x = eval ("_parent." + _parent.switchLeft)._x;
this._y = eval ("_parent." + _parent.switchLeft)._y;
if (Key.isDown(90) and _parent.roundActive) {
trace("switch left");
_parent.controlledPlayer = _parent.switchLeft;
_parent.currentPlayer.ani.play();
_root.sfx.gotoAndPlay("click");
}
} else {
this._visible = false;
}
Symbol 828 MovieClip Frame 4
if (_parent.possesion == "player") {
gotoAndPlay ("attack");
} else {
prevFrame();
}
Symbol 830 MovieClip Frame 1
play();
this._visible = false;
if (this._name == "oppGoal") {
side = "opp";
goalMessage = "oppConvertion";
} else {
side = "player";
goalMessage = "advGoal";
}
Symbol 830 MovieClip Frame 2
play();
if (_parent.rules.lastPossesion == side) {
if (((_parent.roundActive and this.hitTest(_parent.ball)) and (_parent.ball.z > 19)) and (_parent.ball.bounces == 4)) {
trace("G O A L - height: " + _parent.ball.z);
_parent.roundActive = false;
_parent._parent._parent.messages.gotoAndPlay(goalMessage);
} else if (((_root.gameMode == "advKicking") and this.hitTest(_parent.ball)) and _parent.roundActive) {
trace("M I S S - height: " + _parent.ball.z);
_parent.roundActive = false;
_parent._parent._parent.messages.gotoAndPlay("advMissLow");
}
}
Symbol 830 MovieClip Frame 3
prevFrame();
Symbol 833 MovieClip Frame 1
this._visible = false;
Symbol 835 MovieClip Frame 1
function foul() {
var _local1 = _parent;
var _local2 = _root;
trace("foul rules");
if (_local1.ball._y < _local1.topTry._y) {
trace("go to 5m scrum top foul ?!?!?");
} else if (_local1.ball._y < (_local1.topTry._y + thirdPitch)) {
trace("top third");
if (_local1.ball._x < thirdPitchWidh) {
trace("left");
_local2.gamePosition = "leftTopScrum";
} else if (_local1.ball._x < (thirdPitchWidh * 2)) {
trace("middle");
_local2.gamePosition = "middleTopScrum";
} else {
trace("right");
_local2.gamePosition = "rightTopScrum";
}
} else if (_local1.ball._y < (_local1.topTry._y + (thirdPitch * 2))) {
trace("middle third");
if (_local1.ball._x < thirdPitchWidh) {
trace("left");
_local2.gamePosition = "leftScrum";
} else if (_local1.ball._x < (thirdPitchWidh * 2)) {
trace("middle");
_local2.gamePosition = "middleScrum";
} else {
trace("right");
_local2.gamePosition = "rightScrum";
}
} else if (_local1.ball._y < (_local1.topTry._y + (thirdPitch * 3))) {
trace("bottom third");
if (_local1.ball._x < thirdPitchWidh) {
trace("left");
_local2.gamePosition = "leftBotScrum";
} else if (_local1.ball._x < (thirdPitchWidh * 2)) {
trace("middle");
_local2.gamePosition = "middleBotScrum";
} else {
trace("right");
_local2.gamePosition = "rightBotScrum";
}
} else {
trace("go to 5m scrum bottom foul ?!?!?");
}
_local1._parent._parent.messages.gotoAndPlay("foul");
}
function playerConversion() {
var _local1 = _root;
var _local2 = _parent;
_local1.flipped = false;
if (_local2.ball._x < (fifthPitchWidth * 1)) {
trace("left left");
_local1.conversionAngle = 3;
_local1.flipped = true;
} else if (_local2.ball._x < (fifthPitchWidth * 2)) {
trace("left");
_local1.conversionAngle = 2;
_local1.flipped = true;
} else if (_local2.ball._x < (fifthPitchWidth * 3)) {
trace("between posts");
_local1.conversionAngle = 1;
} else if (_local2.ball._x < (fifthPitchWidth * 4)) {
trace("right");
_local1.conversionAngle = 2;
} else {
trace("right right");
_local1.conversionAngle = 3;
}
}
function outTopBox() {
trace("--out top box");
if (_root.gameMode == "fullGame") {
if (lastPossesion == "player") {
trace("22 drop out");
outAni = "dropout22";
} else {
outAni = "scrum5mGood";
calcTop5mScrum();
}
}
}
function outBotBox() {
trace("--out bottom box");
if (_root.gameMode == "fullGame") {
if (lastPossesion == "player") {
outAni = "scrum5mBad";
calcBot5mScrum();
}
}
}
function calcTop5mScrum() {
var _local1 = _root;
if (_parent.ball._x < thirdPitchWidh) {
trace("+left top 5m scrum");
_local1.gamePosition = "leftTop5mScrum";
} else if (_parent.ball._x < (thirdPitchWidh * 2)) {
trace("+middle top 5m scrum");
_local1.gamePosition = "middleTop5mScrum";
} else {
trace("+right top 5m scrum");
_local1.gamePosition = "rightTop5mScrum";
}
}
function calcBot5mScrum() {
var _local1 = _root;
if (_parent.ball._x < thirdPitchWidh) {
trace("+left bottom 5m scrum");
_local1.gamePosition = "leftBot5mScrum";
} else if (_parent.ball._x < (thirdPitchWidh * 2)) {
trace("+middle bottom 5m scrum");
_local1.gamePosition = "middleBot5mScrum";
} else {
trace("+right bottom 5m scrum");
_local1.gamePosition = "rightBot5mScrum";
}
}
function checkOppConv() {
if (_parent.oppConv) {
outAni = "oppGoalMiss";
trace("+opp convertion miss");
}
}
play();
this._visible = false;
lastPossesion = _parent.possesion;
thirdPitch = (_parent.bottomTry._y - _parent.topTry._y) / 3;
thirdPitchWidh = _parent.pitchWidth / 3;
fifthPitchWidth = _parent.pitchWidth / 5;
Symbol 835 MovieClip Frame 2
play();
if (_parent.roundActive) {
if (_parent.possesion != "none") {
lastPossesion = _parent.possesion;
}
if (lastPossesion == "player") {
outAni = "out";
} else {
outAni = "outGood";
}
if (_parent.ball._x < 0) {
trace("line out left");
trace("lastPossesion: " + lastPossesion);
if (_parent.ball._y < _parent.topTry._y) {
outTopBox();
} else if (_parent.ball._y < (_parent.topTry._y + thirdPitch)) {
trace("top third");
_root.gamePosition = "leftTopLineout";
} else if (_parent.ball._y < (_parent.topTry._y + (thirdPitch * 2))) {
trace("middle third");
_root.gamePosition = "leftMiddleLineout";
} else if (_parent.ball._y < (_parent.topTry._y + (thirdPitch * 3))) {
trace("bottom third");
_root.gamePosition = "leftBottomLineout";
} else if (_parent.ball._y < _parent.pitchHeight) {
outBotBox();
}
if (outAni == "outGood") {
_root.oppsLineout = false;
} else {
_root.oppsLineout = true;
}
_root.flipped = false;
checkOppConv();
_parent._parent._parent.messages.gotoAndPlay(outAni);
_parent.roundActive = false;
} else if (_parent.ball._x > _parent.pitchWidth) {
trace("line out right");
trace("lastPossesion: " + lastPossesion);
if (_parent.ball._y < _parent.topTry._y) {
outTopBox();
} else if (_parent.ball._y < (_parent.topTry._y + thirdPitch)) {
trace("top third");
_root.gamePosition = "rightTopLineout";
} else if (_parent.ball._y < (_parent.topTry._y + (thirdPitch * 2))) {
trace("middle third");
_root.gamePosition = "rightMiddleLineout";
} else if (_parent.ball._y < (_parent.topTry._y + (thirdPitch * 3))) {
trace("bottom third");
_root.gamePosition = "rightBottomLineout";
} else if (_parent.ball._y < _parent.pitchHeight) {
outBotBox();
}
if (outAni == "outGood") {
_root.oppsLineout = false;
} else {
_root.oppsLineout = true;
}
_root.flipped = true;
checkOppConv();
_parent._parent._parent.messages.gotoAndPlay(outAni);
_parent.roundActive = false;
}
if (_parent.ball._y < 0) {
trace("out top");
trace("lastPossesion: " + lastPossesion);
outTopBox();
checkOppConv();
_parent._parent._parent.messages.gotoAndPlay(outAni);
_parent.roundActive = false;
} else if (_parent.ball._y < _parent.topTry._y) {
if (((_parent.teamDirection == 1) and (_parent.ball.state == "held")) and (_parent.possesion == "player")) {
trace("player top try");
playerConversion();
_parent._parent._parent.messages.gotoAndPlay("try");
_parent.roundActive = false;
_parent[_parent.controlledPlayer].team.head.gotoAndPlay("dive");
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("dive");
_parent[_parent.controlledPlayer].team.legs.gotoAndPlay("dive");
} else if (((_parent.teamDirection == -1) and (_parent.ball.state == "held")) and (_parent.possesion == "opp")) {
trace("opp top try");
_parent._parent._parent.messages.gotoAndPlay("oppTry");
_parent.roundActive = false;
_root.oppXtry = _parent.ball._x;
trace("opp x pos try: " + _root.oppXtry);
_parent[_parent.ball.owner].team.head.gotoAndPlay("dive");
_parent[_parent.ball.owner].team.torso.gotoAndPlay("dive");
_parent[_parent.ball.owner].team.legs.gotoAndPlay("dive");
_parent[_parent.ball.owner].vars.xtopspeed = 0;
_parent[_parent.ball.owner].vars.ytopspeed = 0;
}
} else if (_parent.ball._y > _parent.pitchHeight) {
trace("out bottom");
trace("lastPossesion: " + lastPossesion);
outBotBox();
checkOppConv();
_parent._parent._parent.messages.gotoAndPlay(outAni);
_parent.roundActive = false;
} else if (_parent.ball._y > _parent.bottomTry._y) {
if (((_parent.teamDirection == -1) and (_parent.ball.state == "held")) and (_parent.possesion == "player")) {
trace("player bottom try");
playerConversion();
_parent._parent._parent.messages.gotoAndPlay("try");
_parent.roundActive = false;
_parent[_parent.controlledPlayer].team.head.gotoAndPlay("dive");
_parent[_parent.controlledPlayer].team.torso.gotoAndPlay("dive");
_parent[_parent.controlledPlayer].team.legs.gotoAndPlay("dive");
} else if (((_parent.teamDirection == 1) and (_parent.ball.state == "held")) and (_parent.possesion == "opp")) {
trace("opp bottom try");
_parent._parent._parent.messages.gotoAndPlay("oppTry");
_parent.roundActive = false;
_root.oppXtry = _parent.ball._x;
trace("opp x pos try: " + _root.oppXtry);
_parent[_parent.ball.owner].team.head.gotoAndPlay("dive");
_parent[_parent.ball.owner].team.torso.gotoAndPlay("dive");
_parent[_parent.ball.owner].team.legs.gotoAndPlay("dive");
_parent[_parent.ball.owner].vars.xtopspeed = 0;
_parent[_parent.ball.owner].vars.ytopspeed = 0;
}
}
}
Symbol 835 MovieClip Frame 3
prevFrame();
Symbol 836 MovieClip Frame 1
nextFrame();
this._visible = false;
_parent.playerNum = _parent._name;
energy = 100;
energyReplenish = 0.6;
xspeed = 0;
yspeed = 0;
_parent.active = true;
if (_parent.playerNum < 9) {
xtopspeed = 4;
xaccel = 0.4;
ytopspeed = 4;
yaccel = 0.4;
} else {
xtopspeed = 8;
xaccel = 1.6;
ytopspeed = 12;
yaccel = 1.6;
}
xUsertopspeed = 6;
xUtop = 6;
xUseraccel = 2;
yUsertopspeed = 6;
yUtop = 6;
yUseraccel = 2;
maxThrow = 200;
catchRange = 30;
running = false;
tackleZone = 60;
diveSpeed = 15;
dive = 0;
reach = 20;
Symbol 836 MovieClip Frame 2
play();
if (dive) {
xspeed = Math.sin(_root.angle2radian(dir)) * dive;
yspeed = (-1 * Math.cos(_root.angle2radian(dir))) * dive;
if (_root.distance(_parent, _parent._parent.ball) < reach) {
if (_parent._parent.roundActive and (_parent._parent.ball.state == "held")) {
trace("tackled an opponent");
if ((_parent._parent.ball._y < _parent._parent.topTry._y) and (_root.gameMode == "fullGame")) {
trace("tackle top box");
_parent._parent.rules.calcTop5mScrum();
_parent._parent._parent._parent.messages.gotoAndPlay("scrum5mBad");
_parent._parent.roundActive = false;
eval (("_parent._parent." + _parent._parent.ball.Owner) + ".vars").falldown();
} else if (_root.gameMode == "defend") {
trace("defend tackle");
eval (("_parent._parent." + _parent._parent.ball.Owner) + ".vars").passBall(true);
} else if (random(10) == 0) {
trace("foul");
_parent._parent.rules.foul();
_parent._parent.roundActive = false;
} else if (dive < 14) {
trace("slow tackle");
eval (("_parent._parent." + _parent._parent.ball.Owner) + ".vars").passBall(false);
} else {
trace("fast tackle");
eval (("_parent._parent." + _parent._parent.ball.Owner) + ".vars").falldown();
_parent._parent.ballOwner = "teamMark" + _parent.playerNum;
_parent._parent.ball.state = "held";
_parent._parent.possesion = "player";
_root.sfx.gotoAndPlay("ballCaught");
}
}
xspeed = 0;
yspeed = 0;
dive = 0;
}
dive = dive - 2;
if (dive <= 0) {
dive = 0;
_parent.team.head.gotoAndPlay("run");
_parent.team.torso.gotoAndPlay("stand");
_parent.team.legs.gotoAndPlay("stand");
}
} else if (_parent._parent.controlledPlayer != _parent.playerNum) {
if (_parent._parent["teamMark" + _parent.playerNum]._x > (_parent._x + (xtopspeed / 1.9))) {
if (xspeed < xtopspeed) {
xspeed = xspeed + xaccel;
}
} else if (_parent._parent["teamMark" + _parent.playerNum]._x < (_parent._x - (xtopspeed / 1.9))) {
if (xspeed > (-xtopspeed)) {
xspeed = xspeed - xaccel;
}
} else {
_parent._x = _parent._parent["teamMark" + _parent.playerNum]._x;
xspeed = 0;
}
if (_parent._parent["teamMark" + _parent.playerNum]._y > (_parent._y + (ytopspeed / 1.5))) {
if (yspeed < ytopspeed) {
yspeed = yspeed + yaccel;
}
} else if (_parent._parent["teamMark" + _parent.playerNum]._y < (_parent._y - (ytopspeed / 1.5))) {
if (yspeed > (-ytopspeed)) {
yspeed = yspeed - yaccel;
}
} else {
_parent._y = _parent._parent["teamMark" + _parent.playerNum]._y;
yspeed = 0;
}
} else {
if (_parent._parent.possesion == "opp") {
if ((Key.isDown(32) and _parent._parent.roundActive) and _parent.active) {
_parent._parent._parent._parent.spaceBar.gotoAndStop("tackling");
dir = _root.runAngle(xspeed, yspeed);
_parent.team.head.gotoAndStop("dive");
_parent.team.torso.gotoAndStop("dive");
_parent.team.legs.gotoAndStop("dive");
dive = diveSpeed;
} else if (_root.distance(_parent._parent.ball, _parent) < tackleZone) {
_parent._parent._parent._parent.spaceBar.gotoAndStop("tackleRange");
} else {
_parent._parent._parent._parent.spaceBar.gotoAndStop("tackle");
}
yUsertopspeed = yUtop;
xUsertopspeed = xUtop;
_parent._parent._parent._parent.vKey._visible = false;
} else {
if (((Key.isDown(32) and (energy > 1)) and _parent._parent.roundActive) and ((_root.gameMode == "try") or (_root.gameMode == "fullGame"))) {
yUsertopspeed = yUtop * 2;
xUsertopspeed = xUtop * 2;
_parent._parent._parent._parent.spaceBar.gotoAndStop("turbo");
energy = energy - ((_root.magnitude(xspeed) + _root.magnitude(yspeed)) / 1.5);
if (energy < 0) {
energy = 0;
}
} else if (justChanged) {
yUsertopspeed = yUtop * 2;
xUsertopspeed = xUtop * 2;
} else {
yUsertopspeed = yUtop;
xUsertopspeed = xUtop;
_parent._parent._parent._parent.spaceBar.gotoAndStop("nonturbo");
}
if (((((Key.isDown(86) or _parent._parent.startKick) and _parent._parent.roundActive) and (_parent._parent.possesion == "player")) and (_parent._parent.ball.state == "held")) and ((_root.gameMode == "advKicking") or (_root.gameMode == "fullGame"))) {
trace("start drop kick");
_parent._parent.roundActive = false;
_parent._parent.paused = true;
_parent._parent.arrow._x = _parent._x;
_parent._parent.arrow._y = _parent._y;
_parent._parent.arrow.gotoAndPlay("start");
}
if (_parent._parent.possesion == "player") {
_parent._parent._parent._parent.vKey._visible = true;
_parent._parent._parent._parent.vKey._alpha = 100;
} else {
_parent._parent._parent._parent.vKey._visible = true;
_parent._parent._parent._parent.vKey._alpha = 60;
}
}
if (Key.isDown(38) and _parent._parent.roundActive) {
yspeed = yspeed - yUseraccel;
if (yspeed < (-yUsertopspeed)) {
yspeed = -yUsertopspeed;
}
} else if (Key.isDown(40) and _parent._parent.roundActive) {
yspeed = yspeed + yUseraccel;
if (yspeed > yUsertopspeed) {
yspeed = yUsertopspeed;
}
} else if (yspeed > 1) {
yspeed = yspeed - yUseraccel;
} else if (yspeed < -1) {
yspeed = yspeed + yUseraccel;
} else {
yspeed = 0;
}
if (Key.isDown(37) and _parent._parent.roundActive) {
xspeed = xspeed - xUseraccel;
if (xspeed < (-xUsertopspeed)) {
xspeed = -xUsertopspeed;
}
} else if (Key.isDown(39) and _parent._parent.roundActive) {
xspeed = xspeed + xUseraccel;
if (xspeed > xUsertopspeed) {
xspeed = xUsertopspeed;
}
} else if (xspeed > 1) {
xspeed = xspeed - xUseraccel;
} else if (xspeed < -1) {
xspeed = xspeed + xUseraccel;
} else {
xspeed = 0;
}
_parent._parent._parent._parent.spaceBar.bar._xscale = 100 - energy;
if (energy < 1) {
_parent._parent._parent._parent.spaceBar.mask.play();
_root.pant.play();
}
if (_parent._parent.possesion == "player") {
_parent._parent.passLeft = "none";
_parent._parent.passRight = "none";
i = 0;
while (i < _parent._parent.team.length) {
dist = _root.distance(eval ("_parent._parent." + _parent._parent.team[i]), _parent);
if (((_parent._parent.ball.state == "held") and (eval ("_parent._parent." + _parent._parent.team[i])._y >= (_parent._y * _parent._parent.teamDirection))) and (dist < maxThrow)) {
if (eval ("_parent._parent." + _parent._parent.team[i])._x < _parent._x) {
if (_parent._parent.passLeft == "none") {
_parent._parent.passLeft = _parent._parent.team[i];
bestLeftDist = dist;
} else if (dist > bestLeftDist) {
_parent._parent.passLeft = _parent._parent.team[i];
bestLeftDist = dist;
}
} else if (eval ("_parent._parent." + _parent._parent.team[i])._x > _parent._x) {
if (_parent._parent.passRight == "none") {
_parent._parent.passRight = _parent._parent.team[i];
bestRightDist = dist;
} else if (dist > bestRightDist) {
_parent._parent.passRight = _parent._parent.team[i];
bestRightDist = dist;
}
}
}
i++;
}
} else {
_parent._parent.switchLeft = "none";
_parent._parent.switchRight = "none";
i = 0;
while (i < _parent._parent.team.length) {
if (eval ("_parent._parent." + _parent._parent.team[i]).active and (_parent._parent.team[i] != _parent._parent.controlledPlayer)) {
dist = _root.distance(eval ("_parent._parent." + _parent._parent.team[i]), _parent._parent.ball);
if (eval ("_parent._parent." + _parent._parent.team[i])._x < _parent._parent.ball._x) {
if (_parent._parent.switchLeft == "none") {
_parent._parent.switchLeft = _parent._parent.team[i];
bestLeftDist = dist;
} else if (dist < bestLeftDist) {
_parent._parent.switchLeft = _parent._parent.team[i];
bestLeftDist = dist;
}
} else if (eval ("_parent._parent." + _parent._parent.team[i])._x > _parent._parent.ball._x) {
if (_parent._parent.switchRight == "none") {
_parent._parent.switchRight = _parent._parent.team[i];
bestRightDist = dist;
} else if (dist < bestRightDist) {
_parent._parent.switchRight = _parent._parent.team[i];
bestRightDist = dist;
}
}
}
i++;
}
}
}
balldist = _root.distance(_parent._parent.ball, _parent);
if (balldist < catchRange) {
if ((((((_parent._parent.ball.state == "thrown") or (_parent._parent.ball.state == "dropped")) and _parent.active) and (_parent.cantCatch == false)) and (_parent._parent.possesion != "opp")) and (_root.gameMode != "advKicking")) {
trace("ball caught by player " + _parent.playerNum);
_parent._parent.ballOwner = "teamMark" + _parent.playerNum;
if (_parent._parent.controlledPlayer != _parent.playerNum) {
_parent._parent.currentPlayer.ani.gotoAndPlay(1);
_parent._parent.controlledPlayer = _parent.playerNum;
}
_parent._parent.ball.state = "held";
_parent._parent.possesion = "player";
_root.sfx.gotoAndPlay("ballCaught");
if (_root.gameMode == "defend") {
_parent._parent._parent._parent.messages.gotoAndPlay("gainedPossession");
_parent._parent.roundActive = false;
}
}
}
if (_parent.active and (_parent._parent.paused != true)) {
_parent._x = _parent._x + xspeed;
_parent._y = _parent._y + yspeed;
}
if (_parent._y > (_parent._parent.pitchHeight + _parent._parent.boundery)) {
_parent._y = _parent._parent.pitchHeight + _parent._parent.boundery;
} else if (_parent._y < (-_parent._parent.boundery)) {
_parent._y = -_parent._parent.boundery;
}
if (_parent._x > (_parent._parent.pitchWidth + _parent._parent.boundery)) {
_parent._x = _parent._parent.pitchWidth + _parent._parent.boundery;
} else if (_parent._x < (-_parent._parent.boundery)) {
_parent._x = -_parent._parent.boundery;
}
if (_parent._parent.controlledPlayer == _parent.playerNum) {
_parent._parent["teamMark" + _parent.playerNum]._x = _parent._x;
_parent._parent["teamMark" + _parent.playerNum]._y = _parent._y;
}
if (_parent.active) {
if (_parent.cantCatch == false) {
_parent._rotation = _root.runAngle(xspeed, yspeed);
}
if ((_root.magnitude(xspeed) + _root.magnitude(yspeed)) == 0) {
_parent.team.legs.gotoAndPlay("stand");
_parent.team.torso.gotoAndPlay("stand");
running = false;
} else if (running == false) {
_parent.team.legs.gotoAndPlay("run");
_parent.team.torso.gotoAndPlay("run");
running = true;
}
}
if (energy < 100) {
energy = energy + energyReplenish;
} else {
energy = 100;
}
if (justChanged > 0) {
justChanged--;
}
Symbol 836 MovieClip Frame 3
prevFrame();
Symbol 841 MovieClip Frame 1
stop();
Symbol 841 MovieClip Frame 5
stop();
Symbol 841 MovieClip Frame 9
prevFrame();
Symbol 841 MovieClip Frame 10
play();
Symbol 841 MovieClip Frame 15
if (_root.gameMode == "try") {
stop();
}
Symbol 841 MovieClip Frame 21
gotoAndPlay ("run");
Symbol 848 MovieClip Frame 1
stop();
_parent._parent.cantCatch = false;
Symbol 848 MovieClip Frame 4
prevFrame();
Symbol 848 MovieClip Frame 5
play();
Symbol 848 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 848 MovieClip Frame 18
play();
_parent._parent.cantCatch = true;
Symbol 848 MovieClip Frame 27
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 848 MovieClip Frame 28
play();
_parent._parent.cantCatch = true;
Symbol 848 MovieClip Frame 37
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 848 MovieClip Frame 38
play();
Symbol 848 MovieClip Frame 42
stop();
Symbol 848 MovieClip Frame 43
play();
_parent._parent.cantCatch = true;
Symbol 848 MovieClip Frame 48
if (_root.gameMode == "try") {
stop();
}
Symbol 848 MovieClip Frame 54
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
_parent._parent.active = true;
Symbol 852 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 4
prevFrame();
Symbol 852 MovieClip Frame 5
play();
Symbol 852 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 852 MovieClip Frame 18
play();
Symbol 852 MovieClip Frame 22
stop();
Symbol 852 MovieClip Frame 23
play();
Symbol 852 MovieClip Frame 28
if (_root.gameMode == "try") {
stop();
}
Symbol 852 MovieClip Frame 34
gotoAndPlay ("run");
Symbol 857 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 5
stop();
Symbol 857 MovieClip Frame 9
prevFrame();
Symbol 857 MovieClip Frame 10
play();
Symbol 857 MovieClip Frame 15
if (_root.gameMode == "try") {
stop();
}
Symbol 857 MovieClip Frame 21
gotoAndPlay ("run");
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 5
stop();
Symbol 860 MovieClip Frame 9
prevFrame();
Symbol 860 MovieClip Frame 10
play();
Symbol 860 MovieClip Frame 15
if (_root.gameMode == "try") {
stop();
}
Symbol 860 MovieClip Frame 21
gotoAndPlay ("run");
Symbol 861 MovieClip Frame 1
stop();
gotoAndStop(random(4) + 1);
Symbol 871 MovieClip Frame 1
stop();
_parent._parent.cantCatch = false;
Symbol 871 MovieClip Frame 4
prevFrame();
Symbol 871 MovieClip Frame 5
play();
Symbol 871 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 871 MovieClip Frame 18
play();
_parent._parent.cantCatch = true;
Symbol 871 MovieClip Frame 27
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 871 MovieClip Frame 28
play();
_parent._parent.cantCatch = true;
Symbol 871 MovieClip Frame 37
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 871 MovieClip Frame 38
play();
Symbol 871 MovieClip Frame 42
stop();
Symbol 871 MovieClip Frame 43
play();
_parent._parent.cantCatch = true;
Symbol 871 MovieClip Frame 54
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
_parent._parent.active = true;
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 4
prevFrame();
Symbol 875 MovieClip Frame 5
play();
Symbol 875 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 875 MovieClip Frame 18
play();
Symbol 875 MovieClip Frame 22
stop();
Symbol 875 MovieClip Frame 23
play();
Symbol 875 MovieClip Frame 34
gotoAndPlay ("run");
Symbol 876 MovieClip Frame 1
stop();
gotoAndStop(random(4) + 1);
Symbol 891 MovieClip Frame 1
stop();
_parent._parent.cantCatch = false;
Symbol 891 MovieClip Frame 4
prevFrame();
Symbol 891 MovieClip Frame 5
play();
Symbol 891 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 891 MovieClip Frame 18
play();
_parent._parent.cantCatch = true;
Symbol 891 MovieClip Frame 27
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 891 MovieClip Frame 28
play();
_parent._parent.cantCatch = true;
Symbol 891 MovieClip Frame 37
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 891 MovieClip Frame 38
play();
Symbol 891 MovieClip Frame 42
stop();
Symbol 891 MovieClip Frame 43
play();
_parent._parent.cantCatch = true;
Symbol 891 MovieClip Frame 54
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
_parent._parent.active = true;
Symbol 896 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 4
prevFrame();
Symbol 896 MovieClip Frame 5
play();
Symbol 896 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 896 MovieClip Frame 18
play();
Symbol 896 MovieClip Frame 22
stop();
Symbol 896 MovieClip Frame 23
play();
Symbol 896 MovieClip Frame 34
gotoAndPlay ("run");
Symbol 897 MovieClip Frame 1
stop();
gotoAndStop(random(4) + 1);
Symbol 912 MovieClip Frame 1
stop();
_parent._parent.cantCatch = false;
Symbol 912 MovieClip Frame 4
prevFrame();
Symbol 912 MovieClip Frame 5
play();
Symbol 912 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 912 MovieClip Frame 18
play();
_parent._parent.cantCatch = true;
Symbol 912 MovieClip Frame 27
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 912 MovieClip Frame 28
play();
_parent._parent.cantCatch = true;
Symbol 912 MovieClip Frame 37
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 912 MovieClip Frame 38
play();
Symbol 912 MovieClip Frame 42
stop();
Symbol 912 MovieClip Frame 43
play();
_parent._parent.cantCatch = true;
Symbol 912 MovieClip Frame 54
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
_parent._parent.active = true;
Symbol 918 MovieClip Frame 1
stop();
Symbol 918 MovieClip Frame 4
prevFrame();
Symbol 918 MovieClip Frame 5
play();
Symbol 918 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 918 MovieClip Frame 18
play();
Symbol 918 MovieClip Frame 22
stop();
Symbol 918 MovieClip Frame 23
play();
Symbol 918 MovieClip Frame 34
gotoAndPlay ("run");
Symbol 919 MovieClip Frame 1
stop();
gotoAndStop(random(4) + 1);
Symbol 934 MovieClip Frame 1
stop();
_parent._parent.cantCatch = false;
Symbol 934 MovieClip Frame 4
prevFrame();
Symbol 934 MovieClip Frame 5
play();
Symbol 934 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 934 MovieClip Frame 18
play();
_parent._parent.cantCatch = true;
Symbol 934 MovieClip Frame 27
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 934 MovieClip Frame 28
play();
_parent._parent.cantCatch = true;
Symbol 934 MovieClip Frame 37
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 934 MovieClip Frame 38
play();
Symbol 934 MovieClip Frame 42
stop();
Symbol 934 MovieClip Frame 43
play();
_parent._parent.cantCatch = true;
Symbol 934 MovieClip Frame 54
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
_parent._parent.active = true;
Symbol 939 MovieClip Frame 1
stop();
Symbol 939 MovieClip Frame 4
prevFrame();
Symbol 939 MovieClip Frame 5
play();
Symbol 939 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 939 MovieClip Frame 18
play();
Symbol 939 MovieClip Frame 22
stop();
Symbol 939 MovieClip Frame 23
play();
Symbol 939 MovieClip Frame 34
gotoAndPlay ("run");
Symbol 940 MovieClip Frame 1
stop();
gotoAndStop(random(4) + 1);
Symbol 955 MovieClip Frame 1
stop();
_parent._parent.cantCatch = false;
Symbol 955 MovieClip Frame 4
prevFrame();
Symbol 955 MovieClip Frame 5
play();
Symbol 955 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 955 MovieClip Frame 18
play();
_parent._parent.cantCatch = true;
Symbol 955 MovieClip Frame 27
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 955 MovieClip Frame 28
play();
_parent._parent.cantCatch = true;
Symbol 955 MovieClip Frame 37
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
Symbol 955 MovieClip Frame 38
play();
Symbol 955 MovieClip Frame 42
stop();
Symbol 955 MovieClip Frame 43
play();
_parent._parent.cantCatch = true;
Symbol 955 MovieClip Frame 54
_parent._parent.cantCatch = false;
gotoAndPlay ("run");
_parent._parent.active = true;
Symbol 961 MovieClip Frame 1
stop();
Symbol 961 MovieClip Frame 4
prevFrame();
Symbol 961 MovieClip Frame 5
play();
Symbol 961 MovieClip Frame 17
gotoAndPlay ("run");
Symbol 961 MovieClip Frame 18
play();
Symbol 961 MovieClip Frame 22
stop();
Symbol 961 MovieClip Frame 23
play();
Symbol 961 MovieClip Frame 34
gotoAndPlay ("run");
Symbol 962 MovieClip Frame 1
stop();
gotoAndStop(random(4) + 1);
Symbol 964 MovieClip Frame 1
cantCatch = false;
side = "teamMark";
gotoAndStop(_parent.playerTeam);
Symbol 964 MovieClip Frame 2
stop();
Symbol 964 MovieClip Frame 6
stop();
Symbol 964 MovieClip Frame 11
stop();
Symbol 964 MovieClip Frame 16
stop();
Symbol 964 MovieClip Frame 21
stop();
Symbol 964 MovieClip Frame 26
stop();
Symbol 966 MovieClip Frame 1
function passBall(fallover) {
if ((("opp_Mark" + _parent.playerNum) == _parent._parent.ballOwner) and (_parent._parent.ball.state == "held")) {
trace(_parent.playerNum + " Pass Ball");
passTo = "none";
i = 0;
while (i < _parent._parent.team.length) {
dist = _root.distance(eval ("_parent._parent.opp" + _parent._parent.team[i]), _parent);
if ((dist < maxThrow) and eval ("_parent._parent.opp" + _parent._parent.team[i]).active) {
trace(eval ("_parent._parent.opp" + _parent._parent.team[i])._y);
trace(_parent._y);
if (((_parent._parent.teamDirection == 1) and (eval ("_parent._parent.opp" + _parent._parent.team[i])._y < _parent._y)) or ((_parent._parent.teamDirection == -1) and (eval ("_parent._parent.opp" + _parent._parent.team[i])._y > _parent._y))) {
if (passTo == "none") {
passTo = "opp" + _parent._parent.team[i];
bestDist = dist;
} else if (dist > bestDist) {
passTo = "opp" + _parent._parent.team[i];
bestDist = dist;
}
}
}
i++;
}
_parent._parent.ball.dir = _root.angle(_parent, eval ("_parent._parent." + passTo));
_parent._parent.ball.state = "thrown";
_parent._parent.ball.pill.gotoAndStop("normal");
if (eval ("_parent._parent." + passTo)._x <= _parent._x) {
trace("opp pass left to " + passTo);
if (fallover == false) {
if (yspeed <= 0) {
_parent.team.torso.gotoAndPlay("throwLeft");
} else {
_parent.team.torso.gotoAndPlay("throwRight");
}
}
_parent._parent.lastPassRightOpp = false;
} else {
trace("opp pass right to " + passTo);
if (fallover == false) {
if (yspeed <= 0) {
_parent.team.torso.gotoAndPlay("throwRight");
} else {
_parent.team.torso.gotoAndPlay("throwLeft");
}
}
_parent._parent.lastPassRightOpp = true;
}
if (fallover) {
_parent.team.head.gotoAndPlay("tackled");
_parent.team.torso.gotoAndPlay("tackled");
_parent.team.legs.gotoAndPlay("tackled");
_parent.active = false;
}
_parent.cantCatch = true;
_parent._parent.ballOwner = "noBody";
} else {
trace("not got the ball");
}
}
function falldown() {
var _local1 = _parent;
_local1.team.head.gotoAndPlay("tackled");
_local1.team.torso.gotoAndPlay("tackled");
_local1.team.legs.gotoAndPlay("tackled");
_local1.active = false;
_local1.cantCatch = true;
}
nextFrame();
this._visible = false;
_parent.playerNum = _parent._name.slice(3);
xspeed = 0;
yspeed = 0;
_parent.active = true;
if (_parent.playerNum < 9) {
xtopspeed = _root.oppForXtopspeed;
xaccel = 0.3;
ytopspeed = _root.oppForYtopspeed;
yaccel = 0.3;
} else {
xtopspeed = _root.oppBackXtopspeed;
xaccel = 0.15;
ytopspeed = _root.oppBackYtopspeed;
yaccel = 0.15;
}
maxThrow = 200;
catchRange = 30;
goForBall = 100;
sprint = _root.oppSprint;
ballDroppedSprint = 6;
tackle = 30;
diveSpeed = 16;
dive = 0;
reach = _root.oppReach;
running = false;
Symbol 966 MovieClip Frame 2
play();
if (("opp_Mark" + _parent.playerNum) == _parent._parent.ballOwner) {
ytopspeed = 4;
} else {
ytopspeed = 7;
}
closeToBall = _root.distance(_parent, _parent._parent.ball);
if (dive) {
xspeed = Math.sin(_root.angle2radian(dir)) * dive;
yspeed = (-1 * Math.cos(_root.angle2radian(dir))) * dive;
if (closeToBall < reach) {
if (_parent._parent.roundActive) {
trace("tackled by Opp");
_parent._parent[_parent._parent.controlledPlayer].team.head.gotoAndPlay("tackled");
_parent._parent[_parent._parent.controlledPlayer].team.torso.gotoAndPlay("tackled");
_parent._parent[_parent._parent.controlledPlayer].team.legs.gotoAndPlay("tackled");
_parent._parent.ballOwner = "opp_Mark" + _parent.playerNum;
_parent._parent.ball.state = "held";
_parent._parent.possesion = "opp";
if (_root.gameMode == "fullGame") {
_parent._parent[_parent._parent.controlledPlayer].active = false;
if (_parent._parent.ball._y > _parent._parent.bottomTry._y) {
trace("tackle bottom box");
_parent._parent.rules.calcBot5mScrum();
_parent._parent._parent._parent.messages.gotoAndPlay("scrum5mGood");
_parent._parent.roundActive = false;
}
} else {
_parent._parent._parent._parent.messages.gotoAndPlay("tackled");
_parent._parent.roundActive = false;
_parent._parent[_parent._parent.controlledPlayer].active = false;
}
}
xspeed = 0;
yspeed = 0;
dive = 0;
}
dive = dive - 2;
if (dive <= 0) {
dive = 0;
_parent.team.head.gotoAndPlay("run");
_parent.team.torso.gotoAndPlay("stand");
_parent.team.legs.gotoAndPlay("stand");
}
} else if (((((closeToBall < goForBall) and (closeToBall > tackle)) and _parent.active) and (_parent._parent.possesion != "opp")) and _parent._parent.roundActive) {
dir = _root.angle(_parent, _parent._parent.ball);
xspeed = Math.sin(_root.angle2radian(dir)) * sprint;
yspeed = (-1 * Math.cos(_root.angle2radian(dir))) * sprint;
} else if (((((closeToBall <= tackle) and _parent.active) and (_parent._parent.ball.state == "held")) and (_parent._parent.possesion != "opp")) and _parent._parent.roundActive) {
_parent.team.head.gotoAndStop("dive");
_parent.team.torso.gotoAndStop("dive");
_parent.team.legs.gotoAndStop("dive");
dive = diveSpeed;
} else if (_parent._parent.ball.state == "dropped") {
dir = _root.angle(_parent, _parent._parent.ball);
xspeed = Math.sin(_root.angle2radian(dir)) * ballDroppedSprint;
yspeed = (-1 * Math.cos(_root.angle2radian(dir))) * ballDroppedSprint;
if ((closeToBall < reach) and _parent._parent.roundActive) {
trace("Opp Grab Ball");
if (_root.gameMode == "try") {
_parent._parent._parent._parent.messages.gotoAndPlay("lostPossession");
_parent._parent.roundActive = false;
_parent._parent.ballOwner = "opp_Mark" + _parent.playerNum;
_parent._parent.ball.state = "held";
_parent._parent.possesion = "opp";
} else if (_root.gameMode == "advKicking") {
} else {
_parent._parent.ballOwner = "opp_Mark" + _parent.playerNum;
_parent._parent.ball.state = "held";
_parent._parent.possesion = "opp";
}
}
} else if (((((closeToBall <= catchRange) and _parent.active) and (_parent._parent.ball.state == "thrown")) and (_parent.cantCatch == false)) and (_parent._parent.possesion == "opp")) {
trace("caught by opp" + _parent.playerNum);
_parent._parent.ballOwner = "opp_Mark" + _parent.playerNum;
_parent._parent.ball.state = "held";
_parent._parent.possesion = "opp";
_root.sfx.gotoAndPlay("ballQuiet");
} else {
if (_parent._parent["opp_Mark" + _parent.playerNum]._x > (_parent._x + (xtopspeed / 1.9))) {
if (xspeed < xtopspeed) {
xspeed = xspeed + xaccel;
} else {
xspeed = xtopspeed;
}
} else if (_parent._parent["opp_Mark" + _parent.playerNum]._x < (_parent._x - (xtopspeed / 1.9))) {
if (xspeed > (-xtopspeed)) {
xspeed = xspeed - xaccel;
} else {
xspeed = -xtopspeed;
}
} else {
_parent._x = _parent._parent["opp_Mark" + _parent.playerNum]._x;
xspeed = 0;
}
if (_parent._parent["opp_Mark" + _parent.playerNum]._y > (_parent._y + (ytopspeed / 1.5))) {
if (yspeed < ytopspeed) {
yspeed = yspeed + yaccel;
} else {
yspeed = ytopspeed;
}
} else if (_parent._parent["opp_Mark" + _parent.playerNum]._y < (_parent._y - (ytopspeed / 1.5))) {
if (yspeed > (-ytopspeed)) {
yspeed = yspeed - yaccel;
} else {
yspeed = -ytopspeed;
}
} else {
_parent._y = _parent._parent["opp_Mark" + _parent.playerNum]._y;
yspeed = 0;
}
}
if (_parent.active and (_parent._parent.paused != true)) {
if (_parent._parent.roundActive or (_root.gameMode == "try")) {
_parent._x = _parent._x + xspeed;
_parent._y = _parent._y + yspeed;
}
_parent._rotation = _root.runAngle(xspeed, yspeed);
if ((_root.magnitude(xspeed) + _root.magnitude(yspeed)) == 0) {
_parent.team.head.gotoAndPlay("run");
_parent.team.legs.gotoAndPlay("stand");
_parent.team.torso.gotoAndPlay("stand");
running = false;
} else if (running == false) {
_parent.team.head.gotoAndPlay("run");
_parent.team.legs.gotoAndPlay("run");
_parent.team.torso.gotoAndPlay("run");
running = true;
}
}
Symbol 966 MovieClip Frame 3
prevFrame();
Symbol 968 MovieClip Frame 1
cantCatch = false;
side = "opp_Mark";
gotoAndStop(_parent.oppTeam);
Symbol 968 MovieClip Frame 2
stop();
Symbol 968 MovieClip Frame 6
stop();
Symbol 968 MovieClip Frame 11
stop();
Symbol 968 MovieClip Frame 16
stop();
Symbol 968 MovieClip Frame 21
stop();
Symbol 968 MovieClip Frame 26
stop();
Symbol 970 MovieClip Frame 1
function zoomIn() {
realScrollx = 0;
realScrolly = 0;
realZoom = 0;
}
play();
this._visible = false;
dampening = 4;
zoomIn();
if (_root.startHalf) {
if (_root.firstHalf) {
trace("First Half");
_root.startHalf = false;
dampening = 36;
realZoom = 15;
} else {
trace("Second Half");
_root.startHalf = false;
dampening = 20;
realZoom = 15;
}
}
Symbol 970 MovieClip Frame 2
play();
if (_parent.specialCam == "zoomOut") {
zoom = 30;
offsetx = 0;
offsety = 0;
dampening = 12;
} else if (_parent.possesion == "player") {
if (_parent.paused) {
zoom = 60;
offsetx = 0;
offsety = -180 * _parent.teamDirection;
dampening = 4;
} else if (_parent.specialCam == "goal") {
zoom = 130;
offsety = -400;
if (_parent.goalAngle == 1) {
offsetx = 0;
} else if (_parent.goalAngle == 2) {
offsetx = 60;
} else if (_parent.goalAngle == 3) {
offsetx = -100;
}
dampening = 4;
} else if (_parent.specialCam == "bullseye") {
zoom = 150;
offsetx = -230;
offsety = -270;
dampening = 4;
} else {
zoom = 100;
offsetx = 0;
offsety = 0;
}
} else {
zoomout = _root.distance(_parent.currentPlayer, _parent.ball) / 5;
if (zoomout > 130) {
zoomout = 130;
}
zoom = 160 - zoomout;
offsetx = (_parent.currentPlayer._x - _parent.ball._x) / 2;
offsety = (_parent.currentPlayer._y - _parent.ball._y) / 2;
}
if (_parent.paused) {
scrollx = 0;
} else {
scrollx = (((_parent.pitchWidth / 2) - _parent.ball._x) - offsetx) * (zoom / 100);
}
scrolly = (((_parent.pitchHeight / 2) - _parent.ball._y) - offsety) * (zoom / 100);
xlimit = (_parent.pitchWidth * 0.4) * (zoom / 100);
if (scrollx > xlimit) {
scrollx = xlimit;
} else if (scrollx < (-xlimit)) {
scrollx = -xlimit;
}
ylimit = (_parent.pitchHeight * 0.4) * (zoom / 100);
if (scrolly > ylimit) {
scrolly = ylimit;
} else if (scrolly < (-ylimit)) {
scrolly = -ylimit;
}
if (_parent.possesion == "none") {
dampening = 2;
} else if (dampening < 4) {
dampening = 4;
}
realScrollx = realScrollx + ((scrollx - realScrollx) / dampening);
realScrolly = realScrolly + ((scrolly - realScrolly) / dampening);
realZoom = realZoom + ((zoom - realZoom) / dampening);
_parent._parent._x = realScrollx + _parent.origx;
_parent._parent._y = realScrolly + _parent.origy;
_parent._parent._xscale = realZoom;
_parent._parent._yscale = realZoom;
GUIscale = 100 / (realZoom / 100);
_parent.x._xscale = GUIscale;
_parent.x._yscale = GUIscale;
_parent.z._xscale = GUIscale;
_parent.z._yscale = GUIscale;
Symbol 970 MovieClip Frame 3
prevFrame();
Symbol 972 MovieClip Frame 1
play();
this._visible = false;
_parent.1.active = false;
_parent.2.active = false;
_parent.3.active = false;
_parent.4.active = false;
_parent.5.active = false;
_parent.6.active = false;
_parent.7.active = false;
_parent.8.active = false;
if (_parent.freezeBacks) {
_parent.10.active = false;
_parent.11.active = false;
_parent.12.active = false;
_parent.13.active = false;
_parent.14.active = false;
_parent.15.active = false;
trace("freeze backs");
}
_parent.opp1.active = false;
_parent.opp2.active = false;
_parent.opp3.active = false;
_parent.opp4.active = false;
_parent.opp5.active = false;
_parent.opp6.active = false;
_parent.opp7.active = false;
_parent.opp8.active = false;
_parent.opp9.active = false;
_parent.opp10.active = false;
_parent.opp11.active = false;
_parent.opp12.active = false;
_parent.opp13.active = false;
_parent.opp14.active = false;
_parent.opp15.active = false;
if (_parent.teamDirection == 1) {
_parent.opp1._rotation = 180;
if (opp2ThrowIn) {
trace("opp 2 throw in");
} else {
_parent.opp2._rotation = 180;
}
_parent.opp3._rotation = 180;
_parent.opp4._rotation = 180;
_parent.opp5._rotation = 180;
_parent.opp6._rotation = 180;
_parent.opp7._rotation = 180;
_parent.opp8._rotation = 180;
_parent.opp9._rotation = 180;
_parent.opp10._rotation = 180;
_parent.opp11._rotation = 180;
_parent.opp12._rotation = 180;
_parent.opp13._rotation = 180;
_parent.opp14._rotation = 180;
_parent.opp15._rotation = 180;
}
Symbol 972 MovieClip Frame 8
play();
Symbol 972 MovieClip Frame 9
if (Key.isDown(32) or (_root.roundNo > 1)) {
_root.introText.gotoAndStop("hide");
_quality = "medium";
play();
} else {
prevFrame();
}
Symbol 972 MovieClip Frame 15
trace("Go");
_parent.roundActive = true;
if ((_root.gameMode == "try") or (_root.gameMode == "advKicking")) {
_parent._parent._parent.timer.gotoAndPlay("countUp");
trace("count up top down game");
} else {
_parent._parent._parent.timer.gotoAndPlay("countDown");
}
if (_root.gameMode == "advKicking") {
stop();
} else {
_parent.opp9.active = true;
_parent.opp10.active = true;
_parent.opp11.active = true;
_parent.opp12.active = true;
_parent.opp13.active = true;
_parent.opp14.active = true;
_parent.opp15.active = true;
_parent.10.active = true;
_parent.11.active = true;
_parent.12.active = true;
_parent.13.active = true;
_parent.14.active = true;
_parent.15.active = true;
}
Symbol 972 MovieClip Frame 19
if (_root.gameMode == "advKicking") {
trace("no player release in adv kicking");
prevFrame();
}
Symbol 972 MovieClip Frame 46
_parent.6.active = true;
_parent.7.active = true;
_parent.8.active = true;
_parent.opp6.active = true;
_parent.opp7.active = true;
_parent.opp8.active = true;
Symbol 972 MovieClip Frame 66
_parent.4.active = true;
_parent.5.active = true;
_parent.opp4.active = true;
_parent.opp5.active = true;
Symbol 972 MovieClip Frame 86
_parent.1.active = true;
_parent.2.active = true;
_parent.3.active = true;
_parent.opp1.active = true;
_parent.opp2.active = true;
_parent.opp3.active = true;
Symbol 972 MovieClip Frame 91
stop();
Symbol 972 MovieClip Frame 92
prevFrame();
Symbol 975 MovieClip Frame 1
_visible = false;
_alpha = 50;
Symbol 977 MovieClip Frame 1
nextFrame();
this._visible = false;
backs = new Array("9", "10", "11", "12", "13", "14", "15");
bunching = _parent.pitchWidth / 8;
scrumBunch = 20;
forwardsGap = _parent.pitchWidth / 4.5;
Symbol 977 MovieClip Frame 2
play();
i = 0;
while (i < backs.length) {
eval ("_parent.opp_Mark" + backs[i])._x = eval ("_parent." + backs[i])._x;
if (backs[i] != _parent.controlledPlayer) {
xdiff = _parent.ball._x - _parent[backs[i]]._x;
xdiff = Math.sqrt(xdiff * xdiff);
xdiff = xdiff * 0.1;
eval ("_parent.opp_Mark" + backs[i])._y = eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (xdiff * _parent.teamDirection);
}
i++;
}
if (_parent.controlledPlayer != 9) {
_parent.opp_Mark9._y = eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - ((bunching / 3) * _parent.teamDirection);
}
if (_parent.controlledPlayer != 15) {
_parent.opp_Mark15._y = eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - ((bunching / 2) * _parent.teamDirection);
}
if (_parent.controlledPlayer != 1) {
_parent.opp_Mark1._x = _parent.ball._x + (scrumBunch * 1);
_parent.opp_Mark1._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 0);
} else {
_parent.opp_Mark1._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
if (_parent.controlledPlayer != 2) {
_parent.opp_Mark2._x = _parent.ball._x + (scrumBunch * 0);
_parent.opp_Mark2._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 0);
} else {
_parent.opp_Mark2._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
if (_parent.controlledPlayer != 3) {
_parent.opp_Mark3._x = _parent.ball._x + (scrumBunch * -1);
_parent.opp_Mark3._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 0);
} else {
_parent.opp_Mark3._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
if (_parent.controlledPlayer != 4) {
_parent.opp_Mark4._x = _parent.ball._x + (scrumBunch * 0.5);
_parent.opp_Mark4._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 1);
} else {
_parent.opp_Mark4._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
if (_parent.controlledPlayer != 5) {
_parent.opp_Mark5._x = _parent.ball._x + (scrumBunch * -0.5);
_parent.opp_Mark5._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 1);
} else {
_parent.opp_Mark5._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
if (_parent.controlledPlayer != 6) {
_parent.opp_Mark6._x = _parent.ball._x + (scrumBunch * -1);
_parent.opp_Mark6._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 2);
} else {
_parent.opp_Mark6._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
if (_parent.controlledPlayer != 7) {
_parent.opp_Mark7._x = _parent.ball._x + (scrumBunch * 1);
_parent.opp_Mark7._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 2);
} else {
_parent.opp_Mark7._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
if (_parent.controlledPlayer != 8) {
_parent.opp_Mark8._x = _parent.ball._x + (scrumBunch * 0);
_parent.opp_Mark8._y = (eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y - (forwardsGap * _parent.teamDirection)) + (scrumBunch * 2);
} else {
_parent.opp_Mark8._x = eval ("_parent.teamMark" + _parent.controlledPlayer)._x;
}
eval ("_parent.opp_Mark" + _parent.controlledPlayer)._y = _parent.ball._y;
Symbol 977 MovieClip Frame 3
if (_parent.possesion == "opp") {
nextFrame();
} else {
prevFrame();
}
Symbol 977 MovieClip Frame 4
play();
if (skipArrayCent == false) {
arrayCenter = null;
i = 0;
while (i < backfive.length) {
if (backfive[i] == _parent.ballOwner) {
arrayCenter = i;
}
i++;
}
if (arrayCenter == null) {
i = 0;
do {
if (_parent[backfive[i]]._x > _parent.ball._x) {
arrayCenter = i - 0.5;
}
i++;
} while ((arrayCenter == null) and (i < backfive.length));
if (arrayCenter == null) {
arrayCenter = backfive.length - 0.5;
}
}
} else {
skipArrayCent = false;
}
if (arrayCenter > 0) {
leftSpacing = _parent.ball._x / (_root.roundUp(arrayCenter) + 0.5);
} else {
leftSpacing = _parent.ball._x / 1;
}
leftX = leftSpacing / 2;
i = 0;
while (i < arrayCenter) {
_parent[backfive[i]]._x = 0 + leftX;
leftX = leftX + leftSpacing;
i++;
}
if (arrayCenter < 4) {
rightSpacing = (_parent.pitchWidth - _parent.ball._x) / ((4 - Math.floor(arrayCenter)) + 0.5);
} else {
rightSpacing = (_parent.pitchWidth - _parent.ball._x) / 1;
}
rightX = rightSpacing / 2;
i = 4;
while (i > arrayCenter) {
_parent[backfive[i]]._x = _parent.pitchWidth - rightX;
rightX = rightX + rightSpacing;
i--;
}
i = 0;
while (i < backfive.length) {
if (backfive[i] != _parent.ballOwner) {
xdiff = _parent.ball._x - _parent[backfive[i]]._x;
xdiff = Math.sqrt(xdiff * xdiff);
xdiff = xdiff * 0.3;
_parent[backfive[i]]._y = _parent.ball._y + (xdiff * (-_parent.teamDirection));
}
i++;
}
if ((leftSpacing < bunching) and (arrayCenter > 0)) {
trace("left bunching opp");
swapPlayer = backfive[Math.floor(arrayCenter - 0.5)];
if (arrayCenter >= 4) {
newPos = 4;
} else {
newPos = 3;
}
backfive.splice(Math.floor(arrayCenter - 0.5), 1);
backfive.splice(newPos, 0, swapPlayer);
arrayCenter = arrayCenter - 1;
skipArrayCent = true;
}
if ((rightSpacing < bunching) and (arrayCenter < 4)) {
trace("right bunching opp");
swapPlayer = backfive[Math.floor(arrayCenter + 1)];
if (arrayCenter <= 0) {
newPos = 0;
} else {
newPos = 1;
}
backfive.splice(Math.floor(arrayCenter + 1), 1);
backfive.splice(newPos, 0, swapPlayer);
arrayCenter = arrayCenter + 1;
skipArrayCent = true;
}
if (_parent.ballOwner != "opp_Mark9") {
if (_parent.lastPassRightOpp) {
xdiff = leftSpacing / 2;
_parent.teamMark9._x = _parent.ball._x - xdiff;
} else {
xdiff = rightSpacing / 2;
_parent.opp_Mark9._x = _parent.ball._x + xdiff;
}
_parent.opp_Mark9._y = _parent.ball._y + (bunching * (-_parent.teamDirection));
}
if (_parent.ballOwner != "opp_Mark15") {
if (_parent.lastPassRightOpp) {
xdiff = rightSpacing / 2;
_parent.opp_Mark15._x = _parent.ball._x + xdiff;
} else {
xdiff = leftSpacing / 2;
_parent.opp_Mark15._x = _parent.ball._x - xdiff;
}
_parent.opp_Mark15._y = _parent.ball._y + ((bunching * 2) * (-_parent.teamDirection));
}
if (_parent.ballOwner != "opp_Mark1") {
_parent.opp_Mark1._x = _parent.ball._x + (scrumBunch * -1);
_parent.opp_Mark1._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 0);
}
if (_parent.ballOwner != "opp_Mark2") {
_parent.opp_Mark2._x = _parent.ball._x + (scrumBunch * 0);
_parent.opp_Mark2._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 0);
}
if (_parent.ballOwner != "opp_Mark3") {
_parent.opp_Mark3._x = _parent.ball._x + (scrumBunch * 1);
_parent.opp_Mark3._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 0);
}
if (_parent.ballOwner != "opp_Mark4") {
_parent.opp_Mark4._x = _parent.ball._x + (scrumBunch * -0.5);
_parent.opp_Mark4._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 1);
}
if (_parent.ballOwner != "opp_Mark5") {
_parent.opp_Mark5._x = _parent.ball._x + (scrumBunch * 0.5);
_parent.opp_Mark5._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 1);
}
if (_parent.ballOwner != "opp_Mark6") {
_parent.opp_Mark6._x = _parent.ball._x + (scrumBunch * -1);
_parent.opp_Mark6._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 2);
}
if (_parent.ballOwner != "opp_Mark7") {
_parent.opp_Mark7._x = _parent.ball._x + (scrumBunch * 1);
_parent.opp_Mark7._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 2);
}
if (_parent.ballOwner != "opp_Mark8") {
_parent.opp_Mark8._x = _parent.ball._x + (scrumBunch * 0);
_parent.opp_Mark8._y = (_parent.ball._y + (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 2);
}
if (attack == undefined) {
if (random(2) == 1) {
trace("Attack Right");
attack = "right";
} else {
trace("Attack Left");
attack = "left";
}
}
if ((attack == "right") and (_parent.ball._x > (_parent.pitchWidth - (_parent.pitchWidth / 4)))) {
trace("attack left");
attack = "left";
} else if ((attack == "left") and (_parent.ball._x < (_parent.pitchWidth / 4))) {
trace("attack right");
attack = "right";
}
if (attack == "right") {
_parent[_parent.ballOwner]._x = _parent.pitchWidth - 20;
} else if (attack == "left") {
_parent[_parent.ballOwner]._x = 20;
}
if (_parent.teamDirection == 1) {
_parent[_parent.ballOwner]._y = _parent.bottomTry._y + 20;
} else if (_parent.teamDirection == -1) {
_parent[_parent.ballOwner]._y = _parent.topTry._y - 20;
}
Symbol 977 MovieClip Frame 5
if (_parent.possesion == "opp") {
prevFrame();
} else {
gotoAndPlay ("defend");
}
Symbol 980 MovieClip Frame 1
_visible = false;
_alpha = 50;
Symbol 982 MovieClip Frame 1
nextFrame();
this._visible = false;
backs = new Array("10", "11", "12", "13", "14");
bunching = _parent.pitchWidth / 8;
scrumBunch = 20;
trail = 30;
forwardsGap = _parent.pitchWidth / 4.5;
Symbol 982 MovieClip Frame 2
play();
if (skipArrayCent == false) {
arrayCenter = null;
i = 0;
while (i < backfive.length) {
if (backfive[i] == _parent.ballOwner) {
arrayCenter = i;
}
i++;
}
if (arrayCenter == null) {
i = 0;
do {
if (_parent[backfive[i]]._x > _parent.ball._x) {
arrayCenter = i - 0.5;
}
i++;
} while ((arrayCenter == null) and (i < backfive.length));
if (arrayCenter == null) {
arrayCenter = backfive.length - 0.5;
}
}
} else {
skipArrayCent = false;
}
if (arrayCenter > 0) {
leftSpacing = _parent.ball._x / (_root.roundUp(arrayCenter) + 0.5);
} else {
leftSpacing = _parent.ball._x / 1;
}
leftX = leftSpacing / 2;
i = 0;
while (i < arrayCenter) {
_parent[backfive[i]]._x = 0 + leftX;
leftX = leftX + leftSpacing;
i++;
}
if (arrayCenter < 4) {
rightSpacing = (_parent.pitchWidth - _parent.ball._x) / ((4 - Math.floor(arrayCenter)) + 0.5);
} else {
rightSpacing = (_parent.pitchWidth - _parent.ball._x) / 1;
}
rightX = rightSpacing / 2;
i = 4;
while (i > arrayCenter) {
_parent[backfive[i]]._x = _parent.pitchWidth - rightX;
rightX = rightX + rightSpacing;
i--;
}
i = 0;
while (i < backfive.length) {
if (backfive[i] != _parent.ballOwner) {
xdiff = _parent.ball._x - _parent[backfive[i]]._x;
xdiff = Math.sqrt(xdiff * xdiff);
xdiff = xdiff * 0.3;
_parent[backfive[i]]._y = _parent.ball._y + (xdiff * _parent.teamDirection);
}
i++;
}
if ((leftSpacing < bunching) and (arrayCenter > 0)) {
trace("left bunching team");
swapPlayer = backfive[Math.floor(arrayCenter - 0.5)];
if (arrayCenter >= 4) {
newPos = 4;
} else {
newPos = 3;
}
backfive.splice(Math.floor(arrayCenter - 0.5), 1);
backfive.splice(newPos, 0, swapPlayer);
arrayCenter = arrayCenter - 1;
skipArrayCent = true;
}
if ((rightSpacing < bunching) and (arrayCenter < 4)) {
trace("right bunching team");
swapPlayer = backfive[Math.floor(arrayCenter + 1)];
if (arrayCenter <= 0) {
newPos = 0;
} else {
newPos = 1;
}
backfive.splice(Math.floor(arrayCenter + 1), 1);
backfive.splice(newPos, 0, swapPlayer);
arrayCenter = arrayCenter + 1;
skipArrayCent = true;
}
if (_parent.ballOwner != "teamMark9") {
if (_parent.lastPassRight) {
xdiff = leftSpacing / 2;
_parent.teamMark9._x = _parent.ball._x - xdiff;
} else {
xdiff = rightSpacing / 2;
_parent.teamMark9._x = _parent.ball._x + xdiff;
}
_parent.teamMark9._y = _parent.ball._y + (bunching * _parent.teamDirection);
}
if (_parent.ballOwner != "teamMark15") {
if (_parent.lastPassRight) {
xdiff = rightSpacing / 2;
_parent.teamMark15._x = _parent.ball._x + xdiff;
} else {
xdiff = leftSpacing / 2;
_parent.teamMark15._x = _parent.ball._x - xdiff;
}
_parent.teamMark15._y = _parent.ball._y + ((bunching * 2) * _parent.teamDirection);
}
if (_parent.ballOwner != "teamMark1") {
_parent.teamMark1._x = _parent.ball._x + (scrumBunch * -1);
_parent.teamMark1._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 0);
}
if (_parent.ballOwner != "teamMark2") {
_parent.teamMark2._x = _parent.ball._x + (scrumBunch * 0);
_parent.teamMark2._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 0);
}
if (_parent.ballOwner != "teamMark3") {
_parent.teamMark3._x = _parent.ball._x + (scrumBunch * 1);
_parent.teamMark3._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 0);
}
if (_parent.ballOwner != "teamMark4") {
_parent.teamMark4._x = _parent.ball._x + (scrumBunch * -0.5);
_parent.teamMark4._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 1);
}
if (_parent.ballOwner != "teamMark5") {
_parent.teamMark5._x = _parent.ball._x + (scrumBunch * 0.5);
_parent.teamMark5._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 1);
}
if (_parent.ballOwner != "teamMark6") {
_parent.teamMark6._x = _parent.ball._x + (scrumBunch * -1);
_parent.teamMark6._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 2);
}
if (_parent.ballOwner != "teamMark7") {
_parent.teamMark7._x = _parent.ball._x + (scrumBunch * 1);
_parent.teamMark7._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 2);
}
if (_parent.ballOwner != "teamMark8") {
_parent.teamMark8._x = _parent.ball._x + (scrumBunch * 0);
_parent.teamMark8._y = (_parent.ball._y + (forwardsGap * _parent.teamDirection)) + (scrumBunch * 2);
}
Symbol 982 MovieClip Frame 3
if (_parent.possesion == "player") {
prevFrame();
} else {
nextFrame();
}
Symbol 982 MovieClip Frame 4
play();
if ((eval ("_parent.teamMark" + _parent.controlledPlayer)._y * _parent.teamDirection) > (_parent.ball._y * _parent.teamDirection)) {
Yposition = eval ("_parent.teamMark" + _parent.controlledPlayer)._y;
_parent.teamMark1._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 0);
_parent.teamMark2._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 0);
_parent.teamMark3._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 0);
_parent.teamMark4._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 1);
_parent.teamMark5._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 1);
_parent.teamMark6._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 2);
_parent.teamMark7._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 2);
_parent.teamMark8._y = (Yposition - (forwardsGap * (-_parent.teamDirection))) + (scrumBunch * 2);
_parent.teamMark9._y = eval ("_parent.teamMark" + _parent.controlledPlayer)._y - ((bunching / 3) * (-_parent.teamDirection));
_parent.teamMark15._y = eval ("_parent.teamMark" + _parent.controlledPlayer)._y - ((bunching / 2) * (-_parent.teamDirection));
} else {
Yposition = _parent.ball._y - (trail * _parent.teamDirection);
_parent.teamMark1._y = Yposition;
_parent.teamMark2._y = Yposition;
_parent.teamMark3._y = Yposition;
_parent.teamMark4._y = Yposition;
_parent.teamMark5._y = Yposition;
_parent.teamMark6._y = Yposition;
_parent.teamMark7._y = Yposition;
_parent.teamMark8._y = Yposition;
_parent.teamMark9._y = Yposition;
_parent.teamMark15._y = Yposition;
}
_parent.teamMark1._x = _parent.ball._x + (scrumBunch * 1);
_parent.teamMark2._x = _parent.ball._x + (scrumBunch * 0);
_parent.teamMark3._x = _parent.ball._x + (scrumBunch * -1);
_parent.teamMark4._x = _parent.ball._x + (scrumBunch * 0.5);
_parent.teamMark5._x = _parent.ball._x + (scrumBunch * -0.5);
_parent.teamMark6._x = _parent.ball._x + (scrumBunch * -1);
_parent.teamMark7._x = _parent.ball._x + (scrumBunch * 1);
_parent.teamMark8._x = _parent.ball._x + (scrumBunch * 0);
_parent.teamMark9._x = _parent.opp9._x;
_parent.teamMark15._x = _parent.opp15._x;
i = 0;
while (i < backs.length) {
eval ("_parent.teamMark" + backs[i])._x = eval ("_parent.opp" + backs[i])._x;
xdiff = _parent[_parent.controlledPlayer]._x - _parent[backs[i]]._x;
xdiff = Math.sqrt(xdiff * xdiff);
xdiff = xdiff * 0.1;
eval ("_parent.teamMark" + backs[i])._y = Yposition - (xdiff * (-_parent.teamDirection));
i++;
}
Symbol 982 MovieClip Frame 5
if (_parent.possesion == "player") {
gotoAndPlay ("attack");
} else {
prevFrame();
}
Symbol 984 MovieClip Frame 1
play();
this._visible = false;
Symbol 984 MovieClip Frame 2
play();
Symbol 984 MovieClip Frame 3
if (_parent.roundActive) {
play();
} else {
prevFrame();
}
Symbol 984 MovieClip Frame 4
stop();
dir = _root.angle(_parent.ball, _parent.oppGoal);
trace("goal angle: " + dir);
trace("accuracy: " + _root.oppConvertAcc);
dir = dir + (random(_root.oppConvertAcc) - (_root.oppConvertAcc / 2));
_parent.arrow.dropKick(dir, 120);
Symbol 986 MovieClip Frame 31
stop();
Symbol 989 MovieClip Frame 1
play();
if ((_parent.roundActive and (_root.distance(this, _parent.ball) < ((this._width + 9) / 2))) and _parent.ball.stopped) {
trace("B U L L S E Y E !");
_parent.roundActive = false;
_parent._parent._parent.messages.gotoAndPlay("bullseye");
}
Symbol 989 MovieClip Frame 2
prevFrame();
Symbol 989 MovieClip Frame 3
stop();
Symbol 991 MovieClip Frame 1
play();
this._visible = false;
Symbol 991 MovieClip Frame 2
play();
Symbol 991 MovieClip Frame 3
if (_parent.roundActive) {
play();
} else {
prevFrame();
}
Symbol 991 MovieClip Frame 7
stop();
_parent.arrow.dropKick(-160 + random(40), 40 + random(20));
Symbol 992 MovieClip Frame 1
stop();
pitchWidth = 690;
pitchHeight = 1181;
boundery = 40;
team = new Array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15");
teamDirection = 1;
origx = _parent._x;
origy = _parent._y;
playerTeam = _root.playerTeam;
oppTeam = _root.oppTeam;
Symbol 992 MovieClip Frame 5
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 10
stop();
lastPassRight = true;
lastPassRightOpp = true;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 15
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 20
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 25
stop();
lastPassRight = true;
lastPassRightOpp = true;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 30
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 35
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 40
stop();
lastPassRight = true;
lastPassRightOpp = true;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 45
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 50
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 55
stop();
lastPassRight = true;
lastPassRightOpp = true;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 60
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 65
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 70
stop();
lastPassRight = true;
lastPassRightOpp = true;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 75
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
Symbol 992 MovieClip Frame 80
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
if (_root.gainedPossesion == "player") {
opp2._x = opp2._x + 80;
opp2._y = opp2._y - 40;
2._rotation = 90;
} else if (_root.gainedPossesion == "opp") {
2._x = 2._x + 80;
2._y = 2._y + 40;
opp2._rotation = 90;
roundStart.opp2ThrowIn = true;
}
Symbol 992 MovieClip Frame 85
stop();
lastPassRight = true;
lastPassRightOpp = true;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
if (_root.gainedPossesion == "player") {
opp2._x = opp2._x + 80;
opp2._y = opp2._y - 40;
2._rotation = 90;
} else if (_root.gainedPossesion == "opp") {
2._x = 2._x + 80;
2._y = 2._y + 40;
opp2._rotation = 90;
roundStart.opp2ThrowIn = true;
}
Symbol 992 MovieClip Frame 90
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
if (_root.gainedPossesion == "player") {
opp2._x = opp2._x + 80;
opp2._y = opp2._y - 40;
2._rotation = 90;
} else if (_root.gainedPossesion == "opp") {
2._x = 2._x + 80;
2._y = 2._y + 40;
opp2._rotation = 90;
roundStart.opp2ThrowIn = true;
}
Symbol 992 MovieClip Frame 95
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
if (_root.gainedPossesion == "player") {
opp2._x = opp2._x - 80;
opp2._y = opp2._y - 40;
2._rotation = -90;
} else if (_root.gainedPossesion == "opp") {
2._x = 2._x - 80;
2._y = 2._y + 40;
opp2._rotation = -90;
roundStart.opp2ThrowIn = true;
}
Symbol 992 MovieClip Frame 100
stop();
lastPassRight = true;
lastPassRightOpp = true;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
if (_root.gainedPossesion == "player") {
opp2._x = opp2._x - 80;
opp2._y = opp2._y - 40;
2._rotation = -90;
} else if (_root.gainedPossesion == "opp") {
2._x = 2._x - 80;
2._y = 2._y + 40;
opp2._rotation = -90;
roundStart.opp2ThrowIn = true;
}
Symbol 992 MovieClip Frame 105
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
if (_root.gainedPossesion == "player") {
opp2._x = opp2._x - 80;
opp2._y = opp2._y - 40;
2._rotation = -90;
} else if (_root.gainedPossesion == "opp") {
2._x = 2._x - 80;
2._y = 2._y + 40;
opp2._rotation = -90;
roundStart.opp2ThrowIn = true;
}
Symbol 992 MovieClip Frame 110
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
freezeBacks = true;
startKick = true;
specialCam = "goal";
goalAngle = 1;
Symbol 992 MovieClip Frame 115
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
freezeBacks = true;
startKick = true;
specialCam = "goal";
goalAngle = 2;
Symbol 992 MovieClip Frame 120
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
freezeBacks = true;
startKick = true;
specialCam = "goal";
goalAngle = 3;
Symbol 992 MovieClip Frame 125
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
freezeBacks = true;
oppConv = true;
trace("oppXtry: " + _root.oppXtry);
opp9._x = _root.oppXtry;
Symbol 992 MovieClip Frame 130
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
freezeBacks = true;
startKick = true;
if (_root.gameMode == "advKicking") {
specialCam = "bullseye";
}
Instance of Symbol 989 MovieClip "bullseye" in Symbol 992 MovieClip Frame 130
onClipEvent (load) {
trace("GAME-MODE1 " + _root.gameMode);
if (_root.gameMode == "fullGame") {
trace("GAME-MODE " + _root.gameMode);
this.gotoAndStop("hide");
}
}
Symbol 992 MovieClip Frame 135
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
freezeBacks = true;
Symbol 992 MovieClip Frame 140
stop();
lastPassRight = false;
lastPassRightOpp = false;
teamAI.backfive = new Array("teamMark11", "teamMark10", "teamMark12", "teamMark13", "teamMark14");
oppAI.backfive = new Array("opp_Mark11", "opp_Mark10", "opp_Mark12", "opp_Mark13", "opp_Mark14");
ball.state = "held";
freezeBacks = true;
Symbol 998 MovieClip Frame 15
stop();
Symbol 998 MovieClip Frame 20
stop();
Symbol 1001 MovieClip Frame 1
function calculateMedals() {
var _local1 = _root;
medalInfo = SharedObject.getLocal("medals");
trace("Score = " + _local1.score);
if (_local1.score == 3) {
if (((medalInfo.data.tackling != "bronze") && (medalInfo.data.tackling != "silver")) && (medalInfo.data.tackling != "gold")) {
trace("Setting Bronze Medal");
medalInfo.data.tackling = "bronze";
_local1.justWonTackling = true;
} else {
trace("Bronze Already Won");
_local1.justWonTackling = false;
}
_local1.medalPopup.gotoAndPlay("bronze");
} else if (_local1.score == 4) {
if ((medalInfo.data.tackling != "silver") && (medalInfo.data.tackling != "gold")) {
medalInfo.data.tackling = "silver";
_local1.justWonTackling = true;
} else {
_local1.justWonTackling = false;
}
_local1.medalPopup.gotoAndPlay("silver");
} else if (_local1.score == 5) {
if (medalInfo.data.tackling != "gold") {
medalInfo.data.tackling = "gold";
_local1.justWonTackling = true;
} else {
_local1.justWonTackling = false;
}
_local1.medalPopup.gotoAndPlay("gold");
} else {
_local1.medalPopup.gotoAndPlay("none");
}
medalInfo.data.flush();
}
function nextRound(situation) {
var _local1 = _parent;
var _local2 = _root;
var _local3 = situation;
trace("next round");
if (_local3 == "oppTry") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if ((_local3 == "outGood") or (_local3 == "out")) {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("win");
_local2.score++;
}
if (_local3 == "gainedPossession") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("win");
_local2.score++;
}
if (_local3 == "timeUp") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("win");
_local2.score++;
}
if (_local2.roundNo < 5) {
_local2.roundNo++;
_local1.main.main.gotoAndPlay(positionArray[_local2.roundNo - 1]);
_local1.timer.sec = 30;
_local1.timer.micro = 0;
_local1.timer.display();
_local1.main.main.possesion = "opp";
_local1.main.main.ballOwner = "opp_Mark9";
_local1.main.main.controlledPlayer = "9";
} else {
trace("TEST OVER");
calculateMedals();
}
trace("score: " + _local2.score);
}
_root.gameMode = "defend";
positionArray = new Array("leftScrum", "rightScrum", "middleScrum", "leftScrum", "rightScrum");
nextRound("first");
Symbol 1006 MovieClip Frame 15
stop();
Symbol 1006 MovieClip Frame 16
stop();
Symbol 1009 MovieClip Frame 1
function calculateMedals() {
var _local1 = _root;
medalInfo = SharedObject.getLocal("medals");
trace("Score = " + _local1.score);
if (_local1.score == 3) {
if (((medalInfo.data.scrum != "bronze") && (medalInfo.data.scrum != "silver")) && (medalInfo.data.scrum != "gold")) {
trace("Setting Bronze Medal");
medalInfo.data.scrum = "bronze";
_local1.justWonScrum = true;
} else {
trace("Bronze Already Won");
_local1.justWonScrum = false;
}
_local1.medalPopup.gotoAndPlay("bronze");
} else if (_local1.score == 4) {
if ((medalInfo.data.scrum != "silver") && (medalInfo.data.scrum != "gold")) {
medalInfo.data.scrum = "silver";
_local1.justWonScrum = true;
} else {
_local1.justWonScrum = false;
}
_local1.medalPopup.gotoAndPlay("silver");
} else if (_local1.score == 5) {
if (medalInfo.data.scrum != "gold") {
medalInfo.data.scrum = "gold";
_local1.justWonScrum = true;
} else {
_local1.justWonScrum = false;
}
_local1.medalPopup.gotoAndPlay("gold");
} else {
_local1.medalPopup.gotoAndPlay("none");
}
medalInfo.data.flush();
}
function nextRound(situation) {
var _local1 = _parent;
var _local2 = _root;
var _local3 = situation;
trace("next round");
if (_local3 == "scrumLost") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local3 == "scrumWon") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("win");
_local2.score++;
}
if (_local3 == "wheel") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local2.roundNo < 5) {
_local2.roundNo++;
_local1.main.main.gotoAndPlay(positionArray[_local2.roundNo - 1]);
_local1.main.main.pushPower = _local1.main.main.pushPower + 0.2;
_local1.timer.sec = 0;
_local1.timer.micro = 0;
_local1.timer.display();
} else {
trace("TEST OVER");
calculateMedals();
}
trace("score: " + _local2.score);
}
_root.gameMode = "scrum";
positionArray = new Array("leftBot5mScrum", "rightBotScrum", "middleScrum", "leftTopScrum", "rightTop5mScrum");
nextRound("first");
Symbol 1010 MovieClip Frame 1
play();
this._visible = false;
Symbol 1010 MovieClip Frame 8
play();
Symbol 1010 MovieClip Frame 9
if ((Key.isDown(32) or (_root.roundNo > 1)) or (_root.gameMode == "fullGame")) {
_root.introText.gotoAndStop("hide");
trace("no pause");
trace("game mode: " + _root.gameMode);
play();
} else {
prevFrame();
}
Symbol 1010 MovieClip Frame 14
trace("Go");
_parent.roundActive = true;
if (_root.gameMode == "fullGame") {
_parent._parent._parent.timer.gotoAndPlay("countDown");
} else {
_parent._parent._parent.timer.gotoAndPlay("countUp");
trace("count up scrum game");
}
Symbol 1010 MovieClip Frame 23
stop();
Symbol 1015 MovieClip Frame 1
function zoomIn() {
realScrollx = 0;
realScrolly = 0;
realZoom = 0;
}
play();
this._visible = false;
dampening = 4;
zoomIn();
Symbol 1015 MovieClip Frame 2
play();
zoom = 190;
offsetx = 0;
offsety = 0;
scrollx = (((_parent.pitchWidth / 2) - _parent.scrum._x) - offsetx) * (zoom / 100);
scrolly = (((_parent.pitchHeight / 2) - _parent.scrum._y) - offsety) * (zoom / 100);
xlimit = (_parent.pitchWidth * 0.4) * (zoom / 100);
if (scrollx > xlimit) {
scrollx = xlimit;
} else if (scrollx < (-xlimit)) {
scrollx = -xlimit;
}
ylimit = (_parent.pitchHeight * 0.4) * (zoom / 100);
if (scrolly > ylimit) {
scrolly = ylimit;
} else if (scrolly < (-ylimit)) {
scrolly = -ylimit;
}
realScrollx = realScrollx + ((scrollx - realScrollx) / dampening);
realScrolly = realScrolly + ((scrolly - realScrolly) / dampening);
realZoom = realZoom + ((zoom - realZoom) / dampening);
_parent._parent._x = realScrollx + _parent.origx;
_parent._parent._y = realScrolly + _parent.origy;
_parent._parent._xscale = realZoom;
_parent._parent._yscale = realZoom;
Symbol 1015 MovieClip Frame 3
prevFrame();
Symbol 1017 Button
on (keyPress "x") {
if (_parent._parent.roundActive) {
nextFrame();
}
}
Symbol 1018 MovieClip Frame 1
stop();
Symbol 1018 MovieClip Frame 2
play();
_parent.pack.right.oppPower = _parent.pack.right.oppPower - 2;
_root.scrumSfx.playerRight.play();
Symbol 1019 Button
on (keyPress "z") {
if (_parent._parent.roundActive) {
nextFrame();
}
}
Symbol 1020 MovieClip Frame 1
stop();
Symbol 1020 MovieClip Frame 2
play();
_parent.pack.left.oppPower = _parent.pack.left.oppPower - 2;
_root.scrumSfx.playerRight.play();
Symbol 1025 MovieClip Frame 1
gotoAndStop(_root.playerTeam);
Symbol 1025 MovieClip Frame 2
stop();
Symbol 1025 MovieClip Frame 7
stop();
Symbol 1025 MovieClip Frame 12
stop();
Symbol 1025 MovieClip Frame 17
stop();
Symbol 1025 MovieClip Frame 22
stop();
Symbol 1025 MovieClip Frame 27
stop();
Symbol 1027 MovieClip Frame 1
gotoAndStop(_root.oppTeam);
Symbol 1027 MovieClip Frame 2
stop();
Symbol 1027 MovieClip Frame 7
stop();
Symbol 1027 MovieClip Frame 12
stop();
Symbol 1027 MovieClip Frame 17
stop();
Symbol 1027 MovieClip Frame 22
stop();
Symbol 1027 MovieClip Frame 27
stop();
Symbol 1028 MovieClip Frame 1
oppPower = 50;
realPower = 50;
Instance of Symbol 1025 MovieClip in Symbol 1028 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = -1 - _parent.realPower;
}
Symbol 1028 MovieClip Frame 2
play();
if (_parent._parent._parent.roundActive) {
if ((random(_parent._parent._parent.pushRate) == 0) and (count < 2)) {
oppPower = oppPower + _parent._parent._parent.pushPower;
count++;
_root.scrumSfx.opp.play();
} else if (count > 0) {
count--;
} else {
count = 0;
}
if (oppPower < 0) {
oppPower = 0;
} else if (oppPower > 100) {
oppPower = 100;
}
if (oppPower < realPower) {
realPower = realPower - 0.5;
} else if (oppPower > realPower) {
realPower = realPower + 0.5;
}
}
Symbol 1028 MovieClip Frame 3
prevFrame();
Instance of Symbol 489 MovieClip "player" in Symbol 1029 MovieClip Frame 1
onClipEvent (load) {
side = "player";
gotoAndStop(_parent._parent._parent.playerTeam);
}
Instance of Symbol 489 MovieClip "opp" in Symbol 1029 MovieClip Frame 1
onClipEvent (load) {
side = "opp";
gotoAndStop(_parent._parent._parent.oppTeam);
}
Symbol 1030 MovieClip Frame 1
play();
trace("difficulty: " + _parent.pushPower);
Symbol 1030 MovieClip Frame 2
play();
if (_parent.roundActive) {
dir = (pack.right.oppPower - pack.left.oppPower) / _parent.rotateRate;
pack._rotation = pack._rotation + dir;
speed = ((pack.right.oppPower + pack.left.oppPower) - 100) / 80;
this._x = this._x - (Math.sin(_root.angle2radian(dir)) * speed);
this._y = this._y + (Math.cos(_root.angle2radian(dir)) * speed);
if (dir > 1) {
scale = 140 + ((dir - 1) * 50);
} else {
scale = 100;
}
x._xscale = scale;
x._yscale = scale;
if (dir < -1) {
scale = 140 + ((dir + 1) * -50);
} else {
scale = 100;
}
z._xscale = scale;
z._yscale = scale;
if (this._y < (_parent.pill._y - 45)) {
trace("WIN");
_parent._parent._parent.messages.gotoAndPlay("scrumWon");
_parent.roundActive = false;
} else if (this._y > (_parent.pill._y + 45)) {
trace("LOSE");
_parent._parent._parent.messages.gotoAndPlay("scrumLost");
_parent.roundActive = false;
} else if (this._y > (_parent.pill._y + 15)) {
_parent._parent._parent.push.play();
}
if ((pack._rotation > 45) or (pack._rotation < -45)) {
trace("wheel out");
_parent._parent._parent.messages.gotoAndPlay("wheel");
_parent.roundActive = false;
} else if ((pack._rotation > 25) or (pack._rotation < -25)) {
_parent._parent._parent.careful.play();
}
}
Symbol 1030 MovieClip Frame 3
prevFrame();
Symbol 1032 MovieClip Frame 1
stop();
pitchWidth = 690;
pitchHeight = 1181;
teamDirection = 1;
origx = _parent._x;
origy = _parent._y;
playerTeam = _root.playerTeam;
oppTeam = _root.oppTeam;
if (_root.gameMode == "fullGame") {
pushPower = _root.scrumLevel;
} else {
pushPower = 1.7;
}
pushRate = 3;
rotateRate = 5;
roundActive = false;
Symbol 1032 MovieClip Frame 5
stop();
Symbol 1032 MovieClip Frame 10
stop();
Symbol 1032 MovieClip Frame 15
stop();
Symbol 1032 MovieClip Frame 20
stop();
Symbol 1032 MovieClip Frame 25
stop();
Symbol 1032 MovieClip Frame 30
stop();
Symbol 1032 MovieClip Frame 35
stop();
Symbol 1032 MovieClip Frame 40
stop();
Symbol 1032 MovieClip Frame 45
stop();
Symbol 1032 MovieClip Frame 50
stop();
Symbol 1032 MovieClip Frame 55
stop();
Symbol 1032 MovieClip Frame 60
stop();
Symbol 1032 MovieClip Frame 65
stop();
Symbol 1032 MovieClip Frame 70
stop();
Symbol 1032 MovieClip Frame 75
stop();
Symbol 1038 MovieClip Frame 15
stop();
Symbol 1038 MovieClip Frame 16
stop();
Symbol 1041 MovieClip Frame 1
function calculateMedals() {
var _local1 = _root;
medalInfo = SharedObject.getLocal("medals");
trace("Score = " + _local1.score);
if (_local1.score == 3) {
if (((medalInfo.data.tackling != "bronze") && (medalInfo.data.lineout != "silver")) && (medalInfo.data.lineout != "gold")) {
trace("Setting Bronze Medal");
medalInfo.data.lineout = "bronze";
_local1.justWonLineout = true;
} else {
trace("Bronze Already Won");
_local1.justWonLineout = false;
}
_local1.medalPopup.gotoAndPlay("bronze");
} else if (_local1.score == 4) {
if ((medalInfo.data.lineout != "silver") && (medalInfo.data.lineout != "gold")) {
medalInfo.data.lineout = "silver";
_local1.justWonLineout = true;
} else {
_local1.justWonLineout = false;
}
_local1.medalPopup.gotoAndPlay("silver");
} else if (_local1.score == 5) {
if (medalInfo.data.lineout != "gold") {
medalInfo.data.lineout = "gold";
_local1.justWonLineout = true;
} else {
_local1.justWonLineout = false;
}
_local1.medalPopup.gotoAndPlay("gold");
} else {
_local1.medalPopup.gotoAndPlay("none");
}
medalInfo.data.flush();
}
function nextRound(situation) {
var _local1 = _root;
var _local2 = _parent;
trace("next round");
if (situation == "lineoutLost") {
_local2.scoreClip["ball" + _local1.roundNo].gotoAndPlay("lose");
}
if (situation == "lineoutWon") {
_local2.scoreClip["ball" + _local1.roundNo].gotoAndPlay("win");
_local1.score++;
}
if (_local1.roundNo < 5) {
_local1.roundNo++;
_local2.main.gotoAndPlay("angle");
} else {
trace("TEST OVER");
calculateMedals();
}
trace("score: " + _local1.score);
}
_root.gameMode = "lineout";
_root.roundNo++;
Symbol 1042 MovieClip Frame 1
Symbol 1042 MovieClip Frame 3
if (playerSide) {
_root.sfx.gotoAndPlay("lift");
}
Symbol 1042 MovieClip Frame 15
stop();
Symbol 1042 MovieClip Frame 20
Symbol 1042 MovieClip Frame 35
stop();
Symbol 1044 MovieClip Frame 1
if (_root.flipped) {
nextFrame();
} else {
stop();
}
Symbol 1044 MovieClip Frame 2
stop();
Symbol 1053 MovieClip Frame 1
if (_root.flipped) {
nextFrame();
} else {
stop();
}
Symbol 1053 MovieClip Frame 2
stop();
Symbol 1054 MovieClip Frame 1
nextFrame();
Symbol 1054 MovieClip Frame 2
play();
Symbol 1054 MovieClip Frame 4
if (count > -1) {
play();
count--;
} else {
stop();
}
Symbol 1056 MovieClip Frame 1
play();
inc = 20;
powerUp = true;
_parent.power = 0;
Symbol 1056 MovieClip Frame 2
Symbol 1056 MovieClip Frame 12
play();
if (Key.isDown(32)) {
_parent.gotoAndStop("shoot");
}
if (powerUp) {
_parent.power = _parent.power + inc;
} else {
_parent.power = _parent.power - inc;
}
if (_parent.power > 100) {
_parent.power = 100 - inc;
powerUp = false;
} else if (_parent.power < 0) {
_parent.power = 0 + inc;
powerUp = true;
}
_parent.arrow.power._yscale = 100 - _parent.power;
Symbol 1056 MovieClip Frame 13
prevFrame();
Symbol 1058 MovieClip Frame 1
play();
inc = 6;
Symbol 1058 MovieClip Frame 2
play();
if (Key.isDown(38)) {
_parent.angle = _parent.angle - inc;
} else if (Key.isDown(40)) {
_parent.angle = _parent.angle + inc;
}
if (_parent.angle < 30) {
_parent.angle = 30;
} else if (_parent.angle > 90) {
_parent.angle = 90;
}
_parent.arrow._rotation = _parent.angle;
Symbol 1058 MovieClip Frame 3
prevFrame();
Symbol 1061 MovieClip Frame 1
if (_root.flipped) {
nextFrame();
} else {
stop();
}
Symbol 1061 MovieClip Frame 2
stop();
Symbol 1063 MovieClip Frame 1
play();
inc = 20;
powerUp = true;
_parent.power = 0;
Symbol 1063 MovieClip Frame 2
Symbol 1063 MovieClip Frame 12
play();
if (powerUp) {
_parent.power = _parent.power + inc;
} else {
_parent.power = _parent.power - inc;
}
if (_parent.power > 100) {
_parent.power = 100 - inc;
powerUp = false;
} else if (_parent.power < 0) {
_parent.power = 0 + inc;
powerUp = true;
}
_parent.arrow.power._yscale = 100 - _parent.power;
Symbol 1063 MovieClip Frame 13
prevFrame();
Symbol 1065 MovieClip Frame 1
play();
inc = 6;
Symbol 1065 MovieClip Frame 2
play();
if (_parent.oppAngle < (_parent.angle - (inc * 0.6))) {
_parent.angle = _parent.angle - inc;
} else if (_parent.oppAngle > (_parent.angle + (inc * 0.6))) {
_parent.angle = _parent.angle + inc;
}
if (_parent.angle < 30) {
_parent.angle = 30;
} else if (_parent.angle > 90) {
_parent.angle = 90;
}
_parent.arrow._rotation = _parent.angle;
Symbol 1065 MovieClip Frame 3
prevFrame();
Symbol 1067 MovieClip Frame 1
play();
Symbol 1067 MovieClip Frame 6
play();
_parent.oppAngle = random(15) + 55;
trace(_parent.oppAngle);
Symbol 1067 MovieClip Frame 15
count++;
if (count < 3) {
gotoAndPlay ("angleLoop");
}
Symbol 1067 MovieClip Frame 17
play();
_parent.oppPower = random(50) + 40;
trace("power: " + _parent.oppPower);
Symbol 1067 MovieClip Frame 18
play();
if ((_parent.power < (_parent.oppPower + (_parent.powerCtrl.inc * 0.6))) and (_parent.power > (_parent.oppPower - (_parent.powerCtrl.inc * 0.6)))) {
trace(_parent.power);
_parent.gotoAndStop("oppShoot");
}
Symbol 1067 MovieClip Frame 19
prevFrame();
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 10
_root.sfx.gotoAndPlay("ballQuiet");
Symbol 1068 MovieClip Frame 12
stop();
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1069 MovieClip Frame 13
_root.sfx.gotoAndPlay("ballQuiet");
Symbol 1069 MovieClip Frame 22
stop();
Symbol 1070 MovieClip Frame 1
stop();
Symbol 1070 MovieClip Frame 5
play();
Symbol 1070 MovieClip Frame 10
stop();
Symbol 1070 MovieClip Frame 15
play();
Symbol 1070 MovieClip Frame 20
stop();
Symbol 1070 MovieClip Frame 25
play();
Symbol 1070 MovieClip Frame 30
stop();
Symbol 1072 MovieClip Frame 1
if (Key.isDown(38)) {
trace("4 goes for catch");
_parent.catchKeys.gotoAndPlay("up");
_parent.four.play();
_parent.lifter2.gotoAndPlay("back");
_parent.lifter3.gotoAndPlay("front");
gotoAndPlay ("four");
} else if ((Key.isDown(37) and (_root.flipped != true)) or (_root.flipped and Key.isDown(39))) {
trace("2 goes for catch");
_parent.catchKeys.gotoAndPlay("left");
_parent.two.play();
_parent.lifter1.gotoAndPlay("back");
_parent.lifter2.gotoAndPlay("front");
gotoAndPlay ("two");
} else if ((Key.isDown(39) and (_root.flipped != true)) or (_root.flipped and Key.isDown(37))) {
trace("6 goes for catch");
_parent.catchKeys.gotoAndPlay("right");
_parent.six.play();
_parent.lifter3.gotoAndPlay("back");
_parent.lifter4.gotoAndPlay("front");
gotoAndPlay ("six");
} else {
play();
}
Symbol 1072 MovieClip Frame 2
prevFrame();
Symbol 1072 MovieClip Frame 5
play();
Symbol 1072 MovieClip Frame 7
stop();
_parent.oppTwo.play();
_parent.oppLifter1.gotoAndPlay("back");
_parent.oppLifter2.gotoAndPlay("front");
Symbol 1072 MovieClip Frame 10
play();
Symbol 1072 MovieClip Frame 12
stop();
_parent.oppFour.play();
_parent.oppLifter2.gotoAndPlay("back");
_parent.oppLifter3.gotoAndPlay("front");
Symbol 1072 MovieClip Frame 15
play();
Symbol 1072 MovieClip Frame 17
stop();
_parent.oppSix.play();
_parent.oppLifter3.gotoAndPlay("back");
_parent.oppLifter4.gotoAndPlay("front");
Symbol 1073 MovieClip Frame 1
nextFrame();
power = (_parent.power / 3) + 20;
xspeed = Math.sin(_root.angle2radian(_parent.angle)) * power;
yspeed = Math.cos(_root.angle2radian(_parent.angle)) * power;
bounce = 3;
Symbol 1073 MovieClip Frame 2
play();
if (_parent.roundActive) {
this._rotation = _root.runAngle(xspeed, -yspeed);
if (this._y > -20) {
trace("hit ground");
if (bounce) {
yspeed = yspeed * -0.5;
this._y = this._y - yspeed;
bounce--;
_root.sfx.gotoAndPlay("ball");
} else {
this._y = -20;
xspeed = 0;
yspeed = 0;
_parent._parent.messages.gotoAndPlay("lineoutLost");
_parent.roundActive = false;
}
}
yspeed = yspeed - 3;
this._x = this._x + xspeed;
this._y = this._y - yspeed;
if (this._x > 600) {
_parent._parent.messages.gotoAndPlay("lineoutLost");
_parent.roundActive = false;
}
}
Symbol 1073 MovieClip Frame 3
prevFrame();
Symbol 1073 MovieClip Frame 5
stop();
Symbol 1074 MovieClip Frame 1
playerTeam = _root.playerTeam;
oppTeam = _root.oppTeam;
angle = 70;
lifter1.gotoAndStop("back");
lifter2.gotoAndStop("back");
lifter3.gotoAndStop("front");
lifter4.gotoAndStop("front");
oppLifter1.gotoAndStop("back");
oppLifter2.gotoAndStop("back");
oppLifter3.gotoAndStop("front");
oppLifter4.gotoAndStop("front");
trace("opps Line-out: " + _root.oppsLineout);
if (_root.oppsLineout) {
gotoAndStop ("oppAngle");
}
Instance of Symbol 1042 MovieClip "lifter1" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.playerTeam;
this.playerSide = true;
}
Instance of Symbol 1042 MovieClip "lifter2" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.playerTeam;
this.playerSide = true;
}
Instance of Symbol 1042 MovieClip "lifter3" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.playerTeam;
this.playerSide = true;
}
Instance of Symbol 1042 MovieClip "lifter4" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.playerTeam;
this.playerSide = true;
}
Instance of Symbol 444 MovieClip "two" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.playerTeam;
this.playerSide = true;
}
Instance of Symbol 444 MovieClip "six" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.playerTeam;
this.playerSide = true;
}
Instance of Symbol 363 MovieClip "hooker" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
if (_root.oppsLineout) {
this.team = _parent.oppTeam;
this.throwingArm.ani.team = _parent.oppTeam;
} else {
this.team = _parent.playerTeam;
this.throwingArm.ani.team = _parent.playerTeam;
}
}
Instance of Symbol 444 MovieClip "four" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.playerTeam;
this.playerSide = true;
}
Instance of Symbol 1042 MovieClip "oppLifter1" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.oppTeam;
}
Instance of Symbol 1042 MovieClip "oppLifter2" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.oppTeam;
}
Instance of Symbol 1042 MovieClip "oppLifter3" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.oppTeam;
}
Instance of Symbol 1042 MovieClip "oppLifter4" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.oppTeam;
}
Instance of Symbol 444 MovieClip "oppTwo" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.oppTeam;
}
Instance of Symbol 444 MovieClip "oppSix" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.oppTeam;
}
Instance of Symbol 444 MovieClip "oppFour" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
this.team = _parent.oppTeam;
}
Symbol 1074 MovieClip Frame 5
play();
Symbol 1074 MovieClip Frame 6
if ((Key.isDown(32) or (_root.roundNo > 1)) or (_root.gameMode == "fullGame")) {
_root.introText.gotoAndStop("hide");
trace("start lineout");
play();
} else {
prevFrame();
}
Symbol 1074 MovieClip Frame 10
stop();
roundActive = true;
two.gotoAndStop("stand");
four.gotoAndStop("stand");
six.gotoAndStop("stand");
oppTwo.gotoAndStop("stand");
oppFour.gotoAndStop("stand");
oppSix.gotoAndStop("stand");
hooker.gotoAndStop("stand");
hooker.throwingArm.ani.gotoAndStop("ready");
lifter1.gotoAndStop("back");
lifter2.gotoAndStop("back");
lifter3.gotoAndStop("front");
lifter4.gotoAndStop("front");
oppLifter1.gotoAndStop("back");
oppLifter2.gotoAndStop("back");
oppLifter3.gotoAndStop("front");
oppLifter4.gotoAndStop("front");
Symbol 1074 MovieClip Frame 15
stop();
roundActive = true;
two.gotoAndStop("stand");
four.gotoAndStop("stand");
six.gotoAndStop("stand");
oppTwo.gotoAndStop("stand");
oppFour.gotoAndStop("stand");
oppSix.gotoAndStop("stand");
hooker.gotoAndStop("stand");
hooker.throwingArm.ani.gotoAndStop("ready");
lifter1.gotoAndStop("back");
lifter2.gotoAndStop("back");
lifter3.gotoAndStop("front");
lifter4.gotoAndStop("front");
oppLifter1.gotoAndStop("back");
oppLifter2.gotoAndStop("back");
oppLifter3.gotoAndStop("front");
oppLifter4.gotoAndStop("front");
_root.introText.gotoAndStop("hide");
Symbol 1074 MovieClip Frame 20
play();
Symbol 1074 MovieClip Frame 24
gotoAndPlay ("skip");
Symbol 1074 MovieClip Frame 25
play();
Instance of Symbol 187 MovieClip "box1" in Symbol 1074 MovieClip Frame 25
onClipEvent (load) {
this.boxWidth = 595;
this.boxHeight = 120;
this.bulbAmount = 10;
}
Symbol 1074 MovieClip Frame 30
Symbol 1074 MovieClip Frame 32
hooker.play();
hooker.throwingArm.ani.play();
Symbol 1074 MovieClip Frame 37
stop();
Instance of Symbol 1068 MovieClip "getItSix" in Symbol 1074 MovieClip Frame 37
onClipEvent (load) {
this.team = _parent.playerTeam;
}
Instance of Symbol 1069 MovieClip "getItFour" in Symbol 1074 MovieClip Frame 37
onClipEvent (load) {
this.team = _parent.playerTeam;
}
Instance of Symbol 1069 MovieClip "getItTwo" in Symbol 1074 MovieClip Frame 37
onClipEvent (load) {
this.team = _parent.playerTeam;
}
Instance of Symbol 1070 MovieClip "catchKeys" in Symbol 1074 MovieClip Frame 37
/* no clip actions */
Symbol 1079 MovieClip Frame 15
stop();
Symbol 1079 MovieClip Frame 16
stop();
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 2
stop();
Symbol 1082 MovieClip Frame 3
stop();
Symbol 1085 MovieClip Frame 1
function calculateMedals() {
var _local1 = _root;
medalInfo = SharedObject.getLocal("medals");
trace("Score = " + _local1.score);
if (_local1.score == 3) {
if (((medalInfo.data.kicking != "bronze") && (medalInfo.data.kicking != "silver")) && (medalInfo.data.kicking != "gold")) {
trace("Setting Bronze Medal");
medalInfo.data.kicking = "bronze";
_local1.justWonKicking = true;
} else {
trace("Bronze Already Won");
_local1.justWonKicking = false;
}
_local1.medalPopup.gotoAndPlay("bronze");
} else if (_local1.score == 4) {
if ((medalInfo.data.kicking != "silver") && (medalInfo.data.kicking != "gold")) {
medalInfo.data.kicking = "silver";
_local1.justWonKicking = true;
} else {
_local1.justWonKicking = false;
}
_local1.medalPopup.gotoAndPlay("silver");
} else if (_local1.score == 5) {
if (medalInfo.data.kicking != "gold") {
medalInfo.data.kicking = "gold";
_local1.justWonKicking = true;
} else {
_local1.justWonKicking = false;
}
_local1.medalPopup.gotoAndPlay("gold");
} else {
_local1.medalPopup.gotoAndPlay("none");
}
medalInfo.data.flush();
}
function nextRound(situation) {
var _local1 = _root;
trace("next round");
if (situation == "goal") {
_parent.scoreClip["ball" + _local1.roundNo].gotoAndPlay("win");
_local1.score++;
}
if (situation == "miss") {
_parent.scoreClip["ball" + _local1.roundNo].gotoAndPlay("lose");
}
if (_local1.roundNo < 5) {
_local1.roundNo++;
} else {
trace("TEST OVER");
calculateMedals();
}
trace("score: " + _local1.score);
}
_root.gameMode = "kicking";
_root.roundNo++;
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1089 MovieClip Frame 12
stop();
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1093 MovieClip Frame 11
stop();
Symbol 1096 MovieClip Frame 22
if (_level0.loading == false) {
stop();
}
Symbol 1099 MovieClip Frame 22
if (_level0.loading == false) {
stop();
}
Symbol 1102 MovieClip Frame 43
if (_level0.loading == false) {
stop();
}
Symbol 1105 MovieClip Frame 22
if (_level0.loading == false) {
stop();
}
Symbol 1108 MovieClip Frame 22
if (_level0.loading == false) {
stop();
}
Symbol 1111 MovieClip Frame 22
if (_level0.loading == false) {
stop();
}
Symbol 1113 MovieClip Frame 9
_parent._parent.soundDir.kick(_parent.clip3d.power);
Symbol 1113 MovieClip Frame 10
_parent.clip3d.gotoAndPlay("playBack");
Symbol 1113 MovieClip Frame 23
stop();
Symbol 1129 MovieClip Frame 1
if (_root.flipped) {
nextFrame();
} else {
stop();
}
Instance of Symbol 1118 MovieClip "wDirector" in Symbol 1129 MovieClip Frame 1
onClipEvent (enterFrame) {
time++;
if (time > randomTime) {
randomAngle = newAngle + ((Math.random() * 20) - 10);
randomSpeed = windSpeed + ((Math.random() * 2) - 1);
time = 0;
randomTime = (Math.random() * 40) + 30;
}
dif = randomAngle - windDirection;
over = over + (dif / 200);
windDirection = windDirection + ((dif / 20) + over);
windPower = windPower + ((randomSpeed - windPower) / 3);
displayAngle = windDirection + viewRotY;
_parent.meterArrow.arrow._rotation = displayAngle;
_parent.bevel1.arrow._rotation = displayAngle;
_parent.bevel2.arrow._rotation = displayAngle;
_parent.shadow.arrow._rotation = displayAngle;
_parent.meterArrow.arrow.gotoAndStop(Math.round(windPower * 5));
_parent.windDirection = Math.round(windDirection);
_parent.windSpeed = Math.round(windPower);
_parent.windSpeedTextBox = _parent.windSpeed + " mph";
}
Symbol 1129 MovieClip Frame 2
stop();
Symbol 1131 MovieClip Frame 6
stop();
Symbol 1133 MovieClip Frame 3
stop();
Symbol 1135 MovieClip Frame 3
stop();
Symbol 1136 MovieClip Frame 2
stop();
Symbol 1136 MovieClip Frame 6
stop();
Symbol 1137 MovieClip Frame 1
function setAngle() {
dx = this["dx" + ml];
dy = this["dy" + ml];
ratio = dy / dx;
if (dx > 0) {
if (ratio > 1) {
angle = 90 - (Math.atan(1 / ratio) * RADIANS);
} else if ((ratio > 0) && (ratio < 1)) {
angle = Math.atan(ratio) * RADIANS;
} else if ((ratio < 0) && (ratio > -1)) {
angle = 360 + (Math.atan(ratio) * RADIANS);
} else if (ratio < -1) {
angle = 270 - (Math.atan(1 / ratio) * RADIANS);
}
} else if (dx < 0) {
if (ratio > 1) {
angle = 270 - (Math.atan(1 / ratio) * RADIANS);
} else if ((ratio > 0) && (ratio < 1)) {
angle = 180 + (Math.atan(ratio) * RADIANS);
} else if ((ratio < 0) && (ratio > -1)) {
angle = 180 + (Math.atan(ratio) * RADIANS);
} else if (ratio < -1) {
angle = 90 - (Math.atan(1 / ratio) * RADIANS);
}
} else if (dx == 0) {
if (dy > 0) {
angle = 90;
} else if (dy < 0) {
angle = -90;
} else if (dy == 0) {
angle = null;
}
}
}
RADIANS = 57.2957795130823;
this._visible = false;
Symbol 1137 MovieClip Frame 2
this._visible = true;
x1 = _parent.px[point1];
y1 = _parent.py[point1];
x2 = _parent.px[point2];
y2 = _parent.py[point2];
x3 = _parent.px[point3];
y3 = _parent.py[point3];
clockwise = ((x1 - x2) * (y3 - y2)) - ((y1 - y2) * (x3 - x2));
if (clockwise >= 0) {
clockwise = 1;
} else {
xtmp = x3;
ytmp = y3;
x3 = x1;
y3 = y1;
x1 = xtmp;
y1 = ytmp;
clockwise = -1;
}
dx1 = x2 - x1;
dy1 = y2 - y1;
dx2 = x3 - x2;
dy2 = y3 - y2;
dx3 = x1 - x3;
dy3 = y1 - y3;
l1 = Math.sqrt((dx1 * dx1) + (dy1 * dy1));
l2 = Math.sqrt((dx2 * dx2) + (dy2 * dy2));
l3 = Math.sqrt((dx3 * dx3) + (dy3 * dy3));
if (l1 >= l2) {
if (l1 >= l3) {
ml = 1;
ol = 3;
AB = l3;
AC = l1;
BC = l2;
} else {
ml = 3;
ol = 2;
AB = l2;
AC = l3;
BC = l1;
}
} else if (l2 >= l3) {
ml = 2;
ol = 1;
AB = l1;
AC = l2;
BC = l3;
} else {
ml = 3;
ol = 2;
AB = l2;
AC = l3;
BC = l1;
}
setAngle();
AD = (((AB * AB) + (AC * AC)) - (BC * BC)) / (2 * AC);
xc = this["x" + ml] + ((this["dx" + ml] / this["l" + ml]) * AD);
yc = this["y" + ml] + ((this["dy" + ml] / this["l" + ml]) * AD);
BD = Math.sqrt(((this["x" + ol] - xc) * (this["x" + ol] - xc)) + ((this["y" + ol] - yc) * (this["y" + ol] - yc)));
tri1._x = xc;
tri1._y = yc;
tri1._xscale = this["l" + ml] - AD;
tri1._yscale = BD;
tri1._rotation = angle;
tri2._x = xc;
tri2._y = yc;
tri2._yscale = AD;
tri2._xscale = BD;
tri2._rotation = angle - 90;
if (_parent.polyPlay == false) {
stop();
}
Symbol 1137 MovieClip Frame 3
prevFrame();
play();
Symbol 1140 MovieClip Frame 1
function updateArrow() {
pXRotate = pXRotate + ((Math.round(Xang) - pXRotate) / 3);
pYRotate = pYRotate + ((Math.round(Yang) - pYRotate) / 3);
if ((Math.round(pXRotate) == Math.round(Xang)) && (Math.round(pYRotate) == Math.round(Yang))) {
update = false;
polyPlay = false;
} else {
polyPlay = true;
poly1.play();
poly2.play();
poly3.play();
poly4.play();
poly5.play();
poly6.play();
}
if (pXRotate < -88) {
pXRotate = -88;
Xang = -88;
} else if (pXRotate > -50) {
pXRotate = -50;
Xang = -50;
}
if (pYRotate < (40 - Ydegrees)) {
pYRotate = 40 - Ydegrees;
Yang = 40 - Ydegrees;
} else if (pYRotate > (140 - Ydegrees)) {
pYRotate = 140 - Ydegrees;
Yang = 140 - Ydegrees;
}
rotatePoints();
drawPoints();
}
function rotatePoints() {
var _local3;
var cosX;
var _local2;
var _local1;
_local3 = Math.sin(pXRotate * (Math.PI/180));
cosX = Math.cos(pXRotate * (Math.PI/180));
_local2 = Math.sin(pYRotate * (Math.PI/180));
_local1 = Math.cos(pYRotate * (Math.PI/180));
c = 0;
while (c < numPoints) {
y[c] = zOrig[c] * cosX;
z[c] = zOrig[c] * _local3;
x[c] = (xOrig[c] * _local2) - (z[c] * _local1);
z[c] = (xOrig[c] * _local1) + (z[c] * _local2);
c++;
}
}
function drawPoints() {
var xpos;
var ypos;
var _local1;
var yy;
var xx;
var _local3;
var _local2;
sinX = Math.sin(Xdegrees * (Math.PI/180));
cosX = Math.cos(Xdegrees * (Math.PI/180));
sinY = Math.sin(Ydegrees * (Math.PI/180));
cosY = Math.cos(Ydegrees * (Math.PI/180));
z[7] = z[0];
x[7] = x[0];
z[8] = z[1];
x[8] = x[1];
z[9] = z[2];
x[9] = x[2];
z[10] = z[3];
x[10] = x[3];
z[11] = z[4];
x[11] = x[4];
z[12] = z[5];
x[12] = x[5];
z[13] = z[6];
x[13] = x[6];
c = 0;
while (c < numPoints) {
_local3 = z[c] + objZ;
xx = x[c] + objX;
yy = y[c] + objY;
_local1 = (_local3 * cosY) - (xx * sinY);
xpos = (_local3 * sinY) + (xx * cosY);
ypos = (yy * cosX) - (_local1 * sinX);
_local1 = (yy * sinX) + (_local1 * cosX);
_local2 = 1 / ((_local1 / perspective) + 1);
px[c] = Xpos * _local2;
py[c] = Ypos * _local2;
c++;
}
}
function Match3dClip() {
var _local1 = _parent;
var _local2 = this;
perspective = _local1.clip3d.perspective;
_local2._x = _local1.clip3d._x;
_local2._y = _local1.clip3d._y;
_local2._xscale = _local1.clip3d._xscale;
_local2._yscale = _local1.clip3d._yscale;
Xdegrees = _local1.clip3d.Xdegrees;
Ydegrees = _local1.clip3d.Ydegrees;
objX = _local1.clip3d.x[1];
objY = _local1.clip3d.y[1];
objZ = _local1.clip3d.z[1];
ball._x = _local1.clip3d.p0._x;
ball._y = _local1.clip3d.p0._y;
ball._xscale = _local1.clip3d.p0._xscale;
ball._yscale = _local1.clip3d.p0._xscale;
}
this._visible = false;
x = new Array();
y = new Array();
z = new Array();
xOrig = new Array(0, 12, -12, 4, -4, 4, -4);
yOrig = new Array(0, 0, 0, 0, 0, 0, 0);
zOrig = new Array(-80, -60, -60, -60, -60, -6, -6);
px = new Array();
py = new Array();
stop();
Instance of Symbol 1138 MovieClip "keyUpEvent" in Symbol 1140 MovieClip Frame 1
onClipEvent (keyUp) {
_parent.Xaccel = 2;
_parent.Yaccel = 2;
}
Symbol 1140 MovieClip Frame 10
numPoints = 14;
pXRotate = -90;
pYRotate = 90;
Xang = -70;
Yang = 90;
Xaccel = 2;
Yaccel = 2;
update = true;
match3dClip();
poly1.point1 = 3;
poly1.point2 = 4;
poly1.point3 = 5;
poly2.point1 = 4;
poly2.point2 = 6;
poly2.point3 = 5;
poly3.point1 = 1;
poly3.point2 = 2;
poly3.point3 = 0;
poly4.point1 = 11;
poly4.point2 = 13;
poly4.point3 = 12;
poly5.point1 = 8;
poly5.point2 = 9;
poly5.point3 = 7;
poly6.point1 = 10;
poly6.point2 = 11;
poly6.point3 = 12;
poly1.tri1.gotoAndStop(1);
poly1.tri2.gotoAndStop(1);
poly2.tri1.gotoAndStop(1);
poly2.tri2.gotoAndStop(1);
poly3.tri1.gotoAndStop(1);
poly3.tri2.gotoAndStop(1);
poly4.tri1.gotoAndStop(5);
poly4.tri2.gotoAndStop(5);
poly5.tri1.gotoAndStop(5);
poly5.tri2.gotoAndStop(5);
poly6.tri1.gotoAndStop(5);
poly6.tri2.gotoAndStop(5);
polyPlay = true;
poly1.play();
poly2.play();
poly3.play();
poly4.play();
poly5.play();
poly6.play();
updateArrow();
Symbol 1140 MovieClip Frame 11
this._visible = true;
if ((Key.isDown(37) and (_root.flipped != true)) or (_root.flipped and Key.isDown(39))) {
Yang = Yang - Yaccel;
Yaccel = Yaccel + 0.5;
update = true;
}
if ((Key.isDown(39) and (_root.flipped != true)) or (_root.flipped and Key.isDown(37))) {
Yang = Yang + Yaccel;
Yaccel = Yaccel + 0.5;
update = true;
}
if (Key.isDown(38)) {
Xang = Xang + Xaccel;
Xaccel = Xaccel + 0.5;
update = true;
}
if (Key.isDown(40)) {
Xang = Xang - Xaccel;
Xaccel = Xaccel + 0.5;
update = true;
}
if (update == true) {
updateArrow();
}
Symbol 1140 MovieClip Frame 12
prevFrame();
play();
Symbol 1140 MovieClip Frame 15
polyPlay = false;
stop();
Symbol 1140 MovieClip Frame 21
stop();
Symbol 1140 MovieClip Frame 31
stop();
Symbol 1143 MovieClip Frame 1
stop();
Symbol 1152 MovieClip Frame 1
stop();
Symbol 1153 MovieClip Frame 30
gotoAndPlay (1);
Symbol 1153 MovieClip Frame 85
gotoAndPlay (45);
Symbol 1153 MovieClip Frame 148
gotoAndPlay (100);
Symbol 1159 MovieClip Frame 1
stop();
Symbol 1163 MovieClip Frame 1
if (_root.flipped) {
this._xscale = -100;
accMeter._xscale = -100;
}
Symbol 1164 MovieClip Frame 1
stop();
Symbol 1164 MovieClip Frame 30
stop();
Symbol 1168 MovieClip Frame 1
function reStart(level) {
var _local1 = _parent;
var _local2 = level;
trace("+++level: " + _local2);
recX = new Array();
recY = new Array();
recZ = new Array();
recFrames = new Array();
_local1.wMeter._visible = true;
INFRONT = 10000;
BEHIND = 1;
speak = true;
time = 0;
rectime = 0;
windFallOff = 0;
count = 0;
ballFrames = 1;
result = null;
flash = 0;
scoreAble = true;
replayMode = false;
this["view" + _local2]();
y[ball] = -7;
x[bShadow] = x[ball];
z[bShadow] = z[ball];
y[bShadow] = 0;
p0._visible = false;
p1._visible = true;
p2._xscale = (p2._yscale = 100 * (100 / this._xscale));
p2.posts.gotoAndStop(_local2);
_local1.wMeter.wDirector.delay = 0;
_local1.wMeter.wDirector.viewRotY = Ydegrees;
_local1.wMeter.wDirector.newAngle = _local1.windAngle[_local1.level];
_local1.wMeter.wDirector.randomAngle = _local1.windAngle[_local1.level];
_local1.wMeter.wDirector.windSpeed = _local1.windSpeed[_local1.level];
currentStadium = _local1._parent.challenge;
if (currentStadium == 1) {
dialSpeed = "slow";
} else if (currentStadium == 2) {
dialSpeed = "medium";
} else {
dialSpeed = "fast";
}
drawPoints();
gotoAndStop ("aim");
}
function drawPoints() {
var _local1 = this;
cosX = Math.cos(Xdegrees * RADIANS);
cosY = Math.cos(Ydegrees * RADIANS);
sinX = Math.sin(Xdegrees * RADIANS);
sinY = Math.sin(Ydegrees * RADIANS);
c = 0;
while (c < pointNum) {
zpos = (z[c] * cosY) - (x[c] * sinY);
xpos = (z[c] * sinY) + (x[c] * cosY);
ypos = (y[c] * cosX) - (zpos * sinX);
zpos = (y[c] * sinX) + (zpos * cosX);
Depth[c] = 1 / ((Zpos / perspective) + 1);
if ((Math.floor(Depth[c] * 500) + 1) > 0) {
_local1["p" + c]._x = Xpos * Depth[c];
_local1["p" + c]._y = Ypos * Depth[c];
if (((depth[c] * 100) < 120) && (replayMode == false)) {
_local1["p" + c]._xscale = 120;
_local1["p" + c]._yscale = 120;
} else {
_local1["p" + c]._xscale = Depth[c] * 100;
_local1["p" + c]._yscale = Depth[c] * 100;
}
_local1["p" + c].swapDepths(Math.round(Depth * 500) + 1);
}
if (z[ball] <= 0) {
p2.swapDepths(BEHIND);
} else {
p2.swapDepths(INFRONT);
}
c++;
}
}
function showArrow() {
_parent.arrow.gotoAndPlay(10);
}
function hideArrow() {
_parent.arrow.gotoAndStop(30);
}
function hideArrowOnly() {
_parent.arrow.gotoAndStop(20);
}
function kick() {
time = 0;
goKick = true;
p0.ball.director.gotoAndPlay(10);
}
function ballDirector() {
addFrame = ballVz;
if (addFrame > 1.2) {
addFrame = 1.2;
} else if (addFrame < -1.2) {
addFrame = -1.2;
}
ballFrames = ballFrames + addFrame;
if (ballFrames > 20) {
ballFrames = 1;
} else if (ballFrames < 1) {
ballFrames = 20;
}
p0.ball.ballFrames.gotoAndStop(Math.round(ballFrames));
}
function postCol() {
var disY;
var _local2;
var disY;
var distance;
var _local1;
var angleOfEntry;
var _local3;
colY = -90;
colZ = 0;
c = 1;
while (c <= 10) {
_local2 = (oldBallZ + ((ballVz / 10) * c)) - colZ;
disY = (oldBallY + ((ballvy / 10) * c)) - colY;
distance = Math.sqrt((disY * disY) + (_local2 * _local2));
if (((distance < 11) && (x[ball] > -84)) && (x[ball] < 84)) {
_local1 = Math.atan2(disY, _local2) / RADIANS;
AngleOfEntry = Math.atan2(ballVy, ballVz) / RADIANS;
_local3 = _local1 + (_local1 - AngleOfEntry);
z[ball] = (11 * Math.cos(_local1 * RADIANS)) + 0;
y[ball] = (11 * Math.sin(_local1 * RADIANS)) - 90;
ballVz = ((-currentSpeed) / 2) * Math.cos(_local3 * RADIANS);
ballVy = ((-currentSpeed) / 2) * Math.sin(_local3 * RADIANS);
_parent._parent.soundDir.hit();
comment == "POST";
break;
}
c++;
}
colX = 84;
colZ = 0;
c = 1;
while (c <= 10) {
disX = (oldBallX + ((ballVx / 10) * c)) - colX;
_local2 = (oldBallZ + ((ballvz / 10) * c)) - colZ;
distance = Math.sqrt((disX * disX) + (_local2 * _local2));
if ((distance < 11) && (y[ball] > -400)) {
_local1 = Math.atan2(disX, _local2) / RADIANS;
AngleOfEntry = Math.atan2(ballVx, ballVz) / RADIANS;
_local3 = _local1 + (_local1 - AngleOfEntry);
z[ball] = (11 * Math.cos(_local1 * RADIANS)) + 0;
x[ball] = (11 * Math.sin(_local1 * RADIANS)) + 84;
ballVz = ((-currentSpeed) / 2) * Math.cos(_local3 * RADIANS);
ballVx = ((-currentSpeed) / 2) * Math.sin(_local3 * RADIANS);
_parent._parent.soundDir.hit();
comment == "POST";
break;
}
c++;
}
colX = -84;
colZ = 0;
c = 1;
while (c <= 10) {
disX = (oldBallX + ((ballVx / 10) * c)) - colX;
_local2 = (oldBallZ + ((ballvz / 10) * c)) - colZ;
distance = Math.sqrt((disX * disX) + (_local2 * _local2));
if ((distance < 11) && (y[ball] > -400)) {
_local1 = Math.atan2(disX, _local2) / RADIANS;
AngleOfEntry = Math.atan2(ballVx, ballVz) / RADIANS;
_local3 = _local1 + (_local1 - AngleOfEntry);
z[ball] = (11 * Math.cos(_local1 * RADIANS)) + 0;
x[ball] = (11 * Math.sin(_local1 * RADIANS)) - 84;
ballVz = ((-currentSpeed) / 2) * Math.cos(_local3 * RADIANS);
ballVx = ((-currentSpeed) / 2) * Math.sin(_local3 * RADIANS);
_parent._parent.soundDir.hit();
comment == "POST";
break;
}
c++;
}
if (scoreAble == true) {
c = 1;
while (c <= 10) {
posX = oldBallX + ((ballVx / 10) * c);
posY = oldBallY + ((ballvy / 10) * c);
posZ = oldBallZ + ((ballvz / 10) * c);
trace((((posX + ",") + posY) + ",") + posZ);
if ((((posZ >= 0) && (posX < 84)) && (posX > -84)) && (posY < -90)) {
goal = true;
scoreAble = false;
result = "GOAL";
_parent.setMarker(2);
_parent.levelScore++;
_parent.score++;
threeInRow++;
speakResult("GOOD");
trace("GOAL SCORED");
_parent.bg.box1.gotoAndPlay("show");
_parent.bg.box2.gotoAndPlay("show");
_parent.bg.box3.gotoAndPlay("show");
return;
}
c++;
}
}
}
function colDetect() {
if (z[ball] > -30) {
postCol();
}
if (z[ball] > 0) {
scoreAble = false;
if (((x[ball] < 100) && (x[ball] > -100)) && ((x[ball] < -84) || (x[ball] > 84))) {
speakResult("ALMOST");
} else if ((x[ball] < 300) && (x[ball] > -300)) {
speakResult("BAD");
} else {
speakResult("VERYBAD");
}
}
floor = ((201 - p0.ball.ballFrames._height) / 40) - 5;
if (y[ball] >= floor) {
if (ballVy > 1) {
_parent._parent.soundDir.bounce(ballVy);
}
y[ball] = floor;
ballvY = (-ballvY) / 3;
ballCurrentFrame = p0.ball.ballFrames._currentFrame;
if (((ballCurrentFrame < 3) || (ballCurrentFrame > 17)) || ((ballCurrentFrame < 13) && (ballCurrentFrame > 9))) {
bounceAmount = currentSpeed / 2;
if (bounceAmount > 7) {
bounceAmount = 7;
}
ballvY = ballvY - bounceAmount;
}
scoreAble = false;
speakResult("VERYBAD");
}
if (z[ball] > 350) {
ballVz = (-ballVz) / 4;
z[ball] = 350;
}
}
function speakResult(comment) {
var _local1 = comment;
if (speak) {
if (threeInRow == 3) {
threeInRow = 0;
} else if (_local1 == "GOOD") {
if (power == 20) {
ran = Math.floor(Math.random() * 8) + 1;
} else {
ran = Math.floor(Math.random() * 4) + 1;
}
_parent._parent.soundDir.cheer();
} else if (_local1 == "VERYBAD") {
ran = Math.floor(Math.random() * 3) + 5;
} else if (_local1 == "BAD") {
ran = Math.floor(Math.random() * 5) + 2;
} else if (_local1 == "ALMOST") {
ran = 1;
} else if (_local1 == "POST") {
ran = Math.floor(Math.random() * 2) + 5;
}
}
speak = false;
}
function view1() {
var _local1 = this;
z[ball] = -680;
x[ball] = 0;
y[ball] = -5;
Xdegrees = 1.4;
Ydegrees = 0;
perspective = 740;
_local1._xscale = (_local1._yscale = 24.4);
_local1._x = 227;
_local1._y = 170;
}
function view2() {
var _local1 = this;
z[ball] = -717;
x[ball] = 372;
y[ball] = -5;
Xdegrees = 1.3;
Ydegrees = 27.8;
perspective = 878;
_local1._xscale = (_local1._yscale = 23.8);
_local1._x = 227;
_local1._y = 169;
}
function view3() {
var _local1 = this;
z[ball] = -730;
x[ball] = 964;
y[ball] = -5;
Xdegrees = 1;
Ydegrees = 53;
perspective = 1300;
_local1._xscale = (_local1._yscale = 20.2);
_local1._x = 226;
_local1._y = 162;
}
function view4() {
var _local1 = this;
Xdegrees = 9.2;
Ydegrees = -165;
perspective = 740;
_local1._xscale = (_local1._yscale = 62.7);
_local1._x = 253;
_local1._y = 216.5;
}
function initKick() {
var Xdir;
var _local1;
var _local3;
var _local2;
angOffset = pRing1.pow.accMeter.acc._rotation / 5;
Xdir = Math.round(_parent.arrow.pXRotate);
_local1 = Math.round(_parent.arrow.pYRotate + angOffset);
power = pRing1.pow._currentFrame;
if (power > 20) {
power = 41 - power;
}
_local3 = ((power * 1.2) + 4) * 3;
ballVy = (-_local3) * Math.cos(Xdir * RADIANS);
_local2 = (-_local3) * Math.sin(Xdir * RADIANS);
ballVx = (0 * Math.sin(_local1 * RADIANS)) - (_local2 * Math.cos(_local1 * RADIANS));
ballVz = (0 * Math.cos(_local1 * RADIANS)) + (_local2 * Math.sin(_local1 * RADIANS));
if (ballVy > -2) {
ballVy = -2;
}
_parent.kickAnim.playKick();
}
this._visible = false;
RADIANS = (Math.PI/180);
pointNum = 2;
c = 0;
while (c < (pointNum + 1)) {
duplicateMovieClip ("p", "p" + c, c + 500);
c++;
}
p._visible = 0;
p0.gotoAndStop(1);
p1.gotoAndStop(2);
p1._alpha = 90;
p2.gotoAndStop(3);
p2._x = (p2._y = 0);
ball = 0;
bShadow = 1;
z = new Array();
x = new Array();
y = new Array();
Depth = new Array();
_root.clickedRing = 0;
_parent._parent._parent.keys.gotoAndStop(1);
Symbol 1168 MovieClip Frame 10
stop();
Symbol 1168 MovieClip Frame 20
drawPoints();
showArrow();
_parent._parent._parent.keys.gotoAndStop(1);
pRing1._x = p1._x;
pRing1._y = p1._y;
pRing1._xscale = p0._xscale / 3;
pRing1._yscale = p0._yscale / 10;
pRing2._x = p1._x;
pRing2._y = p1._y + 12;
pRing2._xscale = p0._xscale / 3;
pRing2._yscale = (p0._yscale / 10) + 10;
pRing1.pow.gotoAndStop(1);
pRing2.pow.gotoAndStop(1);
pRing2.pow.accMeter.gotoAndPlay(dialSpeed);
pRing1.pow.accMeter.gotoAndPlay(dialSpeed);
pRing1._visible = true;
pRing2._visible = true;
this._visible = true;
_parent.bg._visible = true;
_parent.replayBg._visible = false;
_parent.smallKicker._visible = false;
play();
Symbol 1168 MovieClip Frame 21
play();
Symbol 1168 MovieClip Frame 22
if ((Key.isDown(32) or (_root.roundNo > 1)) or (_root.gameMode == "fullGame")) {
_root.introText.gotoAndStop("hide");
play();
} else {
prevFrame();
}
Symbol 1168 MovieClip Frame 28
stop();
Instance of Symbol 1167 MovieClip in Symbol 1168 MovieClip Frame 28
onClipEvent (load) {
this._visible = false;
pressed = false;
released = true;
}
onClipEvent (keyDown) {
if (Key.isDown(32)) {
if ((_root.clickedRing == 0) && (released == true)) {
pressed = true;
released = false;
_root.clickedRing = 1;
_parent._parent.arrow.gotoAndStop(15);
_parent.pRing1.pow.accMeter.stop();
_parent.pRing2.pow.accMeter.stop();
_parent.pRing1.pow.accMeter.circle.gotoAndPlay(2);
_parent.pRing2.pow.accMeter.circle.gotoAndPlay(2);
_parent.pRing1.pow.accMeter.acc.tri._visible = false;
_parent.pRing2.pow.accMeter.acc.tri._visible = false;
mouseD = true;
_parent.gotoAndStop("pow");
_parent.pRing1.pow.gotoAndPlay(1);
_parent.pRing2.pow.gotoAndPlay(1);
trace("spacebar pressed for the first time");
_parent._parent._parent._parent.keys.gotoAndStop(2);
} else if (released == true) {
pressed = false;
released = false;
_root.clickedRing = 0;
_parent.pRing1.pow.stop();
_parent.pRing2.pow.stop();
trace("spacebar pressed for the second time");
_parent._parent._parent._parent.keys.gotoAndStop(3);
_parent.gotoAndPlay("kickAnim");
}
}
}
onClipEvent (keyUp) {
if ((pressed = !Key.isDown(32))) {
trace("released spacebar");
released = true;
}
}
Symbol 1168 MovieClip Frame 30
gradient.gotoAndStop(2);
gradient.gotoAndStop(2);
stop();
Symbol 1168 MovieClip Frame 39
nextFrame();
Symbol 1168 MovieClip Frame 40
flash++;
play();
if (flash > 5) {
flash = 0;
gotoAndPlay(_currentframe + 2);
}
Symbol 1168 MovieClip Frame 41
prevFrame();
play();
Symbol 1168 MovieClip Frame 42
_parent.arrow.poly1._visible = false;
_parent.arrow.poly2._visible = false;
_parent.arrow.poly3._visible = false;
_parent.arrow.poly4._visible = false;
_parent.arrow.poly5._visible = false;
_parent.arrow.poly6._visible = false;
pRing1._visible = false;
pRing2._visible = false;
flash++;
if (flash > 3) {
hideArrowOnly();
this.initKick();
stop();
}
Symbol 1168 MovieClip Frame 43
_parent.arrow.poly1._visible = true;
_parent.arrow.poly2._visible = true;
_parent.arrow.poly3._visible = true;
_parent.arrow.poly4._visible = true;
_parent.arrow.poly5._visible = true;
_parent.arrow.poly6._visible = true;
pRing1._visible = true;
pRing2._visible = true;
Symbol 1168 MovieClip Frame 44
gotoAndPlay(_currentframe - 2);
Symbol 1168 MovieClip Frame 50
p0._visible = true;
p0.ball.ballFrames.gotoAndStop(1);
hideArrow();
Symbol 1168 MovieClip Frame 51
trace("loop--");
windSpeed = _parent.wMeter.wDirector.windPower;
windAngle = _parent.wMeter.wDirector.windDirection;
windX = windSpeed * Math.sin(windAngle * RADIANS);
windZ = windSpeed * Math.cos(windAngle * RADIANS);
windFallOff++;
if ((ballVy < 0) && (scoreAble == true)) {
amp = y[ball] / -200;
if (amp > 1) {
amp = 1;
}
ballVX = ballVX + (amp * (windX / windFallOff));
ballVZ = ballVZ + (amp * (windZ / windFallOff));
}
ballVY = ballVY + 1.2;
if (y[0] < floor) {
ballVx = ballVx / 1.005;
ballVz = ballVz / 1.005;
} else {
ballVx = ballVx / 1.1;
ballVz = ballVz / 1.1;
}
newAngle = Math.atan2(ballVx, ballVz) / RADIANS;
currentSpeed = Math.sqrt((ballVx * ballVx) + (ballVz * ballVz));
oldBallZ = z[ball];
z[ball] = z[ball] + ballVz;
oldBallX = x[ball];
x[ball] = x[ball] + ballVx;
oldBallY = y[ball];
y[ball] = y[ball] + ballvY;
colDetect();
ballDirector();
x[bShadow] = x[ball] + 1;
z[bShadow] = z[ball] + 1;
_parent.topview.ball._x = x[0];
_parent.topvieW.ball._y = -z[0];
_parent.rightView.ball._x = z[0];
_parent.rightView.ball._y = y[0];
drawPoints();
recX[recTime] = x[ball] - (ballVx / 2);
recY[recTime] = y[ball] - (ballVy / 2);
recZ[recTime] = z[ball] - (ballVz / 2);
recFrames[recTime] = p0.ball.ballFrames._currentFrame;
recTime++;
recX[recTime] = x[ball];
recY[recTime] = y[ball];
recZ[recTime] = z[ball];
recFrames[recTime] = p0.ball.ballFrames._currentFrame;
recTime++;
time++;
if (time == 33) {
if (result == "GOAL") {
trace("scored");
if (_root.gameMode == "fullGame") {
_parent._parent._parent.messages.gotoAndPlay("fullGoal");
} else {
_parent._parent._parent.messages.gotoAndPlay("goal");
}
threeInRow = 0;
} else {
trace("missed");
if (_root.gameMode == "fullGame") {
_parent._parent._parent.messages.gotoAndPlay("fullMiss");
} else {
_parent._parent._parent.messages.gotoAndPlay("miss");
}
}
trace("TIME UP");
if (_root.roundNo < 5) {
_parent.boutDone();
}
}
Symbol 1168 MovieClip Frame 52
prevFrame();
play();
Symbol 1173 MovieClip Frame 1
stop();
Instance of Symbol 187 MovieClip "box1" in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
this.boxWidth = 450;
this.boxHeight = 77;
this.bulbAmount = 10;
}
Instance of Symbol 191 MovieClip in Symbol 1173 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1173 MovieClip Frame 2
stop();
Instance of Symbol 187 MovieClip "box3" in Symbol 1173 MovieClip Frame 2
onClipEvent (load) {
this.boxWidth = 85;
this.boxHeight = 15;
this.bulbAmount = 2;
}
Instance of Symbol 187 MovieClip "box2" in Symbol 1173 MovieClip Frame 2
onClipEvent (load) {
this.boxWidth = 190;
this.boxHeight = 15;
this.bulbAmount = 2;
}
Instance of Symbol 187 MovieClip "box1" in Symbol 1173 MovieClip Frame 2
onClipEvent (load) {
this.boxWidth = 450;
this.boxHeight = 84;
this.bulbAmount = 11;
}
Symbol 1173 MovieClip Frame 3
stop();
Instance of Symbol 187 MovieClip "box2" in Symbol 1173 MovieClip Frame 3
onClipEvent (load) {
this.boxWidth = 165;
this.boxHeight = 18;
this.bulbAmount = 2;
}
Instance of Symbol 187 MovieClip "box1" in Symbol 1173 MovieClip Frame 3
onClipEvent (load) {
this.boxWidth = 450;
this.boxHeight = 88;
this.bulbAmount = 11;
}
Instance of Symbol 1113 MovieClip "kickAnim" in Symbol 1174 MovieClip Frame 1
onClipEvent (load) {
function wait() {
this._visible = false;
gotoAndStop (1);
with (kicker) {
hair.gotoAndStop(1);
skin.gotoAndStop(1);
shirt.gotoAndStop(1);
shorts.gotoAndStop(1);
socks.gotoAndStop(1);
boots.gotoAndStop(1);
}
}
function playKick() {
this._visible = true;
gotoAndPlay (2);
with (kicker) {
hair.gotoAndPlay(2);
skin.gotoAndPlay(2);
shirt.gotoAndPlay(2);
shorts.gotoAndPlay(2);
socks.gotoAndPlay(2);
boots.gotoAndPlay(2);
}
_parent._parent.changeStrip();
ratio = _parent.clip3d._xscale / 100;
this._x = _parent.clip3d._x + (_parent.clip3d.p0._x * ratio);
this._y = _parent.clip3d._y + (_parent.clip3d.p0._y * ratio);
this._yscale = (this._xscale = (_parent.clip3d.p0._xscale * ratio) * 0.23);
}
wait();
}
Instance of Symbol 1129 MovieClip "wMeter" in Symbol 1174 MovieClip Frame 1
/* no clip actions */
Symbol 1175 MovieClip Frame 1
function challengeRadioButtons(selected) {
var _local1 = selected;
if (_local1 == 1) {
challenge = 1;
challenge_preview.gotoAndStop(1);
italy_thumb.gotoAndStop(2);
sa_thumb.gotoAndStop(1);
uk_thumb.gotoAndStop(1);
} else if (_local1 == 2) {
challenge = 2;
challenge_preview.gotoAndStop(2);
italy_thumb.gotoAndStop(1);
sa_thumb.gotoAndStop(2);
uk_thumb.gotoAndStop(1);
} else if (_local1 == 3) {
challenge = 3;
challenge_preview.gotoAndStop(3);
italy_thumb.gotoAndStop(1);
sa_thumb.gotoAndStop(1);
uk_thumb.gotoAndStop(2);
}
}
function playerRadioButtons(selected) {
var _local1 = selected;
var _local2 = this;
player = _local1;
i = 1;
while (i <= numberOfPlayers) {
_local2["player" + i].gotoAndStop(1);
i++;
}
_local2["player" + _local1].gotoAndStop(2);
if (_local1 == 1) {
player_preview.gotoAndStop(_local1);
} else if (_local1 > 1) {
player_preview.gotoAndStop((_local1 * 2) - 1);
}
if (_local1 == 1) {
strip = australianStrip;
} else if (_local1 == 2) {
strip = argentinianStrip;
} else if (_local1 == 3) {
strip = italianStrip;
} else if (_local1 == 4) {
strip = scottishStrip;
} else if (_local1 == 5) {
strip = irishStrip;
} else if (_local1 == 6) {
strip = welshStrip;
} else if (_local1 == 7) {
strip = newzealandStrip;
} else if (_local1 == 8) {
strip = frenchStrip;
} else if (_local1 == 9) {
strip = southafricanStrip;
} else if (_local1 == 10) {
trace("Switching strip to England Kit");
strip = englishStrip;
}
}
function changeStrip() {
myItem = "gameClip.kickAnim.kicker.shirt";
myColor = new Color(myItem);
myColor.setRGB(strip[0]);
myItem = "gameClip.kickAnim.kicker.shorts";
myColor = new Color(myItem);
myColor.setRGB(strip[1]);
myItem = "gameClip.kickAnim.kicker.socks";
myColor = new Color(myItem);
myColor.setRGB(strip[2]);
myItem = "gameClip.player_preview.shirt_preview.shirt";
myColor = new Color(myItem);
myColor.setRGB(strip[0]);
myItem = "gameClip.player_preview.shorts_preview.shorts";
myColor = new Color(myItem);
myColor.setRGB(strip[1]);
myItem = "gameClip.smallKicker.shirt";
myColor = new Color(myItem);
myColor.setRGB(strip[0]);
myItem = "gameClip.smallKicker.shorts";
myColor = new Color(myItem);
myColor.setRGB(strip[1]);
myItem = "gameClip.smallKicker.socks";
myColor = new Color(myItem);
myColor.setRGB(strip[2]);
}
function setStadium() {
stadium.gotoAndStop(challenge);
stadium.level.gotoAndStop(level);
}
function playAudio(request) {
var _local1 = request;
stopAudio();
if (_local1 == "intro") {
loadMovieNum ("introsounds/intro.swf", 100);
} else if (_local1 == "introplayer1") {
loadMovieNum ("introsounds/introplayer1.swf", 100);
} else if (_local1 == "introplayer2") {
loadMovieNum ("introsounds/introplayer2.swf", 100);
} else if (_local1 == "introplayer3") {
loadMovieNum ("introsounds/introplayer3.swf", 100);
} else if (_local1 == "introplayer4") {
loadMovieNum ("introsounds/introplayer4.swf", 100);
} else if (_local1 == "introplayer5") {
loadMovieNum ("introsounds/introplayer5.swf", 100);
} else if (_local1 == "introplayer6") {
loadMovieNum ("introsounds/introplayer6.swf", 100);
} else if (_local1 == "introplayer7") {
loadMovieNum ("introsounds/introplayer7.swf", 100);
} else if (_local1 == "introplayer8") {
loadMovieNum ("introsounds/introplayer8.swf", 100);
} else if (_local1 == "introplayer9") {
loadMovieNum ("introsounds/introplayer9.swf", 100);
} else if (_local1 == "introplayer10") {
loadMovieNum ("introsounds/introplayer10.swf", 100);
} else if (_local1 == "youare1") {
loadMovieNum ("introsounds/youare1.swf", 100);
} else if (_local1 == "youare2") {
loadMovieNum ("introsounds/youare2.swf", 100);
} else if (_local1 == "youare3") {
loadMovieNum ("introsounds/youare3.swf", 100);
} else if (_local1 == "youare4") {
loadMovieNum ("introsounds/youare4.swf", 100);
} else if (_local1 == "youare5") {
loadMovieNum ("introsounds/youare5.swf", 100);
} else if (_local1 == "youare6") {
loadMovieNum ("introsounds/youare6.swf", 100);
} else if (_local1 == "youare7") {
loadMovieNum ("introsounds/youare7.swf", 100);
} else if (_local1 == "youare8") {
loadMovieNum ("introsounds/youare8.swf", 100);
} else if (_local1 == "youare9") {
loadMovieNum ("introsounds/youare9.swf", 100);
} else if (_local1 == "youare10") {
loadMovieNum ("introsounds/youare10.swf", 100);
}
}
function stopAudio() {
unloadMovieNum (100);
}
function changeEndStrip() {
myItem = "_level5000.flip.flip.shirt";
myColor = new Color(myItem);
myColor.setRGB(strip[0]);
myItem = "_level5000.flip.flip.shorts";
myColor = new Color(myItem);
myColor.setRGB(strip[1]);
myItem = "_level5000.flip.flip.socks";
myColor = new Color(myItem);
myColor.setRGB(strip[2]);
myItem = "_level5000.cheering.shirt";
myColor = new Color(myItem);
myColor.setRGB(strip[0]);
var ginger;
ginger = 15713138 /* 0xEFC372 */;
dark = 5982786 /* 0x5B4A42 */;
}
numberOfPlayers = 10;
level = 1;
challenge = 1;
player = 1;
playerRadioButtons(10);
changeStrip();
englishStrip = [16777215, 16777215, 1578539];
if (_root.playerTeam == "Wales") {
englishStrip = [16716311, 0, 16716311];
}
if (_root.playerTeam == "Scotland") {
englishStrip = [51, 51, 51];
}
if (_root.playerTeam == "Ireland") {
englishStrip = [52294, 16777215, 52294];
}
if (_root.playerTeam == "France") {
englishStrip = [204, 16777215, 16711680];
}
if (_root.playerTeam == "Italy") {
englishStrip = [26367, 16777215, 26367];
}
Instance of Symbol 1093 MovieClip "soundDir" in Symbol 1175 MovieClip Frame 1
onClipEvent (load) {
function DisAway() {
var _local1 = _parent;
var _local3;
var _local2;
_local3 = _local1.clip3d.viewerX - _local1.clip3d.x[0];
_local2 = _local1.clip3d.viewerZ - _local1.clip3d.z[0];
dis = (Math.sqrt((_local3 * _local3) + (_local2 * _local2)) / 200) + 1;
}
function bounce(vol) {
disAway();
kickSound.setVolume((vol * 5) / dis);
kickSound.start();
}
function Kick(vol) {
kickSound.setVolume(Math.round(vol * 10));
kickSound.start();
}
function hit() {
DisAway();
vol = Math.round(70 / dis);
kickSound.setVolume(vol);
kickSound.start();
}
function cheer() {
this.gotoAndPlay("cheer");
}
KickSound = new Sound(this.bang);
KickSound.attachSound("sKick");
}
Instance of Symbol 1174 MovieClip "gameClip" in Symbol 1175 MovieClip Frame 1
onClipEvent (load) {
function loadBackGround(ID) {
bg.gotoAndStop(view);
_parent.beforeSound.setPossibleComments(ID, view);
}
function stadium1() {
windAngle = new Array(135, 270, 190, 45, 225, 80, 270, 200, 125, 300, 10, 270, 225, 30, 300);
windSpeed = new Array(1, 3, 5, 7, 9, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6);
}
function stadium2() {
windAngle = new Array(135, 270, 190, 45, 225, 80, 270, 200, 125, 300, 10, 270, 225, 30, 300);
windSpeed = new Array(6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9);
}
function stadium3() {
windAngle = new Array(135, 270, 190, 45, 225, 80, 270, 200, 125, 300, 10, 270, 225, 30, 300);
windSpeed = new Array(8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10);
}
function initGame() {
if (view > 1) {
nextRound();
} else {
bg._visible = true;
wMeter._visible = true;
turnPerView = 0;
level = -1;
score = 0;
levelScore = 0;
boutDone();
}
}
function boutDone() {
if (turnPerView > 0) {
if (view < 3) {
view++;
} else {
view = 1;
}
this.loadBackGround(ID);
}
if (turnPerView == 5) {
clip3d.threeInRow = 0;
if (levelScore >= 3) {
if (view < 3) {
}
}
trace("Game Over");
} else {
turnPerView++;
nextRound();
}
}
function nextRound() {
level++;
trace("restarting");
clip3d.restart(view);
trace("view: " + view);
message.gotoAndStop(1);
}
function clearMarkers() {
c = 1;
while (c <= 5) {
c++;
}
}
function setMarker(result) {
var result;
}
country = new Array("italy", "sa", "uk");
view = 1;
if (_root.conversionAngle) {
view = _root.conversionAngle;
}
wMeter._visible = false;
stop();
}
Symbol 1175 MovieClip Frame 2
playerRadioButtons(player);
unloadMovieNum (10);
play();
Symbol 1175 MovieClip Frame 3
setStadium();
gameClip._visible = false;
trace("here");
gameClip.loadBackGround(challenge);
level123.gotoAndStop(2);
currentChallenge.gotoAndStop(2);
currentTime = getTimer();
timeDelay = 2000;
Symbol 1175 MovieClip Frame 4
this.gotoAndPlay("fade");
Symbol 1175 MovieClip Frame 5
prevFrame();
play();
Symbol 1175 MovieClip Frame 18
gameClip._visible = true;
gameClip["stadium" + challenge]();
gameClip.initGame();
crowdSound.gotoAndPlay("rumble");
Symbol 1175 MovieClip Frame 28
stop();
Symbol 1181 MovieClip Frame 15
stop();
Symbol 1181 MovieClip Frame 16
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1187 MovieClip Frame 6
play();
Symbol 1187 MovieClip Frame 7
stop();
Symbol 1187 MovieClip Frame 11
play();
Symbol 1187 MovieClip Frame 12
stop();
Symbol 1187 MovieClip Frame 16
gotoAndStop ("normal");
Symbol 1190 MovieClip Frame 1
function calculateMedals() {
var _local1 = _root;
medalInfo = SharedObject.getLocal("medals");
trace("Score = " + _local1.score);
if (_local1.score == 3) {
if (((medalInfo.data.advancedKicking != "bronze") && (medalInfo.data.advancedKicking != "silver")) && (medalInfo.data.advancedKicking != "gold")) {
trace("Setting Bronze Medal");
medalInfo.data.advancedKicking = "bronze";
_local1.justWonAdvancedKicking = true;
} else {
trace("Bronze Already Won");
_local1.justWonAdvancedKicking = false;
}
_local1.medalPopup.gotoAndPlay("bronze");
} else if (_local1.score == 4) {
if ((medalInfo.data.advancedKicking != "silver") && (medalInfo.data.advancedKicking != "gold")) {
medalInfo.data.advancedKicking = "silver";
_local1.justWonAdvancedKicking = true;
} else {
_local1.justWonAdvancedKicking = false;
}
_local1.medalPopup.gotoAndPlay("silver");
} else if (_local1.score == 5) {
if (medalInfo.data.advancedKicking != "gold") {
medalInfo.data.advancedKicking = "gold";
_local1.justWonAdvancedKicking = true;
} else {
_local1.justWonAdvancedKicking = false;
}
_local1.medalPopup.gotoAndPlay("gold");
} else {
_local1.medalPopup.gotoAndPlay("none");
}
medalInfo.data.flush();
}
function nextRound(situation) {
var _local1 = _parent;
var _local2 = _root;
var _local3 = situation;
trace("next round");
if (_local3 == "advGoal") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("win");
_local2.score++;
}
if (_local3 == "bullseye") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("win");
_local2.score++;
}
if ((_local3 == "out") or (_local3 == "advMiss")) {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if ((_local3 == "out") or (_local3 == "outGood")) {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if ((_local3 == "out") or (_local3 == "try")) {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local3 == "tackled") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local3 == "lostPossession") {
_local1.scoreClip["ball" + _local2.roundNo].gotoAndPlay("lose");
}
if (_local2.roundNo < 5) {
_local2.roundNo++;
_local1.main.main.gotoAndPlay(positionArray[_local2.roundNo - 1]);
_local1.timer.sec = 0;
_local1.timer.micro = 0;
_local1.timer.display();
_local1.main.main.possesion = "player";
_local1.main.main.ballOwner = "teamMark9";
_local1.main.main.controlledPlayer = "9";
} else {
trace("TEST OVER");
calculateMedals();
}
trace("score: " + _local2.score);
}
_root.gameMode = "advKicking";
positionArray = new Array("goalKick1", "start", "goalKick2", "start", "goalKick3");
nextRound("first");
Instance of Symbol 550 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.oppTeam);
}
Instance of Symbol 550 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.playerTeam);
}
Symbol 1200 MovieClip Frame 1
play();
Symbol 1200 MovieClip Frame 11
if (_root.playerStart) {
gotoAndPlay ("playerStart");
} else {
gotoAndPlay ("oppStart");
}
Symbol 1200 MovieClip Frame 15
play();
Symbol 1200 MovieClip Frame 22
stop();
txt = _root.playerTeam + " kick off.";
Symbol 1200 MovieClip Frame 25
play();
Symbol 1200 MovieClip Frame 32
stop();
txt = _root.oppTeam + " kick off.";
Symbol 1201 MovieClip Frame 1
play();
Symbol 1201 MovieClip Frame 40
stop();
Symbol 1202 MovieClip Frame 24
stop();
Symbol 1202 MovieClip Frame 25
stop();
Symbol 1209 MovieClip Frame 1
function nextRound(situation) {
var _local1 = _root;
var _local2 = situation;
trace("next");
if (_local2 == "advGoal") {
_local1.playerScore = _local1.playerScore + 3;
_local1.gainedPossesion = "opp";
_local1.gamePosition = "startOpp";
_local1.gotoAndStop("newFull");
}
if (_local2 == "dropout22") {
_local1.gainedPossesion = "opp";
_local1.gamePosition = "opp22dropOut";
_local1.gotoAndStop("newFull");
}
if (_local2 == "oppConvertion") {
_local1.oppScore = _local1.oppScore + 2;
_local1.gainedPossesion = "player";
_local1.gamePosition = "start";
_local1.gotoAndStop("newFull");
}
if (_local2 == "oppGoalMiss") {
_local1.gainedPossesion = "player";
_local1.gamePosition = "start";
_local1.gotoAndStop("newFull");
}
if (_local2 == "foul") {
_local1.gotoAndStop("gameScrum");
}
if (_local2 == "scrum5m") {
_local1.gotoAndStop("gameScrum");
}
if ((_local2 == "out") or (_local2 == "outGood")) {
_local1.gotoAndStop("gameLineout");
}
if (_local2 == "try") {
_local1.playerScore = _local1.playerScore + 5;
_local1.gotoAndStop("gameKicking");
}
if (_local2 == "oppTry") {
_local1.oppScore = _local1.oppScore + 5;
_local1.gainedPossesion = "opp";
_local1.gamePosition = "oppGoalKick";
_local1.gotoAndStop("newFull");
}
if (_local2 == "halfTime") {
if (_local1.playerStart) {
_local1.gamePosition = "startOpp";
_local1.gainedPossesion = "opp";
} else {
_local1.gamePosition = "start";
_local1.gainedPossesion = "player";
}
_local1.startHalf = true;
_local1.gotoAndStop("newFull");
}
if (_local2 == "gameOver") {
trace("game is over");
_local1.gameOver();
}
trace("situation: " + _local2);
}
_parent.main.main.gotoAndPlay(_root.gamePosition);
if (_root.gainedPossesion == "player") {
trace("Player starts with possesion");
_parent.main.main.possesion = "player";
_parent.main.main.ballOwner = "teamMark9";
} else if (_root.gainedPossesion == "opp") {
trace("Opp starts with possesion");
_parent.main.main.possesion = "opp";
_parent.main.main.ballOwner = "opp_Mark9";
}
_parent.main.main.controlledPlayer = "9";
Symbol 1211 MovieClip Frame 1
function nextRound(situation) {
var _local1 = _root;
var _local2 = situation;
trace("next function");
if (_local2 == "scrumLost") {
trace("lost");
_local1.gainedPossesion = "opp";
_local1.gotoAndStop("full");
}
if (_local2 == "scrumWon") {
trace("win");
_local1.gainedPossesion = "player";
_local1.gotoAndStop("full");
}
if (_local2 == "wheel") {
trace("wheel");
_local1.gainedPossesion = "opp";
_local1.gotoAndStop("full");
}
if (_local2 == "halfTime") {
if (_local1.playerStart) {
_local1.gamePosition = "startOpp";
_local1.gainedPossesion = "opp";
} else {
_local1.gamePosition = "start";
_local1.gainedPossesion = "player";
}
_local1.startHalf = true;
_local1.gotoAndStop("newFull");
}
if (_local2 == "gameOver") {
trace("game is over");
_local1.gameOver();
}
}
_parent.main.main.gotoAndPlay(_root.gamePosition);
trace(_root.gamePosition);
Symbol 1213 MovieClip Frame 1
function nextRound(situation) {
var _local1 = _root;
trace("next");
if (situation == "lineoutLost") {
trace("line out won by opp");
_local1.gainedPossesion = "opp";
_local1.gotoAndStop("full");
}
if (situation == "lineoutWon") {
trace("line out won by player");
_local1.gainedPossesion = "player";
_local1.gotoAndStop("full");
}
}
trace(_root.gamePosition);
Symbol 1215 MovieClip Frame 1
function nextRound(situation) {
var _local1 = _root;
trace("next");
if (situation == "goal") {
trace("convertion won");
_local1.playerScore = _local1.playerScore + 2;
}
if (situation == "miss") {
trace("convertion missed");
}
_local1.gainedPossesion = "opp";
_local1.gamePosition = "startOpp";
_local1.gotoAndStop("full");
}
trace(_root.gamePosition);