Frame 1
confirm = "1";
Frame 53
if (confirm eq "0") {
gotoAndPlay (52);
}
Frame 65
stop();
Frame 66
solvecount = "1";
solvemove = "1";
if (levelnum == "1") {
grid = "011111012224012324012324112324122324122324112224044444";
solution = "3111334444422111144443311121344421224313311224133442134442114221343311111224444249";
gridx = "6";
gridy = "9";
xoff1 = "280";
xoff2 = "220";
crate1x = "3";
crate1y = "7";
crate2x = "4";
crate2y = "4";
crate3x = "4";
crate3y = "5";
crate4x = "4";
crate4y = "6";
crate5x = "4";
crate5y = "7";
crates = "5";
xpos = "2";
ypos = "6";
level = "3d Level 01";
}
if (levelnum == "2") {
grid = "11111111122222241242222412222434112432240122223404444444";
solution = "112224433221133333444422221433331111222224434433331112244111222443324433312122211334331341222224433139";
gridx = "8";
gridy = "7";
xoff1 = "200";
xoff2 = "255";
crate1x = "4";
crate1y = "3";
crate2x = "3";
crate2y = "4";
crate3x = "3";
crate3y = "5";
crates = "3";
xpos = "5";
ypos = "4";
level = "3d Level 02";
}
if (levelnum == "3") {
grid = "00111114001222241112222412223324122333444444224000044440";
solution = "43331233311224424221333112441133342129";
gridx = "8";
gridy = "7";
xoff1 = "200";
xoff2 = "300";
crate1x = "4";
crate1y = "3";
crate2x = "5";
crate2y = "3";
crate3x = "6";
crate3y = "3";
crate4x = "4";
crate4y = "4";
crate5x = "3";
crate5y = "5";
crates = "5";
xpos = "2";
ypos = "4";
level = "3d Level 03";
}
if (levelnum == "4") {
grid = "1111111132323412222241322234122222413232341444444";
solution = "9";
gridx = "7";
gridy = "7";
xoff1 = "240";
xoff2 = "240";
crate1x = "3";
crate1y = "3";
crate2x = "3";
crate2y = "4";
crate3x = "3";
crate3y = "5";
crate4x = "4";
crate4y = "3";
crate5x = "4";
crate5y = "5";
crate6x = "5";
crate6y = "3";
crate7x = "5";
crate7y = "4";
crate8x = "5";
crate8y = "5";
crates = "8";
xpos = "4";
ypos = "4";
level = "3d Level 04";
}
if (levelnum == "5") {
grid = "111111112232241223224123322413232341223324122322412232241444444";
solution = "9";
gridx = "7";
gridy = "9";
xoff1 = "250";
xoff2 = "215";
crate1x = "3";
crate1y = "3";
crate2x = "3";
crate2y = "4";
crate3x = "3";
crate3y = "5";
crate4x = "3";
crate4y = "6";
crate5x = "3";
crate5y = "7";
crate6x = "4";
crate6y = "5";
crate7x = "5";
crate7y = "3";
crate8x = "5";
crate8y = "4";
crate9x = "5";
crate9y = "5";
crate10x = "5";
crate10y = "6";
crate11x = "5";
crate11y = "7";
crates = "11";
xpos = "6";
ypos = "2";
level = "3d Level 05";
}
if (levelnum == "6") {
grid = "111111000122224000122224400122133444112233224012222224014444444";
solution = "9";
gridx = "9";
gridy = "7";
xoff1 = "250";
xoff2 = "235";
crate1x = "3";
crate1y = "3";
crate2x = "4";
crate2y = "3";
crate3x = "5";
crate3y = "3";
crate4x = "7";
crate4y = "5";
crates = "4";
xpos = "4";
ypos = "6";
level = "3d Level 06";
}
if (levelnum == "7") {
grid = "000111110000001222400000012224000000123240000011323440011132323444122232322241222232222444444444444";
solution = "9";
gridx = "11";
gridy = "9";
xoff1 = "200";
xoff2 = "220";
crate1x = "6";
crate1y = "3";
crate2x = "5";
crate2y = "4";
crate3x = "7";
crate3y = "4";
crate4x = "6";
crate4y = "5";
crate5x = "5";
crate5y = "6";
crate6x = "7";
crate6y = "6";
crate7x = "4";
crate7y = "7";
crate8x = "6";
crate8y = "7";
crate9x = "8";
crate9y = "7";
crates = "9";
xpos = "6";
ypos = "2";
level = "3d Level 07";
}
if (levelnum == "8") {
grid = "00000111110111112224012332242401243322241123342244422222224042224422404444444444";
solution = "9";
gridx = "10";
gridy = "8";
xoff1 = "180";
xoff2 = "270";
crate1x = "3";
crate1y = "6";
crate2x = "4";
crate2y = "5";
crate3x = "6";
crate3y = "4";
crate4x = "6";
crate4y = "6";
crate5x = "7";
crate5y = "3";
crate6x = "7";
crate6y = "5";
crates = "6";
xpos = "4";
ypos = "6";
level = "3d Level 08";
}
if (levelnum == "9") {
grid = "11111000122211101242324412232224144222240042223400444444";
solution = "9";
gridx = "8";
gridy = "7";
xoff1 = "230";
xoff2 = "270";
crate1x = "4";
crate1y = "4";
crate2x = "4";
crate2y = "5";
crate3x = "5";
crate3y = "3";
crates = "3";
xpos = "6";
ypos = "3";
level = "3d Level 09";
}
if (levelnum == "10") {
grid = "111100122111122234122234122234124234144444";
solution = "9";
gridx = "6";
gridy = "7";
xoff1 = "230";
xoff2 = "240";
crate1x = "3";
crate1y = "3";
crate2x = "3";
crate2y = "5";
crate3x = "4";
crate3y = "3";
crate4x = "4";
crate4y = "4";
crates = "4";
xpos = "2";
ypos = "2";
level = "3d Level 10";
}
gotoAndPlay (67);
Frame 67
score = "";
cratetrans = "0";
xoffs = xoff1;
count = "1";
home = "1";
x = "1";
y = "1";
while ((gridx * gridy) >= count) {
temp = substring(grid, count, "1");
xplot = ((xoffs + (x * "30")) - (y * "31")) + "4";
yplot = (x * "21") + (y * "22");
if (((temp == "1") or (temp == "4")) and (wmode <> "3")) {
duplicateMovieClip ("/brick", "brick" add count, ("200" + (y * gridx)) + x);
setProperty("/brick" add count, _x , xplot);
setProperty("/brick" add count, _y , yplot);
if (wmode == "2") {
setProperty("/brick" add count, _alpha , transparent);
}
if ((temp == "4") and (wmode <> "0")) {
setProperty("/brick" add count, _visible , "0");
}
}
if (temp == "2") {
duplicateMovieClip ("/tile", "tile" add count, count);
setProperty("/tile" add count, _x , xplot);
setProperty("/tile" add count, _y , yplot + "24");
}
if (temp == "3") {
duplicateMovieClip ("/home", "home" add count, count);
setProperty("/home" add count, _x , xplot);
setProperty("/home" add count, _y , yplot + "24");
Set(("home" add home) add "x", x);
Set(("home" add home) add "y", y);
home = home + "1";
}
count = count + "1";
x = x + "1";
if (gridx < x) {
x = "1";
y = y + "1";
}
}
count = "1";
while (crates >= count) {
x = eval (("crate" add count) add "x");
y = eval (("crate" add count) add "y");
xplot = ((xoffs + (x * "30")) - (y * "31")) + "4";
yplot = (x * "21") + (y * "22");
duplicateMovieClip ("/crate", "crate" add count, ("200" + (y * gridx)) + x);
setProperty("/crate" add count, _x , xplot);
setProperty("/crate" add count, _y , yplot + "8");
count = count + "1";
}
xplot = ((xoffs + (xpos * "30")) - (ypos * "31")) + "4";
yplot = (xpos * "21") + (ypos * "22");
duplicateMovieClip ("/man", "theman", ("200" + (ypos * gridx)) + xpos);
setProperty("theman", _x , xplot);
setProperty("theman", _y , yplot + "8");
tellTarget ("theman") {
gotoAndStop (3);
};
levelname = (" " add level) add " ";
Frame 68
if (manmove == "1") {
removeMovieClip("theman");
duplicateMovieClip ("/man", "theman", ("200" + (ypos * gridx)) + xpos);
xplot = ((xoffs + (xpos * "30")) - (ypos * "31")) + "4";
yplot = (xpos * "21") + (ypos * "22");
setProperty("theman", _x , xplot);
setProperty("theman", _y , yplot + "8");
tellTarget ("theman") {
gotoAndStop(_level0:face);
};
manmove = "0";
}
if (cratedraw == "1") {
count = "1";
homecount = "0";
while (crates >= count) {
removeMovieClip("crate" add count);
x = eval (("crate" add count) add "x");
y = eval (("crate" add count) add "y");
xplot = ((xoffs + (x * "30")) - (y * "31")) + "4";
yplot = (x * "21") + (y * "22");
duplicateMovieClip ("/crate", "crate" add count, ("200" + (y * gridx)) + x);
setProperty("/crate" add count, _x , xplot);
setProperty("/crate" add count, _y , yplot + "8");
if (cratetrans == "1") {
setProperty("/crate" add count, _visible , "0");
}
count2 = "1";
while (crates >= count2) {
homex = eval (("home" add count2) add "x");
homey = eval (("home" add count2) add "y");
if ((homex == x) and (homey == y)) {
homecount = homecount + "1";
}
count2 = count2 + "1";
}
count = count + "1";
}
cratedraw = "0";
tellTarget ("/sound") {
gotoAndPlay (2);
};
score = (("Score " add homecount) add "/") add crates;
if (homecount == crates) {
gotoAndPlay (70);
}
}
Frame 69
if ((solve == "1") and (solvecount < solvepause)) {
solvecount = solvecount + "1";
}
if ((solve == "1") and (solvecount == solvepause)) {
key = substring(solution, solvemove, "1");
if (key == "9") {
solve = "0";
}
solvecount = "1";
solvemove = solvemove + "1";
if (key == "1") {
if ("0" < ypos) {
t = ((ypos - "2") * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos - "1"))) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos - "2"))) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if ("1" < ypos) {
t = ((ypos - "3") * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "y", ypos - "2");
cratedraw = "1";
ypos = ypos - "1";
face = "2";
manmove = "1";
}
if (hitcrate == "0") {
ypos = ypos - "1";
face = "2";
manmove = "1";
}
}
}
}
if (key == "2") {
if ("1" < xpos) {
t = ((ypos - "1") * gridx) + (xpos - "1");
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos - "1")) and (tempy == ypos)) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos - "2")) and (tempy == ypos)) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if ("2" < xpos) {
t = ((ypos - "1") * gridx) + (xpos - "2");
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "x", xpos - "2");
cratedraw = "1";
xpos = xpos - "1";
face = "1";
manmove = "1";
}
if (hitcrate == "0") {
xpos = xpos - "1";
face = "1";
manmove = "1";
}
}
}
}
if (key == "3") {
if (xpos < gridx) {
t = ((ypos - "1") * gridx) + (xpos + "1");
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos + "1")) and (tempy == ypos)) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos + "2")) and (tempy == ypos)) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if (xpos < (gridx - "1")) {
t = ((ypos - "1") * gridx) + (xpos + "2");
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "x", xpos + "2");
cratedraw = "1";
xpos = xpos + "1";
face = "3";
manmove = "1";
}
if (hitcrate == "0") {
xpos = xpos + "1";
face = "3";
manmove = "1";
}
}
}
}
if (key == "4") {
if (ypos < gridy) {
t = (ypos * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos + "1"))) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos + "2"))) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if (ypos < (gridy - "1")) {
t = ((ypos + "1") * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "y", ypos + "2");
cratedraw = "1";
ypos = ypos + "1";
face = "4";
manmove = "1";
}
if (hitcrate == "0") {
ypos = ypos + "1";
face = "4";
manmove = "1";
}
}
}
}
}
gotoAndPlay (68);
Frame 70
solve = "0";
count = "1";
while (count < "300") {
removeMovieClip("brick" add count);
removeMovieClip("tile" add count);
removeMovieClip("home" add count);
removeMovieClip("crate" add count);
count = count + "1";
}
removeMovieClip("theman");
stop();
Symbol 9 Button
on (press) {
getURL ("http://www.edesign.uk.com", "_blank");
}
Symbol 18 MovieClip Frame 46
stop();
Symbol 29 Button
on (press) {
levelnum = "1";
transparent = "33";
wmode = "1";
solve = "0";
solvepause = "8";
gotoAndPlay (66);
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 3
stop();
Symbol 46 MovieClip Frame 4
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 54 Button
on (keyPress "<Up>") {
solve = "0";
if ("0" < ypos) {
t = ((ypos - "2") * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos - "1"))) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos - "2"))) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if ("1" < ypos) {
t = ((ypos - "3") * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "y", ypos - "2");
cratedraw = "1";
ypos = ypos - "1";
face = "2";
manmove = "1";
}
if (hitcrate == "0") {
ypos = ypos - "1";
face = "2";
manmove = "1";
}
}
}
}
on (keyPress "<Right>") {
solve = "0";
if (xpos < gridx) {
t = ((ypos - "1") * gridx) + (xpos + "1");
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos + "1")) and (tempy == ypos)) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos + "2")) and (tempy == ypos)) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if (xpos < (gridx - "1")) {
t = ((ypos - "1") * gridx) + (xpos + "2");
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "x", xpos + "2");
cratedraw = "1";
xpos = xpos + "1";
face = "3";
manmove = "1";
}
if (hitcrate == "0") {
xpos = xpos + "1";
face = "3";
manmove = "1";
}
}
}
}
on (keyPress "<Left>") {
solve = "0";
if ("1" < xpos) {
t = ((ypos - "1") * gridx) + (xpos - "1");
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos - "1")) and (tempy == ypos)) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == (xpos - "2")) and (tempy == ypos)) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if ("2" < xpos) {
t = ((ypos - "1") * gridx) + (xpos - "2");
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "x", xpos - "2");
cratedraw = "1";
xpos = xpos - "1";
face = "1";
manmove = "1";
}
if (hitcrate == "0") {
xpos = xpos - "1";
face = "1";
manmove = "1";
}
}
}
}
on (keyPress "<Down>") {
solve = "0";
if (ypos < gridy) {
t = (ypos * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "2") or (test == "3")) {
count = "1";
hitcrate = "false";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos + "1"))) {
hitcrate = "1";
hitcratenum = count;
}
count = count + "1";
}
if (hitcrate == "1") {
count = "1";
hitcrate2 = "0";
while (crates >= count) {
tempx = eval (("crate" add count) add "x");
tempy = eval (("crate" add count) add "y");
if ((tempx == xpos) and (tempy == (ypos + "2"))) {
hitcrate2 = "1";
}
count = count + "1";
}
}
if (ypos < (gridy - "1")) {
t = ((ypos + "1") * gridx) + xpos;
test = substring(grid, t, "1");
if ((test == "1") or (test == "4")) {
hitcrate2 = "1";
}
} else {
hitcrate2 = "1";
}
if ((hitcrate == "1") and (hitcrate2 == "0")) {
Set(("crate" add hitcratenum) add "y", ypos + "2");
cratedraw = "1";
ypos = ypos + "1";
face = "4";
manmove = "1";
}
if (hitcrate == "0") {
ypos = ypos + "1";
face = "4";
manmove = "1";
}
}
}
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
stop();
Symbol 59 MovieClip Frame 3
stop();
Symbol 59 MovieClip Frame 4
stop();
Symbol 63 Button
on (press) {
tellTarget ("/wallmode") {
nextFrame();
play();
};
wmode = wmode + "1";
if (wmode == "4") {
wmode = "0";
}
count = "1";
x = "1";
y = "1";
while ((gridx * gridy) >= count) {
temp = substring(grid, count, "1");
removeMovieClip("brick" add count);
xplot = ((xoffs + (x * "30")) - (y * "31")) + "4";
yplot = (x * "21") + (y * "22");
if (((temp == "1") or (temp == "4")) and (wmode <> "3")) {
duplicateMovieClip ("/brick", "brick" add count, ("200" + (y * gridx)) + x);
setProperty("/brick" add count, _x , xplot);
setProperty("/brick" add count, _y , yplot);
if (wmode == "2") {
setProperty("/brick" add count, _alpha , transparent);
}
if ((temp == "4") and (wmode <> "0")) {
setProperty("/brick" add count, _alpha , "0");
}
}
count = count + "1";
x = x + "1";
if (gridx < x) {
x = "1";
y = y + "1";
}
}
}
Symbol 68 Button
on (press) {
solve = "0";
tempx = gridx;
tempy = gridy;
tempgrid = "";
x = "1";
y = "1";
count = "1";
while ((gridx * gridy) >= count) {
t = substring(grid, ((y - "1") * gridx) + x, "1");
tempgrid = tempgrid add t;
y = y + "1";
if (gridy < y) {
y = "1";
x = x + "1";
}
count = count + "1";
}
grid = tempgrid;
gridx = tempy;
gridy = tempx;
count = "1";
while (count < "300") {
removeMovieClip("brick" add count);
removeMovieClip("tile" add count);
removeMovieClip("home" add count);
removeMovieClip("crate" add count);
count = count + "1";
}
removeMovieClip("theman");
count = "1";
home = "1";
x = "1";
y = "1";
if (xoffs == xoff1) {
xoffs = xoff2;
} else {
xoffs = xoff1;
}
while ((gridx * gridy) >= count) {
temp = substring(grid, count, "1");
xplot = ((xoffs + (x * "30")) - (y * "31")) + "4";
yplot = (x * "21") + (y * "22");
if (((temp == "1") or (temp == "4")) and (wmode <> "3")) {
duplicateMovieClip ("/brick", "brick" add count, ("200" + (y * gridx)) + x);
setProperty("/brick" add count, _x , xplot);
setProperty("/brick" add count, _y , yplot);
if (wmode == "2") {
setProperty("/brick" add count, _alpha , transparent);
}
if ((temp == "4") and (wmode <> "0")) {
setProperty("/brick" add count, _alpha , "0");
}
}
if (temp == "2") {
duplicateMovieClip ("/tile", "tile" add count, count);
setProperty("/tile" add count, _x , xplot);
setProperty("/tile" add count, _y , yplot + "24");
}
if (temp == "3") {
duplicateMovieClip ("/home", "home" add count, count);
setProperty("/home" add count, _x , xplot);
setProperty("/home" add count, _y , yplot + "24");
Set(("home" add home) add "x", x);
Set(("home" add home) add "y", y);
home = home + "1";
}
count = count + "1";
x = x + "1";
if (gridx < x) {
x = "1";
y = y + "1";
}
}
temp = xpos;
xpos = ypos;
ypos = temp;
manmove = "1";
count = "1";
while (crates >= count) {
x = eval (("crate" add count) add "x");
y = eval (("crate" add count) add "y");
Set(("crate" add count) add "x", y);
Set(("crate" add count) add "y", x);
count = count + "1";
}
cratedraw = "1";
}
Symbol 74 Button
on (press) {
solve = "0";
count = "1";
while (count < "300") {
removeMovieClip("brick" add count);
removeMovieClip("tile" add count);
removeMovieClip("home" add count);
removeMovieClip("crate" add count);
count = count + "1";
}
removeMovieClip("theman");
gotoAndPlay (66);
}
Symbol 76 Button
on (press) {
if (cratetrans == "1") {
cratetrans = "0";
} else {
cratetrans = "1";
}
cratedraw = "1";
}
Symbol 82 Button
on (press) {
if (solve == "0") {
solve = "1";
count = "1";
while (count < "300") {
removeMovieClip("brick" add count);
removeMovieClip("tile" add count);
removeMovieClip("home" add count);
removeMovieClip("crate" add count);
count = count + "1";
}
removeMovieClip("theman");
gotoAndPlay (66);
} else {
solve = "0";
}
}
Symbol 84 Button
on (press) {
levelnum = levelnum + "1";
if ("10" < levelnum) {
levelnum = "1";
}
gotoAndPlay (66);
}