Frame 1
_root._quality = "low";
Stage.showMenu = false;
Frame 2
stop();
Frame 3
_global.level = 1;
_global.lives = 3;
_global.coins = 0;
stop();
Frame 4
stop();
Frame 5
play();
Frame 6
_root.level = ("Level " + [_global.level]) + " of 40";
_root.mario.lives = _global.lives;
_root.coins = _global.coins;
stop();
Instance of Symbol 80 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.mario.lives == -1) {
_root.gotoAndStop(7);
}
if (_global.level == 41) {
_root.gotoAndStop(8);
}
}
Instance of Symbol 88 MovieClip "mario" in Frame 6
onClipEvent (load) {
this.gotoAndStop(_global.level);
}
Frame 7
_root.coins = _global.coins;
stop();
Frame 8
stop();
Frame 9
function heroMovement() {
if (Key.isDown(37)) {
_root.hero._xscale = -100;
_root.hero.gotoAndStop(2);
dir = "left";
h._x = h._x - xSpeed;
if (jumping == true) {
_root.hero.gotoAndStop(3);
if ((((ps.hitTest((h._x + x) + hb.xmin, (h._y + y) + hb.ymin, true) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) - 10, true))) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) - 20, true))) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) - 30, true))) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) + (hb.ymax - buffer), true))) {
h._x = h._x + xSpeed;
}
}
}
if (Key.isDown(39)) {
_root.hero.gotoAndStop(2);
_root.hero._xscale = 100;
dir = "right";
h._x = h._x + xSpeed;
if (jumping == true) {
_root.hero.gotoAndStop(3);
if ((((ps.hitTest((h._x + x) + hb.xmax, (h._y + y) + hb.ymin, true) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) - 10, true))) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) - 20, true))) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) - 30, true))) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) + (hb.ymax - buffer), true))) {
h._x = h._x - xSpeed;
}
}
}
}
function sideTopHitTest() {
i = 0;
while (i < 1) {
if ((((ps.hitTest((h._x + x) + hb.xmin, (h._y + y) + hb.ymin, true) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) - 10, true))) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) - 20, true))) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) - 30, true))) || (ps.hitTest((h._x + x) + hb.xmin, (h._y + y) + (hb.ymax - buffer), true))) {
h._x = h._x + xSpeed;
}
if ((((ps.hitTest((h._x + x) + hb.xmax, (h._y + y) + hb.ymin, true) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) - 10, true))) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) - 20, true))) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) - 30, true))) || (ps.hitTest((h._x + x) + hb.xmax, (h._y + y) + (hb.ymax - buffer), true))) {
h._x = h._x - xSpeed;
}
if (ps.hitTest((h._x + x) + (hb.xmin + 1), (h._y + y) + (hb.ymin - 2), true) || (ps.hitTest((h._x + x) + (hb.xmax - 1), (h._y + y) + (hb.ymin - 2), true))) {
velY = 4;
xSpeed = -0.2;
}
if ((h._x - (h._width / 2)) <= 0) {
h._x = h._width / 2;
} else if ((h._x + (h._width / 2)) >= 450) {
h._x = 450 - (h._width / 2);
}
i++;
}
}
function jump() {
i = 0;
while (i < 1) {
if ((ps.hitTest((h._x + x) + hb.xmin, h._y + 1.5, true) || (ps.hitTest(h._x, h._y + 1.5, true))) || (ps.hitTest((h._x + x) + hb.xmax, h._y + 1.5, true))) {
velY = 0;
jumping = false;
} else {
jumping = true;
}
if (Key.isDown(38) && (jumping == false)) {
velY = jumpingAmount;
jumping = true;
}
if (jumping == true) {
_root.hero.gotoAndStop(3);
h._y = h._y + (velY++);
}
if (velY > maxVelY) {
velY = maxVelY;
}
i++;
}
}
this.levelPoints = _global.level;
_root.coins = 0;
stageWidth = 100;
xSpeed = 23.7;
dir = "still";
maxVelY = 11;
buffer = 15;
jumpingAmount = -15;
velY = jumpingAmount;
jumping = false;
h = _root.hero;
hb = h.getBounds();
ySpeed = 1;
scrollSpeed = 3;
psvMin = 80;
psvMax = 160;
psv1Min = 134;
psv1Max = 200;
p = _root.platform;
ps = _root.platform.solid;
psv = _root.platform.solid.vPlatform;
psv1 = _root.platform.solid.vPlatform1;
bScrollSpeed = xSpeed / 3.75;
b = _root.backdrop;
this.onEnterFrame = function () {
h.gotoAndStop("still");
while (ps.hitTest(h._x + hb.xmin, h._y - 2, true) || (ps.hitTest(h._x + hb.xmax, h._y - 2, true))) {
h._y--;
}
if (ps.hitTest((h._x + x) + hb.xmin, h._y + buffer, true) && (ps.hitTest((h._x + x) + hb.xmax, h._y + buffer, true))) {
h._y++;
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
h.gotoAndStop(1);
}
if (Key.isDown(40) && (jumping == false)) {
jumping = false;
xSpeed = 0;
} else if (Key.isDown(16)) {
xSpeed = 6;
} else {
xSpeed = 6;
}
heroMovement();
jump();
sideTopHitTest();
i = 0;
while (i < 2) {
if (h.hitTest(p["gold" + i])) {
score = score + 10;
p["gold" + i].gotoAndStop(2);
}
i++;
}
if ((h._x >= 300) && (p._x >= (-(p._width - stageWidth)))) {
h._x = 299;
p._x = p._x - xSpeed;
b._x = b._x - bScrollSpeed;
}
if ((h._x <= 150) && (p._x <= 0)) {
h._x = 151;
p._x = p._x + xSpeed;
b._x = b._x + bScrollSpeed;
}
psv._y = psv._y + ySpeed;
psv1._y = psv1._y + ySpeed;
if ((psv._y <= psvMin) || (psv1._y <= psv1Min)) {
ySpeed = ySpeed * -1;
}
if ((psv._y >= psvMax) || (psv1._y >= psv1Max)) {
ySpeed = ySpeed * -1;
}
};
stop();
Instance of Symbol 207 MovieClip "mariodie" in Frame 9
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _root.hero._x;
this._y = _root.hero._y;
}
Instance of Symbol 213 MovieClip "timer" in Frame 9
onClipEvent (load) {
time = 500;
}
onClipEvent (enterFrame) {
if (time == 0) {
stopAllSounds();
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
this._xscale = 0;
} else if (time > 0) {
this._xscale = time / 5;
time = time - 1;
}
}
Instance of Symbol 217 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.player._x = _root.player._x + 3;
}
}
Instance of Symbol 217 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.player._x = _root.player._x - 3;
}
}
Instance of Symbol 218 MovieClip "brickshort" in Frame 10
onClipEvent (enterFrame) {
_root.brickshort._y = 400;
}
onClipEvent (load) {
this._x = random(500);
this._y = 0;
}
onClipEvent (enterFrame) {
this._y = this._y + 5;
}
onClipEvent (enterFrame) {
if (this._y >= 300) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
this.visible = false;
_root.player._visible = false;
_root.script.gamestart = false;
_root.mariodie._visible = true;
_root.mariodie.gotoAndPlay(2);
}
}
Instance of Symbol 220 MovieClip "script" in Frame 10
onClipEvent (load) {
gamestart = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (gamestart == true) {
this.gotoAndStop(2);
_root.intro._visible = false;
timer = timer + 1;
}
}
onClipEvent (enterFrame) {
if (timer == 20) {
i++;
duplicateMovieClip (_root.brickshort, "brickshort" + i, i);
timer = 0;
}
}
Instance of Symbol 222 MovieClip "player" in Frame 10
onClipEvent (enterFrame) {
if (_root.script.gamestart == true) {
if (Key.isDown(39)) {
this._x = this._x + 3;
this._xscale = 100;
this.gotoAndStop(2);
} else if (Key.isDown(37)) {
this._x = this._x - 3;
this._xscale = -100;
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 223 MovieClip "mariodie" in Frame 10
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 224 MovieClip "timer" in Frame 10
onClipEvent (load) {
time = 500;
}
onClipEvent (enterFrame) {
if (time == 0) {
_root.player._visible = false;
_root.mariowin._x = _root.player._x;
_root.mariowin._y = _root.player._y - 25;
_root.player._x = 1000;
_root.mariowin.gotoAndPlay(2);
_root.mariowin._visible = true;
_root.script.gamestart = false;
time = -1;
} else if (time > 0) {
if (_root.script.gamestart == true) {
this._xscale = time / 5;
time = time - 1;
}
}
}
Instance of Symbol 225 MovieClip "mariowin" in Frame 10
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 233 MovieClip "brickshort" in Frame 11
onClipEvent (enterFrame) {
_root.brickshort._y = 400;
}
onClipEvent (load) {
this._x = random(500);
this._y = 0;
}
onClipEvent (enterFrame) {
this._y = this._y + 5;
}
onClipEvent (enterFrame) {
if (this._y >= 300) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.coins = _root.coins + 1;
this.gotoAndStop(2);
this.removeMovieClip();
}
}
Instance of Symbol 234 MovieClip "script" in Frame 11
onClipEvent (load) {
gamestart = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (gamestart == true) {
this.gotoAndStop(2);
_root.intro._visible = false;
timer = timer + 1;
}
}
onClipEvent (enterFrame) {
if (timer == 15) {
i++;
duplicateMovieClip (_root.brickshort, "brickshort" + i, i);
timer = 0;
}
}
Instance of Symbol 224 MovieClip "timer" in Frame 11
onClipEvent (load) {
time = 500;
}
onClipEvent (enterFrame) {
if (time == 0) {
_global.coins = _global.coins + _root.coins;
_root.player._visible = false;
_root.mariowin._x = _root.player._x;
_root.mariowin._y = _root.player._y - 25;
_root.player._x = 1000;
_root.mariowin.gotoAndPlay(2);
_root.mariowin._visible = true;
_root.script.gamestart = false;
time = -1;
} else if (time > 0) {
if (_root.script.gamestart == true) {
this._xscale = time / 5;
time = time - 1;
}
}
}
Instance of Symbol 235 MovieClip "mariowin" in Frame 11
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 218 MovieClip "brickshort" in Frame 12
onClipEvent (enterFrame) {
_root.brickshort._y = 400;
}
onClipEvent (load) {
this._x = random(500);
this._y = 0;
}
onClipEvent (enterFrame) {
this._y = this._y + 5;
}
onClipEvent (enterFrame) {
if (this._y >= 300) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
this.visible = false;
_root.player._visible = false;
_root.script.gamestart = false;
_root.mariodie._visible = true;
_root.mariodie.gotoAndPlay(2);
}
}
Instance of Symbol 244 MovieClip "script" in Frame 12
onClipEvent (load) {
gamestart = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (gamestart == true) {
this.gotoAndStop(2);
_root.intro._visible = false;
timer = timer + 1;
}
}
onClipEvent (enterFrame) {
if (timer == 20) {
i++;
duplicateMovieClip (_root.coin, "coin" + i, i);
} else if (timer == 30) {
i++;
duplicateMovieClip (_root.brickshort, "brickshort" + i, i);
timer = 0;
}
}
Instance of Symbol 225 MovieClip "mariowin" in Frame 12
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 233 MovieClip "coin" in Frame 12
onClipEvent (enterFrame) {
_root.coin._y = 400;
}
onClipEvent (load) {
this._x = random(500);
this._y = 0;
}
onClipEvent (enterFrame) {
this._y = this._y + 5;
}
onClipEvent (enterFrame) {
if (this._y >= 300) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.coins = _root.coins + 1;
this.gotoAndStop(2);
this.removeMovieClip();
}
}
Instance of Symbol 258 MovieClip "wario" in Frame 13
onClipEvent (load) {
idee = 0;
willekeurig = random(40) + 10;
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
}
onClipEvent (enterFrame) {
if (timer == willekeurig) {
timer = 0;
willekeurig = random(40) + 10;
idee = random(3);
}
}
onClipEvent (enterFrame) {
if (idee == 0) {
if (_root.script.gamestart == true) {
this._x = this._x + 4;
this._xscale = -100;
this.gotoAndStop(2);
}
} else if (idee == 1) {
if (_root.script.gamestart == true) {
this._x = this._x - 4;
this._xscale = 100;
this.gotoAndStop(2);
}
} else if (idee == 2) {
if (_root.script.gamestart == true) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
}
onClipEvent (enterFrame) {
if (this._x >= 500) {
idee = 1;
} else if (this._x <= 0) {
idee = 0;
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.player._visible = false;
_root.script.gamestart = false;
_root.mariodie._visible = true;
_root.mariodie.gotoAndPlay(2);
_root.wariowin._x = _root.wario._x;
_root.wariowin._y = _root.wario._y;
_root.wariowin._visible = true;
_root.wariowin.gotoAndPlay(2);
_root.wario._visible = false;
_root.wario._x = -100;
}
}
Instance of Symbol 260 MovieClip "brickshort" in Frame 13
onClipEvent (enterFrame) {
_root.brickshort._y = 400;
}
onClipEvent (load) {
this._x = random(500);
this._y = 0;
}
onClipEvent (enterFrame) {
this._y = this._y + 4;
this._rotation = this._rotation + 4;
}
onClipEvent (enterFrame) {
if (this._y >= 300) {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
this.visible = false;
_root.player._visible = false;
_root.script.gamestart = false;
_root.mariodie._visible = true;
_root.mariodie.gotoAndPlay(2);
_root.wariowin._x = _root.wario._x;
_root.wariowin._y = _root.wario._y;
_root.wariowin._visible = true;
_root.wariowin.gotoAndPlay(2);
_root.wario._visible = false;
_root.wario._x = -100;
this._x = -100;
}
}
Instance of Symbol 262 MovieClip "script" in Frame 13
onClipEvent (load) {
gamestart = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (gamestart == true) {
this.gotoAndStop(2);
_root.intro._visible = false;
timer = timer + 1;
}
}
onClipEvent (enterFrame) {
if (timer == 70) {
i++;
duplicateMovieClip (_root.brickshort, "brickshort" + i, i);
timer = 0;
}
}
Instance of Symbol 222 MovieClip "player" in Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.script.gamestart == true) {
this._xscale = 100;
this.gotoAndStop(2);
}
} else if (Key.isDown(37)) {
if (_root.script.gamestart == true) {
this._xscale = -100;
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
if (jumping == true) {
this.gotoAndStop(3);
}
}
onClipEvent (load) {
grav_y = 0;
jumping = false;
JA = 17;
JB = 0;
JC = 6;
JD = 12;
}
onClipEvent (enterFrame) {
if (Key.isDown(38) && (!jumping)) {
if (_root.script.gamestart == true) {
grav_y = JA;
jumping = true;
timer = 0;
}
}
if (((Key.isDown(38) && (!jumping2)) && (timer > JC)) && (timer < JD)) {
if (_root.script.gamestart == true) {
grav_y = grav_y + JB;
timer = JD + 1;
jumping2 = true;
}
}
if (jumping == true) {
grav_y = grav_y - 1;
timer = timer + 1;
if (grav_y <= -10) {
grav_y = -10;
}
this._y = this._y - grav_y;
}
}
onClipEvent (load) {
moveSpeed = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.script.gamestart == true) {
this._x = this._x + 3;
}
} else if (Key.isDown(37)) {
if (_root.script.gamestart == true) {
this._x = this._x - 3;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground)) {
grav_y = 0;
timer = JD + 1;
jumping = false;
jumping2 = false;
} else {
_root.player.jumping = true;
}
}
Instance of Symbol 263 MovieClip "mariodie" in Frame 13
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 225 MovieClip "mariowin" in Frame 13
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "timer" in Frame 13
onClipEvent (load) {
time = 1000;
}
onClipEvent (enterFrame) {
if (time == 0) {
_root.player._visible = false;
_root.mariowin._x = _root.player._x;
_root.mariowin._y = _root.player._y - 25;
_root.player._x = 1000;
_root.mariowin.gotoAndPlay(2);
_root.mariowin._visible = true;
_root.script.gamestart = false;
time = -1;
} else if (time > 0) {
if (_root.script.gamestart == true) {
this._xscale = time / 10;
time = time - 1;
}
}
}
Instance of Symbol 269 MovieClip "wariowin" in Frame 13
onClipEvent (load) {
this._visible = false;
}
Symbol 6 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 6 MovieClip Frame 2
gotoAndPlay (1);
Symbol 6 MovieClip Frame 3
_root.play();
Instance of Symbol 20 MovieClip in Symbol 21 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe >= 20) {
_parent._x = _parent._x - 2;
}
if (_parent._x <= -130) {
_root.nextFrame();
}
}
Symbol 25 MovieClip Frame 64
stop();
Symbol 46 Button
on (press, keyPress "<Space>") {
nextFrame();
}
Symbol 49 Button
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 51 MovieClip Frame 15
stop();
Symbol 65 Button
on (press, keyPress "<Space>") {
nextFrame();
}
Symbol 66 MovieClip Frame 15
stop();
Symbol 78 Button
on (press, keyPress "<Space>") {
if (_global.level == 10) {
stopAllSounds();
gotoAndStop (10);
} else if (_global.level == 20) {
stopAllSounds();
gotoAndStop (11);
} else if (_global.level == 30) {
stopAllSounds();
gotoAndStop (12);
} else if (_global.level == 40) {
stopAllSounds();
gotoAndStop (13);
} else {
stopAllSounds();
gotoAndStop (9);
}
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 40
stop();
Symbol 89 Button
on (press, keyPress "<Space>") {
gotoAndStop (3);
}
Symbol 114 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 114 MovieClip Frame 4
stop();
Symbol 114 MovieClip Frame 5
stop();
Instance of Symbol 109 MovieClip in Symbol 114 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 128 MovieClip Frame 4
stop();
Symbol 128 MovieClip Frame 5
stop();
Instance of Symbol 120 MovieClip in Symbol 128 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 128 MovieClip Frame 6
stop();
Symbol 128 MovieClip Frame 7
stop();
Symbol 128 MovieClip Frame 8
stop();
Instance of Symbol 120 MovieClip in Symbol 128 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 128 MovieClip Frame 9
stop();
Symbol 128 MovieClip Frame 10
stop();
Instance of Symbol 120 MovieClip in Symbol 128 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Instance of Symbol 120 MovieClip in Symbol 131 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 131 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 15
_root.coins = _root.coins + 10;
Symbol 142 MovieClip Frame 26
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 1
stop();
Instance of Symbol 114 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(6));
}
Instance of Symbol 128 MovieClip in Symbol 186 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(11));
}
Symbol 186 MovieClip Frame 3
stop();
Instance of Symbol 131 MovieClip in Symbol 186 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(random(4));
}
Symbol 186 MovieClip Frame 4
stop();
Symbol 186 MovieClip Frame 5
stop();
Symbol 186 MovieClip Frame 6
stop();
Instance of Symbol 144 MovieClip in Symbol 186 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.nextFrame();
}
}
Symbol 186 MovieClip Frame 7
stop();
Symbol 186 MovieClip Frame 8
stop();
Symbol 186 MovieClip Frame 9
stop();
Instance of Symbol 144 MovieClip in Symbol 186 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.nextFrame();
}
}
Symbol 186 MovieClip Frame 10
stop();
Symbol 186 MovieClip Frame 11
stop();
Instance of Symbol 144 MovieClip in Symbol 186 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.nextFrame();
}
}
Symbol 186 MovieClip Frame 12
stop();
Symbol 186 MovieClip Frame 13
stop();
Symbol 186 MovieClip Frame 14
stop();
Symbol 186 MovieClip Frame 15
stop();
Instance of Symbol 144 MovieClip in Symbol 186 MovieClip Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.nextFrame();
}
}
Symbol 186 MovieClip Frame 16
stop();
Symbol 186 MovieClip Frame 17
stop();
Symbol 186 MovieClip Frame 18
stop();
Instance of Symbol 109 MovieClip in Symbol 186 MovieClip Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 186 MovieClip Frame 19
stop();
Symbol 186 MovieClip Frame 20
stop();
Symbol 186 MovieClip Frame 21
stop();
Symbol 186 MovieClip Frame 22
stop();
Symbol 186 MovieClip Frame 23
stop();
Symbol 186 MovieClip Frame 24
stop();
Symbol 186 MovieClip Frame 25
stop();
Symbol 186 MovieClip Frame 26
stop();
Instance of Symbol 120 MovieClip in Symbol 186 MovieClip Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -10000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 186 MovieClip Frame 27
stop();
Instance of Symbol 109 MovieClip in Symbol 186 MovieClip Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
stopAllSounds();
_parent.spikes._y = this._y;
this._y = -1000;
_root.mariodie.gotoAndPlay(2);
_root.mariodie._visible = true;
_root.heroMovement = false;
_root.jump = false;
_root.hero._visible = false;
time = -10;
_root.timer.time = time;
}
}
Symbol 186 MovieClip Frame 28
stop();
Symbol 186 MovieClip Frame 29
stop();
Symbol 186 MovieClip Frame 30
stop();
Symbol 186 MovieClip Frame 31
stop();
Symbol 186 MovieClip Frame 32
stop();
Symbol 186 MovieClip Frame 33
stop();
Instance of Symbol 184 MovieClip in Symbol 186 MovieClip Frame 33
onClipEvent (enterFrame) {
this._rotation = this._rotation + 3;
}
Symbol 186 MovieClip Frame 34
stop();
Symbol 187 MovieClip Frame 1
levelPoints = _global.level * 3;
i = 0;
while (i < 3) {
trace(this["plat" + i]);
j = random(levelPoints);
if (j > 0) {
this["plat" + i].gotoAndStop(j + 1);
levelPoints = levelPoints - j;
} else {
this["plat" + i].gotoAndStop(random(5));
}
i++;
}
levelPoints = _global.level * 3;
i = 3;
while (i < 7) {
trace(this["plat" + i]);
j = random(levelPoints);
if (j > 0) {
this["plat" + i].gotoAndStop(j + 1);
levelPoints = levelPoints - j;
} else {
this["plat" + i].gotoAndStop(random(5));
}
i++;
}
Instance of Symbol 106 MovieClip in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
play();
Symbol 192 MovieClip Frame 250
_global.level = _global.level + 1;
_root.gotoAndPlay(5);
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Instance of Symbol 192 MovieClip "mariowin" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 198 MovieClip "peach" in Symbol 199 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
stopAllSounds();
_global.coins = _global.coins + _root.coins;
_root.timer.time = time;
_root.hero._visible = false;
_root.hero._x = 0;
_root.platform.mariowin._visible = true;
_root.platform.mariowin.gotoAndPlay(2);
_root.heroMovement = false;
_root.jump = false;
}
}
Symbol 201 MovieClip Frame 24
_root.hero.gotoAndStop(1);
Symbol 203 MovieClip Frame 2
_root.hero.gotoAndStop(1);
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 3
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 190
_global.lives = _global.lives - 1;
_root.gotoAndPlay(5);
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 3
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stopAllSounds();
Symbol 223 MovieClip Frame 191
_global.lives = _global.lives - 1;
_global.level = _global.level + 1;
_root.gotoAndPlay(5);
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stopAllSounds();
Symbol 225 MovieClip Frame 3
play();
Symbol 225 MovieClip Frame 251
_global.level = _global.level + 1;
_global.lives = _global.lives + 1;
_root.gotoAndPlay(5);
Symbol 231 Button
on (press, keyPress "<Space>") {
_root.script.gamestart = true;
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
stopAllSounds();
Symbol 235 MovieClip Frame 3
play();
Symbol 235 MovieClip Frame 251
_global.level = _global.level + 1;
_root.gotoAndPlay(5);
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
stop();
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 2
onClipEvent (load) {
owntimer = 0;
}
onClipEvent (enterFrame) {
owntimer = owntimer + 1;
}
onClipEvent (enterFrame) {
if (owntimer == 30) {
_parent.gotoAndStop(1);
} else if (owntimer <= 29) {
_parent.timer = 0;
}
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
stopAllSounds();
Symbol 263 MovieClip Frame 191
_global.lives = _global.lives - 1;
_root.gotoAndPlay(5);
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 25
gotoAndPlay (2);