Frame 1
gamename = "tripeaksmania";
url = "www.leukstespellen.nl";
mochi.as2.MochiAd.showPreGameAd({id:"9c8bd4469178cbea", res:"550x400"});
stop();
Frame 2
stop();
bs = new Sound();
bs.attachSound("sound14.mp3");
bs.start(0, 99);
Frame 3
function setGame() {
undotimes = 2;
undobtn.mc._alpha = 50;
undobtn.enabled = false;
nowCard = new Array();
Check = false;
time = 90;
timer = setInterval(setTime, 1000);
cardArray = new Array();
mcArray = new Array();
num = 0;
numberArray = new Array();
i = 1;
while (i < 55) {
numberArray.push(i);
i++;
}
total = (lay1.length + lay2.length) + lay3.length;
trace(total);
cards = 54 - total;
game = true;
i = 0;
while (i < lay1.length) {
k = random(numberArray.length);
temp = numberArray[k];
numberArray.splice(k, 1);
if (temp < 53) {
this["a" + lay1[i]].number = (temp % 13) + 1;
} else {
this["a" + lay1[i]].number = (temp % 13) + 13;
}
nowCard.push(this["a" + lay1[i]]);
if (temp < 14) {
this["a" + lay1[i]].type = 1;
} else if ((temp >= 14) && (temp < 27)) {
this["a" + lay1[i]].type = 2;
} else if ((temp >= 27) && (temp < 40)) {
this["a" + lay1[i]].type = 3;
} else if ((temp >= 40) && (temp < 53)) {
this["a" + lay1[i]].type = 4;
} else if (temp >= 53) {
this["a" + lay1[i]].type = 5;
}
this["a" + lay1[i]].gotoAndStop(2);
this["a" + lay1[i]].lay = 1;
this["a" + lay1[i]].mc.numberMc.gotoAndStop(this["a" + lay1[i]].number);
this["a" + lay1[i]].mc.typeMc.gotoAndStop(this["a" + lay1[i]].type);
this["a" + lay1[i]].onRelease = function () {
if (game) {
if ((((this.number == (va - 1)) || (this.number == (va + 1))) || ((this.number == 1) && (va == 13))) || ((((this.number == 13) && (va == 1)) || (this.number > 13)) || (va > 13))) {
undobtn.enabled = true;
undobtn.mc._alpha = 0;
cardSound2.start(0, 1);
game = false;
sx = this._x;
sy = this._y;
dx = currentMc._x - this._x;
dy = currentMc._y - this._y;
tempMc = new Array();
getCard(this);
this.onEnterFrame = function () {
this._x = this._x + (dx / 6);
this._y = this._y + (dy / 6);
if (this._y > currentMc._y) {
this._x = currentMc._x;
this._y = currentMc._y;
delete this.onEnterFrame;
delete this.onRelease;
num++;
score = score + 30;
step = 2;
currentMc._y = 800;
undoMc = currentMc;
game = true;
if (num == total) {
nextLevel();
removeMovieClip(this);
delete this.onEnterFrame;
} else {
setCard(this);
if (cardArray.length == 0) {
checkCard();
}
delete this.onEnterFrame;
}
}
};
}
}
};
i++;
}
i = 0;
while (i < lay2.length) {
k = random(numberArray.length);
temp = numberArray[k];
numberArray.splice(k, 1);
if (temp < 53) {
this["a" + lay2[i]].number = (temp % 13) + 1;
} else {
this["a" + lay2[i]].number = (temp % 13) + 13;
}
this["a" + lay2[i]].lay = 2;
if (temp < 14) {
this["a" + lay2[i]].type = 1;
} else if ((temp >= 14) && (temp < 27)) {
this["a" + lay2[i]].type = 2;
} else if ((temp >= 27) && (temp < 40)) {
this["a" + lay2[i]].type = 3;
} else if ((temp >= 40) && (temp < 53)) {
this["a" + lay2[i]].type = 4;
} else if (temp >= 53) {
this["a" + lay2[i]].type = 5;
}
i++;
}
i = 0;
while (i < lay3.length) {
k = random(numberArray.length);
temp = numberArray[k];
numberArray.splice(k, 1);
if (temp < 53) {
this["a" + lay3[i]].number = (temp % 13) + 1;
} else {
this["a" + lay3[i]].number = (temp % 13) + 13;
}
this["a" + lay3[i]].lay = 3;
if (temp < 14) {
this["a" + lay3[i]].type = 1;
} else if ((temp >= 14) && (temp < 27)) {
this["a" + lay3[i]].type = 2;
} else if ((temp >= 27) && (temp < 40)) {
this["a" + lay3[i]].type = 3;
} else if ((temp >= 40) && (temp < 53)) {
this["a" + lay3[i]].type = 4;
} else if (temp >= 53) {
this["a" + lay3[i]].type = 5;
}
i++;
}
i = 0;
while (i < cards) {
attachMovie("card", "card" + i, 2000 + i);
eval ("card" + i)._x = 170 + (i * 3);
eval ("card" + i)._y = 284;
cardArray.push(eval ("card" + i));
k = random(numberArray.length);
temp = numberArray[k];
numberArray.splice(k, 1);
if (temp < 53) {
eval ("card" + i).number = (temp % 13) + 1;
} else {
eval ("card" + i).number = (temp % 13) + 13;
}
if (temp < 14) {
eval ("card" + i).type = 1;
} else if ((temp >= 14) && (temp < 27)) {
eval ("card" + i).type = 2;
} else if ((temp >= 27) && (temp < 40)) {
eval ("card" + i).type = 3;
} else if ((temp >= 40) && (temp < 53)) {
eval ("card" + i).type = 4;
} else if (temp >= 53) {
eval ("card" + i).type = 5;
}
i++;
}
cardArray[cardArray.length - 1]._x = 310;
cardArray[cardArray.length - 1].gotoAndStop(2);
cardArray[cardArray.length - 1].mc.typeMc.gotoAndStop(cardArray[cardArray.length - 1].type);
cardArray[cardArray.length - 1].mc.numberMc.gotoAndStop(cardArray[cardArray.length - 1].number);
setCard(cardArray[cardArray.length - 1]);
delete cardArray[cardArray.length - 1].onRelease;
cardArray.splice(cardArray.length - 1, 1);
setRelease();
}
function setRelease() {
cardSound1.start(0, 1);
cardNum.num_txt.text = cardArray.length;
cardNum._x = cardArray[cardArray.length - 1]._x;
cardNum._y = cardArray[cardArray.length - 1]._y + 15;
if (cardArray.length == 0) {
cardNum._y = 600;
checkCard();
}
cardArray[cardArray.length - 1].onRelease = function () {
undobtn.enabled = true;
undobtn.mc._alpha = 0;
tempX = this._x;
this._x = 310;
this.gotoAndStop(2);
this.mc.typeMc.gotoAndStop(this.type);
this.mc.numberMc.gotoAndStop(this.number);
step = 1;
currentMc._y = 800;
undoMc = currentMc;
setCard(this);
delete this.onRelease;
cardArray.splice(cardArray.length - 1, 1);
setRelease();
};
}
function checkCard() {
trace("----------------------------");
Check = true;
fail = true;
i = 0;
while (i < nowCard.length) {
if ((((((nowCard[i].number == (va - 1)) || (nowCard[i].number == (va + 1))) || ((nowCard[i].number == 1) && (va == 13))) || ((nowCard[i].number == 13) && (va == 1))) || (nowCard[i].number > 13)) || (va > 13)) {
if (nowCard[i]._y < 600) {
fail = false;
break;
}
}
i++;
}
if (fail) {
attachMovie("gameovermc", "gameovermc", 120000);
gameovermc._x = 0;
gameovermc._y = 0;
gameovermc.mc.gotoAndStop(1);
gameovermc.gameover_text.text = gameovertext;
pausebtn.enabled = false;
exitbtn.enabled = false;
clearInterval(timer);
failSound.start(0, 1);
failtimer = setInterval(setFail, 5000);
}
}
function setFail() {
backSound.stop();
i = 0;
while (i < cardArray.length) {
removeMovieClip(cardArray[i]);
i++;
}
clearInterval(failtimer);
removeMovieClip(gameovermc);
removeMovieClip(currentMc);
cardNum._y = 600;
gotoAndStop ("gameover");
}
function setCard(mc1) {
currentMc = mc1;
va = mc1.number;
}
function getCard(mc2) {
st = String(mc2._name);
temp = st.slice(1);
i = 0;
while (i < this["lay" + (mc2.lay + 1)].length) {
if (this["a" + this["lay" + (mc2.lay + 1)][i]].hitTest(mc2)) {
this["a" + this["lay" + (mc2.lay + 1)][i]].showcard = undefined;
j = 0;
while (j < this["lay" + mc2.lay].length) {
if (this["a" + this["lay" + (mc2.lay + 1)][i]].hitTest(this["a" + this["lay" + mc2.lay][j]]) && (this["a" + this["lay" + mc2.lay][j]] != mc2)) {
this["a" + this["lay" + (mc2.lay + 1)][i]].showcard = false;
}
j++;
}
if (this["a" + this["lay" + (mc2.lay + 1)][i]].showcard != false) {
this["a" + this["lay" + (mc2.lay + 1)][i]].gotoAndStop(2);
this["a" + this["lay" + (mc2.lay + 1)][i]].mc.numberMc.gotoAndStop(this["a" + this["lay" + (mc2.lay + 1)][i]].number);
this["a" + this["lay" + (mc2.lay + 1)][i]].mc.typeMc.gotoAndStop(this["a" + this["lay" + (mc2.lay + 1)][i]].type);
nowCard.push(this["a" + this["lay" + (mc2.lay + 1)][i]]);
tempMc.push(this["a" + this["lay" + (mc2.lay + 1)][i]]);
this["a" + this["lay" + (mc2.lay + 1)][i]].onRelease = function () {
if (game) {
if ((((((this.number == (va - 1)) || (this.number == (va + 1))) || ((this.number == 1) && (va == 13))) || ((this.number == 13) && (va == 1))) || (this.number > 13)) || (va > 13)) {
undobtn.enabled = true;
undobtn.mc._alpha = 0;
cardSound2.start(0, 1);
game = false;
sx = this._x;
sy = this._y;
dx = currentMc._x - this._x;
dy = currentMc._y - this._y;
tempMc = new Array();
getCard(this);
this.onEnterFrame = function () {
this._x = this._x + (dx / 6);
this._y = this._y + (dy / 6);
if (this._y > currentMc._y) {
this._x = currentMc._x;
this._y = currentMc._y;
delete this.onEnterFrame;
delete this.onRelease;
num++;
score = score + 30;
step = 2;
currentMc._y = 800;
undoMc = currentMc;
game = true;
if (num == total) {
nextLevel();
removeMovieClip(this);
delete this.onEnterFrame;
} else {
setCard(this);
if (cardArray.length == 0) {
checkCard();
}
delete this.onEnterFrame;
}
}
};
}
}
};
}
}
i++;
}
}
function nextLevel() {
didi.gotoAndStop(1);
clearInterval(timer);
tempcard = new Array();
i = 0;
while (i < cardArray.length) {
if (cardArray[i] != undefined) {
tempcard.push(cardArray[i]);
}
i++;
}
undobtn.enabled = false;
cardtimer = setInterval(clearcard, 120);
}
function clearcard() {
if (tempcard.length > 0) {
tempcard[tempcard.length - 1].removeMovieClip();
score = score + 50;
removeMovieClip(tempcard[tempcard.length - 1]);
tempcard.splice(tempcard.length - 1, 1);
cardNum.num_txt.text = tempcard.length;
cardNum._x = tempcard[tempcard.length - 1]._x;
} else {
cardNum._y = 600;
clearInterval(cardtimer);
level++;
nextSound.start(0, 1);
if (level < 20) {
nextFrame();
} else {
gotoAndStop ("gameover");
}
}
}
function setTime() {
if (!Pause) {
time--;
if ((time <= 5) && (didi._currentframe == 1)) {
didi.gotoAndPlay(2);
}
if (time == 0) {
attachMovie("gameovermc", "gameovermc", 120000);
gameovermc._x = 0;
gameovermc._y = 0;
gameovermc.mc.gotoAndStop(1);
gameovermc.gameover_text.text = gameovertext;
pausebtn.enabled = false;
exitbtn.enabled = false;
clearInterval(timer);
failSound.start(0, 1);
failtimer = setInterval(setFail, 5000);
didi.gotoAndStop(1);
}
}
}
stop();
gameovertext = "Game Over";
lay3 = new Array(26, 27, 28, 29, 30, 31, 32, 33);
lay2 = new Array(10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9);
level = 1;
score = 0;
cardSound1 = new Sound();
cardSound1.attachSound("sound6.mp3");
cardSound2 = new Sound();
cardSound2.attachSound("cardMain");
nextSound = new Sound();
nextSound.attachSound("sound3.mp3");
backSound = new Sound();
backSound.attachSound("sound2.mp3");
backSound.start(0, 99);
failSound = new Sound();
failSound.attachSound("sound29.mp3");
attachMovie("cardNum", "cardNum", 30000);
cardNum._y = 600;
undobtn.onRelease = function () {
if (undotimes > 0) {
undotimes--;
if (step == 1) {
currentMc.gotoAndStop(1);
currentMc._x = tempX;
cardArray.push(currentMc);
undoMc._y = 284;
setCard(undoMc);
setRelease();
undobtn.enabled = false;
undobtn.mc._alpha = 50;
step = undefined;
} else if (step == 2) {
num--;
score = score - 30;
currentMc._x = sx;
currentMc._y = sy;
currentMc.onRelease = function () {
if (game) {
if ((((((this.number == (va - 1)) || (this.number == (va + 1))) || ((this.number == 1) && (va == 13))) || ((this.number == 13) && (va == 1))) || (this.number > 13)) || (va > 13)) {
undobtn.enabled = true;
undobtn.mc._alpha = 0;
cardSound2.start(0, 1);
game = false;
sx = this._x;
sy = this._y;
dx = currentMc._x - this._x;
dy = currentMc._y - this._y;
tempMc = new Array();
getCard(this);
this.onEnterFrame = function () {
this._x = this._x + (dx / 6);
this._y = this._y + (dy / 6);
if (this._y > currentMc._y) {
this._x = currentMc._x;
this._y = currentMc._y;
delete this.onEnterFrame;
delete this.onRelease;
num++;
score = score + 30;
step = 2;
currentMc._y = 800;
undoMc = currentMc;
game = true;
if (num == total) {
nextLevel();
removeMovieClip(this);
delete this.onEnterFrame;
} else {
setCard(this);
if (cardArray.length == 0) {
checkCard();
}
delete this.onEnterFrame;
}
}
};
}
}
};
i = 0;
while (i < tempMc.length) {
tempMc[i].gotoAndStop(1);
delete tempMc[i].onRelease;
i++;
}
undoMc._y = 284;
setCard(undoMc);
undobtn.enabled = false;
undobtn.mc._alpha = 50;
step = undefined;
}
}
};
setGame();
var _sound = new Sound(this);
if (_sound.getVolume() == 100) {
SoundBtn.gotoAndStop(1);
} else {
SoundBtn.gotoAndStop(2);
}
SoundBtn.onRelease = function () {
if (this._currentframe == 1) {
_sound.setVolume(0);
this.gotoAndStop(2);
} else {
_sound.setVolume(100);
this.gotoAndStop(1);
}
};
Frame 4
nextFrame();
Frame 5
stop();
lay3 = new Array(20, 21, 22, 23, 24, 25, 26, 27);
lay2 = new Array(11, 12, 13, 14, 15, 16, 17, 18, 19);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
setGame();
Frame 6
nextFrame();
Frame 7
stop();
lay3 = new Array(13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24);
lay2 = new Array(5, 6, 7, 8, 9, 10, 11, 12);
lay1 = new Array(1, 2, 3, 4);
setGame();
Frame 8
nextFrame();
Frame 9
stop();
lay3 = new Array(15, 16, 17, 18);
lay2 = new Array(9, 10, 11, 12, 13, 14);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7, 8);
setGame();
Frame 10
nextFrame();
Frame 11
stop();
lay3 = new Array(14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33);
lay2 = new Array(7, 8, 9, 10, 11, 12, 13);
lay1 = new Array(1, 2, 3, 4, 5, 6);
setGame();
Frame 12
nextFrame();
Frame 13
stop();
lay3 = new Array(19, 20, 21);
lay2 = new Array(13, 14, 15, 16, 17, 18);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
setGame();
Frame 14
nextFrame();
Frame 15
stop();
lay3 = new Array(15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32);
lay2 = new Array(7, 8, 9, 10, 11, 12, 13, 14);
lay1 = new Array(1, 2, 3, 4, 5, 6);
setGame();
Frame 16
nextFrame();
Frame 17
stop();
lay3 = new Array(21, 22, 23, 24, 25, 26, 27, 28);
lay2 = new Array(9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7, 8);
setGame();
Frame 18
nextFrame();
Frame 19
stop();
lay3 = new Array(16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33);
lay2 = new Array(8, 9, 10, 11, 12, 13, 14, 15);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7);
setGame();
Frame 20
nextFrame();
Frame 21
stop();
lay3 = new Array(19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
lay2 = new Array(7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18);
lay1 = new Array(1, 2, 3, 4, 5, 6);
setGame();
Frame 22
nextFrame();
Frame 23
stop();
lay3 = new Array(18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30);
lay2 = new Array(6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17);
lay1 = new Array(1, 2, 3, 4, 5);
setGame();
Frame 24
nextFrame();
Frame 25
stop();
lay3 = new Array(16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30);
lay2 = new Array(6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
lay1 = new Array(1, 2, 3, 4, 5);
setGame();
Frame 26
nextFrame();
Frame 27
stop();
lay3 = new Array(21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36);
lay2 = new Array(9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7, 8);
setGame();
Frame 28
nextFrame();
Frame 29
stop();
lay3 = new Array(15, 16, 17, 18, 19, 20, 21);
lay2 = new Array(7, 8, 9, 10, 11, 12, 13, 14);
lay1 = new Array(1, 2, 3, 4, 5, 6);
setGame();
Frame 30
nextFrame();
Frame 31
stop();
lay3 = new Array(16, 17, 18, 19, 20, 21);
lay2 = new Array(8, 9, 10, 11, 12, 13, 14, 15);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7);
setGame();
Frame 32
nextFrame();
Frame 33
stop();
lay3 = new Array(20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32);
lay2 = new Array(8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7);
setGame();
Frame 34
nextFrame();
Frame 35
stop();
lay3 = new Array(17, 18, 19, 20, 21, 22, 23);
lay2 = new Array(7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
lay1 = new Array(1, 2, 3, 4, 5, 6);
setGame();
Frame 36
nextFrame();
Frame 37
stop();
lay3 = new Array(19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30);
lay2 = new Array(9, 10, 11, 12, 13, 14, 15, 16, 17, 18);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7, 8);
setGame();
Frame 38
nextFrame();
Frame 39
stop();
lay3 = new Array(22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43);
lay2 = new Array(8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21);
lay1 = new Array(1, 2, 3, 4, 5, 6, 7);
setGame();
Frame 40
nextFrame();
Frame 41
stop();
lay3 = new Array(25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42);
lay2 = new Array(7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24);
lay1 = new Array(1, 2, 3, 4, 5, 6);
setGame();
Frame 42
nextFrame();
Frame 43
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local2 = Array();
var _local4 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local4) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(_local2);
}
function binl2hex(binarray) {
if (hexcase) {
}
var _local4 = "0123456789abcdef";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function submitScore() {
hash = md5(((url + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.leukstespellen.nl/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
backSound.stop();
var hexcase = 0;
var strsize = 8;
Frame 44
back_text.text = backtext;
help_text.text = helptext;
helptext1_text.text = helptext1;
helptext2_text.text = helptext2;
Symbol 30 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 48 MovieClip [card] Frame 1
stop();
Symbol 69 MovieClip Frame 80
stop();
Symbol 73 MovieClip Frame 107
stop();
Symbol 96 Button
on (release) {
msound.stop();
_root.nextFrame();
}
Symbol 109 MovieClip Frame 1
msound = new Sound();
msound.attachSound("f8i815.MP3");
msound.start(0, 99);
Symbol 109 MovieClip Frame 174
msound.stop();
_root.nextFrame();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 198 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.0 as2");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 152 MovieClip Frame 17
stop();
Symbol 154 Button
on (release) {
bs.stop();
nextFrame();
}
Symbol 156 Button
on (release) {
gotoAndStop ("help");
}
Symbol 158 Button
on (release) {
getURL ("http://" + _root.url, "_blank");
}
Symbol 159 Button
on (release) {
getURL (("http://" + _root.url) + "/highscore.php", "_blank");
}
Symbol 167 Button
on (release) {
if (!Pause) {
Pause = true;
attachMovie("msgmc", "msgmc", 120000);
msgmc._x = 0;
msgmc._y = 0;
msgmc.mc.gotoAndStop(1);
msgmc.msg_text.text = pausedtext;
} else {
Pause = false;
removeMovieClip(msgmc);
}
}
Symbol 169 Button
on (release) {
removeMovieClip(msgmc);
removeMovieClip(currentMc);
removeMovieClip(cardNum);
clearInterval(timer);
i = 0;
while (i < cardArray.length) {
removeMovieClip(cardArray[i]);
i++;
}
backSound.stop();
gotoAndStop ("start");
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
Symbol 184 MovieClip Frame 1
undo_text.text = _root.undotext;
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
_root.di = false;
Symbol 185 MovieClip Frame 22
gotoAndPlay (2);
_root.di = true;
Symbol 190 Button
on (release) {
submitScore();
}
Symbol 191 Button
on (release) {
gotoAndStop ("start");
}
Symbol 196 Button
on (release) {
bs.stop();
gotoAndStop ("start");
}