Frame 1
function movementx() {
keyWasPressed = false;
if (Key.isDown(39) || (Key.isDown(68))) {
tspeedX = tspeedX + accInc;
keyWasPressed = true;
}
if (Key.isDown(37) || (Key.isDown(65))) {
tspeedX = tspeedX - accInc;
keyWasPressed = true;
}
if (Key.isDown(38) || (Key.isDown(87))) {
tspeedY = tspeedY - accInc;
keyWasPressed = true;
}
if (Key.isDown(40) || (Key.isDown(83))) {
tspeedY = tspeedY + accInc;
keyWasPressed = true;
}
if (keyWasPressed && (killCycle == 0)) {
fs = _root.attachMovie("flood", "d" + k, k++);
fs._x = player._x;
fs._y = player._y;
fs._rotation = player._rotation;
fs._xscale = random(50) + 10;
fs._yscale = fs._xscale;
fs = _root.attachMovie("flood", "d" + k, k++);
fs._x = player._x;
fs._y = player._y;
fs._rotation = player._rotation;
fs._xscale = random(50) + 10;
fs._yscale = fs._xscale;
tap = Math.round(Math.random() * 16777215);
var _local2 = new Color(fs);
_local2.setRGB(tap);
}
if (player._x > 495) {
tspeedX = tspeedX * -1;
player._x--;
}
if (player._x < 5) {
tspeedX = tspeedX * -1;
player._x++;
}
if (player._y > 495) {
tspeedY = tspeedY * -1;
player._y--;
}
if (player._y < 5) {
tspeedY = tspeedY * -1;
player._y++;
}
player._x = player._x + tspeedX;
player._y = player._y + tspeedY;
tspeedX = tspeedX * accDec;
tspeedY = tspeedY * accDec;
circx = player._x;
circy = player._y;
prevx = _root._xmouse;
prevy = _root._ymouse;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
}
function shootx() {
if (shooting) {
shotCounterX++;
if (shotCounterX == 5) {
shotCounterX = 0;
e = _root.attachMovie("bulletX", "e" + k, k++);
e.player._rotation = player._rotation - 90;
}
} else {
shotCounterX = 4;
}
}
function limits(mc) {
if (mc.player._rotation >= 360) {
mc.player._rotation = mc.player._rotation - 360;
}
if (mc.player._rotation < 0) {
mc.player._rotation = mc.player._rotation + 360;
}
if (mc.player._x >= 475) {
if ((mc.player._rotation >= 0) && (mc.player._rotation < 90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
if ((mc.player._rotation < 0) && (mc.player._rotation > -90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
}
if (mc.player._x <= 25) {
if ((mc.player._rotation <= 180) && (mc.player._rotation > 90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
if ((mc.player._rotation > -180) && (mc.player._rotation < -90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
}
if (mc.player._y <= 25) {
if ((mc.player._rotation >= -180) && (mc.player._rotation <= -90)) {
mc.player._rotation = -mc.player._rotation;
}
if ((mc.player._rotation >= -90) && (mc.player._rotation <= 0)) {
mc.player._rotation = -mc.player._rotation;
}
}
if (mc.player._y >= 475) {
if ((mc.player._rotation >= 90) && (mc.player._rotation <= 180)) {
mc.player._rotation = -mc.player._rotation;
}
if ((mc.player._rotation <= 90) && (mc.player._rotation >= 0)) {
mc.player._rotation = -mc.player._rotation;
}
}
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
Mouse.hide();
marker.startDrag(true);
_root._quality = "AUTOHIGH";
var cstatus = true;
var tspeedX = 0;
var tspeedY = 0;
var accDec = 0.9;
var globalVolume = new Sound();
var accInc = 0.86;
var k = 1;
var shootCount = 0;
var shooting = false;
var bulletNumber = 0;
var bulletList = new Array();
var shootLevel = 5;
var enemyChoose;
var enemyName;
var enemyList = new Array();
stats.comma1._visible = false;
stats.comma2._visible = false;
stats.comma3._visible = false;
stats.comma4._visible = false;
var particles = 0;
var particleThresh = 100;
var particleDrop = 1;
var fpsThresh = 25;
var globalDrop = 1;
var multiplier = 1;
var nmbr = 0;
var fps = "Loading";
var aad = 0;
setInterval(inc, 1000);
var poweredUp = false;
var step = 0;
var resetPowerBar = false;
var powerBarSpeed;
var powerCounter = 0;
var powerSense = 700;
var powerGoal = random(powerSense);
var spawnPointX = (random(475) + 10);
var spawnPointY = (random(475) + 10);
changeBackground();
onEnterFrame = function () {
if (cstatus) {
movementx();
shootx();
}
};
onMouseDown = function () {
if (cstatus) {
shooting = true;
}
};
onMouseUp = function () {
liner.removeMovieClip();
if (cstatus) {
shooting = false;
shootCount = shootLevel - 1;
}
};
var closestX;
var closestY;
var shotCounterX = 0;
var val1x;
var val1y;
var val2x;
var val2y;
var valDist;
Instance of Symbol 25 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
status.text = framesLoaded + " % completed";
}
Frame 2
stop();
Mouse.show();
for (obj in _root) {
trace("Type:" + typeof(_root[obj]));
if (typeof(_root[obj]) == "movieclip") {
trace("Name:" + _root[obj]._name);
_root[obj].removeMovieClip();
}
}
Frame 3
counter = 0;
goal = 5;
k = 0;
onMouseMove = function () {
counter++;
if (counter == 5) {
counter = 0;
tap = Math.round(Math.random() * 16777215);
tap2 = Math.round(Math.random() * 16777215);
tap3 = Math.round(Math.random() * 16777215);
pos1 = random(500);
pos2 = random(500);
g = 0;
while (g < 15) {
ee = _root.attachMovie("lineline0", "a" + _root.k, _root.k++);
ee.player._x = _xmouse;
ee.player._y = _ymouse;
var _local2 = new Color(ee.player);
_local2.setRGB(tap);
ff = _root.attachMovie("lineline1", "a" + _root.k, _root.k++);
ff.player._x = _xmouse;
ff.player._y = _ymouse;
_local2 = new Color(ff.player);
_local2.setRGB(tap2);
ff = _root.attachMovie("lineline2", "a" + _root.k, _root.k++);
ff.player._x = _xmouse;
ff.player._y = _ymouse;
_local2 = new Color(ff.player);
_local2.setRGB(tap3);
g++;
}
}
};
stop();
Frame 4
function movement() {
keyWasPressed = false;
if (Key.isDown(39) || (Key.isDown(68))) {
tspeedX = tspeedX + accInc;
keyWasPressed = true;
}
if (Key.isDown(37) || (Key.isDown(65))) {
tspeedX = tspeedX - accInc;
keyWasPressed = true;
}
if (Key.isDown(38) || (Key.isDown(87))) {
tspeedY = tspeedY - accInc;
keyWasPressed = true;
}
if (Key.isDown(40) || (Key.isDown(83))) {
tspeedY = tspeedY + accInc;
keyWasPressed = true;
}
if (keyWasPressed && (killCycle == 0)) {
fs = _root.attachMovie("flood", "d" + k, k++);
fs._x = player._x;
fs._y = player._y;
fs._rotation = player._rotation;
fs._xscale = random(50) + 10;
fs._yscale = fs._xscale;
fs = _root.attachMovie("flood", "d" + k, k++);
fs._x = player._x;
fs._y = player._y;
fs._rotation = player._rotation;
fs._xscale = random(50) + 10;
fs._yscale = fs._xscale;
tap = Math.round(Math.random() * 16777215);
var _local2 = new Color(fs);
_local2.setRGB(tap);
}
if (player._x > 495) {
tspeedX = tspeedX * -1;
player._x--;
}
if (player._x < 5) {
tspeedX = tspeedX * -1;
player._x++;
}
if (player._y > 495) {
tspeedY = tspeedY * -1;
player._y--;
}
if (player._y < 5) {
tspeedY = tspeedY * -1;
player._y++;
}
player._x = player._x + tspeedX;
player._y = player._y + tspeedY;
tspeedX = tspeedX * accDec;
tspeedY = tspeedY * accDec;
circx = player._x;
circy = player._y;
prevx = _root._xmouse;
prevy = _root._ymouse;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
}
function posNeg() {
t = random(2);
if (t == 0) {
return(-1);
}
return(1);
}
function shoot() {
if (shooting && (killCycle != 2)) {
liner.removeMovieClip();
shootCount++;
screenReset();
if (bulletType == 4) {
var _local4 = new Sound();
_local4.attachSound("slaser");
_local4.start(0, 1);
smallestVal = 40000;
targetVal = 10000;
i = 0;
while (i < enemyList.length) {
val1x = _root["e" + enemyList[i]].player._x;
val1y = _root["e" + enemyList[i]].player._y;
val2x = player._x;
val2y = player._y;
temp1 = Math.pow(val2x - val1x, 2);
temp2 = Math.pow(val2y - val1y, 2);
valDist = Math.sqrt(temp1 + temp2);
if (valDist < smallestVal) {
smallestVal = valDist;
targetVal = i;
}
i++;
}
closestX = _root["e" + enemyList[targetVal]].player._x;
closestY = _root["e" + enemyList[targetVal]].player._y;
liner.removeMovieClip();
g = createEmptyMovieClip("liner", _root.k++);
randomCurve = random(50) - 25;
randomColor = Math.round(Math.random() * 16777215);
screenShake();
g.lineStyle(10, randomColor, 100);
g.moveTo(player._x, player._y);
g.curveTo(player._x + randomCurve, player._y + randomCurve, closestX, closestY);
g.lineStyle(4, randomColor * 2, 100);
g.moveTo(player._x, player._y);
g.curveTo(player._x + randomCurve, player._y + randomCurve, closestX, closestY);
g.lineStyle(2, 16777215, 50);
g.moveTo(player._x, player._y);
g.curveTo(player._x + (posNeg() * random(smallestVal / 2)), player._y + (posNeg() * random(smallestVal)), closestX, closestY);
g.lineStyle(1, 16777215, 50);
g.moveTo(player._x, player._y);
g.curveTo(player._x + (posNeg() * random(smallestVal / 2)), player._y + (posNeg() * random(smallestVal)), closestX, closestY);
if (shootCount > 10) {
shootCount = 0;
g = 0;
while (g < 10) {
ee = _root.attachMovie(types(1), "a" + _root.k, _root.k++);
ee.player._x = _root["e" + enemyList[targetVal]].player._x;
ee.player._y = _root["e" + enemyList[targetVal]].player._y;
var _local2 = new Color(ee.player);
_local2.setRGB(randomColor);
ff = _root.attachMovie(types(2), "a" + _root.k, _root.k++);
ff.player._x = _root["e" + enemyList[targetVal]].player._x;
ff.player._y = _root["e" + enemyList[targetVal]].player._y;
_local2 = new Color(ff.player);
_local2.setRGB(randomColor * 2);
g++;
}
ae = attachMovie("timerExplosion", "adf" + _root.k, _root.k++);
ae._x = _root["e" + enemyList[targetVal]].player._x;
ae._y = _root["e" + enemyList[targetVal]].player._y;
ae.timerValue = 20;
fe = _root.attachMovie("scoreLaunch", "scoreMe" + _root.k, _root.k++);
fe._x = _root["e" + enemyList[targetVal]].player._x;
fe._y = _root["e" + enemyList[targetVal]].player._y;
fe.scoreMC.scoreBox.text = _root["e" + enemyList[targetVal]].points * multiplier;
_root.scoreMe(_root["e" + enemyList[targetVal]].points * multiplier);
awesome = awesome + 5;
removeEnemy(_root["e" + enemyList[targetVal]]);
}
} else if (shootCount >= shootLevel) {
shootCount = 0;
if (bulletType == 1) {
var _local5 = new Sound();
_local5.attachSound("sshoot");
_local5.start(0, 1);
shootLevel = 5;
e = _root.attachMovie("bullet", sorter(), k++);
e.player._rotation = player._rotation - 90;
} else if (bulletType == 2) {
var _local3 = new Sound();
_local3.attachSound("strishot");
_local3.start(0, 1);
shootLevel = 5;
e = _root.attachMovie("bullet", sorter(), k++);
e.player._rotation = player._rotation - 90;
f = _root.attachMovie("bullet", sorter(), k++);
f.player._rotation = player._rotation - 105;
g = _root.attachMovie("bullet", sorter(), k++);
g.player._rotation = player._rotation - 75;
} else if (bulletType == 3) {
shootLevel = 10;
i = 0;
while (i < 30) {
e = _root.attachMovie("bullet", sorter(), k++);
e.player._rotation = random(360);
i++;
}
bulletType = 1;
} else if (bulletType == 5) {
var _local6 = new Sound();
_local6.attachSound("sbiggun");
_local6.start(0, 1);
shootLevel = 5;
e = _root.attachMovie("bullet", sorter(), k++);
e.player._rotation = player._rotation - 90;
e.player._xscale = 300;
e.player._yscale = 300;
}
}
}
}
function sorter() {
bulletChoose = 0;
bulletNumber = 0;
bulletList.sort();
j = 0;
while (j <= bulletList.length) {
if (bulletList[j] == bulletChoose) {
bulletChoose++;
j = 0;
}
j++;
}
bulletList.push(bulletChoose);
bulletNumber = bulletChoose;
return(bulletNumber);
}
function removeBullet(which) {
i = 0;
while (i <= bulletList.length) {
if (which._name == bulletList[i]) {
which.removeMovieClip();
_root.bulletList.splice(i, 1);
}
i++;
}
}
function killPlayer() {
if (killCycle == 0) {
i = 0;
while (i <= enemyList.length) {
if (dynamicHitTest(player, _root["e" + enemyList[i]]) && (_root["e" + enemyList[i]].startCode == true)) {
killCycle = 1;
}
i++;
}
}
if (killCycle == 1) {
killCounter = 0;
tempX = player._x;
tempY = player._y;
player._visible = false;
lives--;
stats.lifeBar.gotoAndStop(lives - 1);
if (lives == 0) {
cstatus = false;
onEnterFrame = null;
ee = _root.attachMovie("loser", "los", k++);
ee._x = 250;
ee._y = 250;
stopAllSounds();
var _local3 = new Sound();
_local3.attachSound("sdead");
_local3.start(0, 1);
} else {
var _local3 = new Sound();
_local3.attachSound("sdead");
_local3.start(0, 1);
}
killCycle = 2;
}
if (killCycle == 2) {
killCounter++;
if (killCounter == 30) {
killCycle = 3;
killCounter = 0;
}
awesome = awesome - 3;
g = 0;
while (g < 5) {
ee = _root.attachMovie(types(2), "a" + _root.k, _root.k++);
ee.player._x = tempX;
ee.player._y = tempY;
tap = Math.round(Math.random() * 16777215);
var _local2 = new Color(ee);
_local2.setRGB(tap);
ff = _root.attachMovie(types(2), "a" + _root.k, _root.k++);
ff.player._x = tempX;
ff.player._y = tempY;
tap = Math.round(Math.random() * 16777215);
_local2 = new Color(ff);
_local2.setRGB(tap);
g++;
}
}
if (killCycle == 3) {
killCounter++;
player._visible = true;
player.play();
if (killCounter == 100) {
killCounter = 0;
killCycle = 0;
}
}
}
function moveMe(mc, type) {
if (cstatus) {
if (type == 1) {
mc.youSpeed = Math.min(mc.youMaxSpeed, mc.youSpeed + mc.youAcc);
mc.xC = Math.cos((mc.player._rotation * Math.PI) / 180) * mc.youSpeed;
mc.yC = Math.sin((mc.player._rotation * Math.PI) / 180) * mc.youSpeed;
mc.player._x = mc.player._x + mc.xC;
mc.player._y = mc.player._y + mc.yC;
mc.oldX = mc.player._x;
mc.oldY = mc.player._y;
}
if (type == 2) {
circx = mc.player._x;
circy = mc.player._y;
prevx = player._x;
prevy = player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = -(90 - degrees);
}
mc.player._x = mc.player._x - (mc.driftSpeed * ((mc.player._x - _root.player._x) / 2));
mc.player._y = mc.player._y - (mc.driftSpeed * ((mc.player._y - _root.player._y) / 2));
}
if (type == 3) {
circx = mc.player._x;
circy = mc.player._y;
prevx = player._x;
prevy = player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = -(90 - degrees);
}
mc.player._x = mc.player._x - (mc.driftSpeed * ((mc.player._x - _root.player._x) / 2));
mc.player._y = mc.player._y - (mc.driftSpeed * ((mc.player._y - _root.player._y) / 2));
}
if (type == 4) {
mc.suck.removeMovieClip();
mc.createEmptyMovieClip("suck", _root.k++);
mc.suck.lineStyle(1, Math.round(Math.random() * 16777215), 100);
mc.suck.moveTo(mc.player._x, mc.player._y);
i = 0;
while (i < enemyList.length) {
if (_root["e" + _root.enemyList[i]].typeCast == 3) {
mc.suck.moveTo(mc.player._x, mc.player._y);
aal1x = _root["e" + enemyList[i]].player._x;
aal1y = _root["e" + enemyList[i]].player._y;
mc.suck.lineTo(aal1x, aal1y);
}
i++;
}
mc.youSpeed = Math.min(mc.youMaxSpeed, mc.youSpeed + mc.youAcc);
mc.xC = Math.cos((mc.player._rotation * Math.PI) / 180) * mc.youSpeed;
mc.yC = Math.sin((mc.player._rotation * Math.PI) / 180) * mc.youSpeed;
mc.player._x = mc.player._x + mc.xC;
mc.player._y = mc.player._y + mc.yC;
mc.oldX = mc.player._x;
mc.oldY = mc.player._y;
}
if (type == 5) {
circx = mc.player._x;
circy = mc.player._y;
prevx = player._x;
prevy = player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
mc.player._rotation = -(90 - degrees);
}
mc.player._x = mc.player._x - (mc.driftSpeed * ((mc.player._x - _root.player._x) / 2));
mc.player._y = mc.player._y - (mc.driftSpeed * ((mc.player._y - _root.player._y) / 2));
}
if (type == 6) {
val1x = mc.player._x;
val1y = mc.player._y;
val2x = player._x;
val2y = player._y;
temp1 = Math.pow(val2x - val1x, 2);
temp2 = Math.pow(val2y - val1y, 2);
valDist = Math.sqrt(temp1 + temp2);
if (valDist > 100) {
mc.player._x = mc.player._x - ((mc.driftSpeed * 20) * ((mc.player._x - _root.player._x) / 2));
mc.player._y = mc.player._y - ((mc.driftSpeed * 20) * ((mc.player._y - _root.player._y) / 2));
}
}
if (type == 7) {
mc.suck.removeMovieClip();
mc.createEmptyMovieClip("suck", _root.k++);
mc.suck.lineStyle(4, Math.round(Math.random() * 16777215), 100);
mc.suck.moveTo(mc.player._x, mc.player._y);
mc.suck.curveTo(player._y, player._x, mc.holdX, mc.holdY);
mc.youSpeed = Math.min(mc.youMaxSpeed, mc.youSpeed + mc.youAcc);
mc.xC = Math.cos((mc.player._rotation * Math.PI) / 180) * mc.youSpeed;
mc.yC = Math.sin((mc.player._rotation * Math.PI) / 180) * mc.youSpeed;
mc.player._x = mc.player._x + mc.xC;
mc.player._y = mc.player._y + mc.yC;
mc.oldX = mc.player._x;
mc.oldY = mc.player._y;
}
}
}
function limits(mc) {
if (mc.player._rotation >= 360) {
mc.player._rotation = mc.player._rotation - 360;
}
if (mc.player._rotation < 0) {
mc.player._rotation = mc.player._rotation + 360;
}
if (mc.player._x >= 475) {
if ((mc.player._rotation >= 0) && (mc.player._rotation < 90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
if ((mc.player._rotation < 0) && (mc.player._rotation > -90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
}
if (mc.player._x <= 25) {
if ((mc.player._rotation <= 180) && (mc.player._rotation > 90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
if ((mc.player._rotation > -180) && (mc.player._rotation < -90)) {
mc.player._rotation = 180 - mc.player._rotation;
}
}
if (mc.player._y <= 25) {
if ((mc.player._rotation >= -180) && (mc.player._rotation <= -90)) {
mc.player._rotation = -mc.player._rotation;
}
if ((mc.player._rotation >= -90) && (mc.player._rotation <= 0)) {
mc.player._rotation = -mc.player._rotation;
}
}
if (mc.player._y >= 475) {
if ((mc.player._rotation >= 90) && (mc.player._rotation <= 180)) {
mc.player._rotation = -mc.player._rotation;
}
if ((mc.player._rotation <= 90) && (mc.player._rotation >= 0)) {
mc.player._rotation = -mc.player._rotation;
}
}
}
function shotDown(mc, flavor, type1, type1Color, type2, type2Color, type3, type3Color) {
i = 0;
while (i <= _root.bulletList.length) {
if (mc.player.hitTest(_root[_root.bulletList[i]])) {
var _local4 = new Sound();
_local4.attachSound("shitenemy");
_local4.start(0, 1);
if (flavor == 1) {
_root.removeBullet(_root[_root.bulletList[i]]);
} else if (flavor == 2) {
d = 0;
while (d < 5) {
e = attachMovie("enemy2.5", esorter(), k++);
e._x = 0;
e._y = 0;
e.player._xscale = random(100) + 100;
e.player._yscale = e.player._xscale;
e.player._x = (mc.player._x + random(16)) - 8;
e.player._y = (mc.player._y + random(16)) - 8;
d++;
}
_root.removeBullet(_root[_root.bulletList[i]]);
}
g = 0;
while (g < 10) {
mc.ee = _root.attachMovie(types(type1), "a" + _root.k, _root.k++);
mc.ee.player._x = mc.player._x;
mc.ee.player._y = mc.player._y;
mc.tap = type1Color;
var _local3 = new Color(mc.ee.player);
_local3.setRGB(mc.tap);
mc.ff = _root.attachMovie(types(type2), "a" + _root.k, _root.k++);
mc.ff.player._x = mc.player._x;
mc.ff.player._y = mc.player._y;
mc.tap = type2Color;
_local3 = new Color(mc.ff.player);
_local3.setRGB(mc.tap);
g++;
}
g = 0;
while (g < 5) {
mc.gg = _root.attachMovie(types(type3), "a" + _root.k, _root.k++);
mc.gg.player._x = mc.player._x;
mc.gg.player._y = mc.player._y;
mc.tap = type3Color;
var _local3 = new Color(mc.gg.player);
_local3.setRGB(mc.tap);
g++;
}
mc.fe = _root.attachMovie("scoreLaunch", "scoreMe" + _root.k, _root.k++);
mc.fe._x = mc.player._x;
mc.fe._y = mc.player._y;
mc.fe.scoreMC.scoreBox.text = mc.points * multiplier;
_root.scoreMe(mc.points * multiplier);
awesome = awesome + 5;
removeEnemy(mc);
break;
}
i++;
}
}
function types(nu) {
if (nu == 1) {
return("lineline0");
}
if (nu == 2) {
return("lineline1");
}
if (nu == 3) {
return("lineline2");
}
if (nu == 4) {
return("lineline3");
}
if (nu == 5) {
return("lineline4");
}
if (nu == 6) {
return("lineline5");
}
if (nu == 7) {
return("lineline6");
}
}
function esorter() {
enemyChoose = 0;
enemyName = "pops";
enemyList.sort();
j = 0;
while (j <= enemyList.length) {
if (enemyList[j] == enemyChoose) {
enemyChoose++;
j = 0;
}
j++;
}
enemyList.push(enemyChoose);
enemyName = "e" + enemyChoose;
return(enemyName);
}
function spawn(style, total) {
spawnPointX = random(475) + 10;
spawnPointY = random(475) + 10;
i = 0;
while (i < total) {
e = attachMovie("enemy" + style, esorter(), k++);
e._x = 0;
e._y = 0;
if ((style == 3) || (style == 10)) {
e.player._x = spawnPointX;
e.player._y = spawnPointY;
}
i++;
}
}
function removeEnemy(mc) {
i = 0;
while (i <= enemyList.length) {
if (mc._name == ("e" + enemyList[i])) {
enemyList.splice(i, 1);
}
i++;
}
mc.removeMovieClip();
}
function statsBar() {
if (awesome <= 100) {
multiplier = 1;
stats.awesomeBar._xscale = awesome;
awesome = awesome - decSpeed1;
tap = 16777215 /* 0xFFFFFF */;
var _local2 = new Color(stats.awesomeBar);
_local2.setRGB(tap);
stats.underBar._visible = false;
} else if ((awesome > 100) && (awesome <= 200)) {
stats.underBar._visible = true;
multiplier = 2;
stats.awesomeBar._xscale = (awesome - 100) - 10;
awesome = awesome - decSpeed2;
tap = 16750848 /* 0xFF9900 */;
var _local2 = new Color(stats.awesomeBar);
_local2.setRGB(tap);
tap2 = 16777215 /* 0xFFFFFF */;
_local2 = new Color(stats.underBar);
_local2.setRGB(tap2);
} else if ((awesome > 200) && (awesome <= 300)) {
multiplier = 4;
stats.awesomeBar._xscale = (awesome - 200) - 10;
awesome = awesome - decSpeed3;
tap = 255;
var _local2 = new Color(stats.awesomeBar);
_local2.setRGB(tap);
tap2 = 16750848 /* 0xFF9900 */;
_local2 = new Color(stats.underBar);
_local2.setRGB(tap2);
} else if ((awesome > 300) && (awesome <= 400)) {
multiplier = 8;
stats.awesomeBar._xscale = (awesome - 300) - 10;
awesome = awesome - decSpeed4;
tap = 6684672 /* 0x660000 */;
var _local2 = new Color(stats.awesomeBar);
_local2.setRGB(tap);
tap2 = 255;
_local2 = new Color(stats.underBar);
_local2.setRGB(tap2);
} else if ((awesome > 400) && (awesome < 499)) {
multiplier = 16;
stats.awesomeBar._xscale = (awesome - 400) - 10;
awesome = awesome - decSpeed5;
tap = Math.round(Math.random() * 16777215);
var _local2 = new Color(stats.awesomeBar);
_local2.setRGB(tap);
tap2 = 6684672 /* 0x660000 */;
_local2 = new Color(stats.underBar);
_local2.setRGB(tap2);
} else if (awesome > 500) {
awesome = 500;
}
if (awesome > 0) {
i = 0;
while (i < 3) {
fre = _root.stats.clippy.attachMovie("dot", "dot" + k, k++);
fre._x = stats.awesomeBar._width;
fre._y = random(stats.awesomeBar._height);
fre._xscale = random(200) + 50;
fre._yscale = random(200) + 50;
var _local2 = new Color(fre);
_local2.setRGB(tap);
i++;
}
fre = _root.stats.clippy.attachMovie("dot", "dot" + k, k++);
fre._x = stats.awesomeBar._width;
fre._y = 0;
var _local2 = new Color(fre);
_local2.setRGB(tap);
fre = _root.stats.clippy.attachMovie("dot", "dot" + k, k++);
fre._x = stats.awesomeBar._width;
fre._y = stats.awesomeBar._height;
_local2 = new Color(fre);
_local2.setRGB(tap);
}
if (awesome < 0) {
awesome = 0;
}
stats.livesBox.text = lives;
stats.scoreBox.scoreBox.scoreBox.text = score;
if (multiplier == 1) {
stats.mult.mult.text = "";
} else {
stats.mult.mult.text = "x" + multiplier;
}
}
function changeBackground() {
tap = Math.round(Math.random() * 16777215);
var _local1 = new Color(mainBackground);
_local1.setRGB(tap);
}
function scoreMe(amt) {
score = score + amt;
stats.scoreBox.gotoAndPlay(2);
if (score > 1000) {
stats.comma1._visible = true;
}
if (score > 1000000) {
stats.comma2._visible = true;
}
if (score > 1000000000) {
stats.comma3._visible = true;
}
if (score > 1000000000000) {
stats.comma4._visible = true;
}
}
function inc() {
fps = "Frames per Second: " + aad;
nmbr = aad;
aad = 0;
}
function powerUp(num) {
if ((num <= 4) && (num >= 0)) {
t = num;
} else {
t = random(5);
}
ff = _root.attachMovie("powerUp" + t, "pu" + k, k++);
ff._x = random(490);
ff._y = random(490);
}
function powering() {
if (resetPowerBar) {
resetPowerBar = false;
step = 0;
powerUpBar.gotoAndPlay(11);
}
if (poweredUp) {
step = 0;
}
if (step == 0) {
if (poweredUp) {
step = 1;
poweredUp = false;
powerUpBar.gotoAndPlay(2);
powerUpBar.powerUpBar.poweredUp._xscale = 100;
}
}
if (step == 1) {
if (bulletType == 2) {
powerBarSpeed = 0.4;
powerUpBar.tgom.gotoAndStop(1);
}
if (bulletType == 4) {
powerBarSpeed = 0.5;
powerUpBar.tgom.gotoAndStop(2);
}
if (bulletType == 5) {
powerBarSpeed = 0.4;
powerUpBar.tgom.gotoAndStop(3);
}
powerUpBar.powerUpBar.poweredUp._xscale = powerUpBar.powerUpBar.poweredUp._xscale - powerBarSpeed;
if (powerUpBar.powerUpBar.poweredUp._xscale < 0) {
powerUpBar.powerUpBar.poweredUp._xscale = 0;
bulletType = 1;
resetPowerBar = true;
}
}
}
function spawnPowerUps() {
powerCounter++;
if (powerGoal <= powerCounter) {
powerGoal = random(powerSense) + 200;
powerCounter = 0;
powerUp(random(5));
}
}
function dynamicHitTest(mover, station) {
with (mover) {
if (((station.hitTest(getBounds(_root).xMax, mover._y, true) || (station.hitTest(getBounds(_root).xMin, mover._y, true))) || (station.hitTest(mover._x, getBounds(_root).yMax, true))) || (station.hitTest(mover._x, getBounds(_root).yMin, true))) {
return(true);
}
return(false);
}
}
function screenShake() {
_root._xscale = random(4) + 98;
_root._yscale = random(4) + 98;
_root._x = random(4) - 2;
_root._y = random(4) - 2;
}
function screenReset() {
_root._xscale = 100;
_root._yscale = 100;
_root._x = 0;
_root._y = 0;
}
function togglePause() {
if (Key.isDown(80)) {
trace("te");
cstatus = false;
screenReset();
ter = _root.attachMovie("pauseScreen", "pauseScream", k++);
ter._x = 250;
ter._y = 250;
Mouse.show();
marker._visible = false;
}
}
function changeLevel() {
if (enemyList.length < 1) {
if (level > 49) {
cstatus = false;
onEnterFrame = null;
de = attachMovie("ending", "end", k++);
de._x = 250;
de._y = de._x;
} else {
r = 0;
while (r < 11) {
type = _root["level" + level][r];
trace(type);
spawn(r, type);
r++;
}
changeBackground();
level++;
fd = _root.attachMovie("static", "sta", k++);
levelBump.gotoAndPlay(2);
}
}
}
var level0 = new Array(2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level1 = new Array(6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level2 = new Array(0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level3 = new Array(4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level4 = new Array(6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level5 = new Array(0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level6 = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level7 = new Array(2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0);
var level8 = new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0);
var level9 = new Array(4, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0);
var level10 = new Array(0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0);
var level11 = new Array(0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0);
var level12 = new Array(8, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0);
var level13 = new Array(4, 2, 2, 5, 0, 0, 0, 0, 0, 0, 0);
var level14 = new Array(0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0);
var level15 = new Array(0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0);
var level16 = new Array(10, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0);
var level17 = new Array(2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0);
var level18 = new Array(0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 0);
var level19 = new Array(4, 4, 4, 0, 3, 0, 0, 0, 0, 0, 0);
var level20 = new Array(0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0);
var level21 = new Array(0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0);
var level22 = new Array(4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0);
var level23 = new Array(0, 0, 4, 4, 0, 4, 0, 0, 0, 0, 0);
var level24 = new Array(0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0);
var level25 = new Array(15, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level26 = new Array(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0);
var level27 = new Array(0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0);
var level28 = new Array(0, 4, 0, 4, 4, 4, 4, 0, 0, 0, 0);
var level29 = new Array(0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0);
var level30 = new Array(0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0);
var level31 = new Array(2, 0, 2, 0, 2, 0, 0, 1, 0, 0, 0);
var level32 = new Array(0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0);
var level33 = new Array(2, 0, 0, 0, 0, 2, 3, 3, 0, 0, 0);
var level34 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
var level35 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5);
var level36 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10);
var level37 = new Array(0, 6, 0, 0, 0, 0, 2, 0, 0, 0, 2);
var level38 = new Array(0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 5);
var level39 = new Array(2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2);
var level40 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
var level41 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
var level42 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0);
var level43 = new Array(5, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
var level44 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0);
var level45 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0);
var level46 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 4, 2, 0);
var level47 = new Array(2, 3, 4, 2, 1, 1, 1, 1, 1, 1, 1);
var level48 = new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0);
var level49 = new Array(2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 3);
Mouse.hide();
marker.startDrag(true);
var awesome = 0.1;
var decSpeed1 = 0.05;
var decSpeed2 = 0.1;
var decSpeed3 = 0.2;
var decSpeed4 = 0.3;
var decSpeed5 = 0.5;
var lives = 5;
var score = 0;
var level = 0;
var fffffffffffffffffScore = _root.score;
var myFinalName = "aurora";
var bulletType = 1;
var cstatus = true;
var tspeedX = 0;
var tspeedY = 0;
var accDec = 0.9;
var accInc = 0.86;
var k = 1;
var shootCount = 0;
var shooting = false;
var bulletNumber = 0;
var bulletList = new Array();
var shootLevel = 5;
var enemyChoose;
var enemyName;
var enemyList = new Array();
stats.comma1._visible = false;
stats.comma2._visible = false;
stats.comma3._visible = false;
stats.comma4._visible = false;
var particles = 0;
var particleThresh = 100;
var particleDrop = 1;
var fpsThresh = 25;
var globalDrop = 1;
var multiplier = 1;
var nmbr = 0;
var fps = "Loading";
var aad = 0;
setInterval(inc, 1000);
var poweredUp = false;
var step = 0;
var resetPowerBar = false;
var powerBarSpeed;
var powerCounter = 0;
var powerSense = 700;
var powerGoal = random(powerSense);
var spawnPointX = (random(475) + 10);
var spawnPointY = (random(475) + 10);
changeBackground();
onEnterFrame = function () {
if (cstatus) {
movement();
statsBar();
shoot();
changeLevel();
powering();
killPlayer();
spawnPowerUps();
togglePause();
aad++;
}
};
onMouseDown = function () {
if (cstatus) {
shooting = true;
}
};
onMouseUp = function () {
liner.removeMovieClip();
if (cstatus) {
shooting = false;
shootCount = shootLevel - 1;
}
};
var closestX;
var closestY;
var val1x;
var val1y;
var val2x;
var val2y;
var valDist;
var killCycle = 0;
var killCounter = 0;
stop();
Frame 5
for (obj in _root) {
trace("Type:" + typeof(_root[obj]));
if (typeof(_root[obj]) == "movieclip") {
trace("Name:" + _root[obj]._name);
_root[obj].removeMovieClip();
}
}
Symbol 3 MovieClip [bulletX] Frame 1
function moveMe() {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
}
life = 1;
youAcc = 0.2;
youDec = 0.2;
youSpeed = 5;
youMaxSpeed = 7;
if (!_root.cstatus) {
player._x = 0;
player._y = 0;
} else {
player._x = _root.player._x;
player._y = _root.player._y;
}
life = life * 50;
onEnterFrame = function () {
if (_root.cstatus) {
life--;
if (life < 10) {
player._alpha = life * 10;
}
if (life <= 0) {
this.removeMovieClip();
}
moveMe();
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 500) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 500) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
tracer = player._rotation;
}
};
Symbol 8 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 13 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
}
Symbol 24 Button
on (release) {
_root.onEnterFrame = null;
_root.nextFrame();
}
Symbol 25 MovieClip Frame 100
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 377 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 51 MovieClip Frame 1
var wd1 = new Sound();
wd1.attachSound("Anaconda");
wd1.start(0, 99);
Symbol 51 MovieClip Frame 151
_parent.nextFrame();
Symbol 60 MovieClip Frame 135
_root.play();
Symbol 61 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Symbol 69 MovieClip [timerExplosion] Frame 1
counter = 0;
onEnterFrame = function () {
counter++;
if (counter == timerValue) {
this.removeMovieClip();
} else {
ee = _root.attachMovie("explosion", "ads" + _root.k, _root.k++);
ee._x = (this._x + random(20)) - 10;
ee._y = (this._y + random(20)) - 10;
ee._xscale = random(100) + 50;
ee._yscale = ee._xscale;
ee._rotation = random(360);
}
};
Symbol 76 MovieClip [static] Frame 8
this.removeMovieClip();
Symbol 80 MovieClip [scoreLaunch] Frame 20
this.removeMovieClip();
Symbol 86 MovieClip [buddy] Frame 1
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
player._x = random(450) + 25;
player._y = random(450) + 25;
i = 0;
while (i <= _root.enemyList.length) {
if (Math.abs(player._x - _root["e" + _root.enemyList[i]]._x) < 100) {
player._x = random(450) + 25;
i = 0;
}
i++;
}
i = 0;
while (i <= _root.enemyList.length) {
if (Math.abs(player._y - _root["e" + _root.enemyList[i]]._y) < 100) {
player._y = random(450) + 25;
i = 0;
}
i++;
}
player._rotation = random(360);
var val1x;
var val1y;
var val2x;
var val2y;
var temp1;
var valDist;
var temp2;
var targetVal = 400000;
var smallestVal = 40000;
var shootRate = 40;
var counter = 0;
var killCycle = 0;
var killCounter = 0;
var tempX = 0;
var tempY = 0;
var buddyNames0 = new Array("mx781", "Punisher", "ViewtifulBob1138", "Deamond606", "RaceBandit", "Flamedude", "Admiral N", "daperson", "TastyLamp", "Shadowfox2988", "Niki", "asdf1248", "jmtb02", "Merkage", "Jeppo", "Kriken Lord", "zara", "ArisingFlame", "LEXMARKZ2", "FikreesProjects", "Froggy618157725", "Dogod", "Dicko", "Nethac DIU", "Gamergull01", "ATSK04", "Kronos", "???", "NitroX72", "Angel of Death", "xplodes", "spartan117", "stevo", "penguin", "innesthesniper", "pwhk", "bubbleboy36", "master-chief", "crazygoatemonky", "Sylicas", "GolemdX");
var buddyNames1 = new Array("greg", "tom", "luis", "aaron", "bob", "nick", "casey", "john", "carlie", "jessica", "lauren", "alexis");
namer.nameBox.text = buddyNames0[random(buddyNames0.length)];
onEnterFrame = function () {
counter++;
namer._x = player._x;
namer._y = player._y;
if (counter >= shootRate) {
counter = 0;
e = _root.attachMovie("bullet2", _root.sorter(), _root.k++);
e.player._rotation = player._rotation - 90;
e.player._x = player._x;
e.player._y = player._y;
}
var _local5 = 400000 /* 0x061A80 */;
var _local4 = 40000;
i = 0;
while (i < _root.enemyList.length) {
val1x = _root["e" + _root.enemyList[i]].player._x;
val1y = _root["e" + _root.enemyList[i]].player._y;
val2x = player._x;
val2y = player._y;
temp1 = Math.pow(val2x - val1x, 2);
temp2 = Math.pow(val2y - val1y, 2);
valDist = Math.sqrt(temp1 + temp2);
if (valDist < _local4) {
_local4 = valDist;
_local5 = i;
}
i++;
}
closestX = _root["e" + _root.enemyList[_local5]].player._x;
closestY = _root["e" + _root.enemyList[_local5]].player._y;
prevx = closestX;
prevy = closestY;
circx = player._x;
circy = player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
driftSpeed = 0.02;
if (_local4 > 100) {
player._x = player._x - (driftSpeed * ((player._x - closestX) / 2));
player._y = player._y - (driftSpeed * ((player._y - closestY) / 2));
} else {
player._x = player._x + (driftSpeed * ((player._x - closestX) / 2));
player._y = player._y + (driftSpeed * ((player._y - closestY) / 2));
}
if (killCycle == 0) {
i = 0;
while (i <= _root.enemyList.length) {
if (_root.dynamicHitTest(player, _root["e" + _root.enemyList[i]]) && (_root["e" + _root.enemyList[i]].startCode == true)) {
killCycle = 1;
}
i++;
}
}
if (killCycle == 1) {
killCounter = 0;
tempX = player._x;
tempY = player._y;
player._visible = false;
namer._visible = false;
killCycle = 2;
}
if (killCycle == 2) {
killCounter++;
if (killCounter == 30) {
killCycle = 3;
killCounter = 0;
}
g = 0;
while (g < 5) {
ee = _root.attachMovie(_root.types(4), "a" + _root.k, _root.k++);
ee.player._x = player._x;
ee.player._y = player._y;
tap = Math.round(Math.random() * 16777215);
var _local3 = new Color(ee);
_local3.setRGB(tap);
ff = _root.attachMovie(_root.types(4), "a" + _root.k, _root.k++);
ff.player._x = tempX;
ff.player._y = tempY;
tap = Math.round(Math.random() * 16777215);
_local3 = new Color(ff);
_local3.setRGB(tap);
g++;
}
}
if (killCycle == 3) {
this.removeMovieClip();
}
};
Symbol 87 MovieClip [bullet] Frame 1
function moveMe() {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
}
life = 1;
youAcc = 0.2;
youDec = 0.2;
youSpeed = 5;
youMaxSpeed = 7;
if (!_root.cstatus) {
player._x = 0;
player._y = 0;
} else {
player._x = _root.player._x;
player._y = _root.player._y;
}
life = life * 50;
onEnterFrame = function () {
if (_root.cstatus) {
life--;
if (life < 10) {
player._alpha = life * 10;
}
if (life <= 0) {
_root.removeBullet(this);
}
moveMe();
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 500) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 500) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
tracer = player._rotation;
}
};
Symbol 88 MovieClip [bullet2] Frame 1
function moveMe() {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
}
life = 1;
youAcc = 0.2;
youDec = 0.2;
youSpeed = 5;
youMaxSpeed = 7;
if (!_root.cstatus) {
player._x = 0;
player._y = 0;
}
life = life * 50;
onEnterFrame = function () {
life--;
if (_root.nmbr <= _root.fpsThresh) {
life = life - _root.globalDrop;
}
if (life < 10) {
player._alpha = life * 10;
}
if (life <= 0) {
_root.removeBullet(this);
}
moveMe();
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 500) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 500) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
tracer = player._rotation;
};
Symbol 91 MovieClip [dot] Frame 10
this.removeMovieClip();
Symbol 103 MovieClip [ending] Frame 1
stopAllSounds();
Symbol 103 MovieClip [ending] Frame 14
counter = 0;
goal = 5;
onEnterFrame = function () {
counter++;
if (counter == 5) {
counter = 0;
tap = Math.round(Math.random() * 16777215);
tap2 = Math.round(Math.random() * 16777215);
tap3 = Math.round(Math.random() * 16777215);
pos1 = random(500);
pos2 = random(500);
g = 0;
while (g < 15) {
ee = _root.attachMovie("lineline0", "a" + _root.k, _root.k++);
ee.player._x = pos1;
ee.player._y = pos2;
var _local2 = new Color(ee.player);
_local2.setRGB(tap);
ff = _root.attachMovie("lineline1", "a" + _root.k, _root.k++);
ff.player._x = pos1;
ff.player._y = pos2;
_local2 = new Color(ff.player);
_local2.setRGB(tap2);
ff = _root.attachMovie("lineline2", "a" + _root.k, _root.k++);
ff.player._x = pos1;
ff.player._y = pos2;
_local2 = new Color(ff.player);
_local2.setRGB(tap3);
g++;
}
}
};
Symbol 103 MovieClip [ending] Frame 176
onEnterFrame = null;
Symbol 103 MovieClip [ending] Frame 348
_root.gotoAndStop("gameOver");
Symbol 106 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 107 MovieClip [enemy0] Frame 1
points = 75;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 1);
_root.shotDown(this, 1, 1, 65280, 2, 39168, 3, 16777215);
_root.limits(this);
}
};
Symbol 110 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 111 MovieClip [enemy1] Frame 1
points = 125;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.001 * (random(50) + 1);
driftSpeed2 = driftSpeed / 4;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 2);
_root.shotDown(this, 1, 1, 12567786, 2, 3950771, 3, 16777215);
_root.limits(this);
} else {
player._x = player._x - (driftSpeed2 * ((player._x - _root.player._x) / 2));
player._y = player._y - (driftSpeed2 * ((player._y - _root.player._y) / 2));
circx = player._x;
circy = player._y;
prevx = _root.player._x;
prevy = _root.player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
}
};
Symbol 114 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 115 MovieClip [enemy2] Frame 1
points = 125;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.005;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 3);
_root.shotDown(this, 2, 1, 10027008, 2, 13369344, 3, 16777215);
_root.limits(this);
} else {
player._x = player._x - (driftSpeed * ((player._x - _root.player._x) / 2));
player._y = player._y - (driftSpeed * ((player._y - _root.player._y) / 2));
circx = player._x;
circy = player._y;
prevx = _root.player._x;
prevy = _root.player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
}
};
Symbol 118 MovieClip Frame 15
stop();
_parent.startCode = true;
Symbol 119 MovieClip [enemy2.5] Frame 1
points = 25;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.001 * (random(40) + 1);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 2);
_root.shotDown(this, 1, 1, 10027008, 2, 13369344, 3, 16777215);
_root.limits(this);
} else {
player._x = player._x - (driftSpeed * ((player._x - _root.player._x) / 2));
player._y = player._y - (driftSpeed * ((player._y - _root.player._y) / 2));
circx = player._x;
circy = player._y;
prevx = _root.player._x;
prevy = _root.player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
}
};
Symbol 122 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 123 MovieClip [enemy3] Frame 1
points = 150;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.01;
holdX = player._x;
holdY = player._y;
typeCast = 3;
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 4);
_root.shotDown(this, 1, 1, 16763904, 2, 16750848, 3, 16777215);
_root.limits(this);
}
};
Symbol 126 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 127 MovieClip [enemy4] Frame 1
points = 200;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.01;
holdX = player._x;
holdY = player._y;
limit = 40;
counter = random(limit) - 5;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
player._rotation = random(360);
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 5);
_root.shotDown(this, 1, 1, 6684825, 2, 6710988, 3, 16777215);
_root.limits(this);
counter++;
if (counter == limit) {
counter = 0;
de = _root.attachMovie("enemy4.5", _root.esorter(), _root.k++);
de.player._x = player._x;
de.player._y = player._y;
de.player._rotation = player._rotation;
}
}
};
Symbol 130 MovieClip [enemy4.5] Frame 1
points = 5;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
startCode = true;
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 1);
_root.shotDown(this, 1, 1, 16777215, 2, 15132390, 3, 16777215);
_root.limits(this);
}
};
Symbol 133 MovieClip Frame 1
onEnterFrame = function () {
if (_root.cstatus) {
play();
} else {
stop();
}
};
Symbol 134 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 135 MovieClip [enemy5] Frame 1
points = 225;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 1;
driftSpeed = 0.005;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 3);
_root.shotDown(this, 1, 1, 4620678, 2, 39321, 3, 16777215);
_root.limits(this);
} else {
player._x = player._x - (driftSpeed * ((player._x - _root.player._x) / 2));
player._y = player._y - (driftSpeed * ((player._y - _root.player._y) / 2));
circx = player._x;
circy = player._y;
prevx = _root.player._x;
prevy = _root.player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
}
};
Symbol 138 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 139 MovieClip [enemy6] Frame 1
points = 125;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.001 * (random(50) + 1);
driftSpeed2 = driftSpeed / 4;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 6);
_root.shotDown(this, 1, 1, 12288213, 2, 13421823, 3, 16777215);
_root.limits(this.player);
} else {
player._x = player._x - (driftSpeed2 * ((player._x - _root.player._x) / 2));
player._y = player._y - (driftSpeed2 * ((player._y - _root.player._y) / 2));
}
};
Symbol 142 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 143 MovieClip [enemy7] Frame 1
points = 250;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
onEnterFrame = function () {
if (startCode == true) {
if (_root.cstatus) {
_root.moveMe(this, 1);
_root.shotDown(this, 1, 1, 15367701, 2, 16039562, 3, 16777215);
_root.limits(this);
player._xscale = player._xscale + 10;
player._yscale = player._yscale + 10;
}
}
};
Symbol 146 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 147 MovieClip [enemy8] Frame 1
points = 500;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.05 + (random(10) * 0.01);
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 3);
_root.shotDown(this, 1, 1, 10027008, 2, 13369344, 3, 16777215);
_root.limits(this);
} else {
player._x = player._x - (driftSpeed * ((player._x - _root.player._x) / 2));
player._y = player._y - (driftSpeed * ((player._y - _root.player._y) / 2));
circx = player._x;
circy = player._y;
prevx = _root.player._x;
prevy = _root.player._y;
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = degrees + 90;
} else if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = 90 - degrees;
} else if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
player._rotation = -(180 - degrees);
} else if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
player._rotation = -(90 - degrees);
}
}
};
Symbol 150 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 151 MovieClip [enemy9] Frame 1
points = 550;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 7;
player._x = random(450) + 25;
player._y = random(450) + 25;
while (Math.abs(player._x - _root.player._x) < 25) {
player._x = random(450) + 25;
}
while (Math.abs(player._y - _root.player._y) < 25) {
player._y = random(450) + 25;
}
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 1);
_root.shotDown(this, 1, 1, 3038921, 1, 12241903, 3, 16777215);
_root.limits(this);
}
};
Symbol 154 MovieClip Frame 30
stop();
_parent.startCode = true;
Symbol 155 MovieClip [enemy10] Frame 1
points = 150;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
driftSpeed = 0.01;
holdX = player._x;
holdY = player._y;
player._rotation = random(360);
onEnterFrame = function () {
if (startCode == true) {
_root.moveMe(this, 7);
_root.shotDown(this, 1, 1, 9223490, 1, 13755572, 1, 16777215);
_root.limits(this);
}
};
Symbol 157 MovieClip [explosion] Frame 15
this.removeMovieClip();
Symbol 160 MovieClip [flood] Frame 10
this.removeMovieClip();
Symbol 181 MovieClip Frame 1
stop();
Symbol 209 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = _root.myFinalName;
_root.fffffffffffffffffScore = _root.score;
ab20_09.x = ab20.encodeNum(_root.fffffffffffffffffScore);
ab20_09.c = 1144;
ab20_09.v = "AGNWID";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
this.nextFrame();
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 230 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 231 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
}
Symbol 233 Button
on (release) {
Mouse.show();
stopAllSounds();
_root.gotoAndPlay("game");
}
Symbol 234 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1144", "_blank");
}
Symbol 235 MovieClip [gameOver] Frame 1
Mouse.show();
if (_root.level < 10) {
sender = 1;
code = 59000;
} else if (_root.level < 20) {
sender = 2;
code = 59042;
} else if (_root.level < 30) {
sender = 3;
code = 59075;
} else if (_root.level < 40) {
sender = 4;
code = 59152;
} else if (_root.level < 50) {
sender = 5;
code = 59157;
} else if (_root.level < 60) {
sender = 6;
code = 59239;
}
gradeBox.gotoAndStop(sender);
var dispCode1 = (("<a href=\"http://www.armorgames.com/\"><img src=\"http://www.jmtb02.com/banners/" + code) + ".gif\" width=\"100\" height=\"100\" border=\"0\" /></a>");
var dispCode2 = (("[url=http://www.armorgames.com][img]http://www.jmtb02.com/banners/" + code) + ".gif[/img][/url]");
Symbol 235 MovieClip [gameOver] Frame 55
stop();
Symbol 239 MovieClip [lineline0] Frame 1
function moveMe() {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
}
life = 0.5 + (random(4) * 0.1);
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 5;
player._rotation = random(360);
player._xscale = random(200) - 50;
player._yscale = player._xscale;
_root.particles++;
life = life * 50;
onEnterFrame = function () {
life--;
if (_root.particles > _root.particleThresh) {
this.life = this.life - _root.particleDrop;
}
if (life < 25) {
player._alpha = life * 4;
youMaxSpeed = youMaxSpeed * 0.95;
}
if (life <= 0) {
_root.particles--;
this.removeMovieClip();
}
moveMe();
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 500) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 500) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
tracer = player._rotation;
};
Symbol 240 MovieClip [lineline1] Frame 1
function moveMe() {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
}
life = 1;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = random(5) + 5;
player._rotation = random(360);
player._xscale = random(200) - 50;
player._yscale = player._xscale;
_root.particles++;
life = life * 50;
onEnterFrame = function () {
life--;
if (_root.particles > _root.particleThresh) {
this.life = this.life - _root.particleDrop;
}
if (life < 25) {
player._alpha = life * 4;
youspeed = youspeed * 0.6;
}
if (life <= 0) {
_root.particles--;
this.removeMovieClip();
}
moveMe();
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 500) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 500) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
tracer = player._rotation;
};
Symbol 241 MovieClip [lineline2] Frame 1
function moveMe() {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
}
life = 0.5;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = random(8) + 5;
player._rotation = random(360);
player._xscale = random(200) - 50;
player._yscale = player._xscale;
_root.particles++;
life = life * 50;
onEnterFrame = function () {
life--;
if (_root.particles > _root.particleThresh) {
this.life = this.life - _root.particleDrop;
}
if (life < 25) {
player._alpha = life * 4;
youspeed = youspeed * 0.6;
}
if (life <= 0) {
_root.particles--;
this.removeMovieClip();
}
moveMe();
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 500) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 500) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
tracer = player._rotation;
};
Symbol 242 MovieClip [lineline3] Frame 1
function moveMe() {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
}
life = 0.5 + (random(4) * 0.1);
youAcc = 1;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 3;
player._rotation = random(360);
player._xscale = 40;
player._yscale = player._xscale;
_root.particles++;
life = life * 50;
onEnterFrame = function () {
life--;
if (_root.particles > _root.particleThresh) {
this.life = this.life - _root.particleDrop;
}
if (life < 25) {
player._alpha = life * 4;
youMaxSpeed = youMaxSpeed * 0.95;
}
if (life <= 0) {
_root.particles--;
this.removeMovieClip();
}
moveMe();
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 500) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 500) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
tracer = player._rotation;
};
Symbol 245 MovieClip [loser] Frame 180
_root.gotoAndStop("gameOver");
Symbol 255 Button
on (release) {
_root.globalVolume.setVolume(100);
}
Symbol 259 Button
on (release) {
_root.globalVolume.setVolume(0);
}
Symbol 267 Button
on (release) {
_quality = "AUTOHIGH";
}
Symbol 271 Button
on (release) {
_quality = "HIGH";
}
Symbol 275 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 279 Button
on (release) {
_quality = "LOW";
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 6
stop();
Symbol 289 Button
on (release) {
play();
}
Symbol 292 MovieClip [pauseScreen] Frame 10
stop();
Symbol 292 MovieClip [pauseScreen] Frame 11
_root.marker._visible = true;
Mouse.hide();
_root.shooting = false;
Symbol 292 MovieClip [pauseScreen] Frame 20
_root.cstatus = true;
this.removeMovieClip();
Symbol 301 MovieClip [powerUp0] Frame 5
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
this.play();
_root.bulletType = 2;
_root.shootCount = 0;
_root.poweredUp = true;
}
counter++;
if (counter == 400) {
this.removeMovieClip();
}
};
counter = 0;
Symbol 301 MovieClip [powerUp0] Frame 6
onEnterFrame = null;
Symbol 301 MovieClip [powerUp0] Frame 34
this.removeMovieClip();
Symbol 305 MovieClip [powerUp1] Frame 5
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
this.play();
_root.bulletType = 3;
if (_root.step > 0) {
_root.resetPowerBar = true;
}
_root.shootCount = 0;
}
counter++;
if (counter == 400) {
this.removeMovieClip();
}
};
counter = 0;
Symbol 305 MovieClip [powerUp1] Frame 6
onEnterFrame = null;
Symbol 305 MovieClip [powerUp1] Frame 34
this.removeMovieClip();
Symbol 313 MovieClip [powerUp2] Frame 5
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
this.play();
_root.bulletType = 4;
_root.shootCount = 0;
_root.poweredUp = true;
if (_root.step > 0) {
_root.resetPowerBar = true;
}
}
counter++;
if (counter == 400) {
this.removeMovieClip();
}
};
counter = 0;
Symbol 313 MovieClip [powerUp2] Frame 6
onEnterFrame = null;
Symbol 313 MovieClip [powerUp2] Frame 34
this.removeMovieClip();
Symbol 319 MovieClip [powerUp3] Frame 5
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
this.play();
_root.bulletType = 5;
_root.shootCount = 0;
_root.poweredUp = true;
}
counter++;
if (counter == 400) {
this.removeMovieClip();
}
};
counter = 0;
Symbol 319 MovieClip [powerUp3] Frame 6
onEnterFrame = null;
Symbol 319 MovieClip [powerUp3] Frame 34
this.removeMovieClip();
Symbol 323 MovieClip [powerUp4] Frame 5
stop();
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
this.play();
_root.bulletType = 1;
_root.shootCount = 0;
if (_root.step > 0) {
_root.resetPowerBar = true;
}
_root.attachMovie("buddy", "bud" + _root.k, _root.k++);
onEnterFrame = null;
}
counter++;
if (counter == 400) {
this.removeMovieClip();
}
};
counter = 0;
Symbol 323 MovieClip [powerUp4] Frame 6
onEnterFrame = null;
Symbol 323 MovieClip [powerUp4] Frame 34
this.removeMovieClip();
Symbol 324 MovieClip Frame 1
stop();
Symbol 329 Button
on (release) {
stopAllSounds();
onMouseMove = null;
nextFrame();
}
Symbol 333 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 336 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1144", "_blank");
}
Symbol 338 MovieClip Frame 70
stop();
Symbol 354 MovieClip Frame 1
onEnterFrame = function () {
if (_root.lives == 0) {
gotoAndStop (1);
} else if ((_root.lives > 0) && (_root.lives < 11)) {
gotoAndStop(_root.lives + 1);
} else if (_root.lives >= 11) {
gotoAndStop (11);
}
};
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 10
stop();