Frame 1
fscommand ("showmenu", "false");
ifFrameLoaded (91) {
gotoAndStop (5);
}
Frame 4
gotoAndPlay (1);
Frame 5
stop();
Frame 6
setProperty("/man", _visible , "0");
oldfr = "0";
loop = "1";
climbing = "0";
dir = "1";
origy = getProperty("/man", _y);
score = "0";
while (loop < "11") {
Set("k" add loop, "0");
Set("p" add loop, "0");
Set("c" add loop, "0");
loop = loop + "1";
}
Frame 7
stop();
setProperty("/man", _visible , "1");
dx = "10";
frame = "1";
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (k1 == "1") {
setProperty("key", _visible , "0");
} else {
setProperty("/key", _visible , "1");
}
if (c1 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 13
stop();
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (k2 == "1") {
setProperty("key", _visible , "0");
} else {
setProperty("/key", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 20
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (k3 == "1") {
setProperty("key", _visible , "0");
} else {
setProperty("/key", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 26
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (c4 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
if (p4 == "1") {
setProperty("pass", _visible , "0");
} else {
setProperty("pass", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 31
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (c5 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
if (k5 == "1") {
setProperty("key", _visible , "0");
} else {
setProperty("/key", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 37
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (c6 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
if (p6 == "1") {
setProperty("pass", _visible , "0");
} else {
setProperty("pass", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 43
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (c7 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
if (k7 == "1") {
setProperty("key", _visible , "0");
} else {
setProperty("/key", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 49
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (c8 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
if (k8 == "1") {
setProperty("key", _visible , "0");
} else {
setProperty("/key", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 55
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (c9 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 61
stop();
setProperty("/man", _x , "40");
setProperty("/guard1", _x , "-200" + random("700"));
if (oldfr == "0") {
setProperty("/man", _x , "40");
} else {
setProperty("/man", _x , "510");
}
if (c10 == "1") {
setProperty("clue", _visible , "0");
} else {
setProperty("/clue", _visible , "1");
}
if (p10 == "1") {
setProperty("pass", _visible , "0");
} else {
setProperty("pass", _visible , "1");
}
ratb = random("3");
ratg = random("3");
if (ratb == "1") {
setProperty("/ratb", _visible , "1");
} else {
setProperty("/ratb", _visible , "0");
}
if (ratg == "1") {
setProperty("/ratg", _visible , "1");
} else {
setProperty("/ratg", _visible , "0");
}
Frame 68
stop();
tellTarget ("/timer") {
stop();
};
setProperty("/man", _x , "40");
Frame 69
tellTarget ("/stand") {
gotoAndPlay (2);
};
setProperty("/man", _visible , "0");
bonus = time * "70";
scoreb = score + bonus;
if ("9999" < scoreb) {
score = "10000" - random("100");
} else {
score = scoreb;
}
play();
Frame 90
stop();
Frame 91
stop();
stopAllSounds();
Symbol 14 MovieClip Frame 37
gotoAndPlay (12);
Symbol 34 Button
on (release) {
getURL ("http://www.defused.co.uk", "_blank");
}
Symbol 37 Button
on (release) {
getURL ("http://www.dc8p.com", "_blank");
}
Symbol 44 Button
on (release) {
gtimer = int(getTimer() / "1500");
score = "0";
gotoAndPlay (6);
}
Symbol 60 MovieClip Frame 16
gotoAndPlay (1);
Symbol 60 MovieClip Frame 32
gotoAndPlay (17);
Symbol 60 MovieClip Frame 33
Set("/:dir", "1");
Symbol 60 MovieClip Frame 41
gotoAndPlay (1);
Symbol 60 MovieClip Frame 42
Set("/:dir", "0");
Symbol 60 MovieClip Frame 50
gotoAndPlay (51);
Symbol 60 MovieClip Frame 65
gotoAndPlay (51);
Symbol 60 MovieClip Frame 78
if ("2" < /:row) {
tellTarget ("/movebooks") {
gotoAndPlay ("row1");
};
}
Symbol 60 MovieClip Frame 80
if ((/:row == "2") and ((/:inity - "29.3") >= getProperty("/man", _y))) {
tellTarget ("/movebooks") {
gotoAndPlay ("row1");
};
}
Symbol 60 MovieClip Frame 81
if ((/:row == "1") and ((/:inity - "31") >= getProperty("/man", _y))) {
tellTarget ("/movebooks") {
gotoAndPlay ("row1");
};
}
Symbol 60 MovieClip Frame 83
if (_level0/movebooks:gotkey == "0") {
gotoAndStop (1);
} else {
gotoAndStop (17);
}
Symbol 60 MovieClip Frame 107
setProperty("/life" add /:lives, _visible , "0");
Set("/:lives", /:lives - "1");
Set("/:score", /:score - "500");
if (/:lives == "0") {
tellTarget ("_level0") {
gotoAndStop ("gameover");
};
}
setProperty("/man", _y , /:inity + "80");
if ((/:dir == "0") and (/movebooks:gotkey == "0")) {
gotoAndPlay (51);
} else if ((/:dir == "1") and (/movebooks:gotkey == "0")) {
gotoAndPlay (1);
} else if ((/:dir == "0") and (/movebooks:gotkey == "1")) {
gotoAndPlay (137);
} else if ((/:dir == "1") and (/movebooks:gotkey == "1")) {
gotoAndPlay (17);
}
Symbol 60 MovieClip Frame 110
Set("/:dir", "1");
Symbol 60 MovieClip Frame 118
gotoAndPlay (17);
Symbol 60 MovieClip Frame 119
Set("/:dir", "0");
Symbol 60 MovieClip Frame 127
gotoAndPlay (137);
Symbol 60 MovieClip Frame 130
if ("2" < /:row) {
tellTarget ("/movebooks") {
gotoAndPlay ("row1");
};
}
Symbol 60 MovieClip Frame 132
if ((/:row == "2") and ((/:inity - "29.3") >= getProperty("/man", _y))) {
tellTarget ("/movebooks") {
gotoAndPlay ("row1");
};
}
Symbol 60 MovieClip Frame 133
if ((/:row == "1") and ((/:inity - "31") >= getProperty("/man", _y))) {
tellTarget ("/movebooks") {
gotoAndPlay ("row1");
};
}
Symbol 60 MovieClip Frame 135
if (_level0/movebooks:gotkey == "0") {
gotoAndStop (51);
} else {
gotoAndStop (17);
}
Symbol 60 MovieClip Frame 152
gotoAndPlay (137);
Symbol 60 MovieClip Frame 153
stop();
Symbol 60 MovieClip Frame 162
gotoAndStop (158);
Symbol 77 MovieClip Frame 1
gotoAndPlay (10);
Symbol 77 MovieClip Frame 24
gotoAndPlay (10);
Symbol 93 MovieClip Frame 1
if ((getProperty("_level0/man", _x) < "20") and ("1" < _level0/:frame)) {
Set("_level0/:frame", _level0/:frame - "1");
Set("_level0/:oldfr", "1");
tellTarget ("_level0") {
gotoAndStop("frame" add _level0/:frame);
};
} else if ((getProperty("_level0/man", _x) < "20") and (_level0/:frame == "1")) {
setProperty("_level0/man", _x , "20");
}
if (("530" < getProperty("_level0/man", _x)) and (_level0/:frame < "10")) {
Set("_level0/:frame", _level0/:frame + "1");
Set("_level0/:oldfr", "0");
tellTarget ("_level0") {
gotoAndStop("frame" add _level0/:frame);
};
setProperty("_level0/man", _x , "GetProperty ( \"_level0/man\",_x)-550");
} else if ((("500" < getProperty("_level0/man", _x)) and (_level0/:frame == "10")) and (/:climbing < "2")) {
setProperty("_level0/man", _x , "500");
} else if ((("500" < getProperty("_level0/man", _x)) and (_level0/:frame == "10")) and (/:climbing == "2")) {
Set("_level0/:frame", _level0/:frame + "1");
Set("_level0/:oldfr", "0");
tellTarget ("_level0") {
gotoAndStop ("escaped");
};
setProperty("_level0/man", _x , getProperty("_level0/man", _x) - "550");
}
Symbol 93 MovieClip Frame 2
gotoAndPlay (1);
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 9
Set("/:jumping", "1");
jumpdist = "156.3";
no = "9";
setProperty("/man", _y , getProperty("/man", _y) - "36.2");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 10
setProperty("/man", _y , getProperty("/man", _y) - "25.5");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 11
setProperty("/man", _y , getProperty("/man", _y) - "14.5");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 12
setProperty("/man", _y , getProperty("/man", _y) - "5.7");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 13
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 14
setProperty("/man", _y , getProperty("/man", _y) + "5.7");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 15
setProperty("/man", _y , getProperty("/man", _y) + "14.5");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 16
setProperty("/man", _y , getProperty("/man", _y) + "25.5");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
Symbol 94 MovieClip Frame 17
setProperty("/man", _y , getProperty("/man", _y) + "36.2");
setProperty("/man", _x , getProperty("/man", _x) + (jumpdist / no));
tellTarget ("/man") {
gotoAndStop ("stand");
};
Symbol 94 MovieClip Frame 18
Set("/:jumping", "0");
gotoAndStop (1);
Symbol 94 MovieClip Frame 20
Set("/:jumping", "1");
jumpdist = "156.3";
no = "9";
setProperty("/man", _y , getProperty("/man", _y) - "36.2");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 21
setProperty("/man", _y , getProperty("/man", _y) - "25.5");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 22
setProperty("/man", _y , getProperty("/man", _y) - "14.5");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 23
setProperty("/man", _y , getProperty("/man", _y) - "5.7");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 24
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 25
setProperty("/man", _y , getProperty("/man", _y) + "5.7");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 26
setProperty("/man", _y , getProperty("/man", _y) + "14.5");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 27
setProperty("/man", _y , getProperty("/man", _y) + "25.5");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
Symbol 94 MovieClip Frame 28
setProperty("/man", _y , getProperty("/man", _y) + "36.2");
setProperty("/man", _x , getProperty("/man", _x) - (jumpdist / no));
tellTarget ("/man") {
gotoAndStop ("stand");
};
Symbol 94 MovieClip Frame 29
Set("/:jumping", "0");
gotoAndStop (1);
Symbol 95 MovieClip Frame 1
manx = getProperty("/man", _x) - (getProperty("/man", _width) / "2");
many = (getProperty("/man", _y) - (getProperty("/man", _height) / "2")) - "17";
manw = getProperty("/man", _width);
manh = getProperty("/man", _height);
keyx = getProperty("/key", _x) - (getProperty("/key", _width) / "2");
keyy = getProperty("/key", _y) - (getProperty("/key", _height) / "2");
keyw = getProperty("/key", _width);
keyh = getProperty("/key", _height);
passx = getProperty("/pass", _x) - (getProperty("/pass", _width) / "2");
passy = getProperty("/pass", _y) - (getProperty("/pass", _height) / "2");
passw = getProperty("/pass", _width);
passh = getProperty("/pass", _height);
cluex = getProperty("/clue", _x) - (getProperty("/clue", _width) / "2");
cluey = getProperty("/clue", _y) - (getProperty("/clue", _height) / "2");
cluew = getProperty("/clue", _width);
clueh = getProperty("/clue", _height);
ratbx = getProperty("/ratb", _x) - (getProperty("/ratb", _width) / "2");
ratby = getProperty("/ratb", _y) - (getProperty("/ratb", _height) / "2");
ratbw = getProperty("/ratb", _width);
ratbh = getProperty("/ratb", _height);
ratgx = getProperty("/ratg", _x) - (getProperty("/ratg", _width) / "2");
ratgy = getProperty("/ratg", _y) - (getProperty("/ratg", _height) / "2");
ratgw = getProperty("/ratg", _width);
ratgh = getProperty("/ratg", _height);
guardx = getProperty("/guard1", _x) - (getProperty("/guard1", _width) / "2");
guardy = getProperty("/guard1", _y) - (getProperty("/guard1", _height) / "2");
guardw = getProperty("/guard1", _width);
guardh = getProperty("/guard1", _height);
if (((((keyx < (manx + manw)) and (manx < (keyx + keyw))) and (keyy < (many + manh))) and (many < (keyy + keyh))) and (getProperty("/key", _visible) == "1")) {
setProperty("/key", _visible , "0");
Set("/:k" add /:frame, "1");
Set("/:score", /:score + "400");
}
if (((((passx < (manx + manw)) and (manx < (passx + passw))) and (passy < (many + manh))) and (many < (passy + passh))) and (getProperty("/pass", _visible) == "1")) {
setProperty("/pass", _visible , "0");
Set("/:p" add /:frame, "1");
Set("/:score", /:score + "1000");
}
if (((((cluex < (manx + manw)) and (manx < (cluex + cluew))) and (cluey < (many + manh))) and (many < (cluey + clueh))) and (getProperty("/clue", _visible) == "1")) {
setProperty("/clue", _visible , "0");
Set("/:c" add /:frame, "1");
Set("/:score", /:score + "400");
tellTarget ("_level0/sounds") {
gotoAndPlay ("pop");
};
}
if (((((ratbx < (manx + manw)) and (manx < (ratbx + ratbw))) and (ratby < (many + manh))) and (many < (ratby + ratbh))) and (getProperty("/ratb", _visible) == "1")) {
Set("/:dx", "2");
ratcoll = "1";
Set("/:score", /:score - "10");
if (getProperty("_level0/sounds", _currentframe) < "12") {
tellTarget ("_level0/sounds") {
gotoAndPlay ("squeak");
};
}
} else if (((((ratgx < (manx + manw)) and (manx < (ratgx + ratgw))) and (ratgy < (many + manh))) and (many < (ratgy + ratgh))) and (getProperty("/ratg", _visible) == "1")) {
ratcoll = "1";
Set("/:dx", "2");
Set("/:score", /:score - "10");
if (getProperty("_level0/sounds", _currentframe) < "12") {
tellTarget ("_level0/sounds") {
gotoAndPlay ("squeak");
};
}
} else {
ratcoll = "0";
Set("/:dx", "10");
}
if ((((guardx < (manx + manw)) and (manx < (guardx + guardw))) and (guardy < (many + manh))) and (many < (guardy + guardh))) {
Set("/:dx", "2");
Set("/:score", /:score - "10");
} else if (ratcoll == "0") {
Set("/:dx", "10");
}
if ("9999" < /:score) {
Set("/:score", /:score - random("100"));
}
Symbol 95 MovieClip Frame 2
gotoAndPlay (1);
Symbol 96 MovieClip Frame 1
gdx = "5";
setProperty("/guard1", _x , getProperty("/guard1", _x) + gdx);
setProperty("/guard2", _x , getProperty("/guard2", _x) - gdx);
if ("750" < getProperty("/guard1", _x)) {
setProperty("/guard1", _x , "-500" + random("200"));
}
if (getProperty("/guard2", _x) < "-200") {
setProperty("/guard2", _x , "1050" - random("200"));
}
Symbol 97 MovieClip Frame 1
Set("/:time", ("30" - int(getTimer() / "1500")) + /:gtimer);
if (/:time < "1") {
tellTarget ("/timer") {
stop();
};
tellTarget ("/") {
gotoAndStop ("finish");
};
}
Symbol 97 MovieClip Frame 2
gotoAndPlay (1);
Symbol 98 MovieClip Frame 1
rdx = "30";
setProperty("/ratb", _x , getProperty("/ratb", _x) - rdx);
setProperty("/ratg", _x , getProperty("/ratg", _x) - rdx);
if (getProperty("/ratb", _x) < "-200") {
setProperty("/ratb", _x , "1050" - random("200"));
}
if (getProperty("/ratg", _x) < "-200") {
setProperty("/ratg", _x , "1050" - random("200"));
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 9
gotoAndStop (1);
Symbol 101 MovieClip Frame 20
gotoAndStop (1);
Symbol 103 Button
on (keyPress "<Right>") {
if (getProperty("/moveman", _currentframe) == "1") {
setProperty("/man", _x , getProperty("/man", _x) + dx);
if ((getProperty("/man", _currentframe) < "33") or ("41" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("right");
};
}
}
}
if ("530" < getProperty("/man", _x)) {
frame = frame + "1";
oldfr = "0";
gotoAndStop("frame" add frame);
}
}
Symbol 104 Button
on (keyPress "<Left>") {
if (getProperty("/moveman", _currentframe) == "1") {
setProperty("/man", _x , getProperty("/man", _x) - dx);
if ((getProperty("/man", _currentframe) < "42") or ("50" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("left");
};
}
}
}
if (getProperty("/man", _x) < "20") {
setProperty("/man", _x , "20");
}
}
Symbol 105 Button
on (keyPress "<Space>") {
if ((getProperty("/man", _currentframe) < "95") or ("107" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
if (dir == "1") {
tellTarget ("/moveman") {
gotoAndPlay ("jumpkey");
};
} else {
tellTarget ("/moveman") {
gotoAndPlay ("jumpkeyl");
};
}
}
}
}
Symbol 110 Button
on (keyPress "<Left>") {
if (getProperty("/moveman", _currentframe) == "1") {
setProperty("/man", _x , getProperty("/man", _x) - dx);
if ((getProperty("/man", _currentframe) < "42") or ("50" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("left");
};
}
}
}
if (getProperty("/man", _x) < "20") {
frame = frame - "1";
oldfr = "1";
gotoAndStop("frame" add frame);
setProperty("/man", _x , "510");
}
}
Symbol 115 MovieClip Frame 1
gotoAndPlay (19);
Symbol 115 MovieClip Frame 45
gotoAndPlay (23);
Symbol 125 Button
on (keyPress "<Right>") {
if ((getProperty("/moveman", _currentframe) == "1") and (climbing <> "1")) {
setProperty("/man", _x , getProperty("/man", _x) + dx);
if ((getProperty("/man", _currentframe) < "33") or ("41" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("right");
};
}
}
}
if ("530" < getProperty("/man", _x)) {
frame = frame + "1";
oldfr = "0";
gotoAndStop("frame" add frame);
}
}
Symbol 126 Button
on (keyPress "<Left>") {
if ((getProperty("/moveman", _currentframe) == "1") and (climbing <> "1")) {
setProperty("/man", _x , getProperty("/man", _x) - dx);
if ((getProperty("/man", _currentframe) < "42") or ("50" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("left");
};
}
}
}
if (getProperty("/man", _x) < "20") {
frame = frame - "1";
oldfr = "1";
gotoAndStop("frame" add frame);
setProperty("/man", _x , "510");
}
}
Symbol 127 Button
on (keyPress "<Space>") {
if ((getProperty("/man", _currentframe) < "95") or (("107" < getProperty("/man", _currentframe)) and (climbing <> "1"))) {
if (getProperty("/moveman", _currentframe) == "1") {
if (dir == "1") {
tellTarget ("/moveman") {
gotoAndPlay ("jumpkey");
};
} else {
tellTarget ("/moveman") {
gotoAndPlay ("jumpkeyl");
};
}
}
}
}
Symbol 128 Button
on (keyPress "<Up>") {
manx = getProperty("/man", _x) - (getProperty("/man", _width) / "2");
many = (getProperty("/man", _y) - (getProperty("/man", _height) / "2")) - "17";
manw = getProperty("/man", _width);
manh = getProperty("/man", _height);
ladx = (getProperty("/ladder", _x) - (getProperty("/ladder", _width) / "2")) + "20";
lady = getProperty("/ladder", _y) - (getProperty("/ladder", _height) / "2");
ladw = getProperty("/ladder", _width) - "40";
ladh = getProperty("/ladder", _height);
if ((((((ladx < (manx + manw)) and (manx < (ladx + ladw))) and (lady < (many + manh))) and (many < (lady + ladh))) and (climbing == "0")) and (jumping == "0")) {
setProperty("/man", _y , getProperty("/man", _y) - "20");
climbing = "1";
if (getProperty("/man", _currentframe) < "158") {
tellTarget ("/man") {
gotoAndStop ("climbs");
};
}
} else if ((climbing == "1") and (lady < (many + manh))) {
tellTarget ("/man") {
nextFrame();
};
setProperty("/man", _y , getProperty("/man", _y) - "20");
} else if (climbing == "1") {
tellTarget ("/man") {
gotoAndPlay ("stands");
};
if (jumping == "0") {
climbing = "2";
}
}
}
Symbol 129 Button
on (keyPress "<Down>") {
if (((climbing == "1") and (getProperty("/man", _y) < origy)) and (jumping == "0")) {
setProperty("/man", _y , getProperty("/man", _y) + "20");
tellTarget ("/man") {
nextFrame();
};
} else if ((climbing == "1") and (jumping == "0")) {
tellTarget ("/man") {
gotoAndPlay ("stands");
};
climbing = "0";
} else if ((climbing == "2") and (jumping == "0")) {
manx = getProperty("/man", _x) - (getProperty("/man", _width) / "2");
manw = getProperty("/man", _width);
ladx = (getProperty("/ladder", _x) - (getProperty("/ladder", _width) / "2")) + "20";
ladw = getProperty("/ladder", _width) - "40";
if ((ladx < (manx + manw)) and (manx < (ladx + ladw))) {
setProperty("/man", _y , getProperty("/man", _y) + "20");
tellTarget ("/man") {
gotoAndStop ("climbs");
};
climbing = "1";
}
}
}
Symbol 131 Button
on (keyPress "<Right>") {
if ((getProperty("/moveman", _currentframe) == "1") and (climbing <> "1")) {
setProperty("/man", _x , getProperty("/man", _x) + dx);
if ((getProperty("/man", _currentframe) < "33") or ("41" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("right");
};
}
}
}
if ((("530" < getProperty("/man", _x)) and (getProperty("/man", _y) < origy)) and (getProperty("/moveman", _currentframe) == "1")) {
gotoAndStop (68);
} else if ((("520" < getProperty("/man", _x)) and (getProperty("/man", _y) == origy)) and (getProperty("/moveman", _currentframe) == "1")) {
setProperty("/man", _x , "520");
}
}
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
tellTarget ("man") {
gotoAndStop ("up");
};
Symbol 135 MovieClip Frame 8
gotoAndPlay (2);
Symbol 136 Button
on (keyPress "<Right>") {
if ((getProperty("/moveman", _currentframe) == "1") and (climbing <> "1")) {
setProperty("/man", _x , getProperty("/man", _x) + dx);
if ((getProperty("/man", _currentframe) < "33") or ("41" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("right");
};
}
}
}
if ((getProperty("/stand", _x) - (getProperty("/stand", _width) / "2")) < (getProperty("/man", _x) + (getProperty("/man", _width) / "2"))) {
stopAllSounds();
gotoAndPlay (69);
}
}
Symbol 137 Button
on (keyPress "<Left>") {
if ((getProperty("/moveman", _currentframe) == "1") and (climbing <> "1")) {
setProperty("/man", _x , getProperty("/man", _x) - dx);
if ((getProperty("/man", _currentframe) < "42") or ("50" < getProperty("/man", _currentframe))) {
if (getProperty("/moveman", _currentframe) == "1") {
tellTarget ("/man") {
gotoAndPlay ("left");
};
}
}
}
if (getProperty("/man", _x) < "20") {
oldfr = "1";
gotoAndStop (61);
setProperty("/man", _x , "510");
}
}
Symbol 145 Button
on (release) {
stopAllSounds();
gtimer = int(getTimer() / "1500");
score = "0";
gotoAndPlay (6);
setProperty("/man", _y , origy);
}
Symbol 148 Button
on (keyPress "<Right>") {
stop();
}
Symbol 149 Button
on (keyPress "<Left>") {
stop();
}