Frame 1
clip = attachMovie("siteBar", "siteBar", _root.getNextHighestDepth());
clip._y = 320;
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
lbar.gotoAndStop(Math.ceil(_local4));
if (_local3 >= _local2) {
clearInterval(loadingCall);
lbar.removeMovieClip();
nextFrame();
}
}
stop();
lbar.stop();
cheat = false;
Stage.showMenu = false;
var loadingCall = setInterval(preloadSite, 50);
Frame 2
stop();
deaths = 0;
gravity = 1.4;
lvl1Frame = 5;
levelPlay = 0;
siteBar._x = 0;
so = SharedObject.getLocal("levelData");
levelsUnlocked = so.data.levelsUnlocked;
if ((!levelsUnlocked) || (cheat)) {
levelsUnlocked = 1;
}
deaths = so.data.deaths;
if (!deaths) {
deaths = 0;
}
if (cheat) {
deaths = 10000;
}
so.data.deaths = deaths;
so.flush();
init = function () {
currentLevel = _root._currentframe;
player.vspeed = 2;
player.hspeed = 0;
player.jumpspeed = 15;
player.walkspeed = 6;
dir = 1;
dead = false;
completed = false;
player._visible = false;
movlim._visible = false;
level._visible = false;
deadby = "false";
attachMovie("empty", "toRemove", _root.getNextHighestDepth());
};
placeFreeHor = function (object, target, xx) {
if (xx > 0) {
x = xx + object._width;
} else {
x = xx;
}
if (target.hitTest(object._x + x, object._y, true) || (target.hitTest(object._x + x, object._y + object._height, true))) {
return(false);
}
return(true);
};
placeFreeVert = function (object, target, yy) {
if (yy > 0) {
y = yy + object._height;
} else {
y = yy;
}
if (target.hitTest(object._x, object._y + y, true) || (target.hitTest(object._x + object._width, object._y + y, true))) {
return(false);
}
return(true);
};
moveDown = function (yy, aa) {
return((Math.ceil((yy - 4) / aa) * aa) + 3);
};
moveUp = function () {
return((Math.floor((yy - 4) / aa) * aa) + 3);
};
step = function () {
if (dead || (completed)) {
if (dead) {
if (mario._currentframe <= 4) {
deadani.play();
if (deadby == "lvl5") {
mario.gotoAndStop(5);
} else {
mario.gotoAndStop(6);
}
deaths = deaths + 0.5;
}
} else {
mario.gotoAndStop(1);
}
} else {
if (!placeFreeVert(player, level, 2)) {
onGround = true;
if (player.hspeed == 0) {
mario.gotoAndStop(1);
} else {
mario.gotoAndStop(2);
}
} else {
onGround = false;
}
if (Key.isDown(37)) {
dir = -1;
if (player.hspeed > (-player.walkspeed)) {
player.hspeed = player.hspeed - (player.walkspeed / 10);
}
if (player.hspeed > 0) {
mario.gotoAndStop(3);
} else {
mario.gotoAndStop(2);
}
} else if (Key.isDown(39)) {
dir = 1;
if (player.hspeed < player.walkspeed) {
player.hspeed = player.hspeed + (player.walkspeed / 10);
}
if (player.hspeed < 0) {
mario.gotoAndStop(3);
} else {
mario.gotoAndStop(2);
}
} else if (player.hspeed != 0) {
if ((dir == 1) && (player.hspeed > 0)) {
player.hspeed = player.hspeed - (player.walkspeed / 10);
} else if ((dir == -1) && (player.hspeed < 0)) {
player.hspeed = player.hspeed + (player.walkspeed / 10);
} else {
dir = dir * -1;
}
if ((Math.round(player.hspeed / (player.walkspeed - 2)) * (player.walkspeed - 2)) == 0) {
player.hspeed = 0;
mario.gotoAndStop(1);
}
}
if (!onGround) {
mario.gotoAndStop(4);
}
if (placeFreeHor(player, level, player.hspeed * 1.3)) {
player._x = player._x + player.hspeed;
} else {
player.hspeed = 0;
}
if (Key.isDown(38)) {
if (onGround && (player.vspeed >= 0)) {
player.vspeed = -player.jumpspeed;
stopSound.attachSound("jump");
stopSound.start();
}
}
if (!onGround) {
player.vspeed = player.vspeed + gravity;
}
if (player._y > 320) {
dead = true;
}
}
if (placeFreeVert(player, level, player.vspeed)) {
player._y = player._y + player.vspeed;
} else {
if (player.vspeed > 0) {
player._y = moveDown(player._y, 16);
} else {
player._y = moveUp(player._y, 16);
}
player.vspeed = 0;
}
xx = (-player._x) + 240;
_root._x = xx;
deadani._x = -xx;
background._x = -xx;
siteBar._x = -xx;
mario._x = (player._x - 8) + (((dir + 1) / 2) * mario._width);
mario._y = player._y - 3;
mario._xscale = -100 * dir;
};
stopSound = new Sound();
killSound = function () {
stopSound.stop();
};
killSound();
Frame 3
stop();
checkpointx = "none";
checkpointy = "none";
siteBar._x = 0;
Frame 4
siteBar._x = 0;
i = 1;
while (i <= 10) {
if (!cheat) {
if (levelsUnlocked >= i) {
_root["l" + i]._visible = true;
_root["l" + i].enabled = true;
_root["ll" + i]._visible = false;
} else {
_root["l" + i]._visible = false;
_root["l" + i].enabled = false;
_root["ll" + i]._visible = true;
}
} else if (i <= 7) {
_root["l" + i]._visible = true;
_root["l" + i].enabled = true;
_root["ll" + i]._visible = false;
} else {
_root["l" + i]._visible = false;
_root["l" + i].enabled = false;
_root["ll" + i]._visible = true;
}
i++;
}
Frame 5
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1198;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame2");
stopSound.start(0, 999);
Frame 6
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1198;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame2");
stopSound.start(0, 999);
Frame 7
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1198;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame2");
stopSound.start(0, 999);
Frame 8
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1198;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame2");
stopSound.start(0, 999);
Frame 9
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1206;
player._y = 272;
}
onEnterFrame = function () {
step();
if (mario._x > 864) {
mario._x = mario._x - 1850;
ghost._x = ghost._x - 1850;
player._x = player._x - 1850;
}
kill._x = ghost._x;
};
stopSound.attachSound("ingame1");
stopSound.start(0, 999);
Frame 10
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1528;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame2");
stopSound.start(0, 999);
Frame 11
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1198;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame2");
stopSound.start(0, 999);
Frame 12
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -1368;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame1");
stopSound.start(0, 999);
Instance of Symbol 343 MovieClip in Frame 12
onClipEvent (enterFrame) {
_x = (_root.mario._x - 64);
}
Frame 13
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = -768;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("ingame2");
stopSound.start(0, 999);
Frame 14
init();
if ((checkpointx != "none") && (checkpointy != "none")) {
player._x = checkpointx;
player._y = checkpointy;
} else {
player._x = 704;
player._y = 272;
}
onEnterFrame = function () {
step();
};
stopSound.attachSound("final");
stopSound.start(0, 999);
Frame 15
_root.dead = false;
_root.mario.gotoAndStop(1);
_root.deadani.gotoAndStop(1);
_root._x = 0;
siteBar._x = 0;
so.data.deaths = deaths;
so.flush();
if (deaths == 1) {
deathsField.text = "1 death";
} else {
deathsField.text = deaths + " deaths";
}
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndStop(currentLevel);
}
};
Frame 16
deaths++;
_root.dead = false;
_root.mario.gotoAndStop(1);
_root.deadani.gotoAndStop(1);
_root._x = 0;
siteBar._x = 0;
so.data.deaths = deaths;
so.flush();
Frame 17
siteBar._x = 0;
Frame 18
siteBar._x = 0;
Symbol 13 MovieClip [deadlvl5] Frame 1
vspeed = -_root.player.jumpspeed;
if (_y > 320) {
_y = 320;
}
onEnterFrame = function () {
if (_y > 360) {
_root.gotoAndStop("deathFrame");
this.removeMovieClip();
}
_y = (_y + vspeed);
vspeed = vspeed + _root.gravity;
};
Symbol 14 MovieClip [dead] Frame 1
vspeed = -_root.player.jumpspeed;
if (_y > 320) {
_y = 320;
}
onEnterFrame = function () {
if (_y > 360) {
_root.gotoAndStop("level5finish");
this.removeMovieClip();
}
_y = (_y + vspeed);
vspeed = vspeed + _root.gravity;
};
Symbol 24 Button
on (release) {
getURL ("http://www.gameitnow.com/?utm_source=game&utm_medium=unfair_mario&utm_campaign=link-unfair_mario", "_blank");
}
Symbol 28 Button
on (release) {
gotoAndStop (2);
_root.stopSound.setVolume(0);
}
Symbol 31 Button
on (release) {
gotoAndStop (1);
_root.stopSound.setVolume(100);
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 38 MovieClip [spikes] Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
play();
}
};
Symbol 38 MovieClip [spikes] Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 38 MovieClip [spikes] Frame 3
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "spikeTrap";
_parent.hspeed = _parent.hspeed / 1.5;
}
};
Symbol 38 MovieClip [spikes] Frame 6
stop();
Symbol 57 Button
on (release) {
_root.getURL("http://www.gameitnow.com/?utm_source=game&utm_medium=unfair_mario&utm_campaign=link-unfair_mario", "_blank");
}
Symbol 62 MovieClip Frame 75
_root.nextFrame();
Symbol 67 Button
on (release) {
_root.nextFrame();
}
Symbol 71 Button
on (release) {
getURL ("http://www.gameitnow.com/?utm_source=game&utm_medium=unfair_mario&utm_campaign=link-unfair_mario", "_blank");
}
Symbol 77 Button
on (release) {
if (levelUnlocked >= 1) {
killSound();
levelPlay = 1;
gotoAndStop(lvl1Frame);
}
}
Symbol 83 Button
on (release) {
if (levelUnlocked >= 2) {
killSound();
levelPlay = 2;
gotoAndStop(lvl1Frame + 1);
}
}
Symbol 87 Button
on (release) {
if (levelUnlocked >= 3) {
killSound();
levelPlay = 3;
gotoAndStop(lvl1Frame + 2);
}
}
Symbol 91 Button
on (release) {
if (levelUnlocked >= 4) {
killSound();
levelPlay = 4;
gotoAndStop(lvl1Frame + 3);
}
}
Symbol 95 Button
on (release) {
if (levelUnlocked >= 5) {
killSound();
levelPlay = 5;
gotoAndStop(lvl1Frame + 4);
}
}
Symbol 99 Button
on (release) {
if (levelUnlocked >= 6) {
killSound();
levelPlay = 6;
gotoAndStop(lvl1Frame + 5);
}
}
Symbol 103 Button
on (release) {
if (levelUnlocked >= 7) {
killSound();
levelPlay = 7;
gotoAndStop(lvl1Frame + 6);
}
}
Symbol 107 Button
on (release) {
if (levelUnlocked >= 8) {
killSound();
levelPlay = 8;
gotoAndStop(lvl1Frame + 7);
}
}
Symbol 111 Button
on (release) {
if (levelUnlocked >= 9) {
killSound();
levelPlay = 9;
gotoAndStop(lvl1Frame + 8);
}
}
Symbol 115 Button
on (release) {
if (levelUnlocked >= 10) {
killSound();
levelPlay = 10;
gotoAndStop(lvl1Frame + 9);
}
}
Symbol 117 Button
on (release) {
_root.gotoAndStop(19);
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 124 MovieClip Frame 1
hitted = false;
yadd = 5;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
hitted = true;
_root.player.vspeed = 0;
}
if (hitted == true) {
_y = (_y + yadd);
yadd = yadd + _root.gravity;
}
if (_y > 500) {
this.swapDepths(1000000);
this.removeMovieClip();
}
};
Symbol 130 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 130 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 139 MovieClip Frame 1
hitted = false;
yadd = 5;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
if ((_root.player._y - _y) < 0) {
hitted = true;
_root.player.vspeed = 0;
} else {
_root.player.hspeed = 0;
}
}
if (hitted == true) {
_y = (_y + yadd);
yadd = yadd + _root.gravity;
}
if (_y > 500) {
this.swapDepths(1000000);
this.removeMovieClip();
}
};
Symbol 144 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 144 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 145 MovieClip Frame 1
hitted = false;
yadd = 5;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
if ((_root.player._y - _y) < 0) {
hitted = true;
_root.player.vspeed = 0;
} else {
_root.player.hspeed = 0;
}
}
if (hitted == true) {
_y = (_y + yadd);
yadd = yadd + _root.gravity;
}
if (_y > 500) {
this.swapDepths(1000000);
this.removeMovieClip();
}
};
Symbol 147 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 147 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 149 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 149 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 154 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 154 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 159 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 159 MovieClip Frame 2
_root.checkpointx = _x;
_root.checkpointy = _y;
onEnterFrame = function () {
};
Symbol 164 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "spikeTrap";
}
};
Symbol 165 MovieClip Frame 1
stop();
vspeed = 0;
onEnterFrame = function () {
if (((_root.player._y > _y) && (_root.player._x < (_x + _width))) && ((_root.player._x + _root.player._width) > _x)) {
vspeed = 9;
nextFrame();
}
};
Symbol 165 MovieClip Frame 2
onEnterFrame = function () {
vspeed = vspeed + (_root.gravity * 1.5);
if (_root.placeFreeVert(this, _root.level, vspeed)) {
_y = (_y + vspeed);
} else {
vspeed = 0;
_y = _root.moveDown(_y, 16);
onEnterFrame = function () {
};
}
};
Symbol 168 MovieClip Frame 1
hitted = false;
yadd = 5;
onEnterFrame = function () {
if (this.hitTest(_root.player) && ((_root.player._y - _y) < -8)) {
hitted = true;
_root.player.vspeed = 0;
}
if (hitted == true) {
_y = (_y + yadd);
yadd = yadd + _root.gravity;
}
if (_y > 500) {
this.swapDepths(1000000);
this.removeMovieClip();
}
};
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 5
clip = _root.attachMovie("dead", "dead", _root.getNextHighestDepth());
clip._x = _x;
clip._y = _y;
_root.siteBar.swapDepths(_root.getNextHighestDepth());
_root.killSound();
if (_root.deadby == "spikeTrap") {
_root.stopSound.attachSound("spike");
_root.stopSound.start();
_root.deadby = "spikes";
}
_root.stopSound.attachSound("death");
_root.stopSound.start();
Symbol 180 MovieClip Frame 6
clip = _root.attachMovie("deadlvl5", "deadlvl5", _root.getNextHighestDepth());
clip._x = _x;
clip._y = _y;
_root.siteBar.swapDepths(_root.getNextHighestDepth());
_root.killSound();
if (_root.deadby == "spikeTrap") {
_root.stopSound.attachSound("spike");
_root.stopSound.start();
_root.deadby = "spikes";
}
_root.stopSound.attachSound("death");
_root.stopSound.start();
Symbol 183 MovieClip Frame 1
dir = 1;
hspeed = 4;
onEnterFrame = function () {
if (_root.movlim.hitTest((_x + 48) + (16 * dir), _y, true)) {
dir = dir * -1;
}
_x = (_x + (hspeed * dir));
};
Symbol 185 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if (Math.abs((_x - _root.player._x) * (_x - _root.player._x)) < 1024) {
if (this.hitTest(_root.player) && (!_visible)) {
_visible = true;
_root.stopSound.attachSound("click");
_root.stopSound.start();
}
}
};
Symbol 186 MovieClip Frame 1
hitted = false;
yadd = 5;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
if ((_root.player._y - _y) < 0) {
hitted = true;
_root.player.vspeed = 0;
} else {
_root.player.hspeed = 0;
}
}
if (hitted == true) {
_y = (_y + yadd);
yadd = yadd + _root.gravity;
}
if (_y > 500) {
this.swapDepths(1000000);
this.removeMovieClip();
}
};
Symbol 197 Button
on (release) {
if (_root.levelPlay == _root.levelsUnlocked) {
_root.levelsUnlocked++;
_root.so.data.levelsUnlocked = _root.levelsUnlocked;
_root.so.flush();
}
_root.checkpointx = "none";
_root.checkpointy = "none";
_root.nextFrame();
}
Symbol 198 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
play();
_root.completed = true;
_root.killSound();
}
};
Symbol 198 MovieClip Frame 2
onEnterFrame = function () {
};
Symbol 198 MovieClip Frame 3
_root.stopSound.attachSound("finishlevel");
_root.stopSound.start();
Symbol 198 MovieClip Frame 141
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
if ((_root.levelPlay == _root.levelsUnlocked) && (!_root.cheat)) {
_root.levelsUnlocked++;
_root.so.data.levelsUnlocked = _root.levelsUnlocked;
_root.so.flush();
}
_root.checkpointx = "none";
_root.checkpointy = "none";
if (_root.cheat && (_root.levelPlay == 7)) {
_root.gotoAndStop(1);
} else {
_root.levelPlay++;
_root.nextFrame();
}
}
};
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
_root.player.vspeed = 0;
Symbol 206 MovieClip Frame 11
Symbol 206 MovieClip Frame 13
stop();
Instance of Symbol 209 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 224 MovieClip Frame 1
stop();
vspeed = 0;
onEnterFrame = function () {
if (((_root.player._y < _y) && (_root.player._x < (_x + _width))) && ((_root.player._x + _root.player._width) > _x)) {
vspeed = -20;
nextFrame();
}
};
Symbol 224 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (_root.placeFreeVert(this, _root.level, vspeed)) {
_y = (_y + vspeed);
} else {
vspeed = 0;
_y = _root.moveUp(_y, 16);
onEnterFrame = function () {
};
}
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "spikes";
}
};
Symbol 230 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
play();
}
};
Symbol 230 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 230 MovieClip Frame 3
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "spikeTrap";
_parent.hspeed = _parent.hspeed / 1.5;
}
};
Symbol 230 MovieClip Frame 6
stop();
Symbol 232 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 232 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Symbol 236 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 236 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Instance of Symbol 238 MovieClip in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 245 MovieClip Frame 1
stop();
vspeed = 0;
onEnterFrame = function () {
if (((_root.player._y > _y) && (_root.player._x < (_x + _width))) && ((_root.player._x + _root.player._width) > _x)) {
vspeed = 9;
nextFrame();
}
};
Symbol 245 MovieClip Frame 2
onEnterFrame = function () {
vspeed = vspeed + (_root.gravity * 1.5);
if (_root.placeFreeVert(this, _root.level, vspeed)) {
_y = (_y + vspeed);
} else {
vspeed = 0;
_y = _root.moveDown(_y, 16);
onEnterFrame = function () {
};
}
};
Symbol 258 MovieClip Frame 1
stop();
dir = 1;
hspeed = 1;
onEnterFrame = function () {
if (_root.movlim.hitTest((_x + 8) + (8 * dir), _y, true)) {
dir = dir * -1;
_xscale = (_xscale * -1);
}
_x = (_x + (hspeed * dir));
if (Math.abs((_x - _root.player._x) * (_y - _root.player._y)) < 1024) {
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "goomba";
nextFrame();
}
}
};
Symbol 260 MovieClip Frame 1
onEnterFrame = function () {
if (Math.abs((_x - _root.player._x) * (_x - _root.player._x)) < 1024) {
if (this.hitTest(_root.player)) {
if (_alpha != 50) {
_root.stopSound.attachSound("click");
_root.stopSound.start();
}
_alpha = 50;
} else {
_alpha = 100;
}
} else {
_alpha = 100;
}
};
Symbol 262 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if (Math.abs((_x - _root.player._x) * (_x - _root.player._x)) < 1024) {
if (this.hitTest(_root.player) && (!_visible)) {
_root.stopSound.attachSound("click");
_root.stopSound.start();
_visible = true;
}
}
};
Symbol 264 MovieClip Frame 1
stop();
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
nextFrame();
}
};
Symbol 264 MovieClip Frame 2
_visible = true;
onEnterFrame = function () {
};
Instance of Symbol 267 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 274 MovieClip Frame 1
onEnterFrame = function () {
if (_visible != false) {
if (Math.abs((_x - _root.player._x) * (_x - _root.player._x)) < 1024) {
if (this.hitTest(_root.player) && (_visible)) {
_root.stopSound.attachSound("click");
_root.stopSound.start();
_visible = false;
}
}
}
};
Symbol 287 MovieClip Frame 1
dir = 1;
hspeed = 1;
onEnterFrame = function () {
if (_root.movlim.hitTest((_x + 8) + (8 * dir), _y, true)) {
dir = dir * -1;
_xscale = (_xscale * -1);
}
_x = (_x + (hspeed * dir));
if (Math.abs((_x - _root.player._x) * (_y - _root.player._y)) < 1024) {
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "spikes";
}
}
};
Instance of Symbol 290 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 298 MovieClip Frame 1
hspeed = 1;
onEnterFrame = function () {
_x = (_x + hspeed);
if ((_x < (_root.mario._x - 200)) && (_x > (_root.mario._x - 1600))) {
_x = (_root.mario._x - 200);
}
if (Math.abs(_x - _root.player._x) < 96) {
_y = (_root.player._y - 32);
} else if ((_y - (_root.player._y - 32)) > 3) {
_y = (_y - 3);
} else if ((_y - (_root.player._y - 32)) < -3) {
_y = (_y + 3);
} else {
_y = (_root.player._y - 32);
}
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "lvl5";
_parent.hspeed = _parent.hspeed / 1.5;
}
};
Symbol 308 MovieClip Frame 1
hitted = false;
yadd = 5;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
hitted = true;
_root.player.vspeed = 0;
}
if (hitted == true) {
_y = (_y + yadd);
yadd = yadd + _root.gravity;
}
if (_y > 500) {
this.swapDepths(1000000);
this.removeMovieClip();
}
};
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 327 MovieClip Frame 1
stop();
vspeed = 0;
onEnterFrame = function () {
if (((_root.player._y > _y) && (_root.player._x < (_x + _width))) && ((_root.player._x + _root.player._width) > _x)) {
vspeed = 9;
nextFrame();
}
};
Symbol 327 MovieClip Frame 2
stop();
onEnterFrame = function () {
vspeed = vspeed + (_root.gravity * 1.5);
if (_root.placeFreeVert(this, _root.level, vspeed)) {
_y = (_y + vspeed);
} else {
vspeed = 0;
_y = (_root.moveDown(_y, 16) + 16);
onEnterFrame = function () {
};
}
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "spikes";
}
};
Instance of Symbol 332 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 344 MovieClip Frame 1
hspeed = 3;
onEnterFrame = function () {
_x = (_x + hspeed);
if (Math.abs(_x - _root.player._x) < 96) {
_y = (_root.player._y - 32);
} else if ((_y - (_root.player._y - 32)) > 3) {
_y = (_y - 3);
} else if ((_y - (_root.player._y - 32)) < -3) {
_y = (_y + 3);
} else {
_y = (_root.player._y - 32);
}
if (this.hitTest(_root.player)) {
_root.dead = true;
_root.deadby = "ghost";
_parent.hspeed = _parent.hspeed / 1.5;
}
};
Instance of Symbol 346 MovieClip in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 355 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if (Math.abs((_x - _root.player._x) * (_x - _root.player._x)) < 1024) {
if (this.hitTest(_root.player) && (!_visible)) {
_root.stopSound.attachSound("click");
_root.stopSound.start();
_visible = true;
}
}
};
Symbol 375 Button
on (release) {
gotoAndStop (3);
}
Symbol 379 Button
on (release) {
gotoAndStop(currentLevel);
}
Symbol 386 Button
on (release) {
if ((_root.levelPlay == _root.levelsUnlocked) && (!cheat)) {
_root.levelsUnlocked++;
_root.so.data.levelsUnlocked = _root.levelsUnlocked;
_root.so.flush();
}
_root.checkpointx = "none";
_root.checkpointy = "none";
_root.levelPlay = 6;
_root.gotoAndStop(_root.lvl1Frame + 5);
}
Symbol 391 Button
on (release) {
nextFrame();
}
Symbol 397 Button
on (release) {
killSound();
gotoAndPlay (1);
}
Symbol 403 Button
on (release) {
getURL ("http://www.gameitnow.com/?utm_source=game&utm_medium=unfair_mario&utm_campaign=link-unfair_mario", "_blank");
}
Symbol 409 Button
on (release) {
cheat = true;
gotoAndStop (2);
}
Symbol 414 Button
on (release) {
gotoAndStop (2);
}