Frame 1
stop();
Frame 2
stop();
stopAllSounds();
Frame 3
function waterdrinker(clip) {
if (clip._parent.hittest(_root.hero.sensor) and (clip._parent._currentframe == 1)) {
superpower = true;
_root.powerbar.play();
clip._parent.nextframe();
}
}
function stairfall(clip) {
if (falling == false) {
falling = true;
}
if (_root.direction == "up") {
_root.floor--;
_root.floorfix = _root.floor;
_root.direction = "down";
}
if (_root.herofloor[_root.floor] < _root.world._y) {
_root.world._y = _root.world._y - (speed * 2);
} else {
clip.gotoandplay("recover");
_root.world._y = _root.herofloor[_root.floor];
}
}
function choosemode(clip) {
clip.mode = _root.modes[random(2)];
}
function herohitterstair(clip) {
if ((falling == false) and heroclimb) {
if (clip._parent.sensor.hitTest(_root.hero.sensor)) {
if (superpower == false) {
_root.soundfall.play();
_root.lives.nextframe();
_root.hero.gotoandplay("stairfall");
} else {
_root.soundhit.play();
clip._parent._parent.falling = true;
clip._parent.gotoandplay("fall");
}
}
}
}
function herohitter(clip) {
if (clip._parent.sensor.hitTest(_root.hero.sensor)) {
if ((falling == false) and (heroclimb == false)) {
if (superpower == false) {
_root.soundfall.play();
_root.hero.gotoandplay("fall");
_root.lives.nextframe();
} else {
_root.soundhit.play();
clip._parent.falling = true;
clip._parent.thebody.body.play();
}
} else if ((falling == false) and heroclimb) {
if (clip._parent.sensor.hitTest(_root.hero.sensor)) {
if (superpower == false) {
_root.soundfall.play();
_root.lives.nextframe();
_root.hero.gotoandplay("stairfall");
} else {
_root.soundhit.play();
clip._parent.gotoandplay("fall");
}
}
}
}
}
function randomwalk(clip) {
if (clip.move and (clip.falling != true)) {
if (clip.i == 0) {
clip.oldtime = getTimer();
clip.timeout = random(6000);
clip.direction = _root.directions[random(2)];
if (clip.direction == "left") {
clip._xscale = 100;
}
if (clip.direction == "right") {
clip._xscale = -100;
}
clip.i = 1;
}
clip.newtime = getTimer();
clip.thetime = clip.newtime - clip.oldtime;
if (clip.direction == "left") {
clip._x = clip._x - speed;
} else {
clip._x = clip._x + speed;
}
if (clip.timeout < clip.thetime) {
clip.i = 0;
}
if (clip._x < 10) {
clip.direction = "right";
clip.mode = _root.modes[random(2)];
clip._xscale = -100;
}
if (383 < clip._x) {
clip.direction = "left";
clip.mode = _root.modes[random(2)];
clip._xscale = 100;
}
if (clip.mode == "ladder") {
clip.a = 0;
while (clip.a < 2) {
if (clip.sensor.hittest(eval (((("clip._parent." add (clip.floor - 1)) add "ladder") add _root.ab[clip.a]) add ".sensortop")) and (eval (((("clip._parent." add (clip.floor - 1)) add "ladder") add _root.ab[clip.a]) add ".occupied") == false)) {
eval ((("clip._parent." add (clip.floor - 1)) add "ladder") add _root.ab[clip.a]).gotoandplay("down");
eval ((("clip._parent." add (clip.floor - 1)) add "ladder") add _root.ab[clip.a]).guest = clip._name;
eval ((("clip._parent." add (clip.floor - 1)) add "ladder") add _root.ab[clip.a]).occupied = true;
clip.gotoandstop("empty");
}
if (clip.sensor.hittest(eval (((("clip._parent." add clip.floor) add "ladder") add _root.ab[clip.a]) add ".sensorbottom")) and (eval (((("clip._parent." add clip.floor) add "ladder") add _root.ab[clip.a]) add ".occupied") == false)) {
eval ((("clip._parent." add clip.floor) add "ladder") add _root.ab[clip.a]).gotoandplay("up");
eval ((("clip._parent." add clip.floor) add "ladder") add _root.ab[clip.a]).guest = clip._name;
eval ((("clip._parent." add clip.floor) add "ladder") add _root.ab[clip.a]).occupied = true;
clip.gotoandstop("empty");
}
clip.a++;
}
}
}
}
function worldmove(clip) {
if (falling == false) {
if ((((eval (("floor" add _root.floorfix) add "a") - ladderwidth) < hero._x) and (hero._x < (eval (("floor" add _root.floorfix) add "a") + ladderwidth))) or (((eval (("floor" add _root.floorfix) add "b") - ladderwidth) < hero._x) and (hero._x < (eval (("floor" add _root.floorfix) add "b") + ladderwidth)))) {
if (Key.isDown(38) and (Key.isDown(40) == false)) {
if ((_root.heroclimb == false) or (_root.direction == "down")) {
_root.floor++;
_root.floorfix = _root.floor - 1;
_root.heroclimb = true;
}
_root.direction = "up";
_root.hero.thebody.body.play();
if (_root.hero.thebody._currentframe != 2) {
_root.hero.thebody.gotoandstop(2);
}
if (clip._y != _root.herofloor[_root.floor]) {
clip._y = clip._y + speed;
}
}
if (((Key.isDown(40) and (Key.isDown(Key.Up) == false)) and (_root.heroclimb == true)) and (clip._y != _root.herofloor[0])) {
if (_root.direction == "up") {
_root.floor--;
_root.floorfix = _root.floor;
}
_root.direction = "down";
_root.hero.thebody.body.play();
if (_root.hero.thebody._currentframe != 3) {
_root.hero.thebody.gotoandstop(3);
}
if (clip._y != _root.herofloor[_root.floor]) {
clip._y = clip._y - speed;
}
}
}
if ((((eval (("floor" add (_root.floorfix - 1)) add "a") - ladderwidth) < hero._x) and (hero._x < (eval (("floor" add (_root.floorfix - 1)) add "a") + ladderwidth))) or (((eval (("floor" add (_root.floorfix - 1)) add "b") - ladderwidth) < hero._x) and (hero._x < (eval (("floor" add (_root.floorfix - 1)) add "b") + ladderwidth)))) {
if ((Key.isDown(40) and (Key.isDown(Key.Up) == false)) and (clip._y != _root.herofloor[0])) {
if ((_root.heroclimb == false) or (_root.direction == "up")) {
_root.floor--;
_root.floorfix = _root.floor;
_root.heroclimb = true;
}
_root.direction = "down";
_root.hero.thebody.body.play();
if (_root.hero.thebody._currentframe != 3) {
_root.hero.thebody.gotoandstop(3);
}
if (clip._y != _root.herofloor[_root.floor]) {
clip._y = clip._y - speed;
}
}
}
if ((Key.isDown(40) == false) and (Key.isDown(38) == false)) {
_root.hero.thebody.body.stop();
if (clip._y == _root.herofloor) {
_root.heroclimb = false;
}
}
if (clip._y == _root.herofloor[_root.floor]) {
if (_root.floor == 7) {
if (_root.level != 3) {
_root.play();
} else {
_root.gotoandstop("win");
}
}
if (_root.hero.thebody._currentframe != 1) {
_root.hero.thebody.gotoandstop(1);
}
if (Key.isDown(37)) {
_root.hero.thebody.body.play();
_root.direction = "left";
_root.floorfix = _root.floor;
_root.hero._xscale = 100;
if (_root.heroclimb) {
_root.heroclimb = false;
}
if (14 < _root.hero._x) {
_root.hero._x = _root.hero._x - speed;
}
} else if (Key.isDown(39)) {
_root.hero.thebody.body.play();
_root.direction = "right";
_root.hero._xscale = -100;
_root.floorfix = _root.floor;
if (_root.heroclimb) {
_root.heroclimb = false;
}
if (_root.hero._x < 381) {
_root.hero._x = _root.hero._x + speed;
}
} else {
_root.hero.thebody.body.stop();
}
}
}
}
stop();
falling = false;
timerclock.gotoandplay(2);
heroclimb = false;
herostart_x = hero._x;
speed = 4;
ladderheight = 128;
superpower = false;
ladderwidth = 18;
floor = 0;
level = 1;
floorfix = floor;
herofloor = new Array();
ab = new Array("a", "b");
i = 1;
while (i < 10) {
herofloor.push(((ladderheight * i) - 220) - ladderheight);
i++;
}
directions = new Array("left", "right");
modes = new Array("ladder", "walkon");
Instance of Symbol 175 MovieClip "world" in Frame 3
onClipEvent (enterFrame) {
_root.worldmove(this);
}
Instance of Symbol 202 MovieClip "hero" in Frame 3
onClipEvent (load) {
this._xscale = -100;
}
Frame 40
heroclimb = false;
hero._x = herostart_x;
speed = 4;
superpower = false;
floor = 0;
level = 2;
floorfix = floor;
stop();
Instance of Symbol 208 MovieClip "world" in Frame 40
onClipEvent (enterFrame) {
_root.worldmove(this);
}
Instance of Symbol 202 MovieClip "hero" in Frame 40
onClipEvent (load) {
this._xscale = -100;
}
Frame 76
heroclimb = false;
hero._x = herostart_x;
speed = 4;
superpower = false;
floor = 0;
level = 3;
floorfix = floor;
stop();
Instance of Symbol 211 MovieClip "world" in Frame 76
onClipEvent (enterFrame) {
_root.worldmove(this);
}
Instance of Symbol 202 MovieClip "hero" in Frame 76
onClipEvent (load) {
this._xscale = -100;
}
Frame 78
timerclock.stop();
Symbol 4 MovieClip Frame 5
loaded = int(100 / (_root.getBytesTotal() / _root.getBytesLoaded()));
if (loaded >= 100) {
stop();
_root.gotoandstop(2);
}
Symbol 4 MovieClip Frame 7
loaded = int(100 / (_root.getBytesTotal() / _root.getBytesLoaded()));
if (loaded >= 100) {
stop();
_root.gotoandstop(2);
}
bar._xscale = loaded;
Symbol 4 MovieClip Frame 8
gotoAndPlay (7);
Symbol 12 Button
on (release) {
nextFrame();
}
Symbol 25 MovieClip Frame 1
stop();
if (start != false) {
gotoAndStop (4);
start = false;
}
Symbol 25 MovieClip Frame 9
_root.timerclock.stop();
_root.gotoandstop("lose");
Symbol 31 MovieClip Frame 1
stop();
_root.superpower = false;
_root.hero.thebody.glow.gotoandstop(1);
Symbol 31 MovieClip Frame 2
_root.hero.thebody.glow.nextframe();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
oldtimer = getTimer();
Symbol 33 MovieClip Frame 3
time = Math.floor((getTimer() - oldtimer) / 1000) + _level0.conttime;
min = Math.floor(((time / 3600) - hours) * 60);
if (min < 10) {
min = "0" + min;
}
sec = Math.floor(((((time / 3600) - hours) * 60) - minutes) * 60);
if (60 < sec) {
sec = Math.floor((((((time / 3600) - hours) * 60) - minutes) * 60) - (min * 60));
}
if (sec < 10) {
sec = "0" + sec;
}
display = (min add ":") add sec;
Symbol 33 MovieClip Frame 4
gotoAndPlay (3);
Symbol 37 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
gotoAndStop(String(eval ("_parent._parent._parent." add _parent._parent.guest).body));
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
stop();
Symbol 88 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 6
stop();
Symbol 88 MovieClip Frame 7
stop();
Symbol 113 MovieClip Frame 1
gotoAndStop(String(eval ("_parent._parent._parent." add _parent._parent.guest).body));
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 3
stop();
Symbol 113 MovieClip Frame 4
stop();
Symbol 113 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 6
stop();
Symbol 113 MovieClip Frame 7
stop();
Symbol 114 MovieClip Frame 1
i = 0;
move = true;
stop();
Instance of Symbol 89 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.herohitterstair(this);
}
Symbol 114 MovieClip Frame 2
move = false;
Symbol 114 MovieClip Frame 3
_root.lives.prevFrame();
Symbol 114 MovieClip Frame 16
stop();
Symbol 140 MovieClip Frame 1
gotoAndStop(String(eval ("_parent._parent._parent." add _parent._parent.guest).body));
Symbol 140 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 3
stop();
Symbol 140 MovieClip Frame 4
stop();
Symbol 140 MovieClip Frame 5
stop();
Symbol 140 MovieClip Frame 6
stop();
Symbol 140 MovieClip Frame 7
stop();
Symbol 141 MovieClip Frame 1
i = 0;
move = true;
stop();
Instance of Symbol 89 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.herohitterstair(this);
}
Symbol 141 MovieClip Frame 2
move = false;
Symbol 141 MovieClip Frame 16
stop();
Symbol 142 MovieClip Frame 1
Set(("_root.floor" add this._name.substr(0, 1)) add this._name.substr(this._name.length - 1, 1), this._x);
Symbol 142 MovieClip Frame 2
stop();
this.occupied = false;
this.falling = false;
Symbol 142 MovieClip Frame 27
if (this.falling == false) {
eval ("_parent." add this.guest)._y = this._y + 47;
eval ("_parent." add this.guest).gotoandplay(2);
eval ("_parent." add this.guest).floor = eval ("_parent." add this.guest).floor - 1;
}
gotoAndStop (2);
Symbol 142 MovieClip Frame 53
if (this.falling == false) {
eval ("_parent." add this.guest)._y = this._y - 80;
eval ("_parent." add this.guest).gotoandplay(2);
eval ("_parent." add this.guest).floor = eval ("_parent." add this.guest).floor + 1;
}
gotoAndStop (2);
Symbol 142 MovieClip Frame 115
gotoAndStop (2);
Symbol 150 MovieClip Frame 1
stop();
Instance of Symbol 89 MovieClip in Symbol 150 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.waterdrinker(this);
}
Symbol 150 MovieClip Frame 2
play();
Symbol 150 MovieClip Frame 11
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
_parent._parent.sensor.nextFrame();
_root.lives.prevFrame();
Symbol 154 MovieClip Frame 36
_parent._parent.gotoandstop("empty");
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
_parent._parent.sensor.nextFrame();
_root.lives.prevFrame();
Symbol 157 MovieClip Frame 36
_parent._parent.gotoandstop("empty");
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
_parent._parent.sensor.nextFrame();
_root.lives.prevFrame();
Symbol 160 MovieClip Frame 36
_parent._parent.gotoandstop("empty");
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
_parent._parent.sensor.nextFrame();
_root.lives.prevFrame();
Symbol 163 MovieClip Frame 36
_parent._parent.gotoandstop("empty");
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
_parent._parent.sensor.nextFrame();
_root.lives.prevFrame();
Symbol 166 MovieClip Frame 36
_parent._parent.gotoandstop("empty");
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
_parent._parent.sensor.nextFrame();
_root.lives.prevFrame();
Symbol 170 MovieClip Frame 36
_parent._parent.gotoandstop("empty");
stop();
Symbol 171 MovieClip Frame 1
gotoAndStop(_parent.bodytag);
Symbol 171 MovieClip Frame 2
_parent.body = "a";
Symbol 171 MovieClip Frame 3
_parent.body = "b";
Symbol 171 MovieClip Frame 4
_parent.body = "c";
Symbol 171 MovieClip Frame 5
_parent.body = "d";
Symbol 171 MovieClip Frame 6
_parent.body = "e";
Symbol 171 MovieClip Frame 7
_parent.body = "f";
Symbol 172 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
this.floor = this._name.substr(6, 1);
bodytag = random(6) + 2;
Instance of Symbol 89 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.herohitter(this);
}
Symbol 173 MovieClip Frame 2
i = 0;
move = true;
mode = "walkon";
Symbol 173 MovieClip Frame 11
_root.choosemode(this);
stop();
Symbol 173 MovieClip Frame 12
move = false;
Instance of Symbol 173 MovieClip "walker1" in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker4" in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "valker5" in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker6" in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "Valker2" in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "Valker3" in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
if (_root.superpower) {
glow.nextframe();
}
Symbol 199 MovieClip Frame 2
if (_root.superpower) {
glow.nextframe();
}
Symbol 199 MovieClip Frame 3
if (_root.superpower) {
glow.nextframe();
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
_root.falling = false;
Symbol 202 MovieClip Frame 14
_root.falling = false;
gotoAndStop (1);
Symbol 202 MovieClip Frame 15
_root.falling = true;
Symbol 202 MovieClip Frame 37
_root.falling = false;
gotoAndStop (1);
Symbol 202 MovieClip Frame 39
_root.stairfall(this);
Symbol 202 MovieClip Frame 40
gotoAndPlay(_currentframe - 1);
Instance of Symbol 173 MovieClip "walker1" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker4" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "valker5" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker6" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "valker4" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker5" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "valker6" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "Valker2" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "Valker3" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker3" in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker1" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker6" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "valker4" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker5" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "valker6" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "Valker2" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "Valker3" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker3" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "walker2" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Instance of Symbol 173 MovieClip "Valker1" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.randomwalk(this);
}
Symbol 216 Button
on (release) {
gotoAndStop (2);
}
Symbol 218 MovieClip Frame 15
stop();