Instance of Symbol 849 MovieClip in Frame 1
onClipEvent (load) {
bytesLoaded = 0;
bytesTotal = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
if (bytesLoaded < bytesTotal) {
bytesLoaded = _root.getBytesLoaded();
percentLoaded = Math.round((100 * bytesLoaded) / bytesTotal);
if (bytesLoaded < bytesTotal) {
displayText = ("Loading: " + percentLoaded) + "%";
barFill._xscale = percentLoaded;
} else {
displayText = "Loading Complete";
barFill.xscale = 100;
_root.nextScene();
}
}
}
Frame 2
function Grab_decode(toDecode) {
if ((toDecode == undefined) || (toDecode == "")) {
return("");
}
_root.Grab_equalSign = false;
var decodedArray = new Array();
decodedArray = Base64toBinary(toDecode);
var code = "decode";
var decodedMessage = XOR_decode(code, decodedArray, _root.secWord);
return(decodedMessage);
}
function Grab_encode(toEncode) {
if ((toEncode == undefined) || (toEncode == "")) {
return("");
}
var code = "encode";
var codedArray = new Array();
codedArray = XOR_encode(code, toEncode, _root.secWord);
var out = intToBin_enc(codedArray);
return(out);
}
function encodeBase64(n) {
var char = base64.charAt(n);
return(char);
}
function XOR_encode(code, myString, secWord) {
var len = (myString.length - 1);
var secLen = (secWord.length - 1);
var j = -1;
var charSec;
var charString;
var foo;
var xor_enc_array = new Array();
var i = 0;
while (i <= len) {
j++;
if (j > secLen) {
j = 0;
}
charSec = secWord.charCodeAt(j);
charString = myString.charCodeAt(i);
foo = charSec ^ charString;
xor_enc_array[i] = foo;
i++;
}
return(xor_enc_array);
}
function XOR_decode(code, myArray, secWord) {
var len = (myArray.length - 1);
var secLen = (secWord.length - 1);
var j = -1;
var charSec;
var charString;
var foo;
var encoded = "";
var xor_enc_array = new Array();
var i = 0;
while (i <= len) {
j++;
if (j > secLen) {
j = 0;
}
charSec = secWord.charCodeAt(j);
charString = myArray[i];
foo = charSec ^ charString;
encoded = encoded + String.fromCharCode(foo);
i++;
}
if (_root.Grab_equalSign) {
encoded = encoded.substring(0, len);
}
return(encoded);
}
function toBinary(val) {
var str = "";
var j;
var p;
var bit = 0;
while (bit < 8) {
j = val % 2;
j = j.toString();
p = j.indexOf(".");
if (p != -1) {
j = j.substring(0, p);
}
j = Number(j);
if (j == 0) {
str = str + "0";
} else {
str = str + "1";
}
val = val / 2;
val = val.toString();
p = val.indexOf(".");
if (p != -1) {
val = val.substring(0, p);
}
val = Number(val);
bit++;
}
var tmp = str;
str = "";
var i = 7;
while (i >= 0) {
str = str + tmp.slice(i, i + 1);
i--;
}
return(str);
}
function intToBin_enc(codedArray) {
var len = (codedArray.length - 1);
var c;
var b;
var binString = "";
var i = 0;
while (i <= len) {
c = codedArray[i];
b = toBinary(c);
binString = binString + b;
i++;
}
var out = binToBase64(binString);
return(out);
}
function binToBase64(bin) {
var len = bin.length;
var j = 0;
var binArray = new Array();
var z = 0;
var Base64OutString;
var i = 0;
while (i <= (len - 1)) {
if (j < 6) {
j++;
} else {
j = 1;
z++;
}
if (binArray[z] == undefined) {
binArray[z] = "";
}
binArray[z] = binArray[z] + bin.charAt(i);
i++;
}
if (j == 2) {
needed = 2;
}
if (j == 6) {
needed = 0;
}
if (j == 4) {
needed = 1;
}
var binLen = binArray.length;
var x = 0;
while (x <= (binLen - 1)) {
var elemLen = (binArray[x].length - 1);
if (elemLen < 5) {
var addN = (4 - elemLen);
var f = 0;
while (f <= addN) {
if (binArray[x] == undefined) {
binArray[x] = "";
}
binArray[x] = binArray[x] + "0";
f++;
}
}
x++;
}
var out = bin6ToInt(binArray, needed);
return(out);
}
function bin6ToInt(myArray, needed) {
var len = myArray.length;
var n;
var bit;
var outArray = new Array();
var t = 0;
var digit;
var binLen;
var Base64OutString = "";
var i = 0;
while (i <= (len - 1)) {
n = myArray[i];
outArray[i] = 0;
digitVal = 1;
binLen = n.length;
var j = (binLen - 1);
while (j >= 0) {
bit = n.charAt(j);
bit = Number(bit);
bit = bit * digitVal;
if (outArray[i] == undefined) {
outArray[i] = "";
}
outArray[i] = outArray[i] + bit;
digitVal = digitVal * 2;
j--;
}
Base64OutString = Base64OutString + encodeBase64(outArray[i]);
i++;
}
var kk = needed;
while (kk >= 1) {
Base64OutString = Base64OutString + "-";
kk--;
}
return(Base64OutString);
}
function Base64toBinary(sentText) {
var c;
var intArray = new Array();
var binString = "";
var i = 0;
while (i <= (sentText.length - 1)) {
c = sentText.charAt(i);
if (c != "-") {
intArray[i] = decodeBase64(c);
intArray[i] = toBinary(intArray[i]);
intArray[i] = intArray[i].substring(2);
binString = binString + intArray[i];
} else {
_root.Grab_equalSign = true;
}
i++;
}
var decodedArray = new Array();
decodedArray = sixToEightBit(binString);
return(decodedArray);
}
function sixToEightBit(binString) {
var j = 0;
var z = 0;
var sixBitArray = new Array();
var len = (binString.length - 1);
var i = 0;
while (i <= len) {
if (j < 8) {
j++;
} else {
j = 1;
z++;
}
var char = binString.charAt(i);
if (sixBitArray[z] == undefined) {
sixBitArray[z] = "";
}
sixBitArray[z] = sixBitArray[z] + char;
i++;
}
var decodedArray = new Array();
decodedArray = binToInt8(sixBitArray, 0);
return(decodedArray);
}
function binToInt8(myArray, needed) {
var len = myArray.length;
var n;
var bit;
var outArray = new Array();
var k;
var digit;
var binLen;
var decoded;
var digitVal;
var i = 0;
while (i <= (len - 1)) {
n = myArray[i];
digitVal = 1;
binLen = n.length;
var j = (binLen - 1);
while (j >= 0) {
bit = n.charAt(j);
bit = Number(bit);
bit = bit * digitVal;
if (outArray[i] == undefined) {
outArray[i] = 0;
}
outArray[i] = outArray[i] + bit;
digitVal = digitVal * 2;
j--;
}
i++;
}
return(outArray);
}
function intToText(decodedArray) {
var len = (decodedArray.length - 1);
var finalDecoded = "";
var num;
var i = 0;
while (i <= len) {
num = decodedArray[i];
finalDecoded = finalDecoded + String.fromCharCode(num);
i++;
}
return(finalDecoded);
}
function decodeBase64(c) {
var n = base64.indexOf(c);
return(n);
}
function runGrabScore() {
grabScore = displayedFinalScore;
grabScore = grabScore.toString();
scoreEncoded = _root.Grab_encode(grabScore);
getURL (((((("javascript:reportGameScore('" + gameIDencoded) + "', '") + scoreEncoded) + "', '") + grab_ccode) + "')");
}
function startGame() {
clearInterval(timeInterval);
_root.seconds = 0;
_root.minutes = 0;
_root.showSeconds = "00";
_root.showMinutes = "";
_root.displayedTime = "";
_root.canGo = false;
_root.displayedFinalScore = 0;
_root.powerMovesLeft = 3;
_root.movesLeft = 50;
_root.bonus = 0;
_root.justGot = 0;
_root.displayedJustGot = 0;
_root.floater.gotoAndStop(1);
_root.setSquares();
_root.setLineUp();
_root.movesMade = 0;
_root.bombOn = false;
_root.switcherOn = false;
_root.eliminatorOn = false;
_root.newQueueOn = false;
_root.oopsieOn = false;
_root.canRunBomber = true;
_root.canRunSwitcher = true;
_root.canRunEliminator = true;
_root.canRunNewQueue = true;
_root.canRunOopsie = true;
_root.canRunOopsieNow = false;
_root.newQueueCount = 5;
_root.button_bomb._alpha = 100;
_root.button_switcher._alpha = 100;
_root.button_eliminator._alpha = 100;
_root.button_newqueue._alpha = 30;
_root.button_oopsie._alpha = 30;
_root.button_bomb.enabled = true;
_root.button_switcher.enabled = true;
_root.button_eliminator.enabled = true;
_root.button_oopsie.enabled = true;
_root.button_newqueue.enabled = true;
_root.countBoxes();
unloadMovie ("_root.helpscreen");
unloadMovie ("_root.scorescreen");
unloadMovie ("_root.winscreen");
unloadMovie ("_root.winscreen_panic");
unloadMovie ("_root.winscreen_practice");
unloadMovie ("_root.quitscreen");
unloadMovie ("_root.eliminatorScreen");
unloadMovie ("_root.losescreen");
unloadMovie ("_root.puzzle_losescreen");
unloadMovie ("_root.enter_name_mc");
_root.closeExample1();
_root.closeExample2();
_root.queue.queueholder.pulse.gotoAndPlay(15);
_root.floater.pulse.gotoAndPlay(15);
if (_root.startHelpOn == true) {
_root.showHelp();
}
_root.startHelpOn = false;
if (_root.mode == "classic") {
_root.attachMovie("classicboxes", "myclassicboxes", 5);
myclassicboxes._x = 448;
myclassicboxes._y = 165;
movesLeftColor = new Color(_root.myclassicboxes.movesleft_box.movesLeft);
movesLeftColor.setRGB(153);
_root.myclassicboxes.movesLeftPulse.gotoAndStop(1);
canGo = true;
} else if (_root.mode == "panic") {
_root.seconds = 0;
_root.minutes = 0;
_root.showSeconds = "00";
_root.showMinutes = "";
_root.attachMovie("panicboxes", "panicboxes", 5);
panicboxes._x = 448;
panicboxes._y = 165;
_root.button_quit.enabled = false;
_root.button_quit._alpha = 30;
_root.button_help.enabled = false;
_root.button_help._alpha = 30;
_root.button_options.enabled = false;
_root.button_options._alpha = 30;
_root.button_topscores.enabled = false;
_root.button_topscores._alpha = 30;
} else if (_root.mode == "practice") {
_root.attachMovie("hint_showing_mc2", "hint_showing_mc2", 5);
hint_showing_mc2._x = 444;
hint_showing_mc2._y = 122;
canGo = true;
}
if ((_root.difficulty == 1) || (_root.mode == "practice")) {
_root.hintsToGive = 10;
_root.hintLiklihood = 9;
_root.timeBeforeHintShow = 4000;
} else if (_root.difficulty == 2) {
_root.hintsToGive = 7;
_root.hintLiklihood = 7;
_root.timeBeforeHintShow = 7000;
} else if (_root.difficulty == 3) {
_root.hintsToGive = 5;
_root.hintLiklihood = 5;
_root.timeBeforeHintShow = 10000;
} else if (_root.difficulty == 4) {
_root.hintsToGive = 3;
_root.hintLiklihood = 3;
_root.timeBeforeHintShow = 13000;
} else if (_root.difficulty == 5) {
_root.hintsToGive = 1;
_root.hintLiklihood = 1;
_root.timeBeforeHintShow = 16000;
}
if ((_root.myIntroShown == false) && ((_root.mode == "classic") || (_root.mode == "practice"))) {
_root.attachMovie("intro", "intro", 12);
intro._x = 0;
intro._y = 0;
_root.myIntroShown = true;
flashstudio.savetofile(myPath + myIntroShownFile, "true");
} else {
_root.startHintTimer();
}
_root.inPlay = true;
}
function hideIntro() {
unloadMovie ("_root.intro");
_root.startHintTimer();
}
function addToTipCount() {
_root.tipMoveCount++;
if ((((_root.tipMoveCount == 3) || (_root.tipMoveCount == 9)) || (_root.tipMoveCount == 13)) || (_root.tipMoveCount == 17)) {
if ((_root.mode == "practice") || (_root.mode == "classic")) {
_root.showTip();
}
}
}
function showTip() {
if (((_root.tipsEnabled == true) && (_root.tipNumber <= _root.totalTips)) && (_root.movesLeft > 2)) {
_root.attachMovie("tipscreen", "tipscreen", 12);
tipscreen._x = 250;
tipscreen._y = 200;
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.tipscreen.tipToShow.gotoAndStop(_root.tipNumber);
}
}
function hideTip() {
unloadMovie ("_root.tipscreen");
_root.tipNumber++;
canGo = true;
_root.queue.queueholder.pulse.gotoAndPlay(15);
_root.floater.pulse.gotoAndPlay(15);
}
function startHintTimer() {
if ((_root.canGo == true) && (_root.mode == "practice")) {
hintInterval = setInterval(function () {
_root.showMeHint();
}, 3000);
} else if (_root.canGo == true) {
hintInterval = setInterval(function () {
_root.showMeHint();
}, _root.timeBeforeHintShow);
}
}
function showMeHint() {
if (((((((_root.hintsEnabled == true) && (_root.hintsToGive > 0)) && (_root.bombOn == false)) && (_root.switcherOn == false)) && (_root.eliminatorOn == false)) && (_root.oopsieOn == false)) && (_root.newQueueOn == false)) {
clearInterval(hintInterval);
_root.hintSpotsCanGo = new Array();
showMeHintStep1();
}
}
function checkNextHintBox() {
nextHintInterval = setInterval(function () {
_root.showMeHintStep2();
}, 1);
}
function showMeHintStep1() {
randomNum = random(10);
if (randomNum <= _root.hintLiklihood) {
_root.showMeHintStep2();
}
}
function showMeHintStep2() {
clearInterval(nextHintInterval);
if (_root.checkingTileForHint == false) {
_root.hintBoxToCheck++;
if ((_root.hintBoxToCheck < 82) && (eval ("_root.box" + hintBoxToCheck)._currentframe == 11)) {
_root.checkingTileForHint = true;
_root.showMeHintStep3();
} else if (_root.hintBoxToCheck > 81) {
_root.checkingTileForHint = false;
_root.hintBoxToCheck = 0;
if (_root.hintSpotsCanGo.length > 0) {
_root.showMeHintNow();
}
} else {
_root.checkingTileForHint = false;
_root.checkNextHintBox();
}
}
}
function showMeHintStep3() {
if (_root.checkingTileForHint == true) {
_root.checkForHintSpot();
}
}
function checkForHintSpot() {
delete hintSurroundingArray;
if (hintBoxToCheck == 1) {
_root.hintSurroundingArray = new Array(2, 10, 11);
} else if (hintBoxToCheck == 2) {
_root.hintSurroundingArray = new Array(1, 3, 10, 11, 12);
} else if (hintBoxToCheck == 3) {
_root.hintSurroundingArray = new Array(2, 4, 11, 12, 13);
} else if (hintBoxToCheck == 4) {
_root.hintSurroundingArray = new Array(3, 5, 12, 13, 14);
} else if (hintBoxToCheck == 5) {
_root.hintSurroundingArray = new Array(4, 6, 13, 14, 15);
} else if (hintBoxToCheck == 6) {
_root.hintSurroundingArray = new Array(5, 7, 14, 15, 16);
} else if (hintBoxToCheck == 7) {
_root.hintSurroundingArray = new Array(6, 8, 15, 16, 17);
} else if (hintBoxToCheck == 8) {
_root.hintSurroundingArray = new Array(7, 9, 16, 17, 18);
} else if (hintBoxToCheck == 9) {
_root.hintSurroundingArray = new Array(8, 17, 18);
} else if (hintBoxToCheck == 10) {
_root.hintSurroundingArray = new Array(1, 2, 11, 19, 20);
} else if (hintBoxToCheck == 11) {
_root.hintSurroundingArray = new Array(1, 2, 3, 10, 12, 19, 20, 21);
} else if (hintBoxToCheck == 12) {
_root.hintSurroundingArray = new Array(2, 3, 4, 11, 13, 20, 21, 22);
} else if (hintBoxToCheck == 13) {
_root.hintSurroundingArray = new Array(3, 4, 5, 12, 14, 21, 22, 23);
} else if (hintBoxToCheck == 14) {
_root.hintSurroundingArray = new Array(4, 5, 6, 13, 15, 22, 23, 24);
} else if (hintBoxToCheck == 15) {
_root.hintSurroundingArray = new Array(5, 6, 7, 14, 16, 23, 24, 25);
} else if (hintBoxToCheck == 16) {
_root.hintSurroundingArray = new Array(6, 7, 8, 15, 17, 24, 25, 26);
} else if (hintBoxToCheck == 17) {
_root.hintSurroundingArray = new Array(7, 8, 9, 16, 18, 25, 26, 27);
} else if (hintBoxToCheck == 18) {
_root.hintSurroundingArray = new Array(8, 9, 17, 26, 27);
} else if (hintBoxToCheck == 19) {
_root.hintSurroundingArray = new Array(10, 11, 20, 28, 29);
} else if (hintBoxToCheck == 20) {
_root.hintSurroundingArray = new Array(10, 11, 12, 19, 21, 28, 29, 30);
} else if (hintBoxToCheck == 21) {
_root.hintSurroundingArray = new Array(11, 12, 13, 20, 22, 29, 30, 31);
} else if (hintBoxToCheck == 22) {
_root.hintSurroundingArray = new Array(12, 13, 14, 21, 23, 30, 31, 32);
} else if (hintBoxToCheck == 23) {
_root.hintSurroundingArray = new Array(13, 14, 15, 22, 24, 31, 32, 33);
} else if (hintBoxToCheck == 24) {
_root.hintSurroundingArray = new Array(14, 15, 16, 23, 25, 32, 33, 34);
} else if (hintBoxToCheck == 25) {
_root.hintSurroundingArray = new Array(15, 16, 17, 24, 26, 33, 34, 35);
} else if (hintBoxToCheck == 26) {
_root.hintSurroundingArray = new Array(16, 17, 18, 25, 27, 34, 35, 36);
} else if (hintBoxToCheck == 27) {
_root.hintSurroundingArray = new Array(17, 18, 26, 35, 36);
} else if (hintBoxToCheck == 28) {
_root.hintSurroundingArray = new Array(19, 20, 29, 37, 38);
} else if (hintBoxToCheck == 29) {
_root.hintSurroundingArray = new Array(19, 20, 21, 28, 30, 37, 38, 39);
} else if (hintBoxToCheck == 30) {
_root.hintSurroundingArray = new Array(20, 21, 22, 29, 31, 38, 39, 40);
} else if (hintBoxToCheck == 31) {
_root.hintSurroundingArray = new Array(21, 22, 23, 30, 32, 39, 40, 41);
} else if (hintBoxToCheck == 32) {
_root.hintSurroundingArray = new Array(22, 23, 24, 31, 33, 40, 41, 42);
} else if (hintBoxToCheck == 33) {
_root.hintSurroundingArray = new Array(23, 24, 25, 32, 34, 41, 42, 43);
} else if (hintBoxToCheck == 34) {
_root.hintSurroundingArray = new Array(24, 25, 26, 33, 35, 42, 43, 44);
} else if (hintBoxToCheck == 35) {
_root.hintSurroundingArray = new Array(25, 26, 27, 34, 36, 43, 44, 45);
} else if (hintBoxToCheck == 36) {
_root.hintSurroundingArray = new Array(26, 27, 35, 44, 45);
} else if (hintBoxToCheck == 37) {
_root.hintSurroundingArray = new Array(28, 29, 38, 46, 47);
} else if (hintBoxToCheck == 38) {
_root.hintSurroundingArray = new Array(28, 29, 30, 37, 39, 46, 47, 48);
} else if (hintBoxToCheck == 39) {
_root.hintSurroundingArray = new Array(29, 30, 31, 38, 40, 47, 48, 49);
} else if (hintBoxToCheck == 40) {
_root.hintSurroundingArray = new Array(30, 31, 32, 39, 41, 48, 49, 50);
} else if (hintBoxToCheck == 41) {
_root.hintSurroundingArray = new Array(31, 32, 33, 40, 42, 49, 50, 51);
} else if (hintBoxToCheck == 42) {
_root.hintSurroundingArray = new Array(32, 33, 34, 41, 43, 50, 51, 52);
} else if (hintBoxToCheck == 43) {
_root.hintSurroundingArray = new Array(33, 34, 35, 42, 44, 51, 52, 53);
} else if (hintBoxToCheck == 44) {
_root.hintSurroundingArray = new Array(34, 35, 36, 43, 45, 52, 53, 54);
} else if (hintBoxToCheck == 45) {
_root.hintSurroundingArray = new Array(35, 36, 44, 53, 54);
} else if (hintBoxToCheck == 46) {
_root.hintSurroundingArray = new Array(37, 38, 47, 55, 56);
} else if (hintBoxToCheck == 47) {
_root.hintSurroundingArray = new Array(37, 38, 39, 46, 48, 55, 56, 57);
} else if (hintBoxToCheck == 48) {
_root.hintSurroundingArray = new Array(38, 39, 40, 47, 49, 56, 57, 58);
} else if (hintBoxToCheck == 49) {
_root.hintSurroundingArray = new Array(39, 40, 41, 48, 50, 57, 58, 59);
} else if (hintBoxToCheck == 50) {
_root.hintSurroundingArray = new Array(40, 41, 42, 49, 51, 58, 59, 60);
} else if (hintBoxToCheck == 51) {
_root.hintSurroundingArray = new Array(41, 42, 43, 50, 52, 59, 60, 61);
} else if (hintBoxToCheck == 52) {
_root.hintSurroundingArray = new Array(42, 43, 44, 51, 53, 60, 61, 62);
} else if (hintBoxToCheck == 53) {
_root.hintSurroundingArray = new Array(43, 44, 45, 52, 54, 61, 62, 63);
} else if (hintBoxToCheck == 54) {
_root.hintSurroundingArray = new Array(44, 45, 53, 62, 63);
} else if (hintBoxToCheck == 55) {
_root.hintSurroundingArray = new Array(46, 47, 56, 64, 65);
} else if (hintBoxToCheck == 56) {
_root.hintSurroundingArray = new Array(46, 47, 48, 55, 57, 64, 65, 66);
} else if (hintBoxToCheck == 57) {
_root.hintSurroundingArray = new Array(47, 48, 49, 56, 58, 65, 66, 67);
} else if (hintBoxToCheck == 58) {
_root.hintSurroundingArray = new Array(48, 49, 50, 57, 59, 66, 67, 68);
} else if (hintBoxToCheck == 59) {
_root.hintSurroundingArray = new Array(49, 50, 51, 58, 60, 67, 68, 69);
} else if (hintBoxToCheck == 60) {
_root.hintSurroundingArray = new Array(50, 51, 52, 59, 61, 68, 69, 70);
} else if (hintBoxToCheck == 61) {
_root.hintSurroundingArray = new Array(51, 52, 53, 60, 62, 69, 70, 71);
} else if (hintBoxToCheck == 62) {
_root.hintSurroundingArray = new Array(52, 53, 54, 61, 63, 70, 71, 72);
} else if (hintBoxToCheck == 63) {
_root.hintSurroundingArray = new Array(53, 54, 62, 71, 72);
} else if (hintBoxToCheck == 64) {
_root.hintSurroundingArray = new Array(55, 56, 65, 73, 74);
} else if (hintBoxToCheck == 65) {
_root.hintSurroundingArray = new Array(55, 56, 57, 64, 66, 73, 74, 75);
} else if (hintBoxToCheck == 66) {
_root.hintSurroundingArray = new Array(56, 57, 58, 65, 67, 74, 75, 76);
} else if (hintBoxToCheck == 67) {
_root.hintSurroundingArray = new Array(57, 58, 59, 66, 68, 75, 76, 77);
} else if (hintBoxToCheck == 68) {
_root.hintSurroundingArray = new Array(58, 59, 60, 67, 69, 76, 77, 78);
} else if (hintBoxToCheck == 69) {
_root.hintSurroundingArray = new Array(59, 60, 61, 68, 70, 77, 78, 79);
} else if (hintBoxToCheck == 70) {
_root.hintSurroundingArray = new Array(60, 61, 62, 69, 71, 78, 79, 80);
} else if (hintBoxToCheck == 71) {
_root.hintSurroundingArray = new Array(61, 62, 63, 70, 72, 79, 80, 81);
} else if (hintBoxToCheck == 72) {
_root.hintSurroundingArray = new Array(62, 63, 71, 80, 81);
} else if (hintBoxToCheck == 73) {
_root.hintSurroundingArray = new Array(64, 65, 74);
} else if (hintBoxToCheck == 74) {
_root.hintSurroundingArray = new Array(64, 65, 66, 73, 75);
} else if (hintBoxToCheck == 75) {
_root.hintSurroundingArray = new Array(65, 66, 67, 74, 76);
} else if (hintBoxToCheck == 76) {
_root.hintSurroundingArray = new Array(66, 67, 68, 75, 77);
} else if (hintBoxToCheck == 77) {
_root.hintSurroundingArray = new Array(67, 68, 69, 76, 78);
} else if (hintBoxToCheck == 78) {
_root.hintSurroundingArray = new Array(68, 69, 70, 77, 79);
} else if (hintBoxToCheck == 79) {
_root.hintSurroundingArray = new Array(69, 70, 71, 78, 80);
} else if (hintBoxToCheck == 80) {
_root.hintSurroundingArray = new Array(70, 71, 72, 79, 81);
} else if (hintBoxToCheck == 81) {
_root.hintSurroundingArray = new Array(71, 72, 80);
}
_root.hintAddEmUp();
}
function hintAddEmUp() {
var myHintTotal = 0;
hintAddingArray = new Array();
i = 0;
while (i <= hintSurroundingArray.length) {
itemToAdd = hintSurroundingArray[i];
hintAddingArray.push(itemToAdd);
i++;
}
hintBoxesToCheck = hintSurroundingArray.length;
i = 0;
while (i < hintBoxesToCheck) {
nextHintBoxToCheck = hintAddingArray.shift();
thisHintBoxValue = eval (("_root.box" + nextHintBoxToCheck) + "._currentFrame");
if (thisHintBoxValue <= 10) {
myHintTotal = myHintTotal + thisHintBoxValue;
}
i++;
}
if (myHintTotal > 9) {
myHintTotal = String(myHintTotal);
myHintTotal = myHintTotal.charAt(1);
myHintTotal = Number(myHintTotal);
}
if (_root.lineUpBox1 == 10) {
thisHintBoxValue = 0;
} else {
thisHintBoxValue = _root.lineUpBox1;
}
if (thisHintBoxValue == myHintTotal) {
_root.hintSpotsCanGo.push(_root.hintBoxToCheck);
_root.checkingTileForHint = false;
_root.showMeHintStep2();
} else if (thisHintBoxValue != myHintTotal) {
_root.checkingTileForHint = false;
_root.checkNextHintBox();
}
delete hintAddingArray;
}
function showMeHintNow() {
if (_root.lineUpBox1 != 10) {
randomNum = random(_root.hintSpotsCanGo.length);
_root.tileToTry = _root.hintSpotsCanGo[randomNum];
if (_root.mode == "practice") {
_root.hint_showing_mc2.gotoAndPlay(2);
} else {
_root.hint_showing_mc.gotoAndPlay(2);
}
twotoneaSound = new Sound();
twotoneaSound.attachSound("twotonea.wav");
twotoneaSound.start();
}
}
function flashHint() {
_root.hint_showing_mc.gotoAndStop(1);
_root.hint_showing_mc2.gotoAndStop(1);
_root.hint_flash_box._x = eval ("_root.box" + _root.tileToTry)._x;
_root.hint_flash_box._y = eval ("_root.box" + _root.tileToTry)._y;
_root.hint_flash_box.gotoAndPlay(2);
twotonebSound = new Sound();
twotonebSound.attachSound("twotoneb.wav");
twotonebSound.start();
_root.hintsToGive--;
}
function hideFlashHint() {
_root.hint_flash_box._x = -50;
_root.hint_flash_box._y = 150;
}
function resetHint() {
clearInterval(hintInterval);
_root.hint_showing_mc.gotoAndStop(1);
_root.hint_showing_mc2.gotoAndStop(1);
_root.startHintTimer();
}
function endHintsAfterGame() {
}
function countBoxes() {
_root.boxesEmpty = 0;
_root.boxesFilled = 0;
i = 1;
while (i < 82) {
if (eval ("_root.box" + i)._currentframe < 11) {
_root.boxesFilled++;
} else {
_root.boxesEmpty++;
}
i++;
}
}
function deactivateSurrounder() {
_root.surrounderOn = false;
_root.surround_button_holder.gotoAndStop(2);
}
function activateSurrounder() {
_root.surrounderOn = true;
_root.surround_button_holder.gotoAndStop(1);
}
function openNA() {
_root.attachMovie("na_screen", "na_screen", 10);
na_screen._x = 250;
na_screen._y = 200;
_root.canGo = false;
}
function closeNA() {
unloadMovie ("_root.na_screen");
_root.canGo = true;
if ((_root.mode == "panic") && (_root.inPlay == true)) {
_root.continueTimer();
}
}
function openMoreInfo() {
getURL ("http://www.bluebuggames.com", "bbg");
}
function closeMoreInfo() {
unloadMovie ("_root.moreInfo_screen");
_root.canGo = true;
}
function showExample1() {
_root.attachMovie("example1", "example1", 23);
example1._x = 140;
example1._y = 180;
_root.example1Showing = true;
}
function showExample2() {
_root.attachMovie("example2", "example2", 24);
example2._x = 240;
example2._y = 180;
_root.example2Showing = true;
}
function closeExample1() {
unloadMovie ("_root.example1");
_root.example1Showing = false;
}
function closeExample2() {
unloadMovie ("_root.example2");
_root.example2Showing = false;
}
function showHelp() {
_root.attachMovie("helpscreen", "helpscreen", 12);
helpscreen._x = 0;
helpscreen._y = 0;
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
}
function showPuzzleHelp() {
_root.attachMovie("puzzlehelpscreen", "puzzlehelpscreen", 12);
puzzlehelpscreen._x = 0;
puzzlehelpscreen._y = 0;
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
}
function hideHelp() {
unloadMovie ("_root.helpscreen");
unloadMovie ("_root.puzzlehelpscreen");
_root.closeExample1();
_root.closeExample2();
canGo = true;
_root.queue.queueholder.pulse.gotoAndPlay(15);
_root.floater.pulse.gotoAndPlay(15);
if ((_root.mode == "panic") && (_root.inPlay == true)) {
_root.continueTimer();
}
}
function showTutorial() {
_root.attachMovie("tutorialscreen", "tutorialscreen", 12);
tutorialscreen._x = 0;
tutorialscreen._y = 0;
}
function hideTutorial() {
unloadMovie ("_root.tutorialscreen");
}
function showQuit() {
_root.attachMovie("quitscreen", "quitscreen", 12);
quitscreen._x = 250;
quitscreen._y = 200;
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
}
function hideQuit() {
unloadMovie ("_root.quitscreen");
canGo = true;
_root.queue.queueholder.pulse.gotoAndPlay(15);
_root.floater.pulse.gotoAndPlay(15);
if ((_root.mode == "panic") && (_root.inPlay == true)) {
_root.continueTimer();
}
}
function showOptions() {
_root.attachMovie("options_screen", "options_screen", 12);
options_screen._x = 250;
options_screen._y = 200;
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
}
function hideOptions() {
unloadMovie ("_root.options_screen");
if (canGo == false) {
canGo = true;
}
_root.queue.queueholder.pulse.gotoAndPlay(15);
_root.floater.pulse.gotoAndPlay(15);
if ((_root.mode == "panic") && (_root.inPlay == true)) {
_root.continueTimer();
}
}
function runBomber() {
_root.bombOn = true;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.gotoAndStop(2);
_root.button_bomb._alpha = 30;
_root.button_bomb.enabled = false;
_root.canRunBomber = false;
_root.powerMovesLeft--;
}
function runSwitcher() {
_root.canGo = false;
_root.switcherOn = true;
switchInterval = setInterval(function () {
_root.flashCount--;
changeNums();
}, switchSpeed);
_root.button_switcher._alpha = 30;
_root.button_switcher.enabled = false;
_root.canRunSwitcher = false;
_root.powerMovesLeft--;
_root.canRunOopsieNow = false;
}
function changeNums() {
i = 1;
while (i < 82) {
randomNum = random(10);
randomNum++;
if (eval ("_root.box" + i)._currentframe < 11) {
eval ("_root.box" + i).gotoAndStop(randomNum);
}
i++;
}
swishSound = new Sound();
swishSound.attachSound("swish02.wav");
swishSound.start();
if (flashCount <= 0) {
clearInterval(switchInterval);
_root.flashCount = 10;
_root.canGo = true;
_root.switcherOn = false;
_root.resetHint();
}
}
function runEliminator() {
_root.eliminatorOn = true;
_root.canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.attachMovie("eliminatorScreen", "eliminatorScreen", 6);
eliminatorScreen._x = 250;
eliminatorScreen._y = 200;
_root.button_eliminator._alpha = 30;
_root.button_eliminator.enabled = false;
_root.canRunEliminator = false;
_root.powerMovesLeft--;
_root.canRunOopsieNow = false;
}
function eliminateNumbers(myNumber) {
i = 1;
while (i < 82) {
if (eval ("_root.box" + i)._currentframe == myNumber) {
aniFrame = eval ("_root.box" + i)._currentframe + 12;
eval ("_root.box" + i).gotoAndStop(aniFrame);
}
i++;
}
goopsSound = new Sound();
goopsSound.attachSound("goops.wav");
goopsSound.start();
unloadMovie ("_root.eliminatorScreen");
_root.canGo = true;
_root.queue.queueholder.pulse.gotoAndPlay(15);
_root.floater.pulse.gotoAndPlay(15);
_root.eliminatorOn = false;
_root.countBoxes();
_root.checkForWin();
_root.resetHint();
}
function runOopsie() {
_root.oopsieOn = true;
_root.canGo = false;
_root.oopsieBrain_thisBox.gotoAndStop(11);
tilesToReplace = oopsieBrain_AddingArray.length;
i = 0;
while (i <= tilesToReplace) {
tileToSwitchBack = oopsieBrain_AddingArray.shift();
valueToChangeTo = oopsieBrain_ValuesArray.shift();
eval ("_root.box" + tileToSwitchBack).gotoAndStop(valueToChangeTo);
i++;
}
blurpSound = new Sound();
blurpSound.attachSound("blurp.wav");
blurpSound.start();
lineUpBox6 = lineUpBox5;
_root.queue.queueholder.lineup6.gotoAndStop(lineUpBox6);
lineUpBox5 = lineUpBox4;
_root.queue.queueholder.lineup5.gotoAndStop(lineUpBox5);
lineUpBox4 = lineUpBox3;
_root.queue.queueholder.lineup4.gotoAndStop(lineUpBox4);
lineUpBox3 = lineUpBox2;
_root.queue.queueholder.lineup3.gotoAndStop(lineUpBox3);
lineUpBox2 = lineUpBox1;
_root.queue.queueholder.lineup2.gotoAndStop(lineUpBox2);
lineUpBox1 = _root.oopsieBrain_placedTile;
_root.queue.queueholder.lineup1.gotoAndStop(_root.oopsieBrain_placedTile);
_root.floater.floaterBox.gotoAndStop(lineUpBox1);
_root.oopsieOn = false;
_root.canGo = true;
_root.button_oopsie._alpha = 30;
_root.button_oopsie.enabled = false;
_root.canRunOopsie = false;
_root.powerMovesLeft--;
_root.resetHint();
}
function setSquares() {
i = 1;
while (i < 82) {
randomNum = random(10);
randomNum++;
eval ("_root.box" + i).gotoAndStop(randomNum);
if (_root.difficulty == 5) {
if ((i > 1) && (i < 4)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 6) && (i < 9)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 73) && (i < 76)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 78) && (i < 81)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((((i == 18) || (i == 27)) || (i == 63)) || (i == 72)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((((i == 10) || (i == 19)) || (i == 55)) || (i == 64)) {
eval ("_root.box" + i).gotoAndStop(11);
}
}
if (_root.difficulty == 4) {
if ((i > 1) && (i < 5)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 5) && (i < 9)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 73) && (i < 77)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 77) && (i < 81)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((((((i == 18) || (i == 27)) || (i == 36)) || (i == 54)) || (i == 63)) || (i == 72)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((((((i == 10) || (i == 19)) || (i == 28)) || (i == 46)) || (i == 55)) || (i == 64)) {
eval ("_root.box" + i).gotoAndStop(11);
}
}
if (_root.difficulty == 3) {
if ((i > 0) && (i < 10)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 72) && (i < 82)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((((i == 18) || (i == 27)) || (i == 36)) || (i == 45)) || (i == 54)) || (i == 63)) || (i == 72)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((((i == 10) || (i == 19)) || (i == 28)) || (i == 37)) || (i == 46)) || (i == 55)) || (i == 64)) {
eval ("_root.box" + i).gotoAndStop(11);
}
}
if (_root.difficulty == 2) {
if ((i > 0) && (i < 10)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 72) && (i < 82)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((((i == 18) || (i == 27)) || (i == 36)) || (i == 45)) || (i == 54)) || (i == 63)) || (i == 72)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((((i == 10) || (i == 19)) || (i == 28)) || (i == 37)) || (i == 46)) || (i == 55)) || (i == 64)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((i == 21) || (i == 25)) || (i == 41)) || (i == 57)) || (i == 61)) {
eval ("_root.box" + i).gotoAndStop(11);
}
}
if (_root.difficulty == 1) {
if ((i > 0) && (i < 10)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if ((i > 72) && (i < 82)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((((i == 18) || (i == 27)) || (i == 36)) || (i == 45)) || (i == 54)) || (i == 63)) || (i == 72)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((((i == 10) || (i == 19)) || (i == 28)) || (i == 37)) || (i == 46)) || (i == 55)) || (i == 64)) {
eval ("_root.box" + i).gotoAndStop(11);
}
if (((((((((((((i == 11) || (i == 17)) || (i == 21)) || (i == 25)) || (i == 31)) || (i == 33)) || (i == 41)) || (i == 49)) || (i == 51)) || (i == 57)) || (i == 61)) || (i == 65)) || (i == 71)) {
eval ("_root.box" + i).gotoAndStop(11);
}
}
i++;
}
}
function setLineUp() {
i = 1;
while (i < 7) {
randomNum = random(10);
randomNum++;
lineUpArray.push(randomNum);
i++;
}
_root.lineUpBox1 = lineUpArray.pop(0);
_root.queue.queueholder.lineUp1.gotoAndStop(lineUpBox1);
_root.lineUpBox2 = lineUpArray.pop(0);
_root.queue.queueholder.lineUp2.gotoAndStop(lineUpBox2);
_root.lineUpBox3 = lineUpArray.pop(0);
_root.queue.queueholder.lineUp3.gotoAndStop(lineUpBox3);
_root.lineUpBox4 = lineUpArray.pop(0);
_root.queue.queueholder.lineUp4.gotoAndStop(lineUpBox4);
_root.lineUpBox5 = lineUpArray.pop(0);
_root.queue.queueholder.lineUp5.gotoAndStop(lineUpBox5);
_root.lineUpBox6 = lineUpArray.pop(0);
_root.queue.queueholder.lineUp6.gotoAndStop(lineUpBox6);
_root.floater.floaterBox.gotoAndStop(lineUpBox1);
}
function rollOverSquare(boxNumber) {
thisBox = eval ("_root.box" + boxNumber);
if ((thisBox._currentframe == 11) && (_root.eliminatorOn == false)) {
_root.floater._x = thisBox._x;
_root.floater._y = thisBox._y;
if (thisBox == box1) {
_root.surrounder.gotoAndStop(2);
} else if (thisBox == box9) {
_root.surrounder.gotoAndStop(4);
} else if (thisBox == box73) {
_root.surrounder.gotoAndStop(8);
} else if (thisBox == box81) {
_root.surrounder.gotoAndStop(6);
} else if (((((((thisBox == box2) || (thisBox == box3)) || (thisBox == box4)) || (thisBox == box5)) || (thisBox == box6)) || (thisBox == box7)) || (thisBox == box8)) {
_root.surrounder.gotoAndStop(3);
} else if (((((((thisBox == box18) || (thisBox == box27)) || (thisBox == box36)) || (thisBox == box45)) || (thisBox == box54)) || (thisBox == box63)) || (thisBox == box72)) {
_root.surrounder.gotoAndStop(5);
} else if (((((((thisBox == box74) || (thisBox == box75)) || (thisBox == box76)) || (thisBox == box77)) || (thisBox == box78)) || (thisBox == box79)) || (thisBox == box80)) {
_root.surrounder.gotoAndStop(7);
} else if (((((((thisBox == box10) || (thisBox == box19)) || (thisBox == box28)) || (thisBox == box37)) || (thisBox == box46)) || (thisBox == box55)) || (thisBox == box64)) {
_root.surrounder.gotoAndStop(9);
} else {
_root.surrounder.gotoAndStop(1);
}
if (_root.mode == "puzzle") {
if ((_root.surrounderOn == true) && (_root.tileInHand == true)) {
_root.surrounder._x = thisBox._x;
_root.surrounder._y = thisBox._y;
}
} else if (_root.surrounderOn == true) {
_root.surrounder._x = thisBox._x;
_root.surrounder._y = thisBox._y;
}
}
}
function rollOutSquare(boxNumber) {
_root.floater._x = 300;
_root.floater._y = -50;
_root.surrounder._x = 235;
_root.surrounder._y = -65;
}
function checkClick(boxNumber) {
thisBox = eval ("_root.box" + boxNumber);
if (_root.mode != "puzzle") {
if (_root.canGo == true) {
if (thisBox._currentframe == 11) {
_root.boxToCheck = thisBox;
_root.placeTile();
} else {
popdeepSound = new Sound();
popdeepSound.attachSound("popdeep.wav");
popdeepSound.start();
}
}
} else if (_root.mode == "puzzle") {
if ((thisBox._currentframe == 11) && (_root.tileInHand == true)) {
_root.boxToCheck = thisBox;
_root.placePuzzleTile();
} else {
popdeepSound = new Sound();
popdeepSound.attachSound("popdeep.wav");
popdeepSound.start();
}
}
}
function placeTile() {
if (_root.bombOn == false) {
thisBox.gotoAndStop(lineUpBox1);
}
_root.oopsieBrain_placedTile = lineUpBox1;
_root.oopsieBrain_thisBox = thisBox;
if (_root.bombOn == false) {
_root.floater.floaterBox.gotoAndStop(lineUpBox2);
_root.canGo = false;
_root.queue.gotoAndPlay(2);
_root.movesMade++;
_root.movesLeft--;
if ((_root.movesLeft < 11) && (_root.mode == "classic")) {
movesLeftColor = new Color(_root.myclassicboxes.movesleft_box.movesLeft);
movesLeftColor.setRGB(13369344);
_root.myclassicboxes.warningCircle_ani.gotoAndPlay(2);
_root.playFrumpSound();
}
if (_root.movesLeft == 10) {
_root.myclassicboxes.movesLeftPulse.gotoAndStop(2);
}
_root.checkForGonners();
} else if (_root.bombOn == true) {
_root.checkForGonners();
_root.bombOn = false;
_root.queue.queueholder.pulse._visible = true;
_root.floater.gotoAndStop(1);
_root.floater.floaterBox.gotoAndStop(lineUpBox1);
}
_root.rollOutSquare();
if (_root.mode != "puzzle") {
_root.resetHint();
}
}
function playFrumpSound() {
frumpSound = new Sound();
frumpSound.attachSound("frump.wav");
frumpSound.start();
}
function checkForGonners() {
delete surroundingArray;
if (boxToCheck == box1) {
_root.surroundingArray = new Array(2, 10, 11);
} else if (boxToCheck == box2) {
_root.surroundingArray = new Array(1, 3, 10, 11, 12);
} else if (boxToCheck == box3) {
_root.surroundingArray = new Array(2, 4, 11, 12, 13);
} else if (boxToCheck == box4) {
_root.surroundingArray = new Array(3, 5, 12, 13, 14);
} else if (boxToCheck == box5) {
_root.surroundingArray = new Array(4, 6, 13, 14, 15);
} else if (boxToCheck == box6) {
_root.surroundingArray = new Array(5, 7, 14, 15, 16);
} else if (boxToCheck == box7) {
_root.surroundingArray = new Array(6, 8, 15, 16, 17);
} else if (boxToCheck == box8) {
_root.surroundingArray = new Array(7, 9, 16, 17, 18);
} else if (boxToCheck == box9) {
_root.surroundingArray = new Array(8, 17, 18);
} else if (boxToCheck == box10) {
_root.surroundingArray = new Array(1, 2, 11, 19, 20);
} else if (boxToCheck == box11) {
_root.surroundingArray = new Array(1, 2, 3, 10, 12, 19, 20, 21);
} else if (boxToCheck == box12) {
_root.surroundingArray = new Array(2, 3, 4, 11, 13, 20, 21, 22);
} else if (boxToCheck == box13) {
_root.surroundingArray = new Array(3, 4, 5, 12, 14, 21, 22, 23);
} else if (boxToCheck == box14) {
_root.surroundingArray = new Array(4, 5, 6, 13, 15, 22, 23, 24);
} else if (boxToCheck == box15) {
_root.surroundingArray = new Array(5, 6, 7, 14, 16, 23, 24, 25);
} else if (boxToCheck == box16) {
_root.surroundingArray = new Array(6, 7, 8, 15, 17, 24, 25, 26);
} else if (boxToCheck == box17) {
_root.surroundingArray = new Array(7, 8, 9, 16, 18, 25, 26, 27);
} else if (boxToCheck == box18) {
_root.surroundingArray = new Array(8, 9, 17, 26, 27);
} else if (boxToCheck == box19) {
_root.surroundingArray = new Array(10, 11, 20, 28, 29);
} else if (boxToCheck == box20) {
_root.surroundingArray = new Array(10, 11, 12, 19, 21, 28, 29, 30);
} else if (boxToCheck == box21) {
_root.surroundingArray = new Array(11, 12, 13, 20, 22, 29, 30, 31);
} else if (boxToCheck == box22) {
_root.surroundingArray = new Array(12, 13, 14, 21, 23, 30, 31, 32);
} else if (boxToCheck == box23) {
_root.surroundingArray = new Array(13, 14, 15, 22, 24, 31, 32, 33);
} else if (boxToCheck == box24) {
_root.surroundingArray = new Array(14, 15, 16, 23, 25, 32, 33, 34);
} else if (boxToCheck == box25) {
_root.surroundingArray = new Array(15, 16, 17, 24, 26, 33, 34, 35);
} else if (boxToCheck == box26) {
_root.surroundingArray = new Array(16, 17, 18, 25, 27, 34, 35, 36);
} else if (boxToCheck == box27) {
_root.surroundingArray = new Array(17, 18, 26, 35, 36);
} else if (boxToCheck == box28) {
_root.surroundingArray = new Array(19, 20, 29, 37, 38);
} else if (boxToCheck == box29) {
_root.surroundingArray = new Array(19, 20, 21, 28, 30, 37, 38, 39);
} else if (boxToCheck == box30) {
_root.surroundingArray = new Array(20, 21, 22, 29, 31, 38, 39, 40);
} else if (boxToCheck == box31) {
_root.surroundingArray = new Array(21, 22, 23, 30, 32, 39, 40, 41);
} else if (boxToCheck == box32) {
_root.surroundingArray = new Array(22, 23, 24, 31, 33, 40, 41, 42);
} else if (boxToCheck == box33) {
_root.surroundingArray = new Array(23, 24, 25, 32, 34, 41, 42, 43);
} else if (boxToCheck == box34) {
_root.surroundingArray = new Array(24, 25, 26, 33, 35, 42, 43, 44);
} else if (boxToCheck == box35) {
_root.surroundingArray = new Array(25, 26, 27, 34, 36, 43, 44, 45);
} else if (boxToCheck == box36) {
_root.surroundingArray = new Array(26, 27, 35, 44, 45);
} else if (boxToCheck == box37) {
_root.surroundingArray = new Array(28, 29, 38, 46, 47);
} else if (boxToCheck == box38) {
_root.surroundingArray = new Array(28, 29, 30, 37, 39, 46, 47, 48);
} else if (boxToCheck == box39) {
_root.surroundingArray = new Array(29, 30, 31, 38, 40, 47, 48, 49);
} else if (boxToCheck == box40) {
_root.surroundingArray = new Array(30, 31, 32, 39, 41, 48, 49, 50);
} else if (boxToCheck == box41) {
_root.surroundingArray = new Array(31, 32, 33, 40, 42, 49, 50, 51);
} else if (boxToCheck == box42) {
_root.surroundingArray = new Array(32, 33, 34, 41, 43, 50, 51, 52);
} else if (boxToCheck == box43) {
_root.surroundingArray = new Array(33, 34, 35, 42, 44, 51, 52, 53);
} else if (boxToCheck == box44) {
_root.surroundingArray = new Array(34, 35, 36, 43, 45, 52, 53, 54);
} else if (boxToCheck == box45) {
_root.surroundingArray = new Array(35, 36, 44, 53, 54);
} else if (boxToCheck == box46) {
_root.surroundingArray = new Array(37, 38, 47, 55, 56);
} else if (boxToCheck == box47) {
_root.surroundingArray = new Array(37, 38, 39, 46, 48, 55, 56, 57);
} else if (boxToCheck == box48) {
_root.surroundingArray = new Array(38, 39, 40, 47, 49, 56, 57, 58);
} else if (boxToCheck == box49) {
_root.surroundingArray = new Array(39, 40, 41, 48, 50, 57, 58, 59);
} else if (boxToCheck == box50) {
_root.surroundingArray = new Array(40, 41, 42, 49, 51, 58, 59, 60);
} else if (boxToCheck == box51) {
_root.surroundingArray = new Array(41, 42, 43, 50, 52, 59, 60, 61);
} else if (boxToCheck == box52) {
_root.surroundingArray = new Array(42, 43, 44, 51, 53, 60, 61, 62);
} else if (boxToCheck == box53) {
_root.surroundingArray = new Array(43, 44, 45, 52, 54, 61, 62, 63);
} else if (boxToCheck == box54) {
_root.surroundingArray = new Array(44, 45, 53, 62, 63);
} else if (boxToCheck == box55) {
_root.surroundingArray = new Array(46, 47, 56, 64, 65);
} else if (boxToCheck == box56) {
_root.surroundingArray = new Array(46, 47, 48, 55, 57, 64, 65, 66);
} else if (boxToCheck == box57) {
_root.surroundingArray = new Array(47, 48, 49, 56, 58, 65, 66, 67);
} else if (boxToCheck == box58) {
_root.surroundingArray = new Array(48, 49, 50, 57, 59, 66, 67, 68);
} else if (boxToCheck == box59) {
_root.surroundingArray = new Array(49, 50, 51, 58, 60, 67, 68, 69);
} else if (boxToCheck == box60) {
_root.surroundingArray = new Array(50, 51, 52, 59, 61, 68, 69, 70);
} else if (boxToCheck == box61) {
_root.surroundingArray = new Array(51, 52, 53, 60, 62, 69, 70, 71);
} else if (boxToCheck == box62) {
_root.surroundingArray = new Array(52, 53, 54, 61, 63, 70, 71, 72);
} else if (boxToCheck == box63) {
_root.surroundingArray = new Array(53, 54, 62, 71, 72);
} else if (boxToCheck == box64) {
_root.surroundingArray = new Array(55, 56, 65, 73, 74);
} else if (boxToCheck == box65) {
_root.surroundingArray = new Array(55, 56, 57, 64, 66, 73, 74, 75);
} else if (boxToCheck == box66) {
_root.surroundingArray = new Array(56, 57, 58, 65, 67, 74, 75, 76);
} else if (boxToCheck == box67) {
_root.surroundingArray = new Array(57, 58, 59, 66, 68, 75, 76, 77);
} else if (boxToCheck == box68) {
_root.surroundingArray = new Array(58, 59, 60, 67, 69, 76, 77, 78);
} else if (boxToCheck == box69) {
_root.surroundingArray = new Array(59, 60, 61, 68, 70, 77, 78, 79);
} else if (boxToCheck == box70) {
_root.surroundingArray = new Array(60, 61, 62, 69, 71, 78, 79, 80);
} else if (boxToCheck == box71) {
_root.surroundingArray = new Array(61, 62, 63, 70, 72, 79, 80, 81);
} else if (boxToCheck == box72) {
_root.surroundingArray = new Array(62, 63, 71, 80, 81);
} else if (boxToCheck == box73) {
_root.surroundingArray = new Array(64, 65, 74);
} else if (boxToCheck == box74) {
_root.surroundingArray = new Array(64, 65, 66, 73, 75);
} else if (boxToCheck == box75) {
_root.surroundingArray = new Array(65, 66, 67, 74, 76);
} else if (boxToCheck == box76) {
_root.surroundingArray = new Array(66, 67, 68, 75, 77);
} else if (boxToCheck == box77) {
_root.surroundingArray = new Array(67, 68, 69, 76, 78);
} else if (boxToCheck == box78) {
_root.surroundingArray = new Array(68, 69, 70, 77, 79);
} else if (boxToCheck == box79) {
_root.surroundingArray = new Array(69, 70, 71, 78, 80);
} else if (boxToCheck == box80) {
_root.surroundingArray = new Array(70, 71, 72, 79, 81);
} else if (boxToCheck == box81) {
_root.surroundingArray = new Array(71, 72, 80);
}
if ((_root.bombOn == false) || (_root.mode == "puzzle")) {
addEmUp();
} else {
takeEmOut();
}
}
function addEmUp() {
var myTotal = 0;
addingArray = new Array();
i = 0;
while (i <= surroundingArray.length) {
itemToAdd = surroundingArray[i];
addingArray.push(itemToAdd);
i++;
}
_root.oopsieBrain_AddingArray = new Array();
i = 0;
while (i < addingArray.length) {
_root.oopsieBrain_AddingArray.push(addingArray[i]);
i++;
}
_root.oopsieBrain_ValuesArray = new Array();
boxesToCheck = surroundingArray.length;
i = 0;
while (i < boxesToCheck) {
nextBoxToCheck = addingArray.shift();
thisBoxValue = eval (("_root.box" + nextBoxToCheck) + "._currentFrame");
oopsieBrain_ValuesArray.push(thisBoxValue);
if (thisBoxValue <= 10) {
myTotal = myTotal + thisBoxValue;
}
i++;
}
if (myTotal > 9) {
myTotal = String(myTotal);
myTotal = myTotal.charAt(1);
myTotal = Number(myTotal);
}
if (boxToCheck._currentFrame == 10) {
thisBoxValue = 0;
} else {
thisBoxValue = boxToCheck._currentFrame;
}
if (thisBoxValue == myTotal) {
_root.takeEmOut();
} else {
popSound = new Sound();
popSound.attachSound("pop.wav");
popSound.start();
_root.checkForLoss();
_root.justGot = 0;
_root.countBoxes();
if (_root.tipsEnabled == true) {
_root.addToTipCount();
}
}
_root.boxToCheck = null;
delete addingArray;
_root.canRunOopsieNow = true;
}
function playPopSound() {
popSound = new Sound();
popSound.attachSound("pop.wav");
popSound.start();
}
function takeEmOut() {
switchingArray = new Array();
i = 0;
while (i <= surroundingArray.length) {
itemToAdd = surroundingArray[i];
switchingArray.push(itemToAdd);
i++;
}
boxesToSwitch = surroundingArray.length;
i = 0;
while (i < boxesToSwitch) {
nextBoxToSwitch = switchingArray.shift();
if (eval ("_root.box" + nextBoxToSwitch)._currentframe < 11) {
aniFrame = eval ("_root.box" + nextBoxToSwitch)._currentframe + 12;
eval ("_root.box" + nextBoxToSwitch).gotoAndStop(aniFrame);
}
i++;
}
aniFrame = thisBox._currentframe + 12;
thisBox.gotoAndStop(aniFrame);
if (_root.bombOn == true) {
boomSound = new Sound();
boomSound.attachSound("boom.mp3");
boomSound.start();
_root.canRunOopsieNow = false;
} else {
plopSound = new Sound();
plopSound.attachSound("goop.wav");
plopSound.start();
}
_root.queue.queueholder.pulse.gotoAndPlay(15);
_root.floater.pulse.gotoAndPlay(15);
delete switchingArray;
_root.boxesEmptyBefore = boxesEmpty;
_root.countBoxes();
if ((_root.bombOn == false) && (_root.mode != "puzzle")) {
_root.justGot = boxesEmpty - boxesEmptyBefore;
if (_root.justGot == 4) {
_root.bonus = _root.bonus + Number(_root.x4);
} else if (_root.justGot == 5) {
_root.bonus = _root.bonus + Number(_root.x5);
} else if (_root.justGot == 6) {
_root.bonus = _root.bonus + Number(_root.x6);
} else if (_root.justGot == 7) {
_root.bonus = _root.bonus + Number(_root.x7);
} else if (_root.justGot == 8) {
_root.bonus = _root.bonus + Number(_root.x8);
}
}
if (((_root.justGot > 3) && (_root.bombOn == false)) && (_root.mode == "classic")) {
_root.displayedJustGot = _root.justGot;
_root.sweetmove_sign_ani._x = _xmouse;
_root.sweetmove_sign_ani._y = _ymouse - 25;
_root.sweetmove_sign_ani.gotoAndPlay(1);
_root.myclassicboxes.sweetmoves_box.bonus_ani.gotoAndPlay(2);
goopsSound = new Sound();
goopsSound.attachSound("goops.wav");
goopsSound.start();
goopsSound.start();
goopsSound.start();
goopsSound.start();
_root.sweetmove_sign_ani.sweetmove_sign.displayedJustGot.selectable = false;
}
_root.checkForWin();
if ((_root.movesLeft == 0) && (_root.mode == "classic")) {
_root.checkForLoss();
}
if ((_root.mode == "puzzle") && (_root.boxesFilled != 0)) {
_root.checkForLoss();
}
_root.resetHint();
}
function runNewQueue() {
_root.resetHint();
if (_root.newQueueCount > 0) {
_root.canGo = false;
_root.newQueueOn = true;
_root.floater.floaterBox.gotoAndStop(lineUpBox2);
_root.queue.gotoAndPlay(2);
_root.newQueueCount--;
_root.button_newqueue._alpha = 30;
_root.button_newqueue.enabled = false;
_root.canRunOopsieNow = false;
_root.powerMovesLeft--;
}
}
function shiftLineUp() {
lineUpBox1 = lineUpBox2;
_root.queue.queueholder.lineup1.gotoAndStop(lineUpBox1);
lineUpBox2 = lineUpBox3;
_root.queue.queueholder.lineup2.gotoAndStop(lineUpBox2);
lineUpBox3 = lineUpBox4;
_root.queue.queueholder.lineup3.gotoAndStop(lineUpBox3);
lineUpBox4 = lineUpBox5;
_root.queue.queueholder.lineup4.gotoAndStop(lineUpBox4);
lineUpBox5 = lineUpBox6;
_root.queue.queueholder.lineup5.gotoAndStop(lineUpBox5);
randomNum = random(10);
randomNum++;
lineUpBox6 = randomNum;
_root.queue.queueholder.lineup6.gotoAndStop(lineUpBox6);
_root.floater.floaterBox.gotoAndStop(lineUpBox1);
if ((_root.newQueueCount > 0) && (_root.newQueueOn == true)) {
_root.runNewQueue();
} else {
_root.canGo = true;
_root.queue.gotoAndStop(1);
if (_root.newQueueOn == true) {
_root.newQueueOn = false;
_root.canRunNewQueue = false;
}
}
_root.resetHint();
}
function checkForWin() {
_root.allClear = true;
i = 1;
while (i < 82) {
if (eval ("_root.box" + i)._currentframe < 11) {
_root.allClear = false;
break;
}
i++;
}
if ((_root.allClear == true) && (_root.mode == "classic")) {
_root.endGame();
_root.attachMovie("winscreen", "winscreen", 12);
winscreen._x = 250;
winscreen._y = 200;
wizzSound = new Sound();
wizzSound.attachSound("wizz.wav");
wizzSound.start();
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.powerMovesScore = _root.noPowerBonus * _root.powerMovesLeft;
_root.movesLeftScore = _root.movesLeftBonus * _root.movesLeft;
_root.finalScore = ((Number(_root.finishBonus) + Number(_root.bonus)) + Number(_root.powerMovesScore)) + Number(_root.movesLeftScore);
_root.showScores();
} else if ((_root.allClear == true) && (_root.mode == "panic")) {
_root.endGame();
_root.attachMovie("winscreen_panic", "winscreen_panic", 12);
winscreen_panic._x = 250;
winscreen_panic._y = 200;
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
} else if ((_root.allClear == true) && (_root.mode == "practice")) {
_root.endGame();
_root.attachMovie("winscreen_practice", "winscreen_practice", 12);
winscreen_practice._x = 250;
winscreen_practice._y = 200;
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
} else if ((_root.allClear == true) && (_root.mode == "puzzle")) {
if (_root.currentStage < _root.totalPuzzles) {
if (_root.currentStage == _root.nextStageToPass) {
_root.nextStageToPass++;
flashstudio.savetofile(_root.myPath + _root.myStageFile, _root.nextStageToPass);
}
_root.attachMovie("puzzle_winscreen", "puzzle_winscreen", 2);
puzzle_winscreen._x = 0;
puzzle_winscreen._y = 0;
_root.playWinSound();
} else if (_root.currentStage == _root.totalPuzzles) {
_root.attachMovie("puzzle_finalscreen", "puzzle_finalscreen", 2);
puzzle_finalscreen._x = 0;
puzzle_finalscreen._y = 0;
_root.playWinSound();
}
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.endGame();
}
}
function showScores() {
_root.scoreToShow = 0;
showScoresInterval = setInterval(function () {
scoreToShow++;
showMyScores();
}, 1100);
}
function showMyScores() {
popSound = new Sound();
popSound.attachSound("pop.wav");
if (_root.scoreToShow == 1) {
_root.winscreen.scorescreen_1._visible = true;
popSound.start();
} else if (_root.scoreToShow == 2) {
_root.winscreen.scorescreen_2._visible = true;
popSound.start();
} else if (_root.scoreToShow == 3) {
_root.winscreen.scorescreen_3._visible = true;
popSound.start();
} else if (_root.scoreToShow == 4) {
_root.winscreen.scorescreen_4._visible = true;
popSound.start();
_root.winscreen.scoreline_ani.gotoAndPlay(2);
} else if (_root.scoreToShow == 5) {
_root.winscreen.scorescreen_5._visible = true;
popSound.start();
clearInterval(showScoresInterval);
_root.countUpScore();
}
}
function countUpScore() {
countUpScoreInterval = setInterval(function () {
increaseScore();
}, 5);
}
function increaseScore() {
if (_root.displayedFinalScore < _root.finalScore) {
_root.displayedFinalScore = _root.displayedFinalScore + 21;
clickNoise = new Sound();
clickNoise.attachSound("tock.mp3");
clickNoise.start();
} else {
clickNoise.stop();
_root.displayedFinalScore = _root.finalScore;
clearInterval(countUpScoreInterval);
_root.winscreen.scorescreen_5.final_score_ani.gotoAndPlay(2);
_root.winscreen.winscreen_buttons._visible = true;
_root.playWinSound();
if (_root.grabdotcom == true) {
_root.winscreen.winscreen_grab_challenge._visible = true;
_root.runGrabScore();
}
if (_root.gameVersion == "full") {
_root.rankMe();
}
}
}
function playWinSound() {
winSound = new Sound();
winSound.attachSound("success.wav");
winSound.start();
}
function checkForLoss() {
_root.allFilled = true;
i = 1;
while (i < 82) {
if ((eval ("_root.box" + i)._currentframe == 11) || (eval ("_root.box" + i)._currentframe > 12)) {
_root.allFilled = false;
break;
}
i++;
}
_root.allClear = true;
i = 1;
while (i < 82) {
if (eval ("_root.box" + i)._currentframe < 11) {
_root.allClear = false;
break;
}
i++;
}
if ((((_root.allFilled == true) || (_root.movesLeft == 0)) && (_root.mode == "classic")) && (_root.allClear == false)) {
trace("you lose");
_root.attachMovie("losescreen", "losescreen", 12);
losescreen._x = 0;
losescreen._y = 0;
loseSound = new Sound();
loseSound.attachSound("ahoog.wav");
loseSound.start();
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.endGame();
} else if ((_root.allFilled == true) && (_root.mode == "panic")) {
_root.attachMovie("losescreen", "losescreen", 12);
losescreen._x = 0;
losescreen._y = 0;
loseSound = new Sound();
loseSound.attachSound("ahoog.wav");
loseSound.start();
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.endGame();
} else if ((_root.allFilled == true) && (_root.mode == "practice")) {
_root.attachMovie("losescreen", "losescreen", 12);
losescreen._x = 0;
losescreen._y = 0;
loseSound = new Sound();
loseSound.attachSound("ahoog.wav");
loseSound.start();
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.endGame();
} else if (((_root.allFilled == true) || (_root.outtaTiles == true)) && (_root.mode == "puzzle")) {
_root.attachMovie("puzzle_losescreen", "puzzle_losescreen", 2);
puzzle_losescreen._x = 0;
puzzle_losescreen._y = 0;
loseSound = new Sound();
loseSound.attachSound("ahoog.wav");
loseSound.start();
canGo = false;
_root.queue.queueholder.pulse.gotoAndStop(15);
_root.floater.pulse.gotoAndStop(15);
_root.endGame();
}
}
function clickSound() {
clickNoise = new Sound();
clickNoise.attachSound("tock.mp3");
clickNoise.start();
}
function startPanic() {
canGo = true;
displayedTime = "";
countTime();
_root.resetHint();
_root.button_quit.enabled = true;
_root.button_quit._alpha = 100;
_root.button_help.enabled = true;
_root.button_help._alpha = 100;
_root.button_options.enabled = true;
_root.button_options._alpha = 100;
_root.button_topscores.enabled = true;
_root.button_topscores._alpha = 100;
}
function countTime() {
timeInterval = setInterval(function () {
increaseTime();
}, 1000);
}
function increaseTime() {
_root.seconds++;
if (_root.seconds >= 60) {
_root.seconds = 0;
_root.minutes++;
_root.panicboxes.warningCircle_ani.gotoAndPlay(2);
_root.playFrumpSound();
}
if (_root.seconds < 10) {
_root.showSeconds = "0" + seconds;
} else {
_root.showSeconds = seconds;
}
if (_root.minutes > 0) {
_root.showMinutes = minutes;
}
_root.displayedTime = (showMinutes + ":") + showSeconds;
}
function pauseTimer() {
clearInterval(timeInterval);
}
function continueTimer() {
_root.countTime();
}
function endGame() {
if (_root.mode == "panic") {
clearInterval(timeInterval);
_root.finalDisplayedTime = _root.displayedTime;
_root.seconds = 0;
_root.minutes = 0;
_root.showSeconds = "00";
_root.showMinutes = "";
_root.displayedTime = "";
}
clearInterval(hintInterval);
_root.inPlay = false;
}
function clearOutScoreInfo() {
if (_root.mode == "classic") {
unloadMovie ("myclassicboxes");
} else if (_root.mode == "panic") {
unloadMovie ("panicboxes");
} else if (_root.mode == "practice") {
unloadMovie ("hint_showing_mc2");
}
}
function runPuzzleUndo() {
_root.oopsieOn = true;
_root.canGo = false;
_root.oopsieBrain_thisBox.gotoAndStop(11);
tilesToReplace = oopsieBrain_AddingArray.length;
i = 0;
while (i <= tilesToReplace) {
tileToSwitchBack = oopsieBrain_AddingArray.shift();
valueToChangeTo = oopsieBrain_ValuesArray.shift();
eval ("_root.box" + tileToSwitchBack).gotoAndStop(valueToChangeTo);
i++;
}
if ((_root.tileInHand == true) && (_root.numberInHand == 1)) {
_root.oneTiles++;
_root.puzzle_tray_1.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 2)) {
_root.twoTiles++;
_root.puzzle_tray_2.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 3)) {
_root.threeTiles++;
_root.puzzle_tray_3.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 4)) {
_root.fourTiles++;
_root.puzzle_tray_4.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 5)) {
_root.fiveTiles++;
_root.puzzle_tray_5.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 6)) {
_root.sixTiles++;
_root.puzzle_tray_6.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 7)) {
_root.sevenTiles++;
_root.puzzle_tray_7.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 8)) {
_root.eightTiles++;
_root.puzzle_tray_8.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 9)) {
_root.nineTiles++;
_root.puzzle_tray_9.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 10)) {
_root.zeroTiles++;
_root.puzzle_tray_10.gotoAndStop(1);
}
_root.floater.floaterBox.gotoAndStop(11);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
if (_root.lastNumberPlaced == 1) {
_root.oneTiles++;
_root.puzzle_tray_1.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 2) {
_root.twoTiles++;
_root.puzzle_tray_2.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 3) {
_root.threeTiles++;
_root.puzzle_tray_3.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 4) {
_root.fourTiles++;
_root.puzzle_tray_4.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 5) {
_root.fiveTiles++;
_root.puzzle_tray_5.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 6) {
_root.sixTiles++;
_root.puzzle_tray_6.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 7) {
_root.sevenTiles++;
_root.puzzle_tray_7.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 8) {
_root.eightTiles++;
_root.puzzle_tray_8.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 9) {
_root.nineTiles++;
_root.puzzle_tray_9.gotoAndStop(1);
} else if (_root.lastNumberPlaced == 10) {
_root.zeroTiles++;
_root.puzzle_tray_10.gotoAndStop(1);
}
_root.lastPuzzleSpaceUsed.gotoAndStop(11);
blurpSound = new Sound();
blurpSound.attachSound("blurp.wav");
blurpSound.start();
_root.oopsieOn = false;
_root.canGo = true;
_root.button_puzzleUndo._alpha = 30;
_root.button_puzzleUndo.enabled = false;
_root.canPuzzleUndo = false;
}
function startPuzzleGame() {
_root.button_puzzleUndo._alpha = 30;
_root.button_puzzleUndo.enabled = false;
_root.canRunPuzzleUndo = false;
_root.numberInHand = null;
_root.tileInHand = false;
_root.outtaTiles = false;
stageDisplay.selectable = false;
displayedStageNumber.selectable = false;
puzzle_tray_1.display_1tiles.selectable = false;
puzzle_tray_2.display_2tiles.selectable = false;
puzzle_tray_3.display_3tiles.selectable = false;
puzzle_tray_4.display_4tiles.selectable = false;
puzzle_tray_5.display_5tiles.selectable = false;
puzzle_tray_6.display_6tiles.selectable = false;
puzzle_tray_7.display_7tiles.selectable = false;
puzzle_tray_8.display_8tiles.selectable = false;
puzzle_tray_9.display_9tiles.selectable = false;
puzzle_tray_10.display_0tiles.selectable = false;
_root.canGo = false;
_root.floater.gotoAndStop(1);
_root.setPuzzleSquares();
_root.floater.floaterBox.gotoAndStop(11);
unloadMovie ("_root.helpscreen");
unloadMovie ("_root.scorescreen");
unloadMovie ("_root.winscreen");
unloadMovie ("_root.winscreen_panic");
unloadMovie ("_root.winscreen_practice");
unloadMovie ("_root.quitscreen");
unloadMovie ("_root.eliminatorScreen");
unloadMovie ("_root.losescreen");
unloadMovie ("_root.puzzle_losescreen");
unloadMovie ("_root.puzzle_winscreen");
unloadMovie ("_root.puzzle_finalscreen");
unloadMovie ("_root.enter_name_mc");
_root.closeExample1();
_root.closeExample2();
_root.floater.pulse.gotoAndStop(1);
_root.attachMovie("stageSelectScreen", "stageSelectScreen", 12);
stageSelectScreen._x = 250;
stageSelectScreen._y = 200;
i = 2;
while (i < 57) {
eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleButton_" + i).enabled = false;
eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleButton_" + i)._alpha = 30;
eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleStageName_" + i)._alpha = 30;
myColor = new Color(eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleStageName_" + i));
myColor.setRGB(10027008);
i++;
}
i = 1;
while (i <= _root.nextStageToPass) {
eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleButton_" + i).enabled = true;
eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleButton_" + i)._alpha = 100;
eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleStageName_" + i)._alpha = 100;
myColor = new Color(eval ("_root.stageSelectScreen.puzzle_buttons_ani.puzzle_buttons.puzzleStageName_" + i));
myColor.setRGB(153);
i++;
}
}
function restartPuzzle() {
_root.button_puzzleUndo._alpha = 30;
_root.button_puzzleUndo.enabled = false;
_root.canRunPuzzleUndo = false;
_root.numberInHand = null;
_root.tileInHand = false;
_root.outtaTiles = false;
_root.floater.floaterBox.gotoAndStop(11);
_root.floater.pulse.gotoAndStop(1);
_root.puzzleOpenStage(_root.currentStage);
_root.updateTray();
unloadMovie ("_root.puzzle_losescreen");
unloadMovie ("_root.puzzle_winscreen");
}
function setPuzzleSquares() {
i = 1;
while (i < 82) {
eval ("_root.box" + i).gotoAndStop(11);
i++;
}
}
function updatePuzzleArrows() {
puzzleArrowInterval = setInterval(function () {
_root.updatePuzzleArrowsNow();
}, 200);
}
function updatePuzzleArrowsNow() {
if ((_root.nextStageToPass >= 1) && (_root.nextStageToPass <= 14)) {
_root.stageSelectScreen.puzzle_buttons_ani.gotoAndStop(1);
_root.stageSelectScreen.puzzle_scroll_left.enabled = false;
_root.stageSelectScreen.puzzle_scroll_left._alpha = 30;
_root.stageSelectScreen.more1._visible = false;
} else if ((_root.nextStageToPass >= 15) && (_root.nextStageToPass <= 28)) {
_root.stageSelectScreen.puzzle_buttons_ani.gotoAndStop(10);
} else if ((_root.nextStageToPass >= 29) && (_root.nextStageToPass <= 42)) {
_root.stageSelectScreen.puzzle_buttons_ani.gotoAndStop(20);
} else if (_root.nextStageToPass >= 43) {
_root.stageSelectScreen.puzzle_buttons_ani.gotoAndStop(30);
_root.stageSelectScreen.puzzle_scroll_right.enabled = false;
_root.stageSelectScreen.puzzle_scroll_right._alpha = 30;
_root.stageSelectScreen.more2._visible = false;
}
clearInterval(puzzleArrowInterval);
}
function quickSwitchCurrentHand(newNumForHand) {
if (_root.numberInHand == 1) {
_root.oneTiles++;
_root.puzzle_tray_1.gotoAndStop(1);
} else if (_root.numberInHand == 2) {
_root.twoTiles++;
_root.puzzle_tray_2.gotoAndStop(1);
} else if (_root.numberInHand == 3) {
_root.threeTiles++;
_root.puzzle_tray_3.gotoAndStop(1);
} else if (_root.numberInHand == 4) {
_root.fourTiles++;
_root.puzzle_tray_4.gotoAndStop(1);
} else if (_root.numberInHand == 5) {
_root.fiveTiles++;
_root.puzzle_tray_5.gotoAndStop(1);
} else if (_root.numberInHand == 6) {
_root.sixTiles++;
_root.puzzle_tray_6.gotoAndStop(1);
} else if (_root.numberInHand == 7) {
_root.sevenTiles++;
_root.puzzle_tray_7.gotoAndStop(1);
} else if (_root.numberInHand == 8) {
_root.eightTiles++;
_root.puzzle_tray_8.gotoAndStop(1);
} else if (_root.numberInHand == 9) {
_root.nineTiles++;
_root.puzzle_tray_9.gotoAndStop(1);
} else if (_root.numberInHand == 10) {
_root.zeroTiles++;
_root.puzzle_tray_10.gotoAndStop(1);
}
if (newNumForHand == 1) {
_root.floater.floaterBox.gotoAndStop(1);
_root.oneTiles--;
_root.puzzle_tray_1.gotoAndStop(3);
_root.numberInHand = 1;
} else if (newNumForHand == 2) {
_root.floater.floaterBox.gotoAndStop(2);
_root.twoTiles--;
_root.puzzle_tray_2.gotoAndStop(3);
_root.numberInHand = 2;
} else if (newNumForHand == 3) {
_root.floater.floaterBox.gotoAndStop(3);
_root.threeTiles--;
_root.puzzle_tray_3.gotoAndStop(3);
_root.numberInHand = 3;
} else if (newNumForHand == 4) {
_root.floater.floaterBox.gotoAndStop(4);
_root.fourTiles--;
_root.puzzle_tray_4.gotoAndStop(3);
_root.numberInHand = 4;
} else if (newNumForHand == 5) {
_root.floater.floaterBox.gotoAndStop(5);
_root.fiveTiles--;
_root.puzzle_tray_5.gotoAndStop(3);
_root.numberInHand = 5;
} else if (newNumForHand == 6) {
_root.floater.floaterBox.gotoAndStop(6);
_root.sixTiles--;
_root.puzzle_tray_6.gotoAndStop(3);
_root.numberInHand = 6;
} else if (newNumForHand == 7) {
_root.floater.floaterBox.gotoAndStop(7);
_root.sevenTiles--;
_root.puzzle_tray_7.gotoAndStop(3);
_root.numberInHand = 7;
} else if (newNumForHand == 8) {
_root.floater.floaterBox.gotoAndStop(8);
_root.eightTiles--;
_root.puzzle_tray_8.gotoAndStop(3);
_root.numberInHand = 8;
} else if (newNumForHand == 9) {
_root.floater.floaterBox.gotoAndStop(9);
_root.nineTiles--;
_root.puzzle_tray_9.gotoAndStop(3);
_root.numberInHand = 9;
} else if (newNumForHand == 10) {
_root.floater.floaterBox.gotoAndStop(10);
_root.zeroTiles--;
_root.puzzle_tray_10.gotoAndStop(3);
_root.numberInHand = 10;
}
}
function placePuzzleTile() {
thisBox.gotoAndStop(numberInHand);
_root.lastPuzzleSpaceUsed = _root.thisBox;
_root.floater.floaterBox.gotoAndStop(11);
eval ("_root.puzzle_tray_" + numberInHand).gotoAndStop(1);
_root.lastNumberPlaced = numberInHand;
_root.updateTray();
_root.canGo = false;
_root.checkForGonners();
_root.rollOutSquare();
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
_root.button_puzzleUndo._alpha = 100;
_root.button_puzzleUndo.enabled = true;
_root.canRunPuzzleUndo = true;
}
function updateTray() {
var numbersGone = 0;
if (_root.oneTiles == 0) {
_root.puzzle_tray_1.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_1.gotoAndStop(1);
}
if (_root.twoTiles == 0) {
_root.puzzle_tray_2.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_2.gotoAndStop(1);
}
if (_root.threeTiles == 0) {
_root.puzzle_tray_3.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_3.gotoAndStop(1);
}
if (_root.fourTiles == 0) {
_root.puzzle_tray_4.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_4.gotoAndStop(1);
}
if (_root.fiveTiles == 0) {
_root.puzzle_tray_5.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_5.gotoAndStop(1);
}
if (_root.sixTiles == 0) {
_root.puzzle_tray_6.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_6.gotoAndStop(1);
}
if (_root.sevenTiles == 0) {
_root.puzzle_tray_7.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_7.gotoAndStop(1);
}
if (_root.eightTiles == 0) {
_root.puzzle_tray_8.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_8.gotoAndStop(1);
}
if (_root.nineTiles == 0) {
_root.puzzle_tray_9.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_9.gotoAndStop(1);
}
if (_root.zeroTiles == 0) {
_root.puzzle_tray_10.gotoAndStop(4);
numbersGone++;
} else {
_root.puzzle_tray_10.gotoAndStop(1);
}
if (numbersGone == 10) {
_root.outtaTiles = true;
}
}
function puzzleOpenStage(myStage) {
_root.currentStage = myStage;
_root.setPuzzleSquares();
if (myStage == 1) {
_root.setUpStage1();
} else if (myStage == 2) {
_root.setUpStage2();
} else if (myStage == 3) {
_root.setUpStage3();
} else if (myStage == 4) {
_root.setUpStage4();
} else if (myStage == 5) {
_root.setUpStage5();
} else if (myStage == 6) {
_root.setUpStage6();
} else if (myStage == 7) {
_root.setUpStage7();
} else if (myStage == 8) {
_root.setUpStage8();
} else if (myStage == 9) {
_root.setUpStage9();
} else if (myStage == 10) {
_root.setUpStage10();
} else if (myStage == 11) {
_root.setUpStage11();
} else if (myStage == 12) {
_root.setUpStage12();
} else if (myStage == 13) {
_root.setUpStage13();
} else if (myStage == 14) {
_root.setUpStage14();
} else if (myStage == 15) {
_root.setUpStage15();
} else if (myStage == 16) {
_root.setUpStage16();
} else if (myStage == 17) {
_root.setUpStage17();
} else if (myStage == 18) {
_root.setUpStage18();
} else if (myStage == 19) {
_root.setUpStage19();
} else if (myStage == 20) {
_root.setUpStage20();
} else if (myStage == 21) {
_root.setUpStage21();
} else if (myStage == 22) {
_root.setUpStage22();
} else if (myStage == 23) {
_root.setUpStage23();
} else if (myStage == 24) {
_root.setUpStage24();
} else if (myStage == 25) {
_root.setUpStage25();
} else if (myStage == 26) {
_root.setUpStage26();
} else if (myStage == 27) {
_root.setUpStage27();
} else if (myStage == 28) {
_root.setUpStage28();
} else if (myStage == 29) {
_root.setUpStage29();
} else if (myStage == 30) {
_root.setUpStage30();
} else if (myStage == 31) {
_root.setUpStage31();
} else if (myStage == 32) {
_root.setUpStage32();
} else if (myStage == 33) {
_root.setUpStage33();
} else if (myStage == 34) {
_root.setUpStage34();
} else if (myStage == 35) {
_root.setUpStage35();
} else if (myStage == 36) {
_root.setUpStage36();
} else if (myStage == 37) {
_root.setUpStage37();
} else if (myStage == 38) {
_root.setUpStage38();
} else if (myStage == 39) {
_root.setUpStage39();
} else if (myStage == 40) {
_root.setUpStage40();
} else if (myStage == 41) {
_root.setUpStage41();
} else if (myStage == 42) {
_root.setUpStage42();
} else if (myStage == 43) {
_root.setUpStage43();
} else if (myStage == 44) {
_root.setUpStage44();
} else if (myStage == 45) {
_root.setUpStage45();
} else if (myStage == 46) {
_root.setUpStage46();
} else if (myStage == 47) {
_root.setUpStage47();
} else if (myStage == 48) {
_root.setUpStage48();
} else if (myStage == 49) {
_root.setUpStage49();
} else if (myStage == 50) {
_root.setUpStage50();
} else if (myStage == 51) {
_root.setUpStage51();
} else if (myStage == 52) {
_root.setUpStage52();
} else if (myStage == 53) {
_root.setUpStage53();
} else if (myStage == 54) {
_root.setUpStage54();
} else if (myStage == 55) {
_root.setUpStage55();
} else if (myStage == 56) {
_root.setUpStage56();
}
_root.floater.pulse.gotoAndStop(1);
unloadMovie ("_root.stageSelectScreen");
if (_root.oneTiles == 0) {
_root.puzzle_tray_1.gotoAndStop(4);
}
if (_root.twoTiles == 0) {
_root.puzzle_tray_2.gotoAndStop(4);
}
if (_root.threeTiles == 0) {
_root.puzzle_tray_3.gotoAndStop(4);
}
if (_root.fourTiles == 0) {
_root.puzzle_tray_4.gotoAndStop(4);
}
if (_root.fiveTiles == 0) {
_root.puzzle_tray_5.gotoAndStop(4);
}
if (_root.sixTiles == 0) {
_root.puzzle_tray_6.gotoAndStop(4);
}
if (_root.sevenTiles == 0) {
_root.puzzle_tray_7.gotoAndStop(4);
}
if (_root.eightTiles == 0) {
_root.puzzle_tray_8.gotoAndStop(4);
}
if (_root.nineTiles == 0) {
_root.puzzle_tray_9.gotoAndStop(4);
}
if (_root.zeroTiles == 0) {
_root.puzzle_tray_0.gotoAndStop(4);
}
_root.countBoxes();
_root.updateTray();
_root.canGo = true;
}
function setUpStage1() {
_root.puzzleStageName = "snake eyes";
_root.oneTiles = 0;
_root.twoTiles = 1;
_root.threeTiles = 1;
_root.fourTiles = 1;
_root.fiveTiles = 0;
_root.sixTiles = 1;
_root.sevenTiles = 1;
_root.eightTiles = 1;
_root.nineTiles = 0;
_root.zeroTiles = 1;
_root.box1.gotoAndStop(12);
_root.box2.gotoAndStop(12);
_root.box3.gotoAndStop(12);
_root.box4.gotoAndStop(12);
_root.box5.gotoAndStop(12);
_root.box6.gotoAndStop(12);
_root.box7.gotoAndStop(12);
_root.box8.gotoAndStop(12);
_root.box9.gotoAndStop(12);
_root.box10.gotoAndStop(12);
_root.box11.gotoAndStop(12);
_root.box12.gotoAndStop(12);
_root.box13.gotoAndStop(12);
_root.box14.gotoAndStop(12);
_root.box15.gotoAndStop(12);
_root.box16.gotoAndStop(12);
_root.box17.gotoAndStop(12);
_root.box18.gotoAndStop(12);
_root.box19.gotoAndStop(12);
_root.box20.gotoAndStop(12);
_root.box21.gotoAndStop(12);
_root.box22.gotoAndStop(12);
_root.box23.gotoAndStop(12);
_root.box24.gotoAndStop(12);
_root.box25.gotoAndStop(12);
_root.box26.gotoAndStop(12);
_root.box27.gotoAndStop(12);
_root.box28.gotoAndStop(12);
_root.box32.gotoAndStop(12);
_root.box36.gotoAndStop(12);
_root.box37.gotoAndStop(12);
_root.box39.gotoAndStop(1);
_root.box41.gotoAndStop(12);
_root.box43.gotoAndStop(1);
_root.box45.gotoAndStop(12);
_root.box46.gotoAndStop(12);
_root.box50.gotoAndStop(12);
_root.box54.gotoAndStop(12);
_root.box55.gotoAndStop(12);
_root.box56.gotoAndStop(12);
_root.box57.gotoAndStop(12);
_root.box58.gotoAndStop(12);
_root.box59.gotoAndStop(12);
_root.box60.gotoAndStop(12);
_root.box61.gotoAndStop(12);
_root.box62.gotoAndStop(12);
_root.box63.gotoAndStop(12);
_root.box64.gotoAndStop(12);
_root.box65.gotoAndStop(12);
_root.box66.gotoAndStop(12);
_root.box67.gotoAndStop(12);
_root.box68.gotoAndStop(12);
_root.box69.gotoAndStop(12);
_root.box70.gotoAndStop(12);
_root.box71.gotoAndStop(12);
_root.box72.gotoAndStop(12);
_root.box73.gotoAndStop(12);
_root.box74.gotoAndStop(12);
_root.box75.gotoAndStop(12);
_root.box76.gotoAndStop(12);
_root.box77.gotoAndStop(12);
_root.box78.gotoAndStop(12);
_root.box79.gotoAndStop(12);
_root.box80.gotoAndStop(12);
_root.box81.gotoAndStop(12);
}
function setUpStage2() {
_root.puzzleStageName = "gotta love it";
_root.oneTiles = 1;
_root.twoTiles = 0;
_root.threeTiles = 2;
_root.fourTiles = 2;
_root.fiveTiles = 0;
_root.sixTiles = 0;
_root.sevenTiles = 0;
_root.eightTiles = 1;
_root.nineTiles = 0;
_root.zeroTiles = 0;
_root.box1.gotoAndStop(12);
_root.box2.gotoAndStop(12);
_root.box3.gotoAndStop(12);
_root.box4.gotoAndStop(12);
_root.box5.gotoAndStop(12);
_root.box6.gotoAndStop(12);
_root.box7.gotoAndStop(12);
_root.box8.gotoAndStop(12);
_root.box9.gotoAndStop(12);
_root.box10.gotoAndStop(12);
_root.box11.gotoAndStop(12);
_root.box12.gotoAndStop(12);
_root.box13.gotoAndStop(12);
_root.box14.gotoAndStop(12);
_root.box15.gotoAndStop(12);
_root.box16.gotoAndStop(12);
_root.box17.gotoAndStop(12);
_root.box18.gotoAndStop(12);
_root.box19.gotoAndStop(12);
_root.box20.gotoAndStop(12);
_root.box21.gotoAndStop(3);
_root.box22.gotoAndStop(2);
_root.box23.gotoAndStop(12);
_root.box24.gotoAndStop(2);
_root.box25.gotoAndStop(3);
_root.box26.gotoAndStop(12);
_root.box27.gotoAndStop(12);
_root.box28.gotoAndStop(12);
_root.box29.gotoAndStop(4);
_root.box32.gotoAndStop(1);
_root.box35.gotoAndStop(4);
_root.box36.gotoAndStop(12);
_root.box37.gotoAndStop(12);
_root.box38.gotoAndStop(5);
_root.box44.gotoAndStop(5);
_root.box45.gotoAndStop(12);
_root.box46.gotoAndStop(12);
_root.box47.gotoAndStop(12);
_root.box48.gotoAndStop(6);
_root.box52.gotoAndStop(6);
_root.box53.gotoAndStop(12);
_root.box54.gotoAndStop(12);
_root.box55.gotoAndStop(12);
_root.box56.gotoAndStop(12);
_root.box57.gotoAndStop(12);
_root.box58.gotoAndStop(7);
_root.box60.gotoAndStop(7);
_root.box61.gotoAndStop(12);
_root.box62.gotoAndStop(12);
_root.box63.gotoAndStop(12);
_root.box64.gotoAndStop(12);
_root.box65.gotoAndStop(12);
_root.box66.gotoAndStop(12);
_root.box67.gotoAndStop(12);
_root.box68.gotoAndStop(8);
_root.box69.gotoAndStop(12);
_root.box70.gotoAndStop(12);
_root.box71.gotoAndStop(12);
_root.box72.gotoAndStop(12);
_root.box73.gotoAndStop(12);
_root.box74.gotoAndStop(12);
_root.box75.gotoAndStop(12);
_root.box76.gotoAndStop(12);
_root.box77.gotoAndStop(12);
_root.box78.gotoAndStop(12);
_root.box79.gotoAndStop(12);
_root.box80.gotoAndStop(12);
_root.box81.gotoAndStop(12);
}
function setUpStage3() {
_root.puzzleStageName = "stop and go";
_root.oneTiles = 1;
_root.twoTiles = 0;
_root.threeTiles = 1;
_root.fourTiles = 0;
_root.fiveTiles = 0;
_root.sixTiles = 0;
_root.sevenTiles = 0;
_root.eightTiles = 3;
_root.nineTiles = 0;
_root.zeroTiles = 2;
_root.box1.gotoAndStop(12);
_root.box2.gotoAndStop(12);
_root.box8.gotoAndStop(12);
_root.box9.gotoAndStop(12);
_root.box10.gotoAndStop(12);
_root.box11.gotoAndStop(12);
_root.box13.gotoAndStop(8);
_root.box14.gotoAndStop(8);
_root.box15.gotoAndStop(8);
_root.box17.gotoAndStop(12);
_root.box18.gotoAndStop(12);
_root.box19.gotoAndStop(12);
_root.box20.gotoAndStop(12);
_root.box22.gotoAndStop(8);
_root.box23.gotoAndStop(2);
_root.box24.gotoAndStop(8);
_root.box26.gotoAndStop(12);
_root.box27.gotoAndStop(12);
_root.box28.gotoAndStop(12);
_root.box29.gotoAndStop(12);
_root.box31.gotoAndStop(8);
_root.box32.gotoAndStop(8);
_root.box33.gotoAndStop(8);
_root.box35.gotoAndStop(12);
_root.box36.gotoAndStop(12);
_root.box37.gotoAndStop(12);
_root.box38.gotoAndStop(12);
_root.box40.gotoAndStop(8);
_root.box41.gotoAndStop(5);
_root.box42.gotoAndStop(8);
_root.box44.gotoAndStop(12);
_root.box45.gotoAndStop(12);
_root.box46.gotoAndStop(12);
_root.box47.gotoAndStop(12);
_root.box49.gotoAndStop(8);
_root.box50.gotoAndStop(8);
_root.box51.gotoAndStop(8);
_root.box53.gotoAndStop(12);
_root.box54.gotoAndStop(12);
_root.box55.gotoAndStop(12);
_root.box56.gotoAndStop(12);
_root.box58.gotoAndStop(8);
_root.box59.gotoAndStop(7);
_root.box60.gotoAndStop(8);
_root.box62.gotoAndStop(12);
_root.box63.gotoAndStop(12);
_root.box64.gotoAndStop(12);
_root.box65.gotoAndStop(12);
_root.box67.gotoAndStop(8);
_root.box68.gotoAndStop(8);
_root.box69.gotoAndStop(8);
_root.box71.gotoAndStop(12);
_root.box72.gotoAndStop(12);
_root.box73.gotoAndStop(12);
_root.box74.gotoAndStop(12);
_root.box80.gotoAndStop(12);
_root.box81.gotoAndStop(12);
}
function setUpStage4() {
_root.puzzleStageName = "rain rain go away";
_root.oneTiles = 0;
_root.twoTiles = 2;
_root.threeTiles = 1;
_root.fourTiles = 0;
_root.fiveTiles = 0;
_root.sixTiles = 2;
_root.sevenTiles = 0;
_root.eightTiles = 2;
_root.nineTiles = 1;
_root.zeroTiles = 2;
_root.box5.gotoAndStop(8);
_root.box12.gotoAndStop(2);
_root.box13.gotoAndStop(2);
_root.box14.gotoAndStop(5);
_root.box15.gotoAndStop(4);
_root.box16.gotoAndStop(4);
_root.box20.gotoAndStop(2);
_root.box21.gotoAndStop(2);
_root.box22.gotoAndStop(5);
_root.box23.gotoAndStop(5);
_root.box24.gotoAndStop(5);
_root.box25.gotoAndStop(4);
_root.box26.gotoAndStop(4);
_root.box28.gotoAndStop(2);
_root.box29.gotoAndStop(2);
_root.box30.gotoAndStop(2);
_root.box31.gotoAndStop(5);
_root.box32.gotoAndStop(5);
_root.box33.gotoAndStop(5);
_root.box34.gotoAndStop(4);
_root.box35.gotoAndStop(4);
_root.box36.gotoAndStop(4);
_root.box37.gotoAndStop(2);
_root.box38.gotoAndStop(2);
_root.box39.gotoAndStop(2);
_root.box40.gotoAndStop(5);
_root.box41.gotoAndStop(5);
_root.box42.gotoAndStop(5);
_root.box43.gotoAndStop(4);
_root.box44.gotoAndStop(4);
_root.box45.gotoAndStop(4);
_root.box50.gotoAndStop(8);
_root.box59.gotoAndStop(8);
_root.box66.gotoAndStop(8);
_root.box68.gotoAndStop(8);
_root.box75.gotoAndStop(8);
_root.box76.gotoAndStop(8);
_root.box77.gotoAndStop(8);
}
function setUpStage5() {
_root.puzzleStageName = "too many twos";
_root.oneTiles = 0;
_root.twoTiles = 25;
_root.threeTiles = 0;
_root.fourTiles = 0;
_root.fiveTiles = 0;
_root.sixTiles = 0;
_root.sevenTiles = 0;
_root.eightTiles = 0;
_root.nineTiles = 0;
_root.zeroTiles = 0;
_root.box4.gotoAndStop(2);
_root.box5.gotoAndStop(2);
_root.box6.gotoAndStop(2);
_root.box11.gotoAndStop(2);
_root.box12.gotoAndStop(2);
_root.box13.gotoAndStop(2);
_root.box14.gotoAndStop(2);
_root.box15.gotoAndStop(2);
_root.box16.gotoAndStop(2);
_root.box20.gotoAndStop(2);
_root.box21.gotoAndStop(2);
_root.box25.gotoAndStop(2);
_root.box26.gotoAndStop(2);
_root.box29.gotoAndStop(2);
_root.box30.gotoAndStop(2);
_root.box34.gotoAndStop(2);
_root.box35.gotoAndStop(2);
_root.box41.gotoAndStop(2);
_root.box42.gotoAndStop(2);
_root.box43.gotoAndStop(2);
_root.box47.gotoAndStop(2);
_root.box48.gotoAndStop(2);
_root.box49.gotoAndStop(2);
_root.box50.gotoAndStop(2);
_root.box56.gotoAndStop(2);
_root.box57.gotoAndStop(2);
_root.box65.gotoAndStop(2);
_root.box66.gotoAndStop(2);
_root.box67.gotoAndStop(2);
_root.box68.gotoAndStop(2);
_root.box69.gotoAndStop(2);
_root.box70.gotoAndStop(2);
_root.box71.gotoAndStop(2);
_root.box74.gotoAndStop(2);
_root.box75.gotoAndStop(2);
_root.box76.gotoAndStop(2);
_root.box77.gotoAndStop(2);
_root.box78.gotoAndStop(2);
_root.box79.gotoAndStop(2);
_root.box80.gotoAndStop(2);
}
var gameVersion = "web";
var grabdotcom = false;
base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._";
secWord = "e54d8dea99aece5dc08b065ca52f550471ba";
gameID = "67E75059-BFE0-4733-AF71-A107D34AAA6F";
gameIDencoded = Grab_encode(gameID);
if (grab_ccode == undefined) {
grab_ccode = "";
}
stop();
var difficulty = 3;
var mode = null;
var myIntroShown = false;
var oopsieBrain_thisBox = null;
var oopsieBrain_placedTile = null;
oopsieBrain_AddingArray = new Array();
oopsieBrain_ValuesArray = new Array();
var seconds = 0;
var minutes = 0;
var showSeconds = "00";
var showMinutes = "";
var displayedTime;
var finalDisplayedTime;
var x4 = 400;
var x5 = 500;
var x6 = 600;
var x7 = 700;
var x8 = 800;
var finishBonus = 2000;
var noPowerBonus = 200;
var bonus = 0;
var movesLeftBonus = 50;
var powerMovesLeft = 3;
var justGot = 0;
var displayedJustGot = "t";
var movesMade = 0;
var movesLeft = null;
var scoreToShow = 0;
var powerMovesScore = 0;
var movesLeftScore = 0;
var finalScore = 0;
var displayedFinalScore = 0;
var surrounderOn = true;
var inPlay = null;
var startHelpOn;
var canGo = false;
var canRunBomber = true;
var canRunSwitcher = true;
var canRunEliminator = true;
var canRunNewQueue = true;
var canRunOopsie = true;
var canRunOopsieNow = false;
var bombOn = false;
var switcherOn = false;
var eliminatorOn = false;
var oopsieOn = false;
var newQueueOn = false;
var newQueueCount = 5;
var example1Showing = false;
var example2Showing = false;
lineUpArray = new Array();
var lineUpBox1 = null;
var lineUpBox2 = null;
var lineUpBox3 = null;
var lineUpBox4 = null;
var lineUpBox5 = null;
var lineUpBox6 = null;
var flashCount = 20;
var switchSpeed = 50;
var allClear = false;
var allFilled = false;
var boxesEmptyBefore = 0;
var boxesEmpty = 0;
var boxesFilled = 0;
displayedMovesField.selectable = false;
boxToCheck = null;
surroundingArray = new Array();
var totalTips = 4;
var tipNumber = 1;
var tipsEnabled = true;
var tipMoveCount = 0;
var hintsToGive;
var hintLiklihood;
var timeBeforeHintShow;
var hintsEnabled = true;
var hintInterval;
hintSurroundingArray = new Array();
hintSpotsCanGo = new Array();
var hintBoxToCheck = 0;
var checkingTileForHint = false;
var tileToTry = null;
var canRunPuzzleUndo = false;
var currentStage = 1;
var puzzleStageName = null;
var oneTiles = 0;
var twoTiles = 0;
var threeTiles = 0;
var fourTiles = 0;
var fiveTiles = 0;
var sixTiles = 0;
var sevenTiles = 0;
var eightTiles = 0;
var nineTiles = 0;
var zeroTiles = 0;
var tileInHand = false;
var numberInHand = null;
var outtaTiles = false;
var lastNumberPlaced = null;
var lastPuzzleSpaceUsed = null;
var totalPuzzles = 5;
var nextStageToPass = 5;
Instance of Symbol 184 MovieClip in Frame 3
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Frame 3
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Frame 3
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Frame 3
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Frame 3
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Frame 3
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Frame 3
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Frame 5
_root.startGame();
Instance of Symbol 183 MovieClip "box2" in Frame 5
on (release) {
_root.checkClick(2);
}
on (rollOver) {
_root.rollOverSquare(2);
}
on (rollOut) {
_root.rollOutSquare(2);
}
Instance of Symbol 183 MovieClip "box3" in Frame 5
on (release) {
_root.checkClick(3);
}
on (rollOver) {
_root.rollOverSquare(3);
}
on (rollOut) {
_root.rollOutSquare(3);
}
Instance of Symbol 183 MovieClip "box4" in Frame 5
on (release) {
_root.checkClick(4);
}
on (rollOver) {
_root.rollOverSquare(4);
}
on (rollOut) {
_root.rollOutSquare(4);
}
Instance of Symbol 183 MovieClip "box5" in Frame 5
on (release) {
_root.checkClick(5);
}
on (rollOver) {
_root.rollOverSquare(5);
}
on (rollOut) {
_root.rollOutSquare(5);
}
Instance of Symbol 183 MovieClip "box6" in Frame 5
on (release) {
_root.checkClick(6);
}
on (rollOver) {
_root.rollOverSquare(6);
}
on (rollOut) {
_root.rollOutSquare(6);
}
Instance of Symbol 183 MovieClip "box7" in Frame 5
on (release) {
_root.checkClick(7);
}
on (rollOver) {
_root.rollOverSquare(7);
}
on (rollOut) {
_root.rollOutSquare(7);
}
Instance of Symbol 183 MovieClip "box8" in Frame 5
on (release) {
_root.checkClick(8);
}
on (rollOver) {
_root.rollOverSquare(8);
}
on (rollOut) {
_root.rollOutSquare(8);
}
Instance of Symbol 183 MovieClip "box9" in Frame 5
on (release) {
_root.checkClick(9);
}
on (rollOver) {
_root.rollOverSquare(9);
}
on (rollOut) {
_root.rollOutSquare(9);
}
Instance of Symbol 183 MovieClip "box1" in Frame 5
on (release) {
_root.checkClick(1);
}
on (rollOver) {
_root.rollOverSquare(1);
}
on (rollOut) {
_root.rollOutSquare(1);
}
Instance of Symbol 183 MovieClip "box11" in Frame 5
on (release) {
_root.checkClick(11);
}
on (rollOver) {
_root.rollOverSquare(11);
}
on (rollOut) {
_root.rollOutSquare(11);
}
Instance of Symbol 183 MovieClip "box12" in Frame 5
on (release) {
_root.checkClick(12);
}
on (rollOver) {
_root.rollOverSquare(12);
}
on (rollOut) {
_root.rollOutSquare(12);
}
Instance of Symbol 183 MovieClip "box13" in Frame 5
on (release) {
_root.checkClick(13);
}
on (rollOver) {
_root.rollOverSquare(13);
}
on (rollOut) {
_root.rollOutSquare(13);
}
Instance of Symbol 183 MovieClip "box14" in Frame 5
on (release) {
_root.checkClick(14);
}
on (rollOver) {
_root.rollOverSquare(14);
}
on (rollOut) {
_root.rollOutSquare(14);
}
Instance of Symbol 183 MovieClip "box15" in Frame 5
on (release) {
_root.checkClick(15);
}
on (rollOver) {
_root.rollOverSquare(15);
}
on (rollOut) {
_root.rollOutSquare(15);
}
Instance of Symbol 183 MovieClip "box16" in Frame 5
on (release) {
_root.checkClick(16);
}
on (rollOver) {
_root.rollOverSquare(16);
}
on (rollOut) {
_root.rollOutSquare(16);
}
Instance of Symbol 183 MovieClip "box17" in Frame 5
on (release) {
_root.checkClick(17);
}
on (rollOver) {
_root.rollOverSquare(17);
}
on (rollOut) {
_root.rollOutSquare(17);
}
Instance of Symbol 183 MovieClip "box18" in Frame 5
on (release) {
_root.checkClick(18);
}
on (rollOver) {
_root.rollOverSquare(18);
}
on (rollOut) {
_root.rollOutSquare(18);
}
Instance of Symbol 183 MovieClip "box10" in Frame 5
on (release) {
_root.checkClick(10);
}
on (rollOver) {
_root.rollOverSquare(10);
}
on (rollOut) {
_root.rollOutSquare(10);
}
Instance of Symbol 183 MovieClip "box20" in Frame 5
on (release) {
_root.checkClick(20);
}
on (rollOver) {
_root.rollOverSquare(20);
}
on (rollOut) {
_root.rollOutSquare(20);
}
Instance of Symbol 183 MovieClip "box21" in Frame 5
on (release) {
_root.checkClick(21);
}
on (rollOver) {
_root.rollOverSquare(21);
}
on (rollOut) {
_root.rollOutSquare(21);
}
Instance of Symbol 183 MovieClip "box22" in Frame 5
on (release) {
_root.checkClick(22);
}
on (rollOver) {
_root.rollOverSquare(22);
}
on (rollOut) {
_root.rollOutSquare(22);
}
Instance of Symbol 183 MovieClip "box23" in Frame 5
on (release) {
_root.checkClick(23);
}
on (rollOver) {
_root.rollOverSquare(23);
}
on (rollOut) {
_root.rollOutSquare(23);
}
Instance of Symbol 183 MovieClip "box24" in Frame 5
on (release) {
_root.checkClick(24);
}
on (rollOver) {
_root.rollOverSquare(24);
}
on (rollOut) {
_root.rollOutSquare(24);
}
Instance of Symbol 183 MovieClip "box25" in Frame 5
on (release) {
_root.checkClick(25);
}
on (rollOver) {
_root.rollOverSquare(25);
}
on (rollOut) {
_root.rollOutSquare(25);
}
Instance of Symbol 183 MovieClip "box26" in Frame 5
on (release) {
_root.checkClick(26);
}
on (rollOver) {
_root.rollOverSquare(26);
}
on (rollOut) {
_root.rollOutSquare(26);
}
Instance of Symbol 183 MovieClip "box27" in Frame 5
on (release) {
_root.checkClick(27);
}
on (rollOver) {
_root.rollOverSquare(27);
}
on (rollOut) {
_root.rollOutSquare(27);
}
Instance of Symbol 183 MovieClip "box19" in Frame 5
on (release) {
_root.checkClick(19);
}
on (rollOver) {
_root.rollOverSquare(19);
}
on (rollOut) {
_root.rollOutSquare(19);
}
Instance of Symbol 183 MovieClip "box29" in Frame 5
on (release) {
_root.checkClick(29);
}
on (rollOver) {
_root.rollOverSquare(29);
}
on (rollOut) {
_root.rollOutSquare(29);
}
Instance of Symbol 183 MovieClip "box30" in Frame 5
on (release) {
_root.checkClick(30);
}
on (rollOver) {
_root.rollOverSquare(30);
}
on (rollOut) {
_root.rollOutSquare(30);
}
Instance of Symbol 183 MovieClip "box31" in Frame 5
on (release) {
_root.checkClick(31);
}
on (rollOver) {
_root.rollOverSquare(31);
}
on (rollOut) {
_root.rollOutSquare(31);
}
Instance of Symbol 183 MovieClip "box32" in Frame 5
on (release) {
_root.checkClick(32);
}
on (rollOver) {
_root.rollOverSquare(32);
}
on (rollOut) {
_root.rollOutSquare(32);
}
Instance of Symbol 183 MovieClip "box33" in Frame 5
on (release) {
_root.checkClick(33);
}
on (rollOver) {
_root.rollOverSquare(33);
}
on (rollOut) {
_root.rollOutSquare(33);
}
Instance of Symbol 183 MovieClip "box34" in Frame 5
on (release) {
_root.checkClick(34);
}
on (rollOver) {
_root.rollOverSquare(34);
}
on (rollOut) {
_root.rollOutSquare(34);
}
Instance of Symbol 183 MovieClip "box35" in Frame 5
on (release) {
_root.checkClick(35);
}
on (rollOver) {
_root.rollOverSquare(35);
}
on (rollOut) {
_root.rollOutSquare(35);
}
Instance of Symbol 183 MovieClip "box36" in Frame 5
on (release) {
_root.checkClick(36);
}
on (rollOver) {
_root.rollOverSquare(36);
}
on (rollOut) {
_root.rollOutSquare(36);
}
Instance of Symbol 183 MovieClip "box28" in Frame 5
on (release) {
_root.checkClick(28);
}
on (rollOver) {
_root.rollOverSquare(28);
}
on (rollOut) {
_root.rollOutSquare(28);
}
Instance of Symbol 183 MovieClip "box38" in Frame 5
on (release) {
_root.checkClick(38);
}
on (rollOver) {
_root.rollOverSquare(38);
}
on (rollOut) {
_root.rollOutSquare(38);
}
Instance of Symbol 183 MovieClip "box39" in Frame 5
on (release) {
_root.checkClick(39);
}
on (rollOver) {
_root.rollOverSquare(39);
}
on (rollOut) {
_root.rollOutSquare(39);
}
Instance of Symbol 183 MovieClip "box40" in Frame 5
on (release) {
_root.checkClick(40);
}
on (rollOver) {
_root.rollOverSquare(40);
}
on (rollOut) {
_root.rollOutSquare(40);
}
Instance of Symbol 183 MovieClip "box41" in Frame 5
on (release) {
_root.checkClick(41);
}
on (rollOver) {
_root.rollOverSquare(41);
}
on (rollOut) {
_root.rollOutSquare(41);
}
Instance of Symbol 183 MovieClip "box42" in Frame 5
on (release) {
_root.checkClick(42);
}
on (rollOver) {
_root.rollOverSquare(42);
}
on (rollOut) {
_root.rollOutSquare(42);
}
Instance of Symbol 183 MovieClip "box43" in Frame 5
on (release) {
_root.checkClick(43);
}
on (rollOver) {
_root.rollOverSquare(43);
}
on (rollOut) {
_root.rollOutSquare(43);
}
Instance of Symbol 183 MovieClip "box44" in Frame 5
on (release) {
_root.checkClick(44);
}
on (rollOver) {
_root.rollOverSquare(44);
}
on (rollOut) {
_root.rollOutSquare(44);
}
Instance of Symbol 183 MovieClip "box45" in Frame 5
on (release) {
_root.checkClick(45);
}
on (rollOver) {
_root.rollOverSquare(45);
}
on (rollOut) {
_root.rollOutSquare(45);
}
Instance of Symbol 183 MovieClip "box37" in Frame 5
on (release) {
_root.checkClick(37);
}
on (rollOver) {
_root.rollOverSquare(37);
}
on (rollOut) {
_root.rollOutSquare(37);
}
Instance of Symbol 183 MovieClip "box47" in Frame 5
on (release) {
_root.checkClick(47);
}
on (rollOver) {
_root.rollOverSquare(47);
}
on (rollOut) {
_root.rollOutSquare(47);
}
Instance of Symbol 183 MovieClip "box48" in Frame 5
on (release) {
_root.checkClick(48);
}
on (rollOver) {
_root.rollOverSquare(48);
}
on (rollOut) {
_root.rollOutSquare(48);
}
Instance of Symbol 183 MovieClip "box49" in Frame 5
on (release) {
_root.checkClick(49);
}
on (rollOver) {
_root.rollOverSquare(49);
}
on (rollOut) {
_root.rollOutSquare(49);
}
Instance of Symbol 183 MovieClip "box50" in Frame 5
on (release) {
_root.checkClick(50);
}
on (rollOver) {
_root.rollOverSquare(50);
}
on (rollOut) {
_root.rollOutSquare(50);
}
Instance of Symbol 183 MovieClip "box51" in Frame 5
on (release) {
_root.checkClick(51);
}
on (rollOver) {
_root.rollOverSquare(51);
}
on (rollOut) {
_root.rollOutSquare(51);
}
Instance of Symbol 183 MovieClip "box52" in Frame 5
on (release) {
_root.checkClick(52);
}
on (rollOver) {
_root.rollOverSquare(52);
}
on (rollOut) {
_root.rollOutSquare(52);
}
Instance of Symbol 183 MovieClip "box53" in Frame 5
on (release) {
_root.checkClick(53);
}
on (rollOver) {
_root.rollOverSquare(53);
}
on (rollOut) {
_root.rollOutSquare(53);
}
Instance of Symbol 183 MovieClip "box54" in Frame 5
on (release) {
_root.checkClick(54);
}
on (rollOver) {
_root.rollOverSquare(54);
}
on (rollOut) {
_root.rollOutSquare(54);
}
Instance of Symbol 183 MovieClip "box46" in Frame 5
on (release) {
_root.checkClick(46);
}
on (rollOver) {
_root.rollOverSquare(46);
}
on (rollOut) {
_root.rollOutSquare(46);
}
Instance of Symbol 183 MovieClip "box56" in Frame 5
on (release) {
_root.checkClick(56);
}
on (rollOver) {
_root.rollOverSquare(56);
}
on (rollOut) {
_root.rollOutSquare(56);
}
Instance of Symbol 183 MovieClip "box57" in Frame 5
on (release) {
_root.checkClick(57);
}
on (rollOver) {
_root.rollOverSquare(57);
}
on (rollOut) {
_root.rollOutSquare(57);
}
Instance of Symbol 183 MovieClip "box58" in Frame 5
on (release) {
_root.checkClick(58);
}
on (rollOver) {
_root.rollOverSquare(58);
}
on (rollOut) {
_root.rollOutSquare(58);
}
Instance of Symbol 183 MovieClip "box59" in Frame 5
on (release) {
_root.checkClick(59);
}
on (rollOver) {
_root.rollOverSquare(59);
}
on (rollOut) {
_root.rollOutSquare(59);
}
Instance of Symbol 183 MovieClip "box60" in Frame 5
on (release) {
_root.checkClick(60);
}
on (rollOver) {
_root.rollOverSquare(60);
}
on (rollOut) {
_root.rollOutSquare(60);
}
Instance of Symbol 183 MovieClip "box61" in Frame 5
on (release) {
_root.checkClick(61);
}
on (rollOver) {
_root.rollOverSquare(61);
}
on (rollOut) {
_root.rollOutSquare(61);
}
Instance of Symbol 183 MovieClip "box62" in Frame 5
on (release) {
_root.checkClick(62);
}
on (rollOver) {
_root.rollOverSquare(62);
}
on (rollOut) {
_root.rollOutSquare(62);
}
Instance of Symbol 183 MovieClip "box63" in Frame 5
on (release) {
_root.checkClick(63);
}
on (rollOver) {
_root.rollOverSquare(63);
}
on (rollOut) {
_root.rollOutSquare(63);
}
Instance of Symbol 183 MovieClip "box55" in Frame 5
on (release) {
_root.checkClick(55);
}
on (rollOver) {
_root.rollOverSquare(55);
}
on (rollOut) {
_root.rollOutSquare(55);
}
Instance of Symbol 183 MovieClip "box65" in Frame 5
on (release) {
_root.checkClick(65);
}
on (rollOver) {
_root.rollOverSquare(65);
}
on (rollOut) {
_root.rollOutSquare(65);
}
Instance of Symbol 183 MovieClip "box66" in Frame 5
on (release) {
_root.checkClick(66);
}
on (rollOver) {
_root.rollOverSquare(66);
}
on (rollOut) {
_root.rollOutSquare(66);
}
Instance of Symbol 183 MovieClip "box67" in Frame 5
on (release) {
_root.checkClick(67);
}
on (rollOver) {
_root.rollOverSquare(67);
}
on (rollOut) {
_root.rollOutSquare(67);
}
Instance of Symbol 183 MovieClip "box68" in Frame 5
on (release) {
_root.checkClick(68);
}
on (rollOver) {
_root.rollOverSquare(68);
}
on (rollOut) {
_root.rollOutSquare(68);
}
Instance of Symbol 183 MovieClip "box69" in Frame 5
on (release) {
_root.checkClick(69);
}
on (rollOver) {
_root.rollOverSquare(69);
}
on (rollOut) {
_root.rollOutSquare(69);
}
Instance of Symbol 183 MovieClip "box70" in Frame 5
on (release) {
_root.checkClick(70);
}
on (rollOver) {
_root.rollOverSquare(70);
}
on (rollOut) {
_root.rollOutSquare(70);
}
Instance of Symbol 183 MovieClip "box71" in Frame 5
on (release) {
_root.checkClick(71);
}
on (rollOver) {
_root.rollOverSquare(71);
}
on (rollOut) {
_root.rollOutSquare(71);
}
Instance of Symbol 183 MovieClip "box72" in Frame 5
on (release) {
_root.checkClick(72);
}
on (rollOver) {
_root.rollOverSquare(72);
}
on (rollOut) {
_root.rollOutSquare(72);
}
Instance of Symbol 183 MovieClip "box64" in Frame 5
on (release) {
_root.checkClick(64);
}
on (rollOver) {
_root.rollOverSquare(64);
}
on (rollOut) {
_root.rollOutSquare(64);
}
Instance of Symbol 183 MovieClip "box74" in Frame 5
on (release) {
_root.checkClick(74);
}
on (rollOver) {
_root.rollOverSquare(74);
}
on (rollOut) {
_root.rollOutSquare(74);
}
Instance of Symbol 183 MovieClip "box75" in Frame 5
on (release) {
_root.checkClick(75);
}
on (rollOver) {
_root.rollOverSquare(75);
}
on (rollOut) {
_root.rollOutSquare(75);
}
Instance of Symbol 183 MovieClip "box76" in Frame 5
on (release) {
_root.checkClick(76);
}
on (rollOver) {
_root.rollOverSquare(76);
}
on (rollOut) {
_root.rollOutSquare(76);
}
Instance of Symbol 183 MovieClip "box77" in Frame 5
on (release) {
_root.checkClick(77);
}
on (rollOver) {
_root.rollOverSquare(77);
}
on (rollOut) {
_root.rollOutSquare(77);
}
Instance of Symbol 183 MovieClip "box78" in Frame 5
on (release) {
_root.checkClick(78);
}
on (rollOver) {
_root.rollOverSquare(78);
}
on (rollOut) {
_root.rollOutSquare(78);
}
Instance of Symbol 183 MovieClip "box79" in Frame 5
on (release) {
_root.checkClick(79);
}
on (rollOver) {
_root.rollOverSquare(79);
}
on (rollOut) {
_root.rollOutSquare(79);
}
Instance of Symbol 183 MovieClip "box80" in Frame 5
on (release) {
_root.checkClick(80);
}
on (rollOver) {
_root.rollOverSquare(80);
}
on (rollOut) {
_root.rollOutSquare(80);
}
Instance of Symbol 183 MovieClip "box81" in Frame 5
on (release) {
_root.checkClick(81);
}
on (rollOver) {
_root.rollOverSquare(81);
}
on (rollOut) {
_root.rollOutSquare(81);
}
Instance of Symbol 183 MovieClip "box73" in Frame 5
on (release) {
_root.checkClick(73);
}
on (rollOver) {
_root.rollOverSquare(73);
}
on (rollOut) {
_root.rollOutSquare(73);
}
Instance of Symbol 578 MovieClip in Frame 5
onClipEvent (load) {
if (_root.gameVersion == "full") {
_root.button_oopsie._alpha = 100;
_root.button_newqueue._alpha = 100;
} else {
_root.button_oopsie._alpha = 30;
_root.button_newqueue._alpha = 30;
}
}
Instance of Symbol 1045 MovieClip "sweetmove_sign_ani" in Frame 5
onClipEvent (load) {
_root.sweetmove_sign._x = 375;
_root.sweetmove_sign._y = -40;
}
Frame 6
_root.startPuzzleGame();
Instance of Symbol 578 MovieClip in Frame 6
onClipEvent (enterFrame) {
}
Symbol 42 Button
on (release) {
_root.clickSound();
_root.closeNA();
}
Symbol 48 Button
on (release) {
_root.clickSound();
var buynowpage = "http://www.bluebuggames.com/games.php";
getURL (buynowpage, "_blank");
}
Symbol 52 Button
on (release) {
_root.clickSound();
var buynowpage = "https://www.plimus.com/jsp/buynow.jsp?contractId=1642395";
getURL (buynowpage, "_blank");
}
Symbol 56 Button
on (release) {
_root.clickSound();
_root.closeNA();
}
Symbol 59 MovieClip Frame 32
stop();
Instance of Symbol 19 MovieClip in Symbol 60 MovieClip [na_screen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 79 Button
on (release) {
_root.clickSound();
_root.hideHelp();
}
Instance of Symbol 19 MovieClip in Symbol 80 MovieClip [puzzlehelpscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 91 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 94 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 97 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 99 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 102 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 105 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 106 MovieClip [frb_states] Frame 1
stop();
Symbol 106 MovieClip [frb_states] Frame 2
stop();
Symbol 106 MovieClip [frb_states] Frame 3
stop();
Symbol 106 MovieClip [frb_states] Frame 4
stop();
Symbol 106 MovieClip [frb_states] Frame 5
stop();
Symbol 109 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 109 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 112 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 4
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
if (this.initialState == undefined) {
this.selected = false;
} else {
this.selected = this.initialState;
}
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.boundingBox_mc._width = 0;
this.boundingBox_mc._height = 0;
this.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
this.attachMovie("frb_states", "frb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
this.setChangeHandler(this.changeHandler);
if (this.label != undefined) {
this.setLabel(this.label);
}
if (this.initialState == undefined) {
this.setValue(false);
} else {
this.setValue(this.initialState);
}
if (this.data == "") {
this.data = undefined;
} else {
this.setData(this.data);
}
this.addToRadioGroup();
this.ROLE_SYSTEM_RADIOBUTTON = 45;
this.STATE_SYSTEM_SELECTED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.frb_hitArea_mc;
this.hitArea = hit;
if (this.frb_states_mc._width > w) {
hit._width = this.frb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.setEnabled(this.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.frb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = this.frb_states_mc._width;
var frame = this.frb_states_mc;
var label = this.fLabel_mc;
var w = (this.width - frame._width);
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.frb_states_mc._x = 0;
this.fLabel_mc._x = radioWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.frb_states_mc._x = this.width - radioWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.frb_hitArea_mc._y = vertCenter;
this.setLabel(this.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i] == this) {
delete this._parent[this.groupName].radioInstances[i];
}
i++;
}
this.groupName = groupName;
this.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
if (this._parent[this.groupName] == undefined) {
this._parent[this.groupName] = new FRadioButtonGroupClass();
}
this._parent[this.groupName].addRadioInstance(this);
};
FRadioButtonClass.prototype.setValue = function (selected) {
if (selected || (selected == undefined)) {
this.setState(true);
this.focusRect.removeMovieClip();
this.executeCallBack();
} else if (selected == false) {
this.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
Selection.setFocus(this);
this.setState(selected);
this.drawFocusRect();
this.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
if (selected || (selected == undefined)) {
this.tabEnabled = true;
for (var i in this._parent) {
if ((this != this._parent[i]) && (this._parent[i].groupName == this.groupName)) {
this._parent[i].setState(false);
this._parent[i].tabEnabled = false;
}
}
}
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedEnabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = true;
this.tabFocused = true;
} else {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
this.enabled = true;
this.selected = false;
this.tabEnabled = false;
var enabTrue = this._parent[this.groupName].getEnabled();
var noneSelect = (this._parent[this.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
this._parent[this.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
this.flabel_mc.setEnabled(false);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedDisabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = false;
} else {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.enabled = false;
this.selected = false;
this.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
if (this.selected) {
if ((this.data == "") || (this.data == undefined)) {
return(this.getLabel());
}
return(this.data);
}
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
super.setEnabled(true);
} else {
this.enable = false;
super.setEnabled(false);
}
this.setState(this.selected);
var cgn = (this._parent[this.groupName].getEnabled() == undefined);
var cgnez = (this._parent[this.groupName].radioInstances[0].getEnabled() == false);
if (cgn && (cgnez)) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i].getEnabled() == true) {
this._parent[this.groupName].radioInstances[i].tabEnabled = true;
return(undefined);
}
i++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.setValue(!this.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this._parent[this.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setEnabled(enableFlag);
i++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getEnabled() != this.radioInstances[0].getEnabled()) {
return(undefined);
}
i++;
}
return(this.radioInstances[0].getEnabled());
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setChangeHandler(changeHandler, obj);
i++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
if ((this.radioInstances[i].data == "") || (this.radioInstances[i].data == undefined)) {
return(this.radioInstances[i].getLabel());
}
return(this.radioInstances[i].data);
}
i++;
}
};
FRadioButtonGroupClass.prototype.getData = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected) {
return(this.radioInstances[i].getData());
}
i++;
}
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
return(i);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].data == dataValue) {
this.radioInstances[i].setValue(true);
return(undefined);
}
i++;
}
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getLabel() == dataValue) {
this.radioInstances[i].setValue(true);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setSize(w);
i++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var widestRadio = 0;
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].width >= widestRadio) {
widestRadio = this.radioInstances[i].width;
}
i++;
}
return(widestRadio);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
this.oldGroupName = this.radioInstances[0].groupName;
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].groupName = groupName;
this.radioInstances[i].addToRadioGroup();
i++;
}
delete this._parent[this.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setLabelPlacement(pos);
i++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setStyleProperty(propName, value, isGlobal);
i++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].addListener();
i++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].applyChanges();
i++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].removeListener(component);
i++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
Key.removeListener(this.keyListener);
this.focused = false;
this.focusRect.removeMovieClip();
this._parent[this.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this._parent[this.groupName].getValue() == undefined)) {
if (this._parent[this.groupName].radioInstances[0] == this) {
this.setTabState(true);
}
}
if ((Key.getCode() == 40) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i < this._parent[this.groupName].radioInstances.length) {
var inc = (i + 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i++;
}
}
if ((Key.getCode() == 38) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i >= 0) {
var inc = (i - 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 122 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 124 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 127 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 129 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 132 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 135 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 136 MovieClip [fcb_states] Frame 1
stop();
Symbol 136 MovieClip [fcb_states] Frame 2
stop();
Symbol 136 MovieClip [fcb_states] Frame 3
stop();
Symbol 136 MovieClip [fcb_states] Frame 4
stop();
Symbol 136 MovieClip [fcb_states] Frame 5
stop();
Symbol 136 MovieClip [fcb_states] Frame 6
stop();
Symbol 139 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 140 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 143 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 3
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = this.fcb_states_mc._width;
var frame = this.fcb_states_mc;
var label = this.fLabel_mc;
var w = 0;
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = checkWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - checkWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var hit = this.fcb_hitArea_mc;
this.hitArea = hit;
if (this.fcb_states_mc._width > w) {
hit._width = this.fcb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var states = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
states.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
states.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Instance of Symbol 172 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 172 MovieClip in Symbol 173 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 173 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 172 MovieClip in Symbol 174 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 174 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 172 MovieClip in Symbol 175 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 175 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 172 MovieClip in Symbol 176 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 176 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 172 MovieClip in Symbol 177 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 177 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 172 MovieClip in Symbol 178 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 178 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 172 MovieClip in Symbol 179 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 179 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (8);
}
Instance of Symbol 172 MovieClip in Symbol 180 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 180 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (9);
}
Instance of Symbol 172 MovieClip in Symbol 181 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 181 MovieClip Frame 19
_parent.gotoAndStop(11);
Instance of Symbol 172 MovieClip in Symbol 182 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (10);
}
Instance of Symbol 172 MovieClip in Symbol 182 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 182 MovieClip Frame 19
_parent.gotoAndStop(11);
Symbol 187 MovieClip Frame 38
stop();
if (_root.mode == "panic") {
_root.winscreen_panic.scorescreen_panic_1._visible = true;
_root.winscreen_panic.winscreen_buttons._visible = true;
popSound = new Sound();
popSound.attachSound("pop.wav");
popSound.start();
_root.playWinSound();
if (_root.gameVersion == "full") {
_root.rankMe();
}
} else if (_root.mode == "practice") {
_root.winscreen_practice.practice_win_message._visible = true;
popSound = new Sound();
popSound.attachSound("pop.wav");
popSound.start();
_root.playWinSound();
}
Symbol 193 Button
on (release) {
_root.clickSound();
_root.gotoAndStop(3);
unloadMovie ("_root.winscreen");
unloadMovie ("_root.winscreen_panic");
unloadMovie ("_root.winscreen_practice");
_root.clearOutScoreInfo();
}
Symbol 197 Button
on (release) {
_root.clickSound();
_root.startGame();
}
Symbol 202 MovieClip [winscreen_practice] Frame 1
displayedMovesFieldWin.selectable = false;
Instance of Symbol 19 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 184 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 198 MovieClip "winscreen_buttons" in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
}
Instance of Symbol 201 MovieClip "practice_win_message" in Symbol 202 MovieClip [winscreen_practice] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 206 Button
on (release) {
_root.clickSound();
var buynowpage = "https://www.plimus.com/jsp/buynow.jsp?contractId=1642395";
getURL (buynowpage, "_blank");
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 11
stop();
Symbol 220 Button
on (release) {
_root.clickSound();
_root.puzzleOpenStage(1);
}
on (rollOver) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_1.gotoAndPlay(2);
}
on (rollOut) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_1.gotoAndPlay(12);
}
Symbol 221 Button
on (release) {
_root.clickSound();
_root.puzzleOpenStage(2);
}
on (rollOver) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_2.gotoAndPlay(2);
}
on (rollOut) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_2.gotoAndPlay(12);
}
Symbol 222 Button
on (release) {
_root.clickSound();
_root.puzzleOpenStage(3);
}
on (rollOver) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_3.gotoAndPlay(2);
}
on (rollOut) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_3.gotoAndPlay(12);
}
Symbol 223 Button
on (release) {
_root.clickSound();
_root.puzzleOpenStage(4);
}
on (rollOver) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_4.gotoAndPlay(2);
}
on (rollOut) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_4.gotoAndPlay(12);
}
Symbol 224 Button
on (release) {
_root.clickSound();
_root.puzzleOpenStage(5);
}
on (rollOver) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_5.gotoAndPlay(2);
}
on (rollOut) {
_root.stageSelectScreen.puzzle_buttons_web.stage_bg_5.gotoAndPlay(12);
}
Symbol 236 Button
on (release) {
_root.clickSound();
_root.gotoAndStop(3);
unloadMovie ("_root.stageSelectScreen");
}
Instance of Symbol 19 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 184 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 237 MovieClip [stageSelectScreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 240 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
myText1.selectable = false;
myText2.selectable = false;
}
Symbol 245 MovieClip [winscreen_panic] Frame 1
displayedMovesFieldWin.selectable = false;
Instance of Symbol 19 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 184 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 198 MovieClip "winscreen_buttons" in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 244 MovieClip "scorescreen_panic_1" in Symbol 245 MovieClip [winscreen_panic] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 44
stop();
Symbol 284 MovieClip Frame 1
stop();
Instance of Symbol 283 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
myText1.selectable = false;
myText2.selectable = false;
}
Symbol 284 MovieClip Frame 31
gotoAndPlay (2);
Symbol 293 Button
on (release) {
getURL ("javascript:submitChallenge()");
}
Symbol 295 MovieClip [winscreen] Frame 1
displayedMovesFieldWin.selectable = false;
Instance of Symbol 19 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 184 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 198 MovieClip "winscreen_buttons" in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 250 MovieClip "scorescreen_1" in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
this._visible = false;
myText1.selectable = false;
myText2.selectable = false;
}
Instance of Symbol 255 MovieClip "scorescreen_2" in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
this._visible = false;
myText1.selectable = false;
myText2.selectable = false;
}
Instance of Symbol 268 MovieClip "scorescreen_3" in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
this._visible = false;
myText1.selectable = false;
myText2.selectable = false;
myText3.selectable = false;
myText4.selectable = false;
myText5.selectable = false;
myText6.selectable = false;
}
Instance of Symbol 277 MovieClip "scorescreen_4" in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
this._visible = false;
myText1.selectable = false;
myText2.selectable = false;
myText3.selectable = false;
myText4.selectable = false;
myText5.selectable = false;
myText6.selectable = false;
}
Instance of Symbol 287 MovieClip "scorescreen_5" in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 294 MovieClip "winscreen_grab_challenge" in Symbol 295 MovieClip [winscreen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 331 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(9);
}
Instance of Symbol 184 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(7);
}
Instance of Symbol 184 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(2);
}
Instance of Symbol 184 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(8);
}
Symbol 336 Button
on (release) {
_root.clickSound();
_root.hideTip();
}
Symbol 337 Button
on (release) {
_root.clickSound();
_root.hideTip();
}
Symbol 340 Button
on (release) {
_root.clickSound();
if (_root.tipsEnabled == true) {
_root.tipscreen.tipstoggle_mc.goToAndStop(2);
_root.tipsEnabled = false;
flashstudio.savetofile(_root.myPath + _root.myTipsFile, "false");
}
}
Symbol 343 Button
on (release) {
_root.clickSound();
if (_root.tipsEnabled == false) {
_root.tipscreen.tipstoggle_mc.goToAndStop(1);
_root.tipsEnabled = true;
flashstudio.savetofile(_root.myPath + _root.myTipsFile, "true");
}
}
Symbol 344 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 345 MovieClip [tipscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 344 MovieClip "tipstoggle_mc" in Symbol 345 MovieClip [tipscreen] Frame 1
onClipEvent (load) {
if (_root.tipsEnabled == true) {
this.goToAndStop(1);
} else {
this.goToAndStop(2);
}
}
Symbol 348 Button
on (release) {
_root.clickSound();
_root.endGame();
_root.gotoAndStop(3);
_root.hideQuit();
_root.clearOutScoreInfo();
}
Symbol 349 Button
on (release) {
_root.clickSound();
_root.hideQuit();
}
Instance of Symbol 19 MovieClip in Symbol 350 MovieClip [quitscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 352 Button
on (release) {
_root.clickSound();
_root.gotoAndStop(3);
unloadMovie ("_root.puzzle_finalscreen");
}
Symbol 356 Button
on (release) {
_root.clickSound();
_root.startPuzzleGame();
}
Instance of Symbol 19 MovieClip in Symbol 362 MovieClip [puzzle_finalscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 364 Button
on (release) {
_root.clickSound();
_root.gotoAndStop(3);
unloadMovie ("_root.puzzle_winscreen");
}
Symbol 368 Button
on (release) {
_root.clickSound();
_root.currentStage++;
_root.restartPuzzle();
}
Instance of Symbol 19 MovieClip in Symbol 369 MovieClip [puzzle_winscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 375 Button
on (release) {
_root.clickSound();
_root.gotoAndStop(3);
unloadMovie ("_root.puzzle_losescreen");
}
Symbol 379 Button
on (release) {
_root.clickSound();
_root.restartPuzzle();
}
Instance of Symbol 19 MovieClip in Symbol 380 MovieClip [puzzle_losescreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 381 Button
on (release) {
_root.clickSound();
_root.gotoAndStop(3);
unloadMovie ("_root.losescreen");
_root.clearOutScoreInfo();
}
Instance of Symbol 19 MovieClip in Symbol 382 MovieClip [losescreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 391 MovieClip Frame 1
stop();
Instance of Symbol 183 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 183 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 183 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 183 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 183 MovieClip in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(10);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box1" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box6" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box2" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box3" in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(9);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(10);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Symbol 407 Button
on (release) {
_root.clickSound();
_root.tutorialscreen.tutorialMovie.play();
}
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 10
_root.tutorialscreen.tutorialMovie.play();
Instance of Symbol 184 MovieClip in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(1);
}
Instance of Symbol 184 MovieClip in Symbol 424 MovieClip Frame 20
onClipEvent (load) {
this.box_main.gotoAndStop(3);
}
Instance of Symbol 184 MovieClip in Symbol 424 MovieClip Frame 40
onClipEvent (load) {
this.box_main.gotoAndStop(2);
}
Instance of Symbol 184 MovieClip in Symbol 424 MovieClip Frame 60
onClipEvent (load) {
this.box_main.gotoAndStop(6);
}
Symbol 424 MovieClip Frame 95
stop();
_root.tutorialscreen.tutorialMovie.play();
Instance of Symbol 184 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(9);
}
Instance of Symbol 184 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(7);
}
Instance of Symbol 184 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(2);
}
Instance of Symbol 184 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(8);
}
Symbol 436 MovieClip Frame 30
stop();
Symbol 446 Button
on (release) {
_root.clickSound();
_root.hideTutorial();
}
Symbol 448 MovieClip Frame 100
stop();
Symbol 448 MovieClip Frame 185
_root.tutorialscreen.tutorialMovie.tute_board.box6.gotoAndStop(6);
Symbol 448 MovieClip Frame 246
stop();
Symbol 448 MovieClip Frame 335
stop();
Symbol 448 MovieClip Frame 352
stop();
Symbol 448 MovieClip Frame 366
stop();
cursor_ani.gotoAndPlay(2);
Symbol 448 MovieClip Frame 367
_root.tutorialscreen.tutorialMovie.tute_board.box6.gotoAndStop(18);
_root.tutorialscreen.tutorialMovie.tute_board.box1.gotoAndStop(13);
_root.tutorialscreen.tutorialMovie.tute_board.box3.gotoAndStop(15);
_root.tutorialscreen.tutorialMovie.tute_board.box2.gotoAndStop(14);
Symbol 448 MovieClip Frame 432
stop();
Symbol 448 MovieClip Frame 610
stop();
Symbol 453 Button
on (release) {
_root.clickSound();
_root.hideTutorial();
}
Instance of Symbol 19 MovieClip in Symbol 454 MovieClip [tutorialscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 459 MovieClip Frame 1
stop();
Symbol 464 Button
on (release) {
_root.clickSound();
_root.score_modestate = "classic";
_root.updateScoreDisplay();
}
Symbol 468 Button
on (release) {
_root.clickSound();
_root.score_modestate = "panic";
_root.updateScoreDisplay();
}
Symbol 577 MovieClip Frame 1
stop();
Symbol 582 Button
on (release) {
_root.clickSound();
if (_root.score_modestate == "classic") {
_root.score_diffstate = 3;
} else if (_root.score_modestate == "panic") {
_root.score_diffstate = 8;
}
_root.updateScoreDisplay();
}
Symbol 586 Button
on (release) {
_root.clickSound();
if (_root.score_modestate == "classic") {
_root.score_diffstate = 4;
} else if (_root.score_modestate == "panic") {
_root.score_diffstate = 9;
}
_root.updateScoreDisplay();
}
Symbol 590 Button
on (release) {
_root.clickSound();
if (_root.score_modestate == "classic") {
_root.score_diffstate = 2;
} else if (_root.score_modestate == "panic") {
_root.score_diffstate = 7;
}
_root.updateScoreDisplay();
}
Symbol 594 Button
on (release) {
_root.clickSound();
if (_root.score_modestate == "classic") {
_root.score_diffstate = 5;
} else if (_root.score_modestate == "panic") {
_root.score_diffstate = 10;
}
_root.updateScoreDisplay();
}
Symbol 598 Button
on (release) {
_root.clickSound();
if (_root.score_modestate == "classic") {
_root.score_diffstate = 1;
} else if (_root.score_modestate == "panic") {
_root.score_diffstate = 6;
}
_root.updateScoreDisplay();
}
Symbol 600 MovieClip Frame 1
stop();
Symbol 604 Button
on (release) {
_root.clickSound();
_root.score_modestate = "classic";
_root.score_diffstate = 3;
_root.hideScores();
}
Instance of Symbol 19 MovieClip in Symbol 605 MovieClip [scorescreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 578 MovieClip in Symbol 605 MovieClip [scorescreen] Frame 1
onClipEvent (load) {
_root.score_modestate = _root.mode;
_root.diffstate = _root.difficulty;
_root.updateScoreDisplay();
}
Symbol 611 Button
on (release) {
_root.closeExample1();
_root.closeExample2();
_root.clickSound();
_root.helpscreen.helppage1._visible = true;
_root.helpscreen.helppage2._visible = false;
_root.helpscreen.helppage3._visible = false;
}
Symbol 614 Button
on (release) {
_root.closeExample1();
_root.closeExample2();
_root.clickSound();
_root.helpscreen.helppage1._visible = false;
_root.helpscreen.helppage2._visible = true;
_root.helpscreen.helppage3._visible = false;
}
Symbol 617 Button
on (release) {
_root.closeExample1();
_root.closeExample2();
_root.clickSound();
_root.helpscreen.helppage1._visible = false;
_root.helpscreen.helppage2._visible = false;
_root.helpscreen.helppage3._visible = true;
}
Symbol 652 Button
on (release) {
_root.clickSound();
if (_root.example2Showing == true) {
_root.closeExample2();
}
if (_root.example1Showing == false) {
_root.showExample1();
} else {
_root.closeExample1();
}
}
Symbol 656 Button
on (release) {
_root.clickSound();
if (_root.example1Showing == true) {
_root.closeExample1();
}
if (_root.example2Showing == false) {
_root.showExample2();
} else {
_root.closeExample2();
}
}
Instance of Symbol 183 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 183 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(9);
}
Instance of Symbol 183 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 183 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(10);
}
Instance of Symbol 183 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 19 MovieClip in Symbol 659 MovieClip [helpscreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Symbol 666 Button
on (release) {
_root.eliminateNumbers(10);
}
Symbol 667 Button
on (release) {
_root.eliminateNumbers(1);
}
Symbol 668 Button
on (release) {
_root.eliminateNumbers(2);
}
Symbol 669 Button
on (release) {
_root.eliminateNumbers(3);
}
Symbol 670 Button
on (release) {
_root.eliminateNumbers(4);
}
Symbol 671 Button
on (release) {
_root.eliminateNumbers(5);
}
Symbol 672 Button
on (release) {
_root.eliminateNumbers(6);
}
Symbol 673 Button
on (release) {
_root.eliminateNumbers(7);
}
Symbol 674 Button
on (release) {
_root.eliminateNumbers(8);
}
Symbol 675 Button
on (release) {
_root.eliminateNumbers(9);
}
Instance of Symbol 661 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(10);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 183 MovieClip in Symbol 676 MovieClip [eliminatorScreen] Frame 1
onClipEvent (load) {
this.gotoAndStop(9);
}
Symbol 676 MovieClip [eliminatorScreen] Frame 20
stop();
Symbol 679 Button
on (release) {
_root.clickSound();
_root.closeMoreInfo();
}
Instance of Symbol 19 MovieClip in Symbol 696 MovieClip [moreInfo_screen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 700 MovieClip "timer_mc" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
timerDisplayed.selectable = false;
}
Symbol 718 MovieClip Frame 10
_root.playPopSound();
Symbol 718 MovieClip Frame 35
_root.playPopSound();
Symbol 718 MovieClip Frame 60
_root.playPopSound();
Symbol 718 MovieClip Frame 85
wizzSound = new Sound();
wizzSound.attachSound("wizz.wav");
wizzSound.start();
_root.startPanic();
Symbol 718 MovieClip Frame 116
stop();
Symbol 721 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 1
stop();
Instance of Symbol 724 MovieClip "bonus_mc" in Symbol 725 MovieClip Frame 1
onClipEvent (load) {
bonusDisplayed.selectable = false;
}
Instance of Symbol 730 MovieClip "movesLeft" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
displayedMovesLeft.selectable = false;
}
Symbol 737 MovieClip Frame 1
stop();
Instance of Symbol 735 MovieClip in Symbol 738 MovieClip [classicboxes] Frame 1
onClipEvent (load) {
displayedBoxesFilled.selectable = false;
}
Symbol 747 Button
on (release) {
_root.flashHint();
}
Symbol 748 MovieClip [hint_showing_mc2] Frame 1
stop();
Symbol 748 MovieClip [hint_showing_mc2] Frame 10
stop();
Symbol 754 Button
on (release) {
_root.clickSound();
_root.closeExample2();
}
Symbol 756 MovieClip [example2] Frame 1
this.exampleBox1.gotoAndStop(9);
this.exampleBox2.gotoAndStop(11);
this.exampleBox3.gotoAndStop(11);
this.exampleBox4.gotoAndStop(11);
this.exampleBox5.gotoAndStop(8);
this.exampleBox6.gotoAndStop(11);
this.exampleBox7.gotoAndStop(7);
this.exampleBox8.gotoAndStop(2);
this.exampleBox9.gotoAndStop(11);
Instance of Symbol 752 MovieClip in Symbol 756 MovieClip [example2] Frame 1
on (release) {
}
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 184 MovieClip in Symbol 756 MovieClip [example2] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(9);
}
Instance of Symbol 184 MovieClip in Symbol 756 MovieClip [example2] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(7);
}
Instance of Symbol 184 MovieClip in Symbol 756 MovieClip [example2] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(2);
}
Instance of Symbol 184 MovieClip in Symbol 756 MovieClip [example2] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(8);
}
Symbol 757 Button
on (release) {
_root.clickSound();
_root.closeExample1();
}
Symbol 758 MovieClip [example1] Frame 1
this.exampleBox1.gotoAndStop(1);
this.exampleBox2.gotoAndStop(3);
this.exampleBox3.gotoAndStop(11);
this.exampleBox4.gotoAndStop(11);
this.exampleBox5.gotoAndStop(8);
this.exampleBox6.gotoAndStop(4);
this.exampleBox7.gotoAndStop(11);
this.exampleBox8.gotoAndStop(11);
this.exampleBox9.gotoAndStop(11);
Instance of Symbol 752 MovieClip in Symbol 758 MovieClip [example1] Frame 1
on (release) {
}
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 184 MovieClip in Symbol 758 MovieClip [example1] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(1);
}
Instance of Symbol 184 MovieClip in Symbol 758 MovieClip [example1] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(3);
}
Instance of Symbol 184 MovieClip in Symbol 758 MovieClip [example1] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(4);
}
Instance of Symbol 184 MovieClip in Symbol 758 MovieClip [example1] Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(8);
}
Symbol 763 Button
on (release) {
_root.clickSound();
_root.intro.gotoAndStop(2);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box1" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box6" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box2" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip "box3" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(9);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(10);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 183 MovieClip in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(11);
}
Symbol 774 Button
on (release) {
_root.clickSound();
_root.hideIntro();
}
Symbol 780 MovieClip [intro] Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 780 MovieClip [intro] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 779 MovieClip in Symbol 780 MovieClip [intro] Frame 2
on (release) {
}
Symbol 786 Button
on (release) {
_root.clickSound();
_root.hideOptions();
}
Symbol 791 Button
on (release) {
_root.difficulty = 1;
flashstudio.savetofile(_root.myPath + _root.myDiffFile, "1");
_root.options_screen.radio_veryeasy.gotoAndStop(2);
_root.options_screen.radio_easy.gotoAndStop(1);
_root.options_screen.radio_normal.gotoAndStop(1);
_root.options_screen.radio_hard.gotoAndStop(1);
_root.options_screen.radio_veryhard.gotoAndStop(1);
}
Symbol 796 MovieClip Frame 1
stop();
Symbol 797 Button
on (release) {
_root.difficulty = 2;
flashstudio.savetofile(_root.myPath + _root.myDiffFile, "2");
_root.options_screen.radio_veryeasy.gotoAndStop(1);
_root.options_screen.radio_easy.gotoAndStop(2);
_root.options_screen.radio_normal.gotoAndStop(1);
_root.options_screen.radio_hard.gotoAndStop(1);
_root.options_screen.radio_veryhard.gotoAndStop(1);
}
Symbol 800 MovieClip Frame 1
stop();
Symbol 801 Button
on (release) {
_root.difficulty = 3;
flashstudio.savetofile(_root.myPath + _root.myDiffFile, "3");
_root.options_screen.radio_veryeasy.gotoAndStop(1);
_root.options_screen.radio_easy.gotoAndStop(1);
_root.options_screen.radio_normal.gotoAndStop(2);
_root.options_screen.radio_hard.gotoAndStop(1);
_root.options_screen.radio_veryhard.gotoAndStop(1);
}
Symbol 804 MovieClip Frame 1
stop();
Symbol 805 Button
on (release) {
_root.difficulty = 4;
flashstudio.savetofile(_root.myPath + _root.myDiffFile, "4");
_root.options_screen.radio_veryeasy.gotoAndStop(1);
_root.options_screen.radio_easy.gotoAndStop(1);
_root.options_screen.radio_normal.gotoAndStop(1);
_root.options_screen.radio_hard.gotoAndStop(2);
_root.options_screen.radio_veryhard.gotoAndStop(1);
}
Symbol 808 MovieClip Frame 1
stop();
Symbol 809 Button
on (release) {
_root.difficulty = 5;
flashstudio.savetofile(_root.myPath + _root.myDiffFile, "5");
_root.options_screen.radio_veryeasy.gotoAndStop(1);
_root.options_screen.radio_easy.gotoAndStop(1);
_root.options_screen.radio_normal.gotoAndStop(1);
_root.options_screen.radio_hard.gotoAndStop(1);
_root.options_screen.radio_veryhard.gotoAndStop(2);
}
Symbol 812 MovieClip Frame 1
stop();
Symbol 813 Button
on (release) {
_root.tipsEnabled = true;
flashstudio.savetofile(_root.myPath + _root.myTipsFile, "1");
_root.options_screen.radio_tipson.gotoAndStop(2);
_root.options_screen.radio_tipsoff.gotoAndStop(1);
}
Symbol 816 MovieClip Frame 1
stop();
Symbol 817 Button
on (release) {
_root.tipsEnabled = false;
flashstudio.savetofile(_root.myPath + _root.myTipsFile, "0");
_root.options_screen.radio_tipson.gotoAndStop(1);
_root.options_screen.radio_tipsoff.gotoAndStop(2);
}
Symbol 820 MovieClip Frame 1
stop();
Symbol 821 Button
on (release) {
_root.hintsEnabled = true;
flashstudio.savetofile(_root.myPath + _root.myHintFile, "1");
_root.options_screen.radio_hinton.gotoAndStop(2);
_root.options_screen.radio_hintoff.gotoAndStop(1);
}
Symbol 823 MovieClip Frame 1
stop();
Symbol 824 Button
on (release) {
_root.hintsEnabled = false;
flashstudio.savetofile(_root.myPath + _root.myHintFile, "0");
_root.options_screen.radio_hinton.gotoAndStop(1);
_root.options_screen.radio_hintoff.gotoAndStop(2);
}
Symbol 826 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 827 MovieClip [options_screen] Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 796 MovieClip "radio_veryeasy" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.difficulty == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 800 MovieClip "radio_easy" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.difficulty == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 804 MovieClip "radio_normal" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.difficulty == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 808 MovieClip "radio_hard" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.difficulty == 4) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 812 MovieClip "radio_veryhard" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.difficulty == 5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 816 MovieClip "radio_tipson" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.tipsEnabled == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 820 MovieClip "radio_tipsoff" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.tipsEnabled == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 823 MovieClip "radio_hinton" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.hintsEnabled == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 826 MovieClip "radio_hintoff" in Symbol 827 MovieClip [options_screen] Frame 1
onClipEvent (load) {
if (_root.hintsEnabled == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 834 Button
on (release) {
_root.clickSound();
_root.recordMe();
}
Symbol 841 MovieClip Frame 1
stop();
if (_root.mode == "classic") {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Instance of Symbol 829 MovieClip in Symbol 842 MovieClip [enter_name_mc] Frame 1
onClipEvent (load) {
_root.enter_name_mc.enterNameField.maxChars = 12;
}
on (release) {
}
on (rollOver) {
this.useHandCursor = false;
}
Symbol 896 MovieClip Frame 20
goodmorningSound = new Sound();
goodmorningSound.attachSound("goodmorning.wav");
goodmorningSound.start();
Symbol 896 MovieClip Frame 80
_root.nextFrame();
Symbol 898 Button
on (release) {
nextFrame();
}
Symbol 903 Button
on (release) {
_root.clickSound();
_root.nextFrame();
}
Symbol 907 Button
on (release) {
_root.clickSound();
var bbgsite = "http://www.bluebuggames.com/signup.php";
getURL (bbgsite, "_blank");
}
Symbol 911 Button
on (release) {
_root.clickSound();
_root.openNA();
}
Symbol 915 Button
on (release) {
_root.clickSound();
_root.showTutorial();
}
Symbol 917 Button
on (release) {
_root.clickSound();
_root.showHelp();
}
Symbol 920 Button
on (release) {
_root.clickSound();
_root.openMoreInfo();
}
Symbol 930 Button
on (release) {
_root.clickSound();
var buynowpage = "http://www.bluebuggames.com/download.php";
getURL (buynowpage, "_blank");
}
Symbol 934 Button
on (release) {
_root.clickSound();
_root.openNA();
}
Symbol 935 MovieClip Frame 1
if (_root.introShown == true) {
gotoAndStop (16);
}
Symbol 935 MovieClip Frame 16
stop();
_root.introShown = true;
Symbol 938 Button
on (release) {
_root.clickSound();
var bbgsite = "http://www.bluebuggames.com";
getURL (bbgsite, "_blank");
}
Symbol 946 Button
on (release) {
_root.clickSound();
_root.modeselectscreen.description_panel.gotoAndStop(3);
_root.modeselectscreen.description_panel.modemask_ani.gotoAndPlay(1);
_root.modeselectscreen.description_panel.buttonpulse_ani.gotoAndPlay(1);
_root.modeselectscreen.select_classic.gotoAndStop(1);
_root.modeselectscreen.select_panic.gotoAndStop(2);
_root.modeselectscreen.select_puzzle.gotoAndStop(1);
_root.modeselectscreen.select_practice.gotoAndStop(1);
}
Symbol 949 MovieClip Frame 1
stop();
Instance of Symbol 948 MovieClip in Symbol 949 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 954 Button
on (release) {
_root.clickSound();
_root.modeselectscreen.description_panel.gotoAndStop(2);
_root.modeselectscreen.description_panel.modemask_ani.gotoAndPlay(1);
_root.modeselectscreen.description_panel.buttonpulse_ani.gotoAndPlay(1);
_root.modeselectscreen.select_classic.gotoAndStop(2);
_root.modeselectscreen.select_panic.gotoAndStop(1);
_root.modeselectscreen.select_puzzle.gotoAndStop(1);
_root.modeselectscreen.select_practice.gotoAndStop(1);
}
Symbol 957 MovieClip Frame 1
stop();
Instance of Symbol 956 MovieClip in Symbol 957 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 962 Button
on (release) {
_root.clickSound();
_root.modeselectscreen.description_panel.gotoAndStop(4);
_root.modeselectscreen.description_panel.modemask_ani.gotoAndPlay(1);
_root.modeselectscreen.description_panel.buttonpulse_ani.gotoAndPlay(1);
_root.modeselectscreen.select_classic.gotoAndStop(1);
_root.modeselectscreen.select_panic.gotoAndStop(1);
_root.modeselectscreen.select_puzzle.gotoAndStop(2);
_root.modeselectscreen.select_practice.gotoAndStop(1);
}
Symbol 965 MovieClip Frame 1
stop();
Instance of Symbol 964 MovieClip in Symbol 965 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 970 Button
on (release) {
_root.clickSound();
_root.modeselectscreen.description_panel.gotoAndStop(5);
_root.modeselectscreen.description_panel.modemask_ani.gotoAndPlay(1);
_root.modeselectscreen.description_panel.buttonpulse_ani.gotoAndPlay(1);
_root.modeselectscreen.select_classic.gotoAndStop(1);
_root.modeselectscreen.select_panic.gotoAndStop(1);
_root.modeselectscreen.select_puzzle.gotoAndStop(1);
_root.modeselectscreen.select_practice.gotoAndStop(2);
}
Symbol 973 MovieClip Frame 1
stop();
Instance of Symbol 972 MovieClip in Symbol 973 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 995 MovieClip Frame 49
stop();
Symbol 996 Button
on (release) {
_root.clickSound();
_root.mode = "classic";
_root.nextFrame();
}
Symbol 999 MovieClip Frame 11
stop();
Symbol 1001 Button
on (release) {
_root.clickSound();
_root.openNA();
}
Symbol 1004 Button
on (release) {
_root.clickSound();
_root.mode = "puzzle";
_root.gotoAndStop("puzzle");
}
Symbol 1007 Button
on (release) {
_root.clickSound();
_root.openNA();
}
Symbol 1010 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 1011 MovieClip Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 949 MovieClip "select_panic" in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameVersion == "full") {
this._alpha = 100;
} else {
this._alpha = 30;
}
}
Instance of Symbol 973 MovieClip "select_practice" in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameVersion == "full") {
this._alpha = 100;
} else {
this._alpha = 30;
}
}
Instance of Symbol 184 MovieClip in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Instance of Symbol 184 MovieClip in Symbol 1011 MovieClip Frame 1
onClipEvent (load) {
randomNum = random(10);
randomNum++;
this.box_main.gotoAndStop(randomNum);
}
Symbol 1015 Button
on (release) {
if (((((_root.canGo == true) && (_root.canRunBomber == true)) && (_root.switcherOn == false)) && (_root.eliminatorOn == false)) && (_root.newQueueOn == false)) {
_root.clickSound();
_root.runBomber();
}
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
_root.resetHint();
}
on (rollOver) {
_root.bubbles.gotoAndStop(1);
startDrag (_root.bubbles, true);
_root.bubbles._visible = true;
}
on (rollOut) {
_root.bubbles._x = 20;
_root.bubbles._y = -75;
stopDrag();
_root.bubbles._visible = false;
}
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1019 MovieClip Frame 2
stop();
Symbol 1023 MovieClip Frame 1
stop();
Symbol 1023 MovieClip Frame 2
scrollSound = new Sound();
scrollSound.attachSound("scroll.wav");
scrollSound.start();
Symbol 1023 MovieClip Frame 15
stop();
_root.shiftLineUp();
Symbol 1024 Button
on (release) {
_root.clickSound();
_root.showQuit();
if (_root.mode == "panic") {
_root.pauseTimer();
}
}
Symbol 1031 Button
on (release) {
_root.clickSound();
_root.showHelp();
if (_root.mode == "panic") {
_root.pauseTimer();
}
}
Symbol 1032 Button
on (release) {
if (_root.gameVersion == "full") {
_root.clickSound();
_root.showTopScores();
if (_root.mode == "panic") {
_root.pauseTimer();
_root.score_modestate = "panic";
} else if (_root.mode == "classic") {
_root.score_modestate = "classic";
}
_root.score_diffstate = _root.difficulty;
} else {
_root.clickSound();
_root.openNA();
if (_root.mode == "panic") {
_root.pauseTimer();
}
}
}
Symbol 1033 Button
on (release) {
if (_root.gameVersion == "full") {
_root.clickSound();
_root.showOptions();
if (_root.mode == "panic") {
_root.pauseTimer();
}
} else {
_root.clickSound();
_root.openNA();
if (_root.mode == "panic") {
_root.pauseTimer();
}
}
}
Symbol 1034 Button
on (release) {
if (((((_root.canGo == true) && (_root.canRunSwitcher == true)) && (_root.bombOn == false)) && (_root.eliminatorOn == false)) && (_root.newQueueOn == false)) {
_root.clickSound();
_root.runSwitcher();
}
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
_root.resetHint();
}
on (rollOver) {
_root.bubbles.gotoAndStop(2);
startDrag (_root.bubbles, true);
_root.bubbles._visible = true;
}
on (rollOut) {
_root.bubbles._x = 20;
_root.bubbles._y = -75;
stopDrag();
_root.bubbles._visible = false;
}
Symbol 1035 Button
on (release) {
if (((((_root.canGo == true) && (_root.canRunEliminator == true)) && (_root.switcherOn == false)) && (_root.bombOn == false)) && (_root.newQueueOn == false)) {
_root.clickSound();
_root.runEliminator();
}
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
_root.resetHint();
}
on (rollOver) {
_root.bubbles.gotoAndStop(3);
startDrag (_root.bubbles, true);
_root.bubbles._visible = true;
}
on (rollOut) {
_root.bubbles._x = 20;
_root.bubbles._y = -75;
stopDrag();
_root.bubbles._visible = false;
}
Symbol 1036 Button
on (release) {
if (_root.gameVersion == "full") {
if (((_root.canGo == true) && (_root.canRunOopsie == true)) && (_root.canRunOopsieNow == true)) {
_root.clickSound();
_root.runOopsie();
}
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
_root.resetHint();
} else {
_root.clickSound();
_root.openNA();
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
}
}
on (rollOver) {
_root.bubbles.gotoAndStop(4);
startDrag (_root.bubbles, true);
_root.bubbles._visible = true;
}
on (rollOut) {
_root.bubbles._x = 20;
_root.bubbles._y = -75;
stopDrag();
_root.bubbles._visible = false;
}
Symbol 1037 Button
on (release) {
if (_root.gameVersion == "full") {
if (((((_root.canGo == true) && (_root.canRunNewQueue == true)) && (_root.switcherOn == false)) && (_root.bombOn == false)) && (_root.eliminatorOn == false)) {
_root.clickSound();
_root.runNewQueue();
}
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
_root.resetHint();
} else {
_root.clickSound();
_root.openNA();
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
}
}
on (rollOver) {
_root.bubbles.gotoAndStop(5);
startDrag (_root.bubbles, true);
_root.bubbles._visible = true;
}
on (rollOut) {
_root.bubbles._x = 20;
_root.bubbles._y = -75;
stopDrag();
_root.bubbles._visible = false;
}
Instance of Symbol 1044 MovieClip "sweetmove_sign" in Symbol 1045 MovieClip Frame 1
onClipEvent (load) {
displayedJustGot.selectable = false;
}
Instance of Symbol 1044 MovieClip in Symbol 1045 MovieClip Frame 5
onClipEvent (load) {
displayedJustGot.selectable = false;
}
Instance of Symbol 1044 MovieClip in Symbol 1045 MovieClip Frame 9
onClipEvent (load) {
displayedJustGot.selectable = false;
}
Instance of Symbol 1044 MovieClip in Symbol 1045 MovieClip Frame 13
onClipEvent (load) {
displayedJustGot.selectable = false;
}
Symbol 1045 MovieClip Frame 45
_root.sweetmove_sign_ani._x = 375;
_root.sweetmove_sign_ani._y = -40;
gotoAndStop (1);
Symbol 1048 Button
on (release) {
_root.deactivateSurrounder();
}
Symbol 1051 Button
on (release) {
_root.activateSurrounder();
}
Symbol 1052 MovieClip Frame 1
stop();
Symbol 1053 Button
on (release) {
_root.flashHint();
_root.bubbles._x = 20;
_root.bubbles._y = -75;
_root.bubbles._visible = false;
}
on (rollOver) {
_root.bubbles.gotoAndStop(6);
startDrag (_root.bubbles, true);
_root.bubbles._visible = true;
}
on (rollOut) {
_root.bubbles._x = 20;
_root.bubbles._y = -75;
stopDrag();
_root.bubbles._visible = false;
}
Symbol 1054 MovieClip Frame 1
stop();
Symbol 1054 MovieClip Frame 10
stop();
Symbol 1057 MovieClip Frame 1
stop();
Symbol 1057 MovieClip Frame 35
_root.hideFlashHint();
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1072 MovieClip Frame 1
stop();
Symbol 1077 Button
on (release) {
_root.clickSound();
wizzSound = new Sound();
wizzSound.attachSound("wizz.wav");
wizzSound.start();
_root.restartPuzzle();
}
Symbol 1084 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_1.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_1.gotoAndStop(1);
}
}
on (release) {
if ((_root.oneTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(1);
_root.oneTiles--;
_root.puzzle_tray_1.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 1;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 1)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.oneTiles++;
_root.puzzle_tray_1.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 1)) {
_root.quickSwitchCurrentHand(1);
}
}
Symbol 1090 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1090 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(1);
}
Symbol 1092 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_5.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_5.gotoAndStop(1);
}
}
on (release) {
if ((_root.fiveTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(5);
_root.fiveTiles--;
_root.puzzle_tray_5.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 5;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 5)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.fiveTiles++;
_root.puzzle_tray_5.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 5)) {
_root.quickSwitchCurrentHand(5);
}
}
Symbol 1093 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1093 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(5);
}
Symbol 1095 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_4.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_4.gotoAndStop(1);
}
}
on (release) {
if ((_root.fourTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(4);
_root.fourTiles--;
_root.puzzle_tray_4.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 4;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 4)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.fourTiles++;
_root.puzzle_tray_4.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 4)) {
_root.quickSwitchCurrentHand(4);
}
}
Symbol 1096 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1096 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(4);
}
Symbol 1098 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_3.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_3.gotoAndStop(1);
}
}
on (release) {
if ((_root.threeTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(3);
_root.threeTiles--;
_root.puzzle_tray_3.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 3;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 3)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.threeTiles++;
_root.puzzle_tray_3.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 3)) {
_root.quickSwitchCurrentHand(3);
}
}
Symbol 1099 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1099 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(3);
}
Symbol 1101 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_2.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_2.gotoAndStop(1);
}
}
on (release) {
if ((_root.twoTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(2);
_root.twoTiles--;
_root.puzzle_tray_2.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 2;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 2)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.twoTiles++;
_root.puzzle_tray_2.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 2)) {
_root.quickSwitchCurrentHand(2);
}
}
Symbol 1102 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1102 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(2);
}
Symbol 1104 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_6.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_6.gotoAndStop(1);
}
}
on (release) {
if ((_root.sixTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(6);
_root.sixTiles--;
_root.puzzle_tray_6.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 6;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 6)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.sixTiles++;
_root.puzzle_tray_6.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 6)) {
_root.quickSwitchCurrentHand(6);
}
}
Symbol 1105 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1105 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(6);
}
Symbol 1107 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_10.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_10.gotoAndStop(1);
}
}
on (release) {
if ((_root.zeroTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(10);
_root.zeroTiles--;
_root.puzzle_tray_10.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 10;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 10)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.zeroTiles++;
_root.puzzle_tray_10.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 10)) {
_root.quickSwitchCurrentHand(10);
}
}
Symbol 1108 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1108 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(10);
}
Symbol 1110 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_9.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_9.gotoAndStop(1);
}
}
on (release) {
if ((_root.nineTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(9);
_root.nineTiles--;
_root.puzzle_tray_9.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 9;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 9)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.nineTiles++;
_root.puzzle_tray_9.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 9)) {
_root.quickSwitchCurrentHand(9);
}
}
Symbol 1111 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(9);
}
Symbol 1113 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_8.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_8.gotoAndStop(1);
}
}
on (release) {
if ((_root.eightTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(8);
_root.eightTiles--;
_root.puzzle_tray_8.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 8;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 8)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.eightTiles++;
_root.puzzle_tray_8.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 8)) {
_root.quickSwitchCurrentHand(8);
}
}
Symbol 1114 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1114 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(8);
}
Symbol 1116 Button
on (rollOver) {
if (_root.tileInHand == false) {
_root.puzzle_tray_7.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.tileInHand == false) {
_root.puzzle_tray_7.gotoAndStop(1);
}
}
on (release) {
if ((_root.sevenTiles > 0) && (_root.tileInHand == false)) {
_root.floater.floaterBox.gotoAndStop(7);
_root.sevenTiles--;
_root.puzzle_tray_7.gotoAndStop(3);
_root.tileInHand = true;
_root.numberInHand = 7;
_root.floater.pulse.gotoAndPlay(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand == 7)) {
_root.floater.floaterBox.gotoAndStop(11);
_root.sevenTiles++;
_root.puzzle_tray_7.gotoAndStop(1);
_root.tileInHand = false;
_root.numberInHand = null;
_root.floater.pulse.gotoAndStop(1);
} else if ((_root.tileInHand == true) && (_root.numberInHand != 7)) {
_root.quickSwitchCurrentHand(7);
}
}
Symbol 1117 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 1117 MovieClip Frame 1
onClipEvent (load) {
this.box_main.gotoAndStop(7);
}
Symbol 1123 Button
on (release) {
if (_root.canRunPuzzleUndo == true) {
_root.clickSound();
_root.runPuzzleUndo();
}
}
Symbol 1127 Button
on (release) {
_root.clickSound();
_root.showPuzzleHelp();
}