Frame 1
_root.createTextField("texta", 1000, 100, 100, 100, 100);
_root.texta.text = "Loading preloader.";
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0;
my_fmt.underline = true;
_root.texta.setTextFormat(my_fmt);
_root.onEnterFrame = function () {
if (pl.getBytesLoaded() == pl.getBytesTotal()) {
removeMovieClip(_root.texta);
delete this.onEnterFrame;
}
};
Instance of Symbol 45 MovieClip "pl" in Frame 1
onClipEvent (load) {
_root.stop();
}
Frame 402
stop();
Frame 406
stop();
marioIntro.stop();
Frame 432
stop();
marioMusic = new Sound();
marioMusic.attachSound("marioMusic");
marioMusic.start(0, 20);
Instance of Symbol 85 MovieClip "conCirc" in Frame 432
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 432
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = false;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("begin");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
if (this._x < 300) {
this._x = this._x - walkSpeed;
} else {
_root.levelOne._x = _root.levelOne._x + walkSpeed;
}
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
if ((jumping && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
}
if (jumping) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y == 0) {
falling = true;
}
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
if (this._x < 300) {
this._x = this._x - walkSpeed;
} else {
_root.levelOne._x = _root.levelOne._x + walkSpeed;
}
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
if ((jumping && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
}
if (jumping) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y == 0) {
falling = true;
}
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 458
stop();
marioMusic = new Sound();
marioMusic.attachSound("underground");
marioMusic.stop();
marioMusic.start(0, 20);
Instance of Symbol 171 MovieClip "levelOne" in Frame 458
onClipEvent (load) {
levelMovement = true;
}
onClipEvent (enterFrame) {
if (this._x < -1500) {
levelMovement = false;
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 458
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 173 MovieClip "levelTwo" in Frame 458
onClipEvent (load) {
levelMovement = false;
}
onClipEvent (enterFrame) {
if (_root.levelOne._x < -1000) {
levelMovement = true;
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 458
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = false;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginTwo");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
if (this._x < 300) {
this._x = this._x - walkSpeed;
} else {
if (_root.levelOne.levelMovement) {
_root.levelOne._x = _root.levelOne._x + walkSpeed;
}
if (_root.levelTwo.levelMovement) {
_root.levelTwo._x = _root.levelTwo._x + walkSpeed;
}
}
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
if (this._x < 300) {
this._x = this._x - walkSpeed;
} else {
if (_root.levelOne.levelMovement) {
_root.levelOne._x = _root.levelOne._x + walkSpeed;
}
if (_root.levelTwo.levelMovement) {
_root.levelTwo._x = _root.levelTwo._x + walkSpeed;
}
}
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 484
stop();
marioMusic = new Sound();
marioMusic.attachSound("castle");
marioMusic.stop();
marioMusic.start(0, 20);
Instance of Symbol 197 MovieClip "levelTwo" in Frame 484
onClipEvent (load) {
levelMovement = false;
}
onClipEvent (enterFrame) {
if (_root.levelOne._x < -900) {
levelMovement = true;
}
}
Instance of Symbol 202 MovieClip "levelOne" in Frame 484
onClipEvent (load) {
levelMovement = true;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 484
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 484
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = false;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginThree");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
if (this._x < 300) {
this._x = this._x - walkSpeed;
} else {
if (_root.levelOne.levelMovement) {
_root.levelOne._x = _root.levelOne._x + walkSpeed;
}
if (_root.levelTwo.levelMovement) {
_root.levelTwo._x = _root.levelTwo._x + walkSpeed;
}
}
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
if (this._x < 300) {
this._x = this._x - walkSpeed;
} else {
if (_root.levelOne.levelMovement) {
_root.levelOne._x = _root.levelOne._x + walkSpeed;
}
if (_root.levelTwo.levelMovement) {
_root.levelTwo._x = _root.levelTwo._x + walkSpeed;
}
}
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 510
stop();
marioBoss = new Sound();
marioBoss.attachSound("hammer");
marioBoss.stop();
marioBoss.start(0, 50);
Instance of Symbol 127 MovieClip "enemy1" in Frame 510
onClipEvent (load) {
turnRight = _parent.ground1._x - (_parent.ground1._width / 2);
turnLeft = _parent.ground1._x + (_parent.ground1._width / 2);
walkSpeed = 2;
faceRight = false;
playWalk = false;
turtleCounter = 100;
this._x = 515;
this._y = -75;
}
onClipEvent (enterFrame) {
if (_root.lavaBoss.bossLife == 0) {
this._y = 700;
this._x = 900;
walkSpeed = 0;
}
if (!playWalk) {
_root.enemy1.tWalk.stop();
}
if (turtleCounter > 0) {
turtleCounter--;
}
if (turtleCounter == 0) {
if (this._y < (_root.ground1._y - 50)) {
this._y = this._y + 10;
} else {
playWalk = true;
_root.enemy1.tWalk.play();
}
}
if (((this._currentframe == 1) or (this._currentframe == 3)) && (playWalk)) {
if (this._currentframe == 3) {
walkSpeed = 8;
if (this.hitTest(_root.lavaBoss.bossHurt)) {
_root.lavaBoss.damageRecog = true;
_root.lavaBoss.bossLife = _root.lavaBoss.bossLife - 1;
bossHit = new Sound();
bossHit.attachSound("spit");
bossHit.start();
this.gotoAndStop(4);
}
}
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 510
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 510
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = false;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginFour");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Instance of Symbol 132 MovieClip in Frame 510
onClipEvent (enterFrame) {
if (marioFlash > 0) {
marioFlash--;
_root.mario._alpha = Math.random() * 50;
}
if ((marioFlash == 0) && (_root.mario.hurtCounter == 0)) {
_root.mario._alpha = 100;
}
if (this.hitTest(_root.mario)) {
if (!_root.mario.superMode) {
_root.mario.superMode = true;
marioGrow = new Sound();
marioGrow.attachSound("grow");
marioGrow.start();
marioFlash = 26;
}
this.gotoAndStop(2);
}
}
Instance of Symbol 217 MovieClip "lavaBoss" in Frame 510
onClipEvent (load) {
attackOne = false;
attackTwo = false;
attackGenerator = 0;
attackTimer = 75;
attacking = false;
faceRight = true;
damageRecog = false;
bossLife = 4;
vel_x = 0;
vel_y = 0;
marioWin = new Sound();
marioWin.attachSound("flag");
}
onClipEvent (enterFrame) {
if (damageRecog) {
this._alpha = Math.random() * 100;
}
if (bossLife <= 0) {
attackOne = false;
attackTwo = false;
attacking = false;
this._y = this._y + 0.75;
if (this._y > 460) {
_root.gotoAndStop("Intro", "Intro");
}
this.gotoAndStop(4);
}
if (bossLife > 0) {
if (attackTimer > 0) {
attackTimer--;
}
if (((!attackOne) && (!attackTwo)) && (attackTimer == 0)) {
attackGenerator = Math.random() * 100;
if (_root.mario._y > 225) {
attackGenerator = attackGenerator - 20;
}
if (_root.mario._y < 225) {
attackGenerator = attackGenerator + 20;
}
if (attackGenerator <= 50) {
attackOne = true;
attackTwo = false;
}
if (attackGenerator > 50) {
attackOne = false;
attackTwo = true;
}
}
if (attackOne) {
this.gotoAndStop(2);
}
if (attackTwo) {
this.gotoAndStop(3);
}
if (this._currentframe == 2) {
if (!attacking) {
vel_y = 15;
if (faceRight) {
this._xscale = -this._xscale;
this._x = _root.mario._x - 150;
vel_x = 6;
faceRight = false;
} else if (!faceRight) {
this._xscale = -this._xscale;
this._x = _root.mario._x + 150;
vel_x = -6;
faceRight = true;
}
attacking = true;
}
if (attacking) {
vel_y = vel_y - 0.5;
this._y = this._y - vel_y;
this._x = this._x + vel_x;
}
if (vel_y <= -15) {
attackOne = false;
attackTwo = false;
attacking = false;
damageRecog = false;
this._alpha = 100;
attackGenerator = 0;
vel_y = 0;
attackTimer = 60;
this.gotoAndStop(1);
this._y = 423;
}
}
if (this._currentframe == 3) {
if (!attacking) {
vel_y = 24;
this._x = _root.mario._x;
attacking = true;
}
if (attacking) {
vel_y = vel_y - 0.75;
this._y = this._y - vel_y;
}
if (vel_y <= -24) {
attackOne = false;
attackTwo = false;
attacking = false;
attackGenerator = 0;
vel_y = 0;
attackTimer = 60;
this.gotoAndStop(1);
this._y = 423;
}
}
}
}
Instance of Symbol 225 MovieClip "fireTwo" in Frame 510
onClipEvent (load) {
fireStart = false;
fireNumber = 0;
fireGrav = 0;
}
onClipEvent (enterFrame) {
if (_root.lavaBoss.bossLife <= 2) {
fireStart = true;
}
if (_root.lavaBoss.bossLife == 0) {
fireStart = false;
this._y = -100;
}
if (fireStart) {
this._rotation = this._rotation - 15;
this._y = this._y + 2;
fireNumber = Math.random() * 100;
this._x = this._x + fireGrav;
if (!falling) {
if (fireNumber <= 50) {
fireGrav = fireGrav - (Math.random() * 5);
falling = true;
}
if (fireNumber > 50) {
fireGrav = fireGrav + (Math.random() * 5);
falling = true;
}
}
if (this._y > 450) {
this._y = 25;
this._x = 286;
fireGrav = 0;
falling = false;
}
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 225 MovieClip "fireOne" in Frame 510
onClipEvent (load) {
fireStart = false;
fireNumber = 0;
fireGrav = 0;
}
onClipEvent (enterFrame) {
if (_root.lavaBoss.bossLife == 1) {
fireStart = true;
}
if (_root.lavaBoss.bossLife == 0) {
fireStart = false;
this._y = -100;
}
if (fireStart) {
this._rotation = this._rotation - 15;
this._y = this._y + 4;
fireNumber = Math.random() * 100;
this._x = this._x + fireGrav;
if (!falling) {
if (fireNumber <= 50) {
fireGrav = fireGrav - (Math.random() * 4);
falling = true;
}
if (fireNumber > 50) {
fireGrav = fireGrav + (Math.random() * 4);
falling = true;
}
}
if (this._y > 450) {
this._y = 25;
this._x = 286;
fireGrav = 0;
falling = false;
}
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Frame 511
gradius.stop();
Frame 536
stop();
gradius = new Sound();
gradius.attachSound("gradius");
gradius.start(0, 50);
stop();
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 5;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 5;
this._alpha = (Math.random() * 70) + 40;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 228 MovieClip in Frame 536
onClipEvent (load) {
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if (this._x < 0) {
this._x = 650;
moveSpeed = (Math.random() * 20) + 35;
this._alpha = (Math.random() * 70) + 30;
this._xscale = Math.random() * 150;
this._yscale = Math.random() * 150;
}
}
Instance of Symbol 243 MovieClip "levelOne" in Frame 536
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 5;
if ((this._x <= 310) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Instance of Symbol 247 MovieClip "mario" in Frame 536
onClipEvent (load) {
moveSpeed = 11;
fireCounter = 1;
maxFire = 20;
depthCounter = 1;
timer = 0;
}
onClipEvent (enterFrame) {
if (this._currentframe != 4) {
if (timer > 0) {
timer--;
}
if (Key.isDown(40) && (this._y < 430)) {
this.gotoAndStop(3);
this._y = this._y + moveSpeed;
}
if (Key.isDown(38) && (this._y > 20)) {
this.gotoAndStop(2);
this._y = this._y - moveSpeed;
}
if (Key.isDown(38) && (Key.isDown(40))) {
this.gotoAndStop(1);
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
this.gotoAndStop(1);
}
if (Key.isDown(39) && (this._x < 580)) {
this._x = this._x + moveSpeed;
}
if (Key.isDown(37) && (this._x > 20)) {
this._x = this._x - moveSpeed;
}
if ((Key.isDown(90) and (fireCounter <= maxFire)) && (timer == 0)) {
fireCounter++;
depthCounter++;
_root.mFire.duplicateMovieClip("fire" + depthCounter, depthCounter * 10);
if (depthCounter > maxFire) {
depthCounter = 1;
}
}
}
}
Instance of Symbol 248 MovieClip "mFire" in Frame 536
onClipEvent (load) {
if (this._name != "mFire") {
this._x = _root.mario._x + 15;
this._y = _root.mario._y + 10;
_root.mario.timer = 2;
}
}
onClipEvent (enterFrame) {
if (this._name != "mFire") {
this._x = this._x + 20;
if (this._x > 605) {
_root.mario.fireCounter--;
this.removeMovieClip();
}
}
}
Frame 537
stop();
Instance of Symbol 251 MovieClip in Frame 537
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -85) {
_root.play();
}
}
Frame 538
stop();
Instance of Symbol 258 MovieClip "levelOne" in Frame 538
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -190) {
_root.play();
}
}
Frame 539
stop();
Instance of Symbol 265 MovieClip "levelTwo" in Frame 539
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -100) {
_root.play();
}
}
Frame 540
stop();
Instance of Symbol 266 MovieClip in Frame 540
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -121) {
_root.play();
}
}
Frame 541
stop();
Instance of Symbol 267 MovieClip in Frame 541
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -140) {
_root.play();
}
}
Frame 542
stop();
Instance of Symbol 268 MovieClip in Frame 542
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 5;
if ((this._x <= 350) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 543
stop();
Instance of Symbol 270 MovieClip in Frame 543
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -175) {
_root.play();
}
}
Frame 544
stop();
Instance of Symbol 272 MovieClip "levelOne" in Frame 544
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 6;
if ((this._x <= 200) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 545
stop();
Instance of Symbol 274 MovieClip in Frame 545
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -90) {
_root.play();
}
}
Frame 546
stop();
Instance of Symbol 275 MovieClip "levelOne" in Frame 546
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -290) {
_root.play();
}
}
Frame 547
stop();
Instance of Symbol 270 MovieClip in Frame 547
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -325) {
_root.play();
}
}
Frame 548
stop();
Instance of Symbol 285 MovieClip in Frame 548
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -300) {
_root.play();
}
}
Frame 549
stop();
Instance of Symbol 295 MovieClip in Frame 549
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 5;
if ((this._x <= 280) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 550
stop();
Instance of Symbol 296 MovieClip in Frame 550
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -275) {
_root.play();
}
}
Frame 551
stop();
Instance of Symbol 301 MovieClip in Frame 551
onClipEvent (load) {
levelMove = true;
bIntro = new Sound();
bIntro.attachSound("bIntro");
bIntro.stop();
bIntro.start();
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if ((this._x <= -150) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 552
stop();
Instance of Symbol 303 MovieClip in Frame 552
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if ((this._x <= 25) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 553
stop();
Instance of Symbol 305 MovieClip in Frame 553
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if ((this._x <= -200) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 554
stop();
Instance of Symbol 308 MovieClip in Frame 554
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 6;
if ((this._x <= -1200) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 555
stop();
Instance of Symbol 325 MovieClip "bossShip" in Frame 555
onClipEvent (load) {
ySpeed = 2.5;
attackOne = false;
attackTwo = false;
attackGenerator = 0;
attackTimer = 25;
attacking = false;
bossLife = 225;
gradiusBoss = new Sound();
gradiusBoss.attachSound("gradiusBoss");
gradiusBoss.stop();
gradiusBoss.start(0, 50);
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(4);
}
if (this._x > 425) {
this._x = this._x - 2.5;
}
if (this._x <= 425) {
this._y = this._y + ySpeed;
if ((this._y <= 90) && (ySpeed < 0)) {
ySpeed = 2.5;
if (bossLife < 120) {
ySpeed = 3.5;
}
}
if ((this._y >= 365) && (ySpeed > 0)) {
ySpeed = -2.5;
if (bossLife < 100) {
ySpeed = -3.5;
}
}
if (bossLife > 0) {
if (attackTimer > 0) {
attackTimer--;
}
if (((!attackOne) && (!attackTwo)) && (attackTimer == 0)) {
attackGenerator = Math.random() * 100;
if (attackGenerator <= 25) {
attackOne = true;
attackTwo = false;
}
if ((attackGenerator > 25) && (attackGenerator <= 50)) {
attackOne = false;
attackTwo = true;
}
if ((attackGenerator > 50) && (attackGenerator <= 75)) {
attackOne = true;
attackTwo = false;
}
if (attackGenerator > 75) {
attackOne = false;
attackTwo = true;
}
}
if (attackOne) {
this.gotoAndStop(2);
}
if (attackTwo) {
this.gotoAndStop(3);
}
}
}
}
Frame 581
selectMusic = new Sound();
selectMusic.attachSound("selectMusic");
selectMusic.stop();
selectMusic.start(0, 100);
charSelect = 5;
select = false;
keyListener = new Object();
if ((((((((_global.flash != undefined) && (_global.heat != undefined)) && (_global.pharaoh != undefined)) && (_global.metal != undefined)) && (_global.drill != undefined)) && (_global.spark != undefined)) && (_global.crash != undefined)) && (_global.dust != undefined)) {
if ((((((((!_global.flash) && (!_global.heat)) && (!_global.pharaoh)) && (!_global.metal)) && (!_global.drill)) && (!_global.spark)) && (!_global.crash)) && (!_global.dust)) {
gotoAndStop (406);
}
}
keyListener.onKeyDown = function () {
if (select == false) {
if (Key.isDown(39) && (charSelect < 9)) {
charSelect = charSelect + 1;
}
if (Key.isDown(37) && (charSelect > 1)) {
charSelect = charSelect - 1;
}
if (Key.isDown(40) && (charSelect < 7)) {
charSelect = charSelect + 3;
}
if (Key.isDown(38) && (charSelect > 3)) {
charSelect = charSelect - 3;
}
if (Key.isDown(90)) {
if ((charSelect == 2) && (_global.metal or (_global.metal == undefined))) {
gotoAndStop (582);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 1) && (_global.flash or (_global.flash == undefined))) {
gotoAndStop (589);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 4) && (_global.heat or (_global.heat == undefined))) {
gotoAndStop (583);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 3) && (_global.spark or (_global.spark == undefined))) {
gotoAndStop (586);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 6) && (_global.crash or (_global.crash == undefined))) {
gotoAndStop (584);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 7) && (_global.pharaoh or (_global.pharaoh == undefined))) {
gotoAndStop (587);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 8) && (_global.drill or (_global.drill == undefined))) {
gotoAndStop (585);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 9) && (_global.dust or (_global.dust == undefined))) {
gotoAndStop (588);
selectMusic.stop();
Key.removeListener(keyListener);
}
}
}
};
Key.addListener(keyListener);
stop();
Instance of Symbol 334 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 2;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 336 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 1;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 338 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 7;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 340 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 3;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 342 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 8;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 344 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 4;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 346 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 6;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 348 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 9;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 350 MovieClip in Frame 581
onClipEvent (load) {
selectionNumber = 5;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 582
stop();
_global.metal = true;
Instance of Symbol 370 MovieClip in Frame 582
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 583
stop();
_global.heat = true;
Instance of Symbol 357 MovieClip in Frame 583
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 584
stop();
_global.crash = true;
Instance of Symbol 397 MovieClip in Frame 584
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 585
stop();
_global.drill = true;
Instance of Symbol 409 MovieClip in Frame 585
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 586
stop();
_global.spark = true;
Instance of Symbol 422 MovieClip in Frame 586
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 587
stop();
_global.pharaoh = true;
Instance of Symbol 436 MovieClip in Frame 587
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 588
stop();
_global.dust = true;
Instance of Symbol 446 MovieClip in Frame 588
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 589
stop();
_global.flash = true;
Instance of Symbol 458 MovieClip in Frame 589
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 590
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 481 MovieClip "metalMan" in Frame 590
onClipEvent (load) {
attackOne = false;
attackTwo = false;
attackGenerator = 0;
attackTimer = 90;
attacking = false;
xSpeed = -5;
bossLife = 14;
vel_y = 0;
this._x = 525;
startingY = this._y;
bossHit = false;
bladeCounter = 0;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(6);
}
if ((bossLife > 0) && (!bossHit)) {
if (attackTimer > 0) {
attackTimer--;
}
if (((!attackOne) && (!attackTwo)) && (attackTimer == 0)) {
attackGenerator = Math.random() * 100;
if (attackGenerator <= 33) {
attackOne = true;
attackTwo = false;
this.gotoAndStop(3);
}
if (attackGenerator > 33) {
attackOne = false;
attackTwo = true;
vel_y = 40;
this.gotoAndStop(4);
}
}
if (attackOne) {
this._x = this._x + xSpeed;
if ((this._x <= 350) && (xSpeed < 0)) {
xSpeed = 5;
this._xscale = -this._xscale;
}
if ((this._x >= 525) && (xSpeed > 0)) {
xSpeed = -5;
this._xscale = -this._xscale;
attackOne = false;
attackTimer = 10;
this.gotoAndStop(2);
}
}
if (attackTwo) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -12.5) {
vel_y = -12.5;
}
if (vel_y == 0) {
this.jMetal.play();
}
if (this._y >= startingY) {
this._y = startingY;
vel_y = 0;
attackTwo = false;
attackTimer = 0;
this.gotoAndStop(2);
}
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 590
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 500 MovieClip "parentShot" in Frame 590
onClipEvent (load) {
if (this._name != "parentShot") {
leftMove = false;
upMove = false;
this._x = _root.metalMan._x;
this._y = _root.metalMan._y;
marioPosX = _root.mario._x;
marioPosY = _root.mario._y;
marioX = Math.abs(this._x - _root.mario._x);
marioY = Math.abs((this._y - _root.mario._y) + 60);
marioZ = Math.sqrt(Math.pow(marioX, 2) + Math.pow(marioY, 2));
xSpeed = marioX / 16;
ySpeed = marioY / 12;
if (marioPosX > this._x) {
leftMove = false;
}
if (marioPosX < this._x) {
leftMove = true;
}
if (marioPosY < this._y) {
upMove = true;
}
if (marioPosY > this._y) {
upMove = false;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShot") {
if (leftMove) {
this._x = this._x - xSpeed;
}
if (!leftMove) {
this._x = this._x + xSpeed;
}
if (upMove) {
this._y = this._y - ySpeed;
}
if (!upMove) {
this._y = this._y + ySpeed;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 590
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 592
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 517 MovieClip "drillMan" in Frame 592
onClipEvent (load) {
turnRight = _root.ground1._x - (_root.ground1._width / 2);
turnLeft = _root.ground1._x + (_root.ground1._width / 2);
xSpeed = -5;
attackOne = false;
attackTwo = false;
attackTimer = 90;
attacking = false;
xSpeed = -5;
bossLife = 14;
moveLeft = true;
directionGenerator = 0;
startingY = this._y;
marioPos = 0;
bossHit = false;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(6);
}
if ((bossLife > 0) && (!bossHit)) {
if (this._x <= turnRight) {
this._xscale = -this._xscale;
moveLeft = false;
xSpeed = 5;
}
if (this._x >= turnLeft) {
this._xscale = -this._xscale;
moveLeft = true;
xSpeed = -5;
}
if (attackTimer > 0) {
attackTimer--;
}
if ((this._currentframe != 1) && (attackTimer != 0)) {
this.gotoAndStop(2);
this._x = this._x + xSpeed;
}
if (((!attackOne) && (!attackTwo)) && (attackTimer == 0)) {
attackGenerator = Math.random() * 100;
if ((attackGenerator <= 25) && (attackGenerator > 0)) {
attackOne = true;
attackTwo = false;
}
if ((attackGenerator > 25) && (attackGenerator <= 50)) {
attackOne = false;
attackTwo = true;
}
if ((attackGenerator > 50) && (attackGenerator <= 75)) {
attackOne = true;
attackTwo = false;
}
if (attackGenerator > 75) {
attackOne = false;
attackTwo = true;
}
}
if (attackOne) {
this.gotoAndStop(3);
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = -this._xscale;
xSpeed = 5;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = -this._xscale;
xSpeed = -5;
}
}
if (attackTwo) {
this.gotoAndStop(4);
if (marioPos != 0) {
this._x = marioPos;
marioPos = o;
}
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 592
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 537 MovieClip "parentShot" in Frame 592
onClipEvent (load) {
if (this._name != "parentShot") {
leftMove = false;
xSpeed = 15;
this._x = _root.drillMan._x;
this._y = _root.drillMan._y;
marioPosX = _root.mario._x;
if (marioPosX > this._x) {
leftMove = false;
this._xscale = -this._xscale;
}
if (marioPosX < this._x) {
leftMove = true;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShot") {
if (leftMove) {
this._x = this._x - xSpeed;
}
if (!leftMove) {
this._x = this._x + xSpeed;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 592
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 594
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 550 MovieClip "crashMan" in Frame 594
onClipEvent (load) {
turnRight = _root.ground1._x - (_root.ground1._width / 2);
turnLeft = _root.ground1._x + (_root.ground1._width / 2);
xSpeed = -5;
attackOne = false;
attackTimer = 90;
attacking = false;
xSpeed = -5;
bossLife = 9;
vel_y = 0;
moveLeft = true;
directionGenerator = 0;
startingY = this._y;
faceLeft = this._xscale;
faceRight = -this._xscale;
bossHit = false;
crashCounter = 0;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(6);
_root["crashShot" + crashCounter].removeMovieClip();
}
if ((bossLife > 0) && (!bossHit)) {
if (this._x <= turnRight) {
this._xscale = faceRight;
moveLeft = false;
xSpeed = 5;
}
if (this._x >= turnLeft) {
this._xscale = faceLeft;
moveLeft = true;
xSpeed = -5;
}
if (attackTimer > 0) {
attackTimer--;
}
if ((!attackOne) && (attackTimer == 0)) {
vel_y = 40;
attackOne = true;
this.gotoAndStop(4);
}
if (((this._currentframe != 1) && (moveLeft)) && (attackTimer != 0)) {
this.gotoAndStop(3);
this._x = this._x + xSpeed;
}
if (((this._currentframe != 1) && (!moveLeft)) && (attackTimer != 0)) {
this.gotoAndStop(3);
this._x = this._x + xSpeed;
}
if (attackOne) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
if (vel_y == 0) {
this.cJump.play();
crashCounter++;
_root.parentShot.duplicateMovieClip("crashShot" + crashCounter, crashCounter + 30);
}
if (this._y >= startingY) {
this._y = startingY;
vel_y = 0;
attackOne = false;
attackTimer = Math.ceil(Math.random() * 40);
directionGenerator = Math.random() * 10;
if (directionGenerator <= 5) {
if (!moveLeft) {
this._xscale = faceLeft;
xSpeed = -5;
}
moveLeft = true;
}
if (directionGenerator > 5) {
if (moveLeft) {
this._xscale = faceRight;
xSpeed = 5;
}
moveLeft = false;
}
this.gotoAndStop(2);
}
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 594
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 566 MovieClip "parentShot" in Frame 594
onClipEvent (load) {
if (this._name != "parentShot") {
marioHit = false;
groundHit = false;
leftMove = false;
upMove = false;
this._x = _root.crashMan._x;
this._y = _root.crashMan._y;
marioPosX = _root.mario._x;
marioPosY = _root.mario._y;
marioX = Math.abs(this._x - _root.mario._x);
marioY = Math.abs((this._y - _root.mario._y) - 30);
marioZ = Math.sqrt(Math.pow(marioX, 2) + Math.pow(marioY, 2));
xSpeed = marioX / 15;
ySpeed = marioY / 16;
if (marioPosX > this._x) {
leftMove = false;
}
if (marioPosX < this._x) {
leftMove = true;
}
if (marioPosY < this._y) {
upMove = true;
}
if (marioPosY > this._y) {
upMove = false;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShot") {
if ((leftMove && (!marioHit)) && (!groundHit)) {
this._x = this._x - xSpeed;
}
if (((!leftMove) && (!marioHit)) && (!groundHit)) {
this._x = this._x + xSpeed;
}
if ((upMove && (!marioHit)) && (!groundHit)) {
this._y = this._y - ySpeed;
}
if (((!upMove) && (!marioHit)) && (!groundHit)) {
this._y = this._y + ySpeed;
}
if (this.hitTest(_root.mario) && (!groundHit)) {
marioHit = true;
this.gotoAndStop(2);
}
if (marioHit) {
this._x = _root.mario._x;
this._y = _root.mario._y - 25;
}
if (this.hitTest(_root.ground1) && (!marioHit)) {
groundHit = true;
this.gotoAndStop(2);
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 594
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 596
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 581 MovieClip "heatMan" in Frame 596
onClipEvent (load) {
attackOne = false;
attackTimer = 90;
bossLife = 9;
marioPos = 0;
faceLeft = false;
fireCounter = 0;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(6);
}
if (bossLife > 0) {
if (attackTimer > 0) {
attackTimer--;
}
if (((_root.mario._x < this._x) && (faceLeft)) && (this._currentframe != 5)) {
this._xscale = -this._xscale;
faceLeft = false;
}
if (((_root.mario._x > this._x) && (!faceLeft)) && (this._currentframe != 5)) {
this._xscale = -this._xscale;
faceLeft = true;
}
if ((!attackOne) && (attackTimer == 0)) {
this.gotoAndStop(3);
fireCounter++;
attackOne = true;
}
if (marioPos != 0) {
if (this._x > marioPos) {
this._x = this._x - 16;
}
if (this._x < marioPos) {
this._x = this._x + 16;
if (!faceLeft) {
marioPos = 0;
this.gotoAndStop(2);
attackCounter = 2;
attackOne = false;
}
}
if (faceLeft && (this._x > marioPos)) {
marioPos = 0;
this.gotoAndStop(2);
attackCounter = 2;
attackOne = false;
}
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 596
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 597 MovieClip "parentShot" in Frame 596
onClipEvent (load) {
if (this._name != "parentShot") {
jumping = true;
vel_y = Math.random() * 40;
marioPosX = _root.mario._x;
this._x = _root.heatMan._x;
this._y = _root.heatMan._y;
if (marioPosX > this._x) {
xSpeed = (Math.random() * 6) + 5;
this._xscale = -this._xscale;
}
if (marioPosX < this._x) {
xSpeed = ((-Math.random()) * 6) - 5;
}
startingY = this._y + 10;
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShot") {
if (jumping) {
vel_y = vel_y - 2.5;
this._x = this._x + xSpeed;
this._y = this._y - vel_y;
if (vel_y <= -15) {
vel_y = -15;
}
if (this._y >= startingY) {
this.gotoAndStop(2);
this._y = startingY;
vel_y = 0;
}
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 596
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 598
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 614 MovieClip "pharaohMan" in Frame 598
onClipEvent (load) {
turnRight = _root.ground1._x - (_root.ground1._width / 2);
turnLeft = _root.ground1._x + (_root.ground1._width / 2);
xSpeed = -10;
attackOne = false;
attackTwo = false;
attackTimer = 90;
bossLife = 9;
moveLeft = true;
startingY = this._y;
bossHit = false;
vel_y = 0;
startingY = this._y;
faceLeft = this._xscale;
faceRight = -this._xscale;
jumping = false;
jumpTimer = 30;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(7);
}
if ((bossLife > 0) && (!bossHit)) {
if ((this._x <= turnRight) or (this._x == turnRight)) {
this._xscale = faceRight;
this._x = this._x + 25;
moveLeft = false;
xSpeed = 10;
}
if ((this._x >= turnLeft) or (this._x == turnLeft)) {
this._xscale = faceLeft;
moveLeft = true;
this._x = this._x - 25;
xSpeed = -10;
}
if (attackTimer > 0) {
attackTimer--;
}
if (jumpTimer > 0) {
jumpTimer--;
}
if ((((!jumping) && (!attackOne)) && (!attackTwo)) && (this._currentframe != 1)) {
this.gotoAndStop(2);
}
if ((((this._currentframe != 1) && (attackTimer != 0)) && (!jumping)) && (jumpTimer == 0)) {
this.gotoAndStop(3);
vel_y = 30;
jumping = true;
}
if (jumping) {
vel_y = vel_y - 2.5;
this._x = this._x + xSpeed;
this._y = this._y - vel_y;
if (vel_y <= -15) {
vel_y = -15;
}
if (this._y >= startingY) {
jumping = false;
jumpTimer = 30;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
this._y = startingY;
vel_y = 0;
}
}
if ((((!attackOne) && (!attackTwo)) && (attackTimer == 0)) && (this._y == startingY)) {
attackGenerator = Math.random() * 100;
if ((attackGenerator <= 25) && (attackGenerator > 0)) {
attackOne = true;
attackTwo = false;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
vel_y = 40;
}
if ((attackGenerator > 25) && (attackGenerator <= 50)) {
attackOne = false;
attackTwo = true;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
}
if ((attackGenerator > 50) && (attackGenerator <= 75)) {
attackOne = true;
attackTwo = false;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
vel_y = 40;
}
if (attackGenerator > 75) {
attackOne = false;
attackTwo = true;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
}
}
if (attackOne) {
this.gotoAndStop(4);
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
this._x = this._x + xSpeed;
if (vel_y <= -15) {
vel_y = -15;
}
if (vel_y == 0) {
this.jPharaoh.play();
}
if (this._y >= startingY) {
this._y = startingY;
vel_y = 0;
attackOne = false;
attackTimer = 90;
jumpTimer = 30;
}
}
if (attackTwo) {
this.gotoAndStop(5);
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 598
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 627 MovieClip "parentShotOne" in Frame 598
onClipEvent (load) {
if (this._name != "parentShotOne") {
leftMove = false;
upMove = false;
this._x = _root.pharaohMan._x;
this._y = _root.pharaohMan._y;
marioPosX = _root.mario._x;
marioPosY = _root.mario._y;
marioX = Math.abs(this._x - _root.mario._x);
marioY = Math.abs(this._y - _root.mario._y);
marioZ = Math.sqrt(Math.pow(marioX, 2) + Math.pow(marioY, 2));
xSpeed = marioX / 10;
ySpeed = marioY / 10;
if (marioPosX > this._x) {
leftMove = false;
}
if (marioPosX < this._x) {
leftMove = true;
}
if (marioPosY < this._y) {
upMove = true;
}
if (marioPosY > this._y) {
upMove = false;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShotOne") {
if (leftMove) {
this._x = this._x - xSpeed;
}
if (!leftMove) {
this._x = this._x + xSpeed;
}
if (upMove) {
this._y = this._y - ySpeed;
}
if (!upMove) {
this._y = this._y + ySpeed;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
}
Instance of Symbol 629 MovieClip "parentShotTwo" in Frame 598
onClipEvent (load) {
if (this._name != "parentShotTwo") {
leftMove = false;
xSpeed = 15;
this._x = _root.pharaohMan._x;
this._y = _root.pharaohMan._y;
marioPosX = _root.mario._x;
if (marioPosX > this._x) {
leftMove = false;
this._xscale = -this._xscale;
}
if (marioPosX < this._x) {
leftMove = true;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShotTwo") {
if (leftMove) {
this._x = this._x - xSpeed;
}
if (!leftMove) {
this._x = this._x + xSpeed;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 598
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 600
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 642 MovieClip "sparkMan" in Frame 600
onClipEvent (load) {
turnRight = _root.ground1._x - (_root.ground1._width / 2);
turnLeft = _root.ground1._x + (_root.ground1._width / 2);
xSpeed = -10;
attackOne = false;
attackTimer = 45;
bossLife = 14;
moveLeft = true;
startingY = this._y;
bossHit = false;
vel_y = 0;
startingY = this._y;
faceLeft = this._xscale;
faceRight = -this._xscale;
jumping = false;
jumpTimer = 30;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(6);
}
if ((bossLife > 0) && (!bossHit)) {
if (this._x <= turnRight) {
this._xscale = faceRight;
moveLeft = false;
this._x = this._x + 25;
xSpeed = 10;
}
if (this._x >= turnLeft) {
this._xscale = faceLeft;
moveLeft = true;
this._x = this._x - 25;
xSpeed = -10;
}
if (attackTimer > 0) {
attackTimer--;
}
if (jumpTimer > 0) {
jumpTimer--;
}
if (((!jumping) && (!attackOne)) && (this._currentframe != 1)) {
this.gotoAndStop(2);
}
if ((((this._currentframe != 1) && (attackTimer != 0)) && (!jumping)) && (jumpTimer == 0)) {
this.gotoAndStop(3);
vel_y = 30;
jumping = true;
}
if (jumping) {
vel_y = vel_y - 2.5;
this._x = this._x + xSpeed;
this._y = this._y - vel_y;
if (vel_y <= -15) {
vel_y = -15;
}
if (this._y >= startingY) {
jumping = false;
jumpTimer = 30;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
this._y = startingY;
vel_y = 0;
}
}
if (((!attackOne) && (attackTimer == 0)) && (this._y == startingY)) {
attackOne = true;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
}
if (attackOne) {
this.gotoAndStop(4);
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 600
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 663 MovieClip "parentShot" in Frame 600
onClipEvent (load) {
if (this._name != "parentShot") {
leftMove = false;
upMove = false;
this._x = _root.sparkMan._x;
this._y = _root.sparkMan._y;
marioPosX = _root.mario._x;
marioPosY = _root.mario._y - 35;
marioX = Math.abs(this._x - _root.mario._x);
marioY = Math.abs(this._y - _root.mario._y);
marioZ = Math.sqrt(Math.pow(marioX, 2) + Math.pow(marioY, 2));
xSpeed = marioX / 18;
ySpeed = marioY / 18;
if (marioPosX > this._x) {
leftMove = false;
}
if (marioPosX < this._x) {
leftMove = true;
}
if (marioPosY < this._y) {
upMove = true;
}
if (marioPosY > this._y) {
upMove = false;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShot") {
if (leftMove) {
this._x = this._x - xSpeed;
}
if (!leftMove) {
this._x = this._x + xSpeed;
}
if (upMove) {
this._y = this._y - ySpeed;
}
if (!upMove) {
this._y = this._y + ySpeed;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 600
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 602
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 678 MovieClip "dustMan" in Frame 602
onClipEvent (load) {
turnRight = _root.ground1._x - (_root.ground1._width / 2);
turnLeft = _root.ground1._x + (_root.ground1._width / 2);
xSpeed = -10;
attackOne = false;
attackTwo = false;
attackTimer = 90;
bossLife = 14;
moveLeft = true;
startingY = this._y;
bossHit = false;
vel_y = 0;
startingY = this._y;
faceLeft = this._xscale;
faceRight = -this._xscale;
jumping = false;
jumpTimer = 30;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(7);
}
if ((bossLife > 0) && (!bossHit)) {
if (this._x <= turnRight) {
this._xscale = faceRight;
this._x = this._x + 25;
moveLeft = false;
xSpeed = 10;
}
if (this._x >= turnLeft) {
this._xscale = faceLeft;
moveLeft = true;
this._x = this._x - 25;
xSpeed = -10;
}
if (attackTimer > 0) {
attackTimer--;
}
if (jumpTimer > 0) {
jumpTimer--;
}
if ((((!jumping) && (!attackOne)) && (!attackTwo)) && (this._currentframe != 1)) {
this.gotoAndStop(2);
}
if ((((this._currentframe != 1) && (attackTimer != 0)) && (!jumping)) && (jumpTimer == 0)) {
this.gotoAndStop(3);
vel_y = 30;
jumping = true;
}
if (jumping) {
vel_y = vel_y - 2.5;
this._x = this._x + xSpeed;
this._y = this._y - vel_y;
if (vel_y <= -15) {
vel_y = -15;
}
if (this._y >= startingY) {
jumping = false;
jumpTimer = 30;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = (Math.random() * 17) + 5;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = (-(Math.random() * 17)) + 5;
}
this._y = startingY;
vel_y = 0;
}
}
if ((((!attackOne) && (!attackTwo)) && (attackTimer == 0)) && (this._y == startingY)) {
attackGenerator = Math.random() * 100;
if ((attackGenerator <= 25) && (attackGenerator > 0)) {
attackOne = true;
attackTwo = false;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
}
if ((attackGenerator > 25) && (attackGenerator <= 50)) {
attackOne = false;
attackTwo = true;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
}
if ((attackGenerator > 50) && (attackGenerator <= 75)) {
attackOne = true;
attackTwo = false;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
}
if (attackGenerator > 75) {
attackOne = false;
attackTwo = true;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 10;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -10;
}
}
}
if (attackOne) {
this.gotoAndStop(4);
}
if (attackTwo) {
this.gotoAndStop(5);
if (_root.mario._x > this._x) {
_root.mario._x = _root.mario._x - 10;
}
if (_root.mario._x < this._x) {
_root.mario._x = _root.mario._x + 10;
}
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 602
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 705 MovieClip "parentShot" in Frame 602
onClipEvent (load) {
if (this._name != "parentShot") {
leftMove = false;
xSpeed = 15;
this._x = _root.dustMan._x;
this._y = _root.dustMan._y - 20;
marioPosX = _root.mario._x;
if (_root.dustMan.moveLeft) {
leftMove = true;
}
if (!_root.dustMan.moveLeft) {
leftMove = false;
this._xscale = -this._xscale;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShot") {
if (leftMove && (this._currentframe == 1)) {
this._x = this._x - xSpeed;
if (this._x < _root.mario._x) {
this.gotoAndStop(2);
}
}
if ((!leftMove) && (this._currentframe == 1)) {
this._x = this._x + xSpeed;
if (this._x > _root.mario._x) {
this.gotoAndStop(2);
}
}
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 602
onClipEvent (load) {
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
Frame 604
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 720 MovieClip "flashMan" in Frame 604
onClipEvent (load) {
turnRight = _root.ground1._x - (_root.ground1._width / 2);
turnLeft = _root.ground1._x + (_root.ground1._width / 2);
xSpeed = -5;
attackOne = false;
attackTwo = false;
attackTimer = 45;
bossLife = 14;
moveLeft = true;
faceLeft = this._xscale;
faceRight = -this._xscale;
startingY = this._y;
bossHit = false;
vel_y = 0;
startingY = this._y;
}
onClipEvent (enterFrame) {
if (bossLife <= 0) {
this.gotoAndStop(7);
}
if ((bossLife > 0) && (!bossHit)) {
if (this._x <= turnRight) {
this._xscale = faceRight;
this._x = this._x + 20;
moveLeft = false;
xSpeed = 5;
}
if (this._x >= turnLeft) {
this._xscale = faceLeft;
moveLeft = true;
this._x = this._x - 20;
xSpeed = -5;
}
if (attackTimer > 0) {
attackTimer--;
}
if ((this._currentframe != 1) && (attackTimer != 0)) {
this.gotoAndStop(3);
this._x = this._x + xSpeed;
}
if (((!attackOne) && (!attackTwo)) && (attackTimer == 0)) {
attackGenerator = Math.random() * 100;
if (attackGenerator > 50) {
attackOne = true;
attackTwo = false;
vel_y = 30;
}
if (attackGenerator <= 50) {
attackOne = false;
attackTwo = true;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 5;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -5;
}
}
}
if (attackOne) {
this.gotoAndStop(4);
vel_y = vel_y - 2.5;
this._x = this._x + (xSpeed * 2);
this._y = this._y - vel_y;
if (vel_y <= -15) {
vel_y = -15;
}
if (this._y >= startingY) {
this._y = startingY;
vel_y = 0;
attackOne = false;
attackTimer = 50;
if ((_root.mario._x > this._x) && (moveLeft)) {
moveLeft = false;
this._xscale = faceRight;
xSpeed = 5;
}
if ((_root.mario._x < this._x) && (!moveLeft)) {
moveLeft = true;
this._xscale = faceLeft;
xSpeed = -5;
}
}
}
if (attackTwo) {
this.gotoAndStop(5);
}
}
}
Instance of Symbol 85 MovieClip "conCirc" in Frame 604
onClipEvent (enterFrame) {
function hitFunction(hit) {
if (hit == "right") {
_root.mario.rightStop = true;
}
if (hit == "left") {
_root.mario.leftStop = true;
}
if (hit == "ceiling") {
_root.mario.vel_y = 0;
}
if (hit == "floor") {
_root.mario.jumping = false;
_root.mario.falling = false;
_root.mario.vel_y = 0;
_root.mario.fallHit = false;
}
}
}
Instance of Symbol 739 MovieClip "parentShot" in Frame 604
onClipEvent (load) {
if (this._name != "parentShot") {
leftMove = false;
this._x = _root.flashMan._x;
this._y = _root.flashMan._y;
marioPosX = _root.mario._x;
if (marioPosX > this._x) {
leftMove = false;
this._xscale = -this._xscale;
}
if (marioPosX < this._x) {
leftMove = true;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "parentShot") {
}
}
Instance of Symbol 157 MovieClip "mario" in Frame 604
onClipEvent (load) {
flashFreeze = false;
walkSpeed = 0;
fallHit = true;
vel_y = 0;
rightStop = false;
leftStop = false;
walking = false;
ducking = false;
jumping = false;
falling = false;
jumpControl = false;
faceRight = true;
superMode = true;
hurtCounter = 0;
grav_y = 0;
marioDeath = false;
deathCounter = 0;
groundThing = false;
marioJump = new Sound();
marioJump.attachSound("jump");
marioDown = new Sound();
marioDown.attachSound("down");
}
onClipEvent (enterFrame) {
if (this._y >= 550) {
marioDeath = true;
}
if (hurtCounter > 0) {
if (hurtCounter == 26) {
marioDown.start();
}
hurtCounter--;
this._alpha = Math.random() * 75;
}
if (hurtCounter == 0) {
this._alpha = 100;
}
if (marioDeath) {
this.gotoAndStop(13);
deathCounter++;
vel_y = vel_y - 1.5;
this._y = this._y - vel_y;
if (vel_y <= -20) {
vel_y = -20;
}
}
if (deathCounter >= 110) {
_root.gotoAndPlay("beginSix");
}
if (!marioDeath) {
if ((!jumping) && (!falling)) {
grav_y = 23;
this._y = this._y + grav_y;
fallHit = true;
}
if (!flashFreeze) {
if (superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(1);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(2);
}
if (walkSpeed <= -10) {
this.gotoAndStop(3);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(2);
}
if (walkSpeed >= 10) {
this.gotoAndStop(3);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(1);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(4);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(5);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(6);
}
if ((vel_y != 0) && (this._currentframe == 3)) {
this.gotoAndStop(7);
}
rightStop = false;
leftStop = false;
}
if (!superMode) {
if ((!walking) && (!ducking)) {
this.gotoAndStop(8);
}
if ((walkSpeed > -10) && (walkSpeed < 0)) {
this.gotoAndStop(9);
}
if (walkSpeed <= -10) {
this.gotoAndStop(9);
}
if ((walkSpeed < 10) && (walkSpeed > 0)) {
this.gotoAndStop(9);
}
if (walkSpeed >= 10) {
this.gotoAndStop(9);
}
if (((Key.isDown(37) && (!Key.isDown(39))) && (!ducking)) && (!rightStop)) {
if (Key.isDown(65)) {
if ((walkSpeed < 11) && (walkSpeed >= 7)) {
walkSpeed = walkSpeed + 0.15;
}
if (walkSpeed < 7) {
walkSpeed = walkSpeed + 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed < 7) {
walkSpeed++;
}
if (walkSpeed >= 7) {
walkSpeed = 7;
}
}
walking = true;
if (this._x > 0) {
this._x = this._x - walkSpeed;
}
if (faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = false;
}
}
if (((Key.isDown(39) && (!Key.isDown(37))) && (!ducking)) && (!leftStop)) {
if (Key.isDown(65)) {
if ((walkSpeed > -11) && (walkSpeed <= -7)) {
walkSpeed = walkSpeed - 0.15;
}
if (walkSpeed > -7) {
walkSpeed = walkSpeed - 1.5;
}
}
if (!Key.isDown(65)) {
if (walkSpeed > -7) {
walkSpeed--;
}
if (walkSpeed <= -7) {
walkSpeed = -7;
}
}
walking = true;
this._x = this._x - walkSpeed;
if (!faceRight) {
walkSpeed = 0;
this._xscale = -this._xscale;
faceRight = true;
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
walking = false;
walkSpeed = 0;
}
if (Key.isDown(39) && (Key.isDown(37))) {
this.gotoAndStop(8);
walkSpeed = 0;
}
if ((Key.isDown(40) && (!jumping)) && (!falling)) {
walking = false;
ducking = true;
walkSpeed = 0;
this.gotoAndStop(10);
}
if (!Key.isDown(40)) {
ducking = false;
}
if ((((Key.isDown(90) && (!Key.isDown(40))) && (!jumping)) && (!falling)) && (!jumpControl)) {
vel_y = 30;
marioJump.start();
jumping = true;
jumpControl = true;
}
if (!Key.isDown(90)) {
jumpControl = false;
}
if ((((!Key.isDown(90)) && (jumping)) && (!falling)) && (vel_y > 0)) {
vel_y = 0;
falling = true;
}
if (jumping && (vel_y == 0)) {
falling = true;
}
if (jumping == true) {
vel_y = vel_y - 2.5;
this._y = this._y - vel_y;
if (vel_y <= -25) {
vel_y = -25;
}
}
t = 1;
while (t < 5) {
if (!this.hitTest["wall" + t]) {
rightStop = false;
leftStop = false;
}
t++;
}
if (((vel_y > 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(11);
}
if (((vel_y < 0) && (walkSpeed > -11)) && (walkSpeed < 11)) {
this.gotoAndStop(12);
}
if ((vel_y != 0) && (this._currentframe == 9)) {
this.gotoAndStop(11);
}
rightStop = false;
leftStop = false;
}
}
}
}
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = 0.6;
_width = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 275);
}
Symbol 43 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.gamesofgondor.com", "_blank");
};
Instance of Symbol 40 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) == 1) {
_root.play();
}
}
Symbol 52 Button
on (press) {
gotoAndStop (404);
}
Symbol 53 Button
on (press) {
gotoAndStop (405);
}
Symbol 58 Button
on (press) {
gotoAndPlay (406);
}
Symbol 60 Button
on (press) {
gotoAndStop (403);
}
Symbol 68 Button
on (press) {
gotoAndStop (402);
}
Symbol 76 Button
on (rollOver) {
marioIntro = new Sound();
marioIntro.attachSound("cutman");
marioIntro.stop();
marioIntro.start();
}
on (rollOut) {
marioIntro.stop();
}
on (press) {
marioIntro.stop();
gotoAndPlay (556);
}
Symbol 78 Button
on (rollOver) {
marioIntro = new Sound();
marioIntro.attachSound("forest");
marioIntro.stop();
marioIntro.start();
}
on (rollOut) {
marioIntro.stop();
}
on (press) {
marioIntro.stop();
gotoAndPlay (407);
}
Symbol 80 Button
on (rollOver) {
marioIntro = new Sound();
marioIntro.attachSound("gradius2");
marioIntro.stop();
marioIntro.start();
}
on (rollOut) {
marioIntro.stop();
}
on (press) {
marioIntro.stop();
gotoAndPlay (511);
}
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.mario.marioBase.hitTest(this) && (_root.mario.vel_y <= 0)) {
hit = "floor";
_root.conCirc.hitFunction(hit);
_root.mario._y = _parent._y - _root.mario.height;
}
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Instance of Symbol 99 MovieClip in Symbol 100 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.mario.hitTest(this)) {
hit = "right";
_root.conCirc.hitFunction(hit);
}
}
Instance of Symbol 99 MovieClip in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.mario.hitTest(this)) {
hit = "left";
_root.conCirc.hitFunction(hit);
}
}
Symbol 107 MovieClip Frame 7
stop();
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mario.hitBlock) && (_root.mario.falling)) && (_root.mario.fallHit)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.gotoAndStop(2);
}
if (((this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) && (!_root.mario.falling)) && (!_root.mario.fallHit)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
if (this.hitTest(_root.mario.fallingHit) && (_root.mario.fallHit)) {
_root.mario.jumping = true;
_root.mario.vel_y = 30;
_root.mario._y = _root.mario._y - 20;
_parent.gotoAndStop(2);
}
}
Symbol 108 MovieClip Frame 2
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Symbol 112 MovieClip Frame 7
stop();
Symbol 113 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mario.hitBlock) && (_root.mario.falling)) && (_root.mario.fallHit)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.gotoAndStop(2);
}
if (((this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) && (!_root.mario.falling)) && (!_root.mario.fallHit)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
if (this.hitTest(_root.mario.fallingHit) && (_root.mario.fallHit)) {
_root.mario.jumping = true;
_root.mario.vel_y = 30;
_root.mario._y = _root.mario._y - 20;
_parent.gotoAndStop(2);
}
}
Symbol 113 MovieClip Frame 2
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Symbol 126 MovieClip Frame 5
stop();
Instance of Symbol 106 MovieClip in Symbol 126 MovieClip Frame 5
onClipEvent (load) {
_root.enemy1.walkSpeed = 2;
if (_root.enemy1.faceRight) {
_root.enemy1.faceRight = false;
_root.enemy1._xscale = -_root.enemy1._xscale;
}
_root.enemy1.playWalk = false;
_root.enemy1.turtleCounter = 100;
_root.enemy1._x = 515;
_root.enemy1._y = -75;
_root.enemy1.gotoAndStop(1);
}
Symbol 127 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip in Symbol 127 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mario.hitBlock) && (_root.mario.falling)) && (_root.mario.fallHit)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.gotoAndStop(2);
}
if (((this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) && (!_root.mario.falling)) && (!_root.mario.fallHit)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
if (this.hitTest(_root.mario.fallingHit) && (_root.mario.fallHit)) {
_root.mario.jumping = true;
_root.mario.vel_y = 30;
_root.mario._y = _root.mario._y - 20;
_parent.gotoAndStop(2);
}
}
Symbol 127 MovieClip Frame 2
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Instance of Symbol 106 MovieClip in Symbol 127 MovieClip Frame 2
onClipEvent (load) {
controlTimer = 5;
}
onClipEvent (enterFrame) {
if (controlTimer > 0) {
controlTimer--;
}
if (controlTimer == 0) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 20;
_root.mario._y = _root.mario._y - 6;
_parent.gotoAndStop(3);
}
if (this.hitTest(_root.mario.fallingHit) && (_root.mario.fallHit)) {
_root.mario.jumping = true;
_root.mario.vel_y = 30;
_root.mario._y = _root.mario._y - 20;
_parent.gotoAndStop(3);
}
}
}
Symbol 127 MovieClip Frame 3
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Instance of Symbol 106 MovieClip in Symbol 127 MovieClip Frame 3
onClipEvent (load) {
controlTimer = 5;
}
onClipEvent (enterFrame) {
if (controlTimer > 0) {
controlTimer--;
}
if (controlTimer == 0) {
if (((this.hitTest(_root.mario.hitBlock) && (_root.mario.falling)) && (_root.mario.jumping)) && (_root.mario.fallHit)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.gotoAndStop(2);
}
if ((((this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) && (!_root.mario.falling)) && (!_root.mario.jumping)) && (!_root.mario.fallHit)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
if (this.hitTest(_root.mario.fallingHit) && (_root.mario.fallHit)) {
_root.mario.jumping = true;
_root.mario.vel_y = 30;
_root.mario._y = _root.mario._y - 20;
_parent.gotoAndStop(2);
}
}
}
Symbol 127 MovieClip Frame 4
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Instance of Symbol 88 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (Key.isDown(38))) {
marioDoor = new Sound();
marioDoor.attachSound("door");
marioDoor.start();
_root.play();
}
}
Instance of Symbol 91 MovieClip "ground17" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
xSpeed = 3;
moveRight = true;
moveCounter = 40;
}
onClipEvent (enterFrame) {
moveCounter--;
if (moveRight) {
if (moveCounter <= 0) {
moveCounter = 60;
moveRight = false;
}
if (this.hitTest(_root.mario.marioBase)) {
_root.mario._x = _root.mario._x + xSpeed;
if (_root.mario._x > 305) {
_root.levelOne._x = _root.levelOne._x - xSpeed;
_root.mario._x = _root.mario._x - xSpeed;
}
}
this._x = this._x + xSpeed;
}
if (!moveRight) {
if (moveCounter <= 0) {
moveCounter = 60;
moveRight = true;
}
if (this.hitTest(_root.mario.marioBase)) {
_root.mario._x = _root.mario._x - xSpeed;
}
this._x = this._x - xSpeed;
}
}
Instance of Symbol 91 MovieClip "ground16" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 3;
moveRight = true;
moveCounter = 40;
}
onClipEvent (enterFrame) {
moveCounter--;
if (moveRight) {
if (moveCounter <= 0) {
moveCounter = 60;
moveRight = false;
}
this._y = this._y + ySpeed;
}
if (!moveRight) {
if (moveCounter <= 0) {
moveCounter = 60;
moveRight = true;
}
this._y = this._y - ySpeed;
}
}
Instance of Symbol 91 MovieClip "ground15" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
xSpeed = 3;
moveRight = true;
moveCounter = 30;
}
onClipEvent (enterFrame) {
moveCounter--;
if (moveRight) {
if (moveCounter <= 0) {
moveCounter = 60;
moveRight = false;
}
if (this.hitTest(_root.mario.marioBase)) {
if (_root.mario._x > 305) {
_root.levelOne._x = _root.levelOne._x - xSpeed;
_root.mario._x = _root.mario._x - xSpeed;
}
_root.mario._x = _root.mario._x + xSpeed;
}
this._x = this._x + xSpeed;
}
if (!moveRight) {
if (moveCounter <= 0) {
moveCounter = 60;
moveRight = true;
}
if (this.hitTest(_root.mario.marioBase)) {
_root.mario._x = _root.mario._x - xSpeed;
}
this._x = this._x - xSpeed;
}
}
Instance of Symbol 97 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
startTimer = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startTimer > 0) {
startTimer--;
}
if (startTimer == 0) {
this.play();
startTimer = -1;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 97 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
startTimer = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startTimer > 0) {
startTimer--;
}
if (startTimer == 0) {
this.play();
startTimer = -1;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 97 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
startTimer = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startTimer > 0) {
startTimer--;
}
if (startTimer == 0) {
this.play();
startTimer = -1;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 97 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
startTimer = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startTimer > 0) {
startTimer--;
}
if (startTimer == 0) {
this.play();
startTimer = -1;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 97 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
startTimer = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startTimer > 0) {
startTimer--;
}
if (startTimer == 0) {
this.play();
startTimer = -1;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 97 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
startTimer = Math.ceil(Math.random() * 50);
}
onClipEvent (enterFrame) {
if (startTimer > 0) {
startTimer--;
}
if (startTimer == 0) {
this.play();
startTimer = -1;
}
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 108 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
walkSpeed = 2;
faceRight = false;
directionControl = 75;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
directionControl--;
if (directionControl <= 0) {
if (!faceRight) {
faceRight = true;
this._xscale = -this._xscale;
directionControl = 75;
} else if (faceRight) {
faceRight = false;
this._xscale = -this._xscale;
directionControl = 75;
}
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 113 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground5._x - (_parent.ground5._width / 2);
turnLeft = _parent.ground5._x + (_parent.ground5._width / 2);
walkSpeed = 3;
faceRight = true;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 113 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground18._x - (_parent.ground18._width / 2);
turnLeft = _parent.ground18._x + (_parent.ground18._width / 2);
walkSpeed = 3;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 127 MovieClip "enemy4" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground2._x - (_parent.ground2._width / 2);
turnLeft = _parent.ground2._x + (_parent.ground2._width / 2);
walkSpeed = 2;
faceRight = false;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) or (this._currentframe == 3)) {
if (this._currentframe == 3) {
walkSpeed = 8;
}
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 127 MovieClip "enemy3" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground8._x - (_parent.ground8._width / 2);
turnLeft = _parent.ground8._x + (_parent.ground8._width / 2);
walkSpeed = 2;
faceRight = false;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) or (this._currentframe == 3)) {
if (this._currentframe == 3) {
walkSpeed = 8;
}
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 127 MovieClip "enemy2" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground10._x - (_parent.ground10._width / 2);
turnLeft = _parent.ground10._x + (_parent.ground10._width / 2);
walkSpeed = 2;
faceRight = false;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) or (this._currentframe == 3)) {
if (this._currentframe == 3) {
walkSpeed = 8;
}
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 127 MovieClip "enemy1" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground10._x - (_parent.ground10._width / 2);
turnLeft = _parent.ground10._x + (_parent.ground10._width / 2);
walkSpeed = 2;
faceRight = false;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) or (this._currentframe == 3)) {
if (this._currentframe == 3) {
walkSpeed = 8;
}
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 113 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground12._x - (_parent.ground12._width / 2);
turnLeft = _parent.ground12._x + (_parent.ground12._width / 2);
walkSpeed = 3;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 113 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground13._x - (_parent.ground13._width / 2);
turnLeft = _parent.ground13._x + (_parent.ground13._width / 2);
walkSpeed = 3;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 113 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground13._x - (_parent.ground13._width / 2);
turnLeft = _parent.ground13._x + (_parent.ground13._width / 2);
walkSpeed = 3;
faceRight = true;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 113 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground14._x - (_parent.ground14._width / 2);
turnLeft = _parent.ground14._x + (_parent.ground14._width / 2);
walkSpeed = 3;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 130 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root.levelOne.ground15._x;
}
Instance of Symbol 130 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = _root.levelOne.ground16._y;
}
Instance of Symbol 130 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root.levelOne.ground17._x;
}
Instance of Symbol 132 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
if (marioFlash > 0) {
marioFlash--;
_root.mario._alpha = Math.random() * 50;
}
if ((marioFlash == 0) && (_root.mario.hurtCounter == 0)) {
_root.mario._alpha = 100;
}
if (this.hitTest(_root.mario)) {
if (!_root.mario.superMode) {
_root.mario.superMode = true;
marioGrow = new Sound();
marioGrow.attachSound("grow");
marioGrow.start();
marioFlash = 26;
}
this.gotoAndStop(2);
}
}
Instance of Symbol 108 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
walkSpeed = 2;
faceRight = true;
directionControl = 75;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
directionControl--;
if (directionControl <= 0) {
if (!faceRight) {
faceRight = true;
this._xscale = -this._xscale;
directionControl = 75;
} else if (faceRight) {
faceRight = false;
this._xscale = -this._xscale;
directionControl = 75;
}
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 3
stop();
Symbol 157 MovieClip Frame 4
stop();
Symbol 157 MovieClip Frame 5
stop();
Symbol 157 MovieClip Frame 6
stop();
Symbol 157 MovieClip Frame 7
stop();
Symbol 157 MovieClip Frame 8
stop();
Symbol 157 MovieClip Frame 9
stop();
Symbol 157 MovieClip Frame 10
stop();
Symbol 157 MovieClip Frame 11
stop();
Symbol 157 MovieClip Frame 12
stop();
Symbol 157 MovieClip Frame 13
stop();
marioDeath = new Sound();
marioDeath.attachSound("death");
marioDeath.stop();
marioDeath.start();
Symbol 158 Button
on (press) {
gotoAndStop (406);
}
Symbol 160 Button
on (press) {
gotoAndPlay (485);
}
Symbol 163 Button
on (press) {
qualityControl = 1;
if ((_quality == "HIGH") && (qualityControl == 1)) {
_quality = "LOW";
qualityControl = 2;
}
if ((_quality == "MEDIUM") && (qualityControl == 1)) {
_quality = "HIGH";
qualityControl = 2;
}
if ((_quality == "LOW") && (qualityControl == 1)) {
_quality = "MEDIUM";
qualityControl = 2;
}
}
on (release) {
qualityControl = 1;
}
Instance of Symbol 168 MovieClip in Symbol 169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 169 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground2._x - (_parent.ground2._width / 2);
turnLeft = _parent.ground2._x + (_parent.ground2._width / 2);
walkSpeed = 1;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 169 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground9._x - (_parent.ground9._width / 2);
turnLeft = _parent.ground9._x + (_parent.ground9._width / 2);
walkSpeed = 1;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 169 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground4._x - (_parent.ground4._width / 2);
turnLeft = _parent.ground4._x + (_parent.ground4._width / 2);
walkSpeed = 1;
faceRight = true;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 132 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (marioFlash > 0) {
marioFlash--;
_root.mario._alpha = Math.random() * 50;
}
if ((marioFlash == 0) && (_root.mario.hurtCounter == 0)) {
_root.mario._alpha = 100;
}
if (this.hitTest(_root.mario)) {
if (!_root.mario.superMode) {
_root.mario.superMode = true;
marioGrow = new Sound();
marioGrow.attachSound("grow");
marioGrow.start();
marioFlash = 26;
}
this.gotoAndStop(2);
}
}
Instance of Symbol 88 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (Key.isDown(38))) {
marioDoor = new Sound();
marioDoor.attachSound("door");
marioDoor.start();
_root.play();
}
}
Instance of Symbol 169 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground10._x - (_parent.ground10._width / 2);
turnLeft = _parent.ground10._x + (_parent.ground10._width / 2);
walkSpeed = 1;
faceRight = true;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 169 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground11._x - (_parent.ground11._width / 2);
turnLeft = _parent.ground11._x + (_parent.ground11._width / 2);
walkSpeed = 1;
faceRight = true;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 169 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground12._x - (_parent.ground12._width / 2);
turnLeft = _parent.ground12._x + (_parent.ground12._width / 2);
walkSpeed = 1;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 169 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground14._x - (_parent.ground14._width / 2);
turnLeft = _parent.ground14._x + (_parent.ground14._width / 2);
walkSpeed = 1;
faceRight = true;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
}
Instance of Symbol 175 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mario.hitTest(this)) {
hit = "ceiling";
_root.conCirc.hitFunction(hit);
_root.mario._y = _parent._y + _root.mario._height;
}
}
Instance of Symbol 106 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent._parent.gotoAndStop(3);
}
}
Instance of Symbol 184 MovieClip in Symbol 186 MovieClip Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 106 MovieClip in Symbol 186 MovieClip Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent._parent.gotoAndStop(3);
}
}
Symbol 186 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 188 MovieClip Frame 7
stop();
Symbol 189 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip in Symbol 189 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.gotoAndStop(3);
}
}
Symbol 189 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 3
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Instance of Symbol 194 MovieClip in Symbol 195 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 195 MovieClip in Symbol 196 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 88 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (Key.isDown(38))) {
marioDoor = new Sound();
marioDoor.attachSound("door");
marioDoor.start();
_root.play();
}
}
Instance of Symbol 189 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= (_parent.ground15._x - (_parent.ground15._width / 2))) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= (_parent.ground15._x + (_parent.ground15._width / 2))) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground16._x - (_parent.ground16._width / 2);
turnLeft = _parent.ground16._x + (_parent.ground16._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground17._x - (_parent.ground17._width / 2);
turnLeft = _parent.ground17._x + (_parent.ground17._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground18._x - (_parent.ground18._width / 2);
turnLeft = _parent.ground18._x + (_parent.ground18._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground19._x - (_parent.ground19._width / 2);
turnLeft = _parent.ground19._x + (_parent.ground19._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground7._x - (_parent.ground7._width / 2);
turnLeft = _parent.ground7._x + (_parent.ground7._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground8._x - (_parent.ground8._width / 2);
turnLeft = _parent.ground8._x + (_parent.ground8._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground1._x - (_parent.ground1._width / 2);
turnLeft = _parent.ground1._x + (_parent.ground1._width / 2);
walkSpeed = 2;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground9._x - (_parent.ground9._width / 2);
turnLeft = _parent.ground9._x + (_parent.ground9._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 189 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
turnRight = _parent.ground9._x - (_parent.ground9._width / 2);
turnLeft = _parent.ground9._x + (_parent.ground9._width / 2);
walkSpeed = 2.75;
attackCounter = 75;
faceRight = false;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
attackCounter--;
if (this._x <= turnRight) {
faceRight = true;
this._xscale = -this._xscale;
}
if (this._x >= turnLeft) {
faceRight = false;
this._xscale = -this._xscale;
}
if (faceRight) {
this._x = this._x + walkSpeed;
}
if (!faceRight) {
this._x = this._x - walkSpeed;
}
}
if (attackCounter <= 0) {
this.gotoAndStop(2);
attackCounter = 75;
}
}
Instance of Symbol 132 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (enterFrame) {
if (marioFlash > 0) {
marioFlash--;
_root.mario._alpha = Math.random() * 50;
}
if ((marioFlash == 0) && (_root.mario.hurtCounter == 0)) {
_root.mario._alpha = 100;
}
if (this.hitTest(_root.mario)) {
if (!_root.mario.superMode) {
_root.mario.superMode = true;
marioGrow = new Sound();
marioGrow.attachSound("grow");
marioGrow.start();
marioFlash = 26;
}
this.gotoAndStop(2);
}
}
Symbol 216 MovieClip Frame 30
stop();
_root.lavaBoss.marioWin.stop();
_root.lavaBoss.marioWin.start();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip "bossHurt" in Symbol 217 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 217 MovieClip Frame 3
stop();
Instance of Symbol 215 MovieClip in Symbol 217 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 217 MovieClip Frame 4
stop();
_root.marioBoss.stop();
Symbol 241 MovieClip Frame 1
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
Symbol 241 MovieClip Frame 13
stop();
Symbol 242 MovieClip Frame 1
stop();
Instance of Symbol 234 MovieClip in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
damage++;
}
i++;
}
if (damage >= 2) {
_parent.gotoAndStop(2);
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
_parent.gotoAndStop(2);
}
}
Symbol 242 MovieClip Frame 2
stop();
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 247 MovieClip Frame 3
stop();
Symbol 247 MovieClip Frame 4
stop();
Instance of Symbol 241 MovieClip in Symbol 247 MovieClip Frame 4
onClipEvent (load) {
deathCounter = 0;
}
onClipEvent (enterFrame) {
deathCounter++;
if (deathCounter >= 30) {
_root.gotoAndPlay("beginFive");
}
}
Symbol 249 Button
on (press) {
gotoAndPlay (555);
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Symbol 257 MovieClip Frame 1
stop();
Instance of Symbol 256 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
damage++;
}
i++;
}
if (damage >= 3) {
_parent.gotoAndStop(2);
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
_parent.gotoAndStop(2);
}
}
Symbol 257 MovieClip Frame 2
stop();
Instance of Symbol 241 MovieClip in Symbol 257 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 6;
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 600) && (_root.levelOne._x >= 200)) {
this._y = this._y - 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 500) && (_root.levelOne._x >= 200)) {
this._y = this._y - 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 400) && (_root.levelOne._x >= 200)) {
this._y = this._y - 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 600) && (_root.levelOne._x >= 200)) {
this._y = this._y + 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 500) && (_root.levelOne._x >= 200)) {
this._y = this._y + 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 400) && (_root.levelOne._x >= 200)) {
this._y = this._y + 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y + 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y - 3;
}
}
Instance of Symbol 242 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Symbol 264 MovieClip Frame 1
stop();
Instance of Symbol 263 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
damage++;
}
i++;
}
if (damage >= 8) {
_parent.gotoAndStop(2);
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
_parent.gotoAndStop(2);
}
}
Symbol 264 MovieClip Frame 2
stop();
Instance of Symbol 241 MovieClip in Symbol 264 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 257 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 500) {
this._y = this._y - 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y - 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 500) {
this._y = this._y + 3;
}
}
Instance of Symbol 257 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y + 3;
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 12) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 12) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -12) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -12) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = true;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
ySpeed = 0;
moveDown = false;
}
onClipEvent (enterFrame) {
this._y = this._y + ySpeed;
if ((ySpeed < 18) && (!moveDown)) {
ySpeed = ySpeed + 1.5;
if (ySpeed == 18) {
moveDown = true;
ySpeed = ySpeed + 1.5;
}
}
if ((ySpeed > -18) && (moveDown)) {
ySpeed = ySpeed - 1.5;
if (ySpeed == -18) {
moveDown = false;
}
}
}
Instance of Symbol 257 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 600) && (_root.levelOne._x >= 350)) {
this._y = this._y + 3;
this._x = this._x + 9;
}
}
Instance of Symbol 257 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 500) && (_root.levelOne._x >= 350)) {
this._y = this._y + 3;
this._x = this._x + 9;
}
}
Instance of Symbol 257 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 400) && (_root.levelOne._x >= 350)) {
this._y = this._y + 3;
this._x = this._x + 9;
}
}
Instance of Symbol 257 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 600) && (_root.levelOne._x >= 350)) {
this._y = this._y - 3;
this._x = this._x + 9;
}
}
Instance of Symbol 257 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 500) && (_root.levelOne._x >= 350)) {
this._y = this._y - 3;
this._x = this._x + 9;
}
}
Instance of Symbol 257 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 400) && (_root.levelOne._x >= 350)) {
this._y = this._y - 3;
this._x = this._x + 9;
}
}
Symbol 284 MovieClip Frame 1
stop();
Instance of Symbol 283 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
damage++;
}
i++;
}
if (damage >= 6) {
_parent.gotoAndStop(2);
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
_parent.gotoAndStop(2);
}
}
Symbol 284 MovieClip Frame 2
stop();
Instance of Symbol 241 MovieClip in Symbol 284 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 3;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 2;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 0.75;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 2;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 2;
this._x = this._x - 1;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Symbol 288 MovieClip Frame 1
stop();
Instance of Symbol 287 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
damage++;
}
i++;
}
if (damage == 2) {
_parent.gotoAndStop(2);
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
_parent.gotoAndStop(2);
}
}
Symbol 288 MovieClip Frame 2
stop();
Symbol 291 MovieClip Frame 1
stop();
Instance of Symbol 290 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
damage++;
}
i++;
}
if (damage == 2) {
_parent.gotoAndStop(2);
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
_parent.gotoAndStop(2);
}
}
Symbol 291 MovieClip Frame 2
stop();
Symbol 294 MovieClip Frame 1
stop();
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (load) {
damage = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
damage++;
}
i++;
}
if (damage == 2) {
_parent.gotoAndStop(2);
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
_parent.gotoAndStop(2);
}
}
Symbol 294 MovieClip Frame 2
stop();
Instance of Symbol 288 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
}
Instance of Symbol 291 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 1;
}
Instance of Symbol 294 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 1;
}
Instance of Symbol 288 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 2;
}
Instance of Symbol 288 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 288 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 1;
}
Instance of Symbol 291 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 1;
}
Instance of Symbol 294 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 299 MovieClip in Symbol 300 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Instance of Symbol 310 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 9
stop();
Symbol 318 MovieClip Frame 32
stop();
laser = new Sound();
laser.attachSound("laser2");
laser.start();
Instance of Symbol 317 MovieClip in Symbol 318 MovieClip Frame 32
onClipEvent (load) {
moveBoss = true;
}
onClipEvent (enterFrame) {
if (this._x > -113) {
this._x = this._x - 3;
}
if (this._width < 1000) {
this._xscale = this._xscale + 7;
}
if (this._width > 550) {
if (moveBoss) {
_parent.play();
moveBoss = false;
}
this._y = this._y - 1.4;
}
if (this._width >= 1000) {
this.play();
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Instance of Symbol 317 MovieClip in Symbol 318 MovieClip Frame 32
onClipEvent (load) {
moveBoss = true;
}
onClipEvent (enterFrame) {
if (this._x > -113) {
this._x = this._x - 3;
}
if (this._width < 1000) {
this._xscale = this._xscale + 7;
}
if (this._width > 550) {
if (moveBoss) {
_parent.play();
moveBoss = false;
}
this._y = this._y + 1.4;
}
if (this._width >= 1000) {
this.play();
}
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Symbol 318 MovieClip Frame 69
_root.bossShip.attackOne = false;
_root.bossShip.attackTwo = false;
_root.bossShip.attackGenerator = 0;
_root.bossShip.attackTimer = 30;
_root.bossShip.attacking = false;
_root.bossShip.gotoAndStop(1);
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Symbol 323 MovieClip Frame 1
stop();
Instance of Symbol 322 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 13;
if (this._x < -500) {
_parent.play();
}
this._y = this._y - _root.bossShip.ySpeed;
}
Symbol 323 MovieClip Frame 2
_root.bossShip.attackOne = false;
_root.bossShip.attackTwo = false;
_root.bossShip.attackGenerator = 0;
_root.bossShip.attackTimer = 30;
_root.bossShip.attacking = false;
_root.bossShip.gotoAndStop(1);
Instance of Symbol 322 MovieClip in Symbol 323 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 10;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 4
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 7
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 7
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 9
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 241 MovieClip in Symbol 324 MovieClip Frame 20
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Symbol 324 MovieClip Frame 72
_root.gotoAndStop("Intro", "Intro");
stop();
Symbol 325 MovieClip Frame 1
stop();
Instance of Symbol 315 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i <= 21) {
if (this.hitTest(_root["fire" + i])) {
_root["fire" + i].removeMovieClip();
_root.mario.fireCounter--;
_parent.bossLife--;
}
i++;
}
}
Symbol 325 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 3
stop();
laser = new Sound();
laser.attachSound("laserOne");
laser.start();
Symbol 325 MovieClip Frame 4
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 352 Button
on (press) {
_root.charSelect = 5;
Key.removeListener(keyListener);
gotoAndStop (406);
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.75;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.75;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 355 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Symbol 369 MovieClip Frame 235
_root.gotoAndStop("metalman");
Symbol 385 MovieClip Frame 235
_root.gotoAndStop("heatman");
Symbol 397 MovieClip Frame 235
_root.gotoAndStop("crashman");
Symbol 409 MovieClip Frame 236
_root.gotoAndStop("drillman");
Symbol 422 MovieClip Frame 235
_root.gotoAndStop("sparkman");
Symbol 436 MovieClip Frame 235
_root.gotoAndStop("pharaohman");
Symbol 446 MovieClip Frame 235
_root.gotoAndStop("dustman");
Symbol 458 MovieClip Frame 236
_root.gotoAndStop("flashman");
Symbol 464 MovieClip Frame 15
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
_root.metalMan.bladeCounter++;
Symbol 472 MovieClip Frame 5
_root.parentShot.duplicateMovieClip("blade" + _root.metalMan.bladeCounter, _root.metalMan.bladeCounter + 30);
Symbol 472 MovieClip Frame 11
gotoAndPlay (2);
Instance of Symbol 475 MovieClip in Symbol 476 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.metalMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 476 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.metalMan._alpha = 100;
}
Symbol 476 MovieClip Frame 13
_root.metalMan.bossHit = false;
_root.metalMan.gotoAndStop(3);
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 4;
this._x = this._x + 4;
}
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 4;
this._x = this._x + 4;
}
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 4;
this._x = this._x - 4;
}
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 4;
this._x = this._x - 4;
}
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 3;
}
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 3;
}
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 3;
}
Instance of Symbol 479 MovieClip in Symbol 480 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Symbol 480 MovieClip Frame 156
stop();
_root.gotoAndStop("selection");
Symbol 481 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 2
stop();
Symbol 481 MovieClip Frame 3
stop();
Instance of Symbol 106 MovieClip in Symbol 481 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossHit = true;
_parent.bossLife--;
_root.metalLife.play();
_parent.gotoAndStop(5);
}
}
Symbol 481 MovieClip Frame 4
stop();
Symbol 481 MovieClip Frame 5
stop();
Symbol 481 MovieClip Frame 6
stop();
Instance of Symbol 480 MovieClip in Symbol 481 MovieClip Frame 6
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.metal = false;
}
Symbol 497 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 2
stop();
Symbol 497 MovieClip Frame 3
stop();
Symbol 497 MovieClip Frame 4
stop();
Symbol 497 MovieClip Frame 5
stop();
Symbol 497 MovieClip Frame 6
stop();
Symbol 497 MovieClip Frame 7
stop();
Symbol 497 MovieClip Frame 8
stop();
Symbol 497 MovieClip Frame 9
stop();
Symbol 497 MovieClip Frame 10
stop();
Symbol 497 MovieClip Frame 11
stop();
Symbol 497 MovieClip Frame 12
stop();
Symbol 497 MovieClip Frame 13
stop();
Symbol 497 MovieClip Frame 14
stop();
Symbol 497 MovieClip Frame 15
stop();
Symbol 502 MovieClip Frame 31
stop();
Symbol 506 MovieClip Frame 7
_root.parentShot.duplicateMovieClip("drillShot", 30);
Symbol 506 MovieClip Frame 11
_root.drillMan.attackOne = false;
_root.drillMan.attackTimer = 50;
_root.drillMan.gotoAndStop(2);
Instance of Symbol 106 MovieClip in Symbol 514 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 514 MovieClip Frame 60
_root.drillMan.marioPos = _root.mario._x;
Instance of Symbol 106 MovieClip in Symbol 514 MovieClip Frame 61
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 514 MovieClip Frame 73
_root.drillMan.attackTwo = false;
_root.drillMan.attackTimer = 50;
_root.drillMan.gotoAndStop(2);
Instance of Symbol 475 MovieClip in Symbol 516 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.drillMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 516 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.drillMan._alpha = 100;
}
Symbol 516 MovieClip Frame 13
_root.drillMan.attackOne = false;
_root.drillMan.bossHit = false;
_root.drillMan.attackTimer = 5;
_root.drillMan.gotoAndStop(2);
Symbol 517 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 517 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossHit = true;
_parent.bossLife--;
_root.drillLife.play();
_parent.gotoAndStop(5);
}
}
Symbol 517 MovieClip Frame 3
stop();
Symbol 517 MovieClip Frame 4
stop();
Symbol 517 MovieClip Frame 5
stop();
Symbol 517 MovieClip Frame 6
stop();
Instance of Symbol 480 MovieClip in Symbol 517 MovieClip Frame 6
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.drill = false;
}
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 3
stop();
Symbol 534 MovieClip Frame 4
stop();
Symbol 534 MovieClip Frame 5
stop();
Symbol 534 MovieClip Frame 6
stop();
Symbol 534 MovieClip Frame 7
stop();
Symbol 534 MovieClip Frame 8
stop();
Symbol 534 MovieClip Frame 9
stop();
Symbol 534 MovieClip Frame 10
stop();
Symbol 534 MovieClip Frame 11
stop();
Symbol 534 MovieClip Frame 12
stop();
Symbol 534 MovieClip Frame 13
stop();
Symbol 534 MovieClip Frame 14
stop();
Symbol 534 MovieClip Frame 15
stop();
Symbol 539 MovieClip Frame 28
stop();
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 8
stop();
Instance of Symbol 475 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.crashMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 549 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.crashMan._alpha = 100;
}
Symbol 549 MovieClip Frame 13
_root.crashMan.attackOne = false;
_root.crashMan.bossHit = false;
_root.crashMan.attackTimer = 5;
_root.crashMan.gotoAndStop(3);
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 550 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossHit = true;
_parent.bossLife--;
_root.crashLife.play();
_parent.gotoAndStop(5);
}
}
Symbol 550 MovieClip Frame 3
stop();
Symbol 550 MovieClip Frame 4
stop();
Symbol 550 MovieClip Frame 5
stop();
Symbol 550 MovieClip Frame 6
stop();
Instance of Symbol 480 MovieClip in Symbol 550 MovieClip Frame 6
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.crash = false;
}
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 2
stop();
Symbol 561 MovieClip Frame 3
stop();
Symbol 561 MovieClip Frame 4
stop();
Symbol 561 MovieClip Frame 5
stop();
Symbol 561 MovieClip Frame 6
stop();
Symbol 561 MovieClip Frame 7
stop();
Symbol 561 MovieClip Frame 8
stop();
Symbol 561 MovieClip Frame 9
stop();
Symbol 561 MovieClip Frame 10
stop();
Instance of Symbol 106 MovieClip in Symbol 565 MovieClip Frame 40
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 565 MovieClip Frame 53
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 2
stop();
Symbol 572 MovieClip Frame 25
_root.heatMan.play();
Symbol 575 MovieClip Frame 8
_root.parentShot.duplicateMovieClip("fireBlast" + _root.heatMan.fireCounter, 30 + _root.heatMan.fireCounter);
Symbol 575 MovieClip Frame 14
_root.heatMan.attackOne = false;
_root.heatMan.attackTimer = 50;
_root.heatMan.gotoAndStop(2);
Instance of Symbol 475 MovieClip in Symbol 576 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.heatMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 576 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.heatMan._alpha = 100;
}
Instance of Symbol 475 MovieClip in Symbol 576 MovieClip Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 576 MovieClip Frame 55
_root.heatMan.play();
_root.heatMan.marioPos = _root.mario._x;
Symbol 580 MovieClip Frame 7
gotoAndPlay (1);
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 581 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.attackOne = true;
_parent.bossLife--;
_root.heatLife.play();
_parent.gotoAndStop(4);
}
}
Symbol 581 MovieClip Frame 3
stop();
Symbol 581 MovieClip Frame 4
stop();
Symbol 581 MovieClip Frame 5
stop();
Instance of Symbol 580 MovieClip in Symbol 581 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 581 MovieClip Frame 6
stop();
Instance of Symbol 480 MovieClip in Symbol 581 MovieClip Frame 6
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.heat = false;
}
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 2
stop();
Symbol 592 MovieClip Frame 3
stop();
Symbol 592 MovieClip Frame 4
stop();
Symbol 592 MovieClip Frame 5
stop();
Symbol 592 MovieClip Frame 6
stop();
Symbol 592 MovieClip Frame 7
stop();
Symbol 592 MovieClip Frame 8
stop();
Symbol 592 MovieClip Frame 9
stop();
Symbol 592 MovieClip Frame 10
stop();
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 2
stop();
Symbol 599 MovieClip Frame 28
stop();
Symbol 605 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 6
_root.parentShotOne.duplicateMovieClip("pharaohShot", 30);
Symbol 605 MovieClip Frame 12
stop();
Symbol 612 MovieClip Frame 22
_root.parentShotTwo.duplicateMovieClip("pharaohBlast", 30);
Symbol 612 MovieClip Frame 25
_root.pharaohMan.attackTwo = false;
_root.pharaohMan.attackTimer = 90;
_root.pharaohMan.jumpTimer = 30;
Instance of Symbol 475 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.pharaohMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 613 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.pharaohMan._alpha = 100;
}
Symbol 613 MovieClip Frame 13
_root.pharaohMan.attackOne = false;
_root.pharaohMan.attackTwo = false;
_root.pharaohMan.bossHit = false;
_root.pharaohMan.attackTimer = 5;
_root.pharaohMan.gotoAndStop(2);
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 614 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossLife--;
_root.pharaohLife.play();
_parent.bossHit = true;
_parent.gotoAndStop(6);
}
}
Symbol 614 MovieClip Frame 3
stop();
Instance of Symbol 106 MovieClip in Symbol 614 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 614 MovieClip Frame 4
stop();
Symbol 614 MovieClip Frame 5
stop();
Symbol 614 MovieClip Frame 6
stop();
Symbol 614 MovieClip Frame 7
stop();
Instance of Symbol 480 MovieClip in Symbol 614 MovieClip Frame 7
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.pharaoh = false;
}
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 3
stop();
Symbol 625 MovieClip Frame 4
stop();
Symbol 625 MovieClip Frame 5
stop();
Symbol 625 MovieClip Frame 6
stop();
Symbol 625 MovieClip Frame 7
stop();
Symbol 625 MovieClip Frame 8
stop();
Symbol 625 MovieClip Frame 9
stop();
Symbol 625 MovieClip Frame 10
stop();
Symbol 631 MovieClip Frame 28
stop();
Symbol 640 MovieClip Frame 17
_root.parentShot.duplicateMovieClip("sparkBomb", 30);
Symbol 640 MovieClip Frame 21
_root.sparkMan.attackOne = false;
_root.sparkMan.attackTimer = 45;
_root.sparkMan.jumpTimer = 30;
Instance of Symbol 475 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.sparkMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 641 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.sparkMan._alpha = 100;
}
Symbol 641 MovieClip Frame 13
_root.sparkMan.attackOne = false;
_root.sparkMan.bossHit = false;
_root.sparkMan.attackTimer = 5;
_root.sparkMan.gotoAndStop(2);
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 642 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossHit = true;
_parent.bossLife--;
_root.sparkLife.play();
_parent.gotoAndStop(5);
}
}
Symbol 642 MovieClip Frame 3
stop();
Symbol 642 MovieClip Frame 4
stop();
Instance of Symbol 106 MovieClip in Symbol 642 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 642 MovieClip Frame 5
stop();
Symbol 642 MovieClip Frame 6
stop();
Instance of Symbol 480 MovieClip in Symbol 642 MovieClip Frame 6
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.spark = false;
}
Symbol 658 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 2
stop();
Symbol 658 MovieClip Frame 3
stop();
Symbol 658 MovieClip Frame 4
stop();
Symbol 658 MovieClip Frame 5
stop();
Symbol 658 MovieClip Frame 6
stop();
Symbol 658 MovieClip Frame 7
stop();
Symbol 658 MovieClip Frame 8
stop();
Symbol 658 MovieClip Frame 9
stop();
Symbol 658 MovieClip Frame 10
stop();
Symbol 658 MovieClip Frame 11
stop();
Symbol 658 MovieClip Frame 12
stop();
Symbol 658 MovieClip Frame 13
stop();
Symbol 658 MovieClip Frame 14
stop();
Symbol 658 MovieClip Frame 15
stop();
Symbol 665 MovieClip Frame 28
stop();
Symbol 671 MovieClip Frame 13
_root.parentShot.duplicateMovieClip("dustBomb", 30);
Symbol 671 MovieClip Frame 17
_root.dustMan.attackOne = false;
_root.dustMan.attackTimer = 90;
_root.dustMan.jumpTimer = 30;
Symbol 676 MovieClip Frame 63
_root.dustMan.attackTwo = false;
_root.dustMan.attackTimer = 90;
_root.dustMan.jumpTimer = 30;
Instance of Symbol 475 MovieClip in Symbol 677 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.dustMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 677 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.dustMan._alpha = 100;
}
Symbol 677 MovieClip Frame 13
_root.dustMan.attackOne = false;
_root.dustMan.attackTwo = false;
_root.dustMan.bossHit = false;
_root.dustMan.attackTimer = 5;
_root.dustMan.gotoAndStop(2);
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 678 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossHit = true;
_parent.bossLife--;
_root.dustLife.play();
_parent.gotoAndStop(6);
}
}
Symbol 678 MovieClip Frame 3
stop();
Instance of Symbol 106 MovieClip in Symbol 678 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 678 MovieClip Frame 4
stop();
Instance of Symbol 106 MovieClip in Symbol 678 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossHit = true;
_parent.bossLife--;
_root.dustLife.play();
_parent.gotoAndStop(6);
}
}
Symbol 678 MovieClip Frame 5
stop();
Instance of Symbol 106 MovieClip in Symbol 678 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 678 MovieClip Frame 6
stop();
Symbol 678 MovieClip Frame 7
stop();
Instance of Symbol 480 MovieClip in Symbol 678 MovieClip Frame 7
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.dust = false;
}
Symbol 694 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 3
stop();
Symbol 694 MovieClip Frame 4
stop();
Symbol 694 MovieClip Frame 5
stop();
Symbol 694 MovieClip Frame 6
stop();
Symbol 694 MovieClip Frame 7
stop();
Symbol 694 MovieClip Frame 8
stop();
Symbol 694 MovieClip Frame 9
stop();
Symbol 694 MovieClip Frame 10
stop();
Symbol 694 MovieClip Frame 11
stop();
Symbol 694 MovieClip Frame 12
stop();
Symbol 694 MovieClip Frame 13
stop();
Symbol 694 MovieClip Frame 14
stop();
Symbol 694 MovieClip Frame 15
stop();
Symbol 705 MovieClip Frame 1
stop();
Instance of Symbol 696 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 705 MovieClip Frame 2
stop();
Instance of Symbol 698 MovieClip in Symbol 705 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
this._x = this._x - 7;
this._y = this._y - 7;
}
Instance of Symbol 700 MovieClip in Symbol 705 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
this._x = this._x + 7;
this._y = this._y - 7;
}
Instance of Symbol 702 MovieClip in Symbol 705 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
this._x = this._x + 7;
this._y = this._y + 7;
}
Instance of Symbol 704 MovieClip in Symbol 705 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
this._x = this._x - 7;
this._y = this._y + 7;
}
Symbol 708 MovieClip Frame 28
stop();
Symbol 718 MovieClip Frame 11
_root.mario.flashFreeze = true;
Symbol 718 MovieClip Frame 15
_root.parentShot.duplicateMovieClip("flashShot", 30);
Symbol 718 MovieClip Frame 70
_root.flashMan.attackTwo = false;
_root.flashMan.attackTimer = 50;
_root.mario.flashFreeze = false;
Instance of Symbol 475 MovieClip in Symbol 719 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.flashMan._alpha = Math.random() * 100;
}
Instance of Symbol 475 MovieClip in Symbol 719 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.flashMan._alpha = 100;
}
Symbol 719 MovieClip Frame 13
_root.flashMan.attackOne = false;
_root.flashMan.attackTwo = false;
_root.flashMan.bossHit = false;
_root.flashMan.attackTimer = 5;
_root.flashMan.gotoAndStop(2);
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 720 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario.hitBlock)) {
_root.mario.vel_y = 15;
_root.mario._y = _root.mario._y - 5;
_parent.bossHit = true;
_parent.bossLife--;
_root.flashLife.play();
_parent.gotoAndStop(6);
}
}
Symbol 720 MovieClip Frame 3
stop();
Symbol 720 MovieClip Frame 4
stop();
Instance of Symbol 106 MovieClip in Symbol 720 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 720 MovieClip Frame 5
stop();
Symbol 720 MovieClip Frame 6
stop();
Symbol 720 MovieClip Frame 7
stop();
Instance of Symbol 480 MovieClip in Symbol 720 MovieClip Frame 7
onClipEvent (load) {
_root.bossMusic.stop();
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
victory = new Sound();
victory.attachSound("victory");
victory.start();
_global.flash = false;
}
Symbol 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 2
stop();
Symbol 736 MovieClip Frame 3
stop();
Symbol 736 MovieClip Frame 4
stop();
Symbol 736 MovieClip Frame 5
stop();
Symbol 736 MovieClip Frame 6
stop();
Symbol 736 MovieClip Frame 7
stop();
Symbol 736 MovieClip Frame 8
stop();
Symbol 736 MovieClip Frame 9
stop();
Symbol 736 MovieClip Frame 10
stop();
Symbol 736 MovieClip Frame 11
stop();
Symbol 736 MovieClip Frame 12
stop();
Symbol 736 MovieClip Frame 13
stop();
Symbol 736 MovieClip Frame 14
stop();
Symbol 736 MovieClip Frame 15
stop();
Instance of Symbol 738 MovieClip in Symbol 739 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 15;
this._y = this._y - 4;
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 738 MovieClip in Symbol 739 MovieClip Frame 5
onClipEvent (enterFrame) {
this._x = this._x - 15;
this._y = this._y - 2;
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 738 MovieClip in Symbol 739 MovieClip Frame 9
onClipEvent (enterFrame) {
this._x = this._x - 15;
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 738 MovieClip in Symbol 739 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x - 15;
this._y = this._y + 1.5;
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Instance of Symbol 738 MovieClip in Symbol 739 MovieClip Frame 17
onClipEvent (enterFrame) {
this._x = this._x - 15;
this._y = this._y + 3;
if (this.hitTest(_root.mario) && (_root.mario.hurtCounter == 0)) {
if (_root.mario.superMode) {
_root.mario.hurtCounter = 26;
_root.mario.superMode = false;
}
if (((!_root.mario.superMode) && (_root.mario.hurtCounter == 0)) && (!_root.mario.marioDeath)) {
_root.mario.marioDeath = true;
_root.mario.vel_y = 15;
}
}
}
Symbol 739 MovieClip Frame 51
stop();