Frame 1
System.useCodepage = true;
_root.game_so = SharedObject.getLocal("FlashGamesStudio");
_root.game_so.data.playerName = "";
_root.game_so.data.useremail = "";
Instance of Symbol 51 MovieClip "Code_mc" in Frame 1
onClipEvent (enterFrame) {
TotalKB = _root.getBytesTotal() / 1000;
LoadedKB = _root.getBytesLoaded() / 1000;
_root.Size_txt.text = ((int(LoadedKB) + "KB/") + int(TotalKB)) + "KB";
LoadedPercent = int((LoadedKB / TotalKB) * 100);
_root.Percent_txt.text = LoadedPercent + "%";
_root.Bar_mc._xscale = LoadedPercent;
trace("sadadas==================1111111111");
DLRate = (_root.getBytesLoaded() / (getTimer() / 1000)) / 1000;
_root.Rate_txt.text = (int(DLRate * 100) / 100) + "KB/s";
SecondsLeft = (TotalKB - LoadedKB) / DLRate;
Minutes = Math.floor(SecondsLeft / 60);
if (Number(Minutes) < 10) {
Minutes = "0" + Minutes;
}
Seconds = int(SecondsLeft - (Minutes * 60));
if (Number(Seconds) < 10) {
Seconds = "0" + Seconds;
}
_root.TimeLeft_txt.text = (Minutes + " : ") + Seconds;
}
onClipEvent (load) {
_root.Percent_txt.text = "0%";
_root.Bar_mc._xscale = 0;
}
Frame 2
if (Number(Code_mc.LoadedPercent) == 100) {
_root.match_flg = 1;
nextFrame();
} else {
gotoAndPlay (1);
}
Frame 3
stop();
fscommand ("allowscale", "false");
stopAllSounds();
Frame 4
stop();
ongsound = new Sound("/gongsound");
gongsound.attachSound("gongsound");
gongsound.setVolume(30);
bgssound = new Sound("/water");
bgssound.attachSound("water");
bgssound.setVolume(100);
reset = "0";
temp1 = "0";
temp2 = "0";
temp3 = "0";
temp4 = "0";
temp5 = "0";
temp6 = "0";
temp7 = "0";
temp8 = "0";
temp9 = "0";
temp10 = "0";
temp11 = "0";
temp12 = "0";
temp13 = "0";
temp14 = "0";
temp15 = "0";
temp16 = "0";
temp17 = "0";
temp18 = "0";
temp19 = "0";
temp20 = "0";
temp21 = "0";
temp22 = "0";
temp23 = "0";
temp24 = "0";
temp25 = "0";
temp26 = "0";
temp27 = "0";
temp28 = "0";
temp29 = "0";
temp30 = "0";
temp31 = "0";
temp32 = "0";
temp33 = "0";
temp34 = "0";
temp35 = "0";
temp36 = "0";
temp37 = "0";
temp38 = "0";
temp39 = "0";
temp40 = "0";
temp41 = "0";
temp42 = "0";
temp43 = "0";
temp44 = "0";
temp45 = "0";
temp46 = "0";
temp47 = "0";
temp48 = "0";
temp49 = "0";
temp50 = "0";
temp51 = "0";
temp52 = "0";
temp53 = "0";
temp54 = "0";
temp55 = "0";
temp56 = "0";
temp57 = "0";
temp58 = "0";
temp59 = "0";
temp60 = "0";
temp61 = "0";
temp62 = "0";
temp63 = "0";
temp64 = "0";
temp65 = "0";
temp66 = "0";
temp67 = "0";
temp68 = "0";
temp69 = "0";
temp70 = "0";
temp71 = "0";
temp72 = "0";
temp73 = "0";
temp74 = "0";
temp75 = "0";
temp76 = "0";
temp77 = "0";
temp78 = "0";
temp79 = "0";
temp80 = "0";
temp81 = "0";
temp82 = "0";
temp83 = "0";
temp84 = "0";
temp85 = "0";
temp86 = "0";
temp87 = "0";
temp88 = "0";
temp89 = "0";
temp90 = "0";
temp91 = "0";
temp92 = "0";
temp93 = "0";
temp94 = "0";
temp95 = "0";
temp96 = "0";
temp97 = "0";
temp98 = "0";
temp99 = "0";
temp100 = "0";
temp101 = "0";
temp102 = "0";
temp103 = "0";
temp104 = "0";
temp105 = "0";
temp106 = "0";
temp107 = "0";
temp108 = "0";
temp109 = "0";
temp110 = "0";
temp111 = "0";
temp112 = "0";
temp113 = "0";
temp114 = "0";
temp115 = "0";
temp116 = "0";
temp117 = "0";
temp118 = "0";
temp119 = "0";
temp120 = "0";
temp121 = "0";
temp122 = "0";
temp123 = "0";
temp124 = "0";
temp125 = "0";
temp126 = "0";
temp127 = "0";
temp128 = "0";
temp129 = "0";
temp130 = "0";
temp131 = "0";
temp132 = "0";
temp133 = "0";
temp134 = "0";
temp135 = "0";
temp136 = "0";
temp137 = "0";
temp138 = "0";
temp139 = "0";
temp140 = "0";
temp141 = "0";
temp142 = "0";
temp143 = "0";
temp144 = "0";
function connectit(clickkey) {
var _local1 = clickkey;
mynes.start();
if ((startkey == 0) && (totalg[_local1] != 50)) {
startkey = _local1;
}
if ((((startkey != 0) && (startkey != _local1)) && (totalg[_local1] != totalg[startkey])) && (totalg[_local1] != 50)) {
tellTarget ("g" + startkey) {
gotoAndStop (1);
};
startkey = _local1;
}
if (((startkey != 0) && (startkey != _local1)) && (totalg[_local1] == totalg[startkey])) {
tellTarget ("g" + startkey) {
gotoAndStop (1);
};
endkey = _local1;
tempstart = totalg[startkey];
tempend = totalg[endkey];
thestring = startkey;
totalg[startkey] = 50;
totalg[endkey] = 50;
findlu(startkey, endkey);
totalg[startkey] = tempstart;
totalg[endkey] = tempend;
startkey = 0;
endkey = 0;
if (thestring != startkey) {
getline = thestring.split(",");
tellTarget ("ctrl") {
gotoAndPlay (2);
};
}
}
if (startkey != 0) {
tellTarget ("g" + startkey) {
gotoAndStop (2);
};
}
}
function findlu(x, y) {
var _local1 = y;
var _local2 = x;
thestartx = ((_local2 - 1) % 16) + 1;
thestarty = ((_local2 - thestartx) / 16) + 1;
theendx = ((_local1 - 1) % 16) + 1;
theendy = ((_local1 - theendx) / 16) + 1;
ii = thestartx;
while (ii >= 1) {
thenext = 88;
k = ((thestarty - 1) * 16) + ii;
x_lt(k, _local2);
k1 = ((theendy - 1) * 16) + ii;
x_lt(k1, _local1);
y_lt(k, k1);
if (thenext != 0) {
tmps = _local2;
i = 1;
while (i < (math.abs(thestartx - ii) + 1)) {
tmps = tmps - 1;
thestring = (thestring + ",") + tmps;
i++;
}
if (thestarty < theendy) {
i = 1;
while (i < ((theendy - thestarty) + 1)) {
tmps = tmps + 16;
thestring = (thestring + ",") + tmps;
i++;
}
} else {
i = 1;
while (i < ((thestarty - theendy) + 1)) {
tmps = tmps - 16;
thestring = (thestring + ",") + tmps;
i++;
}
}
i = 1;
while (i < (math.abs(theendx - ii) + 1)) {
if (k1 < _local1) {
tmps = tmps + 1;
} else {
tmps = tmps - 1;
}
thestring = (thestring + ",") + tmps;
i++;
}
return(undefined);
}
ii--;
}
ii = thestartx + 1;
while (ii <= 16) {
thenext = 88;
k = ((thestarty - 1) * 16) + ii;
x_lt(k, _local2);
k1 = ((theendy - 1) * 16) + ii;
x_lt(k1, _local1);
y_lt(k, k1);
if (thenext != 0) {
tmps = _local2;
i = 1;
while (i < (math.abs(thestartx - ii) + 1)) {
tmps = tmps + 1;
thestring = (thestring + ",") + tmps;
i++;
}
if (thestarty < theendy) {
i = 1;
while (i < ((theendy - thestarty) + 1)) {
tmps = tmps + 16;
thestring = (thestring + ",") + tmps;
i++;
}
} else {
i = 1;
while (i < ((thestarty - theendy) + 1)) {
tmps = tmps - 16;
thestring = (thestring + ",") + tmps;
i++;
}
}
i = 1;
while (i < (math.abs(theendx - ii) + 1)) {
if (k1 < _local1) {
tmps = tmps + 1;
} else {
tmps = tmps - 1;
}
thestring = (thestring + ",") + tmps;
i++;
}
return(undefined);
}
ii++;
}
ii = thestarty;
while (ii >= 1) {
thenext = 88;
k = ((ii - 1) * 16) + thestartx;
y_lt(k, _local2);
k1 = ((ii - 1) * 16) + theendx;
y_lt(k1, _local1);
x_lt(k, k1);
if (thenext != 0) {
tmps = _local2;
i = 1;
while (i < (math.abs(thestarty - ii) + 1)) {
tmps = tmps - 16;
thestring = (thestring + ",") + tmps;
i++;
}
if (thestartx < theendx) {
i = 1;
while (i < ((theendx - thestartx) + 1)) {
tmps = tmps + 1;
thestring = (thestring + ",") + tmps;
i++;
}
} else {
i = 1;
while (i < ((thestartx - theendx) + 1)) {
tmps = tmps - 1;
thestring = (thestring + ",") + tmps;
i++;
}
}
i = 1;
while (i < (math.abs(theendy - ii) + 1)) {
if (k1 < _local1) {
tmps = tmps + 16;
} else {
tmps = tmps - 16;
}
thestring = (thestring + ",") + tmps;
i++;
}
return(undefined);
}
ii--;
}
ii = thestarty + 1;
while (ii <= 16) {
thenext = 88;
k = ((ii - 1) * 16) + thestartx;
y_lt(k, _local2);
k1 = ((ii - 1) * 16) + theendx;
y_lt(k1, _local1);
x_lt(k, k1);
if (thenext != 0) {
tmps = _local2;
i = 1;
while (i < (math.abs(thestarty - ii) + 1)) {
tmps = tmps + 16;
thestring = (thestring + ",") + tmps;
i++;
}
if (thestartx < theendx) {
i = 1;
while (i < ((theendx - thestartx) + 1)) {
tmps = tmps + 1;
thestring = (thestring + ",") + tmps;
i++;
}
} else {
i = 1;
while (i < ((thestartx - theendx) + 1)) {
tmps = tmps - 1;
thestring = (thestring + ",") + tmps;
i++;
}
}
i = 1;
while (i < (math.abs(theendy - ii) + 1)) {
if (k1 < _local1) {
tmps = tmps + 16;
} else {
tmps = tmps - 16;
}
thestring = (thestring + ",") + tmps;
i++;
}
return(undefined);
}
ii++;
}
if (thenext == 0) {
thestring = 0;
}
return(undefined);
}
function x_lt(xx, yy) {
var _local1 = yy;
var _local2 = xx;
kk = 0;
while (kk < (math.abs(_local1 - _local2) + 1)) {
thetest = math.min(_local2, _local1) + kk;
if (totalg[thetest] < 50) {
thenext = 0;
}
kk++;
}
}
function y_lt(xx, yy) {
var _local1 = yy;
var _local2 = xx;
kk = 0;
while (kk < ((math.abs(_local1 - _local2) / 16) + 1)) {
thetest = math.min(_local2, _local1) + (kk * 16);
if (totalg[thetest] < 50) {
thenext = 0;
}
kk++;
}
}
_root.mybt._visible = 1;
_root.myf._visible = 1;
_root.myp._visible = 1;
helpnum._visible = 1;
fscommand ("showmenu", "false");
_level0.thetimer.tbar._visible = 1;
the_test_nm = 0;
totalscore0 = 0;
coola = 0;
coolz = 0;
esc_bz = 0;
thinkits = 6;
thinkyou = 3;
mynes = new Sound();
mynes.attachSound("csound");
totaline = new Array();
totalg = new Array();
getline = new Array();
thestring = 0;
startkey = 0;
endkey = 0;
i = 1;
while (i < 141) {
if (i < 31) {
totaline[i] = i;
}
if ((i > 30) && (i < 71)) {
x = random(45) + 1;
totaline[i] = x;
}
if (i > 70) {
totaline[i] = totaline[i - 70];
}
i++;
}
i = 0;
while (i < 100) {
x = random(140) + 1;
y = random(140) + 1;
z = totaline[x];
totaline[x] = totaline[y];
totaline[y] = z;
i++;
}
i = 1;
while (i < 141) {
tellTarget ("a" + i) {
gotoAndStop(_level0.totaline[_level0.i]);
};
i++;
}
j = 1;
i = 1;
while (i < 193) {
x = ((i - 1) % 16) + 1;
y = ((i - x) / 16) + 1;
if ((((x == 1) || (x == 16)) || (y == 1)) || (y == 12)) {
totalg[i] = 50;
} else {
totalg[i] = totaline[j];
j = j + 1;
}
i++;
}
Instance of Symbol 174 MovieClip in Frame 4
onClipEvent (load) {
aaa = new Sound();
aaa.attachSound("bg_music");
aaa.start(0, 99999);
}
Instance of Symbol 370 MovieClip "bk" in Frame 4
onClipEvent (enterFrame) {
}
Instance of Symbol 374 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((((_root.coola0 == _root.coola) or (_root.coolz0 == _root.coolz)) or (_root.coola == 0)) or (_root.helpnum._currentframe == 1)) {
_root.mybt.enabled = 0;
_root.mybt._alpha = 30;
} else {
_root.mybt.enabled = 1;
_root.mybt._alpha = 100;
}
}
Instance of Symbol 377 MovieClip "thetimer" in Frame 4
onClipEvent (load) {
}
Frame 5
stop();
Set("_root.space1:moveeast", "1");
Set("_root.space1:movewest", "0");
Set("_root.space1:moveup", "0");
Set("_root.space2:moveeast", "1");
Set("_root.space2:movewest", "1");
Set("_root.space2:moveup", "0");
Set("_root.space3:moveeast", "1");
Set("_root.space3:movewest", "1");
Set("_root.space3:moveup", "0");
Set("_root.space4:moveeast", "1");
Set("_root.space4:movewest", "1");
Set("_root.space4:moveup", "0");
Set("_root.space5:moveeast", "1");
Set("_root.space5:movewest", "1");
Set("_root.space5:moveup", "0");
Set("_root.space6:moveeast", "1");
Set("_root.space6:movewest", "1");
Set("_root.space6:moveup", "0");
Set("_root.space7:moveeast", "1");
Set("_root.space7:movewest", "1");
Set("_root.space7:moveup", "0");
Set("_root.space8:moveeast", "1");
Set("_root.space8:movewest", "1");
Set("_root.space8:moveup", "0");
Set("_root.space9:moveeast", "1");
Set("_root.space9:movewest", "1");
Set("_root.space9:moveup", "0");
Set("_root.space10:moveeast", "1");
Set("_root.space10:movewest", "1");
Set("_root.space10:moveup", "0");
Set("_root.space11:moveeast", "1");
Set("_root.space11:movewest", "1");
Set("_root.space11:moveup", "0");
Set("_root.space12:moveeast", "0");
Set("_root.space12:movewest", "1");
Set("_root.space12:moveup", "0");
Set("_root.space13:moveeast", "1");
Set("_root.space13:movewest", "0");
Set("_root.space13:moveup", "0");
Set("_root.space14:moveeast", "1");
Set("_root.space14:movewest", "1");
Set("_root.space14:moveup", "1");
Set("_root.space15:moveeast", "1");
Set("_root.space15:movewest", "1");
Set("_root.space15:moveup", "1");
Set("_root.space16:moveeast", "1");
Set("_root.space16:movewest", "1");
Set("_root.space16:moveup", "1");
Set("_root.space17:moveeast", "1");
Set("_root.space17:movewest", "1");
Set("_root.space17:moveup", "1");
Set("_root.space18:moveeast", "1");
Set("_root.space18:movewest", "1");
Set("_root.space18:moveup", "1");
Set("_root.space19:moveeast", "1");
Set("_root.space19:movewest", "1");
Set("_root.space19:moveup", "1");
Set("_root.space20:moveeast", "0");
Set("_root.space20:movewest", "1");
Set("_root.space20:moveup", "0");
Set("_root.space21:moveeast", "1");
Set("_root.space21:movewest", "0");
Set("_root.space21:moveup", "0");
Set("_root.space22:moveeast", "1");
Set("_root.space22:movewest", "1");
Set("_root.space22:moveup", "0");
Set("_root.space23:moveeast", "1");
Set("_root.space23:movewest", "1");
Set("_root.space23:moveup", "1");
Set("_root.space24:moveeast", "1");
Set("_root.space24:movewest", "1");
Set("_root.space24:moveup", "1");
Set("_root.space25:moveeast", "1");
Set("_root.space25:movewest", "1");
Set("_root.space25:moveup", "1");
Set("_root.space26:moveeast", "1");
Set("_root.space26:movewest", "1");
Set("_root.space26:moveup", "1");
Set("_root.space27:moveeast", "1");
Set("_root.space27:movewest", "1");
Set("_root.space27:moveup", "1");
Set("_root.space28:moveeast", "1");
Set("_root.space28:movewest", "1");
Set("_root.space28:moveup", "1");
Set("_root.space29:moveeast", "1");
Set("_root.space29:movewest", "1");
Set("_root.space29:moveup", "0");
Set("_root.space30:moveeast", "0");
Set("_root.space30:movewest", "1");
Set("_root.space30:moveup", "0");
Set("_root.space31:moveeast", "1");
Set("_root.space31:movewest", "1");
Set("_root.space31:moveup", "0");
Set("_root.space32:moveeast", "1");
Set("_root.space32:movewest", "1");
Set("_root.space32:moveup", "0");
Set("_root.space33:moveeast", "1");
Set("_root.space33:movewest", "1");
Set("_root.space33:moveup", "0");
Set("_root.space34:moveeast", "1");
Set("_root.space34:movewest", "1");
Set("_root.space34:moveup", "1");
Set("_root.space35:moveeast", "1");
Set("_root.space35:movewest", "1");
Set("_root.space35:moveup", "1");
Set("_root.space36:moveeast", "1");
Set("_root.space36:movewest", "1");
Set("_root.space36:moveup", "1");
Set("_root.space37:moveeast", "1");
Set("_root.space37:movewest", "1");
Set("_root.space37:moveup", "1");
Set("_root.space38:moveeast", "1");
Set("_root.space38:movewest", "1");
Set("_root.space38:moveup", "1");
Set("_root.space39:moveeast", "1");
Set("_root.space39:movewest", "1");
Set("_root.space39:moveup", "1");
Set("_root.space40:moveeast", "1");
Set("_root.space40:movewest", "1");
Set("_root.space40:moveup", "0");
Set("_root.space41:moveeast", "1");
Set("_root.space41:movewest", "1");
Set("_root.space41:moveup", "0");
Set("_root.space42:moveeast", "1");
Set("_root.space42:movewest", "1");
Set("_root.space42:moveup", "0");
Set("_root.space43:moveeast", "1");
Set("_root.space43:movewest", "0");
Set("_root.space43:moveup", "0");
Set("_root.space44:moveeast", "1");
Set("_root.space44:movewest", "1");
Set("_root.space44:moveup", "0");
Set("_root.space45:moveeast", "0");
Set("_root.space45:movewest", "1");
Set("_root.space45:moveup", "0");
Set("_root.space46:moveeast", "1");
Set("_root.space46:movewest", "1");
Set("_root.space46:moveup", "0");
Set("_root.space47:moveeast", "1");
Set("_root.space47:movewest", "1");
Set("_root.space47:moveup", "0");
Set("_root.space48:moveeast", "1");
Set("_root.space48:movewest", "1");
Set("_root.space48:moveup", "0");
Set("_root.space49:moveeast", "1");
Set("_root.space49:movewest", "1");
Set("_root.space49:moveup", "1");
Set("_root.space50:moveeast", "1");
Set("_root.space50:movewest", "1");
Set("_root.space50:moveup", "1");
Set("_root.space51:moveeast", "1");
Set("_root.space51:movewest", "1");
Set("_root.space51:moveup", "1");
Set("_root.space52:moveeast", "1");
Set("_root.space52:movewest", "1");
Set("_root.space52:moveup", "1");
Set("_root.space53:moveeast", "1");
Set("_root.space53:movewest", "1");
Set("_root.space53:moveup", "1");
Set("_root.space54:moveeast", "1");
Set("_root.space54:movewest", "1");
Set("_root.space54:moveup", "1");
Set("_root.space55:moveeast", "1");
Set("_root.space55:movewest", "1");
Set("_root.space55:moveup", "0");
Set("_root.space56:moveeast", "1");
Set("_root.space56:movewest", "1");
Set("_root.space56:moveup", "0");
Set("_root.space57:moveeast", "1");
Set("_root.space57:movewest", "1");
Set("_root.space57:moveup", "0");
Set("_root.space58:moveeast", "1");
Set("_root.space58:movewest", "0");
Set("_root.space58:moveup", "0");
Set("_root.space59:moveeast", "1");
Set("_root.space59:movewest", "1");
Set("_root.space59:moveup", "0");
Set("_root.space60:moveeast", "1");
Set("_root.space60:movewest", "1");
Set("_root.space60:moveup", "1");
Set("_root.space61:moveeast", "1");
Set("_root.space61:movewest", "1");
Set("_root.space61:moveup", "1");
Set("_root.space62:moveeast", "1");
Set("_root.space62:movewest", "1");
Set("_root.space62:moveup", "1");
Set("_root.space63:moveeast", "1");
Set("_root.space63:movewest", "1");
Set("_root.space63:moveup", "1");
Set("_root.space64:moveeast", "1");
Set("_root.space64:movewest", "1");
Set("_root.space64:moveup", "1");
Set("_root.space65:moveeast", "1");
Set("_root.space65:movewest", "1");
Set("_root.space65:moveup", "1");
Set("_root.space66:moveeast", "1");
Set("_root.space66:movewest", "1");
Set("_root.space66:moveup", "0");
Set("_root.space67:moveeast", "0");
Set("_root.space67:movewest", "1");
Set("_root.space67:moveup", "0");
Set("_root.space68:moveeast", "1");
Set("_root.space68:movewest", "0");
Set("_root.space68:moveup", "0");
Set("_root.space69:moveeast", "1");
Set("_root.space69:movewest", "1");
Set("_root.space69:moveup", "1");
Set("_root.space70:moveeast", "1");
Set("_root.space70:movewest", "1");
Set("_root.space70:moveup", "1");
Set("_root.space71:moveeast", "1");
Set("_root.space71:movewest", "1");
Set("_root.space71:moveup", "1");
Set("_root.space72:moveeast", "1");
Set("_root.space72:movewest", "1");
Set("_root.space72:moveup", "1");
Set("_root.space73:moveeast", "1");
Set("_root.space73:movewest", "1");
Set("_root.space73:moveup", "1");
Set("_root.space74:moveeast", "1");
Set("_root.space74:movewest", "1");
Set("_root.space74:moveup", "1");
Set("_root.space75:moveeast", "0");
Set("_root.space75:movewest", "1");
Set("_root.space75:moveup", "0");
Set("_root.space76:moveeast", "1");
Set("_root.space76:movewest", "0");
Set("_root.space76:moveup", "0");
Set("_root.space77:moveeast", "1");
Set("_root.space77:movewest", "1");
Set("_root.space77:moveup", "0");
Set("_root.space78:moveeast", "1");
Set("_root.space78:movewest", "1");
Set("_root.space78:moveup", "0");
Set("_root.space79:moveeast", "1");
Set("_root.space79:movewest", "1");
Set("_root.space79:moveup", "0");
Set("_root.space80:moveeast", "1");
Set("_root.space80:movewest", "1");
Set("_root.space80:moveup", "0");
Set("_root.space81:moveeast", "1");
Set("_root.space81:movewest", "1");
Set("_root.space81:moveup", "0");
Set("_root.space82:moveeast", "1");
Set("_root.space82:movewest", "1");
Set("_root.space82:moveup", "0");
Set("_root.space83:moveeast", "1");
Set("_root.space83:movewest", "1");
Set("_root.space83:moveup", "0");
Set("_root.space84:moveeast", "1");
Set("_root.space84:movewest", "1");
Set("_root.space84:moveup", "0");
Set("_root.space85:moveeast", "1");
Set("_root.space85:movewest", "1");
Set("_root.space85:moveup", "0");
Set("_root.space86:moveeast", "1");
Set("_root.space86:movewest", "1");
Set("_root.space86:moveup", "0");
Set("_root.space87:moveeast", "0");
Set("_root.space87:movewest", "1");
Set("_root.space87:moveup", "0");
Set("_root.space88:moveeast", "1");
Set("_root.space88:movewest", "0");
Set("_root.space88:moveup", "0");
Set("_root.space89:moveeast", "1");
Set("_root.space89:movewest", "1");
Set("_root.space89:moveup", "0");
Set("_root.space90:moveeast", "1");
Set("_root.space90:movewest", "1");
Set("_root.space90:moveup", "0");
Set("_root.space91:moveeast", "1");
Set("_root.space91:movewest", "1");
Set("_root.space91:moveup", "0");
Set("_root.space92:moveeast", "1");
Set("_root.space92:movewest", "1");
Set("_root.space92:moveup", "0");
Set("_root.space93:moveeast", "0");
Set("_root.space93:movewest", "1");
Set("_root.space93:moveup", "0");
Set("_root.space94:moveeast", "1");
Set("_root.space94:movewest", "0");
Set("_root.space94:moveup", "0");
Set("_root.space95:moveeast", "1");
Set("_root.space95:movewest", "1");
Set("_root.space95:moveup", "1");
Set("_root.space96:moveeast", "1");
Set("_root.space96:movewest", "1");
Set("_root.space96:moveup", "1");
Set("_root.space97:moveeast", "1");
Set("_root.space97:movewest", "1");
Set("_root.space97:moveup", "1");
Set("_root.space98:moveeast", "1");
Set("_root.space98:movewest", "1");
Set("_root.space98:moveup", "1");
Set("_root.space99:moveeast", "0");
Set("_root.space99:movewest", "1");
Set("_root.space99:moveup", "0");
Set("_root.space100:moveeast", "1");
Set("_root.space100:movewest", "0");
Set("_root.space100:moveup", "0");
Set("_root.space101:moveeast", "1");
Set("_root.space101:movewest", "1");
Set("_root.space101:moveup", "1");
Set("_root.space102:moveeast", "1");
Set("_root.space102:movewest", "1");
Set("_root.space102:moveup", "1");
Set("_root.space103:moveeast", "1");
Set("_root.space103:movewest", "1");
Set("_root.space103:moveup", "1");
Set("_root.space104:moveeast", "1");
Set("_root.space104:movewest", "1");
Set("_root.space104:moveup", "1");
Set("_root.space105:moveeast", "0");
Set("_root.space105:movewest", "1");
Set("_root.space105:moveup", "0");
Set("_root.space106:moveeast", "1");
Set("_root.space106:movewest", "0");
Set("_root.space106:moveup", "0");
Set("_root.space107:moveeast", "1");
Set("_root.space107:movewest", "1");
Set("_root.space107:moveup", "1");
Set("_root.space108:moveeast", "1");
Set("_root.space108:movewest", "1");
Set("_root.space108:moveup", "1");
Set("_root.space109:moveeast", "1");
Set("_root.space109:movewest", "1");
Set("_root.space109:moveup", "1");
Set("_root.space110:moveeast", "1");
Set("_root.space110:movewest", "1");
Set("_root.space110:moveup", "1");
Set("_root.space111:moveeast", "0");
Set("_root.space111:movewest", "1");
Set("_root.space111:moveup", "0");
Set("_root.space112:moveeast", "1");
Set("_root.space112:movewest", "0");
Set("_root.space112:moveup", "0");
Set("_root.space113:moveeast", "1");
Set("_root.space113:movewest", "1");
Set("_root.space113:moveup", "1");
Set("_root.space114:moveeast", "1");
Set("_root.space114:movewest", "1");
Set("_root.space114:moveup", "1");
Set("_root.space115:moveeast", "1");
Set("_root.space115:movewest", "1");
Set("_root.space115:moveup", "1");
Set("_root.space116:moveeast", "1");
Set("_root.space116:movewest", "1");
Set("_root.space116:moveup", "1");
Set("_root.space117:moveeast", "0");
Set("_root.space117:movewest", "1");
Set("_root.space117:moveup", "0");
Set("_root.space118:moveeast", "1");
Set("_root.space118:movewest", "0");
Set("_root.space118:moveup", "0");
Set("_root.space119:moveeast", "1");
Set("_root.space119:movewest", "1");
Set("_root.space119:moveup", "0");
Set("_root.space120:moveeast", "1");
Set("_root.space120:movewest", "1");
Set("_root.space120:moveup", "0");
Set("_root.space121:moveeast", "1");
Set("_root.space121:movewest", "1");
Set("_root.space121:moveup", "0");
Set("_root.space122:moveeast", "1");
Set("_root.space122:movewest", "1");
Set("_root.space122:moveup", "0");
Set("_root.space123:moveeast", "0");
Set("_root.space123:movewest", "1");
Set("_root.space123:moveup", "0");
Set("_root.space124:moveeast", "1");
Set("_root.space124:movewest", "0");
Set("_root.space124:moveup", "0");
Set("_root.space125:moveeast", "1");
Set("_root.space125:movewest", "1");
Set("_root.space125:moveup", "0");
Set("_root.space126:moveeast", "1");
Set("_root.space126:movewest", "1");
Set("_root.space126:moveup", "0");
Set("_root.space127:moveeast", "0");
Set("_root.space127:movewest", "1");
Set("_root.space127:moveup", "0");
Set("_root.space128:moveeast", "1");
Set("_root.space128:movewest", "0");
Set("_root.space128:moveup", "0");
Set("_root.space129:moveeast", "1");
Set("_root.space129:movewest", "1");
Set("_root.space129:moveup", "1");
Set("_root.space130:moveeast", "1");
Set("_root.space130:movewest", "1");
Set("_root.space130:moveup", "1");
Set("_root.space131:moveeast", "0");
Set("_root.space131:movewest", "1");
Set("_root.space131:moveup", "0");
Set("_root.space132:moveeast", "1");
Set("_root.space132:movewest", "0");
Set("_root.space132:moveup", "0");
Set("_root.space133:moveeast", "1");
Set("_root.space133:movewest", "1");
Set("_root.space133:moveup", "1");
Set("_root.space134:moveeast", "1");
Set("_root.space134:movewest", "1");
Set("_root.space134:moveup", "1");
Set("_root.space135:moveeast", "0");
Set("_root.space135:movewest", "1");
Set("_root.space135:moveup", "0");
Set("_root.space136:moveeast", "1");
Set("_root.space136:movewest", "0");
Set("_root.space136:moveup", "0");
Set("_root.space137:moveeast", "1");
Set("_root.space137:movewest", "1");
Set("_root.space137:moveup", "0");
Set("_root.space138:moveeast", "1");
Set("_root.space138:movewest", "1");
Set("_root.space138:moveup", "0");
Set("_root.space139:moveeast", "0");
Set("_root.space139:movewest", "1");
Set("_root.space139:moveup", "0");
Set("_root.space140:moveeast", "1");
Set("_root.space140:movewest", "0");
Set("_root.space140:moveup", "1");
Set("_root.space141:moveeast", "0");
Set("_root.space141:movewest", "1");
Set("_root.space141:moveup", "1");
Set("_root.space142:moveeast", "1");
Set("_root.space142:movewest", "0");
Set("_root.space142:moveup", "1");
Set("_root.space143:moveeast", "0");
Set("_root.space143:movewest", "1");
Set("_root.space143:moveup", "1");
Set("_root.space144:moveeast", "0");
Set("_root.space144:movewest", "0");
Set("_root.space144:moveup", "0");
Symbol 55 Button
on (release) {
getURL ("http://www.t45ol.com", "_blank");
}
Symbol 65 Button
on (release) {
_root.play();
}
Symbol 171 Button
on (release) {
aaa.stop();
gotoAndStop (2);
}
Symbol 173 Button
on (release) {
aaa.start(0, 999999);
gotoAndStop (1);
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 178 Button
on (release) {
getURL ("http://www.17228.com", "_blank");
}
Symbol 180 Button
on (press) {
connectit(18);
}
Symbol 181 Button
on (press) {
connectit(19);
}
Symbol 182 Button
on (press) {
connectit(20);
}
Symbol 183 Button
on (press) {
connectit(21);
}
Symbol 184 Button
on (press) {
connectit(22);
}
Symbol 185 Button
on (press) {
connectit(23);
}
Symbol 186 Button
on (press) {
connectit(24);
}
Symbol 187 Button
on (press) {
connectit(25);
}
Symbol 188 Button
on (press) {
connectit(26);
}
Symbol 189 Button
on (press) {
connectit(27);
}
Symbol 190 Button
on (press) {
connectit(28);
}
Symbol 191 Button
on (press) {
connectit(29);
}
Symbol 192 Button
on (press) {
connectit(30);
}
Symbol 193 Button
on (press) {
connectit(31);
}
Symbol 194 Button
on (press) {
connectit(34);
}
Symbol 195 Button
on (press) {
connectit(35);
}
Symbol 196 Button
on (press) {
connectit(36);
}
Symbol 197 Button
on (press) {
connectit(37);
}
Symbol 198 Button
on (press) {
connectit(38);
}
Symbol 199 Button
on (press) {
connectit(39);
}
Symbol 200 Button
on (press) {
connectit(40);
}
Symbol 201 Button
on (press) {
connectit(41);
}
Symbol 202 Button
on (press) {
connectit(42);
}
Symbol 203 Button
on (press) {
connectit(43);
}
Symbol 204 Button
on (press) {
connectit(44);
}
Symbol 205 Button
on (press) {
connectit(45);
}
Symbol 206 Button
on (press) {
connectit(46);
}
Symbol 207 Button
on (press) {
connectit(47);
}
Symbol 208 Button
on (press) {
connectit(50);
}
Symbol 209 Button
on (press) {
connectit(51);
}
Symbol 210 Button
on (press) {
connectit(52);
}
Symbol 211 Button
on (press) {
connectit(53);
}
Symbol 212 Button
on (press) {
connectit(54);
}
Symbol 213 Button
on (press) {
connectit(55);
}
Symbol 214 Button
on (press) {
connectit(56);
}
Symbol 215 Button
on (press) {
connectit(57);
}
Symbol 216 Button
on (press) {
connectit(58);
}
Symbol 217 Button
on (press) {
connectit(59);
}
Symbol 218 Button
on (press) {
connectit(60);
}
Symbol 219 Button
on (press) {
connectit(61);
}
Symbol 220 Button
on (press) {
connectit(62);
}
Symbol 221 Button
on (press) {
connectit(63);
}
Symbol 222 Button
on (press) {
connectit(66);
}
Symbol 223 Button
on (press) {
connectit(67);
}
Symbol 224 Button
on (press) {
connectit(68);
}
Symbol 225 Button
on (press) {
connectit(69);
}
Symbol 226 Button
on (press) {
connectit(70);
}
Symbol 227 Button
on (press) {
connectit(71);
}
Symbol 228 Button
on (press) {
connectit(72);
}
Symbol 229 Button
on (press) {
connectit(73);
}
Symbol 230 Button
on (press) {
connectit(74);
}
Symbol 231 Button
on (press) {
connectit(75);
}
Symbol 232 Button
on (press) {
connectit(76);
}
Symbol 233 Button
on (press) {
connectit(77);
}
Symbol 235 Button
on (press) {
connectit(78);
}
Symbol 236 Button
on (press) {
connectit(79);
}
Symbol 237 Button
on (press) {
connectit(98);
}
Symbol 238 Button
on (press) {
connectit(99);
}
Symbol 239 Button
on (press) {
connectit(100);
}
Symbol 240 Button
on (press) {
connectit(101);
}
Symbol 241 Button
on (press) {
connectit(102);
}
Symbol 242 Button
on (press) {
connectit(103);
}
Symbol 243 Button
on (press) {
connectit(104);
}
Symbol 244 Button
on (press) {
connectit(105);
}
Symbol 245 Button
on (press) {
connectit(106);
}
Symbol 246 Button
on (press) {
connectit(107);
}
Symbol 247 Button
on (press) {
connectit(108);
}
Symbol 248 Button
on (press) {
connectit(109);
}
Symbol 249 Button
on (press) {
connectit(110);
}
Symbol 250 Button
on (press) {
connectit(111);
}
Symbol 251 Button
on (press) {
connectit(114);
}
Symbol 252 Button
on (press) {
connectit(115);
}
Symbol 253 Button
on (press) {
connectit(116);
}
Symbol 254 Button
on (press) {
connectit(117);
}
Symbol 255 Button
on (press) {
connectit(118);
}
Symbol 256 Button
on (press) {
connectit(119);
}
Symbol 257 Button
on (press) {
connectit(120);
}
Symbol 258 Button
on (press) {
connectit(121);
}
Symbol 259 Button
on (press) {
connectit(122);
}
Symbol 260 Button
on (press) {
connectit(123);
}
Symbol 261 Button
on (press) {
connectit(124);
}
Symbol 262 Button
on (press) {
connectit(125);
}
Symbol 263 Button
on (press) {
connectit(126);
}
Symbol 264 Button
on (press) {
connectit(127);
}
Symbol 265 Button
on (press) {
connectit(130);
}
Symbol 266 Button
on (press) {
connectit(131);
}
Symbol 267 Button
on (press) {
connectit(132);
}
Symbol 268 Button
on (press) {
connectit(133);
}
Symbol 269 Button
on (press) {
connectit(134);
}
Symbol 270 Button
on (press) {
connectit(135);
}
Symbol 271 Button
on (press) {
connectit(136);
}
Symbol 272 Button
on (press) {
connectit(137);
}
Symbol 273 Button
on (press) {
connectit(138);
}
Symbol 274 Button
on (press) {
connectit(139);
}
Symbol 275 Button
on (press) {
connectit(140);
}
Symbol 276 Button
on (press) {
connectit(141);
}
Symbol 277 Button
on (press) {
connectit(142);
}
Symbol 278 Button
on (press) {
connectit(143);
}
Symbol 279 Button
on (press) {
connectit(146);
}
Symbol 280 Button
on (press) {
connectit(147);
}
Symbol 281 Button
on (press) {
connectit(148);
}
Symbol 282 Button
on (press) {
connectit(149);
}
Symbol 283 Button
on (press) {
connectit(150);
}
Symbol 284 Button
on (press) {
connectit(151);
}
Symbol 285 Button
on (press) {
connectit(152);
}
Symbol 286 Button
on (press) {
connectit(153);
}
Symbol 287 Button
on (press) {
connectit(154);
}
Symbol 288 Button
on (press) {
connectit(155);
}
Symbol 289 Button
on (press) {
connectit(156);
}
Symbol 290 Button
on (press) {
connectit(157);
}
Symbol 291 Button
on (press) {
connectit(158);
}
Symbol 292 Button
on (press) {
connectit(159);
}
Symbol 293 Button
on (press) {
connectit(162);
}
Symbol 294 Button
on (press) {
connectit(163);
}
Symbol 295 Button
on (press) {
connectit(164);
}
Symbol 296 Button
on (press) {
connectit(165);
}
Symbol 297 Button
on (press) {
connectit(166);
}
Symbol 298 Button
on (press) {
connectit(167);
}
Symbol 299 Button
on (press) {
connectit(168);
}
Symbol 300 Button
on (press) {
connectit(169);
}
Symbol 301 Button
on (press) {
connectit(170);
}
Symbol 302 Button
on (press) {
connectit(171);
}
Symbol 303 Button
on (press) {
connectit(172);
}
Symbol 304 Button
on (press) {
connectit(173);
}
Symbol 305 Button
on (press) {
connectit(174);
}
Symbol 306 Button
on (press) {
connectit(175);
}
Symbol 307 Button
on (press) {
connectit(82);
}
Symbol 308 Button
on (press) {
connectit(83);
}
Symbol 309 Button
on (press) {
connectit(84);
}
Symbol 310 Button
on (press) {
connectit(85);
}
Symbol 311 Button
on (press) {
connectit(86);
}
Symbol 312 Button
on (press) {
connectit(87);
}
Symbol 313 Button
on (press) {
connectit(88);
}
Symbol 314 Button
on (press) {
connectit(89);
}
Symbol 315 Button
on (press) {
connectit(90);
}
Symbol 316 Button
on (press) {
connectit(91);
}
Symbol 317 Button
on (press) {
connectit(92);
}
Symbol 318 Button
on (press) {
connectit(93);
}
Symbol 319 Button
on (press) {
connectit(94);
}
Symbol 320 Button
on (press) {
connectit(95);
}
Symbol 323 MovieClip Frame 1
stop();
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 3
function joinall() {
mykey = 0;
i = 1;
while (i < 141) {
x_i = ((i - 1) % 14) + 1;
y_i = ((i - x_i) / 14) + 1;
if (((_level0.totaline[i] == 50) && (i > 14)) && (i < 127)) {
if ((y_i < 6) && (_level0.totaline[i - 14] < 50)) {
_level0.totaline[i] = _level0.totaline[i - 14];
_level0.totaline[i - 14] = 50;
mykey = 1;
}
if ((y_i > 5) && (_level0.totaline[i + 14] < 50)) {
_level0.totaline[i] = _level0.totaline[i + 14];
_level0.totaline[i + 14] = 50;
mykey = 1;
}
}
if (((_level0.totaline[i] == 50) && (x_i > 1)) && (x_i < 14)) {
if ((x_i < 8) && (_level0.totaline[i - 1] < 50)) {
_level0.totaline[i] = _level0.totaline[i - 1];
_level0.totaline[i - 1] = 50;
mykey = 1;
}
if ((x_i > 7) && (_level0.totaline[i + 1] < 50)) {
_level0.totaline[i] = _level0.totaline[i + 1];
_level0.totaline[i + 1] = 50;
mykey = 1;
}
}
i++;
}
if (mykey == 1) {
joinall();
} else {
return(undefined);
}
}
rudi._x = rudi.xstart;
rudi._y = 200;
ebene = 7;
goodies = 0;
g.gotoAndStop(goodies + 1);
zeit = 120;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) && (zeit > 0)) {
zeit--;
}
}, 10000000);
sballlev = 100;
sball.lev = 2;
sballlev = 0;
var sballID;
i = 0;
while (i < _level0.getline.length) {
if (i == 0) {
if ((_level0.getline[i + 1] - _level0.getline[i]) == -16) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (3);
};
}
if ((_level0.getline[i + 1] - _level0.getline[i]) == 16) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (4);
};
}
if ((_level0.getline[i + 1] - _level0.getline[i]) == -1) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (5);
};
}
if ((_level0.getline[i + 1] - _level0.getline[i]) == 1) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (6);
};
}
}
if (i == (_level0.getline.length - 1)) {
if ((_level0.getline[i - 1] - _level0.getline[i]) == -16) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (3);
};
}
if ((_level0.getline[i - 1] - _level0.getline[i]) == 16) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (4);
};
}
if ((_level0.getline[i - 1] - _level0.getline[i]) == -1) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (5);
};
}
if ((_level0.getline[i - 1] - _level0.getline[i]) == 1) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (6);
};
}
}
if ((i != 0) && (i != (_level0.getline.length - 1))) {
if ((math.abs(_level0.getline[i + 1] - _level0.getline[i]) == 16) && (math.abs(_level0.getline[i - 1] - _level0.getline[i]) == 16)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (7);
};
}
if ((math.abs(_level0.getline[i + 1] - _level0.getline[i]) == 1) && (math.abs(_level0.getline[i - 1] - _level0.getline[i]) == 1)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (8);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == -16) && ((_level0.getline[i - 1] - _level0.getline[i]) == -1)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (9);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == -16) && ((_level0.getline[i - 1] - _level0.getline[i]) == 1)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (10);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == 16) && ((_level0.getline[i - 1] - _level0.getline[i]) == -1)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (11);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == 16) && ((_level0.getline[i - 1] - _level0.getline[i]) == 1)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (12);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == -1) && ((_level0.getline[i - 1] - _level0.getline[i]) == -16)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (9);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == 1) && ((_level0.getline[i - 1] - _level0.getline[i]) == -16)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (10);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == -1) && ((_level0.getline[i - 1] - _level0.getline[i]) == 16)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (11);
};
}
if (((_level0.getline[i + 1] - _level0.getline[i]) == 1) && ((_level0.getline[i - 1] - _level0.getline[i]) == 16)) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (12);
};
}
}
i++;
}
k1 = _level0.getline[0];
k2 = _level0.getline[_level0.getline.length - 1];
x = Math.min(_level0.getline[0], _level0.getline[_level0.getline.length - 1]);
y = Math.max(_level0.getline[0], _level0.getline[_level0.getline.length - 1]);
xx = ((x - 1) % 16) + 1;
xy = ((x - xx) / 16) + 1;
x = ((x - 16) - ((xy - 1) * 2)) + 1;
yx = ((y - 1) % 16) + 1;
yy = ((y - yx) / 16) + 1;
y = ((y - 16) - ((yy - 1) * 2)) + 1;
if ((_level0.thinkyou == 1) || (_level0.thinkyou == 2)) {
_level0.totaline[x] = 50;
_level0.totaline[y] = 50;
}
if (_level0.thinkyou == 3) {
if (((xy - 1) < 6) && ((yy - 1) < 6)) {
i = yy - 1;
while (i < 5) {
_level0.totaline[(((14 * i) - 14) + yx) - 1] = _level0.totaline[((14 * i) + yx) - 1];
i++;
}
_level0.totaline[(56 + yx) - 1] = 50;
i = xy - 1;
while (i < 5) {
_level0.totaline[(((14 * i) - 14) + xx) - 1] = _level0.totaline[((14 * i) + xx) - 1];
i++;
}
_level0.totaline[(56 + xx) - 1] = 50;
}
if (((xy - 1) > 5) && ((yy - 1) > 5)) {
i = xy - 1;
while (i > 6) {
_level0.totaline[(((14 * i) - 14) + xx) - 1] = _level0.totaline[(((14 * i) - 28) + xx) - 1];
i--;
}
_level0.totaline[(70 + xx) - 1] = 50;
i = yy - 1;
while (i > 6) {
_level0.totaline[(((14 * i) - 14) + yx) - 1] = _level0.totaline[(((14 * i) - 28) + yx) - 1];
i--;
}
_level0.totaline[(70 + yx) - 1] = 50;
}
if ((((xy - 1) > 5) && ((yy - 1) < 6)) || (((xy - 1) < 6) && ((yy - 1) > 5))) {
if ((yy - 1) < 6) {
i = yy - 1;
while (i < 5) {
_level0.totaline[(((14 * i) - 14) + yx) - 1] = _level0.totaline[((14 * i) + yx) - 1];
i++;
}
_level0.totaline[(56 + yx) - 1] = 50;
}
if ((xy - 1) < 6) {
i = xy - 1;
while (i < 5) {
_level0.totaline[(((14 * i) - 14) + xx) - 1] = _level0.totaline[((14 * i) + xx) - 1];
i++;
}
_level0.totaline[(56 + xx) - 1] = 50;
}
if ((xy - 1) > 5) {
i = xy - 1;
while (i > 6) {
_level0.totaline[(((14 * i) - 14) + xx) - 1] = _level0.totaline[(((14 * i) - 28) + xx) - 1];
i--;
}
_level0.totaline[(70 + xx) - 1] = 50;
}
if ((yy - 1) > 5) {
i = yy - 1;
while (i > 6) {
_level0.totaline[(((14 * i) - 14) + yx) - 1] = _level0.totaline[(((14 * i) - 28) + yx) - 1];
i--;
}
_level0.totaline[(70 + yx) - 1] = 50;
}
}
}
if (_level0.thinkyou == 4) {
if (((xx - 1) < 8) && ((yx - 1) < 8)) {
i = yx - 1;
while (i < 7) {
_level0.totaline[((14 * yy) - 28) + i] = _level0.totaline[(((14 * yy) - 28) + i) + 1];
i++;
}
_level0.totaline[((14 * yy) - 28) + 7] = 50;
i = xx - 1;
while (i < 7) {
_level0.totaline[((14 * xy) - 28) + i] = _level0.totaline[(((14 * xy) - 28) + i) + 1];
i++;
}
_level0.totaline[((14 * xy) - 28) + 7] = 50;
}
if (((xx - 1) > 7) && ((yx - 1) > 7)) {
i = xx - 1;
while (i > 8) {
_level0.totaline[((14 * xy) - 28) + i] = _level0.totaline[(((14 * xy) - 28) + i) - 1];
i--;
}
_level0.totaline[((14 * xy) - 28) + 8] = 50;
i = yx - 1;
while (i > 8) {
_level0.totaline[((14 * yy) - 28) + i] = _level0.totaline[(((14 * yy) - 28) + i) - 1];
i--;
}
_level0.totaline[((14 * yy) - 28) + 8] = 50;
}
if ((((xx - 1) < 8) && ((yx - 1) > 7)) || (((yx - 1) < 8) && ((xx - 1) > 7))) {
if ((yx - 1) < 8) {
i = yx - 1;
while (i < 7) {
_level0.totaline[((14 * yy) - 28) + i] = _level0.totaline[(((14 * yy) - 28) + i) + 1];
i++;
}
_level0.totaline[((14 * yy) - 28) + 7] = 50;
}
if ((xx - 1) < 8) {
i = xx - 1;
while (i < 7) {
_level0.totaline[((14 * xy) - 28) + i] = _level0.totaline[(((14 * xy) - 28) + i) + 1];
i++;
}
_level0.totaline[((14 * xy) - 28) + 7] = 50;
}
if ((xx - 1) > 7) {
i = xx - 1;
while (i > 8) {
_level0.totaline[((14 * xy) - 28) + i] = _level0.totaline[(((14 * xy) - 28) + i) - 1];
i--;
}
_level0.totaline[((14 * xy) - 28) + 8] = 50;
}
if ((yx - 1) > 7) {
i = yx - 1;
while (i > 8) {
_level0.totaline[((14 * yy) - 28) + i] = _level0.totaline[(((14 * yy) - 28) + i) - 1];
i--;
}
_level0.totaline[((14 * yy) - 28) + 8] = 50;
}
}
}
if (_level0.thinkyou == 5) {
i = yx - 1;
while (i < 14) {
_level0.totaline[((14 * yy) - 28) + i] = _level0.totaline[(((14 * yy) - 28) + i) + 1];
i++;
}
_level0.totaline[((14 * yy) - 28) + 14] = 50;
i = xx - 1;
while (i < 14) {
_level0.totaline[((14 * xy) - 28) + i] = _level0.totaline[(((14 * xy) - 28) + i) + 1];
i++;
}
_level0.totaline[((14 * xy) - 28) + 14] = 50;
}
if (_level0.thinkyou == 6) {
i = xy - 1;
while (i > 1) {
_level0.totaline[(((14 * i) - 14) + xx) - 1] = _level0.totaline[(((14 * i) - 28) + xx) - 1];
i--;
}
_level0.totaline[xx - 1] = 50;
i = yy - 1;
while (i > 1) {
_level0.totaline[(((14 * i) - 14) + yx) - 1] = _level0.totaline[(((14 * i) - 28) + yx) - 1];
i--;
}
_level0.totaline[yx - 1] = 50;
}
if (_level0.thinkyou == 7) {
i = yy - 1;
while (i < 10) {
_level0.totaline[(((14 * i) - 14) + yx) - 1] = _level0.totaline[((14 * i) + yx) - 1];
i++;
}
_level0.totaline[(yx - 1) + 126] = 50;
i = xy - 1;
while (i < 10) {
_level0.totaline[(((14 * i) - 14) + xx) - 1] = _level0.totaline[((14 * i) + xx) - 1];
i++;
}
_level0.totaline[(xx - 1) + 126] = 50;
}
if (_level0.thinkyou == 8) {
i = xx - 1;
while (i > 1) {
_level0.totaline[((14 * xy) - 28) + i] = _level0.totaline[(((14 * xy) - 28) + i) - 1];
i--;
}
_level0.totaline[((14 * xy) - 28) + 1] = 50;
i = yx - 1;
while (i > 1) {
_level0.totaline[((14 * yy) - 28) + i] = _level0.totaline[(((14 * yy) - 28) + i) - 1];
i--;
}
_level0.totaline[((14 * yy) - 28) + 1] = 50;
}
if (_level0.thinkyou == 9) {
_level0.totaline[x] = 50;
_level0.totaline[y] = 50;
joinall(x);
}
j = 1;
i = 1;
while (i < 193) {
x = ((i - 1) % 16) + 1;
y = ((i - x) / 16) + 1;
if ((((x == 1) || (x == 16)) || (y == 1)) || (y == 12)) {
_level0.totalg[i] = 50;
} else {
_level0.totalg[i] = _level0.totaline[j];
j = j + 1;
}
i++;
}
_level0.totalscore0 = _level0.totalscore0 + 10;
tellTarget ("_level0.thetimer") {
gotoAndStop(_level0.thetimer._currentframe - 36);
};
Symbol 325 MovieClip Frame 4
function encrypt(string) {
var _local1 = string;
localkey = encryptkey;
encrypt = new Array();
i = 0;
while (i < _local1.length) {
encryptchar = new Number();
encryptchar = int(_local1.charCodeAt(i));
j = 0;
while (j < localkey.length) {
codewith = int(localkey.charCodeAt(j));
encryptchar = encryptchar ^ codewith;
j++;
}
encrypt[i] = String(encryptchar);
i++;
}
strencrypt = encrypt.join(":");
return(strencrypt);
}
function getit(x, y) {
var _local1 = y;
var _local2 = x;
thestartx = ((_local2 - 1) % 16) + 1;
thestarty = ((_local2 - thestartx) / 16) + 1;
theendx = ((_local1 - 1) % 16) + 1;
theendy = ((_local1 - theendx) / 16) + 1;
ii = 16;
while (ii >= 1) {
thenext = 88;
k = ((thestarty - 1) * 16) + ii;
x_l(k, _local2);
k1 = ((theendy - 1) * 16) + ii;
x_l(k1, _local1);
y_l(k, k1);
if (thenext == 88) {
diednum = 0;
return(undefined);
}
ii--;
}
ii = 16;
while (ii >= 1) {
thenext = 88;
k = ((ii - 1) * 16) + thestartx;
y_l(k, _local2);
k1 = ((ii - 1) * 16) + theendx;
y_l(k1, _local1);
x_l(k, k1);
if (thenext == 88) {
diednum = 0;
return(undefined);
}
ii--;
}
return(undefined);
}
function x_l(xx, yy) {
var _local1 = yy;
var _local2 = xx;
kk = 0;
while (kk < (math.abs(_local1 - _local2) + 1)) {
thetest = math.min(_local2, _local1) + kk;
if (_level0.totalg[thetest] < 50) {
_level0.ctrl.thenext = 0;
return(undefined);
}
kk++;
}
return(undefined);
}
function y_l(xx, yy) {
var _local1 = yy;
var _local2 = xx;
kk = 0;
while (kk < ((math.abs(_local1 - _local2) / 16) + 1)) {
thetest = math.min(_local2, _local1) + (kk * 16);
if (_level0.totalg[thetest] < 50) {
_level0.ctrl.thenext = 0;
return(undefined);
}
kk++;
}
return(undefined);
}
stop();
diednum = 1;
_level0.the_test_nm = 0;
thenext = 0;
i = 18;
while (i < 176) {
if ((_level0.totalg[i] != 50) && ((_level0.totalg[i] == _level0.totalg[i + 1]) || (_level0.totalg[i] == _level0.totalg[i + 16]))) {
diednum = 0;
break;
}
if (((diednum == 1) && (_level0.totalg[i] != 50)) && ((((_level0.totalg[i + 1] == 50) || (_level0.totalg[i - 1] == 50)) || (_level0.totalg[i + 16] == 50)) || (_level0.totalg[i - 16] == 50))) {
j = i + 1;
while (j < 177) {
if (diednum == 0) {
break;
}
if ((_level0.totalg[i] == _level0.totalg[j]) && ((((_level0.totalg[j + 1] == 50) || (_level0.totalg[j - 1] == 50)) || (_level0.totalg[j + 16] == 50)) || (_level0.totalg[j - 16] == 50))) {
tempstart = _level0.totalg[i];
tempend = _level0.totalg[j];
_level0.totalg[i] = 50;
_level0.totalg[j] = 50;
getit(i, j);
_level0.totalg[i] = tempstart;
_level0.totalg[j] = tempend;
if (diednum == 0) {
_level0.coola = i;
_level0.coolz = j;
}
}
j++;
}
}
i++;
}
i = 0;
while (i < _level0.getline.length) {
tellTarget ("_level0.g" + _level0.getline[i]) {
gotoAndStop (1);
};
i++;
}
i = 1;
while (i < 141) {
tellTarget ("_level0.a" + i) {
gotoAndStop(_level0.totaline[_level0.ctrl.i]);
};
i++;
}
if (diednum == 1) {
gotoAndStop (5);
}
Symbol 325 MovieClip Frame 5
function reloadit() {
kong = new Array();
j = 0;
i = 1;
while (i < 141) {
if (_level0.totaline[i] != 50) {
kong[j] = i;
j = j + 1;
}
i++;
}
i = 1;
while (i < 100) {
k = random(kong.length);
k1 = random(kong.length);
x = _level0.totaline[kong[k]];
_level0.totaline[kong[k]] = _level0.totaline[kong[k1]];
_level0.totaline[kong[k1]] = x;
i++;
}
i = 1;
while (i < 141) {
tellTarget ("_level0.a" + i) {
gotoAndStop(_level0.totaline[_level0.ctrl.i]);
};
i++;
}
j = 1;
i = 1;
while (i < 193) {
x = ((i - 1) % 16) + 1;
y = ((i - x) / 16) + 1;
if ((((x == 1) || (x == 16)) || (y == 1)) || (y == 12)) {
_level0.totalg[i] = 50;
} else {
_level0.totalg[i] = _level0.totaline[j];
j = j + 1;
}
i++;
}
}
stop();
the_bd_bz = 1;
i = 1;
while (i < 141) {
if (_level0.totaline[i] != 50) {
the_bd_bz = 0;
break;
}
i++;
}
if (the_bd_bz == 0) {
if (_level0.thinkits > 0) {
tellTarget ("_level0.died") {
gotoAndPlay (3);
};
reloadit();
_level0.thinkits = _level0.thinkits - 1;
tellTarget ("_level0.helpnum") {
gotoAndStop(_level0.thinkits + 1);
};
gotoAndStop (4);
} else {
trace("\u50F5\u5C40\u4E86\uFF0C\u56E0\u4E3A\u6CA1\u6709\u63D0\u793A\u4E86\uFF0C\u6240\u4EE5\u7ED3\u675F\u6E38\u620F:(");
tellTarget ("_level0.died") {
gotoAndStop (2);
};
tellTarget ("_level0") {
gotoAndStop (5);
};
}
}
if (the_bd_bz == 1) {
tellTarget ("_level0.next") {
gotoAndPlay (2);
};
}
Symbol 332 Button
on (press) {
_level0.myp.enabled = 1;
_level0.myp._alpha = 100;
clearInterval(myfun);
gotoAndStop (6);
_root.mytimer.mytimer = 0;
_level0.thetimer.gotoAndStop(1);
_level0.thetimer.tbar._visible = 1;
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 2
ktime = Math.round((2650 - _level0.thetimer._currentframe) / 10);
i = 0;
j = _level0.thetimer._currentframe + 10;
_root.kscore = _root.totalscore0;
myfun = setInterval(function () {
if (i <= ktime) {
_level0.totalscore0 = _root.kscore + i;
_level0.thetimer.gotoAndStop(j);
if (j <= 2250) {
j = j + 50;
}
trace(j);
i = i + 5;
} else {
_level0.thetimer.tbar._visible = 0;
trace("clear");
clearInterval(myfun);
}
}, 1);
_level0.mytimer.gotoAndStop(1);
if (_level0.thinkyou == 9) {
this.gotoAndStop(6);
}
_level0.coola = 0;
_level0.myp.enabled = 0;
_level0.myp._alpha = 30;
Symbol 333 MovieClip Frame 5
stop();
Symbol 333 MovieClip Frame 6
stop();
_level0.thinkyou = _level0.thinkyou + 1;
_level0.thinkits = _level0.thinkits + 1;
if (_level0.thinkyou > 4) {
_level0.thinkits = _level0.thinkits + 1;
}
tellTarget ("_level0.helpnum") {
gotoAndStop(_level0.thinkits + 1);
};
if (_level0.thinkyou < 10) {
tellTarget ("_level0.stages") {
gotoAndStop(_level0.stages._currentframe + 1);
};
tellTarget ("_level0.mytimer") {
gotoAndPlay (1);
};
if (_level0.thinkyou == 2) {
i = 1;
while (i < 141) {
if (i < 36) {
_level0.totaline[i] = i;
}
if ((i > 35) && (i < 71)) {
x = random(45) + 1;
_level0.totaline[i] = x;
}
if (i > 70) {
_level0.totaline[i] = _level0.totaline[i - 70];
}
i++;
}
}
if (_level0.thinkyou > 2) {
i = 1;
while (i < 141) {
if (i < 41) {
_level0.totaline[i] = i;
}
if ((i > 40) && (i < 71)) {
x = random(45) + 1;
_level0.totaline[i] = x;
}
if (i > 70) {
_level0.totaline[i] = _level0.totaline[i - 70];
}
i++;
}
}
i = 0;
while (i < 100) {
x = random(140) + 1;
y = random(140) + 1;
z = _level0.totaline[x];
_level0.totaline[x] = _level0.totaline[y];
_level0.totaline[y] = z;
i++;
}
i = 1;
while (i < 141) {
tellTarget ("_level0.a" + i) {
gotoAndStop(_level0.totaline[_level0.next.i]);
};
i++;
}
j = 1;
i = 1;
while (i < 193) {
x = ((i - 1) % 16) + 1;
y = ((i - x) / 16) + 1;
if ((((x == 1) || (x == 16)) || (y == 1)) || (y == 12)) {
_level0.totalg[i] = 50;
} else {
_level0.totalg[i] = _level0.totaline[j];
j = j + 1;
}
i++;
}
} else {
tellTarget ("_level0.died") {
gotoAndStop (22);
};
tellTarget ("_level0") {
gotoAndStop (5);
};
}
Symbol 342 Button
on (release) {
_root.mybt.enabled = 1;
_root.myf.enabled = 1;
_root.myp.enabled = 1;
_root.helpnum._visible = 1;
_root.gotoAndPlay(1);
}
Symbol 352 Button
on (release) {
_root.mybt.enabled = 1;
_root.myf.enabled = 1;
_root.myp.enabled = 1;
_root.helpnum._visible = 1;
_root.gotoAndPlay(1);
}
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
_root.phb.gotoAndStop(2);
tellTarget ("_level0.thetimer") {
stop();
};
tellTarget ("_level0") {
gotoAndStop (5);
};
Symbol 356 MovieClip Frame 21
stop();
Symbol 356 MovieClip Frame 22
stop();
_root.phb.gotoAndStop(2);
tellTarget ("_level0.thetimer") {
stop();
};
tellTarget ("_level0") {
gotoAndStop (5);
};
Symbol 370 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2638
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2639
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2640
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2641
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2642
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2643
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2644
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2645
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2646
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2647
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2648
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2649
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2650
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2651
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2652
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2653
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2654
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2655
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2656
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2657
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2658
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2659
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 377 MovieClip Frame 2660
stop();
tellTarget ("_level0.died") {
gotoAndStop (2);
};
i = 1;
while (i < 193) {
_level0.totalg[i] = 50;
i++;
}
Symbol 381 Button
on (release, keyPress "r") {
tellTarget ("died") {
gotoAndStop (1);
};
stopAllSounds();
_level0.gotoAndPlay(1);
}
Symbol 386 Button
on (release, keyPress "p") {
if (_level0.esc_bz == 0) {
_level0.esc_bz = 1;
_level0.mytimer.stop();
_level0.bk.gotoAndStop(2);
} else {
_level0.esc_bz = 0;
_level0.mytimer.gotoAndPlay(1);
_level0.mytimer.mytimer = 0;
_level0.bk.gotoAndStop(1);
}
}
Symbol 391 Button
on (release, keyPress "t") {
if (mybt.enabled == true) {
if (_root.thinkits > 0) {
if ((_root.coola != 0) && (_root.totalg[_root.coola] != 50)) {
_root.thinkits = _root.thinkits - 1;
_root.helpnum.gotoAndStop(_root.thinkits + 1);
tellTarget ("_root.g" + _root.coola) {
gotoAndStop (2);
trace("_root.g" + _root.coola);
};
_root.coola0 = _root.coola;
}
if ((_root.coolz != 0) && (_root.totalg[_root.coolz] != 50)) {
tellTarget ("_root.g" + _root.coolz) {
gotoAndStop (2);
trace("_root.g" + _root.coolz);
_root.coolz0 = _root.coolz;
};
}
}
}
}
Symbol 412 MovieClip Frame 7
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 1
timedate = new Date();
mytimerold = 0;
Symbol 430 MovieClip Frame 2
myi = 1;
while (i < 199) {
tttime = tttime + gettime;
i++;
}
mytimerold = mytimer;
mytimer = int(String(timedate.gettime()).substr(0, 10));
sss = mytimer - mytimerold;
sss = int(sss);
if (int(mytimerold) == 0) {
sss = 0;
}
_level0.ssss = 12 * sss;
_level0.thetimer.gotoAndStop(_level0.thetimer._currentframe + _level0.ssss);
Symbol 440 Button
on (press) {
if (((username.text.length != 0) and (useremail.text.length != 0)) and (_root.totalscore0 > 0)) {
_root.game_so.data.playerName = username.text;
_root.game_so.data.useremail = useremail.text;
gotoAndPlay (3);
}
}
Symbol 461 Button
on (release) {
getURL ("http://www.t45ol.com/", "_blank");
}
Symbol 463 Button
on (release) {
getURL ("http://www.t45ol.com/play_flash.php?ID=1046", "_blank");
}
Symbol 467 Button
on (release) {
getURL ("http://www.frontnetwork.net", "_blank");
}
Symbol 469 MovieClip Frame 1
stop();
errorMsg = "";
i = 0;
alien_mc.onEnterFrame = function () {
i = i + 0.25;
i = i % 2;
this.gotoAndStop(i + 1);
};
Symbol 473 Button
on (release) {
_root.mybt._visible = 1;
_root.myf._visible = 1;
_root.myp._visible = 1;
_root.helpnum._visible = 1;
_root.gotoAndPlay(1);
}
Symbol 474 Button
on (release) {
_root.zpet_do_main_menu();
}
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
stop();
_root.mybt._visible = 0;
_root.myf._visible = 0;
_root.myp._visible = 0;
_root.helpnum._visible = 0;
Symbol 477 MovieClip Frame 3
stop();
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "" + _local2;
}
_local1++;
}
return(_local2);
};
score = _root.totalscore0;
trace("\u5F97\u5206=" + _root.totalscore0);
showScores = function () {
var _local2 = 10;
while (_local2 > 0) {
var _local3 = scoreboard_lv["name" + (page + _local2)];
var s = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (_local3.length ? (_local3.toUpperCase()) : "-");
_local1.score_txt.text = s;
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((_root.game_so.data.playerName.length && (_local3.toUpperCase() == _root.game_so.data.playerName.toUpperCase())) ? 3407616 : 16777215)));
_local1._visible = true;
loading_mc._visible = false;
_local2--;
}
};
page = 0;
maxScore = 50;
scoreboard_lv = new LoadVars();
trace("ph===========================");
trace("score=" + score);
if ((score > 0) && (_root.game_so.data.playerName.length > 0)) {
scoreboard_lv.score = score;
scoreboard_lv.name = _root.game_so.data.playerName.toLowerCase();
scoreboard_lv.useremail = _root.game_so.data.useremail.toLowerCase();
trace("\u5F97\u5206=" + scoreboard_lv.score);
trace("\u59D3\u540D=" + scoreboard_lv.name);
trace("\u90AE\u7BB1=" + scoreboard_lv.useremail);
}
scoreboard_lv.game = "lianliankan";
scoreboard_lv.sendAndLoad("game_score.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
trace("success=" + success);
if (Boolean(scoreboard_lv.success)) {
trace("success===================");
trace("scoreboard_lv.maxScore.length=" + scoreboard_lv.maxScore.length);
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
trace("maxScore=" + maxScore);
showScores();
} else {
trace("not success===================");
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
trace("loading_mc.errorMsg=" + loading_mc.errorMsg);
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "SCORES ONLY ON T45OL.COM";
loading_mc.gotoAndStop(2);
}
};
score = 0;
last_btn._visible = false;
next_btn._visible = true;
last_btn.onPress = function () {
page = page - 10;
if (page < 0) {
page = 0;
}
if (page < 10) {
last_btn._visible = false;
}
next_btn._visible = true;
showScores();
};
top_btn.onPress = function () {
page = 1;
next_btn._visible = true;
showScores();
};
next_btn.onPress = function () {
page = page + 10;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
}
last_btn._visible = true;
showScores();
};