Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("65ed46fd", this, 10301, true);
mochi.MochiServices.connect("2d5ceb8f219537b4");
function clearEnemiesStop() {
while (_root.enemiesStop[0] != undefined) {
_root.enemiesStop.pop();
}
}
var deaths = 0;
var currentLevel = 1;
var gameMute = false;
var moveReady = true;
var gamePause = false;
var gameQuality = "high";
var tutorialMode = false;
var enemiesStop = new Array();
var tutorialLevelFinishSFX = false;
var playerColor = 1;
var levelTexting = false;
var winSoundDone = false;
var coinsT = new Array();
coinsT.push(6);
coinsT.push(4);
coinsT.push(0);
coinsT.push(4);
var coins = new Array();
coins.push(3);
coins.push(2);
coins.push(1);
coins.push(0);
coins.push(4);
coins.push(8);
coins.push(0);
coins.push(4);
coins.push(4);
coins.push(4);
coins.push(4);
coins.push(0);
coins.push(0);
coins.push(8);
coins.push(0);
coins.push(0);
coins.push(4);
coins.push(0);
coins.push(6);
coins.push(0);
coins.push(3);
coins.push(4);
coins.push(0);
coins.push(0);
coins.push(0);
coins.push(0);
coins.push(12);
coins.push(0);
coins.push(0);
coins.push(4);
coins.push(4);
coins.push(22);
coins.push(48);
coins.push(0);
coins.push(4);
coins.push(0);
coins.push(0);
coins.push(4);
coins.push(0);
coins.push(27);
coins.push(11);
coins.push(0);
coins.push(6);
coins.push(0);
coins.push(72);
coins.push(14);
coins.push(0);
coins.push(4);
coins.push(6);
coins.push(8);
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
this.stop();
}
onClipEvent (enterFrame) {
if (_root.getBytesTotal() > 0) {
var percentage = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (percentage >= 100) {
this.gotoAndStop(this._totalframes);
} else if (percentage > 0) {
this.gotoAndStop(percentage);
}
}
}
Frame 11
stop();
Frame 15
MochiAd.showPreGameAd({id:"2d5ceb8f219537b4", res:"700x500"});
Frame 19
var musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start(0, 10000);
Frame 20
stop();
tutorialMode = false;
if (currentLevel != 1) {
currentLevel = 1;
}
if (deaths != 0) {
deaths = 0;
}
if (levelTexting) {
levelTexting = false;
}
if (winSoundDone) {
winSoundDone = false;
}
Instance of Symbol 85 MovieClip "previewClips" in Frame 20
onClipEvent (load) {
var nextClip = Math.floor((Math.random() * _totalframes) + 1);
var nextClipTest = null;
this.gotoAndStop(nextClip);
}
Instance of Symbol 88 MovieClip in Frame 20
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.gotoAndStop("game text-1");
}
Instance of Symbol 91 MovieClip in Frame 20
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.gotoAndStop("tutorial text-1");
}
Instance of Symbol 94 MovieClip in Frame 20
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
mochi.MochiScores.showLeaderboard({boardID:"4d3f9bf36c3ee8d1", onClose:function () {
}});
}
Instance of Symbol 97 MovieClip in Frame 20
onClipEvent (load) {
if (_root.gameMute) {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press, keyPress "u") {
if (_currentframe == 1) {
this.gotoAndStop(2);
_root.gameMute = true;
stopAllSounds();
} else if (_currentframe == 2) {
this.gotoAndStop(1);
_root.gameMute = false;
if (musicSound == undefined) {
var musicSound = new Sound();
musicSound.attachSound("music");
}
musicSound.start(0, 10000);
}
}
on (keyPress "U") {
if (_currentframe == 1) {
this.gotoAndStop(2);
_root.gameMute = true;
stopAllSounds();
} else if (_currentframe == 2) {
this.gotoAndStop(1);
_root.gameMute = false;
if (musicSound == undefined) {
var musicSound = new Sound();
musicSound.attachSound("music");
}
musicSound.start(0, 10000);
}
}
Instance of Symbol 100 MovieClip in Frame 20
onClipEvent (load) {
if (_root.gameQuality == "low") {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press, keyPress "q") {
if (_currentframe == 1) {
this.gotoAndStop(2);
_quality = "low";
_root.gameQuality = "low";
} else if (_currentframe == 2) {
this.gotoAndStop(1);
_quality = "high";
_root.gameQuality = "high";
}
}
on (keyPress "Q") {
if (_currentframe == 1) {
this.gotoAndStop(2);
_quality = "low";
_root.gameQuality = "low";
} else if (_currentframe == 2) {
this.gotoAndStop(1);
_quality = "high";
_root.gameQuality = "high";
}
}
Frame 26
bars.deathsText = "DEATHS: " + deaths;
bars.levelText = ("LEVEL: " + currentLevel) + "/4";
tutorialMode = true;
Instance of Symbol 117 MovieClip in Frame 26
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("menu");
}
}
Instance of Symbol 122 MovieClip in Frame 26
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial text-2");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial text-2");
}
}
Instance of Symbol 117 MovieClip in Frame 38
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial text-1");
}
}
Instance of Symbol 122 MovieClip in Frame 38
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-1");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-1");
}
}
Frame 50
clearEnemiesStop();
tutorialLevelFinishSFX = true;
Instance of Symbol 77 MovieClip in Frame 50
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 50
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 50
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 50
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 50
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 50
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 50
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coinsT[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/4";
_root.gotoAndStop("tutorial text-3");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.walls.door1 != undefined) {
_root.walls.door1.gotoAndStop(1);
}
if (_root.walls.door2 != undefined) {
_root.walls.door2.gotoAndStop(1);
}
if (_root.walls.door3 != undefined) {
_root.walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
}
Instance of Symbol 117 MovieClip in Frame 58
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.currentLevel--;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/4";
_root.gotoAndStop("tutorial text-2");
}
}
Instance of Symbol 122 MovieClip in Frame 58
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-2");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-2");
}
}
Instance of Symbol 225 MovieClip in Frame 58
onClipEvent (load) {
if (_root.tutorialLevelFinishSFX) {
if (!_root.gameMute) {
if (winSound == undefined) {
var winSound = new Sound();
winSound.attachSound("win");
}
winSound.start();
}
_root.tutorialLevelFinishSFX = false;
}
}
Frame 70
clearEnemiesStop();
enemiesStop[0] = enemies.move1;
enemiesStop[1] = enemies.move2;
enemiesStop[2] = enemies.move3;
enemiesStop[3] = enemies.move4;
enemiesStop[4] = enemies.move5;
enemiesStop[5] = enemies.move6;
tutorialLevelFinishSFX = true;
Instance of Symbol 77 MovieClip in Frame 70
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 70
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 70
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 70
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 70
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check1) && (currentCoins == _root.coinsT[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/4";
_root.gotoAndStop("tutorial text-4");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.walls.door1 != undefined) {
_root.walls.door1.gotoAndStop(1);
}
if (_root.walls.door2 != undefined) {
_root.walls.door2.gotoAndStop(1);
}
if (_root.walls.door3 != undefined) {
_root.walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Instance of Symbol 117 MovieClip in Frame 78
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.currentLevel--;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/4";
_root.gotoAndStop("tutorial text-3");
}
}
Instance of Symbol 122 MovieClip in Frame 78
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-3");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-3");
}
}
Instance of Symbol 231 MovieClip in Frame 78
onClipEvent (load) {
if (_root.tutorialLevelFinishSFX) {
if (!_root.gameMute) {
if (winSound == undefined) {
var winSound = new Sound();
winSound.attachSound("win");
}
winSound.start();
}
_root.tutorialLevelFinishSFX = false;
}
}
Frame 90
clearEnemiesStop();
enemiesStop[0] = enemies;
tutorialLevelFinishSFX = true;
Instance of Symbol 238 MovieClip "key1" in Frame 90
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 70 MovieClip "player" in Frame 90
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coinsT[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/4";
_root.gotoAndStop("tutorial text-5");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.walls.door1 != undefined) {
_root.walls.door1.gotoAndStop(1);
}
if (_root.walls.door2 != undefined) {
_root.walls.door2.gotoAndStop(1);
}
if (_root.walls.door3 != undefined) {
_root.walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Instance of Symbol 117 MovieClip in Frame 98
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.currentLevel--;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/4";
_root.gotoAndStop("tutorial text-4");
}
}
Instance of Symbol 122 MovieClip in Frame 98
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-4");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial-4");
}
}
Instance of Symbol 240 MovieClip in Frame 98
onClipEvent (load) {
if (_root.tutorialLevelFinishSFX) {
if (!_root.gameMute) {
if (winSound == undefined) {
var winSound = new Sound();
winSound.attachSound("win");
}
winSound.start();
}
_root.tutorialLevelFinishSFX = false;
}
}
Frame 110
clearEnemiesStop();
enemiesStop[0] = enemies;
Instance of Symbol 77 MovieClip in Frame 110
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 110
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 110
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 110
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 110
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coinsT[_root.currentLevel - 1])) {
_root.gotoAndStop("tutorial text-6");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.walls.door1 != undefined) {
_root.walls.door1.gotoAndStop(1);
}
if (_root.walls.door2 != undefined) {
_root.walls.door2.gotoAndStop(1);
}
if (_root.walls.door3 != undefined) {
_root.walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Instance of Symbol 117 MovieClip in Frame 118
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial text-5");
}
}
Instance of Symbol 246 MovieClip in Frame 118
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("menu");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("menu");
}
}
Instance of Symbol 248 MovieClip in Frame 118
onClipEvent (load) {
if (!_root.gameMute) {
if (winSound == undefined) {
var winSound = new Sound();
winSound.attachSound("win");
}
winSound.start();
}
_root.tutorialLevelFinishSFX = false;
}
Frame 130
if (bars.deathsText != "DEATHS: 0") {
bars.deathsText = "DEATHS: 0";
}
if (bars.levelText != "LEVEL: 1/50") {
bars.levelText = "LEVEL: 1/50";
}
if (tutorialMode) {
tutorialMode = false;
}
Instance of Symbol 117 MovieClip in Frame 130
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("menu");
}
}
Instance of Symbol 122 MovieClip in Frame 130
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("game text-2");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("game text-2");
}
}
Instance of Symbol 252 MovieClip in Frame 130
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("tutorial text-1");
}
}
Instance of Symbol 117 MovieClip in Frame 141
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("game text-1");
}
}
Instance of Symbol 257 MovieClip in Frame 141
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.levelTexting = true;
_root.gotoAndPlay("level text");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.levelTexting = true;
_root.gotoAndPlay("level text");
}
}
Frame 152
if (!gameMute) {
if (tipSound == undefined) {
var tipSound = new Sound();
tipSound.attachSound("tip");
}
tipSound.start();
}
Instance of Symbol 263 MovieClip in Frame 152
onClipEvent (load) {
if (_root.currentLevel == 50) {
this.gotoAndStop(4);
} else if (_root.currentLevel >= 40) {
this.gotoAndStop(3);
} else if (_root.currentLevel >= 30) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 286 MovieClip in Frame 152
onClipEvent (load) {
this.gotoAndStop(_root.currentLevel / 5);
}
Frame 156
function ads() {
levelText.gotoAndStop(currentLevel);
if ((!gameMute) && (currentLevel > 1)) {
if (winSound == undefined) {
var winSound = new Sound();
winSound.attachSound("win");
}
winSound.start();
_root.play();
}
}
if (currentLevel > 1) {
stop();
levelText.gotoAndStop(currentLevel);
MochiAd.showInterLevelAd({id:"2d5ceb8f219537b4", res:"700x500", ad_finished:function () {
ads();
}});
} else {
levelText.gotoAndStop(currentLevel);
}
Frame 186
_root.levelTexting = false;
gotoAndStop("level-" + currentLevel);
Frame 187
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 187
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 187
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 187
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 187
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_noCheat_walls.door1 != undefined) {
_root.noCheat_noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 194
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 194
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 201
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 201
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 201
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check1) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 208
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
enemiesStop[3] = noCheat_enemies.tween3;
enemiesStop[4] = noCheat_enemies.tween4;
Instance of Symbol 238 MovieClip "key1" in Frame 208
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 70 MovieClip "player" in Frame 208
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 215
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
enemiesStop[6] = noCheat_enemies.tween7;
enemiesStop[7] = noCheat_enemies.tween8;
enemiesStop[8] = noCheat_enemies.tween9;
enemiesStop[9] = noCheat_enemies.tween10;
enemiesStop[10] = noCheat_enemies.tween11;
enemiesStop[11] = noCheat_enemies.tween12;
enemiesStop[12] = noCheat_enemies.tween13;
enemiesStop[13] = noCheat_enemies.tween14;
enemiesStop[14] = noCheat_enemies.tween15;
enemiesStop[15] = noCheat_enemies.tween16;
enemiesStop[16] = noCheat_enemies.tween17;
enemiesStop[17] = noCheat_enemies.tween18;
Instance of Symbol 77 MovieClip in Frame 215
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 215
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 215
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 215
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 215
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check1) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 222
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 222
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Frame 229
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 229
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 236
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 236
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 236
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 236
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 236
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Frame 243
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
Instance of Symbol 70 MovieClip "player" in Frame 243
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 250
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
Instance of Symbol 77 MovieClip in Frame 250
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 250
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 250
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 250
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if ((_root.player._alpha < 1) && (_alpha == 0)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 250
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check1) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 257
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
enemiesStop[6] = noCheat_enemies.tween7;
enemiesStop[7] = noCheat_enemies.tween8;
Instance of Symbol 77 MovieClip in Frame 257
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 257
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 257
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 257
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 257
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 264
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Frame 271
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Frame 278
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 278
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 278
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 285
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 238 MovieClip "key1" in Frame 285
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 70 MovieClip "player" in Frame 285
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 292
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Frame 299
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
enemiesStop[3] = noCheat_enemies.tween3;
enemiesStop[4] = noCheat_enemies.tween4;
Instance of Symbol 77 MovieClip in Frame 299
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 299
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 299
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 299
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 299
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check1) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 306
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
Instance of Symbol 238 MovieClip "key1" in Frame 306
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 70 MovieClip "player" in Frame 306
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 313
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
enemiesStop[6] = noCheat_enemies.tween7;
enemiesStop[7] = noCheat_enemies.tween8;
enemiesStop[8] = noCheat_enemies.tween9;
enemiesStop[9] = noCheat_enemies.tween10;
enemiesStop[10] = noCheat_enemies.tween11;
enemiesStop[11] = noCheat_enemies.tween12;
Instance of Symbol 238 MovieClip "key3" in Frame 313
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door3.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 238 MovieClip "key2" in Frame 313
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door2.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 77 MovieClip in Frame 313
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 313
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 313
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 313
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 313
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 313
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 313
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCheck == _root.check1)) {
currentCheck = _root.check2;
} else if (hitTest(_root.check3) && (currentCheck == _root.check2)) {
currentCheck = _root.check3;
} else if (hitTest(_root.check4) && (currentCheck == _root.check3)) {
currentCheck = _root.check4;
} else if (hitTest(_root.check5) && (currentCheck == _root.check4)) {
currentCheck = _root.check5;
}
if (hitTest(_root.check6) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
_root.moveReady = true;
if (currentCheck == _root.check1) {
_root.key1._alpha = 100;
_root.noCheat_walls.door1.gotoAndStop(1);
}
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 320
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 320
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 327
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 238 MovieClip "key1" in Frame 327
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 77 MovieClip in Frame 327
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 327
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 327
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 327
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check1) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 334
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 334
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 334
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 341
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
enemiesStop[3] = noCheat_enemies.tween3;
Frame 348
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
Instance of Symbol 238 MovieClip "key1" in Frame 348
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 238 MovieClip "key2" in Frame 348
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door2.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 238 MovieClip "key3" in Frame 348
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door3.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 70 MovieClip "player" in Frame 348
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCheck == _root.check1)) {
currentCheck = _root.check2;
} else if (hitTest(_root.check3) && (currentCheck == _root.check2)) {
currentCheck = _root.check3;
} else if (hitTest(_root.check4) && (currentCheck == _root.check3)) {
currentCheck = _root.check4;
} else if (hitTest(_root.check5) && (currentCheck == _root.check4)) {
currentCheck = _root.check5;
}
if (hitTest(_root.check6) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 355
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 355
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 362
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 362
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCheck == _root.check1)) {
currentCheck = _root.check2;
} else if (hitTest(_root.check3) && ((currentCheck == _root.check1) || (currentCheck == _root.check2))) {
currentCheck = _root.check3;
}
if (hitTest(_root.check4) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 369
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
enemiesStop[3] = noCheat_enemies.tween3;
enemiesStop[4] = noCheat_enemies.tween4;
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 369
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 369
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 376
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
enemiesStop[6] = noCheat_enemies.tween7;
enemiesStop[7] = noCheat_enemies.tween8;
enemiesStop[8] = noCheat_enemies.tween9;
enemiesStop[9] = noCheat_enemies.tween10;
Frame 383
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 383
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCheck == _root.check1)) {
currentCheck = _root.check2;
}
if (hitTest(_root.check3) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 390
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 390
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 390
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 390
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 390
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 390
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 397
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 397
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check1) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 404
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 238 MovieClip "key1" in Frame 404
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 238 MovieClip "key2" in Frame 404
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door2.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 404
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 404
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 411
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 411
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Frame 418
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 238 MovieClip "key1" in Frame 418
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 70 MovieClip "player" in Frame 418
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 425
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 425
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 425
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 425
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 425
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 425
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 432
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Frame 439
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 238 MovieClip "key1" in Frame 439
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door1.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 238 MovieClip "key2" in Frame 439
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door2.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Instance of Symbol 238 MovieClip "key3" in Frame 439
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_alpha == 100)) {
_root.noCheat_walls.door3.play();
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (keySound == undefined) {
var keySound = new Sound();
keySound.attachSound("key");
}
keySound.start();
}
}
}
Frame 446
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
enemiesStop[3] = noCheat_enemies.tween3;
Instance of Symbol 77 MovieClip in Frame 446
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 446
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 446
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 446
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Frame 453
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 70 MovieClip "player" in Frame 453
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 460
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
enemiesStop[6] = noCheat_enemies.tween7;
enemiesStop[7] = noCheat_enemies.tween8;
enemiesStop[8] = noCheat_enemies.tween9;
enemiesStop[9] = noCheat_enemies.tween10;
enemiesStop[10] = noCheat_enemies.tween11;
enemiesStop[11] = noCheat_enemies.tween12;
enemiesStop[12] = noCheat_enemies.tween13;
enemiesStop[13] = noCheat_enemies.tween14;
enemiesStop[14] = noCheat_enemies.tween15;
enemiesStop[15] = noCheat_enemies.tween16;
enemiesStop[16] = noCheat_enemies.tween17;
enemiesStop[17] = noCheat_enemies.tween18;
enemiesStop[18] = noCheat_enemies.tween19;
enemiesStop[19] = noCheat_enemies.tween20;
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 460
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 460
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 467
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Frame 474
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
Frame 481
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 481
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 481
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 481
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 481
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 481
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 481
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Frame 488
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
enemiesStop[3] = noCheat_enemies.tween3;
enemiesStop[4] = noCheat_enemies.tween4;
enemiesStop[5] = noCheat_enemies.tween5;
enemiesStop[6] = noCheat_enemies.tween6;
Instance of Symbol 70 MovieClip "player" in Frame 488
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 495
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 495
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 495
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndPlay("level text");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 502
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Frame 509
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
enemiesStop[6] = noCheat_enemies.tween7;
enemiesStop[7] = noCheat_enemies.tween8;
enemiesStop[8] = noCheat_enemies.tween9;
enemiesStop[9] = noCheat_enemies.tween10;
enemiesStop[10] = noCheat_enemies.tween11;
enemiesStop[11] = noCheat_enemies.tween12;
enemiesStop[12] = noCheat_enemies.tween13;
Frame 516
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies.tween1;
enemiesStop[1] = noCheat_enemies.tween2;
enemiesStop[2] = noCheat_enemies.tween3;
enemiesStop[3] = noCheat_enemies.tween4;
enemiesStop[4] = noCheat_enemies.tween5;
enemiesStop[5] = noCheat_enemies.tween6;
enemiesStop[6] = noCheat_enemies.tween7;
enemiesStop[7] = noCheat_enemies.tween8;
enemiesStop[8] = noCheat_enemies.tween9;
enemiesStop[9] = noCheat_enemies.tween10;
enemiesStop[10] = noCheat_enemies.tween11;
enemiesStop[11] = noCheat_enemies.tween12;
enemiesStop[12] = noCheat_enemies.tween13;
enemiesStop[13] = noCheat_enemies.tween14;
enemiesStop[14] = noCheat_enemies.tween15;
enemiesStop[15] = noCheat_enemies.tween16;
enemiesStop[16] = noCheat_enemies.tween17;
enemiesStop[17] = noCheat_enemies.tween18;
enemiesStop[18] = noCheat_enemies.tween19;
enemiesStop[19] = noCheat_enemies.tween20;
Instance of Symbol 77 MovieClip in Frame 516
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 516
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 516
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 516
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Frame 523
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
enemiesStop[1] = noCheat_enemies.tween1;
enemiesStop[2] = noCheat_enemies.tween2;
enemiesStop[3] = noCheat_enemies.tween3;
enemiesStop[4] = noCheat_enemies.tween4;
enemiesStop[5] = noCheat_enemies.tween5;
enemiesStop[6] = noCheat_enemies.tween6;
Instance of Symbol 77 MovieClip in Frame 523
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 523
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 523
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.currentLevel++;
_root.bars.levelText = ("LEVEL: " + _root.currentLevel) + "/50";
_root.gotoAndStop("tip");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 530
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 77 MovieClip in Frame 530
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 77 MovieClip in Frame 530
onClipEvent (load) {
var flipPause = false;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player) && (_alpha == 100)) && (_root.moveReady)) {
_root.player.currentCoins++;
_alpha = 0;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (coinSound == undefined) {
var coinSound = new Sound();
coinSound.attachSound("coin");
}
coinSound.start();
}
}
if (((_root.player._alpha < 1) && (_alpha == 0)) && (_root.player.currentCheck != _root.check2)) {
_root.player.currentCoins--;
_alpha = 100;
}
if (_root.gamePause && (!flipPause)) {
this.coinFlip.stop();
flipPause = true;
} else if ((!_root.gamePause) && (flipPause)) {
this.coinFlip.play();
flipPause = false;
}
}
Instance of Symbol 70 MovieClip "player" in Frame 530
onClipEvent (load) {
_x = Math.floor(_x);
_y = Math.floor(_y);
this.gotoAndStop(_root.playerColor);
var speed = 3;
var currentCheck = _root.check1;
var currentCoins = 0;
_root.currentCheck = _root.check1;
_x = _root.currentCheck._x;
_y = _root.currentCheck._y;
}
onClipEvent (enterFrame) {
if (hitTest(_root.check2) && (currentCoins == _root.coins[_root.currentLevel - 1])) {
_root.gotoAndStop("finish game-1");
}
if ((!_root.moveReady) && (!_root.gamePause)) {
if (_alpha > 0) {
_alpha = (_alpha - 4);
} else {
_root.deaths++;
_root.bars.deathsText = "DEATHS: " + _root.deaths;
_alpha = 100;
_x = currentCheck._x;
_y = currentCheck._y;
if (_root.key1 != undefined) {
_root.key1._alpha = 100;
}
if (_root.key2 != undefined) {
_root.key2._alpha = 100;
}
if (_root.key3 != undefined) {
_root.key3._alpha = 100;
}
if (_root.key4 != undefined) {
_root.key4._alpha = 100;
}
if (_root.key5 != undefined) {
_root.key5._alpha = 100;
}
if (_root.noCheat_walls.door1 != undefined) {
_root.noCheat_walls.door1.gotoAndStop(1);
}
if (_root.noCheat_walls.door2 != undefined) {
_root.noCheat_walls.door2.gotoAndStop(1);
}
if (_root.noCheat_walls.door3 != undefined) {
_root.noCheat_walls.door3.gotoAndStop(1);
}
_root.moveReady = true;
}
}
if ((Key.isDown(39) || (Key.isDown(68))) && (_root.moveReady)) {
_x = (_x + speed);
}
if ((Key.isDown(37) || (Key.isDown(65))) && (_root.moveReady)) {
_x = (_x - speed);
}
if ((Key.isDown(38) || (Key.isDown(87))) && (_root.moveReady)) {
_y = (_y - speed);
}
if ((Key.isDown(40) || (Key.isDown(83))) && (_root.moveReady)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - speed, _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + speed, _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + speed, true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - speed, true)) {
_y = (_y - speed);
}
if (_root.noCheat_walls.hitTest((_x + (_width / 2)) - (speed * 1.5), _y, true)) {
_x = (_x - speed);
}
if (_root.noCheat_walls.hitTest((_x - (_width / 2)) + (speed * 1.5), _y, true)) {
_x = (_x + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y - (_height / 2)) + (speed * 1.5), true)) {
_y = (_y + speed);
}
if (_root.noCheat_walls.hitTest(_x, (_y + (_height / 2)) - (speed * 1.5), true)) {
_y = (_y - speed);
}
if (_root.noCheat_enemies.hitTest(_x, _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y, true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x, _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y + (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x + (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
} else if (_root.noCheat_enemies.hitTest(_x - (_width / 2), _y - (_height / 2), true) && (_alpha == 100)) {
_root.moveReady = false;
if ((!_root.gameMute) && (!_root.gamePause)) {
if (dieSound == undefined) {
var dieSound = new Sound();
dieSound.attachSound("die");
}
dieSound.start();
}
}
}
Frame 537
gotoAndStop (1);
Frame 538
if ((!gameMute) && (!winSoundDone)) {
if (winSound == undefined) {
var winSound = new Sound();
winSound.attachSound("win");
}
winSound.start();
winSoundDone = true;
}
bars.gotoAndStop("unpause_finish");
Instance of Symbol 263 MovieClip in Frame 538
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 122 MovieClip in Frame 538
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("finish game-2");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("finish game-2");
}
}
Instance of Symbol 117 MovieClip in Frame 549
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("finish game-1");
}
}
Instance of Symbol 122 MovieClip in Frame 549
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("finish game-3");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.gotoAndStop("finish game-3");
}
}
Instance of Symbol 117 MovieClip in Frame 560
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.gotoAndStop("finish game-2");
}
}
Instance of Symbol 563 MovieClip in Frame 560
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
mochi.MochiScores.showLeaderboard({boardID:"4d3f9bf36c3ee8d1", score:1000 - _root.deaths, name:nameTextbox.text, onClose:function () {
_root.gotoAndStop("menu");
}});
}
}
Symbol 28 MovieClip Frame 101
stop();
_root.play();
Symbol 569 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 570 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:10, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 571 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 53 MovieClip Frame 1
Symbol 53 MovieClip Frame 198
_root.gotoAndStop("splash2");
Symbol 55 MovieClip Frame 120
_root.nextFrame();
Symbol 70 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 124
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
while (_root.previewClips.nextClipTest == _root.previewClips.nextClip) {
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
}
_root.previewClips.nextClip = _root.previewClips.nextClipTest;
_root.previewClips.nextClipTest = null;
_parent.gotoAndStop(_root.previewClips.nextClip);
Instance of Symbol 76 MovieClip "coinFlip" in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor((Math.random() * this._totalframes) + 1));
}
Symbol 78 MovieClip Frame 94
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
while (_root.previewClips.nextClipTest == _root.previewClips.nextClip) {
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
}
_root.previewClips.nextClip = _root.previewClips.nextClipTest;
_root.previewClips.nextClipTest = null;
_parent.gotoAndStop(_root.previewClips.nextClip);
Symbol 80 MovieClip Frame 97
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
while (_root.previewClips.nextClipTest == _root.previewClips.nextClip) {
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
}
_root.previewClips.nextClip = _root.previewClips.nextClipTest;
_root.previewClips.nextClipTest = null;
_parent.gotoAndStop(_root.previewClips.nextClip);
Symbol 82 MovieClip Frame 63
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
while (_root.previewClips.nextClipTest == _root.previewClips.nextClip) {
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
}
_root.previewClips.nextClip = _root.previewClips.nextClipTest;
_root.previewClips.nextClipTest = null;
_parent.gotoAndStop(_root.previewClips.nextClip);
Symbol 84 MovieClip Frame 83
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
while (_root.previewClips.nextClipTest == _root.previewClips.nextClip) {
_root.previewClips.nextClipTest = Math.floor((Math.random() * _root.previewClips._totalframes) + 1);
}
_root.previewClips.nextClip = _root.previewClips.nextClipTest;
_root.previewClips.nextClipTest = null;
_parent.gotoAndStop(_root.previewClips.nextClip);
Symbol 104 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 108 Button
on (release) {
getURL ("http://www.yougame.com/putonyourwebsite/", "_top");
}
Symbol 112 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"4d3f9bf36c3ee8d1", onClose:function () {
}});
}
Symbol 114 MovieClip Frame 11
stop();
Instance of Symbol 184 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.playerColor != 6) {
_parent["color" + _root.playerColor].gotoAndStop(1);
_parent["color" + (_root.playerColor + 1)].gotoAndStop(2);
_root.playerColor++;
} else {
_parent.color6.gotoAndStop(1);
_parent.color1.gotoAndStop(2);
_root.playerColor = 1;
}
}
Instance of Symbol 187 MovieClip "color5" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
if (_root.playerColor == 5) {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press) {
_parent["color" + _root.playerColor].gotoAndStop(1);
_root.playerColor = 5;
this.gotoAndStop(2);
}
Instance of Symbol 190 MovieClip "color1" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
if (_root.playerColor == 1) {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press) {
_parent["color" + _root.playerColor].gotoAndStop(1);
_root.playerColor = 1;
this.gotoAndStop(2);
}
Instance of Symbol 193 MovieClip "color2" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
if (_root.playerColor == 2) {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press) {
_parent["color" + _root.playerColor].gotoAndStop(1);
_root.playerColor = 2;
this.gotoAndStop(2);
}
Instance of Symbol 196 MovieClip "color3" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
if (_root.playerColor == 3) {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press) {
_parent["color" + _root.playerColor].gotoAndStop(1);
_root.playerColor = 3;
this.gotoAndStop(2);
}
Instance of Symbol 199 MovieClip "color4" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
if (_root.playerColor == 4) {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press) {
_parent["color" + _root.playerColor].gotoAndStop(1);
_root.playerColor = 4;
this.gotoAndStop(2);
}
Instance of Symbol 202 MovieClip "color6" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
if (_root.playerColor == 6) {
this.gotoAndStop(2);
} else {
this.stop();
}
}
on (press) {
_parent["color" + _root.playerColor].gotoAndStop(1);
_root.playerColor = 6;
this.gotoAndStop(2);
}
Symbol 216 MovieClip Frame 1
stop();
if (back == undefined) {
var back = null;
var forward = null;
}
Instance of Symbol 137 MovieClip "menuBtn" in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (_currentframe == 1) {
this.gotoAndStop(2);
} else if (_currentframe == 3) {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (_currentframe == 2) {
this.gotoAndStop(1);
} else if (_currentframe == 4) {
this.gotoAndStop(3);
}
}
on (press) {
if (_root.levelTexting) {
_root.stop();
}
if ((!_root.gameMute) && (_parent.pauseBtn._currentframe < 3)) {
if (pauseSound == undefined) {
var pauseSound = new Sound();
pauseSound.attachSound("pause");
}
pauseSound.start();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (!_root.tutorialMode) {
if (_parent.pauseBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.pauseBtn.gotoAndStop(2);
} else {
_parent.pauseBtn.gotoAndStop(1);
}
_parent.gotoAndStop("menu");
} else {
if (_parent.pauseBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.pauseBtn.gotoAndStop(2);
} else {
_parent.pauseBtn.gotoAndStop(1);
}
_parent.gotoAndStop("tutorial menu");
}
_root.gamePause = true;
if (_root.player != undefined) {
_root.moveReady = false;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].stop();
a++;
}
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (_root.levelTexting) {
_root.play();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_parent.gotoAndStop("unpause");
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
if ((_root.player != undefined) && (_root.player._currentframe != _root.playerColor)) {
_root.player.gotoAndStop(_root.playerColor);
}
}
}
on (keyPress "m") {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (_root.levelTexting) {
_root.stop();
}
if ((!_root.gameMute) && (_parent.pauseBtn._currentframe < 3)) {
if (pauseSound == undefined) {
var pauseSound = new Sound();
pauseSound.attachSound("pause");
}
pauseSound.start();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (!_root.tutorialMode) {
if (_parent.pauseBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.pauseBtn.gotoAndStop(2);
} else {
_parent.pauseBtn.gotoAndStop(1);
}
_parent.gotoAndStop("menu");
} else {
if (_parent.pauseBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.pauseBtn.gotoAndStop(2);
} else {
_parent.pauseBtn.gotoAndStop(1);
}
_parent.gotoAndStop("tutorial menu");
}
_root.gamePause = true;
if (_root.player != undefined) {
_root.moveReady = false;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].stop();
a++;
}
}
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (_root.levelTexting) {
_root.play();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_parent.gotoAndStop("unpause");
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
if ((_root.player != undefined) && (_root.player._currentframe != _root.playerColor)) {
_root.player.gotoAndStop(_root.playerColor);
}
}
}
on (keyPress "M") {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (_root.levelTexting) {
_root.stop();
}
if ((!_root.gameMute) && (_parent.pauseBtn._currentframe < 3)) {
if (pauseSound == undefined) {
var pauseSound = new Sound();
pauseSound.attachSound("pause");
}
pauseSound.start();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (!_root.tutorialMode) {
if (_parent.pauseBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.pauseBtn.gotoAndStop(2);
} else {
_parent.pauseBtn.gotoAndStop(1);
}
_parent.gotoAndStop("menu");
} else {
if (_parent.pauseBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.pauseBtn.gotoAndStop(2);
} else {
_parent.pauseBtn.gotoAndStop(1);
}
_parent.gotoAndStop("tutorial menu");
}
_root.gamePause = true;
if (_root.player != undefined) {
_root.moveReady = false;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].stop();
a++;
}
}
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (_root.levelTexting) {
_root.play();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_parent.gotoAndStop("unpause");
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
if ((_root.player != undefined) && (_root.player._currentframe != _root.playerColor)) {
_root.player.gotoAndStop(_root.playerColor);
}
}
}
Instance of Symbol 143 MovieClip "pauseBtn" in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (_currentframe == 1) {
this.gotoAndStop(2);
} else if (_currentframe == 3) {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (_currentframe == 2) {
this.gotoAndStop(1);
} else if (_currentframe == 4) {
this.gotoAndStop(3);
}
}
on (press) {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (_root.levelTexting) {
_root.stop();
}
if ((!_root.gameMute) && (_parent.menuBtn._currentframe < 3)) {
if (pauseSound == undefined) {
var pauseSound = new Sound();
pauseSound.attachSound("pause");
}
pauseSound.start();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (_parent.menuBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuBtn.gotoAndStop(2);
} else {
_parent.menuBtn.gotoAndStop(1);
}
if (_parent.menuBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuBtn.gotoAndStop(2);
} else {
_parent.menuBtn.gotoAndStop(1);
}
_parent.gotoAndStop("pause");
_root.gamePause = true;
if (_root.player != undefined) {
_root.moveReady = false;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].stop();
a++;
}
}
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (_root.levelTexting) {
_root.play();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_parent.gotoAndStop("unpause");
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
}
}
on (keyPress "p") {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (_root.levelTexting) {
_root.stop();
}
if ((!_root.gameMute) && (_parent.menuBtn._currentframe < 3)) {
if (pauseSound == undefined) {
var pauseSound = new Sound();
pauseSound.attachSound("pause");
}
pauseSound.start();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (_parent.menuBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuBtn.gotoAndStop(2);
} else {
_parent.menuBtn.gotoAndStop(1);
}
if (_parent.menuBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuBtn.gotoAndStop(2);
} else {
_parent.menuBtn.gotoAndStop(1);
}
_parent.gotoAndStop("pause");
_root.gamePause = true;
if (_root.player != undefined) {
_root.moveReady = false;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].stop();
a++;
}
}
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (_root.levelTexting) {
_root.play();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_parent.gotoAndStop("unpause");
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
}
}
on (keyPress "P") {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (_root.levelTexting) {
_root.stop();
}
if ((!_root.gameMute) && (_parent.menuBtn._currentframe < 3)) {
if (pauseSound == undefined) {
var pauseSound = new Sound();
pauseSound.attachSound("pause");
}
pauseSound.start();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (_parent.menuBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuBtn.gotoAndStop(2);
} else {
_parent.menuBtn.gotoAndStop(1);
}
if (_parent.menuBtn.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuBtn.gotoAndStop(2);
} else {
_parent.menuBtn.gotoAndStop(1);
}
_parent.gotoAndStop("pause");
_root.gamePause = true;
if (_root.player != undefined) {
_root.moveReady = false;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].stop();
a++;
}
}
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (_root.levelTexting) {
_root.play();
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_parent.gotoAndStop("unpause");
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
}
}
Instance of Symbol 152 MovieClip "barsMute" in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameMute) {
this.gotoAndStop(3);
} else {
this.stop();
}
}
on (rollOver) {
if (_currentframe == 1) {
this.gotoAndStop(2);
} else if (_currentframe == 3) {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (_currentframe == 2) {
this.gotoAndStop(1);
} else if (_currentframe == 4) {
this.gotoAndStop(3);
}
}
on (press) {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (_parent.menuMute.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuMute.gotoAndStop(4);
} else {
_parent.menuMute.gotoAndStop(3);
}
_root.gameMute = true;
stopAllSounds();
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (_parent.menuMute.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuMute.gotoAndStop(2);
} else {
_parent.menuMute.gotoAndStop(1);
}
_root.gameMute = false;
if (musicSound == undefined) {
var musicSound = new Sound();
musicSound.attachSound("music");
}
musicSound.start(0, 10000);
}
}
on (keyPress "u") {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (_parent.menuMute.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuMute.gotoAndStop(4);
} else {
_parent.menuMute.gotoAndStop(3);
}
_root.gameMute = true;
stopAllSounds();
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (_parent.menuMute.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuMute.gotoAndStop(2);
} else {
_parent.menuMute.gotoAndStop(1);
}
_root.gameMute = false;
if (musicSound == undefined) {
var musicSound = new Sound();
musicSound.attachSound("music");
}
musicSound.start(0, 10000);
}
}
on (keyPress "U") {
if ((_currentframe == 1) || (_currentframe == 2)) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
if (_parent.menuMute.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuMute.gotoAndStop(4);
} else {
_parent.menuMute.gotoAndStop(3);
}
_root.gameMute = true;
stopAllSounds();
} else if ((_currentframe == 3) || (_currentframe == 4)) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (_parent.menuMute.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.menuMute.gotoAndStop(2);
} else {
_parent.menuMute.gotoAndStop(1);
}
_root.gameMute = false;
if (musicSound == undefined) {
var musicSound = new Sound();
musicSound.attachSound("music");
}
musicSound.start(0, 10000);
}
}
Instance of Symbol 155 MovieClip in Symbol 216 MovieClip Frame 1
on (keyPress "q") {
if ((_quality == "high") || (_quality == "HIGH")) {
_quality = "low";
_root.gameQuality = "low";
} else if ((_quality == "low") || (_quality == "LOW")) {
_quality = "high";
_root.gameQuality = "high";
}
}
on (keyPress "Q") {
if ((_quality == "high") || (_quality == "HIGH")) {
_quality = "low";
_root.gameQuality = "low";
} else if ((_quality == "low") || (_quality == "LOW")) {
_quality = "high";
_root.gameQuality = "high";
}
}
Instance of Symbol 160 MovieClip in Symbol 216 MovieClip Frame 9
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.levelTexting) {
_root.play();
}
_parent.pauseBtn.gotoAndStop(1);
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
_parent.gotoAndStop("unpause");
}
Instance of Symbol 163 MovieClip in Symbol 216 MovieClip Frame 9
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_parent.pauseBtn.gotoAndStop(1);
_parent.menuBtn.gotoAndStop(3);
_parent.gotoAndStop("menu");
}
Instance of Symbol 168 MovieClip in Symbol 216 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_parent.back = "tutorial menu";
_parent.forward = "menu";
_parent.gotoAndStop("confirm");
}
Instance of Symbol 171 MovieClip in Symbol 216 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.currentLevel > 1) {
_parent.back = "tutorial menu";
_parent.forward = "tutorial-" + (_root.currentLevel - 1);
_parent.gotoAndStop("confirm");
} else {
_parent.gotoAndStop("no previous level");
}
}
Instance of Symbol 176 MovieClip "menuMute" in Symbol 216 MovieClip Frame 15
onClipEvent (load) {
if (_root.gameMute) {
this.gotoAndStop(3);
} else {
this.stop();
}
}
on (rollOver) {
if (_currentframe == 1) {
this.gotoAndStop(2);
} else if (_currentframe == 3) {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (_currentframe == 2) {
this.gotoAndStop(1);
} else if (_currentframe == 4) {
this.gotoAndStop(3);
}
}
on (press) {
if ((_currentframe == 1) || (_currentframe == 2)) {
this.gotoAndStop(4);
_parent.barsMute.gotoAndStop(3);
_root.gameMute = true;
stopAllSounds();
} else if ((_currentframe == 3) || (_currentframe == 4)) {
this.gotoAndStop(2);
_parent.barsMute.gotoAndStop(1);
_root.gameMute = false;
if (musicSound == undefined) {
var musicSound = new Sound();
musicSound.attachSound("music");
}
musicSound.start(0, 10000);
}
}
Instance of Symbol 181 MovieClip in Symbol 216 MovieClip Frame 15
onClipEvent (load) {
if (_root.gameQuality == "low") {
this.gotoAndStop(3);
} else {
this.stop();
}
}
on (rollOver) {
if (_currentframe == 1) {
this.gotoAndStop(2);
} else if (_currentframe == 3) {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (_currentframe == 2) {
this.gotoAndStop(1);
} else if (_currentframe == 4) {
this.gotoAndStop(3);
}
}
on (press, keyPress "q") {
if ((_currentframe == 1) || (_currentframe == 2)) {
this.gotoAndStop(3);
_quality = "low";
_root.gameQuality = "low";
} else if ((_currentframe == 3) || (_currentframe == 4)) {
this.gotoAndStop(1);
_quality = "high";
_root.gameQuality = "high";
}
}
on (keyPress "Q") {
if ((_currentframe == 1) || (_currentframe == 2)) {
this.gotoAndStop(3);
_quality = "low";
_root.gameQuality = "low";
} else if ((_currentframe == 3) || (_currentframe == 4)) {
this.gotoAndStop(1);
_quality = "high";
_root.gameQuality = "high";
}
}
Instance of Symbol 203 MovieClip in Symbol 216 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
Instance of Symbol 204 MovieClip in Symbol 216 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_parent.menuBtn.gotoAndStop(1);
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
if ((_root.player != undefined) && (_root.player._currentframe != _root.playerColor)) {
_root.player.gotoAndStop(_root.playerColor);
}
_parent.gotoAndStop("unpause");
}
Instance of Symbol 208 MovieClip in Symbol 216 MovieClip Frame 26
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.gamePause = false;
if (_parent.forward == ("tutorial-" + (_root.currentLevel - 1))) {
_parent.menuBtn.gotoAndStop(1);
_root.currentLevel--;
_parent.levelText = ("LEVEL: " + _root.currentLevel) + "/4";
_root.tutorialLevelFinishSFX = false;
_root.moveReady = true;
_root.gotoAndStop(_parent.forward);
_parent.gotoAndStop("unpause");
} else {
_root.moveReady = true;
_root.currentLevel = 1;
_root.gotoAndStop(_parent.forward);
}
}
Instance of Symbol 211 MovieClip in Symbol 216 MovieClip Frame 26
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_parent.gotoAndStop(_parent.back);
}
Instance of Symbol 155 MovieClip in Symbol 216 MovieClip Frame 26
on (keyPress "q") {
if ((_quality == "high") || (_quality == "HIGH")) {
_quality = "low";
_root.gameQuality = "low";
} else if ((_quality == "low") || (_quality == "LOW")) {
_quality = "high";
_root.gameQuality = "high";
}
}
on (keyPress "Q") {
if ((_quality == "high") || (_quality == "HIGH")) {
_quality = "low";
_root.gameQuality = "low";
} else if ((_quality == "low") || (_quality == "LOW")) {
_quality = "high";
_root.gameQuality = "high";
}
}
Instance of Symbol 215 MovieClip in Symbol 216 MovieClip Frame 33
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_parent.gotoAndStop("tutorial menu");
}
Instance of Symbol 168 MovieClip in Symbol 216 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_parent.back = "menu";
_parent.forward = "menu";
_parent.gotoAndStop("confirm");
}
Instance of Symbol 176 MovieClip "menuMute" in Symbol 216 MovieClip Frame 47
onClipEvent (load) {
if (_root.gameMute) {
this.gotoAndStop(3);
} else {
this.stop();
}
}
on (rollOver) {
if (_currentframe == 1) {
this.gotoAndStop(2);
} else if (_currentframe == 3) {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (_currentframe == 2) {
this.gotoAndStop(1);
} else if (_currentframe == 4) {
this.gotoAndStop(3);
}
}
on (press) {
if ((_currentframe == 1) || (_currentframe == 2)) {
this.gotoAndStop(4);
_parent.barsMute.gotoAndStop(3);
_root.gameMute = true;
stopAllSounds();
} else if ((_currentframe == 3) || (_currentframe == 4)) {
this.gotoAndStop(2);
_parent.barsMute.gotoAndStop(1);
_root.gameMute = false;
if (musicSound == undefined) {
var musicSound = new Sound();
musicSound.attachSound("music");
}
musicSound.start(0, 10000);
}
}
Instance of Symbol 181 MovieClip in Symbol 216 MovieClip Frame 47
onClipEvent (load) {
if (_root.gameQuality == "low") {
this.gotoAndStop(3);
} else {
this.stop();
}
}
on (rollOver) {
if (_currentframe == 1) {
this.gotoAndStop(2);
} else if (_currentframe == 3) {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (_currentframe == 2) {
this.gotoAndStop(1);
} else if (_currentframe == 4) {
this.gotoAndStop(3);
}
}
on (press, keyPress "q") {
if ((_currentframe == 1) || (_currentframe == 2)) {
this.gotoAndStop(3);
_quality = "low";
_root.gameQuality = "low";
} else if ((_currentframe == 3) || (_currentframe == 4)) {
this.gotoAndStop(1);
_quality = "high";
_root.gameQuality = "high";
}
}
on (keyPress "Q") {
if ((_currentframe == 1) || (_currentframe == 2)) {
this.gotoAndStop(3);
_quality = "low";
_root.gameQuality = "low";
} else if ((_currentframe == 3) || (_currentframe == 4)) {
this.gotoAndStop(1);
_quality = "high";
_root.gameQuality = "high";
}
}
Instance of Symbol 203 MovieClip in Symbol 216 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
Instance of Symbol 204 MovieClip in Symbol 216 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.levelTexting) {
_root.play();
}
_parent.menuBtn.gotoAndStop(1);
_root.gamePause = false;
if (_root.player._alpha == 100) {
_root.moveReady = true;
}
if (_root.enemiesStop[0] != undefined) {
var a = 0;
while (_root.enemiesStop[a] != undefined) {
_root.enemiesStop[a].play();
a++;
}
}
if ((_root.player != undefined) && (_root.player._currentframe != _root.playerColor)) {
_root.player.gotoAndStop(_root.playerColor);
}
_parent.gotoAndStop("unpause");
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 26
stop();
Instance of Symbol 233 MovieClip "door1" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 122 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
_root.levelTexting = true;
_root.gotoAndPlay("level text");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
_root.levelTexting = true;
_root.gotoAndPlay("level text");
}
}
Instance of Symbol 267 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
getURL ("http://www.snubbyland.com/theWorldsHardestGame2_tipsAndTricks.php", "_blank");
}
}
Instance of Symbol 273 MovieClip in Symbol 286 MovieClip Frame 4
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
getURL ("http://snubbyland.com/view.php?type=games&ID=10", "_blank");
}
}
Instance of Symbol 281 MovieClip in Symbol 286 MovieClip Frame 9
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
getURL ("http://www.snubbyland.com/theWorldsHardestGame2_tipsAndTricks.php", "_blank");
}
}
Instance of Symbol 284 MovieClip in Symbol 286 MovieClip Frame 9
onClipEvent (load) {
this.stop();
}
on (rollOver) {
if (!_root.gamePause) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (!_root.gamePause) {
getURL ("http://youtube.com/results?search_query=the+worlds+hardest+game&search_type=&aq=f", "_blank");
}
}
Symbol 345 Button
on (release) {
trace("level:" + _root.currentLevel);
trace("deaths:" + Number(bars.deathsText.text));
mochi.MochiScores.showLeaderboard({boardID:"4d3f9bf36c3ee8d1", score:(_root.currentLevel * 500) - _root.deaths, onClose:function () {
_root.gotoAndStop("menu");
}});
}
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 26
stop();
Instance of Symbol 353 MovieClip "door1" in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 26
stop();
Instance of Symbol 401 MovieClip "door1" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 26
stop();
Instance of Symbol 413 MovieClip "door1" in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 26
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 26
stop();
Instance of Symbol 420 MovieClip "door3" in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 420 MovieClip "door1" in Symbol 432 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 26
stop();
Instance of Symbol 435 MovieClip "door1" in Symbol 437 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door1" in Symbol 444 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door2" in Symbol 444 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door3" in Symbol 444 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 413 MovieClip "door1" in Symbol 476 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door2" in Symbol 476 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door1" in Symbol 482 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door3" in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door1" in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}
Instance of Symbol 401 MovieClip "door2" in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
var openPause = false;
}
onClipEvent (enterFrame) {
if (((_root.gamePause && (!openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.stop();
openPause = true;
} else if ((((!_root.gamePause) && (openPause)) && (_currentframe > 1)) && (_currentframe < _totalframes)) {
this.play();
openPause = false;
}
}