Frame 1
function r_menu_1_playMoreGames() {
getURL ("http://www.addictinggames.com/", "_blank");
}
function r_menu_2_SnubbyLand() {
getURL ("http://www.snubbyland.com/", "_blank");
}
function clearEnemiesStop() {
while (_root.enemiesStop[0] != undefined) {
_root.enemiesStop.pop();
}
}
var r_menu = new ContextMenu();
r_menu.hideBuiltInItems();
var r_menu_1 = new ContextMenuItem("Play More Games", r_menu_1_playMoreGames);
r_menu.customItems.push(r_menu_1);
var r_menu_2 = new ContextMenuItem("Snubby Land", r_menu_2_SnubbyLand);
r_menu.customItems.push(r_menu_2);
_root.menu = r_menu;
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 39 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 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 162 MovieClip "previewClips" in Frame 20
onClipEvent (load) {
var nextClip = Math.floor((Math.random() * _totalframes) + 1);
var nextClipTest = null;
this.gotoAndStop(nextClip);
}
Instance of Symbol 165 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 168 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 171 MovieClip in Frame 20
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/highscores_theWorldsHardestGame2.php", "_blank");
}
Instance of Symbol 174 MovieClip in Frame 20
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/theWorldsHardestGame2_tipsAndTricks.php", "_blank");
}
Instance of Symbol 177 MovieClip in Frame 20
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com", "_blank");
}
Instance of Symbol 180 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 183 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 204 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 209 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 204 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 209 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 204 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 209 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 335 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 154 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 154 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 154 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 154 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 147 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 204 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 209 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 341 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 348 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 147 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 204 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 209 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 350 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 154 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 154 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 154 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 154 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 147 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 204 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 356 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 358 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 204 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 209 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 362 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 204 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 367 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 373 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 396 MovieClip in Frame 152
onClipEvent (load) {
this.gotoAndStop(_root.currentLevel / 5);
}
Frame 156
levelText.gotoAndStop(currentLevel);
if ((!gameMute) && (currentLevel > 1)) {
if (winSound == undefined) {
var winSound = new Sound();
winSound.attachSound("win");
}
winSound.start();
}
Frame 186
_root.levelTexting = false;
gotoAndStop("level-" + currentLevel);
Frame 187
clearEnemiesStop();
enemiesStop[0] = noCheat_enemies;
Instance of Symbol 154 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 154 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 154 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 147 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 147 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 154 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 147 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 348 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 147 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 348 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 147 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 154 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 154 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 154 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 154 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 147 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 348 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 147 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 348 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 348 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 147 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 348 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 154 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 154 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 154 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 147 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 154 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 147 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 348 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 348 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 348 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 147 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 147 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 147 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 154 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 154 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 154 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 154 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 147 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 147 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 348 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 348 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 348 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 147 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 154 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 154 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 154 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 154 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 147 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 348 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 348 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 348 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 154 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 154 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 154 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 154 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 147 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 154 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 154 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 147 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 373 MovieClip in Frame 538
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 209 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 204 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 209 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 204 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 670 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) {
var highscoreObject = new LoadVars();
if (_root.nameTextbox.nameText.length > 0) {
highscoreObject.nameSend = _root.nameTextbox.nameText;
} else {
highscoreObject.nameSend = "Unknown";
}
highscoreObject.scoreSend = _root.deaths;
highscoreObject.send("http://www.snubbyland.com/highscores_theWorldsHardestGame2.php", "_blank", "POST");
_root.gotoAndStop("menu");
}
}
on (keyPress "<Space>") {
if (!_root.gamePause) {
var highscoreObject = new LoadVars();
if (_root.nameTextbox.nameText.length > 0) {
highscoreObject.nameSend = _root.nameTextbox.nameText;
} else {
highscoreObject.nameSend = "Unknown";
}
highscoreObject.scoreSend = _root.deaths;
highscoreObject.send("http://www.snubbyland.com/highscores_theWorldsHardestGame2.php", "_blank", "POST");
_root.gotoAndStop("menu");
}
}
Instance of Symbol 30 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 33 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 38 MovieClip Frame 20
stop();
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.play();
_parent.play();
var musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start(0, 10000);
}
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 30 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com", "_blank");
}
Instance of Symbol 33 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 677 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 678 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 679 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 680 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 681 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 62 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
this.unloadMovie();
} else {
AG_COUNT++;
}
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
_root.nextFrame();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 64 MovieClip Frame 120
_root.nextFrame();
Symbol 98 MovieClip Frame 1
_parent.stop();
Instance of Symbol 65 MovieClip in Symbol 98 MovieClip Frame 1
on (press) {
getURL ("http://www.snubbyland.com", "_blank");
}
Instance of Symbol 67 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 98 MovieClip Frame 109
_parent.play();
Symbol 99 Button
on (press) {
_root.nextFrame();
}
Symbol 133 MovieClip Frame 1
_root.stop();
Instance of Symbol 67 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 133 MovieClip Frame 117
_root.play();
Symbol 147 MovieClip Frame 1
stop();
Symbol 148 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 153 MovieClip "coinFlip" in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor((Math.random() * this._totalframes) + 1));
}
Symbol 155 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 157 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 159 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 161 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 185 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Instance of Symbol 189 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/", "_blank");
}
Instance of Symbol 192 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://mexifry895.newgrounds.com/", "_blank");
}
Instance of Symbol 195 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://flashkit.com/", "_blank");
}
Instance of Symbol 198 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.addictinggames.com/index.html", "_blank");
}
Symbol 201 MovieClip Frame 11
stop();
Instance of Symbol 280 MovieClip in Symbol 299 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 283 MovieClip "color5" in Symbol 299 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 286 MovieClip "color1" in Symbol 299 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 289 MovieClip "color2" in Symbol 299 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 292 MovieClip "color3" in Symbol 299 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 295 MovieClip "color4" in Symbol 299 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 298 MovieClip "color6" in Symbol 299 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 326 MovieClip Frame 1
stop();
if (back == undefined) {
var back = null;
var forward = null;
}
Instance of Symbol 224 MovieClip "menuBtn" in Symbol 326 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 230 MovieClip "pauseBtn" in Symbol 326 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 239 MovieClip "barsMute" in Symbol 326 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 242 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Instance of Symbol 245 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com", "_blank");
}
Instance of Symbol 248 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/highscores_theWorldsHardestGame2.php", "_blank");
}
Instance of Symbol 251 MovieClip in Symbol 326 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 256 MovieClip in Symbol 326 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 259 MovieClip in Symbol 326 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 264 MovieClip in Symbol 326 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 267 MovieClip in Symbol 326 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 272 MovieClip "menuMute" in Symbol 326 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 277 MovieClip in Symbol 326 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 299 MovieClip in Symbol 326 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
Instance of Symbol 302 MovieClip in Symbol 326 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/highscores_theWorldsHardestGame2.php", "_blank");
}
Instance of Symbol 305 MovieClip in Symbol 326 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/theWorldsHardestGame2_tipsAndTricks.php", "_blank");
}
Instance of Symbol 308 MovieClip in Symbol 326 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Instance of Symbol 311 MovieClip in Symbol 326 MovieClip Frame 15
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com", "_blank");
}
Instance of Symbol 312 MovieClip in Symbol 326 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 316 MovieClip in Symbol 326 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 319 MovieClip in Symbol 326 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 251 MovieClip in Symbol 326 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 323 MovieClip in Symbol 326 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 264 MovieClip in Symbol 326 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 272 MovieClip "menuMute" in Symbol 326 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 277 MovieClip in Symbol 326 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 299 MovieClip in Symbol 326 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
Instance of Symbol 302 MovieClip in Symbol 326 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/highscores_theWorldsHardestGame2.php", "_blank");
}
Instance of Symbol 305 MovieClip in Symbol 326 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com/theWorldsHardestGame2_tipsAndTricks.php", "_blank");
}
Instance of Symbol 308 MovieClip in Symbol 326 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Instance of Symbol 311 MovieClip in Symbol 326 MovieClip Frame 47
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://www.snubbyland.com", "_blank");
}
Instance of Symbol 312 MovieClip in Symbol 326 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");
}
Instance of Symbol 224 MovieClip "menuBtn" in Symbol 326 MovieClip Frame 53
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);
}
}
}
Instance of Symbol 230 MovieClip "pauseBtn" in Symbol 326 MovieClip Frame 53
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++;
}
}
}
}
Instance of Symbol 239 MovieClip "barsMute" in Symbol 326 MovieClip Frame 53
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);
}
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 26
stop();
Instance of Symbol 343 MovieClip "door1" in Symbol 345 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 209 MovieClip in Symbol 396 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 377 MovieClip in Symbol 396 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 383 MovieClip in Symbol 396 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 391 MovieClip in Symbol 396 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 394 MovieClip in Symbol 396 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 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 26
stop();
Instance of Symbol 460 MovieClip "door1" in Symbol 462 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 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 26
stop();
Instance of Symbol 508 MovieClip "door1" in Symbol 510 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 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 26
stop();
Instance of Symbol 520 MovieClip "door1" in Symbol 522 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 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 26
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 26
stop();
Instance of Symbol 527 MovieClip "door3" in Symbol 531 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 527 MovieClip "door1" in Symbol 539 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 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 26
stop();
Instance of Symbol 542 MovieClip "door1" in Symbol 544 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 508 MovieClip "door1" in Symbol 551 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 508 MovieClip "door2" in Symbol 551 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 508 MovieClip "door3" in Symbol 551 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 520 MovieClip "door1" in Symbol 583 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 508 MovieClip "door2" in Symbol 583 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 508 MovieClip "door1" in Symbol 589 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 508 MovieClip "door3" in Symbol 598 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 508 MovieClip "door1" in Symbol 598 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 508 MovieClip "door2" in Symbol 598 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;
}
}