Frame 1
function chooseGameEndProcedure() {
if (tKey == undefined) {
tKey = "sjri5jf85jdor560";
}
gameEndSubmitUrl = "http://freeplay.gamedek.com/gameend.aspx";
if (params == undefined) {
myVariables.load("config.txt");
} else {
decryptParams(params);
crypto = 2;
}
}
function g_fSetGameSize(a_numWidth, a_numHeight) {
g_numGameWidth = a_numWidth;
g_numGameHeight = a_numHeight;
}
function t_fLoadGameEnd() {
mcResign.removeMovieClip();
mcGameOver.removeMovieClip();
if (mcGameEnd != undefined) {
mcGameEnd.removeMovieClip();
}
endContainer.createEmptyMovieClip("mcGameEnd", 100);
endContainer.createEmptyMovieClip("mcGameEndBack", 99);
with (endContainer.mcGameEndBack) {
var backColor = 0;
beginFill(backColor, 100);
lineStyle(1, backColor, 100);
moveTo(0, 0);
lineTo(g_numGameWidth, 0);
lineTo(g_numGameWidth, g_numGameHeight);
lineTo(0, g_numGameHeight);
lineTo(0, 0);
endFill();
}
if (freeplayid != undefined) {
downloadURL = downloadURL + affiliateId;
}
var endUrlArray = new Array();
endUrlArray = endURL.split(".");
var subString = endUrlArray[endUrlArray.length - 1];
if ((subString == "aspx") || (subString == "html")) {
getURL (endURL, "_self");
} else {
endContainer.mcGameEnd.loadMovie(endURL, mcGameEnd);
endContainer.playAgain = playAgain;
}
}
function displayMsg(myMsg, myTime, myFunction) {
if (_root.msgTextStartHeight == undefined) {
_root.msgTextStartHeight = stdDisplayMsg.myTextField.myTextField._y;
}
stdDisplayMsg.myMsg = myMsg;
stdDisplayMsg.myTime = myTime;
stdDisplayMsg.myFunction = myFunction;
stdDisplayMsg.gotoAndPlay(2);
}
function createHelp(helpName, helpMsg) {
helpMessageNames.push(helpName);
Set(("blnShowed" + helpName) + "HM", false);
Set(helpName + "Msg", helpMsg);
}
function showHelp(helpName) {
msgToPresent.push(helpName);
}
function presentHelp() {
if (blnGameOn && (msgToPresent.length > 0)) {
helpName = msgToPresent.pop();
if (!eval (("blnShowed" + helpName) + "HM")) {
Set(("blnShowed" + helpName) + "HM", true);
helpMessage.helpTextField.text = eval (helpName + "Msg");
helpMessage.helpImage.holder.removeMovieClip();
helpMessage.helpImage.createEmptyMovieClip("holder", 1);
helpMessage.helpImage.holder.attachMovie(helpName, "img", 1);
blnGameOn = false;
helpMessage.gotoAndPlay(2);
}
}
}
function createKeyboardCommand(keyFunctionName, keyFunctionMsg, defaultAsciValue, smooth) {
Set(keyFunctionName + "Obj", new KeyboardCommand(keyFunctionName, keyFunctionMsg, defaultAsciValue));
if (!smooth) {
keyboardCommands.push(eval (keyFunctionName + "Obj"));
} else {
smoothKeyboardCommands.push(eval (keyFunctionName + "Obj"));
}
}
function smoothKeyMovement() {
countKeyss = 0;
while (countKeyss < smoothKeyboardCommands.length) {
if (Key.isDown(smoothKeyboardCommands[countKeyss].myAsciKey)) {
if (blnWaitForKey) {
pressKey(smoothKeyboardCommands[countKeyss].myAsciKey);
} else {
commandToDo = eval (smoothKeyboardCommands[countKeyss].myName + "Function");
commandToDo();
}
}
countKeyss++;
}
}
function pressKey(theKey) {
if (blnWaitForKey) {
var isItOk = true;
countKeys = 0;
while (countKeys < keyboardCommands.length) {
if (theKey == keyboardCommands[countKeys].myAsciKey) {
isItOk = false;
break;
}
if (theKey == smoothKeyboardCommands[countKeys].myAsciKey) {
isItOk = false;
break;
}
countKeys++;
}
if (isItOk) {
blnWaitForKey = false;
Set(waitingCommandName + "Obj.myAsciKey", theKey);
Set(("KCScreen." + waitingCommandName) + "Changer.myAsciKey", theKey);
eval (("KCScreen." + waitingCommandName) + "Changer").gotoAndPlay(1);
KCScreen.hitChosenKey._x = -500;
}
} else {
countKeys = 0;
while (countKeys < keyboardCommands.length) {
if (keyboardCommands[countKeys].myAsciKey == theKey) {
commandToDo = eval (keyboardCommands[countKeys].myName + "Function");
commandToDo();
}
countKeys++;
}
}
}
function generateChangeKeyControls(boardName) {
countKeys = 0;
while (countKeys < keyboardCommands.length) {
eval (boardName).attachMovie("keyCommandChanger", keyboardCommands[countKeys].myName + "Changer", countKeys);
Set(((boardName + ".") + keyboardCommands[countKeys].myName) + "Changer._x", eval (boardName + ".KCBackground")._x);
Set(((boardName + ".") + keyboardCommands[countKeys].myName) + "Changer._y", eval (boardName + ".KCBackground")._y + (eval (((boardName + ".") + keyboardCommands[countKeys].myName) + "Changer")._height * countKeys));
Set(((boardName + ".") + keyboardCommands[countKeys].myName) + "Changer.myMsg", keyboardCommands[countKeys].myMsg);
Set(((boardName + ".") + keyboardCommands[countKeys].myName) + "Changer.myAsciKey", keyboardCommands[countKeys].myAsciKey);
Set(((boardName + ".") + keyboardCommands[countKeys].myName) + "Changer.myName", keyboardCommands[countKeys].myName);
countKeys++;
}
countKeyss = 0;
while (countKeyss < smoothKeyboardCommands.length) {
eval (boardName).attachMovie("keyCommandChanger", smoothKeyboardCommands[countKeyss].myName + "Changer", countKeys + countKeyss);
Set(((boardName + ".") + smoothKeyboardCommands[countKeyss].myName) + "Changer._x", eval (boardName + ".KCBackground")._x);
Set(((boardName + ".") + smoothKeyboardCommands[countKeyss].myName) + "Changer._y", eval (boardName + ".KCBackground")._y + (eval (((boardName + ".") + smoothKeyboardCommands[countKeyss].myName) + "Changer")._height * (countKeys + countKeyss)));
Set(((boardName + ".") + smoothKeyboardCommands[countKeyss].myName) + "Changer.myMsg", smoothKeyboardCommands[countKeyss].myMsg);
Set(((boardName + ".") + smoothKeyboardCommands[countKeyss].myName) + "Changer.myAsciKey", smoothKeyboardCommands[countKeyss].myAsciKey);
Set(((boardName + ".") + smoothKeyboardCommands[countKeyss].myName) + "Changer.myName", smoothKeyboardCommands[countKeyss].myName);
countKeyss++;
}
Set(boardName + ".KCBackground._width", eval (((boardName + ".") + keyboardCommands[0].myName) + "Changer")._width);
Set(boardName + ".KCBackground._height", eval (((boardName + ".") + keyboardCommands[0].myName) + "Changer")._height * (keyboardCommands.length + smoothKeyboardCommands.length));
}
function saveAndLoad() {
if (userVars.data.points == undefined) {
createNewUser();
} else {
loadUserData();
}
}
function createSound(soundName) {
sndController.createEmptyMovieClip(soundName, numSounds);
Set(soundName, new Sound(eval ("sndController." + soundName)));
eval (soundName).attachSound(soundName);
numSounds++;
}
function g_fSetSoundOn() {
g_sndGlobalSound.setVolume(100);
sndClick.start();
}
function g_fSetSoundOff() {
sndClick.start();
g_sndGlobalSound.setVolume(0);
}
function runTimer() {
if (_root.blnGameOn) {
if ((timer > timeWarningAt) && ((timer - (1 / _root.frameRate)) < timeWarningAt)) {
clockSound.start();
}
_root.timer = _root.timer - (1 / _root.frameRate);
gameField._y = gameField._y + speedLow;
}
if (_root.timer >= 0) {
_root.clock.text = Math.floor(_root.timer / 60);
_root.clock.text = _root.clock.text + ":";
var _local2 = String(Math.floor(_root.timer % 60));
if (_local2.length == 1) {
_local2 = "0" + _local2;
}
_root.clock.text = _root.clock.text + _local2;
} else if (_root.blnGameOn) {
gameOver();
}
}
function trc(theString) {
trace((theString + ": ") + eval (theString));
}
function g_fGetRandomValue(a_numMaxValue) {
g_numRandomSeed = (g_numRandomSeed * g_A) % 2147352576;
var _local1 = Math.floor((g_numRandomSeed * a_numMaxValue) / g_C) % a_numMaxValue;
return(_local1);
}
function TEAEncrypt(src, key) {
var _local2 = charsToLongs(strToChars(src));
var _local9 = charsToLongs(strToChars(key));
var _local7 = _local2.length;
if (_local7 == 0) {
return("");
}
if (_local7 == 1) {
_local2[_local7++] = 0;
}
var _local3 = _local2[_local7 - 1];
var _local4 = _local2[0];
var _local11 = 2654435769;
var _local12 = 4294967295;
var _local5;
var _local8;
var _local10 = Math.floor(6 + (52 / _local7));
var _local6 = 0;
var _local13 = 0;
while ((_local10--) > 0) {
_local6 = _local6 + _local11;
_local6 = _local6 >>> 0;
_local8 = (_local6 >>> 2) & 3;
var _local1 = 0;
while (_local1 < (_local7 - 1)) {
_local4 = _local2[_local1 + 1];
_local5 = (((_local3 >>> 5) ^ (_local4 << 2)) + ((_local4 >>> 3) ^ (_local3 << 4))) ^ ((_local6 ^ _local4) + (_local9[(_local1 & 3) ^ _local8] ^ _local3));
_local5 = _local5 >>> 0;
_local2[_local1] = _local2[_local1] + _local5;
_local2[_local1] = _local2[_local1] >>> 0;
_local3 = _local2[_local1];
_local1++;
}
_local4 = _local2[0];
_local5 = (((_local3 >>> 5) ^ (_local4 << 2)) + ((_local4 >>> 3) ^ (_local3 << 4))) ^ ((_local6 ^ _local4) + (_local9[(_local1 & 3) ^ _local8] ^ _local3));
_local5 = _local5 >>> 0;
_local2[_local7 - 1] = _local2[_local7 - 1] + _local5;
_local2[_local7 - 1] = _local2[_local7 - 1] >>> 0;
_local3 = _local2[_local7 - 1];
}
return(charsToHex(longsToChars(_local2)));
}
function TEADecrypt(src, key) {
var _local4 = charsToLongs(hexToChars(src));
var _local9 = charsToLongs(strToChars(key));
var _local8 = _local4.length;
if (_local8 == 0) {
return("");
}
var _local2 = _local4[_local8 - 1];
var _local3 = _local4[0];
var _local10 = 2654435769;
var _local6;
var _local7;
var _local11 = Math.floor(6 + (52 / _local8));
var _local5 = _local11 * _local10;
while (_local5 != 0) {
_local7 = (_local5 >>> 2) & 3;
var _local1 = _local8 - 1;
while (_local1 > 0) {
_local2 = _local4[_local1 - 1];
_local6 = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((_local5 ^ _local3) + (_local9[(_local1 & 3) ^ _local7] ^ _local2));
_local3 = (_local4[_local1] = _local4[_local1] - _local6);
_local1--;
}
_local2 = _local4[_local8 - 1];
_local6 = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((_local5 ^ _local3) + (_local9[(_local1 & 3) ^ _local7] ^ _local2));
_local3 = (_local4[0] = _local4[0] - _local6);
_local5 = _local5 - _local10;
}
return(charsToStr(longsToChars(_local4)));
}
function charsToLongs(chars) {
var _local3 = new Array(Math.ceil(chars.length / 4));
var _local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1] = ((chars[_local1 * 4] + (chars[(_local1 * 4) + 1] << 8)) + (chars[(_local1 * 4) + 2] << 16)) + (chars[(_local1 * 4) + 3] << 24);
_local1++;
}
return(_local3);
}
function longsToChars(longs) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < longs.length) {
_local3.push(longs[_local1] & 255, (longs[_local1] >>> 8) & 255, (longs[_local1] >>> 16) & 255, (longs[_local1] >>> 24) & 255);
_local1++;
}
return(_local3);
}
function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
function decryptParams(myParams) {
decPar = TEADecrypt(myParams, tKey);
arrayOfVars = new Array();
arrayOfVars = decPar.split("&");
count = 0;
while (count < arrayOfVars.length) {
varHolder = new Array();
varHolder = arrayOfVars[count].split("=");
Set(varHolder[0], varHolder[1]);
trc(varHolder[0]);
count++;
}
}
_quality = "BEST";
_root.menu.hide();
fscommand ("showmenu", "false");
System.security.allowDomain(domainToAllow);
System.security.allowDomain("http://freeplay.gamedek.com/");
stop();
var startX = 0;
var startY = 0;
var gameWidth = 680;
var gameHeight = 540;
var frameRate = 30;
var timer = 0;
var timeWarningAt = 0;
var crypto = 0;
var blnStartGame = false;
var blnGameOver = false;
var blnGameOn = false;
var userVars = SharedObject.getLocal("Template_user_vars");
myVariables = new LoadVars();
myVariables.onLoad = function (success) {
if (success) {
trace(this.params);
crypto = 1;
_root.decryptParams(this.params);
} else {
crypto = 0;
trace("could not decrypt");
}
};
puzzle_XML = new XML();
puzzle_XML.ignoreWhite = true;
puzzle_XML.onLoad = function (success) {
if (success) {
loadPuzzleValues();
gotoAndPlay ("playGameFrame");
}
};
_root.xmlGameEnd = new XML();
_root.xmlGameEnd.onLoad = function (success) {
if (success) {
trace("DECRYPTIT:" + this.firstChild.firstChild.nodeValue);
_root.decryptParams(this.firstChild.firstChild.nodeValue);
_root.endURL = _root.gameEndUrl;
_root.t_fLoadGameEnd();
delete this.onLoad;
}
};
playAgain = function () {
gotoAndPlay ("introFrame");
};
var helpMessageNames = new Array();
var msgToPresent = new Array();
var blnWaitForKey = false;
var keyboardCommands = new Array();
var smoothKeyboardCommands = new Array();
var waitingCommandName = "";
var numSounds = 1;
var g_sndGlobalSound = new Sound();
createSound("clockSound");
var g_A = 3423313;
var g_C = 2435;
if (g_numRandomSeed == undefined) {
g_numRandomSeed = Math.floor(Math.random() * 1000) + 1;
}
MovieClip.prototype.wait = function (interval) {
this.stop();
this.interval = interval * 1000;
this.startTime = getTimer();
this.onEnterFrame = function () {
if ((getTimer() - this.startTime) > this.interval) {
delete this.onEnterFrame;
this.play();
}
};
};
MovieClip.prototype.zoom = function (mc, end, time) {
var _local2 = mc._xscale;
var _local3 = mc._yscale;
tweenXscale = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Strong.easeOut, _local2, end, time);
tweenYscale = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Strong.easeOut, _local3, end, time);
};
MovieClip.prototype.slideIn = function (mc, beginX, time) {
var _local1 = mc._x;
tweenX = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Strong.easeOut, beginX, _local1, time);
};
MovieClip.prototype.slideUp = function (mc, beginY, time) {
var _local1 = mc._y;
tweenY = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Strong.easeOut, beginY, _local1, time);
};
MovieClip.prototype.pop = function (mc, begin, end, time) {
tweenXscale = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Back.easeOut, begin, end, time);
tweenYscale = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Back.easeOut, begin, end, time);
};
MovieClip.prototype.fade = function (mc, begin, end, time) {
tweenFade = new mx.transitions.Tween(mc, "_alpha", mx.transitions.easing.None.easeNone, begin, end, time);
};
chooseGameEndProcedure();
startX = 0;
startY = 0;
gameWidth = 720;
gameHeight = 480;
frameRate = 30;
msgX = 150;
msgY = 150;
g_fSetGameSize(gameWidth, gameHeight);
xmlName = "soccer_puzzle.xml";
userVars = SharedObject.getLocal("Soccer_user_vars");
strRules = "When it is your turn to shoot: \n -Click the location on the goal you want to hit. This is the location that will be hit at 75% power and no spin.\n -Click on a location on the ball for the spin to make the ball curve in the air. High spins are sometimes tough to control and will change where the ball will hit the net.\n -Watch the power gauge and click when you have the desired power. Higher power will cause the ball to go faster but lift slightly\n\nIf you are defending, the goalie will follow your mouse, so move it left, right and up to follow the ball. If you can't quite reach a ball, click to make the goalie dive left or right.";
timeWarningAt = 5;
blnStartGame = false;
blnGameOver = false;
blnGameOn = false;
level = 0;
points = 0;
lives = 3;
timer = 450;
var poppedHelp4 = 0;
var poppedHelp1 = 0;
var poppedHelp2 = true;
var poppedHelp3 = true;
var blnPracticeKick = true;
var blnPracticeSave = false;
var blnFirstSave = true;
_quality = "BEST";
var startX = 0;
var startY = 0;
var gameWidth = 720;
var gameHeight = 480;
var frameRate = 35;
var numColumns = 10;
var numRows = 40;
var startingRows = 4;
var bottomCornerX = 0;
var bottomCornerY = 540;
var boxScale = 175;
var boxHeight = boxScale;
var boxWidth = boxScale;
var boxDepth = 1000;
var golieWidth = 36;
var timeToLeap = 34;
var leapScaler = ((5 + random(3 - level)) - random(3 - level));
var leapOffset = 0.5;
var movementSpeed = 1;
var numBlockers = 1;
var goalieMoveSpeed = 0.5;
var yourMoveSpeed = 2;
var msgTxt = "";
var blnStartGame = false;
var blnGameOver = false;
var blnGameOn = false;
var blnPassedBlockers = false;
var blnBallOnTop = true;
var blnBallOverGoal = true;
var blnCaughtBall = false;
var blnShooting = true;
var action = "angle";
var resolveTime = 0;
var setTimeToResolve = 100;
var moveDirection = 1;
var timer = 3000;
var tickTime = 60;
var totalShotsPerMatch = 10;
var shotsLeft = 0;
var numRounds = 4;
var level = 0;
var points = 0;
var pointsMe = 0;
var pointsYou = 0;
var totalPoints = 0;
var bonusPower = 0;
var bonusSpin = 0;
var bonusGoalie = 0;
var boundZ = 2000;
var boundY = 450;
var boundX = 5000;
var horizonY = 200;
var initialZ = 0;
var horizonZ = 1100;
var farHorizonZ = 1150;
var farHorizonScale = 12;
var blockerDist = 850;
var ballStartY = boundY;
var ballStartX = 400;
var gravity = 3;
var maxPowerFrames = 50;
var normPowerFrames = 38;
var maxPower = 20;
var vZHolder = 0;
var aZHolder = 0;
var frictionZ = -2;
var maxPowerZ = 50;
var minPowerZ = 40;
var vYHolder = 0;
var aYHolder = 0;
var gravity = 0.9;
var angleX = 0;
var angleY = 0;
var maxSpinY = 1;
var extraBounceY = 2;
var vXHolder = 0;
var aXHolder = 0;
var maxPowerX = 8;
var vXPowerEffect = 0.5;
var vXPowerBonusEffect = 0.05;
var maxSpinX = 0.7;
var powerModifier = 1;
var powerModifierBuidPower = 0.5;
var ymousePowerModifier = 0.0005;
var powerModifierMultiplyer = 2;
var aXPowerEffect = 0.08;
var maxPowerY = 45;
var vYPowerbonus = 5;
var vYPowerBonusEffect = 0.4;
levelArray = new Array();
var userVars = SharedObject.getLocal("GOALKICK_user_vars");
var numPlays = 0;
var numWins = 0;
createSound("clickSnd");
createSound("overSnd");
createSound("kickSnd");
createSound("barSnd");
createSound("netSnd");
createSound("blockerSnd");
createSound("croudSnd");
createSound("cheersSnd");
createSound("blockSound");
createSound("slamSound");
createSound("longGoalSound");
createSound("shortGoalSound");
createSound("multigoalSound");
blockSound.setVolume(50);
createHelp("chooseDirection", "This is a timer bonus. It will give you more time");
createHelp("lightStepBonus", "This is a light step bonus. You will not cause platforms to fall for 5 seconds");
createHelp("speedBonus", "This is a speed bonus. You will move faster for 5 seconds");
createHelp("pointsBonus", "This is a points bonus. You will receive 500 more points for stepping on this");
createHelp("finishHelp", "Use the mouse or keyboard to walk on as many platforms as possible to reach the Finish Platform");
createHelp("greenSquresHere", "You need to step on all the green squares to complete the level, so plan your rout carefully");
createHelp("teleportSquares", "If you step on this square you will be teleported to the other one.");
var bonusChance = 20;
speedBonusCountdown = 0;
lightStepCountdown = 0;
okButtonAction = function () {
};
lookAtMe = new FocusManager();
_root.onEnterFrame = function () {
smoothKeyMovement();
if (_root.timer >= 0) {
_root.timer = 1000;
_root.clock.text = Math.floor(_root.timer / 60);
_root.clock.text = _root.clock.text + ":";
var newText = String(Math.floor(_root.timer % 60));
if (newText.length == 1) {
newText = "0" + newText;
}
_root.clock.text = _root.clock.text + newText;
} else if (_root.blnGameOn) {
gameOver();
}
if (_root.blnGameOn) {
_root.timer = _root.timer - (1 / _root.frameRate);
if (action == "angle") {
mouseTarget.gotoAndStop(1);
vXHolder = (-(1 - (_xmouse / ballStartX))) * maxPowerX;
vYHolder = (-(1 - (_ymouse / ballStartY))) * maxPowerY;
mouseTarget._x = _xmouse;
mouseTarget._y = _ymouse;
} else if (action == "spin") {
if ((((_xmouse > (ballStartX - (boxWidth / 2))) && (_xmouse < (ballStartX + (boxWidth / 2)))) && (_ymouse < ballStartY)) && (_ymouse > (ballStartY - boxHeight))) {
aXHolder = (1 - (_xmouse / ballStartX)) * maxSpinX;
aYHolder = (1 - (_ymouse / (ballStartY - (boxHeight / 2)))) * maxSpinY;
mouseSpinTarget._x = _xmouse;
mouseSpinTarget._y = _ymouse;
mouseTarget.gotoAndStop(25 + Math.floor(20 * ((_xmouse - ballStartX) / (boxScale / 2))));
}
} else if (action == "power") {
powerModifier = powerModifier + powerModifierBuidPower;
if ((powerModifier >= maxPower) || (powerModifier < 1)) {
powerModifierBuidPower = powerModifierBuidPower * -1;
if (powerModifier >= maxPower) {
powerModifier = maxPower + powerModifierBuidPower;
}
}
sHUD.gotoAndStop(Math.floor((normPowerFrames + (2 * bonusPower)) * (powerModifier / maxPower)));
} else if (action == "kick") {
gameField.ball.vX = gameField.ball.vX + gameField.ball.aX;
gameField.ball.vY = gameField.ball.vY + gameField.ball.aY;
gameField.ball.vZ = gameField.ball.vZ + gameField.ball.aZ;
gameField.ball.X = gameField.ball.X + gameField.ball.vX;
gameField.ball.Y = gameField.ball.Y + gameField.ball.vY;
gameField.ball.Z = gameField.ball.Z + gameField.ball.vZ;
gameField.ball._x = gameField.ball.X;
if (gameField.ball.Y > (boundY - (horizonY * (gameField.ball.Z / horizonZ)))) {
gameField.ball.vY = gameField.ball.vY * -1;
gameField.ball.vZ = gameField.ball.vZ + frictionZ;
gameField.ball._y = boundY - (horizonY * (gameField.ball.Z / horizonZ));
gameField.ball.vY = gameField.ball.vY + extraBounceY;
} else {
gameField.ball._y = gameField.ball.Y;
}
if ((!blnPassedBlockers) && (gameField.ball.Z > blockerDist)) {
checkBlocker();
blnPassedBlockers = true;
}
if (((gameField.ball.Z >= horizonZ) || (gameField.ball.Z < 0)) || (gameField.ball.vZ < 0)) {
if (gameField.ball.vZ < 0) {
gameField.ball.vX = 0;
gameField.ball.aX = 0;
gameField.ball.vZ = 0;
gameField.ball.ball.gotoAndStop(1);
}
checkGoal();
doResolve();
action = "resolve";
} else {
gameField.ball.realZ = gameField.ball.Z;
gameField.ball._width = (gameField.ball._height = farHorizonScale + ((boxScale - farHorizonScale) * (((farHorizonZ - gameField.ball.Z) * (farHorizonZ - gameField.ball.Z)) / (farHorizonZ * farHorizonZ))));
}
gameField.ball.X = gameField.ball._x;
gameField.ball.Y = gameField.ball._y;
gameField.ball.Z = gameField.ball.realZ;
if (blnShooting) {
if ((gameField.ball.X > ((goal._x + goal.golie._x) + golieWidth)) && (goal.golie._currentframe <= 2)) {
if (((horizonZ - gameField.ball.Z) / gameField.ball.vZ) < (((gameField.ball._x - ((goal._x + goal.golie._x) + golieWidth)) / leapScaler) - leapOffset)) {
goal.golie.gotoAndPlay("jumpRightFrame");
} else {
goal.golie._x = goal.golie._x + (goalieMoveSpeed + level);
newFrame = goal.golie.readyMan._currentframe + 1;
if (newFrame > 11) {
newFrame = 1;
}
if (goal.golie.readyMan._currentframe != 13) {
goal.golie.readyMan.gotoAndStop(newFrame);
}
}
}
if ((gameField.ball.X < ((goal._x + goal.golie._x) + golieWidth)) && (goal.golie._currentframe <= 2)) {
if (((horizonZ - gameField.ball.Z) / gameField.ball.vZ) < (((((goal._x + goal.golie._x) + golieWidth) - gameField.ball._x) / leapScaler) - leapOffset)) {
goal.golie.gotoAndPlay("jumpLeftFrame");
} else {
goal.golie._x = goal.golie._x - (goalieMoveSpeed + level);
newFrame = goal.golie.readyMan._currentframe - 1;
if (newFrame < 1) {
newFrame = 11;
}
goal.golie.readyMan.gotoAndStop(newFrame);
}
}
} else if (_xmouse > ((goal._x + goal.golie._x) + 75)) {
if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
moveDirection = 1;
goal.golie._x = goal.golie._x + (moveDirection * (yourMoveSpeed + bonusGoalie));
newFrame = goal.golie.readyMan._currentframe + moveDirection;
if (newFrame > 11) {
newFrame = 1;
}
goal.golie.readyMan.gotoAndStop(newFrame);
}
} else if (_xmouse < (goal._x + goal.golie._x)) {
if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
moveDirection = -1;
goal.golie._x = goal.golie._x + (moveDirection * (yourMoveSpeed + bonusGoalie));
newFrame = goal.golie.readyMan._currentframe + moveDirection;
if (newFrame < 1) {
newFrame = 11;
}
goal.golie.readyMan.gotoAndStop(newFrame);
}
} else if (_ymouse < 175) {
if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
goal.golie.readyMan.gotoAndStop("upHandsFrame");
}
} else if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
goal.golie.readyMan.gotoAndStop(1);
}
} else if (action == "resolve") {
resolveTime--;
if (resolveTime < 0) {
if (blnPracticeSave) {
blnShooting = false;
} else if (blnPracticeKick) {
blnShooting = true;
} else if (blnShooting) {
blnShooting = false;
} else {
blnShooting = true;
}
_root.startNewRound();
gameField.ball.vZ = 0;
gameField.ball.vX = 0;
gameField.ball.aX = 0;
gameField.ball.vY = 0;
gameField.ball.ball.gotoAndStop(1);
}
gameField.ball.vX = gameField.ball.vX + gameField.ball.aX;
gameField.ball.vY = gameField.ball.vY + gameField.ball.aY;
gameField.ball.vZ = gameField.ball.vZ + gameField.ball.aZ;
gameField.ball.X = gameField.ball.X + gameField.ball.vX;
gameField.ball.Y = gameField.ball.Y + gameField.ball.vY;
gameField.ball.Z = gameField.ball.Z + gameField.ball.vZ;
gameField.ball._x = gameField.ball.X;
if (gameField.ball.Y > (boundY - (horizonY * (gameField.ball.Z / horizonZ)))) {
gameField.ball.vY = gameField.ball.vY * -1;
gameField.ball._y = boundY - (horizonY * (gameField.ball.Z / horizonZ));
gameField.ball.vY = gameField.ball.vY + extraBounceY;
} else {
gameField.ball._y = gameField.ball.Y;
}
if ((gameField.ball.Z >= farHorizonZ) || (gameField.ball.Z < 0)) {
gameField.ball.Z = farHorizonZ - 1;
gameField.ball.vZ = gameField.ball.vZ * -0.01;
gameField.ball.aX = 0;
gameField.ball.vY = 0;
}
gameField.ball.realZ = gameField.ball.Z;
gameField.ball._width = (gameField.ball._height = farHorizonScale + ((boxScale - farHorizonScale) * (((farHorizonZ - gameField.ball.Z) * (farHorizonZ - gameField.ball.Z)) / (farHorizonZ * farHorizonZ))));
gameField.ball.X = gameField.ball._x;
gameField.ball.Y = gameField.ball._y;
gameField.ball.Z = gameField.ball.realZ;
}
if (action == "shotOn") {
resolveTime--;
if (resolveTime < 0) {
doEnemyShot();
}
if (_xmouse > ((goal._x + goal.golie._x) + 75)) {
if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
moveDirection = 1;
goal.golie._x = goal.golie._x + (moveDirection * (yourMoveSpeed + bonusGoalie));
newFrame = goal.golie.readyMan._currentframe + moveDirection;
if (newFrame > 11) {
newFrame = 1;
}
goal.golie.readyMan.gotoAndStop(newFrame);
}
} else if (_xmouse < ((goal._x + goal.golie._x) - 15)) {
if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
moveDirection = -1;
goal.golie._x = goal.golie._x + (moveDirection * (yourMoveSpeed + bonusGoalie));
newFrame = goal.golie.readyMan._currentframe + moveDirection;
if (newFrame < 1) {
newFrame = 11;
}
goal.golie.readyMan.gotoAndStop(newFrame);
}
} else if (_ymouse < 175) {
if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
goal.golie.readyMan.gotoAndStop("upHandsFrame");
}
} else if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
goal.golie.readyMan.gotoAndStop(1);
}
}
if (blnPracticeKick) {
goal.golie._x = 10000;
count = 1;
while (count <= 3) {
eval ("blocker.blocker" + count)._x = 1000;
count++;
}
}
}
};
_root.onMouseDown = function () {
_root.doButtonPressed();
};
function init() {
timer = 120;
points = 0;
resolveTime = 0;
pointsMe = 0;
pointsYou = 0;
totalPointsMe = 0;
totalPointsYou = 0;
totalPoints = 0;
level = 1;
bonusPower = 0;
bonusSpin = 0;
bonusGoalie = 0;
numBlockers = 0;
blnShooting = true;
blnBallOnTop = true;
blnGameOver = false;
gameBoard = new Array(numRows);
croudSnd.start(0, 999);
croudSnd.setVolume(60);
blnFirstSave = true;
}
function startNewLevel() {
numBlockers = level;
if (blnPracticeSave) {
blnShooting = false;
} else {
blnShooting = true;
}
shotsLeft = totalShotsPerMatch;
points = 0;
pointsYou = 0;
pointsMe = 0;
timer = 120;
msgTxt = "Choose a skill to upgrade.";
if (level == numRounds) {
msgTitle = "Final Round!";
} else {
msgTitle = ("ROUND " + level) + " of 4\nBeat your opponent to get to the next round.";
}
if (blnPracticeKick || (blnPracticeSave)) {
_root.startNewRound();
} else {
chooseBonusBoard.gotoAndPlay(2);
hiderMov._visible = false;
}
}
function startNewRound() {
if (shotsLeft <= 0) {
if (points == 0) {
action = "over";
msgTxt = ("You are tied at " + pointsMe) + "\nOVERTIME: Take another shot.";
levelMsg.gotoAndPlay(2);
} else {
matchOver();
}
} else {
if ((!blnPracticeKick) && (!blnPracticeSave)) {
shotsLeft--;
}
croudSnd.setVolume(60);
powerModifier = 1;
pb.boot._y = 0;
if (level == numRounds) {
leapScaler = 11;
} else {
leapScaler = (11 + g_fGetRandomValue(8 - (level * 2))) - g_fGetRandomValue(8 - (level * 2));
}
trace(leapScaler);
leapOffset = 0.5;
var theOffset = (random(1000) / 1000);
ballStartX = 200 + (300 * theOffset);
sHUD.powerMax.gotoAndStop(Math.floor(normPowerFrames + (2 * bonusPower)));
blnCaughtBall = false;
blnBouncedBall = false;
if (blnShooting) {
goal.gotoAndStop("redGoalie");
} else {
goal.gotoAndStop("blueGoalie");
}
goal.golie.gotoAndStop("readyFrame");
_root.gameField.ball.ball.gotoAndStop(1);
aYHolder = 0;
aZHolder = 0;
aXHolder = 0;
blnBallOverGoal = true;
blnBallOnTop = true;
blnPassedBlockers = false;
if (_root.gameField.getDepth() == _root.startingNetDepth) {
gameField.swapDepths(Net);
gameField.swapDepths(goal);
gameField.swapDepths(blocker);
} else if (_root.gameField.getDepth() == _root.startingGoalDepth) {
gameField.swapDepths(goal);
gameField.swapDepths(blocker);
} else if (_root.gameField.getDepth() == _root.startingBlockerDepth) {
gameField.swapDepths(blocker);
}
blnGameOn = false;
goal.golie._x = (goal.goalBar._width / 2) - golieWidth;
if (blnShooting) {
count = 1;
while (count <= 3) {
eval ("blocker.blocker" + count)._x = 1000;
count++;
}
numBlockers = level - 1;
count = 1;
while (count <= numBlockers) {
eval ("blocker.blocker" + count).gotoAndStop("normalFrame");
eval ("blocker.blocker" + count)._x = 200 + random(300);
count++;
}
blocker._x = 0;
gotoAndStop ("chooseDirectionFrame");
action = "angle";
} else {
blocker._x = 1000;
resolveTime = 100;
action = "shotOn";
msgTxt = "Your opponent is shooting! Use your LEFT and RIGHT arrows to move and the UP arrow to DIVE.";
enemyShootingMsg.gotoAndPlay(2);
}
if (blnPracticeKick) {
goal.golie._x = 10000;
count = 1;
while (count <= 3) {
eval ("blocker.blocker" + count)._x = 1000;
count++;
}
}
decodeLevel(level);
blnGameOn = true;
}
}
function loadPuzzleValues() {
count = 0;
while (count < puzzle_XML.firstChild.childNodes[0].childNodes.length) {
levelArray[count] = puzzle_XML.firstChild.childNodes[0].childNodes[count].attributes.puzzle;
count++;
}
}
function decodeLevel(theNum) {
createGameBoard();
setupBoard();
}
function createGameBoard() {
var blockName = "ball";
gameField.attachMovie("sBall", blockName, (countY * numColumns) + countX);
blockName = eval ("gameField." + blockName);
gameField.ball._width = (gameField.ball._height = boxScale);
blockName.depth = 0;
blockName.X = ballStartX;
blockName.Y = ballStartY;
blockName.Z = 0;
blockName.vX = 0;
blockName.vY = 0;
blockName.vZ = 0;
blockName.aX = 0;
blockName.aY = 0;
blockName.aZ = 0;
blockName._y = blockName.Y;
blockName._x = blockName.X;
blockName.realZ = 0;
grasstufts._x = gameField.ball._x - 84;
grasstufts._y = gameField.ball._y - 175;
}
function setupBoard() {
if (blnShooting) {
sHUD.gotoAndStop(1);
sHUD._x = gameField.ball._x - 84;
sHUD._y = gameField.ball._y - 175;
}
}
function doButtonPressed() {
if (blnGameOn) {
if (action == "angle") {
action = "spin";
angleX = _xmouse;
angleY = _ymouse;
Mouse.show();
mouseSpinTarget._x = ballStartX;
mouseSpinTarget._y = ballStartY - (boxHeight / 2);
gotoAndPlay ("chooseSpinFrame");
} else if (action == "spin") {
action = "power";
gotoAndPlay ("choosePowerFrame");
} else if (action == "power") {
sHUD._x = -400;
sHUD._y = -400;
gameField.ball.vZ = (minPowerZ + (bonusPower * 5)) + ((powerModifier * powerModifierMultiplyer) / (1 + ((_ymouse * _ymouse) * ymousePowerModifier)));
gameField.ball.vX = calculateAngle(gameField.ball.vZ, angleX, gameField.ball._x);
gameField.ball.aX = Number(aXHolder) * ((powerModifier + (bonusSpin * 4)) * aXPowerEffect);
gameField.ball.vY = (calculateAngle(gameField.ball.vZ, angleY, gameField.ball._y) - (vYPowerbonus + (powerModifier * vYPowerBonusEffect))) + bonusPower;
if (aYHolder > 0) {
gameField.ball.aY = Number((gravity + aYHolder) + (bonusSpin / 10));
} else {
gameField.ball.aY = Number(gravity + aYHolder);
}
doKickAnimation();
mouseTarget._x = 1000;
mouseTarget.gotoAndStop(1);
action = "waiting";
} else if (action == "kick") {
if (((goal.golie._currentframe <= 2) && (!blnShooting)) && (!blnCaughtBall)) {
if (_xmouse > ((goal._x + goal.golie._x) + 35)) {
goal.golie.gotoAndPlay("jumpRightFrame");
} else {
goal.golie.gotoAndPlay("jumpLeftFrame");
}
}
}
}
}
function doKickAnimation() {
var _local1 = gameField.ball._x - 10;
if (_local1 > 360) {
kickRight._x = _local1;
kickRight.play();
} else {
kickLeft._x = _local1;
kickLeft.play();
}
}
function calculateAngle(speed, endloc, startloc) {
var _local2 = (horizonZ - initialZ) / speed;
var _local1 = (endloc - startloc) / _local2;
return(_local1);
}
function checkBlocker() {
croudSnd.setVolume(80);
if (blocker.hitTest(gameField.ball._x, gameField.ball._y - (gameField.ball._height / 2), true)) {
blockerSnd.start();
cheersSnd.start();
croudSnd.setVolume(100);
if (blocker.blocker1.hitTest(gameField.ball._x, gameField.ball._y - (gameField.ball._height / 2), false)) {
blocker.blocker1.gotoAndStop("hurtFrame");
} else if (blocker.blocker2.hitTest(gameField.ball._x, gameField.ball._y - (gameField.ball._height / 2), false)) {
blocker.blocker2.gotoAndStop("hurtFrame");
} else if (blocker.blocker3.hitTest(gameField.ball._x, gameField.ball._y - (gameField.ball._height / 2), false)) {
blocker.blocker3.gotoAndStop("hurtFrame");
}
gameField.ball.vZ = 0;
gameField.ball.vX = 0;
gameField.ball.aX = 0;
gameField.ball.vY = 0;
gameField.ball.ball.gotoAndStop(1);
doMiss();
doResolve();
action = "resolve";
} else {
gameField.swapDepths(blocker);
blnBallOnTop = false;
}
}
function checkGoal() {
cheersSnd.start();
croudSnd.setVolume(100);
if (goal.goalBar.hitTest(gameField.ball._x, gameField.ball._y - (gameField.ball._height / 2), true)) {
doBounce();
} else if (goal.golie.GBG.hitTest(gameField.ball._x, gameField.ball._y - (gameField.ball._height / 2), true)) {
doSave();
} else if (gameField.ball.hitTest(goal.goalNet)) {
if (blnBallOverGoal) {
gameField.swapDepths(goal);
blnBallOverGoal = false;
}
doGoal();
} else if (gameField.ball.Z > horizonZ) {
if (blnBallOverGoal) {
gameField.swapDepths(goal);
gameField.swapDepths(Net);
blnBallOverGoal = false;
}
doMiss();
} else {
doMiss();
}
}
function doGoal() {
trace("DOGOAL");
goalMsg.gotoAndPlay(2);
netSnd.start();
gameField.ball.vZ = 0;
gameField.ball.vX = 0;
gameField.ball.aX = 0;
gameField.ball.vY = 0;
gameField.ball.ball.gotoAndStop(1);
if (blnShooting) {
crowd.gotoAndStop("blueFrame");
if ((!blnPracticeKick) && (!blnPracticeSave)) {
points++;
pointsMe++;
totalPointsMe++;
}
} else {
crowd.gotoAndStop("redFrame");
if ((!blnPracticeKick) && (!blnPracticeSave)) {
points--;
pointsYou++;
totalPointsYou++;
}
}
goal.golie.golieFace.gotoAndStop("sadFrame");
}
function doSave() {
blnCaughtBall = true;
checkSave();
}
function doBounce() {
barSnd.start();
gameField.ball.vZ = gameField.ball.vZ * -0.1;
gameField.ball.aX = 0;
if (blnShooting) {
crowd.gotoAndStop("redFrame");
count = 1;
while (count <= 3) {
if (eval ("blocker.blocker" + count)._currentframe != 2) {
eval ("blocker.blocker" + count).gotoAndStop("happyFrame");
}
count++;
}
} else {
crowd.gotoAndStop("blueFrame");
}
goal.golie.golieFace.gotoAndStop("happyFrame");
}
function doMiss() {
if (blnShooting) {
crowd.gotoAndStop("redFrame");
count = 1;
while (count <= 3) {
if (eval ("blocker.blocker" + count)._currentframe != 2) {
eval ("blocker.blocker" + count).gotoAndStop("happyFrame");
}
count++;
}
} else {
crowd.gotoAndStop("blueFrame");
}
goal.golie.golieFace.gotoAndStop("happyFrame");
}
function doResolve() {
resolveTime = setTimeToResolve;
}
function doEnemyShot() {
do {
angleX = (220 - (level * 10)) + random(280 + (level * 20));
} while ((angleX > (380 + (level * 20))) && (angleX < (350 - (level * 20))));
if (angleX > 470) {
aXHolder = -1 * random(level / 10);
} else if (angleX < 250) {
aXHolder = random(level / 10);
} else {
aXHolder = (random(level) / 10) - random(level / 10);
}
trace(level);
trace("aXHolder" + aXHolder);
angleY = 130 + random(130);
if (angleY < 140) {
aYHolder = (random(10) / 1000) + (level / 50);
} else if (angleY > 270) {
aYHolder = (-1 * (random(8) / 1000)) + (level / 70);
}
aYHolder = ((random(10) / 500) - 0.01) + (level / 50);
powerModifier = (level + 14) + random(5);
gameField.ball.vZ = minPowerZ + (((powerModifier + level) * powerModifierMultiplyer) / (1 + ((_ymouse * _ymouse) * ymousePowerModifier)));
gameField.ball.vX = calculateAngle(gameField.ball.vZ, angleX, gameField.ball._x);
gameField.ball.aX = Number(aXHolder) * (powerModifier * aXPowerEffect);
gameField.ball.vY = calculateAngle(gameField.ball.vZ, angleY, gameField.ball._y) - (vYPowerbonus + (powerModifier * vYPowerBonusEffect));
gameField.ball.aY = Number(gravity + aYHolder);
doKickAnimation();
}
function doNextLevel() {
}
function matchOver() {
blnGameOn = false;
action = "over";
mouseTarget._x = -1000;
mouseSpinTarget._x = -1000;
Mouse.show();
totalPoints = totalPoints + points;
if (points <= 0) {
if (totalPoints < 0) {
totalPoints = 0;
}
msgTxt = (((("You lost the round!\n\nYour total was: " + totalPointsMe) + "\nOpponent's total was: ") + totalPointsYou) + "\nTotal Score: ") + totalPoints;
levelMsg.gotoAndPlay(2);
blnGameOver = true;
} else if (level < numRounds) {
msgTxt = "You won!\nGet ready for the next round.";
levelMsg.gotoAndPlay(2);
level++;
} else {
msgTxt = (((("YOU WON THE TOURNAMENT!!\nYour total was: " + totalPointsMe) + "\nOpponent's total was: ") + totalPointsYou) + "\nTotal Score: ") + totalPoints;
_root.longGoalSound.start();
levelMsg.gotoAndPlay(2);
blnGameOver = true;
}
}
function gameOver() {
removeClips();
blnGameOn = false;
gotoAndStop ("gameOverFrame");
}
function removeClips() {
gameField.removeMovieClip();
blocker.removeMovieClip();
goal.golie.removeMovieClip();
grasstufts.removeMovieClip();
mouseSpinTarget._x = 1000;
mouseTarget._x = 1001;
}
function checkSave() {
if ((goal.golie._currentframe > 2) && (goal.golie._currentframe <= 6)) {
_root.blnBouncedBall = true;
_root.gameField.ball.aX = 0;
_root.bounceBall(-10, -10);
} else if ((goal.golie._currentframe > 6) && (goal.golie._currentframe <= 13)) {
_root.blnBouncedBall = true;
_root.gameField.ball.aX = 0;
_root.bounceBall(-15, 0);
} else if ((goal.golie._currentframe > 13) && (goal.golie._currentframe <= 30)) {
_root.blnBouncedBall = true;
_root.gameField.ball.aX = 0;
_root.bounceBall(-5, 0);
} else if ((goal.golie._currentframe > 31) && (goal.golie._currentframe < 35)) {
_root.blnBouncedBall = true;
_root.gameField.ball.aX = 0;
_root.bounceBall(10, -10);
} else if ((goal.golie._currentframe > 35) && (goal.golie._currentframe <= 42)) {
_root.blnBouncedBall = true;
_root.gameField.ball.aX = 0;
_root.bounceBall(15, 0);
} else if ((goal.golie._currentframe > 42) && (goal.golie._currentframe <= 58)) {
_root.blnBouncedBall = true;
_root.gameField.ball.aX = 0;
_root.bounceBall(5, 0);
} else {
gameField.ball._x = 10000;
gameField.ball.X = 1000;
gameField.ball.vZ = 0;
gameField.ball.vX = 0;
gameField.ball.aX = 0;
gameField.ball.vY = 0;
blnCaughtBall = true;
goal.golie.readyMan.gotoAndStop("catchFrame");
}
}
function bounceBall(xShift, yShift) {
gameField.ball.vX = gameField.ball.vX + xShift;
gameField.ball.vY = gameField.ball.vY + yShift;
gameField.ball.vZ = gameField.ball.vZ * -0.1;
}
function KCButton() {
clickSound.start();
KCScreen._x = 0;
KCScreen._y = 0;
_root.btnActionHolder = _root.okButtonAction;
_root.okButtonAction = _root.KCOkButton;
}
function startButton() {
gotoAndPlay ("loadingFrame");
clickSound.start();
}
function helpMessageOk() {
clickSound.start();
helpMessage._x = -500;
helpMessage.gotoAndStop(1);
blnGameOn = true;
_root.okButtonAction = _root.btnActionHolder;
}
function KCOkButton() {
clickSound.start();
KCScreen._y = -700;
blnWaitForKey = false;
_root.okButtonAction = _root.btnActionHolder;
}
function createNewUser() {
userVars.data.points = highestPoints;
userVars.data.userVars.flush();
saveAndLoad();
}
function saveUserData() {
userVars.data.points = highestPoints;
userVars.data.userVars.flush();
}
function loadUserData() {
highestPoints = Number(userVars.data.points);
}
endContainer.playAgain = new eval (function () {
gotoAndPlay ("introFrame");
})();
Instance of Symbol 99 MovieClip in Frame 1
onClipEvent (keyDown) {
tKey = Key.getCode();
_parent.pressKey(tKey);
trace(tKey);
trace(chr(tKey));
}
Instance of Symbol 109 MovieClip "Bar" in Frame 1
onClipEvent (enterFrame) {
numTotal = _root.getBytesTotal();
numLoaded = _root.getBytesLoaded();
numPercent = Math.floor((numLoaded * 100) / numTotal);
this.gotoAndStop(numPercent);
if (numPercent < 10) {
strL = "0" + numPercent;
} else {
strL = numPercent;
}
_root.strLoaded = strL + "%";
if (numPercent >= 99) {
_root.gotoAndPlay("introFrame");
}
}
Frame 5
stop();
_root.croudSnd.stop();
_root.longGoalSound.start();
_root.croudSnd.start(0, 999);
_root.croudSnd.setVolume(50);
Frame 10
stop();
poppedHelp4 = 0;
poppedHelp1 = 0;
poppedHelp2 = true;
poppedHelp3 = true;
blnPracticeKick = true;
blnPracticeSave = false;
_root.okButtonAction = startButton;
Frame 15
init();
blnPracticeKick = true;
blnPracticeSave = false;
_root.okButtonAction = undefined;
Frame 21
if (blnPracticeKick) {
skippractbut._visible = true;
goal.golie._x = 10000;
count = 1;
while (count <= 3) {
eval ("blocker.blocker" + count)._x = 1000;
count++;
}
} else if (blnPracticeSave) {
skippractbut._visible = true;
} else {
skippractbut._visible = false;
}
trace("gamefieldDepth2" + _root.gameField.getDepth());
Mouse.show();
_root.startNewLevel();
trace("gamefieldDepth3" + _root.gameField.getDepth());
stop();
Instance of Symbol 528 MovieClip "blocker" in Frame 21
onClipEvent (load) {
trace("SETTING LAYERS");
_root.startingBlockerDepth = _root.blocker.getDepth();
_root.startingGoalDepth = _root.goal.getDepth();
_root.startingGameFieldDepth = _root.gameField.getDepth();
_root.startingNetDepth = _root.Net.getDepth();
}
Frame 22
stop();
Mouse.hide();
if (blnPracticeKick) {
helpTextT = "PRACTICE SHOOTING\nClick to aim. This is where the ball will hit the net with no spin.";
if (poppedHelp1 < 4) {
if (poppedHelp1 < 1) {
pop(helpText1, 10, 100, 5);
}
poppedHelp1++;
} else {
helpText1._x = -700;
}
} else {
helpText1._x = -700;
}
Frame 23
stop();
if (blnPracticeKick) {
helpTextT = "PRACTICE\n Click a location on the ball to add spin and change where the ball will go.";
} else {
helpTextT = "Choose your spin by clicking on the ball. High spins will change where the ball will hit the net.";
}
if (poppedHelp2) {
pop(helpText1, 10, 100, 5);
poppedHelp2 = false;
}
Frame 24
stop();
if (blnPracticeKick) {
helpTextT = "PRACTICE\nWatch the power gauge and click to choose your power.";
} else {
helpTextT = "Watch the power gauge and click to choose your power. High power will cause the ball to rise.";
}
if (poppedHelp3) {
pop(helpText1, 10, 100, 5);
poppedHelp3 = false;
}
Frame 25
stop();
mouseSpinTarget._x = 1000;
Frame 26
stop();
Frame 30
stop();
musicSound.stop();
goal.golie.stop();
Mouse.show();
croudSnd.stop();
cheersSnd.stop();
endContainer.g_numScore = totalPoints;
mcGameEnd.removeMovieClip();
if ((crypto == 2) || (crypto == 0)) {
postGameLog();
_root.xmlGameEnd.load((gameEndSubmitUrl + "?params=") + TEAEncrypt((((("freePlayID=" + freeplayid) + "&score=") + endContainer.g_numScore) + "&timeStamp=") + timeStamp, tKey));
} else {
trace("config");
_root.t_fLoadGameEnd();
}
_root.okButtonAction = endContainer.playAgain;
Symbol 32 Button
on (release) {
if (_root.blnWaitForKey == false) {
_root.blnWaitForKey = true;
_root.waitingCommandName = this.myName;
_parent.hitChosenKey._x = 188.8;
}
}
Symbol 33 MovieClip [keyCommandChanger] Frame 2
txtFld.text = this.myMsg;
keyFld.text = "";
switch (myAsciKey) {
case 39 :
specialImg.gotoAndStop("arrowRightFrame");
break;
case 37 :
specialImg.gotoAndStop("arrowLeftFrame");
break;
case 40 :
specialImg.gotoAndStop("arrowDownFrame");
break;
case 38 :
specialImg.gotoAndStop("arrowUpFrame");
break;
case 13 :
specialImg.gotoAndStop("enterFrame");
break;
default :
specialImg.gotoAndStop(1);
keyFld.text = chr(myAsciKey);
trace("default " + chr(myAsciKey));
}
Symbol 33 MovieClip [keyCommandChanger] Frame 3
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 4
_root.action = "kick";
_root.gotoAndPlay("kickFrame");
_root.kickSnd.start();
_root.gameField.ball.ball.play();
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 10
gotoAndPlay (2);
Symbol 54 MovieClip [sBall] Frame 1
boxImg.usedSymbol._visible = false;
var myCal = "";
var myX = 0;
var myY = 0;
Symbol 75 Button
on (release) {
if (_root.blnWaitForKey == false) {
_root.blnWaitForKey = true;
_root.waitingCommandName = this.myName;
_parent.hitChosenKey._x = 188.8;
}
}
Symbol 76 MovieClip [keyCommandChanger] Frame 2
txtFld.text = this.myMsg;
keyFld.text = "";
switch (myAsciKey) {
case 39 :
specialImg.gotoAndStop("arrowRightFrame");
break;
case 37 :
specialImg.gotoAndStop("arrowLeftFrame");
break;
case 40 :
specialImg.gotoAndStop("arrowDownFrame");
break;
case 38 :
specialImg.gotoAndStop("arrowUpFrame");
break;
case 13 :
specialImg.gotoAndStop("enterFrame");
break;
default :
specialImg.gotoAndStop(1);
keyFld.text = chr(myAsciKey);
trace("default " + chr(myAsciKey));
}
Symbol 76 MovieClip [keyCommandChanger] Frame 3
stop();
Symbol 78 MovieClip [teleportSquares] Frame 1
stop();
Symbol 80 MovieClip [greenSquresHere] Frame 1
stop();
Symbol 83 Button
on (release, releaseOutside) {
if (_currentframe == 1) {
_root.clickSound.start();
_root.blnGameOn = false;
play();
}
}
on (rollOver) {
_parent.blnGameOnHolder = _root.blnGameOn;
_root.blnGameOn = false;
_root.mouseTarget._x = -100;
Mouse.show();
}
on (rollOut) {
if (_parent.blnGameOnHolder == true) {
Mouse.hide();
}
_root.blnGameOn = _parent.blnGameOnHolder;
}
Symbol 92 Button
on (release, releaseOutside) {
_parent.pressButton();
if (_parent.blnGameOnHolder == true) {
Mouse.hide();
}
_root.blnGameOn = _parent.blnGameOnHolder;
play();
}
Symbol 94 MovieClip [helpwindow] Frame 1
stop();
Symbol 94 MovieClip [helpwindow] Frame 14
stop();
Symbol 94 MovieClip [helpwindow] Frame 27
gotoAndStop (1);
Symbol 104 MovieClip Frame 1
if (_root.logoUrl == undefined) {
play();
} else {
loadBrandMov.loadMovie(_root.logoUrl);
stop();
}
Symbol 104 MovieClip Frame 2
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
if (_root.poppedHelp4 < 4) {
this._x = 170;
fade(myBoard, 0, 100, 5);
_root.poppedHelp4++;
}
if (_root.blnPracticeSave) {
theText.text = "GOALIE PRACTICE\n Use the mouse to move and click to dive!";
} else {
theText.text = "Your opponent is shooting! Use the mouse to move and click to dive!";
}
Symbol 128 MovieClip Frame 80
this._x = -500;
Symbol 142 Button
on (release) {
_root.clickSnd.start();
_root.bonusPower++;
_root.startNewRound();
_root.pb.pbBack.gotoAndStop(1 + _root.bonusPower);
_x = -500;
}
on (rollOver) {
_root.overSnd.start();
_root.msgTxt = ("Kick with more devastating power.\nCurrent Power Level: " + (1 + _root.bonusPower)) + " of 5";
}
on (rollOut) {
_root.msgTxt = "Choose a skill to upgrade.";
}
Symbol 145 Button
on (release) {
_root.clickSnd.start();
_root.startNewRound();
_root.bonusSpin++;
_root.mouseTarget.spinSymbol.gotoAndStop(1 + _root.bonusSpin);
_x = -500;
}
on (rollOver) {
_root.overSnd.start();
_root.msgTxt = ("Spin the ball to fool the goalie.\nCurrent Spin Level: " + (1 + _root.bonusSpin)) + " of 5";
}
on (rollOut) {
_root.msgTxt = "Choose a skill to upgrade.";
}
Symbol 150 Button
on (release) {
_root.clickSnd.start();
_root.startNewRound();
_root.bonusGoalie++;
_x = -500;
}
on (rollOver) {
_root.overSnd.start();
_root.msgTxt = ("Make your goalie faster on his feet.\nCurrent Goalie Level: " + (1 + _root.bonusGoalie)) + " of 5";
}
on (rollOut) {
_root.msgTxt = "Choose a skill to upgrade.";
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
this._x = 170;
myTitle._visible = true;
fade(myBoard, 0, 100, 5);
pop(myTitle, 20, 100, 20);
Symbol 151 MovieClip Frame 78
myTitle._visible = false;
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
this._x = 170;
fade(myBoard, 0, 100, 5);
themsg._y = 90 - (themsg.textHeight / 2);
Symbol 153 MovieClip Frame 140
this._x = -500;
trace("GOAWAY");
if (_root.points == 0) {
_root.shotsLeft = 2;
_root.startNewRound();
} else if (_root.blnGameOver) {
_root.gameOver();
} else {
trace("gamefieldDepth1" + _root.gameField.getDepth());
_root.blnGameOn = false;
_root.startNewLevel();
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
this._x = 170;
if ((!_root.blnPracticeKick) && (!_root.blnPracticeSave)) {
if (random(2) == 0) {
_root.shortGoalSound.start();
} else {
_root.multigoalSound.start();
}
}
fade(myBoard, 0, 100, 5);
Symbol 155 MovieClip Frame 60
this._x = -500;
Symbol 552 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 553 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 554 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 555 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 556 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 557 MovieClip [__Packages.KeyboardCommand] Frame 0
class KeyboardCommand
{
var myName, myMsg, myAsciKey;
function KeyboardCommand (tName, tMessage, tAsciKey) {
myName = tName;
trace(tName);
myMsg = tMessage;
myAsciKey = tAsciKey;
}
}
Symbol 558 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 223 MovieClip Frame 31
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 6
stop();
Symbol 294 MovieClip Frame 1
stop();
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 2
stop();
Symbol 294 MovieClip Frame 5
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 8
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 11
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 13
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 15
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 17
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 28
stop();
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 33
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 35
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 38
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 41
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 43
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 45
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 47
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 49
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 294 MovieClip Frame 57
stop();
Symbol 351 MovieClip Frame 31
stop();
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 6
stop();
Symbol 425 MovieClip Frame 1
stop();
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 2
stop();
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 5
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 8
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 11
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 13
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 15
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 17
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 19
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 27
stop();
Symbol 425 MovieClip Frame 33
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 35
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 38
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 41
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 43
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 45
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 47
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 49
if (_root.blnCaughtBall) {
hands.gotoAndStop("ballFrame");
}
Symbol 425 MovieClip Frame 57
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
Symbol 483 Button
on (release) {
_root.clickSnd.start();
_root.gotoAndPlay("loadingFrame");
}
on (rollOver) {
_root.overSnd.start();
}
Symbol 484 MovieClip Frame 1
slideIn(txtSoc, -200, 50);
wait(0.2);
Symbol 484 MovieClip Frame 3
_root.blockSound.start();
Symbol 484 MovieClip Frame 4
slideIn(txtShoot, 300, 50);
wait(0.2);
Symbol 484 MovieClip Frame 11
slideIn(txtKickass, 200, 30);
Symbol 484 MovieClip Frame 12
_root.slamSound.start();
pop(txtKick, 20, 100, 15);
txtArk._alpha = 100;
wait(0.5);
stop();
Symbol 487 MovieClip Frame 33
_root.slamSound.start();
Symbol 487 MovieClip Frame 36
slideIn(myTitle, -500, 5);
_root.croudSnd.setVolume(100);
Symbol 487 MovieClip Frame 44
_root.blockSound.start();
Symbol 487 MovieClip Frame 100
_root.gotoAndPlay("startFrame");
stop();
Symbol 488 Button
on (release) {
if (_currentframe > 5) {
_parent.g_fSetSoundOn();
this.gotoAndStop("off");
} else {
_parent.g_fSetSoundOff();
this.gotoAndStop("on");
}
}
on (rollOver) {
_parent.blnGameOnHolder = _root.blnGameOn;
_root.blnGameOn = false;
_root.mouseTarget._x = -100;
Mouse.show();
}
on (rollOut) {
if (_parent.blnGameOnHolder == true) {
Mouse.hide();
}
_root.blnGameOn = _parent.blnGameOnHolder;
}
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 6
stop();
Symbol 502 Button
on (release) {
if (blnPracticeKick) {
gameField.ball._x = -1000;
helpText1._x = -700;
blnPracticeKick = false;
blnPracticeSave = true;
Mouse.show();
init();
_root.startNewLevel();
} else {
gameField.ball._x = -1000;
blnPracticeSave = false;
skippractbut._visible = false;
enemyShootingMsg._x = 6000;
level = 1;
blnGameOn = false;
Mouse.show();
init();
_root.startNewLevel();
}
sHUD._x = -500;
mouseSpinTarget._x = -500;
mouseTarget._x = -500;
Mouse.show();
}
Symbol 510 MovieClip Frame 8
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 511 MovieClip Frame 3
stop();
Symbol 518 MovieClip Frame 8
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 2
stop();
Symbol 519 MovieClip Frame 3
stop();
Symbol 526 MovieClip Frame 8
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Symbol 527 MovieClip Frame 3
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 1
function playAgain() {
_root.playAgain();
}
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 2
play();
Symbol 548 MovieClip Frame 4
_root.kickSnd.start();
Symbol 548 MovieClip Frame 11
_root.action = "kick";
_root.gotoAndPlay("kickFrame");
_root.gameField.ball.ball.play();