Frame 1
Stage.scaleMode = "noScale";
_global.myRoot = this;
stopAllSounds();
globalSound = new Sound();
sound = true;
var rightClick = new ContextMenu();
rightClick.hideBuiltInItems();
_global.myRoot.menu = rightClick;
var urlString = _global.myRoot._url;
if (urlString.indexOf("armorgames.com") == -1) {
_root._x = 50000;
_root._y = 40000;
}
buttonLink.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
this.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Frame 2
this.gotoAndPlay(1);
Frame 204
stop();
stopAllSounds();
_quality = "LOW";
rockOn = false;
help = false;
scores = false;
credits = false;
buttonPlay.onPress = function () {
stopAllSounds();
rockOn = true;
help = false;
scores = false;
credits = false;
fg.play();
};
buttonHelp.onPress = function () {
rockOn = false;
help = true;
scores = false;
credits = false;
fg.play();
};
buttonScores.onPress = function () {
rockOn = false;
help = false;
scores = true;
credits = false;
fg.play();
};
buttonCredits.onPress = function () {
rockOn = false;
help = false;
scores = false;
credits = true;
fg.play();
};
buttonLink.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (rockOn) {
play();
}
if (help) {
gotoAndStop ("help");
}
if (scores) {
gotoAndStop ("scores");
}
if (credits) {
gotoAndStop ("credits");
}
}
};
_global.myRoot = this;
clicks = 0;
pressCounter = 0;
highestDepth = 10000;
onMouseDown = function () {
pressed = true;
};
onMouseUp = function () {
pressed = false;
};
setup = function () {
levelPassed = false;
gamePaused = false;
shaking = false;
quit = false;
playerX = 70;
playerY = 340;
fg.q.onRelease = function () {
trace(_quality);
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
fg.speaker.onRelease = function () {
if ((!levelPassed) and (!gamePaused)) {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
fg.speaker.gotoAndStop(2);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
fg.speaker.gotoAndStop(1);
}
}
};
fg.pauseGame.onRelease = function () {
if (fg.pauseGame._currentframe == 1) {
fg.pauseGame.play();
fg.pausedMenu.play();
gamePaused = true;
}
};
fg.buttonLink.onRelease = function () {
getURL ("http://www.miniclip.com", "_blank");
};
onMouseDown = function () {
pressed = true;
if (((!fg.speaker.hitTest(_xmouse, _ymouse, true)) and (!fg.pauseGame.hitTest(_xmouse, _ymouse, true))) and (!gamePaused)) {
gamezone = true;
clicks = clicks + 1;
} else {
gamezone = false;
}
};
onMouseUp = function () {
pressed = false;
};
};
game = function () {
shake();
count();
fg.clicksText = clicks;
if (sound) {
fg.speaker.gotoAndStop(1);
} else {
fg.speaker.gotoAndStop(2);
}
if (_quality == "HIGH") {
fg.q.gotoAndStop(1);
} else if (_quality == "MEDIUM") {
fg.q.gotoAndStop(2);
} else if (_quality == "LOW") {
fg.q.gotoAndStop(3);
}
if (highestDepth == 0) {
highestDepth = 10000;
}
if (pressed) {
pressCounter++;
} else {
pressCounter = 0;
}
};
disperse = function () {
j = 0;
while (j < 25) {
p = attachMovie("explosion", "explosion" + (j++), highestDepth--);
p._x = (explodeX - 40) + random(40);
p._y = explodeY;
p._xscale = (p._yscale = (Math.random() * 100) + 20);
p._rotation = random(360);
j++;
}
};
explode = function () {
shaking = true;
shakeCount = 20;
j = 0;
while (j < 50) {
p = attachMovie("explosion", "explosion" + (j++), highestDepth--);
p._x = (explodeX - 40) + random(80);
p._y = explodeY;
p._xscale = (p._yscale = (Math.random() * 100) + 50);
p._rotation = random(360);
j++;
}
};
explodeB = function () {
shaking = true;
shakeCount = 20;
j = 0;
while (j < 25) {
p = attachMovie("explosion", "explosion" + (j++), highestDepth--);
p._x = (explodeX - 40) + random(80);
p._y = (explodeY - 40) + random(80);
p._xscale = (p._yscale = (Math.random() * 100) + 20);
p._rotation = random(360);
j++;
}
};
shake = function () {
if (shaking) {
_global.myRoot._x = random(6) - 2;
_global.myRoot._y = random(6) - 2;
shakeCount--;
if (shakeCount == 0) {
shaking = false;
_global.myRoot._x = 0;
_global.myRoot._y = 0;
}
}
};
passedOrPaused = function () {
if (levelPassed) {
if (fg._currentframe != fg._totalframes) {
fg.play();
}
if (fg._currentframe == fg._totalframes) {
play();
}
}
if (gamePaused) {
if (quit) {
if (fg._currentframe != fg._totalframes) {
fg.play();
}
if (fg._currentframe == fg._totalframes) {
gotoAndPlay ("menu");
}
}
}
};
doorReached = function () {
if (player._x > 600) {
if (player._currentframe == 1) {
levelPassed = true;
}
}
};
die = function () {
if (player._currentframe == 1) {
speed = 0;
fg.sounds.fail.play();
player.play();
boomerang.play();
shakeCount = 10;
shaking = true;
}
};
Frame 205
play();
Frame 206
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
boomerang._x = player._x + 20;
boomerang._y = 324;
boomerang._rotation = 0;
boomerang.gotoAndStop("start");
throwing = false;
leaving = false;
returning = false;
boomerangSpeed = 15;
boomerangRotation = 15;
bats = 1;
bat0._x = 640;
bat0._y = 310;
i = 0;
while (i < bats) {
_global.myRoot["bat" + i].gotoAndStop("start");
i++;
}
batSpeed = new Array();
batSpeed[0] = 2;
batMovingU = new Array();
batMovingU[0] = true;
batMovingD = new Array();
batMovingD[0] = false;
batCounter = new Array();
batCounter[0] = 20;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
i = 0;
while (i < bats) {
if (_global.myRoot["bat" + i]._x > 0) {
_global.myRoot["bat" + i]._x = _global.myRoot["bat" + i]._x - batSpeed[i];
} else {
_global.myRoot["bat" + i]._x = 640;
}
if (batMovingU[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y--;
} else {
batMovingU[i] = false;
batMovingD[i] = true;
batCounter[i] = 20;
}
}
if (batMovingD[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y++;
} else {
batMovingU[i] = true;
batMovingD[i] = false;
batCounter[i] = 20;
}
}
if (_global.myRoot["bat" + i].hitTest(player)) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
die();
}
}
if (_global.myRoot["bat" + i].hitTest(boomerang) and throwing) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
fg.sounds.monster.play();
batSpeed[i] = 0;
_global.myRoot["bat" + i].play();
}
}
i++;
}
if ((pressed and (pressCounter == 1)) and gamezone) {
if (!throwing) {
fg.sounds.boomerang.play();
throwing = true;
leaving = true;
}
}
if (throwing) {
if (leaving) {
if (boomerangSpeed > 1) {
boomerang._x = boomerang._x + boomerangSpeed;
boomerangSpeed = boomerangSpeed * 0.9;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
leaving = false;
returning = true;
}
}
if (returning) {
if (boomerang._x > player._x) {
boomerang._x = boomerang._x - boomerangSpeed;
boomerangSpeed = boomerangSpeed * 1.1;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
boomerang._x = player._x + 20;
boomerangSpeed = 15;
leaving = false;
returning = false;
throwing = false;
}
}
} else {
boomerang._x = player._x + 20;
boomerang._rotation = 0;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 207
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
player.bar.powerBar._visible = false;
speed = 2;
gravity = 2;
jumping = false;
holes = 1;
holeSet = new Array();
i = 0;
while (i < holes) {
holeSet[i] = false;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
if (pressed and gamezone) {
if (!jumping) {
charging = true;
player.bar.powerBar._visible = true;
if (player.bar.powerBar._width < 50) {
player.bar.powerBar._width = player.bar.powerBar._width + 2;
} else {
player.bar.powerBar._width = 50;
}
}
} else if (charging) {
fg.sounds.jump.play();
jumping = true;
charging = false;
jump = player.bar.powerBar._width / 5;
player.bar.powerBar._width = 1;
player.bar.powerBar._visible = false;
}
if (jumping) {
player.bar._alpha = 5;
if (jump > 1) {
player._y = player._y - jump;
jump = jump * 0.9;
} else {
jump = 0;
if (player._y < playerY) {
player._y = player._y + gravity;
gravity = gravity * 1.1;
} else {
jumping = false;
player._y = playerY;
gravity = 2;
}
}
} else {
player.bar._alpha = 100;
i = 0;
while (i < holes) {
if (_global.myRoot["hole" + i].hitTest(player._x - 4, player._y + 4, true) and _global.myRoot["hole" + i].hitTest(player._x + 4, player._y + 4, true)) {
if (player._currentframe == 1) {
die();
}
}
i++;
}
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 208
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
arrowTraps = 1;
i = 0;
while (i < arrowTraps) {
_global.myRoot["arrowTrap" + i]._y = 148;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
if (pressed and gamezone) {
speed = 0;
} else {
speed = 2;
}
i = 0;
while (i < arrowTraps) {
if ((_global.myRoot["arrowTrap" + i]._x - player._x) < 60) {
_global.myRoot["arrowTrap" + i]._y = _global.myRoot["arrowTrap" + i]._y + 7;
}
if (_global.myRoot["arrowTrap" + i].hitTest(player)) {
if (_global.myRoot["arrowTrap" + i]._y < (player._y - (player._width / 2))) {
die();
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 209
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
ladders = 2;
bombs = 2;
i = 0;
while (i < bombs) {
_global.myRoot["bomb" + i]._visible = true;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
i = 0;
while (i < ladders) {
if (_global.myRoot["ladder" + i].hitTest(player) and (player._currentframe == 1)) {
if ((pressed and (pressCounter == 1)) and gamezone) {
fg.sounds.creak.play();
if (player._y == 340) {
player._y = 240;
} else {
player._y = 340;
}
}
}
i++;
}
i = 0;
while (i < bombs) {
if (_global.myRoot["bomb" + i].hitTest(player)) {
if (player._currentframe == 1) {
fg.sounds.explosion.play();
player.play();
_global.myRoot["bomb" + i]._visible = false;
explodeX = _global.myRoot["bomb" + i]._x;
explodeY = _global.myRoot["bomb" + i]._y;
explode();
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 210
stop();
setup();
movingR = new Array();
movingR[0] = true;
movingL = new Array();
movingL[0] = false;
riding = new Array();
riding[0] = false;
wait = new Array();
wait[0] = 40;
platforms = 1;
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
player._x = player._x + 2;
}
i = 0;
while (i < platforms) {
if (_global.myRoot["platform" + i].hitTest(player._x, player._y + 5, true)) {
riding[i] = true;
} else {
riding[i] = false;
if (_global.myRoot["hole" + i].hitTest(player._x, player._y + 5, true)) {
die();
}
}
i++;
}
i = 0;
while (i < platforms) {
if (movingR[i]) {
if (_global.myRoot["platform" + i]._x < ((_global.myRoot["hole" + i]._x + (_global.myRoot["hole" + i]._width / 2)) - (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x + 5;
if (riding[i]) {
player._x = player._x + 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = false;
movingL[i] = true;
wait[i] = 30;
}
}
if (movingL[i]) {
if (_global.myRoot["platform" + i]._x > ((_global.myRoot["hole" + i]._x - (_global.myRoot["hole" + i]._width / 2)) + (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x - 5;
if (riding[i]) {
player._x = player._x - 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = true;
movingL[i] = false;
wait[i] = 30;
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 211
stop();
setup();
reset = function () {
posNum = 0;
pos = new Array();
pos[0] = {x:170, y:265};
pos[1] = {x:245, y:265};
pos[2] = {x:320, y:265};
pos[3] = {x:395, y:265};
pos[4] = {x:470, y:265};
trapDoors = 1;
player._x = pos[0].x;
player._y = pos[0].y;
player.gotoAndStop("start");
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
if (pressCounter == 1) {
if (player._currentframe == 1) {
posNum++;
player._x = pos[posNum].x;
player._y = pos[posNum].y;
}
}
}
i = 0;
while (i < trapDoors) {
if (_global.myRoot["trapdoor" + i].hitmap.hitTest(player)) {
die();
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
if ((player._x == pos[4].x) and (player._y == pos[4].y)) {
levelPassed = true;
}
} else {
passedOrPaused();
}
};
Frame 212
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
player.bar.powerBar._visible = false;
speed = 2;
gravity = 2;
jumping = false;
movingR = new Array();
movingR[0] = false;
movingR[1] = false;
movingR[2] = false;
movingR[3] = false;
movingR[4] = false;
movingR[5] = false;
movingL = new Array();
movingL[0] = false;
movingL[1] = false;
movingL[2] = false;
movingL[3] = false;
movingL[4] = false;
movingL[5] = false;
riding = new Array();
riding[0] = false;
riding[1] = false;
riding[2] = false;
riding[3] = false;
riding[4] = false;
riding[5] = false;
wait = new Array();
wait[0] = 40;
wait[1] = 40;
wait[2] = 40;
wait[3] = 40;
wait[4] = 40;
wait[5] = 40;
platforms = 6;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
if (!jumping) {
charging = true;
player.bar.powerBar._visible = true;
if (player.bar.powerBar._width < 50) {
player.bar.powerBar._width = player.bar.powerBar._width + 2;
} else {
player.bar.powerBar._width = 50;
}
}
} else if (charging) {
fg.sounds.jump.play();
jumping = true;
charging = false;
jump = player.bar.powerBar._width / 5;
xJump = player.bar.powerBar._width / 10;
player.bar.powerBar._width = 1;
player.bar.powerBar._visible = false;
}
if (jumping) {
player.bar._alpha = 5;
player._x = player._x + xJump;
if (jump > 1) {
player._y = player._y - jump;
jump = jump * 0.9;
} else {
jump = 0;
if (player._y < playerY) {
player._y = player._y + gravity;
gravity = gravity * 1.1;
} else {
jumping = false;
player._y = playerY;
gravity = 2;
}
}
} else {
player.bar._alpha = 100;
i = 0;
while (i < platforms) {
if (_global.myRoot["platform" + i].hitTest(player._x - 4, player._y + 4, true) or _global.myRoot["platform" + i].hitTest(player._x + 4, player._y + 4, true)) {
riding[i] = true;
} else {
riding[i] = false;
}
if (_global.myRoot["hole" + i].hitTest(player._x, player._y + 4, true) and (!riding[i])) {
die();
}
i++;
}
}
i = 0;
while (i < platforms) {
if (movingR[i]) {
if (_global.myRoot["platform" + i]._x < ((_global.myRoot["hole" + i]._x + (_global.myRoot["hole" + i]._width / 2)) - (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x + 5;
if (riding[i]) {
player._x = player._x + 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = false;
movingL[i] = true;
wait[i] = 30;
}
}
if (movingL[i]) {
if (_global.myRoot["platform" + i]._x > ((_global.myRoot["hole" + i]._x - (_global.myRoot["hole" + i]._width / 2)) + (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x - 5;
if (riding[i]) {
player._x = player._x - 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = true;
movingL[i] = false;
wait[i] = 30;
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 213
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
platformsTouched = new Array();
i = 0;
while (i < 12) {
platformsTouched[i] = false;
_global.myRoot["platform" + i]._alpha = 100;
i++;
}
vel = 0;
acc = 1;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
i = 0;
while (i < 12) {
if (_global.myRoot["platform" + i].hitTest(player._x, player._y + 5, true)) {
if (!platformsTouched[i]) {
platformsTouched[i] = true;
} else if (_global.myRoot["platform" + i]._alpha == 0) {
die();
}
}
if (platformsTouched[i]) {
if (_global.myRoot["platform" + i]._alpha > 0) {
_global.myRoot["platform" + i]._alpha--;
} else {
_global.myRoot["platform" + i]._alpha = 0;
}
}
i++;
}
if ((pressed and (pressCounter == 1)) and gamezone) {
vel = vel + acc;
}
vel = vel * 0.95;
player._x = player._x + vel;
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 214
stop();
setup();
reset = function () {
speed = 1.5;
caveSpeed = 1.5;
cave._x = 1200;
caveBG._x = 1200;
platform._x = 100;
platform._y = 265;
player._x = platform._x;
player._y = platform._y;
player.gotoAndStop("start");
bats = 1;
bat0._x = 680;
bat0._y = 240;
i = 0;
while (i < bats) {
_global.myRoot["bat" + i].gotoAndStop("start");
i++;
}
batSpeed = new Array();
batSpeed[0] = 2;
batMovingU = new Array();
batMovingU[0] = false;
batMovingD = new Array();
batMovingD[0] = true;
batCounter = new Array();
batCounter[0] = 20;
};
reset();
onEnterFrame = function () {
game();
if (((!levelPassed) and (!levelFailed)) and (!gamePaused)) {
if (cave._x > 640) {
cave._x = cave._x - caveSpeed;
} else {
cave._x = 640;
}
caveBG._x = cave._x;
platform._x = platform._x + speed;
player._x = platform._x;
player._y = platform._y;
if (cave.hitTest(player._x, player._y - player._height, true)) {
speed = 0;
caveSpeed = 0;
die();
}
if (cave.hitTest(platform._x, platform._y + platform._height, true)) {
speed = 0;
caveSpeed = 0;
die();
}
i = 0;
while (i < bats) {
if (_global.myRoot["bat" + i]._x > 0) {
_global.myRoot["bat" + i]._x = _global.myRoot["bat" + i]._x - batSpeed[i];
} else {
_global.myRoot["bat" + i]._x = 640;
}
if (batMovingU[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y--;
} else {
batMovingU[i] = false;
batMovingD[i] = true;
batCounter[i] = 20;
}
}
if (batMovingD[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y++;
} else {
batMovingU[i] = true;
batMovingD[i] = false;
batCounter[i] = 20;
}
}
if (_global.myRoot["bat" + i].hitTest(player)) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
die();
}
}
i++;
}
if (pressed and gamezone) {
if (speed > 0) {
platform._y = platform._y - 1;
}
} else if (speed > 0) {
platform._y = platform._y + 1;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 215
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
boomerang._x = player._x + 20;
boomerang._y = 324;
boomerang._rotation = 0;
boomerang.gotoAndStop("start");
throwing = false;
leaving = false;
returning = false;
boomerangSpeed = 15;
boomerangRotation = 15;
bats = 1;
bat0._x = 640;
bat0._y = 310;
i = 0;
while (i < bats) {
_global.myRoot["bat" + i].gotoAndStop("start");
i++;
}
batSpeed = new Array();
batSpeed[0] = 2;
batSpeed[1] = 1.5;
batMovingU = new Array();
batMovingU[0] = true;
batMovingD = new Array();
batMovingD[0] = false;
batCounter = new Array();
batCounter[0] = 20;
spiders = 2;
spider0._y = -70;
spider1._y = -70;
spiderDead = new Array();
spiderDead[0] = false;
spiderDead[1] = false;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
i = 0;
while (i < bats) {
if (_global.myRoot["bat" + i]._x > 0) {
_global.myRoot["bat" + i]._x = _global.myRoot["bat" + i]._x - batSpeed[i];
} else {
_global.myRoot["bat" + i]._x = 640;
}
if (batMovingU[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y--;
} else {
batMovingU[i] = false;
batMovingD[i] = true;
batCounter[i] = 20;
}
}
if (batMovingD[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y++;
} else {
batMovingU[i] = true;
batMovingD[i] = false;
batCounter[i] = 20;
}
}
if (_global.myRoot["bat" + i].hitTest(player)) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
die();
}
}
if (_global.myRoot["bat" + i].hitTest(boomerang) and throwing) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
fg.sounds.monster.play();
batSpeed[i] = 0;
_global.myRoot["bat" + i].play();
}
}
i++;
}
if ((pressed and (pressCounter == 1)) and gamezone) {
if (!throwing) {
fg.sounds.boomerang.play();
throwing = true;
leaving = true;
}
}
if (throwing) {
if (leaving) {
if (boomerangSpeed > 1) {
boomerang._x = boomerang._x + boomerangSpeed;
boomerangSpeed = boomerangSpeed * 0.9;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
leaving = false;
returning = true;
}
}
if (returning) {
if (boomerang._x > player._x) {
boomerang._x = boomerang._x - boomerangSpeed;
boomerangSpeed = boomerangSpeed * 1.1;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
boomerang._x = player._x + 20;
boomerangSpeed = 15;
leaving = false;
returning = false;
throwing = false;
}
}
} else {
boomerang._x = player._x + 20;
boomerang._rotation = 0;
}
i = 0;
while (i < spiders) {
if (!spiderDead[i]) {
if ((_global.myRoot["spider" + i]._x - player._x) < 100) {
if (_global.myRoot["spider" + i]._y < 120) {
_global.myRoot["spider" + i]._y = _global.myRoot["spider" + i]._y + 10;
} else {
_global.myRoot["spider" + i]._y = 120;
}
}
} else if (_global.myRoot["spider" + i]._y > -70) {
_global.myRoot["spider" + i]._y = _global.myRoot["spider" + i]._y - 10;
} else {
_global.myRoot["spider" + i]._y = -70;
}
if (_global.myRoot["spider" + i].hitTest(boomerang) and throwing) {
fg.sounds.monster.play();
spiderDead[i] = true;
}
if (_global.myRoot["spider" + i].hitTest(player)) {
die();
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 216
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
player.bar.powerBar._visible = false;
speed = 2;
gravity = 2;
jumping = false;
holes = 1;
traps = 1;
trapSet = new Array();
i = 0;
while (i < traps) {
trapSet[i] = false;
i++;
}
i = 0;
while (i < traps) {
_global.myRoot["trap" + i]._y = 340;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
if (pressed and gamezone) {
if (!jumping) {
charging = true;
player.bar.powerBar._visible = true;
if (player.bar.powerBar._width < 50) {
player.bar.powerBar._width = player.bar.powerBar._width + 2;
} else {
player.bar.powerBar._width = 50;
}
}
} else if (charging) {
fg.sounds.jump.play();
jumping = true;
charging = false;
jump = player.bar.powerBar._width / 5;
player.bar.powerBar._width = 1;
player.bar.powerBar._visible = false;
}
if (jumping) {
player.bar._alpha = 5;
if (jump > 1) {
player._y = player._y - jump;
jump = jump * 0.9;
} else {
jump = 0;
if (player._y < playerY) {
player._y = player._y + gravity;
gravity = gravity * 1.1;
} else {
jumping = false;
player._y = playerY;
gravity = 2;
}
}
} else {
player.bar._alpha = 100;
i = 0;
while (i < holes) {
if (_global.myRoot["hole" + i].hitTest(player._x - 4, player._y + 4, true) and _global.myRoot["hole" + i].hitTest(player._x + 4, player._y + 4, true)) {
if (player._currentframe == 1) {
die();
}
}
i++;
}
}
i = 0;
while (i < traps) {
if ((_global.myRoot["trap" + i]._x - player._x) < 100) {
if (!trapSet[i]) {
trapSet[i] = true;
}
}
if (trapSet[i]) {
if (_global.myRoot["trap" + i]._y > 310) {
_global.myRoot["trap" + i]._y = _global.myRoot["trap" + i]._y - 2;
} else {
_global.myRoot["trap" + i]._y = 310;
}
}
if (_global.myRoot["trap" + i].hitTest(player._x, player._y, true)) {
die();
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 217
stop();
fg.levelNameText = "CLICK 2 STOP!";
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
arrowTraps = 2;
i = 0;
while (i < arrowTraps) {
_global.myRoot["arrowTrap" + i]._y = 148;
i++;
}
batFollower._x = -100;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
batFollower._x = batFollower._x + 2.2;
if (pressed and gamezone) {
speed = 0;
} else {
speed = 2;
}
i = 0;
while (i < arrowTraps) {
if ((_global.myRoot["arrowTrap" + i]._x - player._x) < 60) {
_global.myRoot["arrowTrap" + i]._y = _global.myRoot["arrowTrap" + i]._y + 7;
}
if (_global.myRoot["arrowTrap" + i].hitTest(player)) {
if (_global.myRoot["arrowTrap" + i]._y < (player._y - (player._width / 2))) {
die();
}
}
i++;
}
if (player.hitTest(batFollower._x, batFollower._y, true)) {
die();
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 218
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
bombs = 3;
i = 0;
while (i < bombs) {
_global.myRoot["bomb" + i]._visible = true;
i++;
}
ladders = 3;
bat._x = -50;
bat.gotoAndStop("start");
batSpeed = 2.5;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
i = 0;
while (i < ladders) {
if (_global.myRoot["ladder" + i].hitTest(player) and (player._currentframe == 1)) {
if ((pressed and (pressCounter == 1)) and gamezone) {
fg.sounds.creak.play();
if (player._y == 340) {
player._y = 240;
} else {
player._y = 340;
}
}
}
i++;
}
i = 0;
while (i < bombs) {
if (_global.myRoot["bomb" + i].hitTest(player)) {
if (player._currentframe == 1) {
fg.sounds.explosion.play();
player.play();
_global.myRoot["bomb" + i]._visible = false;
explodeX = _global.myRoot["bomb" + i]._x;
explodeY = _global.myRoot["bomb" + i]._y;
explode();
}
}
i++;
}
if (bat._x < 640) {
bat._x = bat._x + batSpeed;
} else {
bat._x = 0;
}
if (bat.hitTest(player)) {
if ((player._currentframe == 1) and (bat._currentframe == 1)) {
speed = 0;
player.play();
}
}
if (bat.hitTest(bomb1)) {
if (bat._currentframe == 1) {
fg.sounds.explosion.play();
batSpeed = 0;
bat.play();
bomb1._visible = false;
explodeX = bomb1._x;
explodeY = bomb1._y;
explode();
}
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 219
stop();
setup();
movingR = new Array();
movingR[0] = true;
movingR[1] = false;
movingL = new Array();
movingL[0] = false;
movingL[1] = true;
riding = new Array();
riding[0] = false;
riding[1] = false;
wait = new Array();
wait[0] = 30;
wait[1] = 30;
platforms = 2;
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
player._x = player._x + 2;
}
i = 0;
while (i < platforms) {
if (_global.myRoot["platform" + i].hitTest(player._x, player._y + 5, true)) {
riding[i] = true;
} else {
riding[i] = false;
if (_global.myRoot["hole" + i].hitTest(player._x, player._y + 5, true)) {
die();
}
}
i++;
}
i = 0;
while (i < platforms) {
if (movingR[i]) {
if (_global.myRoot["platform" + i]._x < ((_global.myRoot["hole" + i]._x + (_global.myRoot["hole" + i]._width / 2)) - (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x + 5;
if (riding[i]) {
player._x = player._x + 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = false;
movingL[i] = true;
wait[i] = 30;
}
}
if (movingL[i]) {
if (_global.myRoot["platform" + i]._x > ((_global.myRoot["hole" + i]._x - (_global.myRoot["hole" + i]._width / 2)) + (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x - 5;
if (riding[i]) {
player._x = player._x - 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = true;
movingL[i] = false;
wait[i] = 30;
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 220
stop();
setup();
reset = function () {
posNum = 0;
pos = new Array();
pos[0] = {x:170, y:340};
pos[1] = {x:170, y:265};
pos[2] = {x:245, y:265};
pos[3] = {x:320, y:265};
pos[4] = {x:395, y:265};
pos[5] = {x:470, y:265};
pos[6] = {x:470, y:190};
trapDoors = 2;
player._x = pos[0].x;
player._y = pos[0].y;
player.gotoAndStop("start");
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
if (pressCounter == 1) {
if (player._currentframe == 1) {
posNum++;
player._x = pos[posNum].x;
player._y = pos[posNum].y;
}
}
}
i = 0;
while (i < trapDoors) {
if (_global.myRoot["trapdoor" + i].hitmap.hitTest(player)) {
die();
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
if ((player._x == pos[6].x) and (player._y == pos[6].y)) {
levelPassed = true;
}
} else {
passedOrPaused();
}
};
Frame 221
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
player.bar.powerBar._visible = false;
speed = 2;
gravity = 2;
jumping = false;
movingR = new Array();
movingR[0] = false;
movingR[1] = false;
movingR[2] = false;
movingL = new Array();
movingL[0] = false;
movingL[1] = false;
movingL[2] = false;
riding = new Array();
riding[0] = false;
riding[1] = false;
riding[2] = false;
wait = new Array();
wait[0] = 40;
wait[1] = 40;
wait[2] = 40;
platforms = 3;
platformsTouched = new Array();
i = 0;
while (i < 11) {
platformsTouched[i] = false;
_global.myRoot["platform" + i]._alpha = 100;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
if (!jumping) {
charging = true;
player.bar.powerBar._visible = true;
if (player.bar.powerBar._width < 50) {
player.bar.powerBar._width = player.bar.powerBar._width + 2;
} else {
player.bar.powerBar._width = 50;
}
}
} else if (charging) {
fg.sounds.jump.play();
jumping = true;
charging = false;
jump = player.bar.powerBar._width / 5;
xJump = player.bar.powerBar._width / 10;
player.bar.powerBar._width = 1;
player.bar.powerBar._visible = false;
}
if (jumping) {
player.bar._alpha = 5;
player._x = player._x + xJump;
if (jump > 1) {
player._y = player._y - jump;
jump = jump * 0.9;
} else {
jump = 0;
if (player._y < playerY) {
player._y = player._y + gravity;
gravity = gravity * 1.1;
} else {
jumping = false;
player._y = playerY;
gravity = 2;
}
}
} else {
player.bar._alpha = 100;
i = 0;
while (i < platforms) {
if (_global.myRoot["platform" + i].hitTest(player._x - 4, player._y + 4, true) or _global.myRoot["platform" + i].hitTest(player._x + 4, player._y + 4, true)) {
riding[i] = true;
} else {
riding[i] = false;
}
if (_global.myRoot["hole" + i].hitTest(player._x, player._y + 4, true) and (!riding[i])) {
die();
}
i++;
}
}
i = 0;
while (i < platforms) {
if (_global.myRoot["platform" + i].hitTest(player._x - 4, player._y + 4, true) or _global.myRoot["platform" + i].hitTest(player._x + 4, player._y + 4, true)) {
if (!platformsTouched[i]) {
platformsTouched[i] = true;
} else if (_global.myRoot["platform" + i]._alpha == 0) {
die();
}
}
if (platformsTouched[i]) {
if (_global.myRoot["platform" + i]._alpha > 0) {
_global.myRoot["platform" + i]._alpha--;
} else {
_global.myRoot["platform" + i]._alpha = 0;
}
}
i++;
}
i = 0;
while (i < platforms) {
if (movingR[i]) {
if (_global.myRoot["platform" + i]._x < ((_global.myRoot["hole" + i]._x + (_global.myRoot["hole" + i]._width / 2)) - (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x + 5;
if (riding[i]) {
player._x = player._x + 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = false;
movingL[i] = true;
wait[i] = 30;
}
}
if (movingL[i]) {
if (_global.myRoot["platform" + i]._x > ((_global.myRoot["hole" + i]._x - (_global.myRoot["hole" + i]._width / 2)) + (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x - 5;
if (riding[i]) {
player._x = player._x - 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = true;
movingL[i] = false;
wait[i] = 30;
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 222
stop();
fg.levelNameText = "CLICK 2 MOVE!";
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
boulder._x = -100;
boulder._y = 340;
boulder.gotoAndPlay("start");
vel = 0;
acc = 1;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
shaking = true;
boulder._x = boulder._x + 2;
if (boulder.hitTest(player._x, player._y, true)) {
if (player._currentframe == 1) {
player.play();
boulder.play();
}
}
if ((pressed and (pressCounter == 1)) and gamezone) {
vel = vel + acc;
}
vel = vel * 0.95;
player._x = player._x + vel;
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 223
stop();
setup();
reset = function () {
speed = 1.5;
caveSpeed = 1.5;
cave._x = 1200;
caveBG._x = 1200;
platform._x = 100;
platform._y = 265;
player._x = platform._x;
player._y = platform._y;
player.gotoAndStop("start");
barriers = 3;
bats = 2;
bat0._x = 680;
bat0._y = 180;
bat1._x = 800;
bat1._y = 300;
i = 0;
while (i < bats) {
_global.myRoot["bat" + i].gotoAndStop("start");
i++;
}
batSpeed = new Array();
batSpeed[0] = 3;
batSpeed[1] = 2;
batMovingU = new Array();
batMovingU[0] = false;
batMovingU[1] = true;
batMovingD = new Array();
batMovingD[0] = true;
batMovingD[1] = false;
batCounter = new Array();
batCounter[0] = 20;
batCounter[1] = 20;
};
reset();
onEnterFrame = function () {
game();
if (((!levelPassed) and (!levelFailed)) and (!gamePaused)) {
if (cave._x > 640) {
cave._x = cave._x - caveSpeed;
} else {
cave._x = 640;
}
caveBG._x = cave._x;
platform._x = platform._x + speed;
player._x = platform._x;
player._y = platform._y;
if (cave.hitTest(player._x, player._y - player._height, true)) {
speed = 0;
caveSpeed = 0;
die();
}
if (cave.hitTest(platform._x, platform._y + platform._height, true)) {
speed = 0;
caveSpeed = 0;
die();
}
i = 0;
while (i < bats) {
if (_global.myRoot["bat" + i]._x > 0) {
_global.myRoot["bat" + i]._x = _global.myRoot["bat" + i]._x - batSpeed[i];
} else {
_global.myRoot["bat" + i]._x = 640;
}
if (batMovingU[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y--;
} else {
batMovingU[i] = false;
batMovingD[i] = true;
batCounter[i] = 20;
}
}
if (batMovingD[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y++;
} else {
batMovingU[i] = true;
batMovingD[i] = false;
batCounter[i] = 20;
}
}
if (_global.myRoot["bat" + i].hitTest(player)) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
die();
}
}
i++;
}
if (pressed and gamezone) {
if (speed > 0) {
platform._y = platform._y - 1;
}
} else if (speed > 0) {
platform._y = platform._y + 1;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 224
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
boomerang._x = player._x + 20;
boomerang._y = 324;
boomerang._rotation = 0;
boomerang.gotoAndStop("start");
throwing = false;
leaving = false;
returning = false;
boomerangSpeed = 15;
boomerangRotation = 15;
bats = 2;
bat0._x = 640;
bat0._y = 300;
bat1._x = 800;
bat1._y = 310;
i = 0;
while (i < bats) {
_global.myRoot["bat" + i].gotoAndStop("start");
i++;
}
batSpeed = new Array();
batSpeed[0] = 3;
batSpeed[1] = 2;
batMovingU = new Array();
batMovingU[0] = false;
batMovingU[1] = true;
batMovingD = new Array();
batMovingD[0] = true;
batMovingD[1] = false;
batCounter = new Array();
batCounter[0] = 20;
batCounter[1] = 20;
spiders = 3;
spider0._y = -70;
spider1._y = -70;
spider2._y = -70;
spiderDead = new Array();
spiderDead[0] = false;
spiderDead[1] = false;
spiderDead[2] = false;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
i = 0;
while (i < bats) {
if (_global.myRoot["bat" + i]._x > 0) {
_global.myRoot["bat" + i]._x = _global.myRoot["bat" + i]._x - batSpeed[i];
} else {
_global.myRoot["bat" + i]._x = 640;
}
if (batMovingU[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y--;
} else {
batMovingU[i] = false;
batMovingD[i] = true;
batCounter[i] = 20;
}
}
if (batMovingD[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y++;
} else {
batMovingU[i] = true;
batMovingD[i] = false;
batCounter[i] = 20;
}
}
if (_global.myRoot["bat" + i].hitTest(player)) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
die();
}
}
if (_global.myRoot["bat" + i].hitTest(boomerang) and throwing) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
fg.sounds.monster.play();
batSpeed[i] = 0;
_global.myRoot["bat" + i].play();
}
}
i++;
}
if ((pressed and (pressCounter == 1)) and gamezone) {
if (!throwing) {
fg.sounds.boomerang.play();
throwing = true;
leaving = true;
}
}
if (throwing) {
if (leaving) {
if (boomerangSpeed > 1) {
boomerang._x = boomerang._x + boomerangSpeed;
boomerangSpeed = boomerangSpeed * 0.9;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
leaving = false;
returning = true;
}
}
if (returning) {
if (boomerang._x > player._x) {
boomerang._x = boomerang._x - boomerangSpeed;
boomerangSpeed = boomerangSpeed * 1.1;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
boomerang._x = player._x + 20;
boomerangSpeed = 15;
leaving = false;
returning = false;
throwing = false;
}
}
} else {
boomerang._x = player._x + 20;
boomerang._rotation = 0;
}
i = 0;
while (i < spiders) {
if (!spiderDead[i]) {
if ((_global.myRoot["spider" + i]._x - player._x) < 100) {
if (_global.myRoot["spider" + i]._y < 120) {
_global.myRoot["spider" + i]._y = _global.myRoot["spider" + i]._y + 10;
} else {
_global.myRoot["spider" + i]._y = 120;
}
}
} else if (_global.myRoot["spider" + i]._y > -70) {
_global.myRoot["spider" + i]._y = _global.myRoot["spider" + i]._y - 10;
} else {
_global.myRoot["spider" + i]._y = -70;
}
if (_global.myRoot["spider" + i].hitTest(boomerang) and throwing) {
fg.sounds.monster.play();
spiderDead[i] = true;
}
if (_global.myRoot["spider" + i].hitTest(player)) {
die();
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 225
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
player.bar.powerBar._visible = false;
speed = 2;
gravity = 2;
jumping = false;
holes = 2;
traps = 2;
trapSet = new Array();
i = 0;
while (i < traps) {
trapSet[i] = false;
i++;
}
i = 0;
while (i < traps) {
_global.myRoot["trap" + i]._y = 340;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
if (pressed and gamezone) {
if (!jumping) {
charging = true;
player.bar.powerBar._visible = true;
if (player.bar.powerBar._width < 50) {
player.bar.powerBar._width = player.bar.powerBar._width + 2;
} else {
player.bar.powerBar._width = 50;
}
}
} else if (charging) {
fg.sounds.jump.play();
jumping = true;
charging = false;
jump = player.bar.powerBar._width / 5;
player.bar.powerBar._width = 1;
player.bar.powerBar._visible = false;
}
if (jumping) {
player.bar._alpha = 5;
if (jump > 1) {
player._y = player._y - jump;
jump = jump * 0.9;
} else {
jump = 0;
if (player._y < playerY) {
player._y = player._y + gravity;
gravity = gravity * 1.1;
} else {
jumping = false;
player._y = playerY;
gravity = 2;
}
}
} else {
player.bar._alpha = 100;
i = 0;
while (i < holes) {
if (_global.myRoot["hole" + i].hitTest(player._x - 4, player._y + 4, true) and _global.myRoot["hole" + i].hitTest(player._x + 4, player._y + 4, true)) {
if (player._currentframe == 1) {
die();
}
}
i++;
}
}
i = 0;
while (i < traps) {
if ((_global.myRoot["trap" + i]._x - player._x) < 100) {
if (!trapSet[i]) {
trapSet[i] = true;
}
}
if (trapSet[i]) {
if (_global.myRoot["trap" + i]._y > 310) {
_global.myRoot["trap" + i]._y = _global.myRoot["trap" + i]._y - 2;
} else {
_global.myRoot["trap" + i]._y = 310;
}
}
if (_global.myRoot["trap" + i].hitTest(player._x, player._y, true)) {
die();
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 226
stop();
setup();
crusher._y = -100;
movingD = true;
movingU = false;
wait = 30;
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
arrowTraps = 2;
i = 0;
while (i < arrowTraps) {
_global.myRoot["arrowTrap" + i]._y = 148;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
if (pressed and gamezone) {
speed = 0;
} else {
speed = 2;
}
i = 0;
while (i < arrowTraps) {
if ((_global.myRoot["arrowTrap" + i]._x - player._x) < 60) {
_global.myRoot["arrowTrap" + i]._y = _global.myRoot["arrowTrap" + i]._y + 7;
}
if (_global.myRoot["arrowTrap" + i].hitTest(player)) {
if (_global.myRoot["arrowTrap" + i]._y < (player._y - (player._width / 2))) {
die();
}
}
i++;
}
if (movingD) {
if (crusher._y < 120) {
crusher._y = crusher._y + 10;
} else {
if (wait == 30) {
fg.sounds.bounce.play();
shaking = true;
shakeCount = 10;
}
if (wait > 0) {
wait--;
} else {
movingD = false;
movingU = true;
wait = 30;
}
}
}
if (movingU) {
if (crusher._y > -100) {
crusher._y = crusher._y - 5;
} else if (wait > 0) {
wait--;
} else {
movingD = true;
movingU = false;
wait = 30;
}
}
if (crusher.hitTest(player)) {
die();
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 227
stop();
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
speed = 2;
ladders = 3;
bombs = 5;
i = 0;
while (i < bombs) {
_global.myRoot["bomb" + i]._visible = true;
_global.myRoot["bomb" + i]._alpha = 0;
_global.myRoot["bomb" + i]._y = -100;
i++;
}
bombPickA = random(2);
if (bombPickA == 0) {
bombPickB = 3;
bomb0._y = 240;
bomb3._y = 340;
bomb4._y = 240;
}
if (bombPickA == 1) {
bombPickB = 2;
bomb1._y = 340;
bomb2._y = 240;
bomb4._y = 240;
}
showA = false;
showB = false;
showC = false;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
player._x = player._x + speed;
i = 0;
while (i < ladders) {
if (_global.myRoot["ladder" + i].hitTest(player) and (player._currentframe == 1)) {
if (i == 0) {
showA = true;
}
if (i == 1) {
showB = true;
}
if (i == 2) {
showC = true;
}
if ((pressed and (pressCounter == 1)) and gamezone) {
fg.sounds.creak.play();
if (player._y == 340) {
player._y = 240;
} else {
player._y = 340;
}
}
}
i++;
}
if (showA) {
if (bomb0._alpha < 100) {
bomb0._alpha = bomb0._alpha + 5;
bomb1._alpha = bomb1._alpha + 5;
} else {
bomb0._alpha = 100;
bomb1._alpha = 100;
}
}
if (showB) {
if (bomb2._alpha < 100) {
bomb2._alpha = bomb2._alpha + 5;
bomb3._alpha = bomb3._alpha + 5;
} else {
bomb2._alpha = 100;
bomb3._alpha = 100;
}
}
if (showC) {
if (bomb4._alpha < 100) {
bomb4._alpha = bomb4._alpha + 5;
} else {
bomb4._alpha = 100;
}
}
i = 0;
while (i < bombs) {
if (_global.myRoot["bomb" + i].hitTest(player)) {
if (player._currentframe == 1) {
fg.sounds.explosion.play();
player.play();
_global.myRoot["bomb" + i]._visible = false;
explodeX = _global.myRoot["bomb" + i]._x;
explodeY = _global.myRoot["bomb" + i]._y;
explode();
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 228
stop();
setup();
movingR = new Array();
movingR[0] = true;
movingR[1] = true;
movingR[2] = false;
movingL = new Array();
movingL[0] = false;
movingL[1] = false;
movingL[2] = true;
riding = new Array();
riding[0] = false;
riding[1] = false;
riding[2] = false;
wait = new Array();
wait[0] = 30;
wait[1] = 20;
wait[2] = 30;
platforms = 3;
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
arrowTrapSet = new Array();
arrowTrapSet[0] = false;
arrowTrapSet[1] = false;
arrowTraps = 2;
i = 0;
while (i < arrowTraps) {
_global.myRoot["arrowTrap" + i]._y = 148;
i++;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
player._x = player._x + 2;
}
i = 0;
while (i < platforms) {
if (_global.myRoot["platform" + i].hitTest(player._x, player._y + 5, true)) {
riding[i] = true;
} else {
riding[i] = false;
if (_global.myRoot["hole" + i].hitTest(player._x, player._y + 5, true)) {
die();
}
}
i++;
}
i = 0;
while (i < platforms) {
if (movingR[i]) {
if (_global.myRoot["platform" + i]._x < ((_global.myRoot["hole" + i]._x + (_global.myRoot["hole" + i]._width / 2)) - (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x + 5;
if (riding[i]) {
player._x = player._x + 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = false;
movingL[i] = true;
wait[i] = 30;
}
}
if (movingL[i]) {
if (_global.myRoot["platform" + i]._x > ((_global.myRoot["hole" + i]._x - (_global.myRoot["hole" + i]._width / 2)) + (_global.myRoot["platform" + i]._width / 2))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x - 5;
if (riding[i]) {
player._x = player._x - 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = true;
movingL[i] = false;
wait[i] = 30;
}
}
i++;
}
i = 0;
while (i < arrowTraps) {
if ((_global.myRoot["arrowTrap" + i]._x - player._x) < 60) {
arrowTrapSet[i] = true;
}
if (_global.myRoot["arrowTrap" + i].hitTest(player)) {
if (player._currentframe == 1) {
player.play();
}
}
if (arrowTrapSet[i]) {
_global.myRoot["arrowTrap" + i]._y = _global.myRoot["arrowTrap" + i]._y + 10;
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 229
stop();
setup();
reset = function () {
posNum = 0;
pos = new Array();
pos[0] = {x:90, y:340};
pos[1] = {x:90, y:265};
pos[2] = {x:90, y:190};
pos[3] = {x:165, y:190};
pos[4] = {x:245, y:190};
pos[5] = {x:245, y:265};
pos[6] = {x:320, y:265};
pos[7] = {x:395, y:265};
pos[8] = {x:395, y:190};
pos[9] = {x:470, y:190};
pos[10] = {x:550, y:190};
pos[11] = {x:550, y:265};
pos[12] = {x:550, y:340};
trapDoors = 3;
player._x = pos[0].x;
player._y = pos[0].y;
player.gotoAndStop("start");
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
if (pressCounter == 1) {
if (player._currentframe == 1) {
posNum++;
player._x = pos[posNum].x;
player._y = pos[posNum].y;
}
}
}
i = 0;
while (i < trapDoors) {
if (_global.myRoot["trapdoor" + i].hitmap.hitTest(player)) {
die();
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
if ((player._x == pos[12].x) and (player._y == pos[12].y)) {
levelPassed = true;
}
} else {
passedOrPaused();
}
};
Frame 230
stop();
setup();
movingR = new Array();
movingR[0] = true;
movingR[1] = false;
movingL = new Array();
movingL[0] = false;
movingL[1] = true;
riding = new Array();
riding[0] = false;
riding[1] = false;
wait = new Array();
wait[0] = 40;
wait[1] = 40;
platforms = 2;
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
player.bar.powerBar._visible = false;
speed = 2;
gravity = 2;
jumping = false;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (pressed and gamezone) {
if (!jumping) {
charging = true;
player.bar.powerBar._visible = true;
if (player.bar.powerBar._width < 50) {
player.bar.powerBar._width = player.bar.powerBar._width + 2;
} else {
player.bar.powerBar._width = 50;
}
}
} else if (charging) {
fg.sounds.jump.play();
jumping = true;
charging = false;
jump = player.bar.powerBar._width / 5;
xJump = player.bar.powerBar._width / 10;
player.bar.powerBar._width = 1;
player.bar.powerBar._visible = false;
}
if (jumping) {
player.bar._alpha = 5;
player._x = player._x + xJump;
if (jump > 1) {
player._y = player._y - jump;
jump = jump * 0.9;
} else {
jump = 0;
if (player._y < playerY) {
player._y = player._y + gravity;
gravity = gravity * 1.1;
} else {
jumping = false;
player._y = playerY;
gravity = 2;
}
}
} else {
player.bar._alpha = 100;
}
i = 0;
while (i < platforms) {
if (_global.myRoot["platform" + i].hitTest(player._x - 4, player._y + 4, true) or _global.myRoot["platform" + i].hitTest(player._x + 4, player._y + 4, true)) {
riding[i] = true;
} else {
riding[i] = false;
if (_global.myRoot["hole" + i].hitTest(player._x, player._y + 4, true)) {
if (!jumping) {
die();
}
}
}
i++;
}
i = 0;
while (i < platforms) {
if (movingR[i]) {
if (_global.myRoot["platform" + i]._x < ((_global.myRoot["hole" + i]._x + (_global.myRoot["hole" + i]._width / 4)) - (_global.myRoot["platform" + i]._width / 4))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x + 5;
if (riding[i]) {
player._x = player._x + 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = false;
movingL[i] = true;
wait[i] = 40;
}
}
if (movingL[i]) {
if (_global.myRoot["platform" + i]._x > ((_global.myRoot["hole" + i]._x - (_global.myRoot["hole" + i]._width / 4)) + (_global.myRoot["platform" + i]._width / 4))) {
_global.myRoot["platform" + i]._x = _global.myRoot["platform" + i]._x - 5;
if (riding[i]) {
player._x = player._x - 5;
}
} else if (wait[i] > 0) {
wait[i]--;
} else {
movingR[i] = true;
movingL[i] = false;
wait[i] = 40;
}
}
i++;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 231
stop();
fg.levelNameText = "CLICK 2 MOVE!";
setup();
reset = function () {
player._x = playerX;
player._y = playerY;
player.gotoAndStop("start");
ceiling._y = -164;
vel = 0;
acc = 1;
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (ceiling._y < 0) {
ceiling._y = ceiling._y + 0.4;
shaking = true;
}
if (ceiling.hitTest(player._x, player._y - 40, true)) {
if (player._currentframe == 1) {
player.play();
}
}
if ((pressed and (pressCounter == 1)) and gamezone) {
vel = vel + acc;
}
vel = vel * 0.95;
player._x = player._x + vel;
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 232
stop();
setup();
reset = function () {
speed = 1.5;
caveSpeed = 1.5;
cave._x = 1200;
caveBG._x = 1200;
platform._x = 100;
platform._y = 265;
player._x = platform._x;
player._y = platform._y;
player.gotoAndStop("start");
barriers = 3;
bats = 3;
bat0._x = 680;
bat0._y = 160;
bat1._x = 800;
bat1._y = 240;
bat2._x = 980;
bat2._y = 320;
i = 0;
while (i < bats) {
_global.myRoot["bat" + i].gotoAndStop("start");
i++;
}
batSpeed = new Array();
batSpeed[0] = 4;
batSpeed[1] = 3;
batSpeed[2] = 5;
batMovingU = new Array();
batMovingU[0] = false;
batMovingU[1] = true;
batMovingU[2] = false;
batMovingD = new Array();
batMovingD[0] = true;
batMovingD[1] = false;
batMovingD[2] = true;
batCounter = new Array();
batCounter[0] = 20;
batCounter[1] = 20;
batCounter[2] = 20;
};
reset();
onEnterFrame = function () {
game();
if (((!levelPassed) and (!levelFailed)) and (!gamePaused)) {
if (cave._x > 640) {
cave._x = cave._x - caveSpeed;
} else {
cave._x = 640;
}
caveBG._x = cave._x;
platform._x = platform._x + speed;
player._x = platform._x;
player._y = platform._y;
if (cave.hitTest(player._x, player._y - player._height, true)) {
speed = 0;
caveSpeed = 0;
die();
}
if (cave.hitTest(platform._x, platform._y + platform._height, true)) {
speed = 0;
caveSpeed = 0;
die();
}
i = 0;
while (i < bats) {
if (_global.myRoot["bat" + i]._x > 0) {
_global.myRoot["bat" + i]._x = _global.myRoot["bat" + i]._x - batSpeed[i];
} else {
_global.myRoot["bat" + i]._x = 640;
}
if (batMovingU[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y--;
} else {
batMovingU[i] = false;
batMovingD[i] = true;
batCounter[i] = 20;
}
}
if (batMovingD[i]) {
if (batCounter[i] > 0) {
batCounter[i]--;
_global.myRoot["bat" + i]._y++;
} else {
batMovingU[i] = true;
batMovingD[i] = false;
batCounter[i] = 20;
}
}
if (_global.myRoot["bat" + i].hitTest(player)) {
if (_global.myRoot["bat" + i]._currentframe == 1) {
die();
}
}
i++;
}
if (pressed and gamezone) {
if (speed > 0) {
platform._y = platform._y - 1;
}
} else if (speed > 0) {
platform._y = platform._y + 1;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
passedOrPaused();
}
};
Frame 323
stop();
setup();
bossDead = false;
reset = function () {
player.gotoAndStop("start");
player._x = 150;
player._y = playerY;
speed = 2;
boomerang._x = player._x + 20;
boomerang._y = 324;
boomerang._rotation = 0;
boomerang.gotoAndStop("start");
throwing = false;
leaving = false;
returning = false;
boomerangSpeed = 15;
boomerangRotation = 15;
rockFalling = new Array();
i = 0;
while (i < 4) {
rockFalling[i] = false;
_global.myRoot["rock" + i]._y = 0;
i++;
}
if (!bossDead) {
boss.gotoAndPlay("start");
boss.bar.powerBar._width = 50;
player.adventurerBoss.gotoAndStop(1);
boomerang._visible = true;
} else {
player.adventurerBoss.gotoAndStop(2);
boomerang._visible = false;
}
};
reset();
onEnterFrame = function () {
game();
if ((!levelPassed) and (!gamePaused)) {
if (hole.hitTest(player._x, player._y + 5, true)) {
die();
}
if (boss._currentframe == 10) {
fg.sounds.bounce.play();
rockFalling[0] = true;
shakeCount = 10;
shaking = true;
}
if (boss._currentframe == 40) {
fg.sounds.bounce.play();
rockFalling[1] = true;
shakeCount = 10;
shaking = true;
}
if (boss._currentframe == 70) {
fg.sounds.bounce.play();
rockFalling[2] = true;
shakeCount = 10;
shaking = true;
}
if (boss._currentframe == 100) {
fg.sounds.bounce.play();
rockFalling[3] = true;
shakeCount = 10;
shaking = true;
}
i = 0;
while (i < 4) {
if (!rockFalling[i]) {
_global.myRoot["rock" + i]._x = player._x;
} else if (_global.myRoot["rock" + i]._y < 480) {
_global.myRoot["rock" + i]._y = _global.myRoot["rock" + i]._y + 7;
} else {
rockFalling[i] = false;
_global.myRoot["rock" + i]._y = 0;
}
if (_global.myRoot["rock" + i].hitTest(player)) {
if (_global.myRoot["rock" + i]._y < (player._y - (player._width / 2))) {
die();
}
}
i++;
}
if (!bossDead) {
boss.play();
if (player.hitTest(boss.bossHitmap)) {
die();
}
if (boomerang.hitTest(boss.bossHitmap)) {
if (leaving) {
leaving = false;
returning = true;
if (boss.bar.powerBar._width > 0) {
fg.sounds.hit.play();
boss.bar.powerBar._width = boss.bar.powerBar._width - 2;
} else {
fg.sounds.squeal.play();
boss.bar.powerBar._width = 0;
boss.gotoAndPlay("die");
bossDead = true;
boomerang.play();
player.adventurerBoss.play();
}
}
}
if (!throwing) {
fg.sounds.boomerang.play();
throwing = true;
leaving = true;
}
if (throwing) {
if (leaving) {
if (boomerangSpeed > 1) {
boomerang._x = boomerang._x + boomerangSpeed;
boomerangSpeed = boomerangSpeed * 0.9;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
leaving = false;
returning = true;
}
}
if (returning) {
if (boomerang._x > player._x) {
boomerang._x = boomerang._x - boomerangSpeed;
boomerangSpeed = boomerangSpeed * 1.1;
boomerang._rotation = boomerang._rotation + boomerangRotation;
} else {
boomerang._x = player._x + 20;
boomerangSpeed = 15;
leaving = false;
returning = false;
throwing = false;
}
}
} else {
boomerang._x = player._x + 20;
boomerang._rotation = 0;
}
}
player._x = player._x + speed;
if ((pressed and (pressCounter == 1)) and gamezone) {
speed = speed * -1;
}
if (player._currentframe == player._totalframes) {
reset();
}
doorReached();
} else {
boss.stop();
passedOrPaused();
}
};
Frame 324
stopAllSounds();
Frame 325
stop();
score = clicks;
scoreText = clicks;
if (score < 1000) {
achievements.gotoAndStop("none");
} else if ((score > 1000) and (score < 2000)) {
achievements.gotoAndStop("baldyHead");
} else if ((score > 2000) and (score < 3000)) {
achievements.gotoAndStop("knockyKnees");
} else if ((score > 3000) and (score < 4000)) {
achievements.gotoAndStop("boggleEyes");
} else if ((score > 4000) and (score < 5000)) {
achievements.gotoAndStop("wartyNose");
} else if (score > 5000) {
achievements.gotoAndStop("hairyToes");
}
buttonLink.onRelease = function () {
getURL ("http://www.ninjadoodle.com/", "_blank");
};
buttonReward.onRelease = function () {
getURL ("http://www.ninjadoodle.com/", "_blank");
};
menu = false;
buttonMenu.onPress = function () {
menu = true;
submit = false;
fg.play();
};
buttonSubmit.onPress = function () {
menu = false;
submit = true;
fg.play();
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.q.onRelease = function () {
trace(_quality);
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop(1);
} else {
fg.speaker.gotoAndStop(2);
}
if (_quality == "HIGH") {
fg.q.gotoAndStop(1);
} else if (_quality == "MEDIUM") {
fg.q.gotoAndStop(2);
} else if (_quality == "LOW") {
fg.q.gotoAndStop(3);
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndStop ("menu");
}
if (submit) {
gotoAndStop ("submit");
}
}
};
Frame 326
stop();
i = 0;
while (i < 20) {
_global.myRoot.monsta["circle" + i].gotoAndStop(2);
_global.myRoot.monsta["semicircle" + i].gotoAndStop(2);
_global.myRoot.monsta["rectangle" + i].gotoAndStop(2);
_global.myRoot.monsta["triangle" + i].gotoAndStop(2);
_global.myRoot.monsta["almond" + i].gotoAndStop(2);
_global.myRoot.monsta["square" + i].gotoAndStop(2);
_global.myRoot.monsta["arc" + i].gotoAndStop(2);
_global.myRoot.monsta["line" + i].gotoAndStop(2);
_global.myRoot.monsta["tear" + i].gotoAndStop(2);
_global.myRoot.monsta["moon" + i].gotoAndStop(2);
i++;
}
menu = false;
buttonMenu.onPress = function () {
menu = true;
fg.play();
};
buttonLink.onRelease = function () {
getURL ("http://www.ninjadoodle.com/", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.cog.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndPlay ("menu");
}
}
};
Frame 327
stop();
i = 0;
while (i < 20) {
_global.myRoot.monsta["circle" + i].gotoAndStop(2);
_global.myRoot.monsta["semicircle" + i].gotoAndStop(2);
_global.myRoot.monsta["rectangle" + i].gotoAndStop(2);
_global.myRoot.monsta["triangle" + i].gotoAndStop(2);
_global.myRoot.monsta["almond" + i].gotoAndStop(2);
_global.myRoot.monsta["square" + i].gotoAndStop(2);
_global.myRoot.monsta["arc" + i].gotoAndStop(2);
_global.myRoot.monsta["line" + i].gotoAndStop(2);
_global.myRoot.monsta["tear" + i].gotoAndStop(2);
_global.myRoot.monsta["moon" + i].gotoAndStop(2);
i++;
}
menu = false;
buttonMenu.onPress = function () {
menu = true;
fg.play();
};
buttonLink.onRelease = function () {
getURL ("http://www.ninjadoodle.com/", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.cog.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndPlay ("menu");
}
}
};
Symbol 3 MovieClip [explosion] Frame 20
stop();
this.removeMovieClip();
Symbol 27 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 30 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 30 MovieClip Frame 218
_global.myRoot.play();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 100 Button
on (press) {
_global.myRoot.gamePaused = false;
_global.myRoot.fg.pauseGame.play();
_global.myRoot.fg.pausedMenu.play();
}
Symbol 103 Button
on (press) {
_global.myRoot.quit = true;
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
play();
Symbol 105 MovieClip Frame 10
stop();
Symbol 105 MovieClip Frame 11
play();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
play();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
play();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
play();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
play();
Symbol 118 MovieClip Frame 11
gotoAndStop (1);
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
play();
Symbol 121 MovieClip Frame 11
gotoAndStop (1);
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
play();
Symbol 124 MovieClip Frame 11
gotoAndStop (1);
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
play();
Symbol 127 MovieClip Frame 11
gotoAndStop (1);
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
play();
Symbol 130 MovieClip Frame 11
gotoAndStop (1);
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
play();
Symbol 133 MovieClip Frame 11
gotoAndStop (1);
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
play();
Symbol 136 MovieClip Frame 11
gotoAndStop (1);
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
play();
Symbol 139 MovieClip Frame 11
gotoAndStop (1);
Symbol 144 MovieClip Frame 1
play();
Symbol 144 MovieClip Frame 11
stop();
Symbol 144 MovieClip Frame 12
play();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
play();
Symbol 154 MovieClip Frame 20
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
play();
Symbol 159 MovieClip Frame 20
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
play();
Symbol 165 MovieClip Frame 20
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 1
play();
Symbol 172 MovieClip Frame 11
stop();
Symbol 172 MovieClip Frame 12
play();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
play();
Symbol 184 MovieClip Frame 20
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
play();
Symbol 201 MovieClip Frame 20
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 2
play();
Symbol 273 MovieClip Frame 20
stop();
Symbol 310 MovieClip Frame 1
play();
Symbol 310 MovieClip Frame 224
gotoAndPlay ("start");
Symbol 310 MovieClip Frame 225
play();
Symbol 310 MovieClip Frame 250
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
play();
Symbol 312 MovieClip Frame 20
stop();
Symbol 324 MovieClip Frame 30
stop();
Symbol 325 MovieClip Frame 2
play();
Symbol 325 MovieClip Frame 60
stop();