Frame 133
stop();
Instance of Symbol 23 MovieClip in Frame 133
onClipEvent (load) {
now = new Date();
rightnow = now.getTime();
loadVariablesNum ("gamelogin.php?rightnow=" + rightnow, 0);
}
onClipEvent (enterFrame) {
if (0 < _root.login) {
_root.playgameclip._visible = true;
if (_root.login == 2) {
_root.welcome = ("<b>Welkom " + _root.myname) + " </b>!<br>";
}
}
}
Instance of Symbol 29 MovieClip "playgameclip" in Frame 133
onClipEvent (load) {
_visible = true;
}
Frame 134
function clickBlok(mynumber) {
if (_root.click1 == 0) {
_root.thisonegood = 0;
_root.click1 = mynumber;
_root.old1 = mynumber;
_root.click1type = _root.typelist[mynumber];
_root.old1type = _root.typelist[mynumber];
_root.selected._x = _root["blokje" + _root.click1]._x;
_root.selected._y = _root["blokje" + _root.click1]._y;
s = new Sound();
s.attachSound("clickone");
s.start();
} else if (_root.click2 == 0) {
_root.old2 = mynumber;
_root.click2 = mynumber;
_root.old2type = _root.typelist[mynumber];
_root.click2type = _root.typelist[mynumber];
_root.selected._x = -100;
_root.selected._y = -100;
if ((((_root.click1 == (_root.click2 + 1)) || (_root.click1 == (_root.click2 - 1))) || (_root.click1 == (_root.click2 + 10))) || (_root.click1 == (_root.click2 - 10))) {
_root["blokje" + _root.click2].gotoAndStop(_root.click1type);
_root["blokje" + _root.click1].gotoAndStop(_root.click2type);
_root.typelist[click2] = _root.click1type;
_root.typelist[click1] = _root.click2type;
}
_root.click1 = 0;
_root.click2 = 0;
_root.clickstop._visible = true;
_root.checkagain.gotoAndPlay(9);
}
}
function checkIt() {
testnumber = 1;
testtempnumber = 1;
aa = 1;
while (aa < 65) {
_root.maybedel = new Array();
_root.maybedelnumber = 1;
_root.maybedel[_root.maybedelnumber] = testnumber;
_root.maybedelver = new Array();
_root.maybedelvernumber = 1;
_root.maybedelver[_root.maybedelvernumber] = testnumber;
testtype = _root.typelist[testnumber];
if ((_root.typelist[testnumber - 1] == testtype) || (_root.typelist[testnumber + 1] == testtype)) {
bb = 1;
while (bb < 7) {
if ((((_root.typelist[testnumber - bb] == testtype) || (_root.typelist[testnumber - bb] == (testtype + 10))) || (_root.typelist[testnumber - bb] == (testtype - 10))) && (bb < 8)) {
_root.maybedelnumber++;
_root.maybedel[_root.maybedelnumber] = testnumber - bb;
} else {
bb = 8;
}
bb++;
}
bb = 1;
while (bb < 7) {
if ((((_root.typelist[testnumber + bb] == testtype) || (_root.typelist[testnumber + bb] == (testtype + 10))) || (_root.typelist[testnumber + bb] == (testtype - 10))) && (bb < 8)) {
_root.maybedelnumber++;
_root.maybedel[_root.maybedelnumber] = testnumber + bb;
} else {
bb = 8;
}
bb++;
}
if (2 < _root.maybedelnumber) {
_root.thisonegood = 1;
_root.foundaline = 1;
cc = 1;
while (cc < _root.maybedel.length) {
if (_root.typelist[_root.maybedel[cc]] < 10) {
_root["blokje" + _root.maybedel[cc]].gotoAndPlay(testtype * 10);
_root.typelist[_root.maybedel[cc]] = _root.typelist[_root.maybedel[cc]] + 10;
} else {
_root["blokje" + _root.maybedel[cc]].gotoAndPlay((testtype - 10) * 10);
}
cc++;
}
}
}
if ((_root.typelist[testnumber - 10] == testtype) || (_root.typelist[testnumber + 10] == testtype)) {
bb = 1;
while (bb < 7) {
if (((_root.typelist[testnumber - (bb * 10)] == testtype) || (_root.typelist[testnumber - (bb * 10)] == (testtype + 10))) || (_root.typelist[testnumber - (bb * 10)] == (testtype - 10))) {
_root.maybedelvernumber++;
_root.maybedelver[_root.maybedelvernumber] = testnumber - (bb * 10);
} else {
bb = 7;
}
bb++;
}
bb = 1;
while (bb < 7) {
if (((_root.typelist[testnumber + (bb * 10)] == testtype) || (_root.typelist[testnumber + (bb * 10)] == (testtype + 10))) || (_root.typelist[testnumber + (bb * 10)] == (testtype - 10))) {
_root.maybedelvernumber++;
_root.maybedelver[_root.maybedelvernumber] = testnumber + (bb * 10);
} else {
bb = 7;
}
bb++;
}
if (2 < _root.maybedelvernumber) {
_root.thisonegood = 1;
_root.foundaline = 1;
cc = 1;
while (cc < _root.maybedelver.length) {
if (_root.typelist[_root.maybedelver[cc]] < 10) {
_root["blokje" + _root.maybedelver[cc]].gotoAndPlay(testtype * 10);
_root.typelist[_root.maybedelver[cc]] = _root.typelist[_root.maybedelver[cc]] + 10;
} else {
_root["blokje" + _root.maybedelver[cc]].gotoAndPlay((testtype - 10) * 10);
}
cc++;
}
}
}
testtempnumber++;
testnumber++;
if (8 < testtempnumber) {
testnumber = testnumber + 2;
testtempnumber = 1;
}
aa++;
}
if (_root.foundaline == 1) {
_root.foundaline = 0;
_root.fallactions.play();
} else {
_root.bigscore = 0;
_root.turnscore = "";
_root.clickstop._visible = false;
_root.gameOver();
}
if (_root.thisonegood == 0) {
_root["blokje" + _root.old2].gotoAndStop(_root.old2type);
_root["blokje" + _root.old1].gotoAndStop(_root.old1type);
_root.typelist[old2] = _root.old2type;
_root.typelist[old1] = _root.old1type;
s = new Sound();
s.attachSound("badmove");
s.start();
}
}
function downBloks() {
_root.typelist[-9] = random(7) + 1;
_root.typelist[-8] = random(7) + 1;
_root.typelist[-7] = random(7) + 1;
_root.typelist[-6] = random(7) + 1;
_root.typelist[-5] = random(7) + 1;
_root.typelist[-4] = random(7) + 1;
_root.typelist[-3] = random(7) + 1;
_root.typelist[-2] = random(7) + 1;
_root.numberofzeros = 0;
dd = 80;
while (0 < dd) {
if ((10 < _root.typelist[dd]) || (_root.typelist[dd] == 0)) {
_root.typelist[dd] = 0;
_root.numberofzeros++;
}
dd--;
}
dd = 80;
while (0 < dd) {
if (_root.typelist[dd] == 0) {
_root["blokje" + dd].gotoAndPlay((_root.typelist[dd - 10] * 10) + 100);
_root.typelist[dd] = _root.typelist[dd - 10];
_root.typelist[dd - 10] = 0;
_root.fallagain = 1;
}
dd--;
}
_root.firstzerocheck++;
if (_root.firstzerocheck == 1) {
_root.addlowscore = Math.floor(_root.numberofzeros / 3);
_root.turnscore = (((_root.addlowscore * 10) + ((_root.addlowscore - 1) * 10)) + (((_root.numberofzeros / 3) - _root.addlowscore) * 30)) + _root.bigscore;
_root.score = _root.score + _root.turnscore;
_root.bonus = _root.bonus + _root.turnscore;
_root.bigscore = _root.bigscore + (_root.addlowscore * 10);
_root.bonusmeter._xscale = _root.bonus / 10;
_root.clickstop.play();
if (_root.turnscore == 10) {
s = new Sound();
s.attachSound("goodmove1");
s.start();
} else if (10 < _root.turnscore) {
s = new Sound();
s.attachSound("goodmove2");
s.start();
}
if (_root.bonus >= 1000) {
s = new Sound();
s.attachSound("bonussound");
s.start();
_root.bonustext1._x = 162;
_root.bonustext1.play();
_root.bonus = 0;
_root.bonusmeter._xscale = 0.001;
bn = 0;
while (bn < 8) {
bnrand = Math.round((Math.random() * 7) + 1);
randblok = (bn * 10) + bnrand;
_root.typelist[randblok] = 0;
_root.score = _root.score + 10;
bn++;
}
}
}
_root.typelist[-9] = 0;
_root.typelist[-8] = 0;
_root.typelist[-7] = 0;
_root.typelist[-6] = 0;
_root.typelist[-5] = 0;
_root.typelist[-4] = 0;
_root.typelist[-3] = 0;
_root.typelist[-2] = 0;
if (_root.fallagain == 1) {
_root.fallagain = 0;
_root.fallactions.gotoAndPlay(2);
} else {
_root.firstzerocheck = 0;
_root.checkagain.play();
}
}
function gameOver() {
_root.gameon = 0;
dd = 1;
ddtest = 1;
ee = 1;
while (ee < 65) {
gameontype = _root.typelist[dd];
if ((_root.typelist[dd + 20] == gameontype) && ((_root.typelist[dd + 9] == gameontype) || (_root.typelist[dd + 11] == gameontype))) {
_root.gameon = 1;
} else if ((_root.typelist[dd + 2] == gameontype) && ((_root.typelist[dd - 9] == gameontype) || (_root.typelist[dd + 11] == gameontype))) {
_root.gameon = 1;
} else if ((_root.typelist[dd - 10] == gameontype) && ((_root.typelist[dd - 19] == gameontype) || (_root.typelist[dd - 21] == gameontype))) {
_root.gameon = 1;
} else if ((_root.typelist[dd + 10] == gameontype) && ((_root.typelist[dd + 19] == gameontype) || (_root.typelist[dd + 21] == gameontype))) {
_root.gameon = 1;
} else if ((_root.typelist[dd + 1] == gameontype) && ((_root.typelist[dd - 8] == gameontype) || (_root.typelist[dd + 12] == gameontype))) {
_root.gameon = 1;
} else if ((_root.typelist[dd - 1] == gameontype) && ((_root.typelist[dd + 8] == gameontype) || (_root.typelist[dd - 12] == gameontype))) {
_root.gameon = 1;
} else if ((_root.typelist[dd - 10] == gameontype) && ((_root.typelist[dd - 30] == gameontype) || (_root.typelist[dd + 20] == gameontype))) {
_root.gameon = 1;
} else if ((_root.typelist[dd + 1] == gameontype) && ((_root.typelist[dd + 3] == gameontype) || (_root.typelist[dd - 2] == gameontype))) {
_root.gameon = 1;
}
dd++;
ddtest++;
if (8 < ddtest) {
ddtest = 1;
dd = dd + 2;
}
ee++;
}
if (_root.gameon == 0) {
_root.scorea = _root.score + "a";
scorelength = _root.scorea.length;
scorelength--;
a = 0;
while (a < scorelength) {
_root["scorenum" + a] = _root.scorea.substr(a, 1);
if (_root["scorenum" + a] == 0) {
_root["scorenum" + a] = "z";
} else if (_root["scorenum" + a] == 1) {
_root["scorenum" + a] = 7;
} else if (_root["scorenum" + a] == 2) {
_root["scorenum" + a] = 3;
} else if (_root["scorenum" + a] == 3) {
_root["scorenum" + a] = "p";
} else if (_root["scorenum" + a] == 4) {
_root["scorenum" + a] = "j";
} else if (_root["scorenum" + a] == 5) {
_root["scorenum" + a] = 5;
} else if (_root["scorenum" + a] == 6) {
_root["scorenum" + a] = 1;
} else if (_root["scorenum" + a] == 7) {
_root["scorenum" + a] = "t";
} else if (_root["scorenum" + a] == 8) {
_root["scorenum" + a] = "k";
} else if (_root["scorenum" + a] == 9) {
_root["scorenum" + a] = 6;
}
a++;
}
_root.scorecode = ("x" + random(9)) + random(9);
b = scorelength - 1;
while (b >= 0) {
_root.scorecode = _root.scorecode + _root["scorenum" + b];
b--;
}
now = new Date();
rightnow = now.getTime();
if ((_root.myname != "") && (_root.myname != null)) {
loadVariablesNum ((((("factoryscore.php?mynewscore=" + _root.score) + "&scorecode=") + _root.scorecode) + "&rightnow=") + rightnow, 0);
}
s = new Sound();
s.attachSound("buzzover");
s.start();
_root.gameover1._x = 162;
_root.gameover1._y = 162;
}
}
foundaline = 0;
thisonegood = 0;
_root.firstzerocheck = 0;
evenoneven = 1;
typelist = new Array();
score = 0;
bonus = 0;
bigscore = 0;
old1 = 0;
old2 = 0;
click1 = 0;
click2 = 0;
xpos = 36;
ypos = 36;
bloknumber = 1;
a = 1;
while (a < 65) {
bloktype = random(7) + 1;
_root.blokje.duplicateMovieClip("blokje" + bloknumber, a);
_root["blokje" + bloknumber]._x = xpos;
_root["blokje" + bloknumber]._y = ypos;
_root["blokje" + bloknumber].gotoAndStop(bloktype);
_root.typelist[bloknumber] = bloktype;
xpos = xpos + 36;
if (288 < xpos) {
xpos = 36;
ypos = ypos + 36;
bloknumber = bloknumber + 3;
} else {
bloknumber++;
}
a++;
}
stop();
Instance of Symbol 121 MovieClip "selected0" in Frame 134
onClipEvent (load) {
if (this._name == "selected0") {
this.duplicateMovieClip("selected", 999);
}
}
Instance of Symbol 135 MovieClip in Frame 134
onClipEvent (enterFrame) {
_root.typelista = _root.typelist;
count++;
if (count == 3) {
_root.checkIt();
}
}
onClipEvent (load) {
count = 0;
}
Instance of Symbol 142 MovieClip "clickstop0" in Frame 134
onClipEvent (load) {
if (this._name == "clickstop0") {
this.duplicateMovieClip("clickstop", 1000);
_root.clickstop._x = 162;
_root.clickstop._y = 162;
}
this._visible = false;
}
Instance of Symbol 156 MovieClip "gameover0" in Frame 134
onClipEvent (load) {
if (this._name == "gameover0") {
this.duplicateMovieClip("gameover1", 1001);
}
}
Instance of Symbol 163 MovieClip "helpscreen0" in Frame 134
onClipEvent (load) {
if (this._name == "helpscreen0") {
this.duplicateMovieClip("helpscreen1", 1005);
}
}
Instance of Symbol 169 MovieClip "bonusmeter" in Frame 134
onClipEvent (load) {
this._xscale = 0.001;
}
Instance of Symbol 175 MovieClip "bonustext0" in Frame 134
onClipEvent (load) {
if (this._name == "bonustext0") {
this.duplicateMovieClip("bonustext1", 1003);
}
}
Frame 135
gotoAndStop (136);
Frame 136
gotoAndPlay (133);
Symbol 14 Button
on (release) {
getURL ("http://www.spele.nl");
}
Symbol 17 Button
on (release) {
getURL ("http://www.spele.nl", "_blank");
}
Symbol 28 Button
on (release) {
_root.gotoAndStop("thegame");
}
Symbol 33 Button
on (release) {
_root.clickBlok(1);
}
Symbol 34 Button
on (release) {
_root.clickBlok(2);
}
Symbol 35 Button
on (release) {
_root.clickBlok(3);
}
Symbol 36 Button
on (release) {
_root.clickBlok(4);
}
Symbol 37 Button
on (release) {
_root.clickBlok(5);
}
Symbol 38 Button
on (release) {
_root.clickBlok(6);
}
Symbol 39 Button
on (release) {
_root.clickBlok(7);
}
Symbol 40 Button
on (release) {
_root.clickBlok(8);
}
Symbol 41 Button
on (release) {
_root.clickBlok(11);
}
Symbol 42 Button
on (release) {
_root.clickBlok(12);
}
Symbol 43 Button
on (release) {
_root.clickBlok(13);
}
Symbol 44 Button
on (release) {
_root.clickBlok(14);
}
Symbol 45 Button
on (release) {
_root.clickBlok(15);
}
Symbol 46 Button
on (release) {
_root.clickBlok(16);
}
Symbol 47 Button
on (release) {
_root.clickBlok(17);
}
Symbol 48 Button
on (release) {
_root.clickBlok(18);
}
Symbol 49 Button
on (release) {
_root.clickBlok(21);
}
Symbol 50 Button
on (release) {
_root.clickBlok(22);
}
Symbol 51 Button
on (release) {
_root.clickBlok(23);
}
Symbol 52 Button
on (release) {
_root.clickBlok(24);
}
Symbol 53 Button
on (release) {
_root.clickBlok(25);
}
Symbol 54 Button
on (release) {
_root.clickBlok(26);
}
Symbol 55 Button
on (release) {
_root.clickBlok(27);
}
Symbol 56 Button
on (release) {
_root.clickBlok(28);
}
Symbol 57 Button
on (release) {
_root.clickBlok(31);
}
Symbol 58 Button
on (release) {
_root.clickBlok(32);
}
Symbol 59 Button
on (release) {
_root.clickBlok(33);
}
Symbol 60 Button
on (release) {
_root.clickBlok(34);
}
Symbol 61 Button
on (release) {
_root.clickBlok(35);
}
Symbol 62 Button
on (release) {
_root.clickBlok(36);
}
Symbol 63 Button
on (release) {
_root.clickBlok(37);
}
Symbol 64 Button
on (release) {
_root.clickBlok(38);
}
Symbol 65 Button
on (release) {
_root.clickBlok(41);
}
Symbol 66 Button
on (release) {
_root.clickBlok(42);
}
Symbol 67 Button
on (release) {
_root.clickBlok(43);
}
Symbol 68 Button
on (release) {
_root.clickBlok(44);
}
Symbol 69 Button
on (release) {
_root.clickBlok(45);
}
Symbol 70 Button
on (release) {
_root.clickBlok(46);
}
Symbol 71 Button
on (release) {
_root.clickBlok(47);
}
Symbol 72 Button
on (release) {
_root.clickBlok(48);
}
Symbol 73 Button
on (release) {
_root.clickBlok(51);
}
Symbol 74 Button
on (release) {
_root.clickBlok(52);
}
Symbol 75 Button
on (release) {
_root.clickBlok(53);
}
Symbol 76 Button
on (release) {
_root.clickBlok(54);
}
Symbol 77 Button
on (release) {
_root.clickBlok(55);
}
Symbol 78 Button
on (release) {
_root.clickBlok(56);
}
Symbol 79 Button
on (release) {
_root.clickBlok(57);
}
Symbol 80 Button
on (release) {
_root.clickBlok(58);
}
Symbol 81 Button
on (release) {
_root.clickBlok(61);
}
Symbol 82 Button
on (release) {
_root.clickBlok(62);
}
Symbol 83 Button
on (release) {
_root.clickBlok(63);
}
Symbol 84 Button
on (release) {
_root.clickBlok(64);
}
Symbol 85 Button
on (release) {
_root.clickBlok(65);
}
Symbol 86 Button
on (release) {
_root.clickBlok(66);
}
Symbol 87 Button
on (release) {
_root.clickBlok(67);
}
Symbol 88 Button
on (release) {
_root.clickBlok(68);
}
Symbol 89 Button
on (release) {
_root.clickBlok(71);
}
Symbol 90 Button
on (release) {
_root.clickBlok(72);
}
Symbol 91 Button
on (release) {
_root.clickBlok(73);
}
Symbol 92 Button
on (release) {
_root.clickBlok(74);
}
Symbol 93 Button
on (release) {
_root.clickBlok(75);
}
Symbol 94 Button
on (release) {
_root.clickBlok(76);
}
Symbol 95 Button
on (release) {
_root.clickBlok(77);
}
Symbol 96 Button
on (release) {
_root.clickBlok(78);
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 9
stop();
Symbol 118 MovieClip Frame 19
stop();
Symbol 118 MovieClip Frame 29
stop();
Symbol 118 MovieClip Frame 39
stop();
Symbol 118 MovieClip Frame 49
stop();
Symbol 118 MovieClip Frame 59
stop();
Symbol 118 MovieClip Frame 69
stop();
Symbol 118 MovieClip Frame 79
stop();
Symbol 118 MovieClip Frame 100
stop();
Symbol 118 MovieClip Frame 109
stop();
Symbol 118 MovieClip Frame 119
gotoAndStop (1);
Symbol 118 MovieClip Frame 129
gotoAndStop (2);
Symbol 118 MovieClip Frame 139
gotoAndStop (3);
Symbol 118 MovieClip Frame 149
gotoAndStop (4);
Symbol 118 MovieClip Frame 159
gotoAndStop (5);
Symbol 118 MovieClip Frame 169
gotoAndStop (6);
Symbol 118 MovieClip Frame 179
gotoAndStop (7);
Symbol 118 MovieClip Frame 190
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 10
_root.downBloks();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 10
_root.checkIt();
Symbol 142 MovieClip Frame 1
stop();
Symbol 150 Button
on (release) {
_root.gameover1._x = -300;
bloknumber = 1;
xpos = 24;
a = 1;
while (a < 65) {
_root["blokje" + bloknumber].removeMovieClip();
xpos = xpos + 24;
if (192 < xpos) {
xpos = 24;
ypos = ypos + 24;
bloknumber = bloknumber + 3;
} else {
bloknumber++;
}
a++;
}
_root.gotoAndPlay("gameover");
}
Symbol 155 Button
on (release) {
getURL ("factorytop10.php");
}
Symbol 162 Button
on (release) {
_root.helpscreen1._x = -400;
}
Symbol 167 Button
on (release) {
_root.helpscreen1._x = 162;
_root.helpscreen1._y = 162;
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 16
_root.bonustext1._x = -300;