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);
if (freeplayid != undefined) {
downloadURL = downloadURL + affiliateId;
}
var _local1 = new Array();
_local1 = endURL.split(".");
var _local2 = _local1[_local1.length - 1];
if ((_local2 == "aspx") || (_local2 == "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, myVol, isMusic) {
sndController.createEmptyMovieClip(soundName, numSounds + 1);
Set(soundName, new Sound(eval ("sndController." + soundName)));
eval (soundName).attachSound(soundName);
eval (soundName).setVolume(myVol);
eval (soundName).myVol = myVol;
eval (soundName).isMusic = isMusic;
soundsArray[numSounds] = eval (soundName);
trace(soundsArray[numSounds].myVol);
numSounds++;
}
function g_fSetSoundOn() {
countS = 1;
while (countS < numSounds) {
if (!soundsArray[countS].isMusic) {
soundsArray[countS].setVolume(soundsArray[countS].myVol);
}
countS++;
}
g_sndGlobalSound.setVolume(100);
sndClick.start();
}
function g_fSetSoundOff() {
countS = 1;
while (countS < numSounds) {
if (!soundsArray[countS].isMusic) {
soundsArray[countS].setVolume(0);
}
countS++;
}
g_sndGlobalSound.setVolume(0);
}
function g_fSetMusicOn() {
countS = 1;
while (countS < numSounds) {
if (soundsArray[countS].isMusic) {
soundsArray[countS].setVolume(soundsArray[countS].myVol);
}
countS++;
}
sndClick.start();
}
function g_fSetMusicOff() {
countS = 1;
while (countS < numSounds) {
if (soundsArray[countS].isMusic) {
soundsArray[countS].setVolume(0);
}
countS++;
}
}
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();
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
TextField.prototype.tabEnabled = false;
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 = 0;
var g_sndGlobalSound = new Sound();
var soundsArray = new Array();
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;
gameHeight = 600;
gameWidth = 600;
frameRate = 30;
msgX = 0;
msgY = 0;
g_fSetGameSize(600, 500);
timeWarningAt = 5;
blnStartGame = false;
blnGameOver = false;
blnGameOn = false;
var strState = "";
var PI = Math.PI;
var viewHeight = 270;
var viewHeightDist = 350;
var angleRatio = 2;
var steerRatio = 0.008;
var leftBorder = 20;
var rightBorder = 580;
var leftBoard = 248;
var boardTopY = 172;
var center = (((rightBorder - leftBorder) / 2) + leftBorder);
var rightBoard = (rightBorder - (leftBoard - leftBorder));
var borderAngle = Math.atan((gameHeight - boardTopY) / (leftBoard - leftBorder));
var borderProect = (borderAngle / (PI - borderAngle));
var bATang = Math.tan(borderAngle);
var blnAllowThr = false;
var startForceY = (gameHeight - 70);
var forceYLength = 200;
var forceStrike;
var sideFwdTState = 0;
var ballR = 9;
var arrowLength = 50;
var blnRoll = false;
var numCalc = 0;
var viewCos;
var distRatio;
var viewDistStart = Math.sqrt((viewHeight * viewHeight) + (viewHeightDist * viewHeightDist));
var viewDist = viewDistStart;
var dY;
var dY1;
var dX;
var dX1;
var maxAngle = 0.4;
var maxSpeed = 60;
var minSpeed = 20;
var visualAngle = 0;
var moveAngle = 0;
var azimuth;
var MATan = Math.tan(maxAngle + 0.4);
var blnBorder = false;
var blnBorderRoll = false;
var minBorderX = 0.1;
var maxBorderX = 1.4;
var arrFalling = new Array();
var blnFirstFrame = true;
var arrPin2Pin = new Array();
i = 0;
while (i < 11) {
arrPin2Pin[i] = new Array();
i++;
}
var pinDepth = 100;
var arrPinX = new Array();
var arrPinY = new Array();
var layer1 = new Array();
var layer2 = new Array();
var layer3 = new Array();
var layer0 = new Array();
var obj;
var depthLayer1 = new Array();
var depthLayer2 = new Array();
var depthLayer3 = new Array();
var depthLayer0 = new Array();
var fSpeed = 34;
var blnStrike = false;
var blnSecondThrow = false;
var blnSpare = false;
var fallCnt = 0;
var totalPinCnt = 0;
var numFrame = 1;
var totalPins = 0;
var totalScores = 0;
var loan = new Array();
var waitFrames = 50;
var waitCnt = 0;
var lastStrikeState = 0;
var blnRollOver = false;
var blnMouse = true;
var blnSoundOff = false;
var blnRules = false;
var blnSplit = false;
i = 1;
while (i < 11) {
this["snd" + i] = new Sound(eval ("sndController" + i));
i++;
}
var snd11 = new Sound(sndController.createEmptyMovieClip("snd1", 1000));
var snd12 = new Sound(sndController.createEmptyMovieClip("snd2", 1001));
var snd13 = new Sound(sndController.createEmptyMovieClip("snd3", 1002));
var snd14 = new Sound(sndController.createEmptyMovieClip("snd4", 1003));
var snd15 = new Sound(sndController.createEmptyMovieClip("snd5", 1004));
var rootSnd = new Sound(this);
var rollVol = 100;
var rollSndState = 0;
var setScoref1 = new Array(10);
var setScoref2 = new Array(10);
var finalScore = new Array();
finalScore = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var myStrike = 0;
createSound("clickSound", 100, false);
createSound("overSound", 100, false);
createSound("musicLoop", 90, true);
createSound("wrongSound", 100, false);
createSound("youWinSound", 100, false);
createSound("accent", 70, false);
createSound("waveSound1", 30, false);
musicLoop.start(0, 999);
createHelp("timerBonus", "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.");
_root.onEnterFrame = function () {
if (blnGameOn) {
presentHelp();
}
if (!blnRules) {
switch (strState) {
case "ballPos" :
ballPos();
break;
case "force" :
force();
break;
case "roll" :
scoreBoard.gotoAndStop("pinDance");
roll();
break;
case "ballFalls" :
roll();
}
}
if ((strState == "wait") && (!blnRules)) {
waitCnt++;
if (waitCnt > waitFrames) {
waitCnt = 0;
if (blnSecondThrow) {
scoreBoard.gotoAndPlay("pinStatus");
}
mcHandsWithBall.gotoAndStop(1);
strState = "ballPos";
blnMouse = true;
Mouse.show();
loud(13, false, "bell", 70);
}
}
};
function gameOver() {
Mouse.show();
blnMouse = true;
scoreBoard.gotoAndPlay("game is over");
mcScores.txtTotal.text = totalScores;
strState = "wait";
waitFrames = 100000 /* 0x0186A0 */;
blnGameOn = false;
Mouse.show();
}
function gameInit() {
if (sweeper._x <= 30) {
this.attachMovie("pin area", "sweeper", 8007);
}
mcBackground.swapDepths(75);
mcTopBG.swapDepths(8000);
sweeper.swapDepths(8007);
scoreBoard.swapDepths(8008);
discoBall.swapDepths(8009);
mcForce.swapDepths(8010);
mcQuitSubmit.swapDepths(8011);
mcRules.swapDepths(8014);
neonBoard.swapDepths(8016);
brandingMC.swapDepths(12000);
mcHandsWithBall.swapDepths(13000);
arrowDepth = 14000;
this.attachMovie("mcScores", "mcScores", 11000);
mcScores._x = center;
mcScores._y = gameHeight / 2;
mcScores._visible = false;
blnGameOn = true;
this.attachMovie("mcSweeperMask", "mcSweeperMask", 1348);
mcSweeperMask._y = 10._y;
mcSweeperMask._x = 10._x;
sweeper.setMask(mcSweeperMask);
pinUpMask.swapDepths(328);
}
function clearMovieClips() {
scoreBoard.removeMovieClip();
discoBall.removeMovieClip();
mcBackground.removeMovieClip();
mcTopBG.removeMovieClip();
mcForce.removeMovieClip();
mcQuitSubmit.removeMovieClip();
brandingMC.removeMovieClip();
neonBoard.removeMovieClip();
mcRules.removeMovieClip();
mcRulesHook.removeMovieClip();
mcRulesField.removeMovieClip();
mcHandsWithBall.removeMovieClip();
mcScores.removeMovieClip();
mcBall.removeMovieClip();
mcArrow.removeMovieClip();
mcRollArrow.removeMovieClip();
pinUpMask.removeMovieClip();
mcSweeperMask.removeMovieClip();
sweeper.removeMovieClip();
i = 1;
while (i < 11) {
eval (i).removeMovieClip();
i++;
}
_root.gotoAndStop("gameOverFrame");
}
function loud(device, infinite, snd, vol) {
if (!blnSoundOff) {
eval ("snd" + device).attachSound(snd);
if (vol > 100) {
vol = 100;
}
if (vol > -1) {
eval ("snd" + device).setVolume(vol);
}
if (infinite) {
eval ("snd" + device).start(0, 999);
} else {
eval ("snd" + device).start(0, 1);
}
}
}
function steering() {
if (((!blnBorder) && (!blnBorderRoll)) && (mcRollArrow._x > -1)) {
arrowAngle = (-steerRatio) * (mcBall._x - this._xmouse);
if (Math.abs(arrowAngle) > 1.2) {
arrowAngle = (Math.abs(arrowAngle) / arrowAngle) * 1.2;
}
var tmpDX = dX;
dX = dX - ((arrowAngle * 0.1) * dY);
var gf = ((-dX) / dY);
if (!((gf < (-MATan)) || (gf > MATan))) {
mcRollArrow._rotation = ((-180 / PI) * Math.atan(dX / dY)) + arrowAngle;
cX = 0;
cY = arrowLength / 2;
aX = (Math.sin(arrowAngle) * arrowLength) / 2;
aY = (arrowLength / 2) + ((Math.cos(arrowAngle) * arrowLength) / 2);
with (mcRollArrow) {
mcArrowBack.clear();
mcArrowBack.moveTo(0, 0);
mcArrowBack.lineStyle(10, 16724991, 100);
mcArrowBack.curveTo(cX, cY, aX, aY);
mcArrowBack.moveTo(0, 0);
mcArrowBack.lineStyle(8, 16777215, 100);
mcArrowBack.curveTo(cX, cY, aX, aY);
}
} else {
dX = tmpDX;
}
}
}
function roundInit() {
mcArrow.removeMovieClip();
removeMovieClip(mcBall);
removeMovieClip(mcRollArrow);
mcForce._visible = false;
strState = "ballPos";
blnBorder = false;
blnBorderRoll = false;
viewHeightDist = 300;
blnAllowThr = false;
blnRoll = false;
blnSplit = false;
blnFirstPin = true;
blnPocket = false;
sideFwdTState = 0;
if (!blnFirstFrame) {
Mouse.show();
blnMouse = true;
blnStrike = false;
blnSpare = false;
fallCnt = 0;
i = 1;
while (i < 11) {
j = 1;
while (j < 11) {
arrPin2Pin[i][j] = 0;
j++;
}
if (arrFalling[i] == 1) {
arrFalling[i] = -1;
fallCnt++;
}
i++;
}
if ((!blnSecondThrow) && (fallCnt >= 5)) {
dSplit = (center - leftBoard) - 12;
i = 1;
while (i < 11) {
if (arrFalling[i] == 0) {
j = 1;
while (j < 11) {
if ((arrFalling[j] == 0) && (Math.abs(eval (i)._x - eval (j)._x) > dSplit)) {
blnSplit = true;
break;
}
j++;
}
}
i++;
}
}
totalPins = totalPins + fallCnt;
totalPinCnt = totalPinCnt + fallCnt;
if (blnSecondThrow) {
if (totalPinCnt == 10) {
blnSpare = true;
}
printScores(fallCnt);
if (blnSpare && (numFrame >= 10)) {
if (lastStrikeState == 0) {
lastStrikeState = 2;
}
}
totalPinCnt = 0;
sweeper.gotoAndPlay("refresh");
numFrame++;
blnSecondThrow = false;
} else if (fallCnt == 10) {
blnStrike = true;
sweeper.gotoAndPlay("refresh");
totalPinCnt = 0;
printScores(fallCnt);
if (numFrame == 10) {
lastStrikeState = 1;
}
numFrame++;
blnSecondThrow = false;
} else {
sweeper.gotoAndPlay("sweep");
printScores(fallCnt);
blnSecondThrow = true;
}
strState = "wait";
if ((numFrame > 10) && ((lastStrikeState == 0) || (lastStrikeState > 2))) {
gameOver();
sweeper.removeMovieClip();
mcSweeperMask.removeMovieClip();
}
}
if (blnFirstFrame) {
blnFirstFrame = false;
i = 1;
while (i < 11) {
j = 1;
while (j < 11) {
arrPin2Pin[i][j] = 0;
j++;
}
arrFalling[i] = 0;
arrPinX[i] = eval (i)._x;
arrPinY[i] = eval (i)._y;
i++;
}
destributePinDepths();
}
steerRatio = 0.0073 * (Math.random() + 0.4);
}
function newGame() {
i = 0;
while (i < 3) {
loan[i] = 0;
i++;
}
numFrame = 1;
lastStrikeState = 0;
i = 1;
while (i < 11) {
mcScores["f" + i].text = " ";
mcScores[("f" + i) + "a"].text = " ";
mcScores[("f" + i) + "b"].text = " ";
i++;
}
mcScores.f10c.text = "";
mcScores.txtTotal.text = "";
mcScores.txtPinTotal.text = "";
totalPins = 0;
waitFrames = 100;
waitCnt = 0;
totalScores = 0;
blnSecondThrow = false;
}
function arrangePins() {
strState == "wait";
i = 1;
while (i < 11) {
arrFalling[i] = 0;
eval (i).removeMovieClip();
this.attachMovie("mcPin", i, pinDepth + i);
eval (i)._x = arrPinX[i];
eval (i)._y = arrPinY[i];
eval (i)._yscale = 115;
eval (i)._xscale = 115;
myColorTransform = {ra:100, rb:-6, ga:100, gb:-16, ba:88, bb:255, aa:100, ab:255};
myColor = new Color(eval (i));
myColor.setTransform(myColorTransform);
done = false;
i++;
}
i = 0;
while (i < 4) {
delete eval ("depthLayer" + i);
i++;
}
depthLayer1 = new Array();
depthLayer2 = new Array();
depthLayer3 = new Array();
depthLayer0 = new Array();
destributePinDepths();
}
function printScores(pins) {
var loan1 = 0;
var loan2 = 0;
totalScores = totalScores + pins;
i = 0;
while (i < 3) {
if (((loan[i] > 0) && (loan1 != loan[i])) && (loan2 != loan[i])) {
if (lastStrikeState < 1) {
totalScores = totalScores + pins;
}
if (loan1 == 0) {
loan1 = loan[i];
} else {
loan2 = loan[i];
}
mcScores["f" + loan[i]].text = Number(mcScores["f" + loan[i]].text) + pins;
finalScore[loan[i]] = finalScore[loan[i]] + pins;
loan[i] = 0;
}
i++;
}
finalScore[numFrame] = totalScores;
scoreBoard.gotoAndPlay(2);
if (lastStrikeState >= 1) {
if (lastStrikeState == 1) {
if (blnStrike) {
mcScores.f10b.text = "X";
setScoref2[10] = 10;
} else if (blnSpare) {
mcScores.f10b.text = "/";
setScoref2[10] = 11;
} else {
mcScores.f10b.text = pins;
setScoref2[10] = pins;
}
}
if (lastStrikeState == 2) {
if (blnStrike) {
mcScores.f10c.text = "X";
} else if (blnSpare) {
mcScores.f10c.text = "/";
} else {
mcScores.f10c.text = pins;
}
}
} else if (blnStrike) {
i = 0;
while (i < 3) {
if (loan[i] == 0) {
loan[i] = numFrame;
break;
}
i++;
}
i = 0;
while (i < 3) {
if (loan[i] == 0) {
loan[i] = numFrame;
break;
}
i++;
}
mcScores[("f" + numFrame) + "a"].text = "X";
eval (("scoreBoard.game" + numFrame) + ".f1").gotoAndStop(11);
gotStrike = true;
} else if (blnSpare) {
i = 0;
while (i < 3) {
if (loan[i] == 0) {
loan[i] = numFrame;
break;
}
i++;
}
mcScores[("f" + numFrame) + "b"].text = "/";
eval (("scoreBoard.game" + numFrame) + ".f2").gotoAndStop(12);
gotSpare = true;
} else {
if (pins == 0) {
tmp = 0;
} else {
tmp = pins;
myFrame = tmp + 1;
}
if (blnSecondThrow) {
mcScores[("f" + numFrame) + "b"].text = tmp;
trace("myFrame" + myFrame);
eval (("scoreBoard.game" + numFrame) + ".f2").gotoAndStop(myFrame);
_root.setScoref2[numFrame] = tmp;
} else {
mcScores[("f" + numFrame) + "a"].text = tmp;
trace("myFrame" + myFrame);
eval (("scoreBoard.game" + numFrame) + ".f1").gotoAndStop(myFrame);
_root.setScoref1[numFrame] = tmp;
}
}
if (blnStrike || (blnSecondThrow)) {
mcScores["f" + numFrame].text = totalScores;
}
if (lastStrikeState > 0) {
lastStrikeState++;
}
if (blnStrike) {
scoreBoard.gotoAndPlay("strike");
myStrike = myStrike + 1;
if (myStrike > 3) {
myStrike = 1;
}
if (myStrike == 3) {
scoreBoard.gotoAndPlay("turkey");
}
_root.setScoref1[numFrame] = 10;
_root.setScoref2[numFrame] = undefined;
if (numFrame == 11) {
setScoref2[10] = 10;
}
} else if (blnSpare) {
myStrike = 0;
scoreBoard.gotoAndPlay("spare");
_root.setScoref2[numFrame] = 11;
info._xscale = 70;
info._yscale = 70;
info._x = center;
info._y = -35;
info.gotoAndPlay(1);
} else {
myStrike = 0;
}
}
function destributePinDepths() {
i = 1;
while (i < 11) {
obj = eval (i);
obj.state = "stay";
if (i < 5) {
depthLayer1[i] = 1;
obj.swapDepths(100 + i);
obj.layer = 1;
} else if (i < 8) {
depthLayer2[i] = 1;
obj.swapDepths(120 + i);
obj.layer = 2;
} else if (i < 10) {
depthLayer3[i] = 1;
obj.swapDepths(140 + i);
obj.layer = 3;
} else if (i == 10) {
obj.swapDepths(160);
obj.layer = 4;
}
i++;
}
}
function ballPos() {
var _local3 = 2;
var _local4 = (this._xmouse - mcHandsWithBall._x) / _local3;
var _local2 = mcHandsWithBall._x + _local4;
if (!((_local2 < (leftBorder + 50)) || (_local2 > (rightBorder - 50)))) {
mcHandsWithBall._x = _local2;
} else if (_local2 < (leftBorder + 50)) {
mcHandsWithBall._x = leftBorder + 50;
} else {
mcHandsWithBall._x = rightBorder - 50;
}
}
function force() {
var _local1 = 3;
mcArrow._x = mcArrow._x + ((_xmouse - mcArrow._x) / _local1);
mcArrow._y = mcArrow._y + ((_ymouse - mcArrow._y) / _local1);
forceStrike = (startForceY - _ymouse) / forceYLength;
if (forceStrike > 1) {
forceStrike = 1;
}
if (forceStrike < 0) {
forceStrike = 0;
}
mcForce.gotoAndStop(2 + Math.round(16 * forceStrike));
visualAngle = Math.atan((_xmouse - mcHandsWithBall._x) / (_ymouse - gameHeight));
mcArrow._rotation = (-180 * visualAngle) / PI;
}
function roll() {
if (blnAllowThr) {
if (!blnRoll) {
blnRoll = true;
this.attachMovie("mcBall", "mcBall", 9999);
mcBall._x = mcHandsWithBall._x;
mcBall._y = gameHeight + 25;
mcForce._visible = false;
this.attachMovie("mcRollArrow", "mcRollArrow", this.getNextHighestDepth());
mcRollArrow._alpha = 80;
steering();
rollVol = 100 * Math.pow(Math.sqrt((dY * dY) + (dX * dX)) / maxSpeed, 0.6);
loud(12, true, "roll1", rollVol);
if (rollVol < 50) {
loud(11, false, "throw", rollVol * 1.4);
} else {
loud(11, false, "throw2", rollVol * 0.7);
}
rollSndState = 1;
}
mcRollArrow._x = this._xmouse;
mcRollArrow._y = this._ymouse;
switch (numCalc) {
case 0 :
numCalc++;
distRatio = viewDistStart / Math.sqrt((viewHeightDist * viewHeightDist) + (viewHeight * viewHeight));
viewCos = Math.sqrt(Math.cos(Math.atan(viewHeightDist / viewHeight)));
mcBall._yscale = distRatio * 100;
mcBall._xscale = mcBall._yscale;
break;
case 1 :
numCalc++;
distRatio = viewDistStart / Math.sqrt((viewHeightDist * viewHeightDist) + (viewHeight * viewHeight));
mcBall._yscale = distRatio * 100;
mcBall._xscale = mcBall._yscale;
snd12.setVolume(distRatio * rollVol);
steering();
case 2 :
if (blnBorderRoll) {
if (((gameHeight - mcBall._y) / ((mcBall._x - leftBorder) + 10)) > bATang) {
mcBall._x = mcBall._x + 0.2;
} else if (((gameHeight - mcBall._y) / ((rightBorder + 10) - mcBall._x)) > bATang) {
mcBall._x = mcBall._x - 0.2;
}
}
numCalc = 1;
viewCos = Math.sqrt(Math.cos(Math.atan(viewHeightDist / viewHeight)));
break;
default :
numCalc++;
}
if ((((((((gameHeight - mcBall._y) / (mcBall._x - leftBorder)) > bATang) || (((gameHeight - mcBall._y) / (rightBorder - mcBall._x)) > bATang)) && (!blnBorderRoll)) && (!blnBorder)) && (strState != "ballFalls")) && (mcBall._y > boardTopY)) {
dX1 = dX1 * 1.7;
if (Math.abs(dX1) < (minBorderX * distRatio)) {
dX1 = minBorderX * distRatio;
}
if (Math.abs(dX1) > (maxBorderX * distRatio)) {
dX1 = maxBorderX * distRatio;
}
if (mcBall._x >= center) {
dX1 = Math.abs(dX1);
} else {
dX1 = -Math.abs(dX1);
}
blnBorder = true;
snd12.stop("roll1");
mcRollArrow.removeMovieClip();
dY1 = dY1 * 0.4;
vel = Math.sqrt((dY * dY) + (dX * dX)) * Math.abs(1 - (0.6 * Math.abs(dX / dY)));
loud(11, false, "throw", 40 + (((((70 * dX) / dY) * vel) / maxSpeed) * distRatio));
loud(13, false, "knock2", 20 + (((((50 * dX) / dY) * vel) / maxSpeed) * distRatio));
}
if (blnBorder) {
if (((gameHeight - mcBall._y) / ((rightBorder + 10) - mcBall._x)) > bATang) {
blnBorder = false;
while (((gameHeight - mcBall._y) / ((rightBorder + 10) - mcBall._x)) > bATang) {
mcBall._x--;
}
vel = Math.sqrt((dY * dY) + (dX * dX)) * Math.abs(1 - (0.6 * Math.abs(dX / dY)));
dX = (-Math.cos(borderAngle)) * vel;
dY = (-Math.sin(borderAngle)) * vel;
dX1 = (dX * distRatio) * viewCos;
dY1 = (dY * distRatio) * viewCos;
blnBorderRoll = true;
rollVol = 100 * Math.pow(vel / maxSpeed, 0.6);
loud(12, true, "roll2", rollVol * distRatio);
rollSndState = -1;
mcBall.swapDepths(78);
}
if (((gameHeight - mcBall._y) / ((mcBall._x - leftBorder) + 10)) > bATang) {
blnBorder = false;
while (((gameHeight - mcBall._y) / ((mcBall._x - leftBorder) + 10)) > bATang) {
mcBall._x++;
}
vel = Math.sqrt((dY * dY) + (dX * dX)) * Math.abs(1 - (0.6 * Math.abs(dX / dY)));
dX = Math.cos(borderAngle) * vel;
dY = (-Math.sin(borderAngle)) * vel;
dX1 = (dX * distRatio) * viewCos;
dY1 = (dY * distRatio) * viewCos;
blnBorderRoll = true;
rollVol = 100 * Math.pow(vel / maxSpeed, 0.6);
loud(12, true, "roll2", rollVol * distRatio);
rollSndState = -1;
mcBall.swapDepths(78);
}
} else if (strState != "ballFalls") {
dX1 = (dX * distRatio) * viewCos;
dY1 = (dY * distRatio) * viewCos;
viewHeightDist = viewHeightDist - dY;
} else {
dY1 = dY1 + 0.6;
}
mcBall._y = mcBall._y + dY1;
mcBall._x = mcBall._x + dX1;
}
if (mcBall._y < (boardTopY + 70)) {
fallD = (((-dY) / fSpeed) * 1.5) - 0.5;
x = mcBall._x;
var BATan = 0.57;
var SATan = ((-dX) / dY);
var SARatio = Math.abs(Math.sin(((SATan * Math.PI) / 2) / BATan));
if (SARatio < 0) {
SARatio = 0;
}
if (strState != "ballFalls") {
i = 1;
while (i < 11) {
obj = eval (i);
var r = (((obj._x - x) * (obj._x - x)) + ((obj._y - mcBall._y) * (obj._y - mcBall._y)));
if (((((((arrFalling[i] == 0) && (r < (((ballR + 9) + (SARatio * 8)) * ((ballR + 9) + (SARatio * 8))))) && (r > 1)) && (Math.abs(obj._x - x) < (ballR + 8.5))) && (obj._y < (mcBall._y - 4))) && (strState != "ballFalls")) && (!blnBorderRoll)) {
if (blnFirstPin) {
if ((((Math.abs(x - center) > 4) && (Math.abs(x - center) < 20)) && (dY <= (-fSpeed))) && ((SATan * (x - center)) < 0)) {
blnPocket = true;
}
trace((((((SATan + "\t\t") + SARatio) + "\t\t") + dX) + "\t\t") + dY);
blnFirstPin = false;
trace("blnPocket" + blnPocket);
}
trace(i + " th beaten");
var dR = Math.abs(obj._x - x);
var pinId = obj._name;
if (obj._x < mcBall._x) {
obj._xscale = -Math.abs(obj._xscale);
} else {
obj._xscale = Math.abs(obj._xscale);
}
arrFalling[i] = 1;
if (random(2) == 1) {
loud(i, false, "knock1", (30 * fallD) + 40);
} else {
loud(i, false, "knock5", (40 * fallD) + 10);
}
if (dY <= (-fSpeed)) {
if ((dR > (ballR + 4)) && (!(((dR < (ballR + 9)) && (blnPocket)) && (i == 10)))) {
if ((((pinId == "1") || (pinId == "5")) && (obj._x < x)) || (((pinId == "4") || (pinId == "7")) && (obj._x >= x))) {
obj.gotoAndPlay("sideReflect");
obj.state = "sideReflect";
} else if (((obj._x < (center - 2)) && (x < obj._x)) || ((obj._x > (center + 2)) && (x >= obj._x))) {
obj.gotoAndPlay("side");
obj.state = "side";
} else {
obj.gotoAndPlay("sideFast");
obj.state = "sideFast";
}
} else if (((dR <= (ballR + 4)) || (((dR < (ballR + 7)) && (blnPocket)) && (i == 10))) && (dR > 3)) {
switch (pinId) {
case "10" :
if (((x > obj._x) && (arrFalling[8] == 0)) || ((x <= obj._x) && (arrFalling[9] == 0))) {
obj.gotoAndPlay("sideFwdT");
obj.state = "sideFwdT";
} else {
obj.gotoAndPlay("sideFwd");
obj.state = "sideFwd";
}
break;
case "8" :
if (((x > obj._x) && (arrFalling[5] == 0)) || ((x <= obj._x) && (arrFalling[6] == 0))) {
obj.gotoAndPlay("sideFwdT");
obj.state = "sideFwdT";
} else {
obj.gotoAndPlay("sideFwd");
obj.state = "sideFwd";
}
break;
case "9" :
if (((x > obj._x) && (arrFalling[6] == 0)) || ((x <= obj._x) && (arrFalling[7] == 0))) {
obj.gotoAndPlay("sideFwdT");
obj.state = "sideFwdT";
} else {
obj.gotoAndPlay("sideFwd");
obj.state = "sideFwd";
}
break;
default :
if ((piId == "1") || (pinId == "4")) {
obj.gotoAndPlay("sideFwdWeakF");
obj.state = "sideFwdWeakF";
} else {
obj.gotoAndPlay("sideFwd");
obj.state = "sideFwd";
}
}
} else {
obj.gotoAndPlay("forward");
obj.state = "forward";
}
} else if (dR > (ballR + 3)) {
if (((((pinId == "1") || (pinId == "4")) || (pinId == "5")) || (pinId == "7")) && (Math.abs(x - center) < Math.abs(obj._x - center))) {
obj.gotoAndPlay("sideFwdWeakF");
obj.state = "sideFwdWeakF";
} else {
obj.gotoAndPlay("sideWeak");
obj.state = "sideWeak";
}
} else if ((dR <= (ballR + 2)) && (dR > 5)) {
if (Number(pinId) < 8) {
obj.gotoAndPlay("sideFwdWeakF");
obj.state = "sideFwdWeakF";
} else {
obj.gotoAndPlay("sideFwdWeak1");
obj.state = "sideFwdWeak1";
}
} else if (Number(pinId) < 8) {
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
obj.gotoAndPlay("forwardT");
obj.state = "forwardT";
}
trace(obj.state);
}
i++;
}
}
delete layer1;
delete layer2;
delete layer3;
delete layer0;
layer1 = new Array();
layer2 = new Array();
layer3 = new Array();
layer0 = new Array();
i = 1;
while (i < 11) {
obj = eval (i);
if (arrFalling[i] == 1) {
if (obj.layer == 1) {
layer1.push(i);
if (depthLayer1[i] != 1) {
depthLayer1[i] = 1;
depthLayer2[i] = 0;
obj.swapDepths(100 + i);
}
} else if (obj.layer == 2) {
layer2.push(i);
if (depthLayer2[i] != 1) {
depthLayer2[i] = 1;
depthLayer3[i] = 0;
obj.swapDepths(120 + i);
}
} else if (obj.layer == 3) {
layer3.push(i);
if (depthLayer3[i] != 1) {
depthLayer3[i] = 1;
depthLayer4[i] = 0;
obj.swapDepths(140 + i);
}
} else if (obj.layer <= 0) {
layer0.push(i);
if (depthLayer0[i] != 1) {
depthLayer0[i] = 1;
depthLayer1[i] = 0;
obj.swapDepths(80 + i);
obj.setMask(eval ("maskHole" + i));
}
}
}
i++;
}
i = 1;
while (i < 11) {
if (arrFalling[i] == 0) {
obj = eval (i);
if (obj.layer != 4) {
curLayer = eval ("layer" + obj.layer);
k = curLayer.length;
} else {
k = 0;
}
j = 0;
while (j < k) {
pul = eval (curLayer[j]);
if (((((((pul.hitTest(obj._x + 3, obj._y - 4, true) || (pul.hitTest(obj._x + 3, obj._y + 15, true))) || (pul.hitTest(obj._x + 3, obj._y + 6, true))) || (pul.hitTest(obj._x - 3, obj._y - 4, true))) || (pul.hitTest(obj._x - 3, obj._y + 6, true))) || (pul.hitTest(obj._x - 3, obj._y + 15, true))) && (obj.state != "tremble")) && (arrPin2Pin[curLayer[j]][i] == 0)) {
trace((i + " by ") + curLayer[j]);
trace(pul.state);
arrFalling[i] = 1;
obj._xscale = pul._xscale;
switch (pul.state) {
case "side" :
if ((random(2) == 1) || (blnSplit)) {
obj.gotoAndPlay("sideFwdWeakF");
obj.state = "sideFwdWeakF";
} else {
arrFalling[i] = 0;
obj.gotoAndPlay("tremble");
obj.state = "tremble";
}
break;
case "sideWeak" :
if (((Math.abs(obj._x - center) < (1.5 * ballR)) || (Math.abs(obj._x - center) < Math.abs(pul._x - center))) && (random(3) == 1)) {
obj.gotoAndPlay("sideWeak");
obj.state = "sideWeak";
obj._rotation = (pul._xscale / Math.abs(pul._xscale)) * 10;
} else {
arrFalling[i] = 0;
obj.gotoAndPlay("tremble");
obj.state = "tremble";
}
break;
case "forward" :
if (Math.abs(obj._x - pul._x) < 4) {
obj._xscale = obj._xscale * -1;
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
arrFalling[i] = 0;
obj.gotoAndPlay("tremble");
obj.state = "tremble";
}
break;
case "forwardWeak" :
arrFalling[i] = 0;
break;
case "sideFast" :
if ((random(4) < (2 * fallD)) || (blnSplit)) {
if (Math.abs(obj._x - center) < (1.7 * ballR)) {
obj._rotation = (pul._xscale / Math.abs(pul._xscale)) * 15;
obj.gotoAndPlay("sideFast");
obj.state = "sideFast";
} else {
obj.gotoAndPlay("sideFwdWeakF");
obj.state = "sideFwdWeakF";
arrFalling[i] = 1;
}
} else {
arrFalling[i] = 0;
}
break;
case "sideReflect" :
if (((curLayer[j] == 5) || (curLayer[j] == 7)) && (blnPocket || (SARatio > 0.5))) {
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
arrFalling[i] = 0;
}
break;
case "forwardT" :
if (Math.abs(obj._x - pul._x) < 3) {
obj._xscale = obj._xscale * -1;
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else if ((random(10) < ((fallD * 4) - 2)) && (i < 5)) {
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
arrFalling[i] = 0;
}
break;
case "sideFwdT" :
if (Math.abs(obj._x - pul._x) > (ballR * 1.5)) {
if (((((random(3) + 17) < (((7 * blnPocket) + fallD) + (14 * SARatio))) && (curLayer[j] == 10)) || (blnSplit)) || (((random(10) + 15) < ((6 * fallD) + (4 * SARatio))) && (curLayer[j] != 10))) {
obj.gotoAndPlay("sideFwdWeakF");
obj.state = "sideFwdWeakF";
arrFalling[i] = 1;
} else if (random(11) < (fallD * 3)) {
arrFalling[i] = 0;
obj.gotoAndPlay("tremble");
obj.state = "tremble";
} else {
arrFalling[i] = 0;
}
} else if ((blnPocket || (SARatio > 0.6)) || (random(5) < 3)) {
if (curLayer[j] < 10) {
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
obj.gotoAndPlay("forwardT");
obj.state = "forwardT";
}
} else {
arrFalling[i] = 0;
}
break;
case "sideFwdT2" :
if ((i < 5) && (random(4) < 2)) {
obj.gotoAndPlay("sideFwdWeakF");
obj.state = "sideFwdWeakF";
} else {
arrFalling[i] = 0;
}
break;
case "sideFwdWeakF" :
if (((random(3) == 1) || (blnSplit)) || (blnPocket && ((curLayer[j] == 5) || (curLayer[j] == 7)))) {
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
arrFalling[i] = 0;
obj.gotoAndPlay("tremble");
obj.state = "tremble";
}
break;
case "sideFwdWeak1" :
if ((random(14) < (fallD * 8)) || (blnSplit)) {
if (curLayer[j] < 10) {
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
obj.gotoAndPlay("sideFwdWeak1");
obj.state = "sideFwdWeak1";
obj._rotation = (pul._xscale / Math.abs(pul._xscale)) * 20;
}
} else {
arrFalling[i] = 0;
}
break;
case "sideFwd" :
if (((curLayer[j] == 5) || (curLayer[j] == 7)) && (blnPocket || (SARatio > 0.5))) {
obj.gotoAndPlay("forwardWeak");
obj.state = "forwardWeak";
} else {
arrFalling[i] = 0;
}
}
arrPin2Pin[curLayer[j]][i] = 1;
trace(obj.state);
if (arrFalling[i] == 1) {
loud(i, false, "knock2", 50 + ((100 * dY) / maxSpeed));
}
}
j++;
}
}
i++;
}
if ((mcBall._y < (boardTopY - 16)) && (strState != "ballFalls")) {
depthLayer1[11] = 1;
depthLayer2[11] = 0;
mcBall.swapDepths(111);
} else if ((mcBall._y < (boardTopY - 10)) && (strState != "ballFalls")) {
depthLayer2[11] = 1;
depthLayer3[11] = 0;
mcBall.swapDepths(131);
} else if ((mcBall._y < (boardTopY - 5)) && (strState != "ballFalls")) {
depthLayer3[11] = 1;
mcBall.swapDepths(151);
}
}
if (((((mcBall._y < (boardTopY - 18)) && (!blnBorderRoll)) || ((mcBall._y < (boardTopY - 14)) && (blnBorderRoll))) && (strState != "ballFalls")) && (!blnBorder)) {
depthLayer0[11] = 1;
depthLayer1[11] = 0;
mcBall.setMask(maskHole11);
mcBall.swapDepths(91);
strState = "ballFalls";
mcRollArrow.removeMovieClip();
dX = dX * 0.4;
dX1 = dX1 * 0.4;
i = 1;
while (i < 11) {
if (arrFalling[i] == 1) {
scoreBoard.pinSet.play();
scoreBoard.pinSet.pinsDeep.play();
eval ("scoreBoard.pinStatus.pin" + i).gotoAndStop(2);
}
i++;
}
dY1 = dY1 * 0.1;
snd12.stop();
fallCnt = 0;
i = 1;
while (i < 11) {
if (arrFalling[i] == 1) {
fallCnt++;
}
i++;
}
if (fallCnt > 2) {
loud(13, false, "maschine", 100);
}
}
if ((((mcBall._y > (boardTopY + 30)) && (mcBall._y < (boardTopY + 37))) && (fallCnt < 2)) && (strState == "ballFalls")) {
loud(14, false, "throw2", 6);
loud(15, false, "throw", 4);
loud(14, false, "knock5", 5);
}
if ((mcBall._y > (boardTopY + 400)) && (strState == "ballFalls")) {
roundInit();
}
}
function initiateObjs() {
mcQuitSubmit.btnQuitSubmit.onRelease = function () {
gameOver();
};
this.onMouseUp = function () {
if (((strState == "force") && (!blnRollOver)) && (!blnRules)) {
if (forceStrike < 0.2) {
forceStrike = 0.2;
}
azimuth = Math.atan((mcHandsWithBall._x - center) / (gameHeight - boardTopY));
moveAngle = ((visualAngle - azimuth) / angleRatio) + (azimuth / 1.02);
if (moveAngle > maxAngle) {
moveAngle = maxAngle;
}
if (moveAngle < (-maxAngle)) {
moveAngle = -maxAngle;
}
dY = ((-maxSpeed) * forceStrike) * Math.cos(moveAngle);
dX = ((-maxSpeed) * forceStrike) * Math.sin(moveAngle);
strState = "roll";
mcArrow.removeMovieClip();
mcHandsWithBall.gotoAndPlay(2);
}
if (((strState == "ballPos") && (!blnRollOver)) && (!blnRules)) {
startForceY = this._ymouse + 100;
strState = "force";
mcForce._visible = true;
this.attachMovie("mcArrow", "mcArrow", arrowDepth);
mcArrow._x = _xmouse;
mcArrow._y = _ymouse;
Mouse.hide();
blnMouse = false;
}
};
mcShowScore.btnShowScore.onPress = function () {
if (mcScores._visible) {
if ((strState == "wait") && (waitFrames < 400)) {
waitCnt = waitFrames;
}
mcScores._visible = false;
} else {
loud(13, false, "shuh", 100);
mcScores._visible = true;
scoreBoard.gotoAndPlay(2);
}
};
mcRules.btnRules.onRollOver = function () {
overSound.start();
eRollOver(this);
};
mcQuitSubmit.btnQuitSubmit.onRollOver = function () {
eRollOver(this);
};
mcShowScore.btnShowScore.onRollOver = function () {
eRollOver(this);
};
mcQuitSubmit.btnQuitSubmit.onRollOut = function () {
eRollOut(this);
};
mcShowScore.btnShowScore.onRollOut = function () {
eRollOut(this);
};
mcRules.btnRules.onRollOut = function () {
eRollOut(this);
};
}
function eRollOver(obj) {
mcArrow._visible = false;
mcRollArrow._visible = false;
blnRollOver = true;
Mouse.show();
}
function eRollOut(obj) {
if (!blnRules) {
mcArrow._visible = true;
mcRollArrow._visible = true;
if (!blnMouse) {
Mouse.hide();
}
}
blnRollOver = false;
}
function start_sounds() {
blnSoundOff = false;
rootSnd.setVolume(100);
}
function stop_sounds() {
blnSoundOff = true;
rootSnd.setVolume(0);
}
function launchRulesWindow() {
clickSound.start();
if (blnRules) {
blnRules = false;
mcRulesField.removeMovieClip();
mcRulesHook.removeMovieClip();
if (!blnMouse) {
Mouse.hide();
}
} else {
blnRules = true;
attachMovie("mcRulesField", "mcRulesField", 13463);
attachMovie("mcRulesHook", "mcRulesHook", 13476);
mcRulesHook.btnHook.useHandCursor = false;
mcRulesHook.btnHook.onRelease = function () {
if (mcRulesField._currentframe < 23) {
mcRulesField.play();
} else {
blnRules = false;
mcRulesField.removeMovieClip();
mcRulesHook.removeMovieClip();
neonBoard.neonBoard.mcRules.gotoAndPlay(1);
if (!blnMouse) {
Mouse.hide();
}
mcArrow._visible = true;
mcRollArrow._visible = true;
}
};
mcRulesField._x = center;
mcRulesField._y = 300;
mcRulesField.gotoAndPlay(1);
}
}
Instance of Symbol 285 MovieClip in Frame 1
onClipEvent (keyDown) {
tKey = Key.getCode();
_parent.pressKey(tKey);
}
Instance of Symbol 289 MovieClip "bar" in Frame 1
onClipEvent (enterFrame) {
numTotal = Math.floor(_parent.getBytesTotal());
numLoaded = Math.floor(_parent.getBytesLoaded());
numPercent = Math.floor((numLoaded * 100) / numTotal);
this.bar._x = numPercent - 50;
trace((("doingdumbstuff" + numTotal) + " ") + numLoaded);
if (numPercent > 99) {
_parent.play();
}
}
Frame 5
stop();
Frame 8
stop();
Frame 12
Frame 17
stop();
_quality = "BEST";
initiateObjs();
gameInit();
newGame();
roundInit();
if (musicLoop.getVolume() != 0) {
musicLoop.setVolume(40);
}
musicLoop.myVol = 40;
Frame 22
musicSound.stop();
musicLoop.stop();
endContainer.g_numScore = totalScores;
mcGameEnd.removeMovieClip();
stopAllSounds();
ur = "index.php?act=Arcade&do=newscore";
xx = new LoadVars();
xx.gname = "discobowlingTh";
xx.gscore = totalScores;
xx.send(ur, "_self", "POST");
_root._visible = false;
_root.enabled = false;
Symbol 56 MovieClip [mcStrike] Frame 72
this.removeMovieClip();
Symbol 61 MovieClip [mcSpare] Frame 72
this.removeMovieClip();
Symbol 180 MovieClip [mcPin] Frame 1
stop();
var pinSnd = new Sound();
Symbol 180 MovieClip [mcPin] Frame 4
_parent.loud(13, false, "knock6", 50);
Symbol 180 MovieClip [mcPin] Frame 6
if (((((this._rotation == 0) && (this._name != "1")) && (this._name != "4")) && (this._name != "2")) && (this._name != "3")) {
this.layer--;
}
Symbol 180 MovieClip [mcPin] Frame 12
if ((Number(this._name) >= 1) && (Number(this._name) <= 4)) {
this.onEnterFrame = function () {
this._y = this._y + 2;
};
this.layer--;
}
Symbol 180 MovieClip [mcPin] Frame 16
stop();
Symbol 180 MovieClip [mcPin] Frame 31
stop();
_parent.loud(13, false, "knock6", 20);
Symbol 180 MovieClip [mcPin] Frame 33
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 34
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 36
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 38
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 42
_parent.loud(13, false, "knock6", 20);
Symbol 180 MovieClip [mcPin] Frame 45
stop();
Symbol 180 MovieClip [mcPin] Frame 48
this.layer--;
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 49
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 50
this.layer--;
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 51
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 52
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 53
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 54
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 55
stop();
_parent.loud(Number(this._name), false, "knock2", 24);
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 59
_parent.loud(13, false, "knock5", 30);
Symbol 180 MovieClip [mcPin] Frame 73
stop();
Symbol 180 MovieClip [mcPin] Frame 77
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 80
this.layer--;
_parent.loud(13, false, "knock6", 40);
Symbol 180 MovieClip [mcPin] Frame 89
stop();
_parent.loud(13, false, "knock2", 30);
Symbol 180 MovieClip [mcPin] Frame 91
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 93
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 95
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 97
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 102
stop();
_parent.loud(Number(this._name), false, "knock5", 24);
Symbol 180 MovieClip [mcPin] Frame 105
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 108
this.layer--;
if ((random(10) < 5) && (Number(this._name) < 10)) {
this.state = "sideFwdT2";
this.gotoAndPlay("sideFwdT2");
}
Symbol 180 MovieClip [mcPin] Frame 110
_parent.loud(13, false, "knock6", 30);
Symbol 180 MovieClip [mcPin] Frame 114
_parent.loud(13, false, "knock6", 20);
Symbol 180 MovieClip [mcPin] Frame 116
stop();
if (random(2) == 1) {
bn = 10;
} else if (random(5) > 2) {
bn = -10;
} else {
bn = 0;
}
mcPinStay23._rotation = 80 + bn;
if ((sideFwdTState == 0) || (sideFwdTState == 2)) {
sideFwdTState = 1;
mcPinStay23._y = mcPinStay23._y + 2;
mcPinStay23._x = mcPinStay23._x - 4;
} else if (sideFwdTState == 1) {
sideFwdTState = 2;
mcPinStay23._y = mcPinStay23._y + 3;
mcPinStay23._x = mcPinStay23._x + 5;
}
Symbol 180 MovieClip [mcPin] Frame 120
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 125
stop();
_parent.loud(13, false, "knock5", 30);
Symbol 180 MovieClip [mcPin] Frame 128
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 129
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 130
this.layer--;
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 131
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 132
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 133
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 134
this.layer--;
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 135
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 136
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 137
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 138
stop();
_parent.loud(13, false, "knock5", 30);
_parent.arrFalling[Number(this._name)] = 1;
Symbol 180 MovieClip [mcPin] Frame 140
if (random(2) == 1) {
gotoAndPlay ("tremble2");
}
Symbol 180 MovieClip [mcPin] Frame 180
stop();
this.state = "stay";
Symbol 180 MovieClip [mcPin] Frame 184
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 187
_parent.loud(13, false, "knock6", 30);
Symbol 180 MovieClip [mcPin] Frame 191
_parent.loud(13, false, "knock6", 20);
Symbol 180 MovieClip [mcPin] Frame 193
stop();
Symbol 180 MovieClip [mcPin] Frame 197
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 199
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 202
this.layer--;
switch (Number(this._name)) {
case 1 :
case 4 :
case 5 :
case 7 :
_parent.loud(13, false, "knock5", 30);
}
Symbol 180 MovieClip [mcPin] Frame 204
this.layer--;
Symbol 180 MovieClip [mcPin] Frame 211
stop();
Symbol 186 MovieClip Frame 30
stop();
Symbol 187 MovieClip [pin area] Frame 1
stop();
i = 1;
while (i < 11) {
trace(_parent.arrFalling[i]);
i++;
}
Symbol 187 MovieClip [pin area] Frame 2
play();
Symbol 187 MovieClip [pin area] Frame 12
var wx = false;
var wx2 = false;
i = 1;
while (i < 11) {
if ((_parent.arrFalling[i] == 1) || (_parent.arrFalling[i] == -1)) {
eval ("_parent." + i).removeMovieClip();
if (random(3) == 1) {
_parent.loud(i, false, "knock1", 14);
} else if (random(2) == 1) {
wx = true;
} else {
wx2 = true;
}
}
i++;
}
Symbol 187 MovieClip [pin area] Frame 14
if (_parent.arrFalling[10] == 0) {
trace("4 level swept");
var fObj = _parent.10;
if (random(2) == 1) {
fObj._xscale = fObj._xscale * -1;
}
fObj.gotoAndPlay("forwardT");
_parent.loud(10, false, "knock5", 28);
fObj.setMask(_parent.maskHole10);
}
if (wx) {
_parent.loud(i, false, "knock5", 14);
}
Symbol 187 MovieClip [pin area] Frame 17
if (_parent.arrFalling[9] == 0) {
var fObj = _parent.9;
trace("3 level swept");
if (random(2) == 1) {
fObj._xscale = fObj._xscale * -1;
}
fObj.gotoAndPlay("forwardT");
fObj.setMask(_parent.maskHole9);
_parent.loud(9, false, "knock5", 27);
}
if (_parent.arrFalling[8] == 0) {
trace("3 level swept");
var fObj = _parent.8;
if (random(2) == 1) {
fObj._xscale = fObj._xscale * -1;
}
fObj.gotoAndPlay("forwardT");
fObj.setMask(_parent.maskHole8);
_parent.loud(8, false, "knock5", 27);
}
if (wx2) {
_parent.loud(i, false, "knock6", 15);
}
Symbol 187 MovieClip [pin area] Frame 20
i = 5;
while (i <= 7) {
var fObj = eval ("_parent." + i);
if (_parent.arrFalling[i] == 0) {
trace("2 level swept");
fObj.gotoAndPlay("forwardWeak");
if (random(2) == 1) {
fObj._xscale = fObj._xscale * -1;
}
fObj.setMask(eval ("_parent.maskHole" + i));
_parent.loud(i, false, "knock6", 28);
}
i++;
}
Symbol 187 MovieClip [pin area] Frame 23
i = 1;
while (i <= 4) {
var fObj = eval ("_parent." + i);
if (_parent.arrFalling[i] == 0) {
trace("1 level swept");
fObj.gotoAndPlay("forwardWeak");
if (random(2) == 1) {
fObj._xscale = fObj._xscale * -1;
}
fObj.setMask(eval ("_parent.maskHole" + i));
_parent.loud(i, false, "knock6", 28);
}
i++;
}
Symbol 187 MovieClip [pin area] Frame 43
_parent.loud(12, false, "sweeper1", 20);
Symbol 187 MovieClip [pin area] Frame 50
_parent.arrangePins();
Symbol 187 MovieClip [pin area] Frame 52
_parent.done = true;
Symbol 187 MovieClip [pin area] Frame 66
gotoAndStop (1);
Symbol 187 MovieClip [pin area] Frame 81
_parent.loud(12, false, "maschine2", 30);
Symbol 187 MovieClip [pin area] Frame 92
var arrUp = new Array();
var j = 0;
i = 1;
while (i < 11) {
if (_parent.arrFalling[i] == 0) {
arrUp[j] = i;
j++;
}
i++;
}
this.onEnterFrame = function () {
j = 0;
while (j < arrUp.length) {
eval ("_parent." + arrUp[j])._y = eval ("_parent." + arrUp[j])._y - 5.5;
j++;
}
};
Symbol 187 MovieClip [pin area] Frame 105
delete this.onEnterFrame;
Symbol 187 MovieClip [pin area] Frame 118
var wx = false;
var wx2 = false;
i = 1;
while (i < 11) {
if ((_parent.arrFalling[i] == 1) || (_parent.arrFalling[i] == -1)) {
eval ("_parent." + i).removeMovieClip();
if (random(3) == 1) {
_parent.loud(i, false, "knock1", 14);
} else if (random(2) == 1) {
wx = true;
} else {
wx2 = true;
}
}
i++;
}
Symbol 187 MovieClip [pin area] Frame 121
if (wx2) {
_parent.loud(i, false, "knock6", 12);
}
Symbol 187 MovieClip [pin area] Frame 123
if (wx) {
_parent.loud(i, false, "knock5", 12);
}
Symbol 187 MovieClip [pin area] Frame 140
this.onEnterFrame = function () {
j = 0;
while (j < arrUp.length) {
eval ("_parent." + arrUp[j])._y = eval ("_parent." + arrUp[j])._y + 5.5;
j++;
}
};
Symbol 187 MovieClip [pin area] Frame 151
_parent.loud(12, false, "sweeper1", 20);
Symbol 187 MovieClip [pin area] Frame 153
delete this.onEnterFrame;
Symbol 187 MovieClip [pin area] Frame 168
this.GotoAndStop(1);
Symbol 193 Button
on (release) {
getURL ("http://www.arkadium.com", "_blank");
}
Symbol 194 MovieClip Frame 1
if (_root.logoUrl == undefined) {
play();
} else {
loadBrandMov.loadMovie(_root.logoUrl);
stop();
}
Symbol 194 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 1
function playAgain() {
_root.playAgain();
}
Symbol 251 MovieClip [mcRulesField] Frame 5
stop();
Symbol 251 MovieClip [mcRulesField] Frame 14
stop();
Symbol 251 MovieClip [mcRulesField] Frame 23
stop();
Symbol 255 MovieClip [mcForce] Frame 1
stop();
Symbol 255 MovieClip [mcForce] Frame 18
stop();
Symbol 255 MovieClip [mcForce] Frame 19
stop();
Symbol 282 MovieClip [mcHandsWithBall] Frame 1
stop();
Symbol 282 MovieClip [mcHandsWithBall] Frame 13
stop();
_parent.blnAllowThr = true;
Symbol 485 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 486 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 487 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 488 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 489 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 490 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 309 MovieClip Frame 15
gotoAndPlay (1);
Symbol 309 MovieClip Frame 51
_parent.gotoAndPlay("start");
stop();
Instance of Symbol 309 MovieClip "startBtn" in Symbol 361 MovieClip Frame 1
on (release) {
if (this._currentframe <= 16) {
_root.clickSound.start();
this.gotoAndPlay(17);
}
}
on (rollOver) {
if (this._currentframe <= 16) {
_root.overSound.start();
this.gotoAndStop(16);
}
}
on (releaseOutside, rollOut) {
if (this._currentframe <= 16) {
this.gotoAndPlay(1);
}
}
Symbol 361 MovieClip Frame 105
stop();
Symbol 361 MovieClip Frame 162
stop();
trace("end");
_root.gotoAndPlay("playGameFrame");
this.removeMovieClip();
Symbol 365 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 37
gotoAndPlay (1);
Symbol 365 MovieClip Frame 69
stop();
Symbol 368 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 37
gotoAndPlay (1);
Symbol 368 MovieClip Frame 69
stop();
Symbol 370 Button
on (release) {
_root.clickSound.start();
this.gotoAndStop(2);
}
on (rollOver) {
_root.overSound.start();
_root.eRollOver();
}
on (rollOut, releaseOutside) {
_root.eRollOut();
}
Symbol 374 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 78
gotoAndPlay (1);
Symbol 374 MovieClip Frame 124
stop();
Instance of Symbol 365 MovieClip "mcRules" in Symbol 375 MovieClip Frame 1
on (release) {
if (this._currentframe <= 38) {
_root.clickSound.start();
_root.launchRulesWindow();
this.gotoAndPlay("blackout");
}
}
on (rollOver) {
if (this._currentframe <= 38) {
_root.overSound.start();
this.gotoAndStop("rollover");
}
_root.eRollOver(this);
}
on (releaseOutside, rollOut) {
if (this._currentframe <= 38) {
this.gotoAndPlay(1);
}
_root.eRollOut(this);
}
Instance of Symbol 368 MovieClip " " in Symbol 375 MovieClip Frame 1
on (release) {
if (this._currentframe <= 38) {
_root.clickSound.start();
_root.stop_sounds();
_root.g_fSetSoundOff();
this.gotoAndPlay("blackout");
} else {
_root.clickSound.start();
_root.start_sounds();
_root.g_fSetSoundOn();
this.gotoAndPlay(1);
}
}
on (rollOver) {
if (this._currentframe <= 38) {
_root.overSound.start();
this.gotoAndStop("rollover");
}
_root.eRollOver(this);
}
on (releaseOutside, rollOut) {
if (this._currentframe <= 38) {
this.gotoAndPlay(1);
}
_root.eRollOut(this);
}
Instance of Symbol 374 MovieClip in Symbol 375 MovieClip Frame 1
on (release) {
if (this._currentframe <= 79) {
_root.clickSound.start();
_root.g_fSetMusicOff();
this.gotoAndPlay("blackout");
} else {
_root.clickSound.start();
_root.g_fSetMusicOn();
this.gotoAndPlay(1);
}
}
on (rollOver) {
if (this._currentframe <= 79) {
_root.overSound.start();
this.gotoAndStop("rollover");
}
_root.eRollOver(this);
}
on (releaseOutside, rollOut) {
if (this._currentframe <= 79) {
this.gotoAndPlay(1);
}
_root.eRollOut(this);
}
Symbol 376 MovieClip Frame 27
stop();
Symbol 378 MovieClip Frame 25
stop();
Symbol 379 MovieClip Frame 50
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
stop();
Symbol 400 MovieClip Frame 3
stop();
Symbol 400 MovieClip Frame 4
stop();
Symbol 400 MovieClip Frame 5
stop();
Symbol 400 MovieClip Frame 6
stop();
Symbol 400 MovieClip Frame 7
stop();
Symbol 400 MovieClip Frame 8
stop();
Symbol 400 MovieClip Frame 9
stop();
Symbol 400 MovieClip Frame 10
stop();
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 11
Symbol 425 MovieClip Frame 20
stop();
Symbol 425 MovieClip Frame 21
stop();
Symbol 426 MovieClip Frame 1
f1.gotoAndStop(21);
f2.gotoAndStop(21);
f3.gotoAndStop(21);
f4.gotoAndStop(21);
f5.gotoAndStop(21);
Symbol 428 MovieClip Frame 1
f1.gotoAndStop(21);
f2.gotoAndStop(21);
f3.gotoAndStop(21);
f4.gotoAndStop(21);
f5.gotoAndStop(21);
f22.gotoAndStop(21);
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 65
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 20
stop();
Symbol 437 MovieClip Frame 31
stop();
Symbol 438 MovieClip Frame 74
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 1
Symbol 480 MovieClip Frame 3
_parent.waveSound1.start();
Symbol 480 MovieClip Frame 20
z = 2;
while (z <= _parent.numFrame) {
eval ("game" + z)._alpha = 100;
z++;
}
highlight.gotoAndStop(_parent.numFrame);
Instance of Symbol 426 MovieClip "game1" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[1] == 1) or (_root.setScoref2[1] == 1)) {
Set(_root.setScoref1[1], 0);
}
if (_root.setScoref1[1] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[1] + 1);
}
if (_root.setScoref2[1] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[1] + 1);
}
gameScore = _root.finalScore[1];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game2" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[2] == 1) or (_root.setScoref2[2] == 1)) {
Set(_root.setScoref1[2], 0);
}
if (_root.setScoref1[2] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[2] + 1);
}
if (_root.setScoref2[2] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[2] + 1);
}
gameScore = _root.finalScore[2];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game3" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[3] == 1) or (_root.setScoref2[3] == 1)) {
Set(_root.setScoref1[3], 0);
}
if (_root.setScoref1[3] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[3] + 1);
}
if (_root.setScoref2[3] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[3] + 1);
}
gameScore = _root.finalScore[3];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game4" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[4] == 1) or (_root.setScoref2[4] == 1)) {
Set(_root.setScoref1[4], 0);
}
if (_root.setScoref1[4] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[4] + 1);
}
if (_root.setScoref2[4] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[4] + 1);
}
gameScore = _root.finalScore[4];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game5" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[5] == 1) or (_root.setScoref2[5] == 1)) {
Set(_root.setScoref1[5], 0);
}
if (_root.setScoref1[5] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[5] + 1);
}
if (_root.setScoref2[5] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[5] + 1);
}
gameScore = _root.finalScore[5];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game6" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[6] == 1) or (_root.setScoref2[6] == 1)) {
Set(_root.setScoref1[6], 0);
}
if (_root.setScoref1[6] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[6] + 1);
}
if (_root.setScoref2[6] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[6] + 1);
}
gameScore = _root.finalScore[6];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game7" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[7] == 1) or (_root.setScoref2[7] == 1)) {
Set(_root.setScoref1[7], 0);
}
if (_root.setScoref1[7] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[7] + 1);
}
if (_root.setScoref2[7] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[7] + 1);
}
gameScore = _root.finalScore[7];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game8" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[8] == 1) or (_root.setScoref2[8] == 1)) {
Set(_root.setScoref1[8], 0);
}
if (_root.setScoref1[8] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[8] + 1);
}
if (_root.setScoref2[8] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[8] + 1);
}
gameScore = _root.finalScore[8];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 426 MovieClip "game9" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[9] == 1) or (_root.setScoref2[9] == 1)) {
Set(_root.setScoref1[9], 0);
}
if (_root.setScoref1[9] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[9] + 1);
}
if (_root.setScoref2[9] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[9] + 1);
}
gameScore = _root.finalScore[9];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Instance of Symbol 428 MovieClip "game10" in Symbol 480 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.setScoref1[10] == 1) or (_root.setScoref2[10] == 1)) {
Set(_root.setScoref1[10], 0);
}
if (_root.setScoref1[10] == undefined) {
} else {
f1.gotoAndStop(_root.setScoref1[10] + 1);
}
if (_root.setScoref2[10] == undefined) {
} else {
f2.gotoAndStop(_root.setScoref2[10] + 1);
}
gameScore = _root.finalScore[10];
gameScore = String(gameScore);
value1 = Number(gameScore.charAt(0));
myVal1 = value1 + 1;
value2 = Number(gameScore.charAt(1));
myVal2 = value2 + 1;
value3 = Number(gameScore.charAt(2));
myVal3 = value3 + 1;
if (gameScore.length == 1) {
f5.gotoAndStop(myVal1);
} else if (gameScore.length == 2) {
f4.gotoAndStop(myVal1);
f5.gotoAndStop(myVal2);
} else {
f3.gotoAndStop(myVal1);
f4.gotoAndStop(myVal2);
f5.gotoAndStop(myVal3);
}
}
Symbol 480 MovieClip Frame 44
stop();
Symbol 480 MovieClip Frame 54
Symbol 480 MovieClip Frame 73
stop();
Symbol 480 MovieClip Frame 93
trace("arry" + _root.arrFalling);
i = 1;
while (i < 11) {
eval ("pinStatus.pin" + i).gotoAndStop(1 - _root.arrFalling[i]);
i++;
}
Symbol 480 MovieClip Frame 117
stop();
Symbol 480 MovieClip Frame 118
_parent.accent.start();
Symbol 480 MovieClip Frame 185
this.gotoAndPlay(2);
Symbol 480 MovieClip Frame 186
_parent.accent.start();
Symbol 480 MovieClip Frame 253
this.gotoAndPlay(2);
Symbol 480 MovieClip Frame 274
myInputText = _root.totalScores;
Symbol 480 MovieClip Frame 377
_root.clearMovieClips();
_root.gotoAndStop("gameOverFrame");
Symbol 480 MovieClip Frame 378
_parent.accent.start();
Symbol 480 MovieClip Frame 432
this.gotoAndPlay(2);
Symbol 484 MovieClip Frame 66
if (_parent.endContainer.mcGameEnd._currentframe > 1) {
trace("ITSALLOK");
stop();
}
Symbol 484 MovieClip Frame 67
stop();