Frame 1
_root.txtPerc = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Frame 2
_global.spelKeuze = 1;
_root.txtPerc = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndPlay (1);
}
Frame 8
stop();
Instance of Symbol 51 MovieClip in Frame 8
onClipEvent (load) {
_name = "radioBox2";
checked = "false";
label = "Six Love";
style = "Auto";
}
Instance of Symbol 52 MovieClip in Frame 8
onClipEvent (load) {
_name = "radioBox1";
checked = "true";
label = "Straight Six";
style = "Auto";
}
Frame 9
function initVars() {
_root.eersteRonde = true;
_root.Nteller = 1;
_root.Zteller = 1;
teSpelenKant1 = 6;
teSpelenKant2 = 6;
i = 0;
while (i < 7) {
aantGesp[i] = 0;
gepastSpeler1[i] = 0;
gepastSpeler2[i] = 0;
gepastSpeler3[i] = 0;
gepastSpeler4[i] = 0;
stenenSpeler1[i] = "";
stenenSpeler2[i] = "";
stenenSpeler3[i] = "";
stenenSpeler4[i] = "";
i++;
}
_root.arrStenenLabels[0] = "0-0";
_root.arrStenenLabels[1] = "0-1";
_root.arrStenenLabels[2] = "0-2";
_root.arrStenenLabels[3] = "0-3";
_root.arrStenenLabels[4] = "0-4";
_root.arrStenenLabels[5] = "0-5";
_root.arrStenenLabels[6] = "0-6";
_root.arrStenenLabels[7] = "1-1";
_root.arrStenenLabels[8] = "1-2";
_root.arrStenenLabels[9] = "1-3";
_root.arrStenenLabels[10] = "1-4";
_root.arrStenenLabels[11] = "1-5";
_root.arrStenenLabels[12] = "1-6";
_root.arrStenenLabels[13] = "2-2";
_root.arrStenenLabels[14] = "2-3";
_root.arrStenenLabels[15] = "2-4";
_root.arrStenenLabels[16] = "2-5";
_root.arrStenenLabels[17] = "2-6";
_root.arrStenenLabels[18] = "3-3";
_root.arrStenenLabels[19] = "3-4";
_root.arrStenenLabels[20] = "3-5";
_root.arrStenenLabels[21] = "3-6";
_root.arrStenenLabels[22] = "4-4";
_root.arrStenenLabels[23] = "4-5";
_root.arrStenenLabels[24] = "4-6";
_root.arrStenenLabels[25] = "5-5";
_root.arrStenenLabels[26] = "5-6";
_root.arrStenenLabels[27] = "6-6";
_root.arrStenen[0] = "4";
_root.arrStenen[1] = "5";
_root.arrStenen[2] = "6";
_root.arrStenen[3] = "7";
_root.arrStenen[4] = "8";
_root.arrStenen[5] = "9";
_root.arrStenen[6] = "10";
_root.arrStenen[7] = "12";
_root.arrStenen[8] = "13";
_root.arrStenen[9] = "14";
_root.arrStenen[10] = "15";
_root.arrStenen[11] = "16";
_root.arrStenen[12] = "17";
_root.arrStenen[13] = "20";
_root.arrStenen[14] = "21";
_root.arrStenen[15] = "22";
_root.arrStenen[16] = "23";
_root.arrStenen[17] = "24";
_root.arrStenen[18] = "28";
_root.arrStenen[19] = "29";
_root.arrStenen[20] = "30";
_root.arrStenen[21] = "31";
_root.arrStenen[22] = "36";
_root.arrStenen[23] = "37";
_root.arrStenen[24] = "38";
_root.arrStenen[25] = "44";
_root.arrStenen[26] = "45";
_root.arrStenen[27] = "52";
i = 1;
while (i < 28) {
eval ("_root.N" + i).gotoAndStop("onzichtbaar");
eval ("_root.Z" + i).gotoAndStop("onzichtbaar");
i++;
}
_root.M1.gotoAndStop("onzichtbaar");
setProperty("_root.p1-1", _x , 166.6);
setProperty("_root.p1-2", _x , 192.6);
setProperty("_root.p1-3", _x , 217.6);
setProperty("_root.p1-4", _x , 244.6);
setProperty("_root.p1-5", _x , 270.6);
setProperty("_root.p1-6", _x , 296.6);
setProperty("_root.p1-7", _x , 321.6);
setProperty("_root.b1", _x , 188.8);
setProperty("_root.b2", _x , 214.9);
setProperty("_root.b3", _x , 240.1);
setProperty("_root.b4", _x , 266.8);
setProperty("_root.b5", _x , 292.9);
setProperty("_root.b6", _x , 318.9);
setProperty("_root.b7", _x , 343.9);
var z = 1;
while (z < 8) {
setProperty("_root.p1-" + z, _y , 387.6);
setProperty("_root.b" + z, _y , 426.3);
z++;
}
_root.zetButtonsUit();
tellTarget (_root.passHuman) {
gotoAndStop (1);
};
tellTarget (_root.pass2) {
gotoAndStop ("uit");
};
tellTarget (_root.pass3) {
gotoAndStop ("uit");
};
tellTarget (_root.pass4) {
gotoAndStop ("uit");
};
}
if (spelKeuze == 1) {
_root.txtStyle = "Game style: Straight six";
} else {
_root.txtStyle = "Game style: Six love";
}
myDate = new Date();
spelerAanDeBeurt = 2;
aantGesp = new Array(0, 0, 0, 0, 0, 0, 0);
gepastSpeler1 = new Array(0, 0, 0, 0, 0, 0, 0);
gepastSpeler2 = new Array(0, 0, 0, 0, 0, 0, 0);
gepastSpeler3 = new Array(0, 0, 0, 0, 0, 0, 0);
gepastSpeler4 = new Array(0, 0, 0, 0, 0, 0, 0);
teSpelenKant1 = 6;
teSpelenKant2 = 6;
arrPosities = new Array(0, 0, 0, 0, 4, 11, 18, 25, 32, 39, 46, 5, 12, 19, 26, 33, 40, 47, 6, 13, 20, 27, 34, 41, 48, 7, 14, 21, 28, 35, 42, 49, 8, 15, 22, 29, 36, 43, 50, 9, 16, 23, 30, 37, 44, 51, 10, 17, 24, 31, 38, 45, 52);
arrLab = new Array("000", "000", "000", "000", "0-0", "0-1", "0-2", "0-3", "0-4", "0-5", "0-6", "1-0", "1-1", "1-2", "1-3", "1-4", "1-5", "1-6", "2-0", "2-1", "2-2", "2-3", "2-4", "2-5", "2-6", "3-0", "3-1", "3-2", "3-3", "3-4", "3-5", "3-6", "4-0", "4-1", "4-2", "4-3", "4-4", "4-5", "4-6", "5-0", "5-1", "5-2", "5-3", "5-4", "5-5", "5-6", "6-0", "6-1", "6-2", "6-3", "6-4", "6-5", "6-6");
stenenSpeler1 = new Array("", "", "", "", "", "", "");
stenenSpeler2 = new Array("", "", "", "", "", "", "");
stenenSpeler3 = new Array("", "", "", "", "", "", "");
stenenSpeler4 = new Array("", "", "", "", "", "", "");
function getRandomStone() {
RandNo = random(arrStenen.length);
_root.currStone = arrStenen[RandNo];
}
function hoeveelHebJeNog(nummer) {
var aantalGevonden = 0;
z = 0;
while (z < 7) {
if (eval ("_root.stenenSpeler" + nummer)[z] != "") {
aantalGevonden++;
}
z++;
}
return(aantalGevonden);
}
function deWinnerIs(nummer) {
if (_root.spelBezig) {
if (spelKeuze == 1) {
var c = 1;
while (c < 5) {
if (c == nummer) {
Set("_root.txtWins" + nummer, Number(eval ("_root.txtWins" + nummer)) + 1);
}
c++;
}
} else {
if ((((_root.txtWins1 == 0) && (_root.txtWins2 == 0)) && (_root.txtWins3 == 0)) && (_root.txtWins4 == 0)) {
var verhoging = 1;
} else if (0 < eval ("_root.txtWins" + _root.spelerAanDeBeurt)) {
var verhoging = 1;
} else if (_root.eersteRonde) {
var verhoging = 0;
_root.eersteRonde = false;
} else {
var verhoging = 2;
_root.eersteRonde = true;
}
var c = 1;
while (c < 5) {
if (c == nummer) {
Set("_root.txtWins" + nummer, Number(eval ("_root.txtWins" + nummer)) + verhoging);
} else {
Set("_root.txtWins" + c, 0);
}
c++;
}
}
}
_root.spelBezig = false;
_root.Speler1.gotoAndStop(1);
_root.Speler2.gotoAndStop(1);
_root.Speler3.gotoAndStop(1);
_root.Speler4.gotoAndStop(1);
_root.zetButtonsUit();
_root.winnaar.gotoAndPlay(2);
stop();
}
function init() {
_root.spelBezig = true;
i = 0;
while (i < 28) {
getRandomStone();
if (i < 7) {
tellTarget ("_root." + arrSpelerStenen[i]) {
gotoAndStop(_root.currStone);
};
} else {
tellTarget ("_root." + arrSpelerStenen[i]) {
gotoAndStop ("achterkant");
};
}
if (i < 7) {
_root.stenenSpeler1[i] = ("\"" + arrStenenLabels[RandNo]) + "\"";
}
if ((6 < i) && (i < 14)) {
_root.stenenSpeler2[i - 7] = ("\"" + arrStenenLabels[RandNo]) + "\"";
}
if ((13 < i) && (i < 21)) {
_root.stenenSpeler3[i - 14] = ("\"" + arrStenenLabels[RandNo]) + "\"";
}
if (20 < i) {
_root.stenenSpeler4[i - 21] = ("\"" + arrStenenLabels[RandNo]) + "\"";
}
arrStenen.splice(RandNo, 1);
arrStenenLabels.splice(RandNo, 1);
i++;
}
if ((((_root.txtWins1 == 0) && (_root.txtWins2 == 0)) && (_root.txtWins3 == 0)) && (_root.txtWins4 == 0)) {
_root.playersTurn.gotoAndPlay("player1");
} else {
if (_root.spelerAanDeBeurt == 1) {
_root.spelerAanDeBeurt = 4;
} else {
_root.spelerAanDeBeurt = parseInt(_root.spelerAanDeBeurt) - 1;
}
_root.gaVerder();
}
}
function kanErNogIemand() {
var i = 1;
while (i < 5) {
var j = 0;
while (j < 7) {
if ((((eval ("_root.stenenSpeler" + i)[j].charAt(1) == _root.teSpelenKant1) || (eval ("_root.stenenSpeler" + i)[j].charAt(1) == _root.teSpelenKant2)) || (eval ("_root.stenenSpeler" + i)[j].charAt(3) == _root.teSpelenKant1)) || (eval ("_root.stenenSpeler" + i)[j].charAt(3) == _root.teSpelenKant2)) {
return(true);
}
j++;
}
i++;
}
return(false);
}
function aantalOgen(nummer) {
var ogen = 0;
var i = 0;
while (i < 7) {
if (eval ("_root.stenenSpeler" + nummer)[i] != "") {
ogen = ogen + Number(eval ("_root.stenenSpeler" + nummer)[i].charAt(1));
ogen = ogen + Number(eval ("_root.stenenSpeler" + nummer)[i].charAt(3));
var x = (i + 1);
if (nummer != 1) {
tellTarget ((("_root.p" + nummer) + "-") + x) {
var deSteen = eval ("_root.stenenSpeler" + nummer);
gotoAndStop(_root.label2positie(0, deSteen[i]));
};
}
}
i++;
}
return(ogen);
}
function gelijkSpel() {
_root.Speler1.gotoAndStop(1);
_root.Speler2.gotoAndStop(1);
_root.Speler3.gotoAndStop(1);
_root.Speler4.gotoAndStop(1);
var ogen1 = aantalOgen(1);
var ogen2 = aantalOgen(2);
var ogen3 = aantalOgen(3);
var ogen4 = aantalOgen(4);
var laagsteOgen = Math.min(Math.min(ogen1, ogen2), Math.min(ogen3, ogen4));
var k = 1;
while (k < 5) {
if (eval ("ogen" + k) == laagsteOgen) {
_root.spelerAanDeBeurt = k;
_root.deWinnerIs(k);
return(0);
}
k++;
}
}
function NextPlayer() {
if (!kanErNogIemand()) {
gelijkSpel();
return(0);
}
if (_root.spelerAanDeBeurt == 4) {
_root.spelerAanDeBeurt = 1;
} else {
_root.spelerAanDeBeurt++;
}
x = 1;
while (x < 5) {
tellTarget (eval ("_root.IsPlayer" + x)) {
gotoAndStop ("uit");
};
X++;
}
tellTarget (eval ("_root.IsPlayer" + _root.spelerAanDeBeurt)) {
gotoAndStop ("aan");
};
}
function zetButtonsUit() {
y = 1;
while (y < 8) {
tellTarget ("_root.b" + y) {
gotoAndStop (1);
};
y++;
}
}
function zetButtonsAan() {
zetButtonsUit();
y = 1;
while (y < 8) {
if ((((_root.stenenSpeler1[y - 1].charAt(1) == _root.teSpelenKant1) || (_root.stenenSpeler1[y - 1].charAt(3) == _root.teSpelenKant1)) || (_root.stenenSpeler1[y - 1].charAt(1) == _root.teSpelenKant2)) || (_root.stenenSpeler1[y - 1].charAt(3) == _root.teSpelenKant2)) {
tellTarget ("_root.b" + y) {
gotoAndStop ("aan");
};
}
if (_root.M1._currentframe == 1) {
eval ("_root.b" + y).gotoAndStop("aan");
}
y++;
}
if (((((((_root.b1._currentframe == 1) && (_root.b2._currentframe == 1)) && (_root.b3._currentframe == 1)) && (_root.b4._currentframe == 1)) && (_root.b5._currentframe == 1)) && (_root.b6._currentframe == 1)) && (_root.b7._currentframe == 1)) {
tellTarget (_root.passHuman) {
gotoAndStop (2);
};
gepastSpeler1[_root.teSpelenKant1] = 1;
gepastSpeler1[_root.teSpelenKant2] = 1;
}
}
function doeEenZet(nummer) {
i = 1;
while (i < 8) {
if (eval ("_root.stenenSpeler" + nummer)[i - 1] == "\"6-6\"") {
_root.thinking.gotoAndStop(1);
_root.spelerAanDeBeurt = nummer;
tellTarget ((("_root.p" + nummer) + "-") + i) {
gotoAndStop ("onzichtbaar");
};
eval ("_root.stenenSpeler" + nummer)[i - 1] = "";
tellTarget (_root.M1) {
gotoAndStop (52);
};
_root.aantGesp[6]++;
NextPlayer();
}
i++;
}
}
function vervolgZet() {
tellTarget ("_root.Speler" + _root.spelerAanDeBeurt) {
gotoAndPlay (2);
};
}
function label2positie(alt, lbl) {
var labl = lbl.substr(1, 3);
h = 0;
while (h < _root.arrLab.length) {
if (_root.arrLab[h] == labl) {
if (alt == 0) {
return(h);
}
return(_root.arrPosities[h]);
}
h++;
}
return("xxx");
}
function positie2label(steen) {
var pos = steen._currentframe;
h = 0;
while (h < _root.arrPosities.length) {
if (_root.arrPosities[h] == pos) {
return(_root.arrLab[h]);
}
h++;
}
return("xxx");
}
function gaVerder() {
_root.NextPlayer();
tellTarget ("_root.Speler" + _root.spelerAanDeBeurt) {
gotoAndPlay (2);
};
}
function isEven(x) {
return(1 - (x % 2));
}
function doeJeZet(nummer) {
tellTarget (_root.pass2) {
gotoAndStop ("uit");
};
tellTarget (_root.pass3) {
gotoAndStop ("uit");
};
tellTarget (_root.pass4) {
gotoAndStop ("uit");
};
if (_root.M1._currentframe == 1) {
var q = (random(6) + 1);
var bovenKant = eval ("_root.stenenSpeler" + nummer)[q - 1].charAt(1);
var onderKant = eval ("_root.stenenSpeler" + nummer)[q - 1].charAt(3);
var frNum = label2positie(1, eval ("_root.stenenSpeler" + nummer)[q - 1]);
_root.myDate = new Date();
_root.geluid.gotoAndPlay(((isEven(_root.myDate.getSeconds()) == 0) ? 1 : 7));
_root.M1.gotoAndStop(frNum);
teSpelenKant1 = bovenKant;
teSpelenKant2 = onderKant;
aantGesp[onderKant]++;
if (onderKant != bovenKant) {
aantGesp[bovenKant]++;
}
tellTarget ((("p" + nummer) + "-") + q) {
gotoAndStop ("onzichtbaar");
};
eval ("_root.stenenSpeler" + nummer)[q - 1] = "";
if (hoeveelHebJeNog(nummer) == 0) {
deWinnerIs(nummer);
return(1);
}
gaVerder();
return(0);
}
i = 1;
while (i < 8) {
var bovenKant = eval ("_root.stenenSpeler" + nummer)[i - 1].charAt(1);
var onderKant = eval ("_root.stenenSpeler" + nummer)[i - 1].charAt(3);
if ((((bovenKant == teSpelenKant1) || (onderKant == teSpelenKant1)) || (bovenKant == teSpelenKant2)) || (onderKant == teSpelenKant2)) {
if (bovenKant == teSpelenKant1) {
var frNum = label2positie(1, eval ("_root.stenenSpeler" + nummer)[i - 1]);
_root.myDate = new Date();
_root.geluid.gotoAndPlay(((isEven(_root.myDate.getSeconds()) == 0) ? 1 : 7));
tellTarget ("_root.N" + (Nteller++)) {
gotoAndStop(frNum);
};
teSpelenKant1 = onderKant;
aantGesp[onderKant]++;
if (onderKant != bovenKant) {
aantGesp[bovenKant]++;
}
tellTarget ((("p" + nummer) + "-") + i) {
gotoAndStop ("onzichtbaar");
};
eval ("_root.stenenSpeler" + nummer)[i - 1] = "";
if (hoeveelHebJeNog(nummer) == 0) {
deWinnerIs(nummer);
return(1);
}
gaVerder();
return(0);
}
if (bovenKant == teSpelenKant2) {
var frNum = label2positie(1, eval ("_root.stenenSpeler" + nummer)[i - 1]);
_root.myDate = new Date();
_root.geluid.gotoAndPlay(((isEven(_root.myDate.getSeconds()) == 0) ? 1 : 7));
tellTarget ("_root.Z" + (Zteller++)) {
gotoAndStop(frNum);
};
teSpelenKant2 = onderKant;
aantGesp[onderKant]++;
if (onderKant != bovenKant) {
aantGesp[bovenKant]++;
}
tellTarget ((("p" + nummer) + "-") + i) {
gotoAndStop ("onzichtbaar");
};
eval ("_root.stenenSpeler" + nummer)[i - 1] = "";
if (hoeveelHebJeNog(nummer) == 0) {
deWinnerIs(nummer);
return(1);
}
gaVerder();
return(0);
}
if (onderKant == teSpelenKant1) {
var frNum = label2positie(0, eval ("_root.stenenSpeler" + nummer)[i - 1]);
_root.myDate = new Date();
_root.geluid.gotoAndPlay(((isEven(_root.myDate.getSeconds()) == 0) ? 1 : 7));
tellTarget ("_root.N" + (Nteller++)) {
gotoAndStop(frNum);
};
teSpelenKant1 = bovenKant;
aantGesp[onderKant]++;
if (onderKant != bovenKant) {
aantGesp[bovenKant]++;
}
tellTarget ((("p" + nummer) + "-") + i) {
gotoAndStop ("onzichtbaar");
};
eval ("_root.stenenSpeler" + nummer)[i - 1] = "";
if (hoeveelHebJeNog(nummer) == 0) {
deWinnerIs(nummer);
return(1);
}
gaVerder();
return(0);
}
if (onderKant == teSpelenKant2) {
var frNum = label2positie(0, eval ("_root.stenenSpeler" + nummer)[i - 1]);
_root.myDate = new Date();
_root.geluid.gotoAndPlay(((isEven(myDate.getSeconds()) == 0) ? 1 : 7));
tellTarget ("_root.Z" + (Zteller++)) {
gotoAndStop(frNum);
};
teSpelenKant2 = bovenKant;
aantGesp[onderKant]++;
if (onderKant != bovenKant) {
aantGesp[bovenKant]++;
}
tellTarget ((("p" + nummer) + "-") + i) {
gotoAndStop ("onzichtbaar");
};
eval ("_root.stenenSpeler" + nummer)[i - 1] = "";
if (hoeveelHebJeNog(nummer) == 0) {
deWinnerIs(nummer);
return(1);
}
gaVerder();
return(0);
}
return(0);
}
i++;
}
tellTarget ("_root.pass" + nummer) {
gotoAndStop ("aan");
};
eval ("gepastSpeler" + nummer)[_root.teSpelenKant1] = 1;
eval ("gepastSpeler" + nummer)[_root.teSpelenKant2] = 1;
gaVerder();
}
function geefDoorNaar2() {
zetButtonsUit();
if (_root.hoeveelHebJeNog(1) == 0) {
deWinnerIs(1);
return(1);
}
_root.nextPlayer();
tellTarget (_root.Speler2) {
gotoAndPlay (2);
};
}
function buttonKlik(thisB) {
if (((substring(thisB._name, 8, 1)) == "N") || ((substring(thisB._name, 0, 1)) == "N")) {
if ((_root.teSpelenKant1 == _root.arrLab[_root.currStone].substr(0, 1)) || (_root.teSpelenKant1 == _root.arrLab[_root.currStone].substr(2, 1))) {
_root.Nteller = parseInt(_root.Nteller) + 1;
_root.geluid.gotoAndPlay(7);
} else {
return(9);
}
}
if (((substring(thisB._name, 8, 1)) == "Z") || ((substring(thisB._name, 0, 1)) == "Z")) {
if ((_root.teSpelenKant2 == _root.arrLab[_root.currStone].substr(0, 1)) || (_root.teSpelenKant2 == _root.arrLab[_root.currStone].substr(2, 1))) {
_root.Zteller = parseInt(_root.Zteller) + 1;
_root.geluid.gotoAndPlay(7);
} else {
return(9);
}
}
if (((substring(thisB._name, 8, 1)) == "M") || ((substring(thisB._name, 0, 1)) == "M")) {
_root.geluid.gotoAndPlay(7);
}
tellTarget ("_root.N" + _root.Nteller) {
gotoAndStop ("onzichtbaar");
};
tellTarget ("_root.Z" + _root.Zteller) {
gotoAndStop ("onzichtbaar");
};
if (((substring(thisB._name, 8, 1)) == "M") || ((substring(thisB._name, 0, 1)) == "M")) {
_root.teSpelenKant2 = _root.arrLab[_root.currStone].substr(2, 1);
_root.teSpelenKant1 = _root.arrLab[_root.currStone].substr(0, 1);
_root.aantGesp[_root.arrLab[_root.currStone].substr(0, 1)]++;
if (_root.arrLab[_root.currStone].substr(0, 1) != _root.arrLab[_root.currStone].substr(2, 1)) {
_root.aantGesp[_root.arrLab[_root.currStone].substr(2, 1)]++;
}
thisB.gotoAndStop(_root.arrPosities[_root.currStone]);
eval (_root.steen).gotoAndStop("onzichtbaar");
_root.stenenSpeler1[_root.steen.substr(_root.steen.length - 1, 1) - 1] = "";
_root.geefDoorNaar2();
return(0);
}
if (((substring(thisB._name, 8, 1)) == "N") || ((substring(thisB._name, 0, 1)) == "N")) {
if (_root.arrLab[_root.currStone].substr(0, 1) == _root.teSpelenKant1) {
_root.teSpelenKant1 = _root.arrLab[_root.currStone].substr(2, 1);
_root.aantGesp[_root.arrLab[_root.currStone].substr(0, 1)]++;
if (_root.arrLab[_root.currStone].substr(0, 1) != _root.arrLab[_root.currStone].substr(2, 1)) {
_root.aantGesp[_root.arrLab[_root.currStone].substr(2, 1)]++;
}
thisB.gotoAndStop(_root.arrPosities[_root.currStone]);
eval (_root.steen).gotoAndStop("onzichtbaar");
_root.stenenSpeler1[_root.steen.substr(_root.steen.length - 1, 1) - 1] = "";
_root.geefDoorNaar2();
return(0);
}
if (_root.arrLab[_root.currStone].substr(2, 1) == _root.teSpelenKant1) {
_root.teSpelenKant1 = _root.arrLab[_root.currStone].substr(0, 1);
_root.aantGesp[_root.arrLab[_root.currStone].substr(0, 1)]++;
if (_root.arrLab[_root.currStone].substr(0, 1) != _root.arrLab[_root.currStone].substr(2, 1)) {
_root.aantGesp[_root.arrLab[_root.currStone].substr(2, 1)]++;
}
thisB.gotoAndStop(_root.currStone);
eval (_root.steen).gotoAndStop("onzichtbaar");
_root.stenenSpeler1[_root.steen.substr(_root.steen.length - 1, 1) - 1] = "";
_root.geefDoorNaar2();
return(0);
}
}
if (((substring(thisB._name, 8, 1)) == "Z") || ((substring(thisB._name, 0, 1)) == "Z")) {
if (_root.arrLab[_root.currStone].substr(0, 1) == _root.teSpelenKant2) {
_root.teSpelenKant2 = _root.arrLab[_root.currStone].substr(2, 1);
_root.aantGesp[_root.arrLab[_root.currStone].substr(0, 1)]++;
if (_root.arrLab[_root.currStone].substr(0, 1) != _root.arrLab[_root.currStone].substr(2, 1)) {
_root.aantGesp[_root.arrLab[_root.currStone].substr(2, 1)]++;
}
thisB.gotoAndStop(_root.arrPosities[_root.currStone]);
eval (_root.steen).gotoAndStop("onzichtbaar");
_root.stenenSpeler1[_root.steen.substr(_root.steen.length - 1, 1) - 1] = "";
_root.geefDoorNaar2();
return(0);
}
if (_root.arrLab[_root.currStone].substr(2, 1) == _root.teSpelenKant2) {
_root.teSpelenKant2 = _root.arrLab[_root.currStone].substr(0, 1);
_root.aantGesp[_root.arrLab[_root.currStone].substr(0, 1)]++;
if (_root.arrLab[_root.currStone].substr(0, 1) != _root.arrLab[_root.currStone].substr(2, 1)) {
_root.aantGesp[_root.arrLab[_root.currStone].substr(2, 1)]++;
}
thisB.gotoAndStop(_root.currStone);
eval (_root.steen).gotoAndStop("onzichtbaar");
_root.stenenSpeler1[_root.steen.substr(_root.steen.length - 1, 1) - 1] = "";
_root.geefDoorNaar2();
return(0);
}
}
}
arrStenenLabels = new Array("0-0", "0-1", "0-2", "0-3", "0-4", "0-5", "0-6", "1-1", "1-2", "1-3", "1-4", "1-5", "1-6", "2-2", "2-3", "2-4", "2-5", "2-6", "3-3", "3-4", "3-5", "3-6", "4-4", "4-5", "4-6", "5-5", "5-6", "6-6");
arrStenen = new Array("4", "5", "6", "7", "8", "9", "10", "12", "13", "14", "15", "16", "17", "20", "21", "22", "23", "24", "28", "29", "30", "31", "36", "37", "38", "44", "45", "52");
arrSpelerStenen = new Array("p1-1", "p1-2", "p1-3", "p1-4", "p1-5", "p1-6", "p1-7", "p2-1", "p2-2", "p2-3", "p2-4", "p2-5", "p2-6", "p2-7", "p3-1", "p3-2", "p3-3", "p3-4", "p3-5", "p3-6", "p3-7", "p4-1", "p4-2", "p4-3", "p4-4", "p4-5", "p4-6", "p4-7");
_root.currStone;
var RandNo = 0;
init();
Frame 11
stop();
Symbol 4 Button
on (release) {
getURL ("http://www.EyeGrid.com", "_blank");
}
Symbol 5 MovieClip Frame 1
stop();
Symbol 12 Button
on (release) {
_root.buttonKlik(this);
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 2
stop();
Symbol 22 MovieClip Frame 3
stop();
Symbol 22 MovieClip Frame 4
stop();
Symbol 23 MovieClip Frame 1
rolSteen.gotoAndStop(6);
Symbol 23 MovieClip Frame 27
rolSteen.gotoAndStop(random(36) + 3);
Symbol 23 MovieClip Frame 53
rolSteen.gotoAndStop(random(36) + 3);
Symbol 23 MovieClip Frame 83
rolSteen.gotoAndStop(random(36) + 3);
Symbol 23 MovieClip Frame 104
rolSteen.gotoAndStop(random(36) + 3);
Symbol 23 MovieClip Frame 160
rolSteen.gotoAndStop(random(36) + 3);
Symbol 27 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 2
stop();
Symbol 37 Button
on (release) {
mcRules.gotoAndPlay(2);
}
Symbol 40 Button
on (release) {
if (radioBox1.getState() == true) {
spelKeuze = 1;
} else {
spelKeuze = 2;
}
gotoAndPlay (9);
}
Instance of Symbol 50 MovieClip in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
if (_parent.style.toUpperCase() == "AUTO") {
playerVersion = getVersion();
_parent.platform = playerVersion.substr(0, 3);
} else {
_parent.platform = _parent.style.toUpperCase();
}
_parent.child = this;
_parent.getLabel = function () {
return(child.label);
};
_parent.getState = function () {
return(child.checked);
};
_parent.isRadioButton = function () {
return(true);
};
_parent.setLabel = function (label) {
child.label = label;
};
_parent.setState = function (state) {
if (state) {
var tmp = head;
while (tmp != null) {
tmp.setState(false);
tmp = tmp.next;
}
if (platform == "MAC") {
child.gotoandstop(4);
} else {
child.gotoandstop(2);
}
} else if (platform == "MAC") {
child.gotoandstop(3);
} else {
child.gotoandstop(1);
}
child.checked = state;
};
stop();
label = _parent.label;
_parent.head = _parent;
_parent.head.next = null;
var obj = _parent._parent;
for (var i in obj) {
if (obj[i].isRadioButton() && (obj[i] != _parent)) {
var rButton = obj[i];
rButton.head = this._parent;
rButton.next = _parent.head.next;
_parent.head.next = rButton;
}
}
if (_parent.checked.toLowerCase() == "true") {
_parent.setState(true);
} else {
_parent.setState(false);
}
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
if (_parent.getState()) {
_parent.setState(false);
} else {
_parent.setState(true);
}
updateAfterEvent();
}
}
Instance of Symbol 50 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
if (_parent.style.toUpperCase() == "AUTO") {
playerVersion = getVersion();
_parent.platform = playerVersion.substr(0, 3);
} else {
_parent.platform = _parent.style.toUpperCase();
}
_parent.child = this;
_parent.getLabel = function () {
return(child.label);
};
_parent.getState = function () {
return(child.checked);
};
_parent.isRadioButton = function () {
return(true);
};
_parent.setLabel = function (label) {
child.label = label;
};
_parent.setState = function (state) {
if (state) {
var tmp = head;
while (tmp != null) {
tmp.setState(false);
tmp = tmp.next;
}
if (platform == "MAC") {
child.gotoandstop(4);
} else {
child.gotoandstop(2);
}
} else if (platform == "MAC") {
child.gotoandstop(3);
} else {
child.gotoandstop(1);
}
child.checked = state;
};
stop();
label = _parent.label;
_parent.head = _parent;
_parent.head.next = null;
var obj = _parent._parent;
for (var i in obj) {
if (obj[i].isRadioButton() && (obj[i] != _parent)) {
var rButton = obj[i];
rButton.head = this._parent;
rButton.next = _parent.head.next;
_parent.head.next = rButton;
}
}
if (_parent.checked.toLowerCase() == "true") {
_parent.setState(true);
} else {
_parent.setState(false);
}
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
if (_parent.getState()) {
_parent.setState(false);
} else {
_parent.setState(true);
}
updateAfterEvent();
}
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 16
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 6
stop();
Symbol 68 Button
on (release) {
mcRules2.gotoAndPlay(2);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
if (spelKeuze == 1) {
_root.winnaar.setWon.txtCool = "Congratulations\nbut now try to beat me with Six love";
}
Symbol 72 MovieClip Frame 3
stop();
Symbol 81 Button
on (release) {
_root.winnaar.setWon.gotoAndStop(1);
if ((5 < _root.txtWins1) || (((5 < _root.txtWins2) && (5 < _root.txtWins3)) && (5 < _root.txtWins4))) {
_root.txtWins1 = 0;
_root.txtWins2 = 0;
_root.txtWins3 = 0;
_root.txtWins4 = 0;
}
_root.initVars();
_root.init();
_root.winnaar.gotoAndStop(1);
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
if (_root.spelerAanDeBeurt == 1) {
txtWinner = "Y O U";
if (_root.txtWins1 == 6) {
setWon.gotoAndStop(2);
}
} else {
txtWinner = "Player " + _root.spelerAanDeBeurt;
}
Symbol 84 MovieClip Frame 45
stop();
Symbol 91 Button
on (release) {
_root.geefDoorNaar2();
gotoAndStop (1);
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 1
if ((_root.spelerAanDeBeurt == 2) || (_root.spelerAanDeBeurt == 4)) {
gotoAndPlay (2);
}
if (_root.spelerAanDeBeurt == 3) {
gotoAndPlay (32);
}
Symbol 95 MovieClip Frame 31
stop();
Symbol 95 MovieClip Frame 64
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 100 Button
on (press) {
_root.X1 = eval ("_root.p1-" + this._name.charAt(1))._x;
_root.Y1 = eval ("_root.p1-" + this._name.charAt(1))._y;
startDrag ("_root.p1-" + this._name.charAt(1));
if (1 < _root.M1._currentframe) {
tellTarget ("_root.N" + _root.Nteller) {
gotoAndStop ("knop");
};
tellTarget ("_root.Z" + _root.Zteller) {
gotoAndStop ("knop");
};
} else {
_root.M1.gotoAndStop("knop");
}
_root.steen = "_root.p1-" + this._name.charAt(1);
_root.currStone = eval ("_root.p1-" + this._name.charAt(1))._currentframe;
}
on (release, releaseOutside) {
setProperty(_root.p1 - 1, _x , 100);
setProperty(_root.p1 - 1, _y , 100);
var myMC = eval ("_root.p1-" + this._name.charAt(1));
stopDrag();
var bovenSteenKantGelijk = (((substring(_root.positie2label(eval ("_root.p1-" + this._name.charAt(1))), 0, 1)) == _root.teSpelenKant1) || ((substring(_root.positie2label(eval ("_root.p1-" + this._name.charAt(1))), 3, 1)) == _root.teSpelenKant1));
var onderSteenKantGelijk = (((substring(_root.positie2label(eval ("_root.p1-" + this._name.charAt(1))), 0, 1)) == _root.teSpelenKant2) || ((substring(_root.positie2label(eval ("_root.p1-" + this._name.charAt(1))), 3, 1)) == _root.teSpelenKant2));
if ((((eval (myMC._droptarget) == eval ("_root.N" + _root.Nteller)) && (bovenSteenKantGelijk)) || ((eval (myMC._droptarget) == eval ("_root.Z" + _root.Zteller)) && (onderSteenKantGelijk))) || ((eval (myMC._droptarget) == _root.M1) && (_root.M1._currentframe == 2))) {
_root.buttonKlik(eval (myMC._droptarget));
} else {
setProperty(eval ("_root.p1-" + this._name.charAt(1)), _x , _root.X1);
setProperty(eval ("_root.p1-" + this._name.charAt(1)), _y , _root.Y1);
}
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 3
stop();
Symbol 108 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 109 MovieClip Frame 3
stop();
Symbol 109 MovieClip Frame 4
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 28
_root.doeJeZet(4);
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 28
_root.doeJeZet(3);
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 28
_root.doeJeZet(2);
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 14
_root.zetButtonsAan();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
_root.doeEenZet(1);
tellTarget (_root.playersTurn) {
gotoAndPlay (4);
};
Symbol 114 MovieClip Frame 7
_root.doeEenZet(2);
Symbol 114 MovieClip Frame 13
_root.doeEenZet(3);
Symbol 114 MovieClip Frame 19
_root.doeEenZet(4);
Symbol 114 MovieClip Frame 24
_root.vervolgZet();