Frame 2
while (ny < "20") {
ny = ny + "1";
nx = "0";
while (nx < "10") {
nx = nx + "1";
duplicateMovieClip ("box", ("b" add (nx + "20")) add (ny + "20"), (ny * "10") + nx);
setProperty(("b" add (nx + "20")) add (ny + "20"), _x , (nx * "19") + "150");
setProperty(("b" add (nx + "20")) add (ny + "20"), _y , ny * "19");
Set(("c" add (nx + "20")) add "41", "1");
Set(("c" add (nx + "20")) add "20", "0");
Set(("c" add (nx + "20")) add "19", "0");
Set(("c" add (nx + "20")) add "18", "0");
}
Set("c20" add (ny + "20"), "1");
Set("c31" add (ny + "20"), "1");
}
ny = "0";
nx = "0";
while (ny < "4") {
ny = ny + "1";
while (nx < "4") {
nx = nx + "1";
Set(("x1" add ny) add nx, substring("1223323212233232", ((ny - "1") * "4") + nx, "1"));
Set(("y1" add ny) add nx, substring("2233122322331223", ((ny - "1") * "4") + nx, "1"));
Set(("x2" add ny) add nx, substring("3123222312312333", ((ny - "1") * "4") + nx, "1"));
Set(("y2" add ny) add nx, substring("2333123322231123", ((ny - "1") * "4") + nx, "1"));
Set(("x3" add ny) add nx, substring("2312223323122233", ((ny - "1") * "4") + nx, "1"));
Set(("y3" add ny) add nx, substring("2233122322331223", ((ny - "1") * "4") + nx, "1"));
Set(("x4" add ny) add nx, substring("1123232212333332", ((ny - "1") * "4") + nx, "1"));
Set(("y4" add ny) add nx, substring("2333112322231233", ((ny - "1") * "4") + nx, "1"));
Set(("x5" add ny) add nx, substring("2123223212323323", ((ny - "1") * "4") + nx, "1"));
Set(("y5" add ny) add nx, substring("2333122322231223", ((ny - "1") * "4") + nx, "1"));
Set(("x6" add ny) add nx, substring("1234222212342222", ((ny - "1") * "4") + nx, "1"));
Set(("y6" add ny) add nx, substring("3333123433331234", ((ny - "1") * "4") + nx, "1"));
Set(("x7" add ny) add nx, substring("2323232323232323", ((ny - "1") * "4") + nx, "1"));
Set(("y7" add ny) add nx, substring("2233223322332233", ((ny - "1") * "4") + nx, "1"));
duplicateMovieClip ("box", ("bn" add nx) add ny, ((ny * "4") + nx) + "210");
setProperty(("bn" add nx) add ny, _x , (nx * "19") + "360");
setProperty(("bn" add nx) add ny, _y , (ny * "19") + "20");
}
nx = "0";
}
sc1 = "10";
sc2 = "30";
sc3 = "60";
sc4 = "120";
ny = "0";
ts = "1";
tn = "1";
loadMovie ("bg1c.swf", "bg");
Frame 3
ifFrameLoaded (55) {
gotoAndStop (5);
}
Frame 4
gotoAndPlay (3);
Frame 8
stop();
Frame 11
n = "0";
while (n < "4") {
n = n + "1";
tellTarget (("bn" add eval ((("x" add tn) add "1") add n)) add eval ((("y" add tn) add "1") add n)) {
gotoAndStop (1);
};
}
tn = random("7") + "1";
ny = "0";
line = "0";
while (ny < "20") {
ny = ny + "1";
nx = "0";
while (nx < "10") {
nx = nx + "1";
Set(("c" add (nx + "20")) add (ny + "20"), "0");
tellTarget (("b" add (nx + "20")) add (ny + "20")) {
gotoAndStop (1);
};
}
}
n = "0";
while (n < "7") {
n = n + "1";
tellTarget ("c" add n) {
gotoAndStop (1);
};
}
ny = high * "2";
while ("0" < ny) {
nx = "0";
while (nx < "10") {
nx = nx + "1";
if (random("2") == "1") {
Set(("c" add (nx + "20")) add ("41" - ny), "1");
tellTarget (("b" add (nx + "20")) add ("41" - ny)) {
gotoAndStop(/:lev + "1");
};
}
}
ny = ny - "1";
}
sc = "0";
Frame 12
tc = tn;
tellTarget ("c" add tc) {
nextFrame();
};
tn = random("7") + "1";
n = "0";
while (n < "4") {
n = n + "1";
tellTarget (("bn" add eval ((("x" add tc) add "1") add n)) add eval ((("y" add tc) add "1") add n)) {
gotoAndStop (1);
};
}
n = "0";
while (n < "4") {
n = n + "1";
tellTarget (("bn" add eval ((("x" add tn) add "1") add n)) add eval ((("y" add tn) add "1") add n)) {
gotoAndStop(/:tn + "1");
};
}
ts = "1";
x = "3";
y = "0";
call("addbox");
Frame 13
ny = "0";
yn = "0";
while (yn == "0") {
ny = ny + "1";
n = "0";
while (n < "4") {
n = n + "1";
if ("0" < eval (("c" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add (((y + eval ((("y" add tc) add ts) add n)) + "20") + ny))) {
yn = "1";
}
}
}
call("delbox");
y = (y + ny) - "1";
n = "0";
while (n < "4") {
n = n + "1";
Set(("c" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add ((y + eval ((("y" add tc) add ts) add n)) + "20"), "1");
tellTarget (("b" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add ((y + eval ((("y" add tc) add ts) add n)) + "20")) {
gotoAndStop(/:lev + "1");
};
}
gotoAndPlay (26);
Frame 14
n = "0";
yn = "0";
while (n < "4") {
n = n + "1";
if ("0" < eval (("c" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add ((y + eval ((("y" add tc) add ts) add n)) + "21"))) {
yn = "1";
}
}
if (yn == "0") {
call("delbox");
y = y + "1";
call("addbox");
gotoAndPlay (28);
} else {
n = "0";
while (n < "4") {
n = n + "1";
Set(("c" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add ((y + eval ((("y" add tc) add ts) add n)) + "20"), "1");
tellTarget (("b" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add ((y + eval ((("y" add tc) add ts) add n)) + "20")) {
gotoAndStop(/:lev + "1");
};
}
gotoAndPlay (26);
}
Frame 16
n = "0";
yn = "0";
while (n < "4") {
n = n + "1";
if ("0" < eval (("c" add ((x + eval ((("x" add tc) add ts) add n)) + "19")) add ((y + eval ((("y" add tc) add ts) add n)) + "20"))) {
yn = "1";
}
}
if (yn == "0") {
call("delbox");
x = x - "1";
call("addbox");
}
Frame 17
n = "0";
yn = "0";
while (n < "4") {
n = n + "1";
if ("0" < eval (("c" add ((x + eval ((("x" add tc) add ts) add n)) + "21")) add ((y + eval ((("y" add tc) add ts) add n)) + "20"))) {
yn = "1";
}
}
if (yn == "0") {
call("delbox");
x = x + "1";
call("addbox");
}
Frame 18
n = "0";
yn = "0";
while (n < "4") {
n = n + "1";
ts1 = ts + "1";
if (ts1 == "5") {
ts1 = "1";
}
if ("0" < eval (("c" add ((x + eval ((("x" add tc) add ts1) add n)) + "20")) add ((y + eval ((("y" add tc) add ts1) add n)) + "20"))) {
yn = "1";
}
}
if (yn == "0") {
call("delbox");
ts = ts + "1";
if (ts == "5") {
ts = "1";
}
call("addbox");
}
Frame 20
n = "0";
while (n < "4") {
n = n + "1";
tellTarget (("b" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add ((y + eval ((("y" add tc) add ts) add n)) + "20")) {
gotoAndStop(/:tc + "1");
};
}
Frame 21
n = "0";
while (n < "4") {
n = n + "1";
tellTarget (("b" add ((x + eval ((("x" add tc) add ts) add n)) + "20")) add ((y + eval ((("y" add tc) add ts) add n)) + "20")) {
gotoAndStop (1);
};
}
Frame 22
n = "0";
while (n < "10") {
n = n + "1";
n1 = (y + n3) + "21";
while ("21" < n1) {
n1 = n1 - "1";
n2 = eval (("c" add (n + "20")) add (n1 - n3));
if (n2 <> eval (("c" add (n + "20")) add n1)) {
Set(("c" add (n + "20")) add n1, n2);
if (n2 == "0") {
tellTarget (("b" add (n + "20")) add n1) {
gotoAndStop (1);
};
} else {
tellTarget (("b" add (n + "20")) add n1) {
gotoAndStop(/:lev + "1");
};
}
}
}
}
Frame 24
ny = "0";
while (ny < "20") {
ny = ny + "1";
nx = "0";
while (nx < "10") {
nx = nx + "1";
if (eval (("c" add (nx + "20")) add (ny + "20")) == "1") {
tellTarget (("b" add (nx + "20")) add (ny + "20")) {
gotoAndStop(/:lev + "1");
};
}
}
}
Frame 27
ny = "5";
n3 = "0";
nd = "0";
while ("1" < ny) {
ny = ny - "1";
nx = "0";
if (((y + ny) + "20") < "41") {
yn = "1";
while (nx < "10") {
nx = nx + "1";
if (eval (("c" add (nx + "20")) add ((y + ny) + "20")) == "0") {
yn = "0";
}
}
if (yn == "1") {
n3 = n3 + "1";
nd = nd + "1";
} else if ("0" < nd) {
n = "0";
while (n < "10") {
n = n + "1";
n2 = eval (("c" add (n + "20")) add ((y + ny) + "20"));
if (n2 <> eval (("c" add (n + "20")) add (((ny + y) + "20") + nd))) {
Set(("c" add (n + "20")) add (((ny + y) + "20") + nd), n2);
if (n2 == "0") {
tellTarget (("b" add (n + "20")) add (((ny + y) + "20") + nd)) {
gotoAndStop (1);
};
} else {
tellTarget (("b" add (n + "20")) add (((ny + y) + "20") + nd)) {
gotoAndStop(/:lev + "1");
};
}
}
}
}
}
}
if ("0" < n3) {
call("delline");
sc = sc + (eval ("sc" add n3) * lev);
line = line + n3;
if ((lev < (int(line / "10") + "1")) and (lev < "21")) {
lev = lev + "1";
call("uplev");
}
}
if ((n3 == "0") and (y == "0")) {
gotoAndStop (54);
} else {
call("next");
gotoAndPlay (28);
}
Frame 28
if (lev < "6") {
gotoAndPlay("l" add lev);
} else {
gotoAndPlay (51);
}
Frame 35
call("dn1");
Frame 41
call("dn1");
Frame 46
call("dn1");
Frame 50
call("dn1");
Frame 53
call("dn1");
Frame 54
n = "0";
while (n < "10") {
n = n + "1";
tellTarget (("b" add (n + "20")) add "30") {
gotoAndStop (1);
};
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 32 Button
on (release) {
play();
}
Symbol 37 Button
on (release) {
getURL ("http://www.hkflash.com/tetris/tetris.zip");
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 70
stop();
Symbol 44 Button
on (release) {
getURL ("http://www.hkflash.com/guestbook.htm", "_blank");
}
Symbol 49 Button
on (release) {
if (lev < "5") {
lev = lev + "1";
call("uplev");
}
}
Symbol 50 Button
on (release) {
if ("1" < lev) {
lev = lev - "1";
call("uplev");
}
}
Symbol 54 Button
on (release) {
if (high < "5") {
high = high + "1";
}
}
Symbol 55 Button
on (release) {
if ("0" < high) {
high = high - "1";
}
}
Symbol 63 Button
on (release) {
getURL ("http://www.hkflash.com", "_blank");
}
Symbol 68 Button
on (release, keyPress "n") {
call("new");
call("next");
gotoAndPlay (28);
}
Symbol 69 Button
on (release, keyPress "n") {
call("new");
call("next");
gotoAndPlay (28);
}
on (keyPress "<Down>") {
call("dn");
}
on (keyPress "<Left>") {
call("lt");
}
on (keyPress "<Right>") {
call("rt");
}
on (keyPress "<Space>") {
call("sp");
}