Frame 1
stop();
gamename = "connectmania";
url = "www.gamesonly.com.cn";
onEnterFrame = function () {
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
loadper = Math.round((loadsize / totalsize) * 100) + "%";
if (((loadsize >= 1) && (totalsize >= 1)) && (loadsize == totalsize)) {
load_Mc.nextFrame();
delete onEnterFrame;
}
};
Frame 2
stop();
level = 1;
score = 0;
randomper = 0.2;
timeper = 0.05;
Pause = false;
Frame 3
back_text.text = backtext;
howtoplay_text.text = howtoplaytext;
helptext1_text.text = helptext1;
tool1_text.text = tool1text;
tool2_text.text = tool2text;
tool3_text.text = tool3text;
tool4_text.text = tool4text;
tool5_text.text = tool5text;
tool6_text.text = tool6text;
tools_text.text = toolstext;
stop();
Frame 4
function setGame() {
count = 0;
if (level < 6) {
n = 2 + (level * 2);
randomper = randomper + ((level - 1) * 0.05);
}
timeper = timeper + ((level - 1) * 0.005);
Pause = false;
m = 0;
dep = 0;
pressc = 0;
startx = 10 + ((12 - n) * 20);
starty = 10 + ((12 - n) * 15);
map = new Array(n + 2);
j = 0;
while (j < (n + 2)) {
map[j] = new Array(n + 2);
k = 0;
while (k < (n + 2)) {
if ((((j > 0) && (j <= n)) && (k > 0)) && (k <= n)) {
if (level == 1) {
map[j][k] = 1 + (int(m / 2) % 6);
} else if (level == 2) {
map[j][k] = 1 + (int(m / 2) % 10);
} else {
map[j][k] = 1 + (int(m / 2) % 20);
}
m++;
} else {
map[j][k] = 0;
}
k++;
}
j++;
}
a = 0;
while (a < ((5 * n) * n)) {
tx1 = 1 + random(n);
tx2 = 1 + random(n);
ty1 = 1 + random(n);
ty2 = 1 + random(n);
tempn = map[tx1][ty1];
map[tx1][ty1] = map[tx2][ty2];
map[tx2][ty2] = tempn;
a++;
}
size = 40;
j = 1;
while (j <= n) {
k = 1;
while (k <= n) {
dep++;
attachMovie("pic" + map[j][k], "pic" + (((j - 1) * n) + k), ((j - 1) * n) + k);
_root["pic" + (((j - 1) * n) + k)]._width = (_root["pic" + (((j - 1) * n) + k)]._height = size);
_root["pic" + (((j - 1) * n) + k)]._x = (size * (j - 0.666666666666667)) + startx;
_root["pic" + (((j - 1) * n) + k)]._y = (((size * 3) / 4) * k) + starty;
_root["pic" + (((j - 1) * n) + k)].v = new Array(j, k);
_root["pic" + (((j - 1) * n) + k)].i = ((j - 1) * n) + k;
_root["pic" + (((j - 1) * n) + k)].addProperty("onPress", pressit, pressit);
k++;
}
j++;
}
_root.createEmptyMovieClip("linkmc", 1000);
}
function pressit() {
if (!Pause) {
kuang11.removeMovieClip();
kuang12.removeMovieClip();
pressSound.start(0, 1);
pressc++;
attachMovie("kuang", "kuang" + pressc, 10000 + pressc);
eval ("kuang" + pressc)._width = (eval ("kuang" + pressc)._height = size);
eval ("kuang" + pressc)._x = this._x + 2;
eval ("kuang" + pressc)._y = this._y + 2;
_root["v" + pressc] = this.v;
_root["c" + pressc] = this.i;
if (pressc == 2) {
pressc = 0;
find0(v1, v2);
kuang1.removeMovieClip();
kuang2.removeMovieClip();
z1 = [0, 0];
z2 = [0, 0];
if ((map[v1[0]][v1[1]] == map[v2[0]][v2[1]]) && (checkit(v1, v2))) {
clearSound.start(0, 1);
score = score + 10;
with (_root.linkmc) {
lineStyle(2, 16763904, 500);
moveTo((((_root.v1[0] - 0.666666666666667) * size) + 21) + startx, ((((_root.v1[1] * size) * 3) / 4) + 21) + starty);
if ((_root.z1[0] == 0) && (_root.z1[1] == 0)) {
} else {
lineTo((((_root.z1[0] - 0.666666666666667) * size) + 21) + startx, ((((_root.z1[1] * size) * 3) / 4) + 21) + starty);
lineTo((((_root.z2[0] - 0.666666666666667) * size) + 21) + startx, ((((_root.z2[1] * size) * 3) / 4) + 21) + starty);
}
lineTo((((_root.v2[0] - 0.666666666666667) * size) + 21) + startx, ((((_root.v2[1] * size) * 3) / 4) + 21) + starty);
}
count++;
timec.wr.mc._x = timec.wr.mc._x + 4;
if (timec.wr.mc._x > 138) {
timec.wr.mc._x = 138;
}
if (count == ((n * n) / 2)) {
_root["pic" + c1].enabled = false;
_root["pic" + c2].enabled = false;
_root["pic" + c1]._visible = false;
_root["pic" + c2]._visible = false;
_root.linkmc.clear();
delete timec.onEnterFrame;
delete randomc.onEnterFrame;
removeMovieClip(item);
score = score + (n * n);
score = score + Math.floor(timec.wr.mc._x * 3);
backSound.stop();
gotoAndStop (6);
} else {
_root["pic" + c1].onEnterFrame = function () {
this._alpha = this._alpha - 20;
_root["pic" + c2]._alpha = _root["pic" + c2]._alpha - 20;
if (this._alpha <= 0) {
_root.linkmc.clear();
delete this.onEnterFrame;
}
};
_root["pic" + c1].enabled = false;
_root["pic" + c2].enabled = false;
map[v1[0]][v1[1]] = 0;
map[v2[0]][v2[1]] = 0;
}
}
}
}
}
function find0(q1, q2) {
var _local1;
parr.splice(0);
_local1 = 0;
while (_local1 < map[q1[0]].length) {
parr = ((map[q1[0]][_local1] == 0) ? (parr.concat([[q1[0], _local1]])) : (parr));
_local1++;
}
_local1 = 0;
while (_local1 < map[q2[0]].length) {
parr = ((map[q2[0]][_local1] == 0) ? (parr.concat([[q2[0], _local1]])) : (parr));
_local1++;
}
_local1 = 0;
while (_local1 < map.length) {
parr = ((map[_local1][q1[1]] == 0) ? (parr.concat([[_local1, q1[1]]])) : (parr));
_local1++;
}
_local1 = 0;
while (_local1 < map.length) {
parr = ((map[_local1][q2[1]] == 0) ? (parr.concat([[_local1, q2[1]]])) : (parr));
_local1++;
}
}
function line(o1, o2) {
var _local3 = new Array(0, 0);
if ((o1[0] == o2[0]) || (o1[1] == o2[1])) {
if ((Math.abs(o1[0] - o2[0]) + Math.abs(o1[1] - o2[1])) <= 1) {
return(true);
}
_local3[0] = (isNaN((o2[0] - o1[0]) / Math.abs(o2[0] - o1[0])) ? (o1[0]) : (o1[0] + ((o2[0] - o1[0]) / Math.abs(o2[0] - o1[0]))));
_local3[1] = (isNaN((o2[1] - o1[1]) / Math.abs(o2[1] - o1[1])) ? (o1[1]) : (o1[1] + ((o2[1] - o1[1]) / Math.abs(o2[1] - o1[1]))));
return(((map[_local3[0]][_local3[1]] == 0) ? (line(_local3, o2)) : false));
}
return(false);
}
function checkit(s1, s2) {
var _local2;
var _local1;
if (s1 == s2) {
return(false);
}
if (line(s1, s2)) {
return(true);
}
_local1 = 0;
while (_local1 < parr.length) {
if (line(s1, parr[_local1]) && (line(s2, parr[_local1]))) {
z1 = parr[_local1];
z2 = parr[_local1];
return(true);
}
_local1++;
}
_local2 = 0;
while (_local2 < parr.length) {
_local1 = 0;
while (_local1 < parr.length) {
if (line(parr[_local2], parr[_local1])) {
if (line(s1, parr[_local2])) {
if (line(s2, parr[_local1])) {
z1 = parr[_local2];
z2 = parr[_local1];
return(true);
}
}
}
_local1++;
}
_local2++;
}
return(false);
}
function reRiffle() {
pressc = 0;
removeMovieClip(kuang1);
removeMovieClip(kuang2);
var _local2 = new Array();
j = 1;
while (j <= n) {
k = 1;
while (k <= n) {
if ((map[j][k] != 0) && (map[j][k] != 100)) {
_root["pic" + (((j - 1) * n) + k)].removeMovieClip();
_local2 = _local2.concat([[j, k]]);
}
k++;
}
j++;
}
tempmap = new Array();
tt = 0;
while (tt < (n + 2)) {
tempm = new Array();
tempmap.push(tempm);
tt++;
}
j = 0;
while (j < map.length) {
k = 0;
while (k < map[j].length) {
tempmap[j][k] = map[j][k];
k++;
}
j++;
}
j = 1;
while (j <= n) {
k = 1;
while (k <= n) {
if ((map[j][k] != 0) && (map[j][k] != 100)) {
x = random(_local2.length);
temp = _local2[x];
attachMovie("pic" + tempmap[temp[0]][temp[1]], "pic" + (((j - 1) * n) + k), ((j - 1) * n) + k);
_root["pic" + (((j - 1) * n) + k)]._width = (_root["pic" + (((j - 1) * n) + k)]._height = size);
_root["pic" + (((j - 1) * n) + k)]._x = (size * (j - 0.666666666666667)) + startx;
_root["pic" + (((j - 1) * n) + k)]._y = (((size * 3) / 4) * k) + starty;
_root["pic" + (((j - 1) * n) + k)].v = new Array(j, k);
map[j][k] = tempmap[temp[0]][temp[1]];
_root["pic" + (((j - 1) * n) + k)].i = ((j - 1) * n) + k;
_root["pic" + (((j - 1) * n) + k)].addProperty("onPress", pressit, pressit);
_local2.splice(x, 1);
}
k++;
}
j++;
}
}
function lookingfor() {
var _local2 = 1;
while (_local2 < 21) {
_root["same" + _local2] = new Array();
_local2++;
}
pickSame();
}
function pickSame() {
var _local4 = 0;
while (_local4 < map.length) {
var _local3 = 0;
while (_local3 < map.length) {
var _local2 = 1;
while (_local2 < 21) {
if (map[_local4][_local3] == _local2) {
_root["same" + _local2] = _root["same" + _local2].concat([[_local4, _local3]]);
}
_local2++;
}
_local3++;
}
_local4++;
}
checkSame();
}
function checkSame() {
var _local2 = 0;
while (_local2 < 21) {
j = 0;
while (j < _root["same" + _local2].length) {
k = 0;
while (k < _root["same" + _local2].length) {
find0(_root["same" + _local2][j], _root["same" + _local2][k]);
if (checkit(_root["same" + _local2][j], _root["same" + _local2][k])) {
attachMovie("kuang1", "kuang11", 2000);
attachMovie("quan", "quan1", 2002);
_root.quan1._xscale = (_root.quan1._yscale = (size / 49) * 100);
_root.kuang11._xscale = (_root.kuang11._yscale = (size / 49) * 100);
_root.quan1._x = _root["pic" + (((_root["same" + _local2][j][0] - 1) * n) + _root["same" + _local2][j][1])]._x;
_root.quan1._y = _root["pic" + (((_root["same" + _local2][j][0] - 1) * n) + _root["same" + _local2][j][1])]._y;
_root.kuang11._x = _root["pic" + (((_root["same" + _local2][j][0] - 1) * n) + _root["same" + _local2][j][1])]._x;
_root.kuang11._y = _root["pic" + (((_root["same" + _local2][j][0] - 1) * n) + _root["same" + _local2][j][1])]._y;
attachMovie("kuang1", "kuang12", 2001);
attachMovie("quan", "quan2", 2003);
_root.quan2._xscale = (_root.quan2._yscale = (size / 49) * 100);
_root.kuang12._xscale = (_root.kuang12._yscale = (size / 49) * 100);
_root.quan2._x = _root["pic" + (((_root["same" + _local2][k][0] - 1) * n) + _root["same" + _local2][k][1])]._x;
_root.quan2._y = _root["pic" + (((_root["same" + _local2][k][0] - 1) * n) + _root["same" + _local2][k][1])]._y;
_root.kuang12._x = _root["pic" + (((_root["same" + _local2][k][0] - 1) * n) + _root["same" + _local2][k][1])]._x;
_root.kuang12._y = _root["pic" + (((_root["same" + _local2][k][0] - 1) * n) + _root["same" + _local2][k][1])]._y;
return(undefined);
}
k++;
}
j++;
}
_local2++;
}
riffleSound.start(0, 1);
reRiffle();
}
function setRandom() {
r = random(6) + 1;
attachMovie("item" + r, "item", 99999);
if (r == 3) {
Pause = true;
backbtn.enabled = false;
riffle.enabled = false;
lookingforit.enabled = false;
item._x = 300;
item._y = 200;
}
if (r == 1) {
Pause = true;
backbtn.enabled = false;
riffle.enabled = false;
lookingforit.enabled = false;
item._x = 300;
item._y = 200;
}
if (r == 5) {
Pause = false;
backbtn.enabled = true;
riffle.enabled = true;
lookingforit.enabled = true;
item._x = 0;
item._y = 0;
}
if (r == 4) {
item._x = -330;
item._y = 280;
}
if (r == 2) {
item._xscale = (item._yscale = 200);
item._x = 280;
item._y = 200;
}
if (r == 6) {
Pause = true;
backbtn.enabled = false;
riffle.enabled = false;
lookingforit.enabled = false;
item._x = 300;
item._y = 230;
}
}
function setRock() {
nn = new Array();
j = 1;
while (j < (n + 1)) {
k = 1;
while (k < (n + 1)) {
if (map[j][k] == 0) {
tempnn = new Array(j, k);
nn.push(tempnn);
}
k++;
}
j++;
}
if (nn.length != 0) {
gn = nn[random(nn.length)];
attachMovie("rock", "rock" + ((gn[0] * n) + gn[1]), ((gn[0] - 1) * n) + gn[1]);
eval ("rock" + ((gn[0] * n) + gn[1]))._width = (eval ("rock" + ((gn[0] * n) + gn[1]))._height = size);
eval ("rock" + ((gn[0] * n) + gn[1]))._x = (size * (gn[0] - 0.666666666666667)) + startx;
eval ("rock" + ((gn[0] * n) + gn[1]))._y = (((size * 3) / 4) * gn[1]) + starty;
map[gn[0]][gn[1]] = 100;
}
_root.Pause = false;
_root.backbtn.enabled = true;
_root.riffle.enabled = true;
_root.lookingforit.enabled = true;
_root.Random = true;
_root.randomc.wr.mc._x = 138;
}
function setMouse() {
Mouse.hide();
mouse_val = setInterval(getMouse, 7000);
}
function getMouse() {
_root.Random = true;
_root.randomc.wr.mc._x = 138;
clearInterval(mouse_val);
Mouse.show();
}
stop();
pause_text.text = pausetext;
exit_text.text = exittext;
level_text.text = leveltext;
score_text.text = scoretext;
rearrange_text.text = rearrangetext;
hint_text.text = hinttext;
time_text.text = timetext;
random_text.text = randomtext;
backSound.stop();
backSound = new Sound();
backSound.attachSound("sound1.mp3");
backSound.start(0, 99);
pressSound = new Sound();
pressSound.attachSound("sound2.mp3");
clearSound = new Sound();
clearSound.attachSound("sound4.mp3");
riffleSound = new Sound();
riffleSound.attachSound("sound6.mp3");
lookingforSound = new Sound();
lookingforSound.attachSound("sound5.mp3");
var riffleTimes = 3;
var lookingforTimes = 3;
var parr = new Array();
timec.onEnterFrame = function () {
if (!Pause) {
if (timec.wr.mc._x > 0) {
timec.wr.mc._x = timec.wr.mc._x - timeper;
} else if (timec.wr.mc._x <= 0) {
i = 1;
while (i <= (n * n)) {
delete _root["pic" + i].onPress;
i++;
}
kuang1.removeMovieClip();
kuang11.removeMovieClip();
kuang12.removeMovieClip();
removeMovieClip(item);
delete timec.onEnterFrame;
delete randomc.onEnterFrame;
backSound.stop();
_root.gotoAndStop(5);
}
}
};
Random = true;
randomc.onEnterFrame = function () {
if (!Pause) {
if (Random) {
if (randomc.wr.mc._x > 0) {
randomc.wr.mc._x = randomc.wr.mc._x - randomper;
} else if (randomc.wr.mc._x <= 0) {
Random = false;
setRandom();
}
}
}
};
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 5
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.gamesonly.net/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
stop();
i = 0;
while (i <= ((n * n) * 2)) {
_root["pic" + i].removeMovieClip();
_root["rock" + i].removeMovieClip();
i++;
}
Mouse.show();
var hexcase = 0;
var strsize = 8;
Frame 6
stop();
i = 0;
while (i <= ((n * n) * 2)) {
_root["pic" + i].removeMovieClip();
_root["rock" + i].removeMovieClip();
i++;
}
Mouse.show();
youwin_text.text = youwintext;
yourscore_text.text = yourscoretext;
nextlevel_text.text = nextleveltext;
Frame 7
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.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
i = 0;
while (i <= ((n * n) * 2)) {
_root["pic" + i].removeMovieClip();
_root["rock" + i].removeMovieClip();
i++;
}
Mouse.show();
var hexcase = 0;
var strsize = 8;
Symbol 14 MovieClip [item2] Frame 36
_root.setMouse();
removeMovieClip(this);
Symbol 18 MovieClip [item5] Frame 237
_root.Random = true;
_root.randomc.wr.mc._x = 138;
removeMovieClip(this);
Symbol 25 MovieClip [item1] Frame 40
_root.riffleSound.start(0, 1);
_root.reRiffle();
_root.Pause = false;
_root.backbtn.enabled = true;
_root.riffle.enabled = true;
_root.lookingforit.enabled = true;
_root.Random = true;
_root.randomc.wr.mc._x = 138;
removeMovieClip(this);
Symbol 29 MovieClip [item3] Frame 51
_root.lookingforSound.start(0, 1);
_root.lookingfor();
_root.Pause = false;
_root.backbtn.enabled = true;
_root.riffle.enabled = true;
_root.lookingforit.enabled = true;
_root.Random = true;
_root.randomc.wr.mc._x = 138;
removeMovieClip(this);
Symbol 37 MovieClip [item4] Frame 181
_root.Random = true;
_root.randomc.wr.mc._x = 138;
removeMovieClip(this);
Symbol 120 MovieClip [quan] Frame 39
removeMovieClip(this);
Symbol 126 MovieClip [item6] Frame 57
_root.setRock();
removeMovieClip(this);
Symbol 146 MovieClip Frame 80
stop();
Symbol 150 MovieClip Frame 107
stop();
Symbol 173 Button
on (release) {
msound.stop();
_root.nextFrame();
}
Symbol 186 MovieClip Frame 1
msound = new Sound();
msound.attachSound("f8i815.MP3");
msound.start(0, 99);
Symbol 186 MovieClip Frame 174
msound.stop();
_root.nextFrame();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 1
start_text.text = _root.starttext;
Symbol 214 MovieClip Frame 1
help_text.text = _root.helptext;
Symbol 216 MovieClip Frame 1
moregames_text.text = _root.moregamestext;
Symbol 218 MovieClip Frame 1
highscore_text.text = _root.highscoretext;
Symbol 219 MovieClip Frame 104
b1.onRelease = function () {
_root.gotoAndStop("game");
};
b2.onRelease = function () {
_root.gotoAndStop(3);
};
b3.onRelease = function () {
getURL ("http://" + _root.url, "_blank");
};
b4.onRelease = function () {
getURL (("http://" + _root.url) + "/highscore.php", "_blank");
};
Symbol 219 MovieClip Frame 191
gotoAndPlay (104);
Symbol 221 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 232 Button
on (press) {
this._parent.soundOff();
this.gotoAndStop(2);
}
Symbol 235 Button
on (press) {
this._parent.soundOn();
this.gotoAndStop(1);
}
Symbol 236 MovieClip Frame 1
this.stop();
Symbol 240 Button
on (release) {
Mouse.show();
backSound.stop();
i = 0;
while (i <= ((n * n) * 2)) {
_root["pic" + i].removeMovieClip();
_root["rock" + i].removeMovieClip();
i++;
}
kuang1.removeMovieClip();
kuang11.removeMovieClip();
kuang12.removeMovieClip();
_root.linkmc.clear();
_root.gotoAndStop("start");
}
Symbol 245 Button
on (press) {
if (_root.riffleTimes >= 1) {
riffleSound.start(0, 1);
_root.riffleTimes--;
_root.reRiffle();
}
}
Symbol 246 Button
on (press) {
if (_root.lookingforTimes >= 1) {
lookingforSound.start(0, 1);
_root.lookingforTimes--;
_root.lookingfor();
}
}
Symbol 249 Button
on (release) {
if (!Pause) {
i = 0;
while (i <= ((n * n) * 2)) {
_root["pic" + i]._visible = false;
_root["rock" + i]._visible = false;
i++;
}
Pause = true;
backbtn.enabled = false;
riffle.enabled = false;
lookingforit.enabled = false;
attachMovie("msgmc", "msgmc", 120000);
msgmc._x = 170;
msgmc._y = 200;
msgmc.mc.gotoAndStop(1);
msgmc.msg_text.text = pausedtext;
} else {
i = 1;
while (i <= (n * n)) {
_root["pic" + i]._visible = true;
_root["rock" + i]._visible = true;
i++;
}
backbtn.enabled = true;
riffle.enabled = true;
lookingforit.enabled = true;
Pause = false;
removeMovieClip(msgmc);
}
}
Symbol 262 Button
on (release) {
submitScore();
}
Symbol 269 Button
on (release) {
level = level + 1;
riffle.enabled = true;
lookingforit.enabled = true;
backbtn.enabled = true;
gotoAndStop ("game");
}