Frame 2
function clearHokje() {
removeMovieClip(zoomhokje);
}
function retry() {
var _local2 = 0;
while (_local2 lt 9) {
var _local1 = 0;
while (_local1 lt 9) {
if (showMe[_local2][_local1]) {
hokjesArray[_local2][_local1].bg.val = playfield[_local2][_local1];
hokjesArray[_local2][_local1].notclickable = true;
} else {
hokjesArray[_local2][_local1].bg.val = "";
hokjesArray[_local2][_local1].notclickable = false;
}
hokjesArray[_local2][_local1].x = _local2;
hokjesArray[_local2][_local1].y = _local1;
_local1++;
}
_local2++;
}
}
function attachHokje(x, y, val, i, k) {
highScore = false;
zoomhokje = attachMovie("zoomhokje", "zoomhokje" + zoomhokjeID, 10000);
zoomhokje._x = x;
zoomhokje._y = y;
if (val != undefined) {
zoomhokje.bg.val = val;
}
zoomhokje.i = i;
zoomhokje.k = k;
zoomhokje.id = zoomhokje;
if ((((i - 3) lt 0) || ((i - 3) gt 2)) && (((k - 3) lt 0) || ((k - 3) gt 2))) {
zoomhokje.bg.gotoAndStop(2);
}
if (((((i - 3) ge 0) && ((i - 3) lt 3)) && ((k - 3) ge 0)) && ((k - 3) lt 3)) {
zoomhokje.bg.gotoAndStop(3);
}
}
function showStaticNumbers(playFieldArray, hokjes, showAmount) {
if (showAmount == 32) {
maxFives = 1;
maxFours = 3;
maxThree = 5;
} else if (showAmount == 34) {
maxFives = 1;
maxFours = 5;
maxThree = 3;
} else if (showAmount == 36) {
maxFives = 3;
maxFours = 3;
maxThree = 3;
}
showAmountArray = new Array();
checkAmountArray = new Array();
var _local3 = 0;
while (_local3 lt 3) {
showAmountArray[_local3] = new Array();
checkAmountArray[_local3 + 3] = 0;
_local3++;
}
var _local2 = 0;
while (_local2 lt 3) {
var _local1 = 0;
while (_local1 lt 3) {
showNumber = random(3) + 3;
if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = random(2) + 3;
if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = 3;
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = 4;
}
} else if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = randomChange(1) + 3;
if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = 3;
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = 5;
}
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = random(2) + 4;
if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = 5;
} else if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = 4;
}
}
checkAmountArray[showNumber]++;
showAmountArray[_local2][_local1] = showNumber;
_local1++;
}
_local2++;
}
return(showAmountArray);
}
function randomChange(num) {
reCheck = random(2);
if ((num eq 0) && (reCheck eq 0)) {
return(1);
}
if ((num eq 0) && (reCheck eq 1)) {
return(2);
}
if ((num eq 1) && (reCheck eq 0)) {
return(0);
}
if ((num eq 1) && (reCheck eq 1)) {
return(2);
}
if ((num eq 2) && (reCheck eq 0)) {
return(0);
}
if ((num eq 2) && (reCheck eq 1)) {
return(1);
}
}
function showHokjes(hokjesAmount, showAmount) {
if (showAmount == 32) {
maxFives = 1;
maxFours = 4;
} else if (showAmount == 34) {
maxFives = 1;
maxFours = 6;
} else if (showAmount == 36) {
maxFives = 3;
maxFours = 6;
}
fours = 0;
fives = 0;
sAmount = 0;
checkAmountArray = new Array();
truthTable = new Array();
posNum = new Array();
tempPosNum = new Array();
var _local4 = 0;
while (_local4 lt 9) {
truthTable[_local4] = new Array();
checkAmountArray[_local4 + 1] = 0;
posNum[_local4] = _local4 + 1;
_local4++;
}
_local4 = 0;
while (_local4 < 3) {
var _local3 = 0;
while (_local3 < 3) {
var _local5 = 0;
while (_local5 < posNum.length) {
tempPosNum[_local5] = posNum[_local5];
_local5++;
}
_local5 = 0;
while (_local5 < hokjesAmount[_local4][_local3]) {
if (fives == maxFives) {
var _local2 = 0;
while (_local2 < checkAmountArray.length) {
if (checkAmountArray[_local2] == 4) {
"splicing: " + _local2;
var _local1 = 0;
while (_local1 < posNum.length) {
if (posNum[_local1] == _local2) {
posNum.splice(_local1, 1);
}
_local1++;
}
_local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == _local2) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
}
_local2++;
}
}
if (fours == maxFours) {
var _local2 = 0;
while (_local2 < checkAmountArray.length) {
if (checkAmountArray[_local2] == 3) {
var _local1 = 0;
while (_local1 < posNum.length) {
if (posNum[_local1] == _local2) {
posNum.splice(_local1, 1);
}
_local1++;
}
_local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == _local2) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
}
_local2++;
}
}
found = false;
sCheck = 0;
lowestNumArray = new Array();
while (sCheck == 0) {
var _local2 = 0;
while (_local2 < tempPosNum.length) {
if (checkAmountArray[tempPosNum[_local2]] == sAmount) {
sCheck++;
lowestNumArray.push(tempPosNum[_local2]);
}
_local2++;
}
if (sCheck == 0) {
sAmount++;
}
}
rIndex = random(lowestNumArray.length);
rNum = lowestNumArray[rIndex];
if (rNum == undefined) {
}
var _local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == rNum) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
checkAmountArray[rNum]++;
if (checkAmountArray[rNum] == 4) {
fours++;
} else if (checkAmountArray[rNum] == 5) {
fives++;
maxFours--;
fours--;
}
(((((rNum + "->") + checkAmountArray[rNum]) + " ") + fives) + "-") + maxFives;
if (checkAmountArray[rNum] == 5) {
"splicing: " + rNum;
var _local2 = 0;
while (_local2 < posNum.length) {
if (posNum[_local2] == rNum) {
posNum.splice(_local2, 1);
}
_local2++;
}
}
var _local2 = _local4 * 3;
while (_local2 < ((_local4 * 3) + 3)) {
_local1 = _local3 * 3;
while (_local1 < ((_local3 * 3) + 3)) {
if (playfield[_local2][_local1] == rNum) {
truthTable[_local2][_local1] = true;
found = true;
break;
}
_local1++;
}
if (found) {
break;
}
_local2++;
}
_local5++;
}
_local3++;
}
_local4++;
}
return(truthTable);
}
function controle(k, i) {
var _local2 = 0;
while (_local2 < 9) {
if ((hokjesArray[k][_local2].bg.val == hokjesArray[k][i].bg.val) && (_local2 != i)) {
return(false);
}
if ((hokjesArray[_local2][i].bg.val == hokjesArray[k][i].bg.val) && (_local2 != k)) {
return(false);
}
_local2++;
}
if (k < 3) {
j = 0;
} else if (k < 6) {
j = 3;
} else {
j = 6;
}
if (i < 3) {
l = 0;
} else if (i < 6) {
l = 3;
} else {
l = 6;
}
_local2 = j;
while (_local2 < (j + 3)) {
var _local1 = l;
while (_local1 < (l + 3)) {
if (((hokjesArray[_local2][_local1].bg.val == hokjesArray[k][i].bg.val) && (_local2 != k)) && (_local1 != i)) {
return(false);
}
if (hokjesArray[_local2][_local1].bg.val == undefined) {
return(false);
}
_local1++;
}
_local2++;
}
return(true);
}
function checkAnswer() {
tempanswer = 3;
var _local2 = 0;
while (_local2 lt 9) {
var _local1 = 0;
while (_local1 lt 9) {
if (!controle(_local1, _local2)) {
tempanswer = 5;
(_local1 + ",") + _local2;
}
_local1++;
}
_local2++;
}
answer = tempanswer;
if (answer == 3) {
_local2 = 0;
while (_local2 < 10) {
if (menU.game == "sudoku") {
if ((difi == 36) && (highscores_1.data.storage[_local2].t > timer)) {
highScore = true;
} else if ((difi == 34) && (highscores_2.data.storage[_local2].t > timer)) {
highScore = true;
} else if ((difi == 32) && (highscores_3.data.storage[_local2].t > timer)) {
highScore = true;
}
} else if (menU.game == "soku") {
if ((difi == 36) && (highscores_4.data.storage[_local2].t > timer)) {
highScore = true;
} else if ((difi == 34) && (highscores_5.data.storage[_local2].t > timer)) {
highScore = true;
} else if ((difi == 32) && (highscores_6.data.storage[_local2].t > timer)) {
highScore = true;
}
}
_local2++;
}
if (highScore) {
clearAll();
menU.gotoAndPlay("highscore");
}
}
}
Stage.scaleMode = "noScale";
_root.myNumber = 1;
stop();
if (!gameLoaded) {
gameLoaded = true;
gotoAndPlay (51);
}
clearAll();
if (!loadedVars) {
loadVars_();
}
Frame 3
function main() {
answer = 1;
timeCorrection = getTimer();
showAnswer.gotoAndStop(1);
answer = undefined;
answerString = undefined;
showAnswer.gotoAndStop(0);
fieldX = 185;
fieldY = 60;
placeAdjustX = 26;
placeAdjustY = 26;
createField();
}
function createField() {
playfield = new Array();
numberArray = new Array();
hokjesArray = new Array();
hokjeIndex = 0;
var _local5 = 0;
while (_local5 lt 9) {
playfield[_local5] = new Array();
hokjesArray[_local5] = new Array();
var _local6 = 0;
while (_local6 lt 9) {
hokjeIndex++;
attachMovie("hokje", "hokje" + hokjeIndex, 10 + hokjeIndex);
hokje = _root["hokje" + hokjeIndex];
hokje._x = fieldX + (_local5 * placeAdjustX);
hokje._y = fieldY + (_local6 * placeAdjustY);
hokjesArray[_local5][_local6] = hokje;
if ((((_local6 - 3) lt 0) || ((_local6 - 3) gt 2)) && (((_local5 - 3) lt 0) || ((_local5 - 3) gt 2))) {
hokje.bg.gotoAndStop(2);
}
if (((((_local6 - 3) ge 0) && ((_local6 - 3) lt 3)) && ((_local5 - 3) ge 0)) && ((_local5 - 3) lt 3)) {
hokje.bg.gotoAndStop(3);
}
_local6++;
}
_local5++;
}
var _local4 = 0;
while (_local4 lt 3) {
var _local2 = 0;
while (_local2 lt 3) {
playfield[_local2][_local4] = genRandom();
playfield[_local2 + 3][_local4] = playfield[_local2][_local4];
playfield[_local2 + 6][_local4] = playfield[_local2][_local4];
_local5 = 0;
while (_local5 le 6) {
var _local3 = 0;
while (_local3 le 6) {
if (_local5 gt 2) {
playfield[_local2 + _local3][_local4 + _local5] = playfield[_local2][_local4];
}
_local3 = _local3 + 3;
}
_local5 = _local5 + 3;
}
_local2++;
}
_local4++;
}
playfield = swap(playfield);
showHokjesAmount = showStaticNumbers(playfield, hokjesArray, difi);
showMe = showHokjes(showHokjesAmount, difi);
_local5 = 0;
while (_local5 lt 9) {
var _local3 = 0;
while (_local3 lt 9) {
if (showMe[_local5][_local3]) {
hokjesArray[_local5][_local3].bg.val = playfield[_local5][_local3];
hokjesArray[_local5][_local3].notclickable = true;
} else {
hokjesArray[_local5][_local3].bg.val = "";
hokjesArray[_local5][_local3].notclickable = false;
}
hokjesArray[_local5][_local3].x = _local5;
hokjesArray[_local5][_local3].y = _local3;
_local3++;
}
_local5++;
}
}
function genRandom() {
randomNum = random(9) + 1;
while (!checkRandom(randomNum)) {
randomNum = random(9) + 1;
}
return(randomNum);
}
function checkRandom(num) {
var _local2 = 0;
while (_local2 lt 3) {
var _local1 = 0;
while (_local1 lt 3) {
if (playfield[_local1][_local2] eq num) {
return(false);
}
_local1++;
}
_local2++;
}
return(true);
}
function swapFieldsSet() {
horArray = new Array();
var _local1 = 0;
while (_local1 lt 3) {
horArray[_local1] = new Array();
_local1++;
}
_local1 = 0;
while (_local1 le 6) {
horArray[0][0 + _local1] = random(3);
horArray[0][1 + _local1] = randomChange(horArray[0][0 + _local1]);
horArray[0][2 + _local1] = staticChange(horArray[0][0 + _local1], horArray[0][1 + _local1]);
_local1 = _local1 + 3;
}
_local1 = 0;
while (_local1 le 6) {
horArray[1][0 + _local1] = randomChange(horArray[0][0 + _local1]);
if (horArray[1][0 + _local1] ne horArray[0][1 + _local1]) {
horArray[1][1 + _local1] = doubleChange(horArray[1][0 + _local1], horArray[0][1 + _local1]);
} else {
horArray[1][1 + _local1] = horArray[0][2 + _local1];
}
horArray[1][2 + _local1] = staticChange(horArray[1][0 + _local1], horArray[1][1 + _local1]);
_local1 = _local1 + 3;
}
_local1 = 0;
while (_local1 le 6) {
horArray[2][0 + _local1] = staticChange(horArray[0][0 + _local1], horArray[1][0 + _local1]);
horArray[2][1 + _local1] = staticChange(horArray[0][1 + _local1], horArray[1][1 + _local1]);
horArray[2][2 + _local1] = staticChange(horArray[0][2 + _local1], horArray[1][2 + _local1]);
_local1 = _local1 + 3;
}
return(horArray);
}
function randomChange(num) {
reCheck = random(2);
if ((num eq 0) && (reCheck eq 0)) {
return(1);
}
if ((num eq 0) && (reCheck eq 1)) {
return(2);
}
if ((num eq 1) && (reCheck eq 0)) {
return(0);
}
if ((num eq 1) && (reCheck eq 1)) {
return(2);
}
if ((num eq 2) && (reCheck eq 0)) {
return(0);
}
if ((num eq 2) && (reCheck eq 1)) {
return(1);
}
}
function staticChange(num, num2) {
if (((num eq 0) && (num2 eq 1)) || ((num eq 1) && (num2 eq 0))) {
return(2);
}
if (((num eq 0) && (num2 eq 2)) || ((num eq 2) && (num2 eq 0))) {
return(1);
}
if (((num eq 1) && (num2 eq 2)) || ((num eq 2) && (num2 eq 1))) {
return(0);
}
}
function doubleChange(num, num2) {
if (num ne num2) {
return(staticChange(num, num2));
}
return(randomChange(num));
}
function swap(fieldArray) {
swapArray = swapFieldsSet();
swapArray2 = swapFieldsSet();
swappedArray = new Array();
var _local2 = 0;
while (_local2 lt 9) {
swappedArray[_local2] = new Array();
_local2++;
}
_local2 = 0;
while (_local2 lt 9) {
if (_local2 eq 0) {
factor = 0;
}
if (_local2 eq 3) {
factor = 3;
}
if (_local2 eq 6) {
factor = 6;
}
var _local1 = 0;
while (_local1 lt 3) {
swappedArray[0 + (_local1 * 3)][_local2] = fieldArray[0 + (_local1 * 3)][swapArray[_local1][_local2] + factor];
swappedArray[1 + (_local1 * 3)][_local2] = fieldArray[1 + (_local1 * 3)][swapArray[_local1][_local2] + factor];
swappedArray[2 + (_local1 * 3)][_local2] = fieldArray[2 + (_local1 * 3)][swapArray[_local1][_local2] + factor];
_local1++;
}
_local2++;
}
_local2 = 0;
while (_local2 lt 9) {
if (_local2 eq 0) {
factor = 0;
}
if (_local2 eq 3) {
factor = 3;
}
if (_local2 eq 6) {
factor = 6;
}
var _local1 = 0;
while (_local1 lt 3) {
fieldArray[_local2][0 + (_local1 * 3)] = swappedArray[swapArray2[_local1][_local2] + factor][0 + (_local1 * 3)];
fieldArray[_local2][1 + (_local1 * 3)] = swappedArray[swapArray2[_local1][_local2] + factor][1 + (_local1 * 3)];
fieldArray[_local2][2 + (_local1 * 3)] = swappedArray[swapArray2[_local1][_local2] + factor][2 + (_local1 * 3)];
_local1++;
}
_local2++;
}
return(fieldArray);
}
stop();
main();
timerAdjustment = 0;
onEnterFrame = function () {
if (answer != 3) {
timer = Math.round((getTimer() - timeCorrection) / 1000);
timer = timer + " seconds";
}
};
Frame 4
function main() {
timeCorrection = getTimer();
answer = 1;
_root.showAnswer.gotoAndStop(4);
reCreate = false;
timeCorrection = getTimer();
showAnswer.gotoAndStop(1);
answer = undefined;
answerString = undefined;
showAnswer.gotoAndStop(0);
createField();
createArrays();
genField();
showHokjesAmount = showStaticNumbers(playfield, hokjesArray, difi);
showMe = showHokjes(showHokjesAmount, difi);
var _local3 = 0;
while (_local3 lt 9) {
var _local2 = 0;
while (_local2 lt 9) {
if (showMe[_local3][_local2]) {
hokjesArray[_local3][_local2].bg.val = playfield[_local3][_local2];
hokjesArray[_local3][_local2].notclickable = true;
} else {
hokjesArray[_local3][_local2].bg.val = "";
hokjesArray[_local3][_local2].notclickable = false;
}
hokjesArray[_local3][_local2].x = _local3;
hokjesArray[_local3][_local2].y = _local2;
_local2++;
}
_local3++;
}
if (reCreate) {
main();
} else {
showAnswer.gotoAndStop(1);
}
}
function createField() {
fieldCreated = true;
hokjesArray = new Array();
hokjeIndex = 0;
fieldX = 185;
fieldY = 70;
placeAdjustX = 26;
placeAdjustY = 26;
var _local3 = 0;
while (_local3 lt 9) {
hokjesArray[_local3] = new Array();
var _local2 = 0;
while (_local2 lt 9) {
hokjeIndex++;
attachMovie("hokje", "hokje" + hokjeIndex, 10 + hokjeIndex);
hokje = _root["hokje" + hokjeIndex];
hokje._x = fieldX + (_local3 * placeAdjustX);
hokje._y = fieldY + (_local2 * placeAdjustY);
hokjesArray[_local3][_local2] = hokje;
if ((((_local2 - 3) lt 0) || ((_local2 - 3) gt 2)) && (((_local3 - 3) lt 0) || ((_local3 - 3) gt 2))) {
hokje.bg.gotoAndStop(2);
}
if (((((_local2 - 3) ge 0) && ((_local2 - 3) lt 3)) && ((_local3 - 3) ge 0)) && ((_local3 - 3) lt 3)) {
hokje.bg.gotoAndStop(3);
}
_local2++;
}
_local3++;
}
}
function createArrays() {
playfield = new Array();
tempFieldArray = new Array();
var _local2 = 0;
while (_local2 lt 9) {
tempFieldArray[_local2] = new Array();
playfield[_local2] = new Array();
var _local1 = 0;
while (_local1 lt 9) {
hokjesArray[_local2][_local1].val = undefined;
hokjesArray[_local2][_local1].valVar.selectable = true;
_local1++;
}
_local2++;
}
}
function genField() {
retryRow = 0;
var _local2 = 0;
while (_local2 < 9) {
var _local1 = 0;
while (_local1 < 9) {
playfield[_local1][_local2] = undefined;
playfield[_local1][_local2 + 1] = undefined;
numberArray = checkSpot(_local1, _local2);
if (numberArray.length == 0) {
if (retryRow > 40) {
reCreate = true;
break;
}
retryRow++;
_local2--;
_local1 = 0;
} else {
setNum = random(numberArray.length);
setNum = numberArray[setNum];
playfield[_local1][_local2] = setNum;
}
_local1++;
}
if (reCreate) {
break;
}
_local2++;
}
}
function checkSpot(u, v) {
checkArray = new Array();
var _local3 = 1;
while (_local3 <= 9) {
addMe = true;
var _local2 = 0;
while (_local2 < 9) {
if ((playfield[u][_local2] == _local3) || (playfield[_local2][v] == _local3)) {
addMe = false;
}
_local2++;
}
if (u > 0) {
factorX = Math.round((u - 1) / 3);
} else {
factorX = Math.round(u / 3);
}
if (v > 0) {
factorY = Math.round((v - 1) / 3);
} else {
factorY = Math.round(v / 3);
}
var _local4 = factorX * 3;
while (_local4 < ((factorX * 3) + 3)) {
var _local1 = factorY * 3;
while (_local1 < ((factorY * 3) + 3)) {
if (playfield[_local4][_local1] == _local3) {
addMe = false;
}
_local1++;
}
_local4++;
}
if (addMe) {
checkArray.push(_local3);
}
_local3++;
}
return(checkArray);
}
stop();
main();
timerAdjustment = 0;
onEnterFrame = function () {
if (answer != 3) {
timer = Math.round((getTimer() - timeCorrection) / 1000);
timer = timer + " seconds";
}
};
Symbol 8 MovieClip Frame 1
function showStaticNumbers(playFieldArray, hokjes, showAmount) {
if (showAmount == 32) {
maxFives = 1;
maxFours = 3;
maxThree = 5;
} else if (showAmount == 34) {
maxFives = 1;
maxFours = 5;
maxThree = 3;
} else if (showAmount == 36) {
maxFives = 3;
maxFours = 3;
maxThree = 3;
}
showAmountArray = new Array();
checkAmountArray = new Array();
var _local3 = 0;
while (_local3 lt 3) {
showAmountArray[_local3] = new Array();
checkAmountArray[_local3 + 3] = 0;
_local3++;
}
var _local2 = 0;
while (_local2 lt 3) {
var _local1 = 0;
while (_local1 lt 3) {
showNumber = random(3) + 3;
if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = random(2) + 3;
if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = 3;
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = 4;
}
} else if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = randomChange(1) + 3;
if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = 3;
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = 5;
}
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = random(2) + 4;
if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = 5;
} else if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = 4;
}
}
checkAmountArray[showNumber]++;
showAmountArray[_local2][_local1] = showNumber;
_local1++;
}
_local2++;
}
return(showAmountArray);
}
function showHokjes(hokjesAmount, showAmount) {
if (showAmount == 32) {
maxFives = 1;
maxFours = 4;
} else if (showAmount == 34) {
maxFives = 1;
maxFours = 6;
} else if (showAmount == 36) {
maxFives = 3;
maxFours = 6;
}
fours = 0;
fives = 0;
sAmount = 0;
checkAmountArray = new Array();
truthTable = new Array();
posNum = new Array();
tempPosNum = new Array();
var _local4 = 0;
while (_local4 lt 9) {
truthTable[_local4] = new Array();
checkAmountArray[_local4 + 1] = 0;
posNum[_local4] = _local4 + 1;
_local4++;
}
_local4 = 0;
while (_local4 < 3) {
var _local3 = 0;
while (_local3 < 3) {
var _local5 = 0;
while (_local5 < posNum.length) {
tempPosNum[_local5] = posNum[_local5];
_local5++;
}
_local5 = 0;
while (_local5 < hokjesAmount[_local4][_local3]) {
if (fives == maxFives) {
var _local2 = 0;
while (_local2 < checkAmountArray.length) {
if (checkAmountArray[_local2] == 4) {
var _local1 = 0;
while (_local1 < posNum.length) {
if (posNum[_local1] == _local2) {
posNum.splice(_local1, 1);
}
_local1++;
}
_local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == _local2) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
}
_local2++;
}
}
if (fours == maxFours) {
var _local2 = 0;
while (_local2 < checkAmountArray.length) {
if (checkAmountArray[_local2] == 3) {
var _local1 = 0;
while (_local1 < posNum.length) {
if (posNum[_local1] == _local2) {
posNum.splice(_local1, 1);
}
_local1++;
}
_local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == _local2) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
}
_local2++;
}
}
found = false;
sCheck = 0;
lowestNumArray = new Array();
while (sCheck == 0) {
var _local2 = 0;
while (_local2 < tempPosNum.length) {
if (checkAmountArray[tempPosNum[_local2]] == sAmount) {
sCheck++;
lowestNumArray.push(tempPosNum[_local2]);
}
_local2++;
}
if (sCheck == 0) {
sAmount++;
}
}
rIndex = random(lowestNumArray.length);
rNum = lowestNumArray[rIndex];
if (rNum == undefined) {
trace(posNum);
}
var _local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == rNum) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
checkAmountArray[rNum]++;
if (checkAmountArray[rNum] == 4) {
fours++;
} else if (checkAmountArray[rNum] == 5) {
fives++;
maxFours--;
fours--;
}
if (checkAmountArray[rNum] == 5) {
var _local2 = 0;
while (_local2 < posNum.length) {
if (posNum[_local2] == rNum) {
posNum.splice(_local2, 1);
}
_local2++;
}
}
var _local2 = _local4 * 3;
while (_local2 < ((_local4 * 3) + 3)) {
_local1 = _local3 * 3;
while (_local1 < ((_local3 * 3) + 3)) {
if (playfield[_local2][_local1] == rNum) {
truthTable[_local2][_local1] = true;
found = true;
break;
}
_local1++;
}
if (found) {
break;
}
_local2++;
}
_local5++;
}
_local3++;
}
_local4++;
}
return(truthTable);
}
function main() {
answer = 1;
timeCorrection = getTimer();
showAnswer.gotoAndStop(1);
answer = undefined;
answerString = undefined;
showAnswer.gotoAndStop(0);
fieldX = 0;
fieldY = 0;
placeAdjustX = 26;
placeAdjustY = 26;
createField();
}
function createField() {
playfield = new Array();
numberArray = new Array();
hokjesArray = new Array();
hokjeIndex = 0;
var _local5 = 0;
while (_local5 lt 9) {
playfield[_local5] = new Array();
hokjesArray[_local5] = new Array();
var _local6 = 0;
while (_local6 lt 9) {
hokjeIndex++;
attachMovie("hokjeprint", "hokje" + hokjeIndex, 10 + hokjeIndex);
hokje = this["hokje" + hokjeIndex];
hokje._x = fieldX + (_local5 * placeAdjustX);
hokje._y = fieldY + (_local6 * placeAdjustY);
hokjesArray[_local5][_local6] = hokje;
if ((((_local6 - 3) lt 0) || ((_local6 - 3) gt 2)) && (((_local5 - 3) lt 0) || ((_local5 - 3) gt 2))) {
hokje.bg.gotoAndStop(2);
}
if (((((_local6 - 3) ge 0) && ((_local6 - 3) lt 3)) && ((_local5 - 3) ge 0)) && ((_local5 - 3) lt 3)) {
hokje.bg.gotoAndStop(3);
}
_local6++;
}
_local5++;
}
var _local4 = 0;
while (_local4 lt 3) {
var _local2 = 0;
while (_local2 lt 3) {
playfield[_local2][_local4] = genRandom();
playfield[_local2 + 3][_local4] = playfield[_local2][_local4];
playfield[_local2 + 6][_local4] = playfield[_local2][_local4];
_local5 = 0;
while (_local5 le 6) {
var _local3 = 0;
while (_local3 le 6) {
if (_local5 gt 2) {
playfield[_local2 + _local3][_local4 + _local5] = playfield[_local2][_local4];
}
_local3 = _local3 + 3;
}
_local5 = _local5 + 3;
}
_local2++;
}
_local4++;
}
playfield = swap(playfield);
showHokjesAmount = showStaticNumbers(playfield, hokjesArray, difi);
showMe = showHokjes(showHokjesAmount, difi);
_local5 = 0;
while (_local5 lt 9) {
var _local3 = 0;
while (_local3 lt 9) {
if (showMe[_local5][_local3]) {
hokjesArray[_local5][_local3].bg.val = playfield[_local5][_local3];
hokjesArray[_local5][_local3].notclickable = true;
} else {
hokjesArray[_local5][_local3].bg.val = "";
hokjesArray[_local5][_local3].notclickable = true;
}
hokjesArray[_local5][_local3].x = _local5;
hokjesArray[_local5][_local3].y = _local3;
_local3++;
}
_local5++;
}
}
function genRandom() {
randomNum = random(9) + 1;
while (!checkRandom(randomNum)) {
randomNum = random(9) + 1;
}
return(randomNum);
}
function checkRandom(num) {
var _local2 = 0;
while (_local2 lt 3) {
var _local1 = 0;
while (_local1 lt 3) {
if (playfield[_local1][_local2] eq num) {
return(false);
}
_local1++;
}
_local2++;
}
return(true);
}
function swapFieldsSet() {
horArray = new Array();
var _local1 = 0;
while (_local1 lt 3) {
horArray[_local1] = new Array();
_local1++;
}
_local1 = 0;
while (_local1 le 6) {
horArray[0][0 + _local1] = random(3);
horArray[0][1 + _local1] = randomChange(horArray[0][0 + _local1]);
horArray[0][2 + _local1] = staticChange(horArray[0][0 + _local1], horArray[0][1 + _local1]);
_local1 = _local1 + 3;
}
_local1 = 0;
while (_local1 le 6) {
horArray[1][0 + _local1] = randomChange(horArray[0][0 + _local1]);
if (horArray[1][0 + _local1] ne horArray[0][1 + _local1]) {
horArray[1][1 + _local1] = doubleChange(horArray[1][0 + _local1], horArray[0][1 + _local1]);
} else {
horArray[1][1 + _local1] = horArray[0][2 + _local1];
}
horArray[1][2 + _local1] = staticChange(horArray[1][0 + _local1], horArray[1][1 + _local1]);
_local1 = _local1 + 3;
}
_local1 = 0;
while (_local1 le 6) {
horArray[2][0 + _local1] = staticChange(horArray[0][0 + _local1], horArray[1][0 + _local1]);
horArray[2][1 + _local1] = staticChange(horArray[0][1 + _local1], horArray[1][1 + _local1]);
horArray[2][2 + _local1] = staticChange(horArray[0][2 + _local1], horArray[1][2 + _local1]);
_local1 = _local1 + 3;
}
return(horArray);
}
function randomChange(num) {
reCheck = random(2);
if ((num eq 0) && (reCheck eq 0)) {
return(1);
}
if ((num eq 0) && (reCheck eq 1)) {
return(2);
}
if ((num eq 1) && (reCheck eq 0)) {
return(0);
}
if ((num eq 1) && (reCheck eq 1)) {
return(2);
}
if ((num eq 2) && (reCheck eq 0)) {
return(0);
}
if ((num eq 2) && (reCheck eq 1)) {
return(1);
}
}
function staticChange(num, num2) {
if (((num eq 0) && (num2 eq 1)) || ((num eq 1) && (num2 eq 0))) {
return(2);
}
if (((num eq 0) && (num2 eq 2)) || ((num eq 2) && (num2 eq 0))) {
return(1);
}
if (((num eq 1) && (num2 eq 2)) || ((num eq 2) && (num2 eq 1))) {
return(0);
}
}
function doubleChange(num, num2) {
if (num ne num2) {
return(staticChange(num, num2));
}
return(randomChange(num));
}
function swap(fieldArray) {
swapArray = swapFieldsSet();
swapArray2 = swapFieldsSet();
swappedArray = new Array();
var _local2 = 0;
while (_local2 lt 9) {
swappedArray[_local2] = new Array();
_local2++;
}
_local2 = 0;
while (_local2 lt 9) {
if (_local2 eq 0) {
factor = 0;
}
if (_local2 eq 3) {
factor = 3;
}
if (_local2 eq 6) {
factor = 6;
}
var _local1 = 0;
while (_local1 lt 3) {
swappedArray[0 + (_local1 * 3)][_local2] = fieldArray[0 + (_local1 * 3)][swapArray[_local1][_local2] + factor];
swappedArray[1 + (_local1 * 3)][_local2] = fieldArray[1 + (_local1 * 3)][swapArray[_local1][_local2] + factor];
swappedArray[2 + (_local1 * 3)][_local2] = fieldArray[2 + (_local1 * 3)][swapArray[_local1][_local2] + factor];
_local1++;
}
_local2++;
}
_local2 = 0;
while (_local2 lt 9) {
if (_local2 eq 0) {
factor = 0;
}
if (_local2 eq 3) {
factor = 3;
}
if (_local2 eq 6) {
factor = 6;
}
var _local1 = 0;
while (_local1 lt 3) {
fieldArray[_local2][0 + (_local1 * 3)] = swappedArray[swapArray2[_local1][_local2] + factor][0 + (_local1 * 3)];
fieldArray[_local2][1 + (_local1 * 3)] = swappedArray[swapArray2[_local1][_local2] + factor][1 + (_local1 * 3)];
fieldArray[_local2][2 + (_local1 * 3)] = swappedArray[swapArray2[_local1][_local2] + factor][2 + (_local1 * 3)];
_local1++;
}
_local2++;
}
return(fieldArray);
}
stop();
main();
Symbol 10 MovieClip [printsoku] Frame 1
soku1.difi = 36;
soku2.difi = 36;
soku3.difi = 34;
soku4.difi = 34;
soku5.difi = 32;
soku6.difi = 32;
stop();
Symbol 11 MovieClip Frame 1
function randomChange(num) {
reCheck = random(2);
if ((num eq 0) && (reCheck eq 0)) {
return(1);
}
if ((num eq 0) && (reCheck eq 1)) {
return(2);
}
if ((num eq 1) && (reCheck eq 0)) {
return(0);
}
if ((num eq 1) && (reCheck eq 1)) {
return(2);
}
if ((num eq 2) && (reCheck eq 0)) {
return(0);
}
if ((num eq 2) && (reCheck eq 1)) {
return(1);
}
}
function showStaticNumbers(playFieldArray, hokjes, showAmount) {
if (showAmount == 32) {
maxFives = 1;
maxFours = 3;
maxThree = 5;
} else if (showAmount == 34) {
maxFives = 1;
maxFours = 5;
maxThree = 3;
} else if (showAmount == 36) {
maxFives = 3;
maxFours = 3;
maxThree = 3;
}
showAmountArray = new Array();
checkAmountArray = new Array();
var _local3 = 0;
while (_local3 lt 3) {
showAmountArray[_local3] = new Array();
checkAmountArray[_local3 + 3] = 0;
_local3++;
}
var _local2 = 0;
while (_local2 lt 3) {
var _local1 = 0;
while (_local1 lt 3) {
showNumber = random(3) + 3;
if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = random(2) + 3;
if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = 3;
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = 4;
}
} else if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = randomChange(1) + 3;
if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = 3;
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = 5;
}
} else if ((showNumber eq 3) && (checkAmountArray[3] eq maxThree)) {
showNumber = random(2) + 4;
if ((showNumber eq 4) && (checkAmountArray[4] eq maxFours)) {
showNumber = 5;
} else if ((showNumber eq 5) && (checkAmountArray[5] eq maxFives)) {
showNumber = 4;
}
}
checkAmountArray[showNumber]++;
showAmountArray[_local2][_local1] = showNumber;
_local1++;
}
_local2++;
}
return(showAmountArray);
}
function showHokjes(hokjesAmount, showAmount) {
if (showAmount == 32) {
maxFives = 1;
maxFours = 4;
} else if (showAmount == 34) {
maxFives = 1;
maxFours = 6;
} else if (showAmount == 36) {
maxFives = 3;
maxFours = 6;
}
fours = 0;
fives = 0;
sAmount = 0;
checkAmountArray = new Array();
truthTable = new Array();
posNum = new Array();
tempPosNum = new Array();
var _local4 = 0;
while (_local4 lt 9) {
truthTable[_local4] = new Array();
checkAmountArray[_local4 + 1] = 0;
posNum[_local4] = _local4 + 1;
_local4++;
}
_local4 = 0;
while (_local4 < 3) {
var _local3 = 0;
while (_local3 < 3) {
var _local5 = 0;
while (_local5 < posNum.length) {
tempPosNum[_local5] = posNum[_local5];
_local5++;
}
_local5 = 0;
while (_local5 < hokjesAmount[_local4][_local3]) {
if (fives == maxFives) {
var _local2 = 0;
while (_local2 < checkAmountArray.length) {
if (checkAmountArray[_local2] == 4) {
var _local1 = 0;
while (_local1 < posNum.length) {
if (posNum[_local1] == _local2) {
posNum.splice(_local1, 1);
}
_local1++;
}
_local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == _local2) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
}
_local2++;
}
}
if (fours == maxFours) {
var _local2 = 0;
while (_local2 < checkAmountArray.length) {
if (checkAmountArray[_local2] == 3) {
var _local1 = 0;
while (_local1 < posNum.length) {
if (posNum[_local1] == _local2) {
posNum.splice(_local1, 1);
}
_local1++;
}
_local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == _local2) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
}
_local2++;
}
}
found = false;
sCheck = 0;
lowestNumArray = new Array();
while (sCheck == 0) {
var _local2 = 0;
while (_local2 < tempPosNum.length) {
if (checkAmountArray[tempPosNum[_local2]] == sAmount) {
sCheck++;
lowestNumArray.push(tempPosNum[_local2]);
}
_local2++;
}
if (sCheck == 0) {
sAmount++;
}
}
rIndex = random(lowestNumArray.length);
rNum = lowestNumArray[rIndex];
if (rNum == undefined) {
trace(posNum);
}
var _local1 = 0;
while (_local1 < tempPosNum.length) {
if (tempPosNum[_local1] == rNum) {
tempPosNum.splice(_local1, 1);
}
_local1++;
}
checkAmountArray[rNum]++;
if (checkAmountArray[rNum] == 4) {
fours++;
} else if (checkAmountArray[rNum] == 5) {
fives++;
maxFours--;
fours--;
}
if (checkAmountArray[rNum] == 5) {
var _local2 = 0;
while (_local2 < posNum.length) {
if (posNum[_local2] == rNum) {
posNum.splice(_local2, 1);
}
_local2++;
}
}
var _local2 = _local4 * 3;
while (_local2 < ((_local4 * 3) + 3)) {
_local1 = _local3 * 3;
while (_local1 < ((_local3 * 3) + 3)) {
if (playfield[_local2][_local1] == rNum) {
truthTable[_local2][_local1] = true;
found = true;
break;
}
_local1++;
}
if (found) {
break;
}
_local2++;
}
_local5++;
}
_local3++;
}
_local4++;
}
return(truthTable);
}
function main() {
answer = 1;
_root.showAnswer.gotoAndStop(4);
reCreate = false;
timeCorrection = getTimer();
showAnswer.gotoAndStop(1);
answer = undefined;
answerString = undefined;
showAnswer.gotoAndStop(0);
createField();
createArrays();
genField();
showHokjesAmount = showStaticNumbers(playfield, hokjesArray, difi);
showMe = showHokjes(showHokjesAmount, difi);
var _local3 = 0;
while (_local3 lt 9) {
var _local2 = 0;
while (_local2 lt 9) {
if (showMe[_local3][_local2]) {
hokjesArray[_local3][_local2].bg.val = playfield[_local3][_local2];
hokjesArray[_local3][_local2].notclickable = true;
} else {
hokjesArray[_local3][_local2].bg.val = "";
hokjesArray[_local3][_local2].notclickable = true;
}
hokjesArray[_local3][_local2].x = _local3;
hokjesArray[_local3][_local2].y = _local2;
_local2++;
}
_local3++;
}
if (reCreate) {
main();
} else {
showAnswer.gotoAndStop(1);
}
}
function createField() {
fieldCreated = true;
hokjesArray = new Array();
hokjeIndex = 0;
fieldX = 0;
fieldY = 0;
placeAdjustX = 26;
placeAdjustY = 26;
var _local3 = 0;
while (_local3 lt 9) {
hokjesArray[_local3] = new Array();
var _local2 = 0;
while (_local2 lt 9) {
hokjeIndex++;
attachMovie("hokjeprint", "hokje" + hokjeIndex, 10 + hokjeIndex);
hokje = this["hokje" + hokjeIndex];
hokje._x = fieldX + (_local3 * placeAdjustX);
hokje._y = fieldY + (_local2 * placeAdjustY);
hokjesArray[_local3][_local2] = hokje;
if ((((_local2 - 3) lt 0) || ((_local2 - 3) gt 2)) && (((_local3 - 3) lt 0) || ((_local3 - 3) gt 2))) {
hokje.bg.gotoAndStop(2);
}
if (((((_local2 - 3) ge 0) && ((_local2 - 3) lt 3)) && ((_local3 - 3) ge 0)) && ((_local3 - 3) lt 3)) {
hokje.bg.gotoAndStop(3);
}
_local2++;
}
_local3++;
}
}
function createArrays() {
playfield = new Array();
tempFieldArray = new Array();
var _local2 = 0;
while (_local2 lt 9) {
tempFieldArray[_local2] = new Array();
playfield[_local2] = new Array();
var _local1 = 0;
while (_local1 lt 9) {
hokjesArray[_local2][_local1].val = undefined;
hokjesArray[_local2][_local1].valVar.selectable = true;
_local1++;
}
_local2++;
}
}
function genField() {
retryRow = 0;
var _local2 = 0;
while (_local2 < 9) {
var _local1 = 0;
while (_local1 < 9) {
playfield[_local1][_local2] = undefined;
playfield[_local1][_local2 + 1] = undefined;
numberArray = checkSpot(_local1, _local2);
if (numberArray.length == 0) {
if (retryRow > 40) {
reCreate = true;
break;
}
retryRow++;
_local2--;
_local1 = 0;
} else {
setNum = random(numberArray.length);
setNum = numberArray[setNum];
playfield[_local1][_local2] = setNum;
}
_local1++;
}
if (reCreate) {
break;
}
_local2++;
}
}
function checkSpot(u, v) {
checkArray = new Array();
var _local3 = 1;
while (_local3 <= 9) {
addMe = true;
var _local2 = 0;
while (_local2 < 9) {
if ((playfield[u][_local2] == _local3) || (playfield[_local2][v] == _local3)) {
addMe = false;
}
_local2++;
}
if (u > 0) {
factorX = Math.round((u - 1) / 3);
} else {
factorX = Math.round(u / 3);
}
if (v > 0) {
factorY = Math.round((v - 1) / 3);
} else {
factorY = Math.round(v / 3);
}
var _local4 = factorX * 3;
while (_local4 < ((factorX * 3) + 3)) {
var _local1 = factorY * 3;
while (_local1 < ((factorY * 3) + 3)) {
if (playfield[_local4][_local1] == _local3) {
addMe = false;
}
_local1++;
}
_local4++;
}
if (addMe) {
checkArray.push(_local3);
}
_local3++;
}
return(checkArray);
}
stop();
main();
Symbol 13 MovieClip [printsudoku] Frame 1
sudoku1.difi = 36;
sudoku2.difi = 36;
sudoku3.difi = 34;
sudoku4.difi = 34;
sudoku5.difi = 32;
sudoku6.difi = 32;
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 19 MovieClip Frame 3
stop();
Symbol 22 Button
on (rollOver, dragOver) {
_root.attachHokje(this._x, this._y, bg.val, x, y);
}
Symbol 23 MovieClip [hokje] Frame 1
if (notclickable) {
gotoAndStop ("steady2");
}
stop();
but.val = bg.val;
but.x = x;
but.y = y;
Symbol 23 MovieClip [hokje] Frame 2
stop();
Symbol 24 MovieClip [hokjeprint] Frame 1
if (notclickable) {
gotoAndStop ("steady2");
}
stop();
but.val = bg.val;
but.x = x;
but.y = y;
Symbol 24 MovieClip [hokjeprint] Frame 2
stop();
Symbol 26 Button
on (rollOut, dragOut) {
_root.clearHokje();
}
on (release) {
if (_root.myNumber == 0) {
id.bg.val = "";
_root.hokjesArray[i][k].bg.val = "";
} else {
id.bg.val = _root.myNumber;
_root.hokjesArray[i][k].bg.val = _root.myNumber;
}
}
Symbol 27 MovieClip [zoomhokje] Frame 1
stop();
but.id = id;
but.i = i;
but.k = k;
Symbol 34 Button
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 36 Button
on (press) {
getURL ("http://www.gamesforwebsites.com", "_blank");
}
Symbol 50 Button
on (release) {
goto = "play";
gotoAndPlay ("exitdiff");
}
Symbol 51 Button
on (release) {
goto = "play";
gotoAndPlay ("exitdiff");
}
Symbol 52 Button
on (release) {
goto = "play";
gotoAndPlay ("exitdiff");
}
Symbol 58 Button
on (release) {
_root.main();
}
Symbol 68 Button
on (release) {
if (_root.myNumber != 1) {
_root.myNumber = 1;
} else {
_root.myNumber = 0;
}
}
Symbol 69 Button
on (release) {
if (_root.myNumber != 3) {
_root.myNumber = 3;
} else {
_root.myNumber = 0;
}
}
Symbol 70 Button
on (release) {
if (_root.myNumber != 6) {
_root.myNumber = 6;
} else {
_root.myNumber = 0;
}
}
Symbol 71 Button
on (release) {
if (_root.myNumber != 4) {
_root.myNumber = 4;
} else {
_root.myNumber = 0;
}
}
Symbol 72 Button
on (release) {
if (_root.myNumber != 5) {
_root.myNumber = 5;
} else {
_root.myNumber = 0;
}
}
Symbol 73 Button
on (release) {
if (_root.myNumber != 9) {
_root.myNumber = 9;
} else {
_root.myNumber = 0;
}
}
Symbol 74 Button
on (release) {
if (_root.myNumber != 7) {
_root.myNumber = 7;
} else {
_root.myNumber = 0;
}
}
Symbol 75 Button
on (release) {
if (_root.myNumber != 8) {
_root.myNumber = 8;
} else {
_root.myNumber = 0;
}
}
Symbol 76 Button
on (release) {
if (_root.myNumber != 2) {
_root.myNumber = 2;
} else {
_root.myNumber = 0;
}
}
Symbol 87 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.myNumber + 1);
var _local2 = 1;
while (_local2 <= 9) {
if (Key.isDown(48 + _local2)) {
if (_root.timerAdjustment < getTimer()) {
_root.timerAdjustment = getTimer() + 700;
if (_root.myNumber != _local2) {
_root.myNumber = _local2;
} else {
_root.myNumber = 0;
}
}
}
_local2++;
}
};
stop();
Symbol 92 Button
on (release) {
_root.main();
_root.checkAnswer();
}
Symbol 93 Button
on (press) {
_root.retry();
}
Symbol 94 Button
on (release) {
_root.fieldCreated = false;
_root.clearAll();
play();
_root.gotoAndStop(2);
}
Symbol 97 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (!got) {
gotoAndPlay(_root.answer);
}
};
Symbol 97 MovieClip Frame 4
stop();
got = false;
Symbol 97 MovieClip Frame 5
got = true;
Symbol 97 MovieClip Frame 52
_root.answer = 1;
got = false;
gotoAndStop (1);
Symbol 98 Button
on (release) {
_root.checkAnswer();
}
Symbol 99 MovieClip Frame 1
Instance of Symbol 31 MovieClip in Symbol 99 MovieClip Frame 1
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 99 MovieClip Frame 25
stop();
Symbol 99 MovieClip Frame 48
gotoAndPlay(goto);
Symbol 99 MovieClip Frame 77
stop();
_root.gotoAndStop("sudoku");
Symbol 99 MovieClip Frame 97
gotoAndPlay (1);