Frame 1
stop();
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
trace(counter);
var counter = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_xscale = counter;
if (counter >= 100) {
_root.play();
} else {
_xscale = counter;
}
}
Frame 2
stop();
Frame 3
stopAllSounds();
var muteMusic = false;
var muteSound = false;
var pauseGame = false;
var StageHeight = 500;
var StageWidth = 700;
deathSound = new Sound(this);
deathSound.attachSound("death");
loopSound = new Sound(this);
loopSound.attachSound("loopSound");
loopSound.start(0, 999);
bellSound = new Sound(this);
bellSound.attachSound("bell");
clickSound = new Sound(this);
clickSound.attachSound("click");
bounceSound = new Sound(this);
bounceSound.attachSound("bounce");
Frame 4
stop();
Instance of Symbol 39 MovieClip in Frame 4
onClipEvent (load) {
if (_root.muteMusic) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
stopAllSounds();
_root.muteMusic = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.loopSound.start(0, 999);
_root.muteMusic = false;
gotoAndStop (1);
}
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Instance of Symbol 42 MovieClip in Frame 4
onClipEvent (load) {
if (_root.muteSound) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
_root.muteSound = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.muteSound = false;
gotoAndStop (1);
}
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Instance of Symbol 46 MovieClip in Frame 4
onClipEvent (load) {
if (_root._quality == "HIGH") {
this.gotoAndStop(1);
} else if (_root._quality == "MEDIUM") {
this.gotoAndStop(2);
} else if (_root._quality == "LOW") {
this.gotoAndStop(3);
}
}
on (release) {
if (_currentframe == 1) {
_root._quality = "medium";
gotoAndStop (2);
} else if (_currentframe == 2) {
_root._quality = "low";
gotoAndStop (3);
} else if (_currentframe == 3) {
_root._quality = "high";
gotoAndStop (1);
}
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Instance of Symbol 56 MovieClip in Frame 4
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Instance of Symbol 61 MovieClip in Frame 4
on (release) {
getURL ("http://www.kchampgames.com/", "_blank");
}
Instance of Symbol 89 MovieClip "instructions" in Frame 4
onClipEvent (load) {
_visible = false;
}
Frame 5
function addCommas(n) {
var _local1 = n.toString();
var _local3 = 1;
if (_local1.indexOf(".") == -1) {
var _local2 = "";
_local1 = _local1.split("");
} else {
var _local2 = _local1.substr(_local1.indexOf("."), _local1.length);
_local1 = _local1.substr(0, _local1.indexOf(".")).split("");
}
for (var _local4 in _local1) {
var _local2 = _local1[_local4] + _local2;
if ((_local3++) == 3) {
_local3 = 1;
_local2 = (((isNaN(_local1[0]) && (_local4 > 1)) || ((!isNaN(_local1[0])) && (_local4 >= 1))) ? ("," + _local2) : (_local2));
}
}
return(_local2);
}
function finishedLevel() {
if (Key.isDown(32)) {
_root.levelScore.play();
_root.levelScore._visible = true;
_root.score = _root.score + 5000;
_root.score = _root.score + (_root.targetSpace - _root.spaceLeft);
_root.bonus_mc.bonus = _root.targetSpace - _root.spaceLeft;
_root.bonus_mc._visible = true;
_root.bonus_mc.swapDepths(_root.getNextHighestDepth());
_root.bonus_mc.play();
nextLevel();
}
}
function nextLevel() {
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
levelNumber++;
clearEnemies();
if (levelNumber == 2) {
spawnEnemy(0, 220, 220, 1, 2, 1);
targetSpace = 10000;
}
if (levelNumber == 3) {
spawnEnemy(0, 220, 220, -2, 4, 1);
targetSpace = 10000;
}
if (levelNumber == 4) {
spawnEnemy(0, 220, 220, -2, 2, 0.5);
spawnEnemy(1, 320, 120, 2, 2, 0.5);
targetSpace = 12500;
}
if (levelNumber == 5) {
spawnEnemy(0, 220, 220, -3, 2, 0.75);
spawnEnemy(1, 320, 120, 2, 2, 0.5);
targetSpace = 12500;
}
if (levelNumber == 6) {
spawnEnemy(1, 220, 120, 0.2, 1, 2);
spawnEnemy(0, 220, 220, -3, 5, 0.4);
targetSpace = 20000;
}
if (levelNumber == 7) {
spawnEnemy(0, 220, 220, -2, -2, 0.5);
spawnEnemy(1, 220, 220, -2, 2, 0.5);
spawnEnemy(2, 220, 220, 2, -2, 0.5);
targetSpace = 15000;
}
if (levelNumber == 8) {
spawnEnemy(0, 220, 220, 5, 0, 1);
spawnEnemy(1, 220, 220, 0, 5, 1);
targetSpace = 15000;
}
if (levelNumber == 9) {
spawnEnemy(0, 220, 220, 4, 0, 1);
spawnEnemy(1, 220, 220, 0, 4, 1);
spawnEnemy(2, 220, 220, -4, 0, 1);
spawnEnemy(3, 220, 220, 0, -4, 1);
targetSpace = 16000;
}
if (levelNumber == 10) {
spawnEnemy(0, 220, 220, 9, -5, 1);
targetSpace = 14000;
}
if (levelNumber == 11) {
spawnEnemy(0, 220, 220, 9, 8, 0.75);
targetSpace = 11000;
}
if (levelNumber == 12) {
spawnEnemy(0, 220, 220, 4, 3, 0.5);
targetSpace = 3000;
}
if (levelNumber == 13) {
spawnEnemy(0, 220, 220, 4, 3, 0.5);
spawnEnemy(1, 220, 220, -4, -3, 0.5);
targetSpace = 6000;
}
if (levelNumber == 14) {
spawnEnemy(0, 220, 220, 1, 3, 2);
spawnEnemy(2, 220, 220, -5, -3, 1);
spawnEnemy(1, 220, 220, -4, -3, 0.5);
targetSpace = 25000;
}
if (levelNumber == 15) {
spawnEnemy(0, 220, 220, 2, 3, 2);
spawnEnemy(1, 220, 220, -4, -3, 2);
spawnEnemy(2, 220, 220, 3, -3, 2);
targetSpace = 35000;
}
if (levelNumber == 16) {
spawnEnemy(3, 120, 220, 3, -1, 2);
spawnEnemy(1, 220, 220, -4, -3, 1);
spawnEnemy(2, 220, 120, 3, -3, 1.5);
spawnEnemy(0, 320, 320, 2, 6, 0.5);
targetSpace = 30000;
}
if (levelNumber == 17) {
spawnEnemy(0, 220, 220, -4, -3, 1);
spawnEnemy(1, 220, 220, -3, -4, 1);
spawnEnemy(2, 220, 220, 4, -3, 1);
spawnEnemy(3, 220, 220, 3, -4, 1);
spawnEnemy(4, 220, 220, -4, 3, 1);
spawnEnemy(5, 220, 220, -3, 4, 1);
spawnEnemy(6, 220, 220, 4, 3, 1);
spawnEnemy(7, 220, 220, 3, 4, 1);
targetSpace = 50000;
}
if (levelNumber == 18) {
spawnEnemy(0, 220, 220, 2, -3, 1);
targetSpace = 5000;
}
if (levelNumber == 19) {
spawnEnemy(0, 220, 220, -2, -9, 1);
spawnEnemy(1, 300, 220, 7, 4, 1);
targetSpace = 20000;
}
if (levelNumber == 20) {
spawnEnemy(0, 220, 220, 4, -3, 0.5);
spawnEnemy(1, 220, 220, -7, -5, 0.5);
spawnEnemy(2, 220, 220, -3, 9, 0.5);
spawnEnemy(3, 220, 220, 5, -7, 0.5);
targetSpace = 22500;
}
if (levelNumber == 21) {
spawnCircle(0, 220, 220, 4, -3, 1, 0.3);
targetSpace = 22500;
}
if (levelNumber == 22) {
spawnCircle(0, 220, 220, 5, -3, 0.75, 0.3);
spawnCircle(1, 220, 220, -5, -6, 0.75, 0.3);
targetSpace = 20000;
}
if (levelNumber == 23) {
spawnCircle(0, 220, 220, 5, -3, 0.75, 0.3);
spawnCircle(1, 220, 220, -5, -6, 0.75, 0.3);
spawnEnemy(2, 220, 220, 5, 7, 0.5);
targetSpace = 20000;
}
if (levelNumber == 24) {
spawnEnemy(4, 220, 220, -4, 2, 1);
spawnCircle(1, 220, 220, -5, -6, 1, 0.3);
spawnEnemy(3, 220, 220, 4, 7, 0.5);
spawnCircle(0, 220, 220, 5, -3, 0.5, 0.3);
targetSpace = 25000;
}
if (levelNumber == 25) {
spawnEnemy(5, 220, 220, 6, -3, 1.5);
spawnCircle(2, 220, 220, 5, 6, 1.5, 0.3);
spawnCircle(1, 220, 220, -5, -6, 1, 0.3);
spawnEnemy(4, 220, 220, -4, 2, 1);
spawnEnemy(3, 220, 220, 4, 7, 0.5);
spawnCircle(0, 220, 220, 5, -3, 0.5, 0.3);
targetSpace = 35000;
}
if (levelNumber == 26) {
_root.gotoAndStop("results");
}
resetStage();
}
function loseLife() {
_root.score = _root.score - 1000;
_root.loseScore._visible = true;
_root.loseScore.play();
_root.lives--;
_root.resetStage();
if (!_root.muteSound) {
_root.deathSound.start(0, 1);
}
}
function resetStage() {
_root.nextLev._visible = false;
_root.cover.swapDepths(_root.getNextHighestDepth());
_root.cover._visible = true;
_root.cover.swapDepths(_root.getNextHighestDepth());
_root.cover.gotoAndPlay(2);
_root.wallTop._x = 35;
_root.wallTop._y = 45;
_root.wallBottom._x = 35;
_root.wallBottom._y = 465;
_root.wallLeft._x = 15;
_root.wallLeft._y = 65;
_root.wallRight._x = 435;
_root.wallRight._y = 65;
i = 0;
while (i < 25) {
_root["enemy" + i]._x = _root["enemy" + i].defaultX;
_root["enemy" + i]._y = _root["enemy" + i].defaultY;
_root["enemy" + i].xspeed = _root["enemy" + i].defaultxsp;
_root["enemy" + i].yspeed = _root["enemy" + i].defaultysp;
i++;
}
i = 0;
while (i < 25) {
_root["circle" + i]._x = _root["circle" + i].defaultX;
_root["circle" + i]._y = _root["circle" + i].defaultY;
_root["circle" + i].xspeed = _root["circle" + i].defaultxsp;
_root["circle" + i].yspeed = _root["circle" + i].defaultysp;
i++;
}
}
function resetGame() {
_root.score = 0;
_root.levelNumber = 1;
_root.resetStage();
_root.gotoAndStop("game");
}
function spawnEnemy(number, xpos, ypos, xsp, ysp, scale) {
duplicateMovieClip (enemy, "enemy" + number, _root.getNextHighestDepth());
_root["enemy" + number]._x = xpos;
_root["enemy" + number]._y = ypos;
_root["enemy" + number].defaultX = xpos;
_root["enemy" + number].defaultY = ypos;
_root["enemy" + number].defaultxsp = xsp;
_root["enemy" + number].defaultysp = ysp;
_root["enemy" + number].xspeed = xsp;
_root["enemy" + number].yspeed = ysp;
_root["enemy" + number]._xscale = _root["enemy" + number]._xscale * scale;
_root["enemy" + number]._yscale = _root["enemy" + number]._yscale * scale;
}
function spawnCircle(number, xpos, ypos, xsp, ysp, scale, variation) {
duplicateMovieClip (circle, "circle" + number, _root.getNextHighestDepth());
_root["circle" + number]._x = xpos;
_root["circle" + number]._y = ypos;
_root["circle" + number].defaultX = xpos;
_root["circle" + number].defaultY = ypos;
_root["circle" + number].defaultxsp = xsp;
_root["circle" + number].defaultysp = ysp;
_root["circle" + number].xspeed = xsp;
_root["circle" + number].yspeed = ysp;
_root["circle" + number].variation = variation;
_root["circle" + number]._xscale = _root["circle" + number]._xscale * scale;
_root["circle" + number]._yscale = _root["circle" + number]._yscale * scale;
}
function clearEnemies() {
i = 0;
while (i < 25) {
removeMovieClip("enemy" + i);
removeMovieClip("circle" + i);
i++;
}
}
stop();
var wallSpeed = 3;
var spaceLeft = Math.round((_root.wallRight._x - (_root.wallLeft._x + _root.wallLeft._width)) * (_root.wallBottom._y - (_root.wallTop._y + _root.wallTop._height)));
var spaceLeftTxt;
var levelNumber = 1;
var targetSpace = 15000;
var targetSpaceTxt;
var score = 0;
var scoreTxt;
var j = 0;
spawnEnemy(0, 220, 220, 0.5, 1, 1);
onEnterFrame = function () {
spaceLeft = Math.round((_root.wallRight._x - (_root.wallLeft._x + _root.wallLeft._width)) * (_root.wallBottom._y - (_root.wallTop._y + _root.wallTop._height)));
if (spaceLeft < targetSpace) {
finishedLevel();
}
spaceLeftTxt = _root.addCommas(spaceLeft);
targetSpaceTxt = _root.addCommas(targetSpace);
scoreTxt = _root.addCommas(score);
if (Key.isDown(32)) {
if (_root.cover._currentframe == 1) {
}
}
if (((Key.isDown(39) or Key.isDown(37)) or Key.isDown(38)) or Key.isDown(40)) {
j++;
if (j > 2) {
if (!_root.muteSound) {
}
j = 0;
}
}
};
Instance of Symbol 86 MovieClip "enemy" in Frame 5
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (this.hitTest(_root.wallTop)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallTop.moving) {
_root.loseLife();
} else {
yspeed = Math.abs(yspeed);
i = 0;
while (i < 3) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 3;
while (i < 6) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - 180;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
if (this.hitTest(_root.wallBottom)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallBottom.moving) {
_root.loseLife();
} else {
yspeed = Math.abs(yspeed) * -1;
i = 7;
while (i < 9) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 10;
while (i < 12) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
if (this.hitTest(_root.wallLeft)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallLeft.moving) {
_root.loseLife();
} else {
xspeed = Math.abs(xspeed);
i = 13;
while (i < 15) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 16;
while (i < 18) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
if (this.hitTest(_root.wallRight)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallRight.moving) {
_root.loseLife();
} else {
xspeed = Math.abs(xspeed) * -1;
i = 19;
while (i < 21) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 22;
while (i < 24) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
}
Instance of Symbol 96 MovieClip in Frame 5
onClipEvent (enterFrame) {
_x = _root.wallLeft._x;
_y = _root.wallBottom._y;
if (_root.wallBottom.moving) {
gotoAndStop (2);
} else if (_root.wallLeft.moving) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
}
Instance of Symbol 97 MovieClip in Frame 5
onClipEvent (enterFrame) {
_x = _root.wallRight._x;
_y = _root.wallBottom._y;
if (_root.wallBottom.moving) {
gotoAndStop (2);
} else if (_root.wallRight.moving) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
}
Instance of Symbol 98 MovieClip in Frame 5
onClipEvent (enterFrame) {
_x = _root.wallLeft._x;
_y = _root.wallTop._y;
if (_root.wallTop.moving) {
gotoAndStop (2);
} else if (_root.wallLeft.moving) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
}
Instance of Symbol 99 MovieClip in Frame 5
onClipEvent (enterFrame) {
_x = _root.wallRight._x;
_y = _root.wallTop._y;
if (_root.wallTop.moving) {
gotoAndStop (2);
} else if (_root.wallRight.moving) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
}
Instance of Symbol 104 MovieClip "wallRight" in Frame 5
onClipEvent (load) {
var moving = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
moving = true;
_x = (_x - _root.wallSpeed);
} else {
gotoAndStop (1);
moving = false;
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
_y = (_root.wallTop._y + _root.wallTop._height);
_height = (_root.wallBottom._y - (_root.wallTop._y + _root.wallTop._height));
_root.wallTop._x = _root.wallLeft._x + _root.wallLeft._width;
_root.wallTop._width = _root.wallRight._x - (_root.wallLeft._x + _root.wallLeft._width);
_root.wallBottom._x = _root.wallLeft._x + _root.wallLeft._width;
_root.wallBottom._width = _root.wallRight._x - (_root.wallLeft._x + _root.wallLeft._width);
}
Instance of Symbol 105 MovieClip "wallLeft" in Frame 5
onClipEvent (load) {
var moving = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
gotoAndStop (2);
moving = true;
_x = (_x + _root.wallSpeed);
} else {
gotoAndStop (1);
moving = false;
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
_y = (_root.wallTop._y + _root.wallTop._height);
_height = (_root.wallBottom._y - (_root.wallTop._y + _root.wallTop._height));
_root.wallTop._x = _root.wallLeft._x + _root.wallLeft._width;
_root.wallTop._width = _root.wallRight._x - (_root.wallLeft._x + _root.wallLeft._width);
_root.wallBottom._x = _root.wallLeft._x + _root.wallLeft._width;
_root.wallBottom._width = _root.wallRight._x - (_root.wallLeft._x + _root.wallLeft._width);
}
Instance of Symbol 106 MovieClip "wallTop" in Frame 5
onClipEvent (load) {
var moving = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
gotoAndStop (2);
moving = true;
_y = (_y + _root.wallSpeed);
} else {
gotoAndStop (1);
moving = false;
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
}
Instance of Symbol 107 MovieClip "wallBottom" in Frame 5
onClipEvent (load) {
var moving = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
gotoAndStop (2);
moving = true;
_y = (_y - _root.wallSpeed);
} else {
gotoAndStop (1);
moving = false;
}
if (_root.spaceLeft < _root.targetSpace) {
gotoAndStop (3);
}
_x = (_root.wallLeft._x + _root.wallLeft._width);
_width = (_root.wallRight._x - (_root.wallLeft._x + _root.wallLeft._width));
}
Instance of Symbol 115 MovieClip in Frame 5
onClipEvent (enterFrame) {
level_txt.text = ("Level " + _root.levelNumber) + "/25";
}
Instance of Symbol 117 MovieClip "nextLev" in Frame 5
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.spaceLeft < _root.targetSpace) {
_root.nextLev.swapDepths(_root.getNextHighestDepth());
this._visible = true;
} else {
this._visible = false;
}
if (_root.cover._visible) {
this._visible = false;
}
}
Instance of Symbol 120 MovieClip "bonus_mc" in Frame 5
onClipEvent (load) {
var bonus = 0;
_visible = false;
}
onClipEvent (enterFrame) {
bonusInside.bonus_txt.text = "Bonus +" + bonus;
}
Instance of Symbol 125 MovieClip "levelScore" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 128 MovieClip "loseScore" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 132 MovieClip "circle" in Frame 5
onClipEvent (load) {
var maxSpeed = 8;
var minSpeed = 2;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * ((1 + (Math.random() * variation)) - (variation / 2));
yspeed = yspeed * ((1 + (Math.random() * variation)) - (variation / 2));
if (Math.abs(xspeed) > maxSpeed) {
if (xspeed > 0) {
xspeed = maxSpeed;
} else {
xspeed = maxSpeed * -1;
}
}
if (Math.abs(yspeed) > maxSpeed) {
if (yspeed > 0) {
yspeed = maxSpeed;
} else {
yspeed = maxSpeed * -1;
}
}
if (Math.abs(xspeed) < minSpeed) {
if (xspeed > 0) {
xspeed = minSpeed;
} else {
xspeed = minSpeed * -1;
}
}
if (Math.abs(yspeed) < minSpeed) {
if (yspeed > 0) {
yspeed = minSpeed;
} else {
yspeed = minSpeed * -1;
}
}
if (this.hitTest(_root.wallTop)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallTop.moving) {
_root.loseLife();
} else {
yspeed = Math.abs(yspeed);
i = 0;
while (i < 3) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 3;
while (i < 6) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - 180;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
if (this.hitTest(_root.wallBottom)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallBottom.moving) {
_root.loseLife();
} else {
yspeed = Math.abs(yspeed) * -1;
i = 7;
while (i < 9) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 10;
while (i < 12) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
if (this.hitTest(_root.wallLeft)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallLeft.moving) {
_root.loseLife();
} else {
xspeed = Math.abs(xspeed);
i = 13;
while (i < 15) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 16;
while (i < 18) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation + (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
if (this.hitTest(_root.wallRight)) {
if (!_root.muteSound) {
_root.bounceSound.start(0, 1);
}
if (_root.wallRight.moving) {
_root.loseLife();
} else {
xspeed = Math.abs(xspeed) * -1;
i = 19;
while (i < 21) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
i = 22;
while (i < 24) {
duplicateMovieClip (_root.sparklet, "sparklet" + i, _root.getNextHighestDepth());
_root["sparklet" + i]._x = _x + _width;
_root["sparklet" + i]._y = _y + _height;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - 90;
_root["sparklet" + i]._rotation = _root["sparklet" + i]._rotation - (Math.random() * 90);
_root["sparklet" + i].play();
i++;
}
}
}
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (load) {
if (_root.muteMusic) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
stopAllSounds();
_root.muteMusic = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.loopSound.start(0, 999);
_root.muteMusic = false;
gotoAndStop (1);
}
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (load) {
if (_root.muteSound) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
_root.muteSound = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.muteSound = false;
gotoAndStop (1);
}
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Instance of Symbol 147 MovieClip "cover" in Frame 5
onClipEvent (load) {
_visible = false;
}
Frame 6
removeMovieClip(_root.cover);
var playerName = "Unnamed";
stop();
Instance of Symbol 160 MovieClip in Frame 6
on (release) {
getURL ("http://rankz.armorbot.com/shrink/", "_blank");
}
Instance of Symbol 56 MovieClip in Frame 6
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Instance of Symbol 61 MovieClip in Frame 6
on (release) {
getURL ("http://www.kchampgames.com/", "_blank");
}
Frame 7
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.playerName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("Mjk5NGolZSVhJW4lcw==", "TWN6dmhlVUk=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/shrink/", "_blank");
Frame 8
gotoAndStop ("menu");
Symbol 7 MovieClip [sparklet] Frame 1
if (_name == "sparklet") {
stop();
}
Symbol 7 MovieClip [sparklet] Frame 11
removeMovieClip(this);
Symbol 161 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 23 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 26 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 26 MovieClip Frame 218
_root.play();
Symbol 31 MovieClip Frame 30
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
stop();
Symbol 52 Button
on (release) {
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
_root.gotoAndStop("game");
}
Symbol 55 Button
on (release) {
_root.instructions._visible = true;
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Symbol 64 Button
on (release) {
_root.instructions._visible = false;
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Symbol 67 Button
on (release) {
_root.gotoAndStop("game");
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
}
Instance of Symbol 84 MovieClip in Symbol 86 MovieClip Frame 1
onClipEvent (load) {
var random8 = random(8);
if (random8 == 0) {
new Color(this).setRGB(16711680);
}
if (random8 == 1) {
new Color(this).setRGB(16750848);
}
if (random8 == 2) {
new Color(this).setRGB(13816322);
}
if (random8 == 3) {
new Color(this).setRGB(52224);
}
if (random8 == 4) {
new Color(this).setRGB(255);
}
if (random8 == 5) {
new Color(this).setRGB(6684825);
}
if (random8 == 6) {
new Color(this).setRGB(0);
}
if (random8 == 7) {
new Color(this).setRGB(16777215);
}
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 3
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Symbol 97 MovieClip Frame 3
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 3
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 3
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 3
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
_root.bonus_mc.swapDepths(_root.getNextHighestDepth());
_root.cover.swapDepths(_root.getNextHighestDepth());
Symbol 120 MovieClip Frame 3
_root.bonus_mc.swapDepths(_root.getNextHighestDepth());
_root.cover.swapDepths(_root.getNextHighestDepth());
Symbol 120 MovieClip Frame 90
_root.bonus_mc._visible = false;
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
_root.levelScore.swapDepths(_root.getNextHighestDepth());
_root.cover.swapDepths(_root.getNextHighestDepth());
Symbol 125 MovieClip Frame 3
_root.levelScore.swapDepths(_root.getNextHighestDepth());
_root.cover.swapDepths(_root.getNextHighestDepth());
Symbol 125 MovieClip Frame 90
_root.levelScore._visible = false;
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
_root.loseScore.swapDepths(_root.getNextHighestDepth());
_root.cover.swapDepths(_root.getNextHighestDepth());
Symbol 128 MovieClip Frame 3
_root.loseScore.swapDepths(_root.getNextHighestDepth());
_root.cover.swapDepths(_root.getNextHighestDepth());
Symbol 128 MovieClip Frame 90
_root.loseScore._visible = false;
Instance of Symbol 130 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
var random8 = random(8);
if (random8 == 0) {
new Color(this).setRGB(16711680);
}
if (random8 == 1) {
new Color(this).setRGB(16750848);
}
if (random8 == 2) {
new Color(this).setRGB(13816322);
}
if (random8 == 3) {
new Color(this).setRGB(52224);
}
if (random8 == 4) {
new Color(this).setRGB(255);
}
if (random8 == 5) {
new Color(this).setRGB(6684825);
}
if (random8 == 6) {
new Color(this).setRGB(0);
}
if (random8 == 7) {
new Color(this).setRGB(16777215);
}
}
Symbol 144 Button
on (release) {
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
_root.clearEnemies();
removeMovieClip(_root.cover);
removeMovieClip(_root.bonus_mc);
removeMovieClip(_root.levelScore);
removeMovieClip(_root.loseScore);
gotoAndStop ("menu");
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 11
_visible = false;
Symbol 152 Button
on (release) {
_root.playerName = _root.playerNameField.text;
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
gotoAndPlay ("highScores");
}
Symbol 154 Button
on (release) {
if (!_root.muteSound) {
_root.bellSound.start(0, 1);
}
_root.resetGame();
}