Frame 1
loadpercent = "0%";
loadBytes = ("0 of " + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb";
Frame 2
loadPercent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
loadBytes = (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.";
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
stop();
Frame 5
stop();
Frame 7
lives = 3;
maxPlatforms = 0;
score = 0;
clocks = 32;
stopped = 0;
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
nextFrame();
Frame 11
stop();
Frame 12
gotoAndPlay (34);
Frame 13
prevFrame();
Frame 14
nextFrame();
Frame 15
stop();
Frame 16
gotoAndPlay (37);
Frame 17
prevFrame();
Frame 18
nextFrame();
Frame 19
stop();
Frame 20
gotoAndPlay (40);
Frame 21
prevFrame();
Frame 22
nextFrame();
Frame 23
stop();
Frame 24
gotoAndPlay (43);
Frame 25
prevFrame();
Frame 26
nextFrame();
Frame 27
stop();
Frame 28
gotoAndPlay (46);
Frame 29
prevFrame();
Frame 30
nextFrame();
Frame 31
stop();
_root.clocks = 32;
Frame 32
gotoAndPlay (49);
Frame 33
prevFrame();
Frame 34
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 104 MovieClip "player" in Frame 34
onClipEvent (enterFrame) {
render();
}
onClipEvent (load) {
_root.stopped = 0;
}
onClipEvent (enterFrame) {
if (Number(_root.clocks) == 0) {
_root.clocks = 32;
stopAllSounds();
_root.gotoAndPlay("i2");
}
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 11;
}
}
}
}
onClipEvent (enterFrame) {
if (this._x <= 0) {
this._x = 10;
}
if (this._x >= 500) {
this._x = 490;
}
}
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
if (Number(_root.vertical) == 0) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Number(_root.stopped) == 0) {
if (Key.isDown(37)) {
Xstep = -10;
Ystep = 0;
}
if (Key.isDown(39)) {
Xstep = 10;
Ystep = 0;
} else if (Number(_root.stopped) == 1) {
this.gotoAndStop("stopped");
}
}
}
}
}
Instance of Symbol 109 MovieClip "bad0" in Frame 34
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives == 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Frame 35
prevFrame();
Frame 36
nextFrame();
Frame 37
stop();
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
Instance of Symbol 104 MovieClip "player" in Frame 37
onClipEvent (enterFrame) {
render();
}
onClipEvent (load) {
_root.stopped = 0;
}
onClipEvent (enterFrame) {
if (Number(_root.clocks) == 0) {
_root.clocks = 32;
stopAllSounds();
_root.gotoAndPlay("i3");
}
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 11;
}
}
}
if (this.hitTest(_root.underplat1)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat2)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat3)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat4)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat5)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat0)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
onClipEvent (enterFrame) {
if (this._x <= 0) {
this._x = 10;
}
if (this._x >= 500) {
this._x = 490;
}
}
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
if (Number(_root.vertical) == 0) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Number(_root.stopped) == 0) {
if (Key.isDown(37)) {
Xstep = -10;
Ystep = 0;
}
if (Key.isDown(39)) {
Xstep = 10;
Ystep = 0;
} else if (Number(_root.stopped) == 1) {
this.gotoAndStop("stopped");
}
}
}
}
}
Instance of Symbol 109 MovieClip "bad0" in Frame 37
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives == 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Instance of Symbol 109 MovieClip "bad1" in Frame 37
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives <= 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Frame 38
prevFrame();
Frame 39
nextFrame();
Frame 40
stop();
Instance of Symbol 104 MovieClip "player" in Frame 40
onClipEvent (enterFrame) {
render();
}
onClipEvent (load) {
_root.stopped = 0;
}
onClipEvent (enterFrame) {
if (Number(_root.clocks) == 0) {
_root.clocks = 32;
stopAllSounds();
_root.gotoAndPlay("i4");
}
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 11;
}
}
}
if (this.hitTest(_root.underplat1)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat2)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat3)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat4)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat5)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat0)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
onClipEvent (enterFrame) {
if (this._x <= 0) {
this._x = 10;
}
if (this._x >= 500) {
this._x = 490;
}
}
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
if (Number(_root.vertical) == 0) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Number(_root.stopped) == 0) {
if (Key.isDown(37)) {
Xstep = -10;
Ystep = 0;
}
if (Key.isDown(39)) {
Xstep = 10;
Ystep = 0;
} else if (Number(_root.stopped) == 1) {
this.gotoAndStop("stopped");
}
}
}
}
}
Instance of Symbol 109 MovieClip "bad0" in Frame 40
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives == 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Instance of Symbol 109 MovieClip "bad1" in Frame 40
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives <= 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Frame 41
prevFrame();
Frame 42
nextFrame();
Frame 43
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 109 MovieClip "bad1" in Frame 43
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives <= 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Instance of Symbol 82 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.lives = _root.lives + 1;
this.gotoAndStop(2);
}
}
Instance of Symbol 104 MovieClip "player" in Frame 43
onClipEvent (enterFrame) {
render();
}
onClipEvent (load) {
_root.stopped = 0;
}
onClipEvent (enterFrame) {
if (Number(_root.clocks) == 0) {
_root.clocks = 32;
stopAllSounds();
_root.gotoAndPlay("i5");
}
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 11;
}
}
}
}
onClipEvent (enterFrame) {
if (this._x <= 0) {
this._x = 10;
}
if (this._x >= 500) {
this._x = 490;
}
}
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
if (Number(_root.vertical) == 0) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Number(_root.stopped) == 0) {
if (Key.isDown(37)) {
Xstep = -10;
Ystep = 0;
}
if (Key.isDown(39)) {
Xstep = 10;
Ystep = 0;
} else if (Number(_root.stopped) == 1) {
this.gotoAndStop("stopped");
}
}
}
}
}
Instance of Symbol 109 MovieClip "bad0" in Frame 43
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives == 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Frame 44
prevFrame();
Frame 45
nextFrame();
Frame 46
stop();
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
Instance of Symbol 104 MovieClip "player" in Frame 46
onClipEvent (enterFrame) {
render();
}
onClipEvent (load) {
_root.stopped = 0;
}
onClipEvent (enterFrame) {
if (Number(_root.clocks) == 0) {
_root.clocks = 32;
stopAllSounds();
_root.gotoAndPlay("i6");
}
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 11;
}
}
}
if (this.hitTest(_root.underplat1)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat2)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat3)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat4)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat5)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
} else if (this.hitTest(_root.underplat0)) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
onClipEvent (enterFrame) {
if (this._x <= 0) {
this._x = 10;
}
if (this._x >= 500) {
this._x = 490;
}
}
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
if (Number(_root.vertical) == 0) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Number(_root.stopped) == 0) {
if (Key.isDown(37)) {
Xstep = -10;
Ystep = 0;
}
if (Key.isDown(39)) {
Xstep = 10;
Ystep = 0;
} else if (Number(_root.stopped) == 1) {
this.gotoAndStop("stopped");
}
}
}
}
}
Instance of Symbol 109 MovieClip "bad0" in Frame 46
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives == 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Instance of Symbol 109 MovieClip "bad1" in Frame 46
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives <= 0) {
_root.gotoAndStop("die");
}
if (this._y <= 0) {
this._y = 0;
}
}
Frame 47
prevFrame();
Frame 48
nextFrame();
Frame 49
stop();
Instance of Symbol 104 MovieClip "player" in Frame 49
onClipEvent (enterFrame) {
render();
}
onClipEvent (load) {
_root.stopped = 0;
}
onClipEvent (enterFrame) {
if (Number(_root.clocks) == 0) {
_root.clocks = 32;
stopAllSounds();
_root.gotoAndPlay("win");
}
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 11;
}
}
}
}
onClipEvent (enterFrame) {
if (this._x <= 80) {
this._x = 85;
}
if (this._x >= 420) {
this._x = 410;
}
}
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
if (Number(_root.vertical) == 0) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Number(_root.stopped) == 0) {
if (Key.isDown(37)) {
Xstep = -10;
Ystep = 0;
}
if (Key.isDown(39)) {
Xstep = 10;
Ystep = 0;
} else if (Number(_root.stopped) == 1) {
this.gotoAndStop("stopped");
}
}
}
}
}
Instance of Symbol 151 MovieClip in Frame 49
onClipEvent (load) {
reset();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.stopped = 1;
this.gotoAndPlay("stopper");
tellTarget ("/loser") {
play();
};
}
if (_root.lives <= 0) {
_root.gotoAndStop("die");
}
}
Frame 50
prevFrame();
Frame 51
nextFrame();
Frame 52
stopAllSounds();
play();
Frame 53
stop();
Frame 54
prevFrame();
Frame 55
nextFrame();
Frame 56
stop();
Frame 57
prevFrame();
Symbol 7 MovieClip Frame 1
this._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
Symbol 7 MovieClip Frame 2
gotoAndPlay (1);
Symbol 24 Button
on (release) {
play();
}
Symbol 35 MovieClip Frame 80
stop();
Symbol 36 MovieClip Frame 80
stop();
_root.play();
Symbol 41 Button
on (release) {
gotoAndPlay (9);
}
Symbol 46 Button
on (release) {
stopAllSounds();
gotoAndPlay (11);
}
Symbol 51 Button
on (release) {
gotoAndStop (8);
}
Symbol 59 Button
on (release) {
gotoAndStop (7);
}
Symbol 65 MovieClip Frame 94
_root.play();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
_root.clocks = _root.clocks - 1;
Symbol 99 MovieClip Frame 6
gotoAndPlay (5);
Symbol 103 MovieClip Frame 3
gotoAndPlay (1);
Symbol 103 MovieClip Frame 4
stop();
Symbol 103 MovieClip Frame 5
prevFrame();
Symbol 103 MovieClip Frame 6
stop();
Symbol 103 MovieClip Frame 7
prevFrame();
Symbol 104 MovieClip Frame 1
function hitPlatforms() {
var i;
var y;
var x;
i = 0;
while (i < _root.maxPlatforms) {
platform = eval ("_root.platform" + i);
y = _y + vertical;
x = _x + horizontal;
if (((_y < platform._y) && (y >= platform._y)) && (platform.hitTest(x, platform._y) == true)) {
this.gotoAndStop(2);
_y = platform._y;
falling = false;
vertical = 0;
return(undefined);
}
i++;
}
platform = null;
return(undefined);
}
function render() {
if (this._y <= 0) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
this._y = 5;
}
var x;
var y;
x = (y = 0);
if (Math.abs(horizontal) < Math.abs(x)) {
horizontal = x;
} else {
horizontal = horizontal * friction;
if (Math.abs(horizontal) < 1) {
horizontal = 0;
}
}
if (vertical == 0) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
if ((vertical == 0) && (Key.isDown(38) == true)) {
vforce = 50;
vertical = vforce * -1;
horizontal = horizontal + platform.velocity;
platform = null;
rising = true;
}
if (rising == true) {
this.gotoAndStop("up");
vertical = vertical * gravity;
if (Key.isDown(38) == false) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
if (Math.abs(vertical) < 1) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
if (falling == true) {
this.gotoAndStop("falling");
vertical = vertical * accel;
hitPlatforms();
}
lastX = _x;
lastY = _y;
_y = (_y + vertical);
_x = ((_x + horizontal) + platform.velocity);
if ((platform != null) && (platform.hitTest(_x, platform._y, true) == false)) {
vertical = 2;
falling = true;
}
}
vforce = 80;
hforce = 10;
horizontal = 0;
vertical = 40;
friction = 0.8;
gravity = 0.9;
accel = 1.2;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
stop();
stop();
Symbol 104 MovieClip Frame 3
stop();
Symbol 104 MovieClip Frame 4
stop();
Symbol 104 MovieClip Frame 5
stop();
Symbol 104 MovieClip Frame 6
stop();
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 6
on (keyPress "<Right>") {
this.gotoAndPlay("right");
player._x = player._x + 5;
}
on (keyPress "<Left>") {
this.gotoAndPlay("left");
player._x = player._x - 5;
}
on (keyPress "<Down>") {
this.gotoAndPlay(1);
}
Symbol 104 MovieClip Frame 7
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 3
stop();
Symbol 108 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 1
newy = 30 + random(450);
newx = 30 + random(540);
playerx = _root.player._x;
playery = _root.player._y;
diffx = Math.abs(playerx - this._x);
diffx = Math.abs(playery - this._y);
if (this.hitTest(_root.player)) {
_root.hold = 1;
_root.lives = _root.lives - 1;
} else if ((diffx <= 100) && (diffy <= 100)) {
gotoAndPlay (11);
} else {
gotoAndPlay (6);
}
Symbol 109 MovieClip Frame 6
distx = int(getProperty(this, _x) - newx);
disty = int(getProperty(this, _y) - newy);
if ((disty > 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("ul");
}
}
}
if ((disty < 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("dl");
}
}
}
if ((disty < 0) && (distx < 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else {
with (this.ghost) {
gotoAndStop("dr");
}
}
}
if ((disty > 0) && (distx < 0)) {
if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else {
with (this.ghost) {
gotoAndStop("ur");
}
}
}
z = (distx * distx) + (disty * disty);
hyp = Math.sqrt(z);
speed = 2;
distance = int(hyp / speed);
movex = distx / distance;
movey = disty / distance;
if (distance <= 0) {
gotoAndPlay (1);
} else {
setProperty(this, _x , getProperty(this, _x) - movex);
setProperty(this, _y , getProperty(this, _y) - movey);
distance = distance - 1;
}
Symbol 109 MovieClip Frame 7
playerx = _root.player._x;
playery = _root.player._y;
diffx = Math.abs(playerx - this._x);
diffx = Math.abs(playery - this._y);
if (this.hitTest(_root.player)) {
_root.hold = 1;
_root.lives = _root.lives - 1;
} else if ((diffx <= 100) && (diffy <= 100)) {
gotoAndPlay (11);
} else {
gotoAndPlay (6);
}
Symbol 109 MovieClip Frame 11
newx = _root.player._x;
newy = _root.player._y;
distx = int(getProperty(this, _x) - newx);
disty = int(getProperty(this, _y) - newy);
if ((disty > 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("ul");
}
}
}
if ((disty < 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("dl");
}
}
}
if ((disty < 0) && (distx < 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else {
with (this.ghost) {
gotoAndStop("dr");
}
}
}
if ((disty > 0) && (distx < 0)) {
if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else {
with (this.ghost) {
gotoAndStop("ur");
}
}
}
z = (distx * distx) + (disty * disty);
hyp = Math.sqrt(z);
speed = 4;
distance = int(hyp / speed);
movex = distx / distance;
movey = disty / distance;
if (distance <= 0) {
gotoAndPlay (1);
} else {
setProperty(this, _x , getProperty(this, _x) - movex);
setProperty(this, _y , getProperty(this, _y) - movey);
distance = distance - 1;
}
Symbol 109 MovieClip Frame 12
playerx = _root.player._x;
playery = _root.player._y;
diffx = Math.abs(playerx - this._x);
diffx = Math.abs(playery - this._y);
if (this.hitTest(_root.player)) {
_root.hold = 1;
_root.lives = _root.lives - 1;
} else if ((diffx <= 100) && (diffy <= 100)) {
gotoAndPlay (11);
} else {
gotoAndPlay (6);
}
Symbol 109 MovieClip Frame 16
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
if (Number(_root.lives) == 1) {
gotoAndPlay (9);
}
Symbol 119 MovieClip Frame 8
stop();
_root.lives = _root.lives - 1;
_root.nextFrame();
gotoAndStop (1);
Symbol 119 MovieClip Frame 28
stop();
_root.gotoAndPlay("die");
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 3
stop();
Symbol 150 MovieClip Frame 4
stop();
Symbol 151 MovieClip Frame 1
newy = 30 + random(450);
newx = 30 + random(540);
playerx = _root.player._x;
playery = _root.player._y;
diffx = Math.abs(playerx - this._x);
diffx = Math.abs(playery - this._y);
if (this.hitTest(_root.player)) {
_root.hold = 1;
_root.lives = _root.lives - 1;
} else if ((diffx <= 100) && (diffy <= 100)) {
gotoAndPlay (11);
} else {
gotoAndPlay (6);
}
Symbol 151 MovieClip Frame 6
distx = int(getProperty(this, _x) - newx);
disty = int(getProperty(this, _y) - newy);
if ((disty > 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("ul");
}
}
}
if ((disty < 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("dl");
}
}
}
if ((disty < 0) && (distx < 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else {
with (this.ghost) {
gotoAndStop("dr");
}
}
}
if ((disty > 0) && (distx < 0)) {
if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else {
with (this.ghost) {
gotoAndStop("ur");
}
}
}
z = (distx * distx) + (disty * disty);
hyp = Math.sqrt(z);
speed = 4;
distance = int(hyp / speed);
movex = distx / distance;
movey = disty / distance;
if (distance <= 0) {
gotoAndPlay (1);
} else {
setProperty(this, _x , getProperty(this, _x) - movex);
setProperty(this, _y , getProperty(this, _y) - movey);
distance = distance - 1;
}
Symbol 151 MovieClip Frame 7
playerx = _root.player._x;
playery = _root.player._y;
diffx = Math.abs(playerx - this._x);
diffx = Math.abs(playery - this._y);
if (this.hitTest(_root.player)) {
_root.hold = 1;
_root.lives = _root.lives - 1;
} else if ((diffx <= 100) && (diffy <= 100)) {
gotoAndPlay (11);
} else {
gotoAndPlay (6);
}
Symbol 151 MovieClip Frame 11
newx = _root.player._x;
newy = _root.player._y;
distx = int(getProperty(this, _x) - newx);
disty = int(getProperty(this, _y) - newy);
if ((disty > 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("ul");
}
}
}
if ((disty < 0) && (distx > 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("l");
}
} else {
with (this.ghost) {
gotoAndStop("dl");
}
}
}
if ((disty < 0) && (distx < 0)) {
if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("d");
}
} else if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else {
with (this.ghost) {
gotoAndStop("dr");
}
}
}
if ((disty > 0) && (distx < 0)) {
if (Math.abs(disty) < Math.abs(distx / 2)) {
with (this.ghost) {
gotoAndStop("r");
}
} else if (Math.abs(distx) < Math.abs(disty / 2)) {
with (this.ghost) {
gotoAndStop("u");
}
} else {
with (this.ghost) {
gotoAndStop("ur");
}
}
}
z = (distx * distx) + (disty * disty);
hyp = Math.sqrt(z);
speed = 10;
distance = int(hyp / speed);
movex = distx / distance;
movey = disty / distance;
if (distance <= 0) {
gotoAndPlay (1);
} else {
setProperty(this, _x , getProperty(this, _x) - movex);
setProperty(this, _y , getProperty(this, _y) - movey);
distance = distance - 1;
}
Symbol 151 MovieClip Frame 12
playerx = _root.player._x;
playery = _root.player._y;
diffx = Math.abs(playerx - this._x);
diffx = Math.abs(playery - this._y);
if (this.hitTest(_root.player)) {
_root.hold = 1;
_root.lives = _root.lives - 1;
} else if ((diffx <= 100) && (diffy <= 100)) {
gotoAndPlay (11);
} else {
gotoAndPlay (6);
}
Symbol 151 MovieClip Frame 16
stop();
Symbol 157 Button
on (release) {
gotoAndPlay (6);
}
Symbol 162 Button
on (release) {
gotoAndPlay (6);
}
Symbol 175 Button
on (release) {
gotoAndPlay (6);
}