Frame 1
function doSomething() {
}
function doSomething2() {
getURL ("http://www.dead-tree.com", "blank");
}
function doSomething3() {
_quality = "LOW";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "HIGH";
}
NewgroundsAPI.connectMovie(1758);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Made by Bulortio", doSomething);
MENU.customItems.push(Functioned);
Functioned2 = new ContextMenuItem("www.dead-tree.com", doSomething2);
MENU.customItems.push(Functioned2);
Functioned3 = new ContextMenuItem("Quality: Low", doSomething3);
MENU.customItems.push(Functioned3);
Functioned4 = new ContextMenuItem("Quality: Medium", doSomething4);
MENU.customItems.push(Functioned4);
Functioned5 = new ContextMenuItem("Quality: High", doSomething5);
MENU.customItems.push(Functioned5);
_root.menu = MENU;
Frame 2
_global.currlvl = 1;
_global.maparray = new Array();
_global.maparray = [[], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 4, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 3, 1, 1, 1, 1, 3, 2, 2, 2, 2, 2, 2, 1, 2, 1, 3, 1, 3, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 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3, 3, 3, 3, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 1, 1, 3, 3, 1, 1, 1, 3, 1, 3, 1, 1, 1, 3, 3, 1, 3, 3, 1, 1, 3, 1, 3, 3, 3, 1, 3, 3, 3, 3, 4, 1, 1, 1, 1, 3, 1, 1, 1, 3, 1, 3, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]];
_global.levelmsg = new Array();
_global.passwords = new Array();
_global.passwords = [" ", "sightless", "sharpedges", "keypass", "zoomtoyou", "downdecent", "wrongstep", "mishmish", "lolalevel", "fencefish", "yyut", "headon", "seveneye", "firedeath", "zipgoo", "saptill", "mekmekmek", "starskull", "flawmap", "ihateyou", "highjack", "deardeer", "fiveyut", "watersolid", "mektesh", "almostdie", "forcetobe", "unband", "tishlish", "iiooww", "endishness"];
_global.levelmsg = [[], ["Floor: 1 \n\nThis purple fog is really thick, I better be careful! I need to get to the swirling blue portal in one peice. \n\n (ASDW to move)"], ["Floor: 2 \n\nI hear some mechanical whirling sound... this can't be good. "], ["Floor: 3 \n\nDoors of energy: I need to get the keys that match the door's color to be able to pass through. I can only use one key per door, and if I try to pass through without the right key I'll be vaporized!"], ["Floor: 4 \n\nMini portals: If I hold SPACEBAR while under a beacon I can see where they will teleport me to."], ["Floor: 5 \n\nI'll have to explore the two side wings of this room."], ["Floor: 6 \n\nI better time this right..."], ["Floor: 7 \n\nWow, the portal is right infront of me!"], ["Floor: 8 \n\nNothing funny about this floor."], ["Floor: 9 \n\nThis looks interesting"], ["Floor: 10 \n\nI bet this room isn't as simple as it looks..."], ["Floor: 11 \n\nA wall of death..."], ["Floor: 12 \n\nI hate mazes!!"], ["Floor: 13 \n\nAnother test of timing..."], ["Floor: 14 \n\nLeft...Up...Up...Right."], ["Floor: 15 \n\nHope my memory is sharp!"], ["Floor: 16 \n\nAhh, an easy room."], ["Floor: 17 \n\nAnother damn maze! Have to plan my path well."], ["Floor: 18 \n\nOnly one enemy, shouldn't be a problem."], ["Floor: 19 \n\nWOW those are some fast blades"], ["Floor: 20 \n\nOnly ten more floors after this. I can do it!"], ["Floor: 21 \n\nI must memorize his movement pattern."], ["Floor: 22 \n\nTiming and memorization!"], ["Floor: 23 \n\nTwo layers of death!"], ["Floor: 24 \n\\our corners of death!"], ["Floor: 25 \n\nClose quarters..."], ["Floor: 26 \n\nIt makes me dizzy."], ["Floor: 27 \n\nLeft or right?"], ["Floor: 28 \n\nSo many doors."], ["Floor: 29 \n\nalmost there!"], ["Floor: 30 \n\nThe final test!"]];
stop();
Instance of Symbol 127 MovieClip in Frame 2
onClipEvent (enterFrame) {
stopAllSounds();
}
Frame 3
function putit(thing, ex, why) {
thing._x = getNumb(ex);
thing._y = getNumb(why);
}
function death() {
if (_global.counttodeath == 40) {
map.overlayer._alpha = 0;
desound.start();
_root.attachMovie("deathscreen", "DScreen", 2000);
}
_global.counttodeath--;
if (_global.counttodeath <= 0) {
removeMovieClip(_root.DScreen);
removeMovieClip(_root.map);
initGame();
}
}
function victory() {
if (_root.map.hero._alpha == 100) {
wsound.start();
}
_root.map.hero._rotation = _root.map.hero._rotation - 55;
_root.map.hero._alpha = _root.map.hero._alpha - 5;
_root.map.hero._xscale = _root.map.hero._xscale + 30;
_root.map.hero._yscale = _root.map.hero._yscale + 30;
if (_root.map.hero._alpha <= 0) {
removeMovieClip(_root.map);
_global.currlvl++;
if (_global.currlvl > 30) {
gotoAndStop (5);
} else {
initGame();
}
}
}
function getNumb(num) {
num = (num * 40) + 20;
return(num);
}
function getCoord(num) {
return(Math.floor(num / 40));
}
function overlay() {
if ((map[(("tilex" + getCoord(map.hero._x)) + "y") + getCoord(map.hero._y)].special == "switch") && (map.overlayer._alpha > 0)) {
map.overlayer._alpha = map.overlayer._alpha - 15;
} else if ((map[(("tilex" + getCoord(map.hero._x)) + "y") + getCoord(map.hero._y)].special != "switch") && (map.overlayer._alpha < 100)) {
map.overlayer._alpha = map.overlayer._alpha + 15;
}
}
function keyrun(keyy) {
if (_root.map.hero.hitTest(keyy)) {
_global["get" + keyy.colour]++;
ksound.start();
removeMovieClip(keyy);
}
}
function doorrun(door) {
if (_root.map.hero.hitTest(door) && (_global["get" + door.colour] > 0)) {
_global["get" + door.colour]--;
dsound.start();
removeMovieClip(door);
} else if (_root.map.hero.hitTest(door) && (_global["get" + door.colour] != true)) {
_global.lostlvl = true;
}
}
function MPrun(mp, num) {
if (_root.map.hero.hitbox.hitTest(mp)) {
putit(_root.map.hero, mp.endportx, mp.endporty);
tsound.start();
}
if (Key.isDown(32) && (map.overlayer._alpha < 50)) {
_root.map.createEmptyMovieClip("pathto" + num, 1440 + num);
with (map["pathto" + num]) {
moveTo(mp._x, mp._y);
lineStyle(5, (("0x" + (num * 25)) + "00") + 70, 80);
lineTo(mp._x, mp._y);
lineTo(getNumb(mp.endportx), getNumb(mp.endporty));
}
} else {
map["pathto" + num].removeMovieClip();
}
}
function AIrun(nmy) {
if (nmy.hitbox.hitTest(_root.map.hero.hitbox)) {
_global.lostlvl = true;
} else {
if (nmy.currpath >= (nmy.pathing.length - 1)) {
nextpath = 0;
} else {
nextpath = nmy.currpath + 1;
}
if ((((nmy._y >= (getNumb(nmy.pathing[nextpath][1]) - 3)) && (nmy._y <= (getNumb(nmy.pathing[nextpath][1]) + 3))) && (nmy._x >= (getNumb(nmy.pathing[nextpath][0]) - 3))) && (nmy._x <= (getNumb(nmy.pathing[nextpath][0]) + 3))) {
nmy.currpath = nextpath;
tik.start();
}
nmy._x = nmy._x + nmy.pathing[nmy.currpath][2];
nmy._y = nmy._y + nmy.pathing[nmy.currpath][3];
}
}
function talk(lvl, ex, why) {
map.attachMovie("talkbox", "talkbox", 2020);
map.talkbox._x = 320;
map.talkbox._y = 250;
_global.talking = true;
map[(("tilex" + ex) + "y") + why].special = " ";
if (why == "start") {
map.talkbox.ttext = _global.levelmsg[_global.currlvl];
}
if (((lvl == 1) && (ex == 2)) && (why == 5)) {
map.talkbox.ttext = "It looks like there is a magical beacon up ahead. Perhaps I can see through the fog if I stand under it?";
}
if (((lvl == 1) && (ex == 4)) && (why == 2)) {
map.talkbox.ttext = "Hmm... The fog came back, I hope I can remember where those pits were so I can avoid them! \n (hold SPACEBAR to see the grid and help you plan your path)";
}
}
function paintmap(level) {
_root.createEmptyMovieClip("map", 1);
why = 0;
ex = 40;
i = 0;
while (i < 180) {
if ((i % 15) == 0) {
why = why + 40;
ex = 40;
}
xp = getCoord(ex);
yp = getCoord(why);
map.attachMovie("tile", [(("tilex" + xp) + "y") + yp], 10 + i);
map[(("tilex" + xp) + "y") + yp]._x = ex;
map[(("tilex" + xp) + "y") + yp]._y = why;
if (_global.maparray[level][i] == 2) {
map[(("tilex" + xp) + "y") + yp].special = "wall";
map[(("tilex" + xp) + "y") + yp].swapDepths(600 + i);
} else if (_global.maparray[level][i] == 4) {
map[(("tilex" + xp) + "y") + yp].special = "switch";
map.attachMovie("light", ["light" + i], 1010 + i);
map["light" + i]._x = getNumb(xp);
map["light" + i]._y = getNumb(yp);
} else if (_global.maparray[level][i] == 3) {
map[(("tilex" + xp) + "y") + yp].special = "pit";
}
map[(("tilex" + xp) + "y") + yp].gotoAndStop(_global.maparray[level][i]);
ex = ex + 40;
i++;
}
map.attachMovie("fog", "overlayer", 500);
map._x = map._x - 40;
map._y = map._y - 40;
map.attachMovie("thegrid", "thegrid", 1400);
map.thegrid._visible = false;
map.attachMovie("hero", "hero", 1001);
map.attachMovie("goal", "goal", 1000);
map.hero.stop();
if (level == 1) {
putit(map.hero, 2, 11);
putit(map.goal, 14, 8);
_global.nmycount = 0;
map.tilex2y5.special = "tbox";
map.tilex4y2.special = "tbox";
}
if (level == 2) {
putit(map.hero, 2, 4);
putit(map.goal, 4, 9);
_global.nmycount = 2;
map.attachMovie("nmy", "nmy1", 400);
putit(map.nmy1, 7, 2);
map.nmy1.pathing = [[7, 2, 0, 3], [7, 6, 0, -3]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 401);
putit(map.nmy2, 9, 2);
map.nmy2.pathing = [[9, 2, 0, 3], [9, 6, 0, -3]];
map.nmy2.currpath = 0;
}
if (level == 3) {
putit(map.hero, 8, 11);
putit(map.goal, 8, 2);
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 2, 8);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 14, 8);
map.keypass2.gotoAndStop("blue");
map.keypass2.colour = "blue";
map.attachMovie("door", "door1", 404);
putit(map.door1, 8, 3);
map.door1.gotoAndStop("red");
map.door1._rotation = 90;
map.door1.colour = "red";
map.attachMovie("door", "door2", 405);
putit(map.door2, 8, 4);
map.door2.gotoAndStop("blue");
map.door2._rotation = 90;
map.door2.colour = "blue";
_global.doorcount = 2;
_global.keycount = 2;
_global.nmycount = 2;
map.attachMovie("nmy", "nmy1", 400);
putit(map.nmy1, 4, 5);
map.nmy1.pathing = [[4, 5, 0, 5], [4, 11, -5, 0], [2, 11, 0, -5], [2, 5, 5, 0]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 401);
putit(map.nmy2, 12, 5);
map.nmy2.pathing = [[12, 5, 5, 0], [14, 5, 0, 5], [14, 11, -5, 0], [12, 11, 0, -5]];
map.nmy2.currpath = 0;
}
if (level == 4) {
map.attachMovie("nmy", "nmy1", 400);
putit(map.nmy1, 4, 11);
map.nmy1.pathing = [[4, 11, 0, -4], [4, 8, 0, 4]];
map.nmy1.currpath = 0;
_global.nmycount = 1;
putit(map.hero, 2, 11);
putit(map.goal, 14, 8);
map.attachMovie("miniport", "miniport1", 414);
map.attachMovie("miniport", "miniport2", 415);
map.attachMovie("miniport", "miniport3", 416);
map.attachMovie("miniport", "miniport4", 417);
putit(map.miniport1, 4, 2);
putit(map.miniport2, 4, 3);
putit(map.miniport3, 4, 4);
putit(map.miniport4, 4, 5);
_global.miniportcount = 4;
map.miniport1.endportx = 14;
map.miniport1.endporty = 7;
map.miniport2.endportx = 7;
map.miniport2.endporty = 10;
map.miniport3.endportx = 2;
map.miniport3.endporty = 11;
map.miniport4.endportx = 4;
map.miniport4.endporty = 8;
}
if (level == 5) {
putit(map.hero, 2, 6);
putit(map.goal, 14, 6);
_global.doorcount = 6;
_global.keycount = 6;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 3, 4);
map.keypass1.gotoAndStop("blue");
map.keypass1.colour = "blue";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 3, 8);
map.keypass2.gotoAndStop("red");
map.keypass2.colour = "red";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 9, 8);
map.keypass3.gotoAndStop("red");
map.keypass3.colour = "red";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 9, 4);
map.keypass4.gotoAndStop("blue");
map.keypass4.colour = "blue";
map.attachMovie("keypass", "keypass5", 406);
putit(map.keypass5, 5, 2);
map.keypass5.gotoAndStop("white");
map.keypass5.colour = "white";
map.attachMovie("keypass", "keypass6", 407);
putit(map.keypass6, 5, 10);
map.keypass6.gotoAndStop("white");
map.keypass6.colour = "white";
map.attachMovie("door", "door1", 408);
putit(map.door1, 4, 4);
map.door1.gotoAndStop("red");
map.door1.colour = "red";
map.attachMovie("door", "door2", 409);
putit(map.door2, 4, 8);
map.door2.gotoAndStop("blue");
map.door2.colour = "blue";
map.attachMovie("door", "door3", 410);
putit(map.door3, 8, 6);
map.door3.gotoAndStop("red");
map.door3.colour = "red";
map.attachMovie("door", "door4", 411);
putit(map.door4, 9, 6);
map.door4.gotoAndStop("blue");
map.door4.colour = "blue";
map.attachMovie("door", "door5", 412);
putit(map.door5, 10, 6);
map.door5.gotoAndStop("white");
map.door5.colour = "white";
map.attachMovie("door", "door6", 413);
putit(map.door6, 11, 6);
map.door6.gotoAndStop("white");
map.door6.colour = "white";
}
if (level == 6) {
putit(map.hero, 3, 8);
_global.nmycount = 2;
map.attachMovie("nmy", "nmy1", 400);
putit(map.nmy1, 2, 6);
map.nmy1.pathing = [[2, 6, 8, 0], [14, 6, -8, 0]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 401);
putit(map.nmy2, 14, 6);
map.nmy2.pathing = [[14, 6, -8, 0], [2, 6, 8, 0]];
map.nmy2.currpath = 0;
putit(map.goal, 14, 9);
}
if (level == 7) {
putit(map.hero, 8, 7);
_global.nmycount = 1;
map.attachMovie("nmy", "nmy1", 400);
putit(map.nmy1, 10, 3);
map.nmy1.pathing = [[10, 3, 4, 0], [14, 3, 0, 4], [14, 9, -4, 0], [10, 9, 0, -4]];
map.nmy1.currpath = 0;
putit(map.goal, 8, 5);
_global.doorcount = 4;
_global.keycount = 4;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 12, 7);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 8, 11);
map.keypass2.gotoAndStop("green");
map.keypass2.colour = "green";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 3, 9);
map.keypass3.gotoAndStop("green");
map.keypass3.colour = "green";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 6, 3);
map.keypass4.gotoAndStop("white");
map.keypass4.colour = "white";
map.attachMovie("door", "door1", 408);
putit(map.door1, 7, 10);
map.door1.gotoAndStop("green");
map.door1.colour = "green";
map.attachMovie("door", "door2", 409);
putit(map.door2, 9, 10);
map.door2.gotoAndStop("green");
map.door2.colour = "green";
map.attachMovie("door", "door3", 410);
putit(map.door3, 12, 4);
map.door3.gotoAndStop("white");
map.door3.colour = "white";
map.door3._rotation = 90;
map.attachMovie("door", "door4", 411);
putit(map.door4, 8, 6);
map.door4.gotoAndStop("red");
map.door4.colour = "red";
map.door4._rotation = 90;
}
if (level == 8) {
putit(map.hero, 8, 11);
putit(map.goal, 2, 11);
_global.nmycount = 1;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 7, 2);
map.nmy1.pathing = [[7, 2, 5, 0], [9, 2, 0, 5], [9, 5, -5, 0], [7, 5, 0, -5]];
map.nmy1.currpath = 0;
_global.doorcount = 3;
_global.keycount = 3;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 3, 5);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 9, 2);
map.keypass2.gotoAndStop("red");
map.keypass2.colour = "red";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 11, 5);
map.keypass3.gotoAndStop("red");
map.keypass3.colour = "red";
map.attachMovie("door", "door1", 408);
putit(map.door1, 3, 8);
map.door1.gotoAndStop("red");
map.door1.colour = "red";
map.attachMovie("door", "door2", 409);
putit(map.door2, 8, 7);
map.door2.gotoAndStop("red");
map.door2.colour = "red";
map.attachMovie("door", "door3", 410);
putit(map.door3, 13, 8);
map.door3.gotoAndStop("red");
map.door3.colour = "red";
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 7, 9);
map.miniport1.endportx = 5;
map.miniport1.endporty = 5;
map.attachMovie("miniport", "miniport2", 415);
putit(map.miniport2, 8, 9);
map.miniport2.endportx = 7;
map.miniport2.endporty = 2;
map.attachMovie("miniport", "miniport3", 416);
putit(map.miniport3, 9, 9);
map.miniport3.endportx = 13;
map.miniport3.endporty = 5;
map.attachMovie("miniport", "miniport4", 417);
putit(map.miniport4, 7, 5);
map.miniport4.endportx = 8;
map.miniport4.endporty = 11;
map.attachMovie("miniport", "miniport5", 418);
putit(map.miniport5, 11, 2);
map.miniport5.endportx = 8;
map.miniport5.endporty = 11;
map.attachMovie("miniport", "miniport6", 419);
putit(map.miniport6, 3, 2);
map.miniport6.endportx = 2;
map.miniport6.endporty = 7;
map.attachMovie("miniport", "miniport7", 420);
putit(map.miniport7, 4, 7);
map.miniport7.endportx = 14;
map.miniport7.endporty = 7;
map.attachMovie("miniport", "miniport8", 421);
putit(map.miniport8, 12, 7);
map.miniport8.endportx = 6;
map.miniport8.endporty = 8;
map.attachMovie("miniport", "miniport9", 422);
putit(map.miniport9, 10, 8);
map.miniport9.endportx = 2;
map.miniport9.endporty = 11;
_global.miniportcount = 9;
}
if (level == 9) {
putit(map.hero, 2, 11);
putit(map.goal, 14, 11);
_global.nmycount = 2;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 4, 2);
map.nmy1.pathing = [[4, 2, 5, 0], [12, 2, 0, 5], [12, 11, -5, 0], [4, 11, 0, -5]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 12, 11);
map.nmy2.pathing = [[12, 11, -5, 0], [4, 11, 0, -5], [4, 2, 5, 0], [12, 2, 0, 5]];
map.nmy2.currpath = 0;
_global.doorcount = 6;
_global.keycount = 6;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 2, 6);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 6, 4);
map.keypass2.gotoAndStop("blue");
map.keypass2.colour = "blue";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 6, 9);
map.keypass3.gotoAndStop("white");
map.keypass3.colour = "white";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 10, 4);
map.keypass4.gotoAndStop("blue");
map.keypass4.colour = "blue";
map.attachMovie("keypass", "keypass5", 406);
putit(map.keypass5, 10, 9);
map.keypass5.gotoAndStop("white");
map.keypass5.colour = "white";
map.attachMovie("keypass", "keypass6", 407);
putit(map.keypass6, 14, 2);
map.keypass6.gotoAndStop("green");
map.keypass6.colour = "green";
map.attachMovie("door", "door1", 408);
putit(map.door1, 6, 3);
map.door1.gotoAndStop("red");
map.door1.colour = "red";
map.door1._rotation = 90;
map.attachMovie("door", "door2", 409);
putit(map.door2, 6, 10);
map.door2.gotoAndStop("green");
map.door2.colour = "green";
map.door2._rotation = 90;
map.attachMovie("door", "door3", 410);
putit(map.door3, 10, 3);
map.door3.gotoAndStop("white");
map.door3.colour = "white";
map.door3._rotation = 90;
map.attachMovie("door", "door4", 411);
putit(map.door4, 10, 10);
map.door4.gotoAndStop("red");
map.door4.colour = "red";
map.door4._rotation = 90;
map.attachMovie("door", "door5", 412);
putit(map.door5, 13, 2);
map.door5.gotoAndStop("white");
map.door5.colour = "white";
map.attachMovie("door", "door6", 413);
putit(map.door6, 14, 3);
map.door6.gotoAndStop("blue");
map.door6.colour = "blue";
map.door6._rotation = 90;
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 2, 2);
_global.miniportcount = 1;
map.miniport1.endportx = 4;
map.miniport1.endporty = 2;
}
if (level == 10) {
putit(map.hero, 2, 4);
putit(map.goal, 8, 6);
}
if (level == 11) {
putit(map.hero, 2, 6);
putit(map.goal, 12, 8);
_global.nmycount = 3;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 4, 6);
map.nmy1.pathing = [[4, 6, 5, 0], [14, 6, -5, 0]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 4, 4);
map.nmy2.pathing = [[4, 4, 5, 0], [14, 4, -5, 0]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 4, 5);
map.nmy3.pathing = [[4, 5, 5, 0], [14, 5, -5, 0]];
map.nmy3.currpath = 0;
}
if (level == 12) {
putit(map.hero, 2, 6);
putit(map.goal, 14, 6);
}
if (level == 13) {
putit(map.hero, 2, 2);
putit(map.goal, 2, 5);
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 2, 3);
map.miniport1.endportx = 5;
map.miniport1.endporty = 5;
map.attachMovie("miniport", "miniport2", 415);
putit(map.miniport2, 5, 6);
map.miniport2.endportx = 7;
map.miniport2.endporty = 4;
map.attachMovie("miniport", "miniport3", 416);
putit(map.miniport3, 7, 3);
map.miniport3.endportx = 9;
map.miniport3.endporty = 7;
map.attachMovie("miniport", "miniport4", 417);
putit(map.miniport4, 9, 8);
map.miniport4.endportx = 11;
map.miniport4.endporty = 6;
map.attachMovie("miniport", "miniport5", 418);
putit(map.miniport5, 11, 5);
map.miniport5.endportx = 14;
map.miniport5.endporty = 10;
map.attachMovie("miniport", "miniport6", 419);
putit(map.miniport6, 12, 11);
map.miniport6.endportx = 10;
map.miniport6.endporty = 11;
map.attachMovie("miniport", "miniport7", 420);
putit(map.miniport7, 9, 10);
map.miniport7.endportx = 7;
map.miniport7.endporty = 11;
map.attachMovie("miniport", "miniport8", 421);
putit(map.miniport8, 5, 9);
map.miniport8.endportx = 2;
map.miniport8.endporty = 11;
_global.miniportcount = 8;
_global.nmycount = 6;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 5, 2);
map.nmy1.pathing = [[5, 2, 0, 5], [5, 6, 0, -5]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 7, 3);
map.nmy2.pathing = [[7, 3, 0, 5], [7, 7, 0, -5]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 9, 4);
map.nmy3.pathing = [[9, 4, 0, 5], [9, 8, 0, -5]];
map.nmy3.currpath = 0;
map.attachMovie("nmy", "nmy4", 393);
putit(map.nmy4, 11, 5);
map.nmy4.pathing = [[11, 5, 0, 5], [11, 9, 0, -5]];
map.nmy4.currpath = 0;
map.attachMovie("nmy", "nmy5", 394);
putit(map.nmy5, 10, 11);
map.nmy5.pathing = [[10, 11, -5, 0], [9, 11, 0, -5], [9, 10, 5, 0], [10, 10, 0, 5]];
map.nmy5.currpath = 0;
map.attachMovie("nmy", "nmy6", 395);
putit(map.nmy6, 5, 9);
map.nmy6.pathing = [[5, 9, 0, 5], [5, 11, 5, 0], [7, 11, 0, -5], [7, 9, -5, 0]];
map.nmy6.currpath = 0;
}
if (level == 14) {
putit(map.hero, 2, 2);
putit(map.goal, 7, 6);
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 2, 11);
map.miniport1.endportx = 6;
map.miniport1.endporty = 7;
map.attachMovie("miniport", "miniport2", 415);
putit(map.miniport2, 5, 8);
map.miniport2.endportx = 6;
map.miniport2.endporty = 5;
map.attachMovie("miniport", "miniport3", 416);
putit(map.miniport3, 5, 4);
map.miniport3.endportx = 8;
map.miniport3.endporty = 5;
map.attachMovie("miniport", "miniport4", 417);
putit(map.miniport4, 9, 4);
map.miniport4.endportx = 8;
map.miniport4.endporty = 7;
map.attachMovie("miniport", "miniport5", 418);
putit(map.miniport5, 9, 8);
map.miniport5.endportx = 7;
map.miniport5.endporty = 6;
_global.miniportcount = 5;
_global.nmycount = 4;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 6, 5);
map.nmy1.pathing = [[6, 5, 0, 2], [6, 6, 2, 0], [8, 6, 0, -2], [8, 5, -2, 0]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 8, 5);
map.nmy2.pathing = [[8, 5, 0, 2], [8, 6, -2, 0], [6, 6, 0, -2], [6, 5, 2, 0]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 6, 7);
map.nmy3.pathing = [[6, 7, 0, -2], [6, 6, 2, 0], [8, 6, 0, 2], [8, 7, -2, 0]];
map.nmy3.currpath = 0;
map.attachMovie("nmy", "nmy4", 393);
putit(map.nmy4, 8, 7);
map.nmy4.pathing = [[8, 7, 0, -2], [8, 6, -2, 0], [6, 6, 0, 2], [6, 7, 2, 0]];
map.nmy4.currpath = 0;
}
if (level == 15) {
putit(map.hero, 2, 11);
putit(map.goal, 14, 2);
map.attachMovie("miniport", "miniport1", 416);
putit(map.miniport1, 2, 3);
map.attachMovie("miniport", "miniport2", 417);
putit(map.miniport2, 8, 2);
_global.miniportcount = 2;
map.miniport1.endportx = 8;
map.miniport1.endporty = 6;
map.miniport2.endportx = 14;
map.miniport2.endporty = 10;
map.attachMovie("door", "door1", 408);
putit(map.door1, 8, 5);
map.door1.gotoAndStop("red");
map.door1.colour = "red";
map.door1._rotation = 90;
map.attachMovie("door", "door2", 409);
putit(map.door2, 7, 6);
map.door2.gotoAndStop("red");
map.door2.colour = "red";
map.attachMovie("door", "door3", 410);
putit(map.door3, 9, 6);
map.door3.gotoAndStop("red");
map.door3.colour = "red";
map.attachMovie("door", "door4", 411);
putit(map.door4, 5, 6);
map.door4.gotoAndStop("white");
map.door4.colour = "white";
map.attachMovie("door", "door5", 412);
putit(map.door5, 8, 4);
map.door5.gotoAndStop("red");
map.door5.colour = "red";
map.door5._rotation = 90;
map.attachMovie("door", "door6", 413);
putit(map.door6, 8, 3);
map.door6.gotoAndStop("white");
map.door6.colour = "white";
map.door6._rotation = 90;
map.attachMovie("door", "door7", 414);
putit(map.door7, 11, 6);
map.door7.gotoAndStop("white");
map.door7.colour = "white";
map.attachMovie("door", "door8", 415);
putit(map.door8, 8, 9);
map.door8.gotoAndStop("blue");
map.door8.colour = "blue";
map.door8._rotation = 90;
_global.doorcount = 8;
_global.keycount = 7;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 2, 7);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 4, 6);
map.keypass2.gotoAndStop("red");
map.keypass2.colour = "red";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 4, 7);
map.keypass3.gotoAndStop("red");
map.keypass3.colour = "red";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 10, 2);
map.keypass4.gotoAndStop("red");
map.keypass4.colour = "red";
map.attachMovie("keypass", "keypass5", 406);
putit(map.keypass5, 2, 6);
map.keypass5.gotoAndStop("blue");
map.keypass5.colour = "blue";
map.attachMovie("keypass", "keypass6", 407);
putit(map.keypass6, 2, 5);
map.keypass6.gotoAndStop("white");
map.keypass6.colour = "white";
map.attachMovie("keypass", "keypass7", 401);
putit(map.keypass7, 11, 2);
map.keypass7.gotoAndStop("white");
map.keypass7.colour = "white";
}
if (level == 16) {
putit(map.hero, 2, 3);
putit(map.goal, 14, 11);
_global.nmycount = 5;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 4, 3);
map.nmy1.pathing = [[4, 3, 0, 3], [4, 5, 0, -3]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 6, 3);
map.nmy2.pathing = [[6, 3, 0, 3], [6, 5, 0, -3]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 8, 3);
map.nmy3.pathing = [[8, 3, 0, 3], [8, 5, 0, -3]];
map.nmy3.currpath = 0;
map.attachMovie("nmy", "nmy4", 393);
putit(map.nmy4, 10, 3);
map.nmy4.pathing = [[10, 3, 0, 3], [10, 5, 0, -3]];
map.nmy4.currpath = 0;
map.attachMovie("nmy", "nmy5", 394);
putit(map.nmy5, 12, 3);
map.nmy5.pathing = [[12, 3, 0, 3], [12, 5, 0, -3]];
map.nmy5.currpath = 0;
}
if (level == 17) {
putit(map.hero, 2, 6);
putit(map.goal, 14, 6);
}
if (level == 18) {
putit(map.hero, 10, 5);
putit(map.goal, 13, 9);
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 12, 4);
map.miniport1.endportx = 8;
map.miniport1.endporty = 10;
map.attachMovie("miniport", "miniport2", 415);
putit(map.miniport2, 8, 7);
map.miniport2.endportx = 6;
map.miniport2.endporty = 5;
map.attachMovie("miniport", "miniport3", 416);
putit(map.miniport3, 4, 4);
map.miniport3.endportx = 3;
map.miniport3.endporty = 9;
map.attachMovie("miniport", "miniport4", 417);
putit(map.miniport4, 6, 9);
map.miniport4.endportx = 10;
map.miniport4.endporty = 9;
_global.miniportcount = 4;
_global.nmycount = 1;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 7, 6);
map.nmy1.pathing = [[7, 6, 5, 0], [9, 6, 0, 5], [9, 8, -5, 0], [7, 8, 0, -5]];
map.nmy1.currpath = 0;
map.attachMovie("door", "door1", 408);
putit(map.door1, 5, 5);
map.door1.gotoAndStop("red");
map.door1.colour = "red";
map.attachMovie("door", "door2", 409);
putit(map.door2, 4, 9);
map.door2.gotoAndStop("blue");
map.door2.colour = "blue";
map.attachMovie("door", "door3", 410);
putit(map.door3, 11, 9);
map.door3.gotoAndStop("white");
map.door3.colour = "white";
_global.doorcount = 3;
_global.keycount = 3;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 8, 2);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 14, 7);
map.keypass2.gotoAndStop("blue");
map.keypass2.colour = "blue";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 2, 7);
map.keypass3.gotoAndStop("white");
map.keypass3.colour = "white";
}
if (level == 19) {
putit(map.hero, 2, 11);
putit(map.goal, 10, 10);
_global.nmycount = 2;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 6, 2);
map.nmy1.pathing = [[6, 2, 0, 15], [6, 11, 0, -15]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 13, 11);
map.nmy2.pathing = [[13, 11, 0, -15], [13, 2, 0, 15]];
map.nmy2.currpath = 0;
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 9, 2);
map.miniport1.endportx = 11;
map.miniport1.endporty = 2;
_global.miniportcount = 1;
}
if (level == 20) {
putit(map.hero, 3, 3);
putit(map.goal, 13, 3);
_global.nmycount = 5;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 1, 4);
map.nmy1.pathing = [[1, 4, 6, 0], [15, 4, -6, 0]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 1, 8);
map.nmy2.pathing = [[1, 8, 6, 0], [15, 8, -6, 0]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 15, 2);
map.nmy3.pathing = [[15, 2, -6, 0], [1, 2, 6, 0]];
map.nmy3.currpath = 0;
map.attachMovie("nmy", "nmy4", 393);
putit(map.nmy4, 15, 6);
map.nmy4.pathing = [[15, 6, -6, 0], [1, 6, 6, 0]];
map.nmy4.currpath = 0;
map.attachMovie("nmy", "nmy5", 394);
putit(map.nmy5, 15, 10);
map.nmy5.pathing = [[15, 10, -6, 0], [1, 10, 6, 0]];
map.nmy5.currpath = 0;
}
if (level == 21) {
putit(map.hero, 2, 2);
putit(map.goal, 2, 11);
_global.nmycount = 1;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 8, 4);
map.nmy1.pathing = [[8, 4, -5, 0], [7, 4, 0, 5], [7, 5, 5, 0], [8, 5, 0, 5], [8, 7, 5, 0], [11, 7, 0, -5], [11, 6, -5, 0], [10, 6, 0, 5], [10, 7, -5, 0], [8, 7, 0, 5], [8, 10, 5, 0], [9, 10, 0, -5], [9, 9, -5, 0], [8, 9, 0, -5], [8, 7, -5, 0], [5, 7, 0, 5], [5, 8, 5, 0], [6, 8, 0, -5], [6, 7, 5, 0], [8, 7, 0, -5]];
map.nmy1.currpath = 0;
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 2, 6);
map.miniport1.endportx = 7;
map.miniport1.endporty = 4;
map.attachMovie("miniport", "miniport2", 415);
putit(map.miniport2, 11, 6);
map.miniport2.endportx = 2;
map.miniport2.endporty = 8;
_global.miniportcount = 2;
map.attachMovie("door", "door1", 408);
putit(map.door1, 8, 6);
map.door1.gotoAndStop("red");
map.door1.colour = "red";
map.attachMovie("door", "door2", 409);
putit(map.door2, 8, 8);
map.door2.gotoAndStop("blue");
map.door2.colour = "blue";
map.attachMovie("door", "door3", 410);
putit(map.door3, 7, 7);
map.door3.gotoAndStop("white");
map.door3.colour = "white";
map.attachMovie("door", "door4", 411);
putit(map.door4, 9, 7);
map.door4.gotoAndStop("green");
map.door4.colour = "green";
_global.doorcount = 4;
_global.keycount = 4;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 2, 5);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.door1._rotation = 90;
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 7, 4);
map.keypass2.gotoAndStop("blue");
map.keypass2.colour = "blue";
map.door2._rotation = 90;
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 9, 10);
map.keypass3.gotoAndStop("white");
map.keypass3.colour = "white";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 5, 8);
map.keypass4.gotoAndStop("green");
map.keypass4.colour = "green";
}
if (level == 22) {
putit(map.hero, 2, 2);
putit(map.goal, 12, 4);
_global.nmycount = 6;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 4, 4);
map.nmy1.pathing = [[4, 4, -3, 0], [2, 4, 3, 0]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 2, 5);
map.nmy2.pathing = [[2, 5, 3, 0], [4, 5, -3, 0]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 4, 6);
map.nmy3.pathing = [[4, 6, -3, 0], [2, 6, 3, 0]];
map.nmy3.currpath = 0;
map.attachMovie("nmy", "nmy4", 393);
putit(map.nmy4, 2, 7);
map.nmy4.pathing = [[2, 7, 3, 0], [4, 7, -3, 0]];
map.nmy4.currpath = 0;
map.attachMovie("nmy", "nmy5", 394);
putit(map.nmy5, 4, 8);
map.nmy5.pathing = [[4, 8, -3, 0], [2, 8, 3, 0]];
map.nmy5.currpath = 0;
map.attachMovie("nmy", "nmy6", 395);
putit(map.nmy6, 2, 9);
map.nmy6.pathing = [[2, 9, 3, 0], [4, 9, -3, 0]];
map.nmy6.currpath = 0;
}
if (level == 23) {
putit(map.hero, 8, 6);
putit(map.goal, 8, 12);
_global.nmycount = 2;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 6, 4);
map.nmy1.pathing = [[6, 4, 5, 0], [10, 4, 0, 5], [10, 8, -5, 0], [6, 8, 0, -5]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 12, 10);
map.nmy2.pathing = [[12, 10, -10, 0], [4, 10, 0, -10], [4, 2, 10, 0], [12, 2, 0, 10]];
map.nmy2.currpath = 0;
map.attachMovie("door", "door1", 408);
putit(map.door1, 7, 4);
map.door1.gotoAndStop("blue");
map.door1.colour = "blue";
map.attachMovie("door", "door2", 409);
putit(map.door2, 9, 4);
map.door2.gotoAndStop("red");
map.door2.colour = "red";
map.attachMovie("door", "door3", 410);
putit(map.door3, 8, 3);
map.door3.gotoAndStop("blue");
map.door3.colour = "blue";
map.door3._rotation = 90;
map.attachMovie("door", "door4", 411);
putit(map.door4, 7, 2);
map.door4.gotoAndStop("red");
map.door4.colour = "red";
map.attachMovie("door", "door5", 412);
putit(map.door5, 9, 2);
map.door5.gotoAndStop("blue");
map.door5.colour = "blue";
map.attachMovie("door", "door6", 413);
putit(map.door6, 8, 11);
map.door6.gotoAndStop("white");
map.door6.colour = "white";
map.door6._rotation = 90;
_global.doorcount = 6;
_global.keycount = 6;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 8, 5);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 7, 8);
map.keypass2.gotoAndStop("blue");
map.keypass2.colour = "blue";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 8, 8);
map.keypass3.gotoAndStop("blue");
map.keypass3.colour = "blue";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 9, 8);
map.keypass4.gotoAndStop("blue");
map.keypass4.colour = "blue";
map.attachMovie("keypass", "keypass5", 406);
putit(map.keypass5, 8, 10);
map.keypass5.gotoAndStop("red");
map.keypass5.colour = "red";
map.attachMovie("keypass", "keypass6", 407);
putit(map.keypass6, 3, 2);
map.keypass6.gotoAndStop("white");
map.keypass6.colour = "white";
}
if (level == 24) {
putit(map.hero, 7, 2);
putit(map.goal, 5, 11);
_global.nmycount = 4;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 3, 3);
map.nmy1.pathing = [[3, 3, 5, 0], [4, 3, 0, 5], [4, 4, -5, 0], [3, 4, 0, -5]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 12, 3);
map.nmy2.pathing = [[12, 3, 0, 5], [12, 4, -5, 0], [11, 4, 0, -5], [11, 3, 5, 0]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 12, 10);
map.nmy3.pathing = [[12, 10, -5, 0], [11, 10, 0, -5], [11, 9, 5, 0], [12, 9, 0, 5]];
map.nmy3.currpath = 0;
map.attachMovie("nmy", "nmy4", 393);
putit(map.nmy4, 3, 10);
map.nmy4.pathing = [[3, 10, 0, -5], [3, 9, 5, 0], [4, 9, 0, 5], [4, 10, -5, 0]];
map.nmy4.currpath = 0;
map.attachMovie("door", "door1", 408);
putit(map.door1, 8, 9);
map.door1.gotoAndStop("blue");
map.door1.colour = "blue";
map.door1._rotation = 90;
map.attachMovie("door", "door2", 409);
putit(map.door2, 8, 10);
map.door2.gotoAndStop("blue");
map.door2.colour = "blue";
map.door2._rotation = 90;
map.attachMovie("door", "door3", 410);
putit(map.door3, 7, 11);
map.door3.gotoAndStop("blue");
map.door3.colour = "blue";
map.attachMovie("door", "door4", 411);
putit(map.door4, 6, 11);
map.door4.gotoAndStop("blue");
map.door4.colour = "blue";
_global.doorcount = 4;
_global.keycount = 4;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 3, 3);
map.keypass1.gotoAndStop("blue");
map.keypass1.colour = "blue";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 12, 3);
map.keypass2.gotoAndStop("blue");
map.keypass2.colour = "blue";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 3, 10);
map.keypass3.gotoAndStop("blue");
map.keypass3.colour = "blue";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 12, 10);
map.keypass4.gotoAndStop("blue");
map.keypass4.colour = "blue";
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 8, 3);
map.miniport1.endportx = 8;
map.miniport1.endporty = 5;
_global.miniportcount = 1;
}
if (level == 25) {
putit(map.hero, 5, 7);
putit(map.goal, 11, 7);
_global.nmycount = 3;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 10, 8);
map.nmy1.pathing = [[10, 8, -5, 0], [6, 8, 0, -5], [6, 6, 5, 0], [10, 6, 0, 5]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 6, 6);
map.nmy2.pathing = [[6, 6, 5, 0], [10, 6, 0, 5], [10, 8, -5, 0], [6, 8, 0, -5]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 8, 8);
map.nmy3.pathing = [[8, 8, 0, -5], [8, 6, 5, 0], [10, 6, 0, 5], [10, 8, -5, 0], [8, 8, 0, -5], [8, 6, -5, 0], [6, 6, 0, 5], [6, 8, 5, 0]];
map.nmy3.currpath = 0;
}
if (level == 26) {
putit(map.hero, 4, 3);
putit(map.goal, 12, 9);
_global.nmycount = 2;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 9, 3);
map.nmy1.pathing = [[9, 3, 10, 0], [11, 3, 0, 10], [11, 5, -10, 0], [5, 5, 0, -10], [5, 3, 10, 0], [7, 3, 0, 10], [7, 9, -10, 0], [5, 9, 0, -10], [5, 7, 10, 0], [11, 7, 0, 10], [11, 9, -10, 0], [9, 9, 0, -10]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 7, 3);
map.nmy2.pathing = [[7, 3, -10, 0], [5, 3, 0, 10], [5, 5, 10, 0], [11, 5, 0, -10], [11, 3, -10, 0], [9, 3, 0, 10], [9, 9, 10, 0], [11, 9, 0, -10], [11, 7, -10, 0], [5, 7, 0, 10], [5, 9, 10, 0], [7, 9, 0, -10]];
map.nmy2.currpath = 0;
}
if (level == 27) {
putit(map.hero, 3, 3);
putit(map.goal, 11, 9);
map.attachMovie("miniport", "miniport1", 414);
putit(map.miniport1, 4, 4);
map.miniport1.endportx = 3;
map.miniport1.endporty = 6;
map.attachMovie("miniport", "miniport2", 415);
putit(map.miniport2, 2, 7);
map.miniport2.endportx = 3;
map.miniport2.endporty = 9;
map.attachMovie("miniport", "miniport3", 416);
putit(map.miniport3, 4, 10);
map.miniport3.endportx = 6;
map.miniport3.endporty = 4;
map.attachMovie("miniport", "miniport4", 417);
putit(map.miniport4, 7, 3);
map.miniport4.endportx = 6;
map.miniport4.endporty = 7;
map.attachMovie("miniport", "miniport5", 418);
putit(map.miniport5, 7, 6);
map.miniport5.endportx = 6;
map.miniport5.endporty = 10;
map.attachMovie("miniport", "miniport6", 419);
putit(map.miniport6, 5, 9);
map.miniport6.endportx = 9;
map.miniport6.endporty = 3;
map.attachMovie("miniport", "miniport7", 420);
putit(map.miniport7, 8, 4);
map.miniport7.endportx = 9;
map.miniport7.endporty = 6;
map.attachMovie("miniport", "miniport8", 421);
putit(map.miniport8, 8, 7);
map.miniport8.endportx = 9;
map.miniport8.endporty = 9;
map.attachMovie("miniport", "miniport9", 422);
putit(map.miniport9, 8, 10);
map.miniport9.endportx = 12;
map.miniport9.endporty = 4;
map.attachMovie("miniport", "miniport10", 423);
putit(map.miniport10, 13, 3);
map.miniport10.endportx = 12;
map.miniport10.endporty = 7;
map.attachMovie("miniport", "miniport11", 424);
putit(map.miniport11, 11, 6);
map.miniport11.endportx = 12;
map.miniport11.endporty = 10;
_global.miniportcount = 11;
}
if (level == 28) {
putit(map.hero, 2, 11);
putit(map.goal, 14, 4);
map.attachMovie("miniport", "miniport1", 424);
putit(map.miniport1, 2, 7);
map.miniport1.endportx = 7;
map.miniport1.endporty = 7;
_global.miniportcount = 1;
map.attachMovie("door", "door1", 410);
putit(map.door1, 12, 11);
map.door1.gotoAndStop("red");
map.door1.colour = "red";
map.attachMovie("door", "door2", 411);
putit(map.door2, 13, 11);
map.door2.gotoAndStop("red");
map.door2.colour = "red";
map.attachMovie("door", "door3", 412);
putit(map.door3, 14, 10);
map.door3.gotoAndStop("red");
map.door3.colour = "red";
map.door3._rotation = 90;
map.attachMovie("door", "door4", 413);
putit(map.door4, 14, 9);
map.door4.gotoAndStop("red");
map.door4.colour = "red";
map.door4._rotation = 90;
map.attachMovie("door", "door5", 414);
putit(map.door5, 14, 8);
map.door5.gotoAndStop("red");
map.door5.colour = "red";
map.door5._rotation = 90;
map.attachMovie("door", "door6", 415);
putit(map.door6, 14, 7);
map.door6.gotoAndStop("red");
map.door6.colour = "red";
map.door6._rotation = 90;
map.attachMovie("door", "door7", 416);
putit(map.door7, 14, 6);
map.door7.gotoAndStop("red");
map.door7.colour = "red";
map.door7._rotation = 90;
map.attachMovie("door", "door8", 417);
putit(map.door8, 14, 5);
map.door8.gotoAndStop("red");
map.door8.colour = "red";
map.door8._rotation = 90;
_global.doorcount = 8;
_global.keycount = 8;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 5, 3);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 7, 3);
map.keypass2.gotoAndStop("red");
map.keypass2.colour = "red";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 9, 3);
map.keypass3.gotoAndStop("red");
map.keypass3.colour = "red";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 11, 3);
map.keypass4.gotoAndStop("red");
map.keypass4.colour = "red";
map.attachMovie("keypass", "keypass5", 406);
putit(map.keypass5, 5, 10);
map.keypass5.gotoAndStop("red");
map.keypass5.colour = "red";
map.attachMovie("keypass", "keypass6", 407);
putit(map.keypass6, 7, 10);
map.keypass6.gotoAndStop("red");
map.keypass6.colour = "red";
map.attachMovie("keypass", "keypass7", 408);
putit(map.keypass7, 9, 10);
map.keypass7.gotoAndStop("red");
map.keypass7.colour = "red";
map.attachMovie("keypass", "keypass8", 409);
putit(map.keypass8, 11, 10);
map.keypass8.gotoAndStop("red");
map.keypass8.colour = "red";
}
if (level == 29) {
putit(map.hero, 2, 7);
putit(map.goal, 14, 7);
map.attachMovie("door", "door1", 408);
putit(map.door1, 10, 7);
map.door1.gotoAndStop("blue");
map.door1.colour = "blue";
map.attachMovie("door", "door2", 409);
putit(map.door2, 12, 7);
map.door2.gotoAndStop("blue");
map.door2.colour = "blue";
_global.doorcount = 2;
_global.keycount = 2;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 8, 3);
map.keypass1.gotoAndStop("blue");
map.keypass1.colour = "blue";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 8, 11);
map.keypass2.gotoAndStop("blue");
map.keypass2.colour = "blue";
_global.nmycount = 4;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 3, 8);
map.nmy1.pathing = [[3, 8, 0, -5], [3, 7, 5, 0], [5, 7, 0, 5], [5, 8, 0, -5], [5, 7, -5, 0], [3, 7, 0, 5]];
map.nmy1.currpath = 0;
map.attachMovie("nmy", "nmy2", 391);
putit(map.nmy2, 13, 8);
map.nmy2.pathing = [[13, 8, 0, -5], [13, 7, -5, 0], [11, 7, 0, 5], [11, 8, 0, -5], [11, 7, 5, 0], [13, 7, 0, 5]];
map.nmy2.currpath = 0;
map.attachMovie("nmy", "nmy3", 392);
putit(map.nmy3, 9, 7);
map.nmy3.pathing = [[9, 7, -5, 0], [7, 7, 0, -5], [7, 5, 5, 0], [9, 5, 0, 5]];
map.nmy3.currpath = 0;
map.attachMovie("nmy", "nmy4", 393);
putit(map.nmy4, 9, 7);
map.nmy4.pathing = [[9, 7, -5, 0], [7, 7, 0, 5], [7, 9, 5, 0], [9, 9, 0, -5]];
map.nmy4.currpath = 0;
}
if (level == 30) {
putit(map.hero, 14, 2);
putit(map.goal, 14, 11);
_global.nmycount = 1;
map.attachMovie("nmy", "nmy1", 390);
putit(map.nmy1, 4, 8);
map.nmy1.pathing = [[4, 8, 0, -5], [4, 6, 5, 0], [6, 6, 0, 5], [6, 8, -5, 0]];
map.nmy1.currpath = 0;
map.attachMovie("miniport", "miniport1", 424);
putit(map.miniport1, 11, 2);
map.miniport1.endportx = 8;
map.miniport1.endporty = 7;
map.attachMovie("miniport", "miniport2", 425);
putit(map.miniport2, 4, 2);
map.miniport2.endportx = 14;
map.miniport2.endporty = 11;
_global.miniportcount = 2;
map.attachMovie("door", "door1", 410);
putit(map.door1, 4, 5);
map.door1.gotoAndStop("blue");
map.door1.colour = "blue";
map.door1._rotation = 90;
map.attachMovie("door", "door2", 411);
putit(map.door2, 10, 8);
map.door2.gotoAndStop("green");
map.door2.colour = "green";
map.door2._rotation = 90;
map.attachMovie("door", "door3", 412);
putit(map.door3, 13, 6);
map.door3.gotoAndStop("red");
map.door3.colour = "red";
map.door3._rotation = 90;
map.attachMovie("door", "door4", 413);
putit(map.door4, 2, 5);
map.door4.gotoAndStop("red");
map.door4.colour = "red";
map.door4._rotation = 90;
map.attachMovie("door", "door5", 414);
putit(map.door5, 2, 4);
map.door5.gotoAndStop("red");
map.door5.colour = "red";
map.door5._rotation = 90;
map.attachMovie("door", "door6", 415);
putit(map.door6, 2, 3);
map.door6.gotoAndStop("red");
map.door6.colour = "red";
map.door6._rotation = 90;
map.attachMovie("door", "door7", 416);
putit(map.door7, 3, 2);
map.door7.gotoAndStop("red");
map.door7.colour = "red";
_global.doorcount = 7;
_global.keycount = 7;
map.attachMovie("keypass", "keypass1", 402);
putit(map.keypass1, 4, 4);
map.keypass1.gotoAndStop("red");
map.keypass1.colour = "red";
map.attachMovie("keypass", "keypass2", 403);
putit(map.keypass2, 14, 5);
map.keypass2.gotoAndStop("red");
map.keypass2.colour = "red";
map.attachMovie("keypass", "keypass3", 404);
putit(map.keypass3, 10, 9);
map.keypass3.gotoAndStop("red");
map.keypass3.colour = "red";
map.attachMovie("keypass", "keypass4", 405);
putit(map.keypass4, 5, 3);
map.keypass4.gotoAndStop("red");
map.keypass4.colour = "red";
map.attachMovie("keypass", "keypass5", 406);
putit(map.keypass5, 14, 8);
map.keypass5.gotoAndStop("red");
map.keypass5.colour = "red";
map.attachMovie("keypass", "keypass6", 407);
putit(map.keypass6, 10, 11);
map.keypass6.gotoAndStop("green");
map.keypass6.colour = "green";
map.attachMovie("keypass", "keypass7", 408);
putit(map.keypass7, 8, 5);
map.keypass7.gotoAndStop("blue");
map.keypass7.colour = "blue";
}
talk(0, 0, "start");
_root.lvl = _global.currlvl;
_root.passw = _global.passwords[_global.currlvl];
}
function initGame() {
_global.lostlvl = false;
_global.winlvl = false;
_global.getred = 0;
_global.getblue = 0;
_global.getgreen = 0;
_global.getwhite = 0;
wsound = new Sound();
wsound.attachSound("winnoise");
desound = new Sound();
desound.attachSound("deathnoise");
tik = new Sound();
tik.attachSound("tik1");
ksound = new Sound();
ksound.attachSound("keyup1");
dsound = new Sound();
dsound.attachSound("doorup1");
tsound = new Sound();
tsound.attachSound("telesound");
_global.miniportcount = 0;
_global.doorcount = 0;
_global.keycount = 0;
_global.nmycount = 0;
_global.talking = false;
_global.counttodeath = 40;
endportx = new Object();
endporty = new Object();
colour = new Object();
special = new Object();
currpath = new Object();
xspeed = new Object();
yspeed = new Object();
pathing = new Array();
paintmap(_global.currlvl);
}
function game() {
map.hero.stop();
if (_global.winlvl != true) {
if (_global.lostlvl != true) {
overlay();
if (_global.talking != true) {
if (map[(("tilex" + getCoord(map.hero._x)) + "y") + getCoord(map.hero._y)].special == "tbox") {
talk(_global.currlvl, getCoord(map.hero._x), getCoord(map.hero._y));
}
if (map[(("tilex" + getCoord(map.hero._x)) + "y") + getCoord(map.hero._y)].special == "pit") {
_global.lostlvl = true;
}
if (Key.isDown(87) && (map[(("tilex" + getCoord(map.hero._x)) + "y") + getCoord(map.hero._y - 5)].special != "wall")) {
map.hero._y = map.hero._y - 5;
map.hero._rotation = 0;
map.hero.play();
}
if (Key.isDown(68) && (map[(("tilex" + getCoord(map.hero._x + 5)) + "y") + getCoord(map.hero._y)].special != "wall")) {
map.hero._x = map.hero._x + 5;
map.hero._rotation = 90;
map.hero.play();
}
if (Key.isDown(83) && (map[(("tilex" + getCoord(map.hero._x)) + "y") + getCoord(map.hero._y + 5)].special != "wall")) {
map.hero._y = map.hero._y + 5;
map.hero._rotation = 180;
map.hero.play();
}
if (Key.isDown(65) && (map[(("tilex" + getCoord(map.hero._x - 5)) + "y") + getCoord(map.hero._y)].special != "wall")) {
map.hero._x = map.hero._x - 5;
map.hero._rotation = -90;
map.hero.play();
}
if (Key.isDown(87) && (Key.isDown(68))) {
map.hero._rotation = 45;
} else if (Key.isDown(68) && (Key.isDown(83))) {
map.hero._rotation = 135;
} else if (Key.isDown(65) && (Key.isDown(83))) {
map.hero._rotation = -135;
} else if (Key.isDown(65) && (Key.isDown(87))) {
map.hero._rotation = -45;
}
i = 1;
while (i <= _global.nmycount) {
AIrun(_root.map["nmy" + i]);
i++;
}
i = 1;
while (i <= _global.keycount) {
keyrun(_root.map["keypass" + i]);
i++;
}
i = 1;
while (i <= _global.doorcount) {
doorrun(_root.map["door" + i]);
i++;
}
i = 1;
while (i <= _global.miniportcount) {
MPrun(_root.map["miniport" + i], i);
i++;
}
if (map.hero.hitTest(map.goal.hitbox)) {
_global.winlvl = true;
}
if (Key.isDown(32)) {
map.thegrid._visible = true;
} else {
map.thegrid._visible = false;
}
}
} else {
death();
}
} else {
victory();
}
}
stop();
Instance of Symbol 132 MovieClip in Frame 3
onClipEvent (load) {
_root.initGame();
}
onClipEvent (enterFrame) {
_root.game();
}
Instance of Symbol 139 MovieClip [keyring] "keyring" in Frame 3
onClipEvent (enterFrame) {
this.krred = _global.getred;
this.krblue = _global.getblue;
this.krgreen = _global.getgreen;
this.krwhite = _global.getwhite;
}
Frame 4
stop();
Frame 5
Symbol 2 MovieClip [hitbox] Frame 1
stop();
Symbol 14 MovieClip [light] Frame 1
stop();
Instance of Symbol 2 MovieClip [hitbox] in Symbol 14 MovieClip [light] Frame 1
onClipEvent (enterFrame) {
if ((_root.map.overlayer._alpha < 90) && (_parent._currentframe == 1)) {
_parent.gotoAndPlay(2);
} else if ((_root.map.overlayer._alpha > 90) && (_parent._currentframe != 1)) {
_parent.gotoAndStop(1);
}
}
Symbol 14 MovieClip [light] Frame 35
stop();
Symbol 27 Button
on (release) {
_root.play();
}
Symbol 28 MovieClip [loadstarting] Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
percc = Math.floor(PercentLoaded);
if (PercentLoaded != 100) {
loadbar.gotoAndStop(Math.floor(PercentLoaded));
} else {
gotoAndPlay (3);
}
Symbol 28 MovieClip [loadstarting] Frame 2
gotoAndPlay (1);
Symbol 28 MovieClip [loadstarting] Frame 16
stop();
Symbol 34 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 39 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 41 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 161 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 54 Button
on (release) {
gotoAndStop ("game");
}
Symbol 55 Button
on (release) {
i = 1;
while (i <= 30) {
if (_global.passwords[i] == _root.pword) {
_global.currlvl = i;
gotoAndStop ("game");
}
i++;
}
}
Symbol 66 Button
on (release) {
getURL ("http://www.dead-tree.com", "blank");
}
Symbol 82 Button
on (release) {
_global.talking = false;
this.removeMovieClip();
}
Instance of Symbol 2 MovieClip [hitbox] "hitbox" in Symbol 89 MovieClip [nmy] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 2 MovieClip [hitbox] "hitbox" in Symbol 111 MovieClip [goal] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 2 MovieClip [hitbox] "hitbox" in Symbol 119 MovieClip [hero] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 127 MovieClip Frame 1
stopAllSounds();
Symbol 127 MovieClip Frame 2
stopAllSounds();
Symbol 127 MovieClip Frame 3
stopAllSounds();
Symbol 127 MovieClip Frame 4
stopAllSounds();
Symbol 127 MovieClip Frame 5
stopAllSounds();
Symbol 127 MovieClip Frame 6
stopAllSounds();
Symbol 127 MovieClip Frame 7
stop();
Symbol 130 Button
on (release) {
getURL ("http://www.funny-games.biz/main.html", "blank");
}
Symbol 145 Button
on (release) {
removeMovieClip(_root.map);
gotoAndStop (2);
}
Symbol 148 Button
on (release) {
if ((_global.currlvl > 1) && (_global.lostlvl != true)) {
removeMovieClip(_root.map);
_global.currlvl--;
_root.initGame();
}
}
Symbol 149 Button
on (release) {
if ((_global.currlvl < 30) && (_global.lostlvl != true)) {
removeMovieClip(_root.map);
_global.currlvl++;
_root.initGame();
}
}
Symbol 158 Button
on (release) {
gotoAndStop (2);
}