Frame 2
stop();
Frame 6
stop();
marioIntro.stop();
Frame 32
stop();
marioMusic = new Sound();
marioMusic.attachSound("marioMusic");
marioMusic.start(0, 20);
Instance of Symbol 92 MovieClip "conCirc" in Frame 32
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 164 MovieClip "mario" in Frame 32
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 58
stop();
marioMusic = new Sound();
marioMusic.attachSound("underground");
marioMusic.stop();
marioMusic.start(0, 20);
Instance of Symbol 179 MovieClip "levelOne" in Frame 58
onClipEvent (load) {
levelMovement = true;
}
onClipEvent (enterFrame) {
if (this._x < -1500) {
levelMovement = false;
}
}
Instance of Symbol 92 MovieClip "conCirc" in Frame 58
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 181 MovieClip "levelTwo" in Frame 58
onClipEvent (load) {
levelMovement = false;
}
onClipEvent (enterFrame) {
if (_root.levelOne._x < -1000) {
levelMovement = true;
}
}
Instance of Symbol 164 MovieClip "mario" in Frame 58
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 84
stop();
marioMusic = new Sound();
marioMusic.attachSound("castle");
marioMusic.stop();
marioMusic.start(0, 20);
Instance of Symbol 205 MovieClip "levelTwo" in Frame 84
onClipEvent (load) {
levelMovement = false;
}
onClipEvent (enterFrame) {
if (_root.levelOne._x < -900) {
levelMovement = true;
}
}
Instance of Symbol 210 MovieClip "levelOne" in Frame 84
onClipEvent (load) {
levelMovement = true;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 92 MovieClip "conCirc" in Frame 84
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 164 MovieClip "mario" in Frame 84
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 110
stop();
marioBoss = new Sound();
marioBoss.attachSound("hammer");
marioBoss.stop();
marioBoss.start(0, 50);
Instance of Symbol 134 MovieClip "enemy1" in Frame 110
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 92 MovieClip "conCirc" in Frame 110
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 164 MovieClip "mario" in Frame 110
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 139 MovieClip in Frame 110
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 225 MovieClip "lavaBoss" in Frame 110
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 233 MovieClip "fireTwo" in Frame 110
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 233 MovieClip "fireOne" in Frame 110
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 111
gradius.stop();
Frame 136
stop();
gradius = new Sound();
gradius.attachSound("gradius");
gradius.start(0, 50);
stop();
Instance of Symbol 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 236 MovieClip in Frame 136
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 251 MovieClip "levelOne" in Frame 136
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 5;
if ((this._x <= 310) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Instance of Symbol 255 MovieClip "mario" in Frame 136
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 256 MovieClip "mFire" in Frame 136
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 137
stop();
Instance of Symbol 259 MovieClip in Frame 137
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -85) {
_root.play();
}
}
Frame 138
stop();
Instance of Symbol 266 MovieClip "levelOne" in Frame 138
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -190) {
_root.play();
}
}
Frame 139
stop();
Instance of Symbol 273 MovieClip "levelTwo" in Frame 139
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -100) {
_root.play();
}
}
Frame 140
stop();
Instance of Symbol 274 MovieClip in Frame 140
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -121) {
_root.play();
}
}
Frame 141
stop();
Instance of Symbol 275 MovieClip in Frame 141
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -140) {
_root.play();
}
}
Frame 142
stop();
Instance of Symbol 276 MovieClip in Frame 142
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 5;
if ((this._x <= 350) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 143
stop();
Instance of Symbol 278 MovieClip in Frame 143
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -175) {
_root.play();
}
}
Frame 144
stop();
Instance of Symbol 280 MovieClip "levelOne" in Frame 144
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 6;
if ((this._x <= 200) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 145
stop();
Instance of Symbol 282 MovieClip in Frame 145
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -90) {
_root.play();
}
}
Frame 146
stop();
Instance of Symbol 284 MovieClip "levelOne" in Frame 146
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -290) {
_root.play();
}
}
Frame 147
stop();
Instance of Symbol 278 MovieClip in Frame 147
onClipEvent (enterFrame) {
this._x = this._x - 6;
if (this._x <= -325) {
_root.play();
}
}
Frame 148
stop();
Instance of Symbol 294 MovieClip in Frame 148
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -300) {
_root.play();
}
}
Frame 149
stop();
Instance of Symbol 304 MovieClip in Frame 149
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 5;
if ((this._x <= 280) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 150
stop();
Instance of Symbol 305 MovieClip in Frame 150
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (this._x <= -275) {
_root.play();
}
}
Frame 151
stop();
Instance of Symbol 310 MovieClip in Frame 151
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 152
stop();
Instance of Symbol 312 MovieClip in Frame 152
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if ((this._x <= 25) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 153
stop();
Instance of Symbol 314 MovieClip in Frame 153
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 10;
if ((this._x <= -200) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 154
stop();
Instance of Symbol 317 MovieClip in Frame 154
onClipEvent (load) {
levelMove = true;
}
onClipEvent (enterFrame) {
this._x = this._x - 6;
if ((this._x <= -1200) && (levelMove)) {
_root.play();
levelMove = false;
}
}
Frame 155
stop();
Instance of Symbol 334 MovieClip "bossShip" in Frame 155
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 181
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 (6);
}
}
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 (182);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 1) && (_global.flash or (_global.flash == undefined))) {
gotoAndStop (189);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 4) && (_global.heat or (_global.heat == undefined))) {
gotoAndStop (183);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 3) && (_global.spark or (_global.spark == undefined))) {
gotoAndStop (186);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 6) && (_global.crash or (_global.crash == undefined))) {
gotoAndStop (184);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 7) && (_global.pharaoh or (_global.pharaoh == undefined))) {
gotoAndStop (187);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 8) && (_global.drill or (_global.drill == undefined))) {
gotoAndStop (185);
selectMusic.stop();
Key.removeListener(keyListener);
}
if ((charSelect == 9) && (_global.dust or (_global.dust == undefined))) {
gotoAndStop (188);
selectMusic.stop();
Key.removeListener(keyListener);
}
}
}
};
Key.addListener(keyListener);
stop();
Instance of Symbol 344 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 2;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 346 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 1;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 348 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 7;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 350 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 3;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 352 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 8;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 354 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 4;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 356 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 6;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 358 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 9;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 360 MovieClip in Frame 181
onClipEvent (load) {
selectionNumber = 5;
}
onClipEvent (enterFrame) {
if (_root.charSelect == selectionNumber) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 182
stop();
_global.metal = true;
Instance of Symbol 380 MovieClip in Frame 182
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 183
stop();
_global.heat = true;
Instance of Symbol 367 MovieClip in Frame 183
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 184
stop();
_global.crash = true;
Instance of Symbol 407 MovieClip in Frame 184
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 185
stop();
_global.drill = true;
Instance of Symbol 419 MovieClip in Frame 185
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 186
stop();
_global.spark = true;
Instance of Symbol 432 MovieClip in Frame 186
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 187
stop();
_global.pharaoh = true;
Instance of Symbol 446 MovieClip in Frame 187
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 188
stop();
_global.dust = true;
Instance of Symbol 456 MovieClip in Frame 188
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 189
stop();
_global.flash = true;
Instance of Symbol 468 MovieClip in Frame 189
onClipEvent (load) {
stageIntro = new Sound();
stageIntro.attachSound("stageIntro");
stageIntro.start();
}
Frame 190
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 491 MovieClip "metalMan" in Frame 190
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 92 MovieClip "conCirc" in Frame 190
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 510 MovieClip "parentShot" in Frame 190
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 164 MovieClip "mario" in Frame 190
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 192
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 527 MovieClip "drillMan" in Frame 192
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 92 MovieClip "conCirc" in Frame 192
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 547 MovieClip "parentShot" in Frame 192
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 164 MovieClip "mario" in Frame 192
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 194
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 560 MovieClip "crashMan" in Frame 194
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 92 MovieClip "conCirc" in Frame 194
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 576 MovieClip "parentShot" in Frame 194
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 164 MovieClip "mario" in Frame 194
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 196
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 591 MovieClip "heatMan" in Frame 196
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 92 MovieClip "conCirc" in Frame 196
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 607 MovieClip "parentShot" in Frame 196
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 164 MovieClip "mario" in Frame 196
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 198
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 624 MovieClip "pharaohMan" in Frame 198
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 92 MovieClip "conCirc" in Frame 198
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 637 MovieClip "parentShotOne" in Frame 198
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 639 MovieClip "parentShotTwo" in Frame 198
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 164 MovieClip "mario" in Frame 198
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 200
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 652 MovieClip "sparkMan" in Frame 200
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 92 MovieClip "conCirc" in Frame 200
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 673 MovieClip "parentShot" in Frame 200
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 164 MovieClip "mario" in Frame 200
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 202
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 688 MovieClip "dustMan" in Frame 202
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 92 MovieClip "conCirc" in Frame 202
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 715 MovieClip "parentShot" in Frame 202
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 164 MovieClip "mario" in Frame 202
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 204
stop();
bossMusic = new Sound();
bossMusic.attachSound("rbMusic");
bossMusic.start(0, 100);
Instance of Symbol 730 MovieClip "flashMan" in Frame 204
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 92 MovieClip "conCirc" in Frame 204
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 749 MovieClip "parentShot" in Frame 204
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 164 MovieClip "mario" in Frame 204
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 33 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 5;
}
Instance of Symbol 35 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Instance of Symbol 37 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 20;
}
Symbol 56 Button
on (release) {
_root.play();
}
Symbol 57 MovieClip Frame 1
_root.stop();
percentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
percentFuddle = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loaded.text = percentFuddle;
if (percentLoaded != 100) {
setProperty(bar, _xscale , percentLoaded);
} else {
gotoAndStop (3);
}
Symbol 57 MovieClip Frame 2
gotoAndPlay (1);
Symbol 60 Button
on (press) {
gotoAndStop (4);
}
Symbol 61 Button
on (press) {
gotoAndStop (5);
}
Symbol 65 Button
on (press) {
gotoAndPlay (6);
}
Symbol 67 Button
on (press) {
gotoAndStop (3);
}
Symbol 75 Button
on (press) {
gotoAndStop (2);
}
Symbol 83 Button
on (rollOver) {
marioIntro = new Sound();
marioIntro.attachSound("cutman");
marioIntro.stop();
marioIntro.start();
}
on (rollOut) {
marioIntro.stop();
}
on (press) {
marioIntro.stop();
gotoAndPlay (156);
}
Symbol 85 Button
on (rollOver) {
marioIntro = new Sound();
marioIntro.attachSound("forest");
marioIntro.stop();
marioIntro.start();
}
on (rollOut) {
marioIntro.stop();
}
on (press) {
marioIntro.stop();
gotoAndPlay (7);
}
Symbol 87 Button
on (rollOver) {
marioIntro = new Sound();
marioIntro.attachSound("gradius2");
marioIntro.stop();
marioIntro.start();
}
on (rollOut) {
marioIntro.stop();
}
on (press) {
marioIntro.stop();
gotoAndPlay (111);
}
Instance of Symbol 97 MovieClip in Symbol 98 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 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Instance of Symbol 106 MovieClip in Symbol 107 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.mario.hitTest(this)) {
hit = "right";
_root.conCirc.hitFunction(hit);
}
}
Instance of Symbol 106 MovieClip in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.mario.hitTest(this)) {
hit = "left";
_root.conCirc.hitFunction(hit);
}
}
Symbol 114 MovieClip Frame 7
stop();
Symbol 115 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 115 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 115 MovieClip Frame 2
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Symbol 119 MovieClip Frame 7
stop();
Symbol 120 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 120 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 120 MovieClip Frame 2
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Symbol 133 MovieClip Frame 5
stop();
Instance of Symbol 113 MovieClip in Symbol 133 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 134 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 134 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 134 MovieClip Frame 2
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Instance of Symbol 113 MovieClip in Symbol 134 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 134 MovieClip Frame 3
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Instance of Symbol 113 MovieClip in Symbol 134 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 134 MovieClip Frame 4
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Instance of Symbol 95 MovieClip in Symbol 141 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 98 MovieClip "ground17" in Symbol 141 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 98 MovieClip "ground16" in Symbol 141 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 98 MovieClip "ground15" in Symbol 141 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 104 MovieClip in Symbol 141 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 104 MovieClip in Symbol 141 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 104 MovieClip in Symbol 141 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 104 MovieClip in Symbol 141 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 104 MovieClip in Symbol 141 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 104 MovieClip in Symbol 141 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 115 MovieClip in Symbol 141 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 120 MovieClip in Symbol 141 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 120 MovieClip in Symbol 141 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 134 MovieClip "enemy4" in Symbol 141 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 134 MovieClip "enemy3" in Symbol 141 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 134 MovieClip "enemy2" in Symbol 141 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 134 MovieClip "enemy1" in Symbol 141 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 120 MovieClip in Symbol 141 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 120 MovieClip in Symbol 141 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 120 MovieClip in Symbol 141 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 120 MovieClip in Symbol 141 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 137 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root.levelOne.ground15._x;
}
Instance of Symbol 137 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = _root.levelOne.ground16._y;
}
Instance of Symbol 137 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root.levelOne.ground17._x;
}
Instance of Symbol 139 MovieClip in Symbol 141 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 115 MovieClip in Symbol 141 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 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
stop();
Symbol 164 MovieClip Frame 3
stop();
Symbol 164 MovieClip Frame 4
stop();
Symbol 164 MovieClip Frame 5
stop();
Symbol 164 MovieClip Frame 6
stop();
Symbol 164 MovieClip Frame 7
stop();
Symbol 164 MovieClip Frame 8
stop();
Symbol 164 MovieClip Frame 9
stop();
Symbol 164 MovieClip Frame 10
stop();
Symbol 164 MovieClip Frame 11
stop();
Symbol 164 MovieClip Frame 12
stop();
Symbol 164 MovieClip Frame 13
stop();
marioDeath = new Sound();
marioDeath.attachSound("death");
marioDeath.stop();
marioDeath.start();
Symbol 165 Button
on (press) {
gotoAndStop (6);
}
Symbol 167 Button
on (press) {
gotoAndPlay (85);
}
Symbol 170 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 176 MovieClip in Symbol 177 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 177 MovieClip in Symbol 179 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 177 MovieClip in Symbol 179 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 177 MovieClip in Symbol 179 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 139 MovieClip in Symbol 179 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 95 MovieClip in Symbol 181 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 177 MovieClip in Symbol 181 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 177 MovieClip in Symbol 181 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 177 MovieClip in Symbol 181 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 177 MovieClip in Symbol 181 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 183 MovieClip in Symbol 184 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 113 MovieClip in Symbol 194 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 192 MovieClip in Symbol 194 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 113 MovieClip in Symbol 194 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 194 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 196 MovieClip Frame 7
stop();
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 197 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 197 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 3
stop();
marioStomp = new Sound();
marioStomp.attachSound("stomp");
marioStomp.start();
Instance of Symbol 202 MovieClip in Symbol 203 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 203 MovieClip in Symbol 204 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 95 MovieClip in Symbol 205 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 197 MovieClip in Symbol 205 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 197 MovieClip in Symbol 205 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 197 MovieClip in Symbol 205 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 197 MovieClip in Symbol 205 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 197 MovieClip in Symbol 205 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 197 MovieClip in Symbol 210 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 197 MovieClip in Symbol 210 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 197 MovieClip in Symbol 210 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 197 MovieClip in Symbol 210 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 197 MovieClip in Symbol 210 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 139 MovieClip in Symbol 210 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 224 MovieClip Frame 30
stop();
_root.lavaBoss.marioWin.stop();
_root.lavaBoss.marioWin.start();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip "bossHurt" in Symbol 225 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 225 MovieClip Frame 3
stop();
Instance of Symbol 223 MovieClip in Symbol 225 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 225 MovieClip Frame 4
stop();
_root.marioBoss.stop();
Symbol 249 MovieClip Frame 1
explosion = new Sound();
explosion.attachSound("explosion");
explosion.start();
Symbol 249 MovieClip Frame 13
stop();
Symbol 250 MovieClip Frame 1
stop();
Instance of Symbol 242 MovieClip in Symbol 250 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 250 MovieClip Frame 2
stop();
Instance of Symbol 249 MovieClip in Symbol 250 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Instance of Symbol 250 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 250 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 250 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 250 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 250 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 250 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 250 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 250 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 250 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 250 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 250 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 250 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 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
stop();
Symbol 255 MovieClip Frame 4
stop();
Instance of Symbol 249 MovieClip in Symbol 255 MovieClip Frame 4
onClipEvent (load) {
deathCounter = 0;
}
onClipEvent (enterFrame) {
deathCounter++;
if (deathCounter >= 30) {
_root.gotoAndPlay("beginFive");
}
}
Symbol 257 Button
on (press) {
gotoAndPlay (155);
}
Instance of Symbol 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 250 MovieClip in Symbol 259 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 265 MovieClip Frame 1
stop();
Instance of Symbol 264 MovieClip in Symbol 265 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 265 MovieClip Frame 2
stop();
Instance of Symbol 249 MovieClip in Symbol 265 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 6;
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 600) && (_root.levelOne._x >= 200)) {
this._y = this._y - 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 500) && (_root.levelOne._x >= 200)) {
this._y = this._y - 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 400) && (_root.levelOne._x >= 200)) {
this._y = this._y - 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 600) && (_root.levelOne._x >= 200)) {
this._y = this._y + 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 500) && (_root.levelOne._x >= 200)) {
this._y = this._y + 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.levelOne._x <= 400) && (_root.levelOne._x >= 200)) {
this._y = this._y + 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y + 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y - 3;
}
}
Instance of Symbol 250 MovieClip in Symbol 266 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 272 MovieClip Frame 1
stop();
Instance of Symbol 271 MovieClip in Symbol 272 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 272 MovieClip Frame 2
stop();
Instance of Symbol 249 MovieClip in Symbol 272 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 276 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 250 MovieClip in Symbol 278 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 265 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 500) {
this._y = this._y - 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y - 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 500) {
this._y = this._y + 3;
}
}
Instance of Symbol 265 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelOne._x <= 400) {
this._y = this._y + 3;
}
}
Instance of Symbol 250 MovieClip in Symbol 282 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 250 MovieClip in Symbol 282 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 250 MovieClip in Symbol 282 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 250 MovieClip in Symbol 282 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 250 MovieClip in Symbol 282 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 250 MovieClip in Symbol 282 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 250 MovieClip in Symbol 282 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 250 MovieClip in Symbol 282 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 265 MovieClip in Symbol 284 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 265 MovieClip in Symbol 284 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 265 MovieClip in Symbol 284 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 265 MovieClip in Symbol 284 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 265 MovieClip in Symbol 284 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 265 MovieClip in Symbol 284 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 293 MovieClip Frame 1
stop();
Instance of Symbol 292 MovieClip in Symbol 293 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 293 MovieClip Frame 2
stop();
Instance of Symbol 249 MovieClip in Symbol 293 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 3;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 2;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 0.75;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 2;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 2;
this._x = this._x - 1;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Symbol 297 MovieClip Frame 1
stop();
Instance of Symbol 296 MovieClip in Symbol 297 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 297 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 1
stop();
Instance of Symbol 299 MovieClip in Symbol 300 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 300 MovieClip Frame 2
stop();
Symbol 303 MovieClip Frame 1
stop();
Instance of Symbol 302 MovieClip in Symbol 303 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 303 MovieClip Frame 2
stop();
Instance of Symbol 297 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
}
Instance of Symbol 300 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 1;
}
Instance of Symbol 303 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 1;
}
Instance of Symbol 297 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 2;
}
Instance of Symbol 297 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Instance of Symbol 297 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 1;
}
Instance of Symbol 300 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 1;
}
Instance of Symbol 303 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 308 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Instance of Symbol 319 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Instance of Symbol 322 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 9
stop();
Symbol 327 MovieClip Frame 32
stop();
laser = new Sound();
laser.attachSound("laser2");
laser.start();
Instance of Symbol 326 MovieClip in Symbol 327 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 326 MovieClip in Symbol 327 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 327 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 329 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario)) {
_root.mario.gotoAndStop(4);
}
}
Symbol 332 MovieClip Frame 1
stop();
Instance of Symbol 331 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 13;
if (this._x < -500) {
_parent.play();
}
this._y = this._y - _root.bossShip.ySpeed;
}
Symbol 332 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 331 MovieClip in Symbol 332 MovieClip Frame 2
onClipEvent (enterFrame) {
this._x = this._x - 10;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 4
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 7
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 7
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 9
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Instance of Symbol 249 MovieClip in Symbol 333 MovieClip Frame 20
onClipEvent (enterFrame) {
this._x = this._x + 4;
}
Symbol 333 MovieClip Frame 72
_root.gotoAndStop("Intro", "Intro");
stop();
Symbol 334 MovieClip Frame 1
stop();
Instance of Symbol 324 MovieClip in Symbol 334 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 334 MovieClip Frame 2
stop();
Symbol 334 MovieClip Frame 3
stop();
laser = new Sound();
laser.attachSound("laserOne");
laser.start();
Symbol 334 MovieClip Frame 4
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 350 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 2
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 362 Button
on (press) {
_root.charSelect = 5;
Key.removeListener(keyListener);
gotoAndStop (6);
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.75;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.75;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 365 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 1;
if (this._x > 650) {
this._x = 0;
}
}
Symbol 379 MovieClip Frame 235
_root.gotoAndStop("metalman");
Symbol 395 MovieClip Frame 235
_root.gotoAndStop("heatman");
Symbol 407 MovieClip Frame 235
_root.gotoAndStop("crashman");
Symbol 419 MovieClip Frame 236
_root.gotoAndStop("drillman");
Symbol 432 MovieClip Frame 235
_root.gotoAndStop("sparkman");
Symbol 446 MovieClip Frame 235
_root.gotoAndStop("pharaohman");
Symbol 456 MovieClip Frame 235
_root.gotoAndStop("dustman");
Symbol 468 MovieClip Frame 236
_root.gotoAndStop("flashman");
Symbol 474 MovieClip Frame 15
stop();
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 2
_root.metalMan.bladeCounter++;
Symbol 482 MovieClip Frame 5
_root.parentShot.duplicateMovieClip("blade" + _root.metalMan.bladeCounter, _root.metalMan.bladeCounter + 30);
Symbol 482 MovieClip Frame 11
gotoAndPlay (2);
Instance of Symbol 485 MovieClip in Symbol 486 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.metalMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 486 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.metalMan._alpha = 100;
}
Symbol 486 MovieClip Frame 13
_root.metalMan.bossHit = false;
_root.metalMan.gotoAndStop(3);
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 4;
this._x = this._x + 4;
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 4;
this._x = this._x + 4;
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 4;
this._x = this._x - 4;
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 4;
this._x = this._x - 4;
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 3;
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 3;
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 3;
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 3;
}
Symbol 490 MovieClip Frame 156
stop();
_root.gotoAndStop("selection");
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 2
stop();
Symbol 491 MovieClip Frame 3
stop();
Instance of Symbol 113 MovieClip in Symbol 491 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 491 MovieClip Frame 4
stop();
Symbol 491 MovieClip Frame 5
stop();
Symbol 491 MovieClip Frame 6
stop();
Instance of Symbol 490 MovieClip in Symbol 491 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 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
stop();
Symbol 507 MovieClip Frame 3
stop();
Symbol 507 MovieClip Frame 4
stop();
Symbol 507 MovieClip Frame 5
stop();
Symbol 507 MovieClip Frame 6
stop();
Symbol 507 MovieClip Frame 7
stop();
Symbol 507 MovieClip Frame 8
stop();
Symbol 507 MovieClip Frame 9
stop();
Symbol 507 MovieClip Frame 10
stop();
Symbol 507 MovieClip Frame 11
stop();
Symbol 507 MovieClip Frame 12
stop();
Symbol 507 MovieClip Frame 13
stop();
Symbol 507 MovieClip Frame 14
stop();
Symbol 507 MovieClip Frame 15
stop();
Symbol 512 MovieClip Frame 31
stop();
Symbol 516 MovieClip Frame 7
_root.parentShot.duplicateMovieClip("drillShot", 30);
Symbol 516 MovieClip Frame 11
_root.drillMan.attackOne = false;
_root.drillMan.attackTimer = 50;
_root.drillMan.gotoAndStop(2);
Instance of Symbol 113 MovieClip in Symbol 524 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 524 MovieClip Frame 60
_root.drillMan.marioPos = _root.mario._x;
Instance of Symbol 113 MovieClip in Symbol 524 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 524 MovieClip Frame 73
_root.drillMan.attackTwo = false;
_root.drillMan.attackTimer = 50;
_root.drillMan.gotoAndStop(2);
Instance of Symbol 485 MovieClip in Symbol 526 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.drillMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 526 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.drillMan._alpha = 100;
}
Symbol 526 MovieClip Frame 13
_root.drillMan.attackOne = false;
_root.drillMan.bossHit = false;
_root.drillMan.attackTimer = 5;
_root.drillMan.gotoAndStop(2);
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip in Symbol 527 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 527 MovieClip Frame 3
stop();
Symbol 527 MovieClip Frame 4
stop();
Symbol 527 MovieClip Frame 5
stop();
Symbol 527 MovieClip Frame 6
stop();
Instance of Symbol 490 MovieClip in Symbol 527 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 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 2
stop();
Symbol 544 MovieClip Frame 3
stop();
Symbol 544 MovieClip Frame 4
stop();
Symbol 544 MovieClip Frame 5
stop();
Symbol 544 MovieClip Frame 6
stop();
Symbol 544 MovieClip Frame 7
stop();
Symbol 544 MovieClip Frame 8
stop();
Symbol 544 MovieClip Frame 9
stop();
Symbol 544 MovieClip Frame 10
stop();
Symbol 544 MovieClip Frame 11
stop();
Symbol 544 MovieClip Frame 12
stop();
Symbol 544 MovieClip Frame 13
stop();
Symbol 544 MovieClip Frame 14
stop();
Symbol 544 MovieClip Frame 15
stop();
Symbol 549 MovieClip Frame 28
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 8
stop();
Instance of Symbol 485 MovieClip in Symbol 559 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.crashMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 559 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.crashMan._alpha = 100;
}
Symbol 559 MovieClip Frame 13
_root.crashMan.attackOne = false;
_root.crashMan.bossHit = false;
_root.crashMan.attackTimer = 5;
_root.crashMan.gotoAndStop(3);
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip in Symbol 560 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 560 MovieClip Frame 3
stop();
Symbol 560 MovieClip Frame 4
stop();
Symbol 560 MovieClip Frame 5
stop();
Symbol 560 MovieClip Frame 6
stop();
Instance of Symbol 490 MovieClip in Symbol 560 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 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 2
stop();
Symbol 571 MovieClip Frame 3
stop();
Symbol 571 MovieClip Frame 4
stop();
Symbol 571 MovieClip Frame 5
stop();
Symbol 571 MovieClip Frame 6
stop();
Symbol 571 MovieClip Frame 7
stop();
Symbol 571 MovieClip Frame 8
stop();
Symbol 571 MovieClip Frame 9
stop();
Symbol 571 MovieClip Frame 10
stop();
Instance of Symbol 113 MovieClip in Symbol 575 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 575 MovieClip Frame 53
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 2
stop();
Symbol 582 MovieClip Frame 25
_root.heatMan.play();
Symbol 585 MovieClip Frame 8
_root.parentShot.duplicateMovieClip("fireBlast" + _root.heatMan.fireCounter, 30 + _root.heatMan.fireCounter);
Symbol 585 MovieClip Frame 14
_root.heatMan.attackOne = false;
_root.heatMan.attackTimer = 50;
_root.heatMan.gotoAndStop(2);
Instance of Symbol 485 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.heatMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 586 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.heatMan._alpha = 100;
}
Instance of Symbol 485 MovieClip in Symbol 586 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 586 MovieClip Frame 55
_root.heatMan.play();
_root.heatMan.marioPos = _root.mario._x;
Symbol 590 MovieClip Frame 7
gotoAndPlay (1);
Symbol 591 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip in Symbol 591 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 591 MovieClip Frame 3
stop();
Symbol 591 MovieClip Frame 4
stop();
Symbol 591 MovieClip Frame 5
stop();
Instance of Symbol 590 MovieClip in Symbol 591 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 591 MovieClip Frame 6
stop();
Instance of Symbol 490 MovieClip in Symbol 591 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 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 602 MovieClip Frame 3
stop();
Symbol 602 MovieClip Frame 4
stop();
Symbol 602 MovieClip Frame 5
stop();
Symbol 602 MovieClip Frame 6
stop();
Symbol 602 MovieClip Frame 7
stop();
Symbol 602 MovieClip Frame 8
stop();
Symbol 602 MovieClip Frame 9
stop();
Symbol 602 MovieClip Frame 10
stop();
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 2
stop();
Symbol 609 MovieClip Frame 28
stop();
Symbol 615 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 6
_root.parentShotOne.duplicateMovieClip("pharaohShot", 30);
Symbol 615 MovieClip Frame 12
stop();
Symbol 622 MovieClip Frame 22
_root.parentShotTwo.duplicateMovieClip("pharaohBlast", 30);
Symbol 622 MovieClip Frame 25
_root.pharaohMan.attackTwo = false;
_root.pharaohMan.attackTimer = 90;
_root.pharaohMan.jumpTimer = 30;
Instance of Symbol 485 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.pharaohMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 623 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.pharaohMan._alpha = 100;
}
Symbol 623 MovieClip Frame 13
_root.pharaohMan.attackOne = false;
_root.pharaohMan.attackTwo = false;
_root.pharaohMan.bossHit = false;
_root.pharaohMan.attackTimer = 5;
_root.pharaohMan.gotoAndStop(2);
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip in Symbol 624 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 624 MovieClip Frame 3
stop();
Instance of Symbol 113 MovieClip in Symbol 624 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 624 MovieClip Frame 4
stop();
Symbol 624 MovieClip Frame 5
stop();
Symbol 624 MovieClip Frame 6
stop();
Symbol 624 MovieClip Frame 7
stop();
Instance of Symbol 490 MovieClip in Symbol 624 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 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 2
stop();
Symbol 635 MovieClip Frame 3
stop();
Symbol 635 MovieClip Frame 4
stop();
Symbol 635 MovieClip Frame 5
stop();
Symbol 635 MovieClip Frame 6
stop();
Symbol 635 MovieClip Frame 7
stop();
Symbol 635 MovieClip Frame 8
stop();
Symbol 635 MovieClip Frame 9
stop();
Symbol 635 MovieClip Frame 10
stop();
Symbol 641 MovieClip Frame 28
stop();
Symbol 650 MovieClip Frame 17
_root.parentShot.duplicateMovieClip("sparkBomb", 30);
Symbol 650 MovieClip Frame 21
_root.sparkMan.attackOne = false;
_root.sparkMan.attackTimer = 45;
_root.sparkMan.jumpTimer = 30;
Instance of Symbol 485 MovieClip in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.sparkMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 651 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.sparkMan._alpha = 100;
}
Symbol 651 MovieClip Frame 13
_root.sparkMan.attackOne = false;
_root.sparkMan.bossHit = false;
_root.sparkMan.attackTimer = 5;
_root.sparkMan.gotoAndStop(2);
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip in Symbol 652 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 652 MovieClip Frame 3
stop();
Symbol 652 MovieClip Frame 4
stop();
Instance of Symbol 113 MovieClip in Symbol 652 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 652 MovieClip Frame 5
stop();
Symbol 652 MovieClip Frame 6
stop();
Instance of Symbol 490 MovieClip in Symbol 652 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 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 2
stop();
Symbol 668 MovieClip Frame 3
stop();
Symbol 668 MovieClip Frame 4
stop();
Symbol 668 MovieClip Frame 5
stop();
Symbol 668 MovieClip Frame 6
stop();
Symbol 668 MovieClip Frame 7
stop();
Symbol 668 MovieClip Frame 8
stop();
Symbol 668 MovieClip Frame 9
stop();
Symbol 668 MovieClip Frame 10
stop();
Symbol 668 MovieClip Frame 11
stop();
Symbol 668 MovieClip Frame 12
stop();
Symbol 668 MovieClip Frame 13
stop();
Symbol 668 MovieClip Frame 14
stop();
Symbol 668 MovieClip Frame 15
stop();
Symbol 675 MovieClip Frame 28
stop();
Symbol 681 MovieClip Frame 13
_root.parentShot.duplicateMovieClip("dustBomb", 30);
Symbol 681 MovieClip Frame 17
_root.dustMan.attackOne = false;
_root.dustMan.attackTimer = 90;
_root.dustMan.jumpTimer = 30;
Symbol 686 MovieClip Frame 63
_root.dustMan.attackTwo = false;
_root.dustMan.attackTimer = 90;
_root.dustMan.jumpTimer = 30;
Instance of Symbol 485 MovieClip in Symbol 687 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.dustMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 687 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.dustMan._alpha = 100;
}
Symbol 687 MovieClip Frame 13
_root.dustMan.attackOne = false;
_root.dustMan.attackTwo = false;
_root.dustMan.bossHit = false;
_root.dustMan.attackTimer = 5;
_root.dustMan.gotoAndStop(2);
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip in Symbol 688 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 688 MovieClip Frame 3
stop();
Instance of Symbol 113 MovieClip in Symbol 688 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 688 MovieClip Frame 4
stop();
Instance of Symbol 113 MovieClip in Symbol 688 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 688 MovieClip Frame 5
stop();
Instance of Symbol 113 MovieClip in Symbol 688 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 688 MovieClip Frame 6
stop();
Symbol 688 MovieClip Frame 7
stop();
Instance of Symbol 490 MovieClip in Symbol 688 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 704 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 2
stop();
Symbol 704 MovieClip Frame 3
stop();
Symbol 704 MovieClip Frame 4
stop();
Symbol 704 MovieClip Frame 5
stop();
Symbol 704 MovieClip Frame 6
stop();
Symbol 704 MovieClip Frame 7
stop();
Symbol 704 MovieClip Frame 8
stop();
Symbol 704 MovieClip Frame 9
stop();
Symbol 704 MovieClip Frame 10
stop();
Symbol 704 MovieClip Frame 11
stop();
Symbol 704 MovieClip Frame 12
stop();
Symbol 704 MovieClip Frame 13
stop();
Symbol 704 MovieClip Frame 14
stop();
Symbol 704 MovieClip Frame 15
stop();
Symbol 715 MovieClip Frame 1
stop();
Instance of Symbol 706 MovieClip in Symbol 715 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 715 MovieClip Frame 2
stop();
Instance of Symbol 708 MovieClip in Symbol 715 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 710 MovieClip in Symbol 715 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 712 MovieClip in Symbol 715 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 714 MovieClip in Symbol 715 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 718 MovieClip Frame 28
stop();
Symbol 728 MovieClip Frame 11
_root.mario.flashFreeze = true;
Symbol 728 MovieClip Frame 15
_root.parentShot.duplicateMovieClip("flashShot", 30);
Symbol 728 MovieClip Frame 70
_root.flashMan.attackTwo = false;
_root.flashMan.attackTimer = 50;
_root.mario.flashFreeze = false;
Instance of Symbol 485 MovieClip in Symbol 729 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.flashMan._alpha = Math.random() * 100;
}
Instance of Symbol 485 MovieClip in Symbol 729 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.flashMan._alpha = 100;
}
Symbol 729 MovieClip Frame 13
_root.flashMan.attackOne = false;
_root.flashMan.attackTwo = false;
_root.flashMan.bossHit = false;
_root.flashMan.attackTimer = 5;
_root.flashMan.gotoAndStop(2);
Symbol 730 MovieClip Frame 1
stop();
Symbol 730 MovieClip Frame 2
stop();
Instance of Symbol 113 MovieClip in Symbol 730 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 730 MovieClip Frame 3
stop();
Symbol 730 MovieClip Frame 4
stop();
Instance of Symbol 113 MovieClip in Symbol 730 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 730 MovieClip Frame 5
stop();
Symbol 730 MovieClip Frame 6
stop();
Symbol 730 MovieClip Frame 7
stop();
Instance of Symbol 490 MovieClip in Symbol 730 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 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 2
stop();
Symbol 746 MovieClip Frame 3
stop();
Symbol 746 MovieClip Frame 4
stop();
Symbol 746 MovieClip Frame 5
stop();
Symbol 746 MovieClip Frame 6
stop();
Symbol 746 MovieClip Frame 7
stop();
Symbol 746 MovieClip Frame 8
stop();
Symbol 746 MovieClip Frame 9
stop();
Symbol 746 MovieClip Frame 10
stop();
Symbol 746 MovieClip Frame 11
stop();
Symbol 746 MovieClip Frame 12
stop();
Symbol 746 MovieClip Frame 13
stop();
Symbol 746 MovieClip Frame 14
stop();
Symbol 746 MovieClip Frame 15
stop();
Instance of Symbol 748 MovieClip in Symbol 749 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 748 MovieClip in Symbol 749 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 748 MovieClip in Symbol 749 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 748 MovieClip in Symbol 749 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 748 MovieClip in Symbol 749 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 749 MovieClip Frame 51
stop();