Frame 1
percent_loaded = 1;
total_frames = 15;
value = 35;
LOADED_FRAME = 3;
Frame 2
if (Number(percent_loaded) >= 100) {
gotoAndPlay (10);
}
Frame 3
ifFrameLoaded (LOADED_FRAME) {
percent_loaded = int((LOADED_FRAME * 100) / total_frames);
LOADED_FRAME = Number(LOADED_FRAME) + 1;
setProperty("BAR", _xscale , percent_loaded * value);
}
Frame 4
gotoAndPlay (2);
Frame 5
Frame 10
_root.player = "empty";
_root.lives = 3;
_root.gameWinCount = 0;
_root.music.gotoAndStop("intro");
stop();
Instance of Symbol 40 MovieClip "platform1" in Frame 10
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Frame 19
stop();
Instance of Symbol 40 MovieClip "platform1" in Frame 19
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Frame 29
stop();
Instance of Symbol 40 MovieClip "platform1" in Frame 29
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Frame 39
_root.pause = "off";
_root.fade = "off";
_root.levelEnd = "off";
_root.stageEnd = "off";
_root.nanoseconds = 0;
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 0;
_root.clockGo = "off";
_root.music.gotoAndPlay("levelLoad");
stop();
Instance of Symbol 118 MovieClip "platform4" in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 118 MovieClip "platform5" in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 120 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 120 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
Instance of Symbol 122 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
this._x = 1200;
}
}
Instance of Symbol 120 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 124 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 126 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 130 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(4) + 1;
if (((objectAppear < 3) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("off");
} else {
this.gotoAndStop("on");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 6000;
}
if (this.hitTest(_root.hero)) {
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 146 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 146 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 146 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 151 MovieClip "goBlink" in Frame 39
onClipEvent (enterFrame) {
if ((_root.stageEnd == "on") and (_root.blinkOn != "on")) {
this.gotoAndPlay("blink");
_root.blinkOn = "on";
}
}
Instance of Symbol 118 MovieClip "platform3" in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 700;
}
}
Instance of Symbol 152 MovieClip "platform2" in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 159 MovieClip "item" in Frame 39
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
itemSelect = random(6) + 1;
if (((itemSelect == 4) and (_root.speed != "on")) and (_root.inv != "on")) {
this.gotoAndStop("tiki");
} else if ((itemSelect <= 3) and (_root.power < 5)) {
this.gotoAndStop("medKit");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 199 MovieClip "hero" in Frame 39
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.char.play();
}
onClipEvent (keyUp) {
_root.scroll = "off";
this.mario.char.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.heroX = this._x;
if (((this._x >= 240) and Key.isDown(39)) and (_root.stageEnd != "on")) {
_root.scroll = "on";
} else if (this._x <= 240) {
_root.scroll = "off";
}
if (this._x <= 51) {
_root.leftEnd = "on";
} else if (this._x >= 51) {
_root.leftEnd = "off";
}
if (this._x > 480) {
_root.fade = "on";
}
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Key.isDown(37) and (_root.leftEnd != "on")) {
_root.scroll = "off";
Xstep = _root.heroMovement * -1;
Ystep = 0;
this.gotoAndStop("left");
} else if (Key.isDown(39) and (_root.scroll == "off")) {
Xstep = _root.heroMovement;
Ystep = 0;
this.gotoAndStop("right");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
render();
}
}
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this.gotoAndStop(1);
}
if (_root.scroll == "on") {
this.mario.char.play();
}
}
Instance of Symbol 40 MovieClip "platform1" in Frame 39
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 201 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 205 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement * 2);
}
if (this._x < 0) {
this._x = 5000;
this.gotoAndStop("off");
}
if ((this._x < 710) and (this._x > 650)) {
lemurOn = random(2) + 1;
if (lemurOn == 1) {
this.gotoAndStop("on");
}
if (lemurOn == 2) {
this.gotoAndStop("off");
}
}
}
Instance of Symbol 4 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 50) {
this._alpha = 50;
}
}
Instance of Symbol 208 MovieClip "fader" in Frame 39
onClipEvent (enterFrame) {
if (_root.fade == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 100) {
_root.gotoAndStop("level2");
}
}
Instance of Symbol 289 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
_root.distance = _root.distance + _root.heroMovement;
}
if (_root.distance > 10000) {
_root.levelEnd = "on";
}
if (_root.distance > 11000) {
_root.stageEnd = "on";
_root.scroll = "off";
}
if (_root.pause == "on") {
_root.scroll = "off";
}
}
Frame 40
_root.distance = 0;
_root.speed = "off";
_root.inv = "off";
_root.scroll = "off";
_root.heroMovement = 10;
power = 5;
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
_root.nanoseconds = 11;
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 3;
_root.clockGo = "on";
_root.level = "level1";
_root.music.gotoAndStop("level1");
stop();
Instance of Symbol 118 MovieClip "platform4" in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 118 MovieClip "platform5" in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 120 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 120 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
Instance of Symbol 122 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
this._x = 1200;
}
}
Instance of Symbol 120 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 124 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 126 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 130 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(4) + 1;
if (((objectAppear < 3) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("off");
} else {
this.gotoAndStop("on");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 6000;
}
if (this.hitTest(_root.hero)) {
_root.sfx.gotoAndPlay("speed");
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 146 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 146 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 146 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 151 MovieClip "goBlink" in Frame 40
onClipEvent (enterFrame) {
if ((_root.stageEnd == "on") and (_root.blinkOn != "on")) {
this.gotoAndPlay("blink");
_root.blinkOn = "on";
}
}
Instance of Symbol 118 MovieClip "platform3" in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 700;
}
}
Instance of Symbol 152 MovieClip "platform2" in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 159 MovieClip "item" in Frame 40
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
itemSelect = random(6) + 1;
if (((itemSelect == 4) and (_root.speed != "on")) and (_root.inv != "on")) {
this.gotoAndStop("tiki");
} else if ((itemSelect <= 3) and (_root.power < 5)) {
this.gotoAndStop("medKit");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 199 MovieClip "hero" in Frame 40
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.char.play();
}
onClipEvent (keyUp) {
_root.scroll = "off";
this.mario.char.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.heroX = this._x;
if (((this._x >= 240) and Key.isDown(39)) and (_root.stageEnd != "on")) {
this.gotoAndStop("right");
_root.scroll = "on";
} else if (this._x <= 240) {
_root.scroll = "off";
}
if (this._x <= 51) {
_root.leftEnd = "on";
} else if (this._x >= 51) {
_root.leftEnd = "off";
}
if (this._x > 480) {
_root.fade = "on";
}
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Key.isDown(37) and (_root.leftEnd != "on")) {
_root.scroll = "off";
Xstep = _root.heroMovement * -1;
Ystep = 0;
this.gotoAndStop("left");
} else if (Key.isDown(39) and (_root.scroll == "off")) {
Xstep = _root.heroMovement;
Ystep = 0;
this.gotoAndStop("right");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
render();
}
}
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this.gotoAndStop(1);
}
if (_root.scroll == "on") {
this.mario.char.play();
}
}
Instance of Symbol 40 MovieClip "platform1" in Frame 40
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 201 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 205 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement * 2);
}
if (this._x < 0) {
this._x = 5000;
this.gotoAndStop("off");
}
if ((this._x < 710) and (this._x > 650)) {
lemurOn = random(2) + 1;
if (lemurOn == 1) {
this.gotoAndStop("on");
}
if (lemurOn == 2) {
this.gotoAndStop("off");
}
}
}
Instance of Symbol 4 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 50) {
this._alpha = 50;
}
}
Instance of Symbol 208 MovieClip "fader" in Frame 40
onClipEvent (enterFrame) {
if (_root.fade == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 100) {
_root.gotoAndStop("level2");
}
}
Instance of Symbol 210 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 213 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 289 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.nanoseconds = _root.nanoseconds - 1;
if (_root.nanoseconds < 0) {
_root.nanoseconds = 11;
_root.milliseconds = _root.milliseconds - 1;
}
if (_root.milliseconds < 0) {
_root.milliseconds = 9;
_root.seconds = _root.seconds - 1;
}
if (_root.seconds < 0) {
_root.seconds = 5;
_root.minutes = _root.minutes - 1;
}
if (((_root.milliseconds == 0) and (_root.seconds == 0)) and (_root.minutes == 0)) {
_root.pause = "on";
_root.popUp.play();
_root.popUpError = "time";
}
}
}
Frame 49
_root.pause = "off";
_root.nanoseconds = 0;
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 0;
_root.fade = "off";
_root.clockGo = "off";
_root.music.gotoAndPlay("levelLoad");
stop();
Instance of Symbol 152 MovieClip "platform5" in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 152 MovieClip "platform1" in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 342 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 342 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 124 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 124 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 342 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 342 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 130 MovieClip in Frame 49
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(6) + 1;
if (((objectAppear > 5) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 600;
}
if (this.hitTest(_root.hero)) {
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 368 MovieClip in Frame 49
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
monkeyAppear = random(4) + 1;
if (monkeyAppear > 2) {
this.gotoAndPlay("on");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this.gotoAndStop("off");
this._x = 600;
}
}
Instance of Symbol 377 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.pause != "on") {
if (_root.scroll == "on") {
this._x = this._x - ((_root.heroMovement * 2) - 5);
} else {
this._x = this._x - 5;
}
if (this._x < 0) {
this._x = 3000;
}
}
}
Instance of Symbol 151 MovieClip "goBlink" in Frame 49
onClipEvent (enterFrame) {
if ((_root.stageEnd == "on") and (_root.blinkOn != "on")) {
this.gotoAndPlay("blink");
_root.blinkOn = "on";
}
}
Instance of Symbol 118 MovieClip "platform3" in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 700;
}
}
Instance of Symbol 152 MovieClip "platform2" in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 159 MovieClip "item" in Frame 49
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
itemSelect = random(6) + 1;
if (((itemSelect == 4) and (_root.speed != "on")) and (_root.inv != "on")) {
this.gotoAndStop("tiki");
} else if ((itemSelect <= 3) and (_root.power < 5)) {
this.gotoAndStop("medKit");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 152 MovieClip "platform4" in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 40 MovieClip "platform1" in Frame 49
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 201 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 201 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 342 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement * 2);
}
if (this._x < 0) {
this._x = 5000;
}
}
Instance of Symbol 4 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 50) {
this._alpha = 50;
}
}
Frame 50
_root.fade = "off";
_root.levelEnd = "off";
_root.stageEnd = "off";
_root.distance = 0;
_root.blinkOn = "off";
_root.nanoseconds = 11;
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 3;
_root.clockGo = "on";
_root.level = "level2";
_root.music.gotoAndStop("level2");
stop();
Instance of Symbol 152 MovieClip "platform5" in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 152 MovieClip "platform1" in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 342 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 342 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 124 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 124 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 342 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 342 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 130 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(6) + 1;
if (((objectAppear > 5) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 600;
}
if (this.hitTest(_root.hero)) {
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.sfx.gotoAndPlay("speed");
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 368 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
monkeyAppear = random(4) + 1;
if (monkeyAppear > 2) {
this.gotoAndPlay("on");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this.gotoAndStop("off");
this._x = 600;
}
}
Instance of Symbol 377 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.pause != "on") {
if (_root.scroll == "on") {
this._x = this._x - ((_root.heroMovement * 2) - 5);
} else {
this._x = this._x - 5;
}
if (this._x < 0) {
this._x = 3000;
}
}
if ((this._x < 450) and (this._x > 430)) {
_root.sfx.gotoAndPlay("buzz");
}
}
Instance of Symbol 151 MovieClip "goBlink" in Frame 50
onClipEvent (enterFrame) {
if ((_root.stageEnd == "on") and (_root.blinkOn != "on")) {
this.gotoAndPlay("blink");
_root.blinkOn = "on";
}
}
Instance of Symbol 118 MovieClip "platform3" in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 700;
}
}
Instance of Symbol 152 MovieClip "platform2" in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 159 MovieClip "item" in Frame 50
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
itemSelect = random(6) + 1;
if (((itemSelect == 4) and (_root.speed != "on")) and (_root.inv != "on")) {
this.gotoAndStop("tiki");
} else if ((itemSelect <= 3) and (_root.power < 5)) {
this.gotoAndStop("medKit");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 152 MovieClip "platform4" in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 199 MovieClip "hero" in Frame 50
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.char.play();
}
onClipEvent (keyUp) {
_root.scroll = "off";
this.mario.char.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.heroX = this._x;
if (((this._x >= 240) and Key.isDown(39)) and (_root.stageEnd != "on")) {
this.gotoAndStop("right");
_root.scroll = "on";
} else if (this._x <= 240) {
_root.scroll = "off";
}
if (this._x <= 51) {
_root.leftEnd = "on";
} else if (this._x >= 51) {
_root.leftEnd = "off";
}
if (this._x > 480) {
_root.fade = "on";
}
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Key.isDown(37) and (_root.leftEnd != "on")) {
_root.scroll = "off";
Xstep = _root.heroMovement * -1;
Ystep = 0;
this.gotoAndStop("left");
} else if (Key.isDown(39) and (_root.scroll == "off")) {
Xstep = _root.heroMovement;
Ystep = 0;
this.gotoAndStop("right");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
render();
}
}
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this.gotoAndStop(1);
}
if (_root.scroll == "on") {
this.mario.char.play();
}
}
Instance of Symbol 40 MovieClip "platform1" in Frame 50
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 201 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 201 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 342 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement * 2);
}
if (this._x < 0) {
this._x = 5000;
}
}
Instance of Symbol 4 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 50) {
this._alpha = 50;
}
}
Instance of Symbol 208 MovieClip "fader" in Frame 50
onClipEvent (enterFrame) {
if (_root.fade == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 100) {
_root.gotoAndStop("level3");
}
}
Instance of Symbol 210 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 379 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 289 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.nanoseconds = _root.nanoseconds - 1;
if (_root.nanoseconds < 0) {
_root.nanoseconds = 11;
_root.milliseconds = _root.milliseconds - 1;
}
if (_root.milliseconds < 0) {
_root.milliseconds = 9;
_root.seconds = _root.seconds - 1;
}
if (_root.seconds < 0) {
_root.seconds = 5;
_root.minutes = _root.minutes - 1;
}
if (((_root.milliseconds == 0) and (_root.seconds == 0)) and (_root.minutes == 0)) {
_root.pause = "on";
_root.popUp.play();
_root.popUpError = "time";
}
}
}
Frame 59
_root.fade = "off";
_root.levelEnd = "off";
_root.stageEnd = "off";
_root.distance = 0;
_root.blinkOn = "off";
_root.nanoseconds = 11;
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 0;
_root.clockGo = "off";
_root.level = "level4";
_root.music.gotoAndStop("level4");
_root.gameOverWin = "off";
stop();
Instance of Symbol 404 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 342 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 404 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 404 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 124 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 124 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 130 MovieClip in Frame 59
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(6) + 1;
if (((objectAppear > 5) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 600;
}
if (this.hitTest(_root.hero)) {
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 417 MovieClip in Frame 59
onClipEvent (enterFrame) {
if ((_root.distance > 540) and (_root.scroll == "on")) {
this._x = this._x - _root.heroMovement;
}
}
Instance of Symbol 422 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.distance > 840) {
this._x = this._x - (_root.heroMovement + 5);
}
}
Instance of Symbol 422 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.distance > 840) {
this._x = this._x - (_root.heroMovement + 5);
}
}
Instance of Symbol 422 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.distance > 840) {
this._x = this._x - (_root.heroMovement + 5);
}
}
Instance of Symbol 199 MovieClip "hero" in Frame 59
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.char.play();
}
onClipEvent (keyUp) {
_root.scroll = "off";
this.mario.char.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.heroX = this._x;
if (((this._x >= 240) and Key.isDown(39)) and (_root.stageEnd != "on")) {
this.gotoAndStop("right");
_root.scroll = "on";
} else if (this._x <= 240) {
_root.scroll = "off";
}
if (this._x <= 51) {
_root.leftEnd = "on";
} else if (this._x >= 51) {
_root.leftEnd = "off";
}
if (this._x > 450) {
this._x = 450;
}
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Key.isDown(37) and (_root.leftEnd != "on")) {
_root.scroll = "off";
Xstep = _root.heroMovement * -1;
Ystep = 0;
this.gotoAndStop("left");
} else if (Key.isDown(39) and (_root.scroll == "off")) {
Xstep = _root.heroMovement;
Ystep = 0;
this.gotoAndStop("right");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
render();
}
}
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this.gotoAndStop(1);
}
if (_root.scroll == "on") {
this.mario.char.play();
}
}
Instance of Symbol 4 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.gameOverWin == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 150) {
_root.gotoAndStop("youWin");
}
}
Instance of Symbol 208 MovieClip "fader" in Frame 59
onClipEvent (enterFrame) {
if (_root.fade == "on") {
this._alpha = this._alpha + 5;
}
}
Instance of Symbol 210 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 289 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
_root.distance = _root.distance + _root.heroMovement;
}
if (_root.distance > 300) {
_root.levelEnd = "on";
}
if (_root.distance > 850) {
_root.stageEnd = "on";
_root.scroll = "off";
}
if (_root.pause == "on") {
_root.scroll = "off";
}
if (_root.distance > 840) {
_root.gameWinCount = _root.gameWinCount + 1;
}
if (_root.gameWinCount > 30) {
_root.gameOverWin = "on";
}
}
Frame 69
_root.pause = "off";
_root.nanoseconds = 0;
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 0;
_root.fade = "off";
_root.clockGo = "off";
_root.music.gotoAndPlay("levelLoad");
stop();
Instance of Symbol 431 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 342 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 431 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 431 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 124 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 124 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 130 MovieClip in Frame 69
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(6) + 1;
if (((objectAppear > 5) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 600;
}
if (this.hitTest(_root.hero)) {
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 151 MovieClip "goBlink" in Frame 69
onClipEvent (enterFrame) {
if ((_root.stageEnd == "on") and (_root.blinkOn != "on")) {
this.gotoAndPlay("blink");
_root.blinkOn = "on";
}
}
Instance of Symbol 118 MovieClip "platform3" in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 700;
}
}
Instance of Symbol 159 MovieClip "item" in Frame 69
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
itemSelect = random(6) + 1;
if (((itemSelect == 4) and (_root.speed != "on")) and (_root.inv != "on")) {
this.gotoAndStop("tiki");
} else if ((itemSelect <= 3) and (_root.power < 4)) {
this.gotoAndStop("medKit");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 2000;
}
}
Instance of Symbol 118 MovieClip "platform4" in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 2000;
}
}
Instance of Symbol 118 MovieClip "platform1" in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 2000;
}
}
Instance of Symbol 199 MovieClip "hero" in Frame 69
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
_root.scroll = "off";
this.mario.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.heroX = this._x;
if (((this._x >= 240) and Key.isDown(39)) and (_root.stageEnd != "on")) {
_root.scroll = "on";
} else if (this._x <= 240) {
_root.scroll = "off";
}
if (this._x <= 51) {
_root.leftEnd = "on";
} else if (this._x >= 51) {
_root.leftEnd = "off";
}
if (this._x > 480) {
_root.fade = "on";
}
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Key.isDown(37) and (_root.leftEnd != "on")) {
_root.scroll = "off";
Xstep = _root.heroMovement * -1;
Ystep = 0;
this.gotoAndStop("left");
} else if (Key.isDown(39) and (_root.scroll == "off")) {
Xstep = _root.heroMovement;
Ystep = 0;
this.gotoAndStop("right");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
render();
}
}
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this.gotoAndStop(1);
}
if (_root.scroll == "on") {
this.mario.play();
}
}
Instance of Symbol 437 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.pause != "on") {
if (_root.scroll == "on") {
this._x = this._x - ((_root.heroMovement * 2) - 10);
} else {
this._x = this._x - 10;
}
if (this._x < 0) {
this._x = 3000;
}
}
}
Instance of Symbol 4 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 50) {
this._alpha = 50;
}
}
Instance of Symbol 289 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
_root.distance = _root.distance + _root.heroMovement;
}
if (_root.distance > 10000) {
_root.levelEnd = "on";
}
if (_root.distance > 11000) {
_root.stageEnd = "on";
_root.scroll = "off";
}
if (_root.pause == "on") {
_root.scroll = "off";
}
}
Frame 70
_root.fade = "off";
_root.levelEnd = "off";
_root.stageEnd = "off";
_root.distance = 0;
_root.blinkOn = "off";
_root.nanoseconds = 11;
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 3;
_root.level = "level3";
_root.music.gotoAndStop("level3");
stop();
Instance of Symbol 431 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 342 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 431 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 431 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 124 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 124 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 130 MovieClip in Frame 70
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(6) + 1;
if (((objectAppear > 5) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 600;
}
if (this.hitTest(_root.hero)) {
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 151 MovieClip "goBlink" in Frame 70
onClipEvent (enterFrame) {
if ((_root.stageEnd == "on") and (_root.blinkOn != "on")) {
this.gotoAndPlay("blink");
_root.blinkOn = "on";
}
}
Instance of Symbol 118 MovieClip "platform3" in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 700;
}
}
Instance of Symbol 159 MovieClip "item" in Frame 70
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
itemSelect = random(6) + 1;
if (((itemSelect == 4) and (_root.speed != "on")) and (_root.inv != "on")) {
this.gotoAndStop("tiki");
} else if ((itemSelect <= 3) and (_root.power < 4)) {
this.gotoAndStop("medKit");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 2000;
}
}
Instance of Symbol 118 MovieClip "platform4" in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 2000;
}
}
Instance of Symbol 118 MovieClip "platform1" in Frame 70
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 2000;
}
}
Instance of Symbol 199 MovieClip "hero" in Frame 70
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.char.play();
}
onClipEvent (keyUp) {
_root.scroll = "off";
this.mario.char.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.heroX = this._x;
if (((this._x >= 240) and Key.isDown(39)) and (_root.stageEnd != "on")) {
this.gotoAndStop("right");
_root.scroll = "on";
} else if (this._x <= 240) {
_root.scroll = "off";
}
if (this._x <= 51) {
_root.leftEnd = "on";
} else if (this._x >= 51) {
_root.leftEnd = "off";
}
if (this._x > 480) {
_root.fade = "on";
}
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Key.isDown(37) and (_root.leftEnd != "on")) {
_root.scroll = "off";
Xstep = _root.heroMovement * -1;
Ystep = 0;
this.gotoAndStop("left");
} else if (Key.isDown(39) and (_root.scroll == "off")) {
Xstep = _root.heroMovement;
Ystep = 0;
this.gotoAndStop("right");
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause != "on") {
render();
}
}
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this.gotoAndStop(1);
}
if (_root.scroll == "on") {
this.mario.char.play();
}
}
Instance of Symbol 201 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 201 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 201 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.pause != "on") {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
}
Instance of Symbol 445 MovieClip "tikiTaki" in Frame 70
onClipEvent (enterFrame) {
if (_root.pause != "on") {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 3000;
}
}
}
Instance of Symbol 437 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.pause != "on") {
if (_root.scroll == "on") {
this._x = this._x - ((_root.heroMovement * 2) - 10);
} else {
this._x = this._x - 10;
}
if (this._x < 0) {
this._x = 3000;
}
if ((this._x < 450) and (this._x > 430)) {
_root.sfx.gotoAndPlay("buzz");
}
}
}
Instance of Symbol 437 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.pause != "on") {
if (_root.scroll == "on") {
this._x = this._x - ((_root.heroMovement * 2) - 10);
} else {
this._x = this._x - 10;
}
if (this._x < 0) {
this._x = 3000;
}
if ((this._x < 450) and (this._x > 430)) {
_root.sfx.gotoAndPlay("buzz");
}
}
}
Instance of Symbol 4 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.pause == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 50) {
this._alpha = 50;
}
}
Instance of Symbol 208 MovieClip "fader" in Frame 70
onClipEvent (enterFrame) {
if (_root.fade == "on") {
this._alpha = this._alpha + 5;
}
if (this._alpha >= 100) {
_root.gotoAndStop("level4");
}
}
Instance of Symbol 210 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 441 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
Instance of Symbol 289 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.pause != "on") {
_root.nanoseconds = _root.nanoseconds - 1;
if (_root.nanoseconds < 0) {
_root.nanoseconds = 11;
_root.milliseconds = _root.milliseconds - 1;
}
if (_root.milliseconds < 0) {
_root.milliseconds = 9;
_root.seconds = _root.seconds - 1;
}
if (_root.seconds < 0) {
_root.seconds = 5;
_root.minutes = _root.minutes - 1;
}
if (((_root.milliseconds == 0) and (_root.seconds == 0)) and (_root.minutes == 0)) {
_root.pause = "on";
_root.popUp.play();
_root.popUpError = "time";
}
}
}
Frame 79
stop();
Instance of Symbol 482 MovieClip in Frame 79
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Instance of Symbol 4 MovieClip in Frame 79
onClipEvent (enterFrame) {
this._alpha = this._alpha - 10;
}
Frame 89
_root.distance = 0;
_root.speed = "off";
_root.inv = "off";
_root.scroll = "off";
_root.heroMovement = 10;
power = 10;
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 118 MovieClip "platform4" in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 118 MovieClip "platform5" in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 120 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 120 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement / 2);
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
Instance of Symbol 122 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
this._x = 1200;
}
}
Instance of Symbol 120 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < 0) and (_root.levelEnd != "on")) {
this._x = 600;
}
}
Instance of Symbol 124 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -30) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 126 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 6000;
}
}
Instance of Symbol 130 MovieClip in Frame 89
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
objectAppear = random(4) + 1;
if (((objectAppear < 3) and (_root.inv != "on")) and (_root.speed != "on")) {
this.gotoAndStop("off");
} else {
this.gotoAndStop("on");
}
}
if (_root.inv == "on") {
this.gotoAndStop("off");
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this.gotoAndStop("on");
this._x = 6000;
}
if (this.hitTest(_root.hero)) {
_root.heroMovement = _root.heroMovement * 2;
_root.speed = "on";
_root.speedMeter.play();
this.gotoAndStop("off");
}
}
Instance of Symbol 146 MovieClip in Frame 89
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 146 MovieClip in Frame 89
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 146 MovieClip in Frame 89
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
batOn = random(3) + 1;
if (batOn != 1) {
this.gotoAndStop("on");
batOn = "on";
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -50) and (_root.levelEnd != "on")) {
batFly = "off";
batOn = "off";
this._x = 1200;
}
if (((this._x < 375) and (batFly != "on")) and (batOn == "on")) {
this.gotoAndPlay("fly");
batFly = "on";
}
}
Instance of Symbol 151 MovieClip "goBlink" in Frame 89
onClipEvent (enterFrame) {
if ((_root.stageEnd == "on") and (_root.blinkOn != "on")) {
this.gotoAndPlay("blink");
_root.blinkOn = "on";
}
}
Instance of Symbol 118 MovieClip "platform3" in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -100) and (_root.levelEnd != "on")) {
this._x = 700;
}
}
Instance of Symbol 152 MovieClip "platform2" in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 159 MovieClip "item" in Frame 89
onClipEvent (enterFrame) {
if ((this._x < 610) and (this._x > 550)) {
itemSelect = random(6) + 1;
if (((itemSelect >= 4) and (_root.speed != "on")) and (_root.inv != "on")) {
this.gotoAndStop("tiki");
} else if ((itemSelect <= 3) and (_root.power < 5)) {
this.gotoAndStop("medKit");
} else {
this.gotoAndStop("off");
}
}
if (_root.scroll == "on") {
this._x = this._x - _root.heroMovement;
}
if ((this._x < -200) and (_root.levelEnd != "on")) {
this._x = 800;
}
}
Instance of Symbol 199 MovieClip "hero" in Frame 89
onClipEvent (load) {
move = 0;
lock = true;
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
_root.scroll = "off";
this.mario.gotoAndStop(1);
}
onClipEvent (enterFrame) {
_root.heroX = this._x;
if (((this._x >= 240) and Key.isDown(39)) and (_root.stageEnd != "on")) {
_root.scroll = "on";
} else if (this._x <= 240) {
_root.scroll = "off";
}
if (this._x <= 51) {
_root.leftEnd = "on";
} else if (this._x >= 51) {
_root.leftEnd = "off";
}
if (this._x > 480) {
_root.fade = "on";
}
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if (Key.isDown(37) and (_root.leftEnd != "on")) {
_root.scroll = "off";
Xstep = _root.heroMovement * -1;
Ystep = 0;
this.gotoAndStop("left");
} else if (Key.isDown(39) and (_root.scroll == "off")) {
Xstep = _root.heroMovement;
Ystep = 0;
this.gotoAndStop("right");
}
}
}
}
onClipEvent (enterFrame) {
render();
}
Instance of Symbol 201 MovieClip in Frame 89
onClipEvent (enterFrame) {
this._x = this._x - _root.heroMovement;
this._rotation = this._rotation - (_root.heroMovement * 3);
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
if ((this._x < -500) and (_root.levelEnd != "on")) {
this._x = 1000;
}
}
Instance of Symbol 40 MovieClip "platform1" in Frame 89
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 205 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
this._x = this._x - (_root.heroMovement * 2);
}
if (this._x < 0) {
this._x = 5000;
}
}
Instance of Symbol 289 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.scroll == "on") {
_root.distance = _root.distance + _root.heroMovement;
}
if (_root.distance > 10000) {
_root.levelEnd = "on";
}
if (_root.distance > 11000) {
_root.stageEnd = "on";
_root.scroll = "off";
}
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 5
stop();
Symbol 20 MovieClip Frame 15
stop();
Symbol 20 MovieClip Frame 21
stop();
Symbol 20 MovieClip Frame 26
stop();
Symbol 20 MovieClip Frame 31
stop();
Symbol 20 MovieClip Frame 36
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 11
gotoAndStop (1);
Symbol 32 MovieClip Frame 20
gotoAndStop (1);
Symbol 32 MovieClip Frame 34
gotoAndStop (1);
Symbol 32 MovieClip Frame 39
gotoAndStop (1);
Symbol 32 MovieClip Frame 52
gotoAndStop (1);
Symbol 32 MovieClip Frame 66
gotoAndStop (1);
Symbol 32 MovieClip Frame 71
gotoAndStop (1);
Symbol 32 MovieClip Frame 85
gotoAndStop (1);
Symbol 32 MovieClip Frame 103
gotoAndStop (1);
Symbol 32 MovieClip Frame 127
gotoAndStop (1);
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 10
stop();
Symbol 49 Button
on (release) {
gotoAndStop (19);
}
Instance of Symbol 56 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x < -220) {
this._x = 130;
}
}
Instance of Symbol 58 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < -265) {
this._x = 170;
}
}
Symbol 94 Button
on (release) {
gotoAndStop (29);
}
Symbol 97 Button
on (rollOver) {
_root.arrow.gotoAndStop("tommy");
}
on (release) {
_root.player = "tommy";
gotoAndStop (39);
}
Symbol 98 Button
on (rollOver) {
_root.arrow.gotoAndStop("chuckie");
}
on (release) {
_root.player = "chuckie";
gotoAndStop (39);
}
Symbol 99 Button
on (rollOver) {
_root.arrow.gotoAndStop("phil");
}
on (release) {
_root.player = "phil";
gotoAndStop (39);
}
Symbol 100 Button
on (rollOver) {
_root.arrow.gotoAndStop("lil");
}
on (release) {
_root.player = "lil";
gotoAndStop (39);
}
Symbol 101 Button
on (rollOver) {
_root.arrow.gotoAndStop("angelica");
}
on (release) {
_root.player = "angelica";
gotoAndStop (39);
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 109 MovieClip Frame 3
stop();
Symbol 109 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 5
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 5
gotoAndPlay (2);
Symbol 144 MovieClip Frame 4
gotoAndPlay (1);
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Instance of Symbol 144 MovieClip "bat" in Symbol 146 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 10
gotoAndPlay (5);
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Instance of Symbol 155 MovieClip in Symbol 159 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.inv = "on";
_root.invMeter.play();
_root.sfx.gotoAndPlay("inv");
_root.item.gotoAndStop("off");
}
}
Symbol 159 MovieClip Frame 3
stop();
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.power = 5;
_root.sfx.gotoAndPlay("health");
_root.item.gotoAndStop("off");
}
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
if ((_root.player == "tommy") or (_root.player == "phil")) {
_root.sfx.gotoAndPlay("ouch1");
}
if ((_root.player == "angelica") or (_root.player == "lil")) {
_root.sfx.gotoAndPlay("ouch2");
}
if (_root.player == "chuckie") {
_root.sfx.gotoAndPlay("ouch3");
}
Symbol 163 MovieClip Frame 10
_root.ouch = "off";
this.gotoAndStop("off");
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 3
stop();
Symbol 181 MovieClip Frame 4
stop();
Symbol 181 MovieClip Frame 5
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 3
stop();
Symbol 192 MovieClip Frame 4
stop();
Symbol 192 MovieClip Frame 5
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 3
stop();
Symbol 198 MovieClip Frame 4
stop();
Symbol 198 MovieClip Frame 5
stop();
Symbol 198 MovieClip Frame 6
stop();
Symbol 199 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)) {
_y = platform._y;
falling = false;
vertical = 0;
return(undefined);
}
i++;
}
platform = null;
return(undefined);
}
function render() {
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) && (Key.isDown(38) == true)) {
_root.sfx.gotoAndPlay("jump");
vertical = vforce * -1;
horizontal = horizontal + platform.velocity;
platform = null;
rising = true;
}
if (rising == true) {
vertical = vertical * gravity;
if (Math.abs(vertical) < 1) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
if (falling == true) {
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 = 5;
friction = 0.8;
gravity = 0.5;
accel = 1.7;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
stop();
stop();
Instance of Symbol 181 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Instance of Symbol 192 MovieClip "mario" in Symbol 199 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Instance of Symbol 192 MovieClip "mario" in Symbol 199 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Instance of Symbol 197 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.inv == "on") {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
}
Symbol 199 MovieClip Frame 2
stop();
Instance of Symbol 198 MovieClip in Symbol 199 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.speed == "on") {
this.gotoAndStop(_root.player);
} else {
this.gotoAndStop("off");
}
}
Symbol 199 MovieClip Frame 3
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 40
_root.play();
Instance of Symbol 220 MovieClip "purpleMeter" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.speed == "on") {
this._xscale = this._xscale - 1;
}
if (this._xscale <= 10) {
_root.heroMovement = 10;
_root.speed = "off";
_root.speedMeter.play();
}
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 9
stop();
Symbol 223 MovieClip Frame 27
meter.purpleMeter._xscale = 100;
gotoAndStop (1);
Instance of Symbol 225 MovieClip "yellowMeter" in Symbol 226 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.inv == "on") {
this._xscale = this._xscale - 1;
}
if (this._xscale <= 10) {
_root.inv = "off";
_root.invMeter.play();
}
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 9
_root.sfxLoops.gotoAndStop("glow");
stop();
Symbol 227 MovieClip Frame 19
_root.sfxLoops.gotoAndStop("off");
Symbol 227 MovieClip Frame 27
meter.yellowMeter._xscale = 100;
gotoAndStop (1);
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 244 MovieClip Frame 3
stop();
Symbol 244 MovieClip Frame 4
stop();
Symbol 244 MovieClip Frame 5
stop();
Instance of Symbol 236 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ouch == "on") {
this.gotoAndPlay("on");
} else {
this.gotoAndStop("off");
}
}
Instance of Symbol 244 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 3
stop();
Symbol 251 MovieClip Frame 4
stop();
Symbol 251 MovieClip Frame 5
stop();
Symbol 252 MovieClip Frame 1
stop();
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player);
}
Symbol 252 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 3
stop();
Symbol 252 MovieClip Frame 4
stop();
Symbol 258 MovieClip Frame 1
_root.power = 5;
stop();
Symbol 258 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 3
stop();
Symbol 258 MovieClip Frame 4
stop();
Symbol 258 MovieClip Frame 5
stop();
Symbol 258 MovieClip Frame 6
stop();
Instance of Symbol 258 MovieClip "meter" in Symbol 259 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.power == 5) {
this.gotoAndStop(1);
}
if (_root.power == 4) {
this.gotoAndStop(2);
}
if (_root.power == 3) {
this.gotoAndStop(3);
}
if (_root.power == 2) {
this.gotoAndStop(4);
}
if (_root.power == 1) {
this.gotoAndStop(5);
}
if ((_root.power == 0) or (_root.power == -1)) {
this.gotoAndStop(6);
_root.pause = "on";
_root.lives = _root.lives - 1;
_root.popUp.play();
_root.popUpError = "energy";
_root.power = _root.power - 3;
_root.energyBars.meterLives.play();
if (_root.lives == 0) {
_root.popUpError = "gameOver";
}
}
}
Instance of Symbol 266 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.pause != "on") and (_root.clockGo == "on")) {
this._rotation = this._rotation - 5;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.pause != "on") and (_root.clockGo == "on")) {
this._rotation = this._rotation - 1;
}
}
Instance of Symbol 266 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.pause != "on") and (_root.clockGo == "on")) {
this._rotation = this._rotation - 5;
}
}
Symbol 318 Button
on (release) {
_root.power = 5;
_root.pause = "off";
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 0;
_root.clockGo = "off";
_root.ouch = "off";
_root.gotoAndStop(_root.level);
}
Symbol 323 Button
on (release) {
_root.power = 5;
_root.pause = "off";
_root.milliseconds = 0;
_root.seconds = 0;
_root.minutes = 0;
_root.clockGo = "off";
_root.ouch = "off";
_root.lives = 3;
_root.gotoAndStop("title");
}
Symbol 328 Button
on (release) {
_root.lives = _root.lives - 1;
_root.gotoAndStop(_root.level);
}
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 5
stop();
Symbol 329 MovieClip Frame 10
stop();
Symbol 329 MovieClip Frame 15
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 12
stop();
Instance of Symbol 329 MovieClip in Symbol 330 MovieClip Frame 12
onClipEvent (enterFrame) {
this.gotoAndStop(_root.popUpError);
}
Symbol 341 MovieClip Frame 1
Symbol 368 MovieClip Frame 1
stop();
Instance of Symbol 352 MovieClip in Symbol 368 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_parent.gotoAndPlay("fall");
}
}
Symbol 368 MovieClip Frame 21
_root.sfx.gotoAndPlay("monkey");
Instance of Symbol 358 MovieClip in Symbol 368 MovieClip Frame 28
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Instance of Symbol 362 MovieClip in Symbol 368 MovieClip Frame 32
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Instance of Symbol 364 MovieClip in Symbol 368 MovieClip Frame 32
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Symbol 368 MovieClip Frame 45
gotoAndPlay (10);
Symbol 368 MovieClip Frame 62
stop();
Instance of Symbol 376 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Instance of Symbol 376 MovieClip in Symbol 377 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Symbol 380 MovieClip Frame 40
_root.play();
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 1;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Symbol 442 MovieClip Frame 40
_root.play();
Instance of Symbol 444 MovieClip in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) and (_root.ouch != "on")) and (_root.inv != "on")) {
_root.power = _root.power - 2;
_root.ouch = "on";
_root.hero.flash.gotoAndPlay("on");
}
}
Symbol 445 MovieClip Frame 21
if ((_root.tikiTaki._x < 500) and (_root.tikiTaki._x > -100)) {
_root.sfx.gotoAndPlay("tiki");
}
Instance of Symbol 289 MovieClip in Symbol 445 MovieClip Frame 22
onClipEvent (enterFrame) {
_parent._x = _parent._x - 5;
}
Symbol 465 MovieClip Frame 10
stop();
Symbol 466 Button
on (release) {
_root.pause = "off";
_root.gotoAndStop("title");
}
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 2
stop();
Symbol 482 MovieClip Frame 3
stop();
Symbol 482 MovieClip Frame 4
stop();
Symbol 482 MovieClip Frame 5
stop();