Frame 1
loadMovie ("bg1.swf", "bg");
Frame 2
ifFrameLoaded (89) {
gotoAndStop (5);
}
Frame 3
gotoAndPlay (2);
Frame 5
stop();
Frame 7
boxw = "14";
boxh = "14";
totalboxx = "50";
totalboxy = "30";
level = "1";
while (n < "100") {
n = n + "1";
duplicateMovieClip ("box", "box" add n, n + "10");
}
Frame 9
n = "0";
while (n < totalboxx) {
n = n + "1";
Set((("x" add n) add "y") add "1", level);
Set((("x" add n) add "y") add totalboxy, level);
}
n = "0";
while (n < totalboxy) {
n = n + "1";
Set((("x" add "1") add "y") add n, level);
Set((("x" add totalboxx) add "y") add n, level);
}
temp1 = "0";
temp2 = "1000";
call("level" add (level - "1"));
temp1 = level;
temp2 = "0";
call("level" add level);
n = "0";
x = "17";
y = "15";
runx = "1";
runy = "0";
tbox = "1";
num = "0";
cbox = "1";
duplicateMovieClip ("levelstart", "levelstart1", "399");
setProperty("levelstart1", _x , "350");
setProperty("levelstart1", _y , "200");
Set("levelstart1:levelf", "Level: " add level);
call("nextnum");
stop();
Frame 14
cbox = (cbox + "1") - (int(cbox / tbox) * tbox);
Set((("x" add eval ("bx" add cbox)) add "y") add eval ("by" add cbox), "0");
x = x + runx;
y = y + runy;
if (eval ((("x" add x) add "y") add y) == level) {
gotoAndStop (17);
} else if (eval ((("x" add x) add "y") add y) == "20") {
Set((("x" add numx1) add "y") add numy1, "0");
Set((("x" add numx2) add "y") add numy2, "0");
setProperty("box" add cbox, _x , x * boxw);
setProperty("box" add cbox, _y , y * boxh);
Set("bx" add cbox, x);
Set("by" add cbox, y);
Set((("x" add x) add "y") add y, level);
call("nextnum");
} else {
setProperty("box" add cbox, _x , x * boxw);
setProperty("box" add cbox, _y , y * boxh);
Set("bx" add cbox, x);
Set("by" add cbox, y);
Set((("x" add x) add "y") add y, level);
}
Frame 15
gotoAndPlay (14);
Frame 17
duplicateMovieClip ("gameover", "gameover1", "399");
setProperty("gameover1", _x , "350");
setProperty("gameover1", _y , "200");
stop();
Frame 25
n = "0";
while (n < tbox) {
n = n + "1";
Set("bxt" add n, eval ("bx" add n));
Set("byt" add n, eval ("by" add n));
}
n = "0";
while (n < tbox) {
n = n + "1";
n1 = cbox + n;
if (tbox < n1) {
n1 = n1 - tbox;
}
Set("bx" add n, eval ("bxt" add n1));
Set("by" add n, eval ("byt" add n1));
setProperty("box" add n, _x , eval ("bxt" add n1) * boxw);
setProperty("box" add n, _y , eval ("byt" add n1) * boxh);
}
cbox = tbox;
num = num + "1";
tbox = num * "10";
if (num < "10") {
ok = "0";
while (ok == "0") {
numx1 = random(totalboxx - "2") + "2";
numy1 = random(totalboxy - "3") + "2";
numx2 = numx1;
numy2 = numy1 + "1";
if ((eval ((("x" add numx1) add "y") add numy1) == "0") and (eval ((("x" add numx2) add "y") add numy2) == "0")) {
ok = "1";
Set((("x" add numx1) add "y") add numy1, "20");
Set((("x" add numx2) add "y") add numy2, "20");
setProperty("nummc", _x , numx1 * boxw);
setProperty("nummc", _y , numy1 * boxh);
tellTarget ("nummc") {
gotoAndStop(../:num);
};
}
}
} else {
call("nextlevel");
gotoAndStop (9);
}
Frame 33
level = level + "1";
Set((("x" add numx1) add "y") add numy1, "0");
Set((("x" add numx2) add "y") add numy2, "0");
n = "0";
while (n < "100") {
n = n + "1";
Set((("x" add eval ("bx" add n)) add "y") add eval ("by" add n), "0");
Set("bx" add n, "0");
Set("by" add n, "0");
setProperty("box" add n, _x , "1000");
}
Frame 43
n = "0";
while (n < "20") {
n = n + "1";
duplicateMovieClip ("bgbox", "bgbox" add n, n + "200");
setProperty("bgbox" add n, _x , ((n + "10") * boxw) + temp2);
setProperty("bgbox" add n, _y , "10" * boxh);
Set(("x" add (n + "10")) add "y10", temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "30"), (n + "200") + "30");
setProperty("bgbox" add (n + "30"), _x , ((n + "20") * boxw) + temp2);
setProperty("bgbox" add (n + "30"), _y , "20" * boxh);
Set(("x" add (n + "20")) add "y20", temp1);
}
Frame 49
n = "0";
while (n < "23") {
n = n + "1";
duplicateMovieClip ("bgbox", "bgbox" add n, n + "200");
setProperty("bgbox" add n, _x , ((n + "1") * boxw) + temp2);
setProperty("bgbox" add n, _y , "16" * boxh);
Set(("x" add (n + "1")) add "y16", temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "30"), (n + "200") + "30");
setProperty("bgbox" add (n + "30"), _x , ((n + "26") * boxw) + temp2);
setProperty("bgbox" add (n + "30"), _y , "14" * boxh);
Set(("x" add (n + "26")) add "y14", temp1);
}
duplicateMovieClip ("bgbox", "bgbox59", (n + "200") + "59");
setProperty("bgbox59", _x , ("26" * boxw) + temp2);
setProperty("bgbox59", _y , "14" * boxh);
x26y14 = temp1;
Frame 55
n = "2";
while (n < "44") {
n = n + "1";
duplicateMovieClip ("bgbox", "bgbox" add n, n + "200");
setProperty("bgbox" add n, _x , ((n + "2") * boxw) + temp2);
setProperty("bgbox" add n, _y , (int(n / "3") + "11") * boxh);
Set((("x" add (n + "2")) add "y") add (int(n / "3") + "11"), temp1);
}
Frame 61
n = "0";
while (n < "20") {
n = n + "1";
duplicateMovieClip ("bgbox", "bgbox" add n, n + "200");
setProperty("bgbox" add n, _x , ((n + "15") * boxw) + temp2);
setProperty("bgbox" add n, _y , "5" * boxh);
Set(("x" add (n + "15")) add "y5", temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "30"), (n + "200") + "30");
setProperty("bgbox" add (n + "30"), _x , ((n + "14") * boxw) + temp2);
setProperty("bgbox" add (n + "30"), _y , "25" * boxh);
Set(("x" add (n + "14")) add "y25", temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "60"), (n + "200") + "60");
setProperty("bgbox" add (n + "60"), _x , ("13" * boxw) + temp2);
setProperty("bgbox" add (n + "60"), _y , (n + "3") * boxh);
Set(("x13" add "y") add (n + "3"), temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "90"), (n + "200") + "90");
setProperty("bgbox" add (n + "90"), _x , ("37" * boxw) + temp2);
setProperty("bgbox" add (n + "90"), _y , (n + "6") * boxh);
Set(("x37" add "y") add (n + "6"), temp1);
}
Frame 66
n = "2";
while (n < "41") {
n = n + "1";
duplicateMovieClip ("bgbox", "bgbox" add n, n + "200");
setProperty("bgbox" add n, _x , ((n + "4") * boxw) + temp2);
setProperty("bgbox" add n, _y , (int(n / "3") + "3") * boxh);
Set((("x" add (n + "4")) add "y") add (int(n / "3") + "3"), temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "50"), (n + "200") + "50");
setProperty("bgbox" add (n + "50"), _x , ((n + "4") * boxw) + temp2);
setProperty("bgbox" add (n + "50"), _y , (int(n / "3") + "14") * boxh);
Set((("x" add (n + "4")) add "y") add (int(n / "3") + "14"), temp1);
}
Frame 72
n = "0";
n1 = "0";
while (n1 < "4") {
n1 = n1 + "1";
while (n < "28") {
n = n + "1";
if ((n < "14") or ("17" < n)) {
duplicateMovieClip ("bgbox", "bgbox" add (n + (n1 * "30")), (n + "200") + (n1 * "30"));
setProperty("bgbox" add (n + (n1 * "30")), _x , ((n1 * "10") * boxw) + temp2);
setProperty("bgbox" add (n + (n1 * "30")), _y , (n + "1") * boxh);
Set((("x" add (n1 * "10")) add "y") add (n + "1"), temp1);
}
}
n = "0";
}
Frame 77
n = "0";
while (n < "28") {
n = n + "1";
duplicateMovieClip ("bgbox", "bgbox" add n, n + "200");
setProperty("bgbox" add n, _x , ("10" * boxw) + temp2);
setProperty("bgbox" add n, _y , (n + "1") * boxh);
Set(("x10" add "y") add (n + "1"), temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "40"), (n + "200") + "40");
setProperty("bgbox" add (n + "40"), _x , ("25" * boxw) + temp2);
setProperty("bgbox" add (n + "40"), _y , (n + "1") * boxh);
Set(("x25" add "y") add (n + "1"), temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "80"), (n + "200") + "80");
setProperty("bgbox" add (n + "80"), _x , ("40" * boxw) + temp2);
setProperty("bgbox" add (n + "80"), _y , (n + "1") * boxh);
Set(("x40" add "y") add (n + "1"), temp1);
}
setProperty("bgbox5", _x , "1000");
x10y6 = "0";
setProperty("bgbox55", _x , "1000");
x25y16 = "0";
setProperty("bgbox105", _x , "1000");
x40y26 = "0";
Frame 83
n = "0";
while (n < "28") {
n = n + "1";
duplicateMovieClip ("bgbox", "bgbox" add n, n + "200");
setProperty("bgbox" add n, _x , ("10" * boxw) + temp2);
setProperty("bgbox" add n, _y , (n + "1") * boxh);
Set(("x10" add "y") add (n + "1"), temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "40"), (n + "200") + "40");
setProperty("bgbox" add (n + "40"), _x , ("25" * boxw) + temp2);
setProperty("bgbox" add (n + "40"), _y , (n + "1") * boxh);
Set(("x25" add "y") add (n + "1"), temp1);
duplicateMovieClip ("bgbox", "bgbox" add (n + "80"), (n + "200") + "80");
setProperty("bgbox" add (n + "80"), _x , ("40" * boxw) + temp2);
setProperty("bgbox" add (n + "80"), _y , (n + "1") * boxh);
Set(("x40" add "y") add (n + "1"), temp1);
}
setProperty("bgbox5", _x , "1000");
x10y6 = "0";
setProperty("bgbox55", _x , "1000");
x25y16 = "0";
setProperty("bgbox105", _x , "1000");
x40y26 = "0";
Symbol 11 Button
on (release) {
gotoAndPlay (7);
}
Symbol 28 MovieClip Frame 3
gotoAndPlay (1);
Symbol 47 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 4
gotoAndPlay (1);
Symbol 61 Button
on (keyPress "<Space>") {
gotoAndPlay (14);
setProperty("levelstart1", _x , "1200");
}
Symbol 66 Button
on (keyPress "<Up>") {
if (!((runx == "0") and (runy == "1"))) {
runx = "0";
runy = -"1";
}
}
on (keyPress "<Down>") {
if (!((runx == "0") and (runy == (-"1")))) {
runx = "0";
runy = "1";
}
}
on (keyPress "<Left>") {
if (!((runx == "1") and (runy == "0"))) {
runx = -"1";
runy = "0";
}
}
on (keyPress "<Right>") {
if (!((runx == (-"1")) and (runy == "0"))) {
runx = "1";
runy = "0";
}
}
Symbol 67 Button
on (keyPress "<Space>") {
setProperty("gameover1", _x , "1200");
level = level - "1";
call("nextlevel");
gotoAndStop (9);
}
Symbol 77 MovieClip Frame 4
gotoAndPlay (2);