Frame 1
stop();
var B = (new flash.display.BitmapData(550, 400, true, 16777215));
_root.attachBitmap(B, this.getNextHighestDepth());
var PTA = new Array();
var i;
var i = 0;
while (i <= 50) {
PTA.push([random(550), random(400), 0, 1]);
i = i + 1;
}
var YSPEED = 1;
var XSPEED = 1;
onEnterFrame = function () {
_root.BARS._xscale = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
_root.LODT.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
if (getBytesTotal() == getBytesLoaded()) {
PPL._visible = true;
PPL.onPress = function () {
gotoAndStop (2);
B.dispose();
onEnterFrame = null;
delete PTA;
};
} else {
PPL._visible = false;
}
i = 0;
while (i < PTA.length) {
PTA[i][1] = PTA[i][1] + PTA[i][3];
PTA[i][0] = PTA[i][0] + PTA[i][2];
B.setPixel32(PTA[i][0] + 1, PTA[i][1], 4294967295);
B.setPixel32(PTA[i][0], PTA[i][1] + 1, 4294967295);
B.setPixel32(PTA[i][0] + 1, PTA[i][1] + 1, 4294967295);
B.setPixel32(PTA[i][0], PTA[i][1], 4294967295);
if (PTA[i][1] > 400) {
PTA[i][1] = 0;
}
if (PTA[i][1] < 0) {
PTA[i][1] = 400;
}
if (PTA[i][0] > 550) {
PTA[i][0] = 0;
}
if (PTA[i][0] < 0) {
PTA[i][0] = 550;
}
XDIF = PTA[i][0] - _xmouse;
YDIF = PTA[i][1] - _ymouse;
DIST = Math.sqrt((YDIF * YDIF) + (XDIF * XDIF));
if (DIST <= 100) {
PTA[i][2] = PTA[i][2] + (0.5 / (DIST / XDIF));
PTA[i][3] = PTA[i][3] + (0.5 / (DIST / YDIF));
} else {
PTA[i][3] = PTA[i][3] - (PTA[i][3] / 20);
PTA[i][2] = PTA[i][2] - (PTA[i][2] / 20);
}
i = i + 1;
}
B.colorTransform(B.rectangle, new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, -50));
};
Instance of Symbol 22 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Instance of Symbol 28 MovieClip in Frame 1
on (release) {
getURL ("http://www.futureflashstudio.com", "blank");
}
Instance of Symbol 32 MovieClip "PPL" in Frame 1
/* no clip actions */
Frame 2
function DRAWCUBE(XX, YY) {
MM.tx = XX;
MM.ty = YY;
LOGOBit.draw(CUBE, MM);
}
var LOGOBit = (new flash.display.BitmapData(550, 200, false, 0));
var LOGORef = (new flash.display.BitmapData(550, 200, false, 0));
var MM = (new flash.geom.Matrix(1, 0, 0, 1, 0, 0));
var MM2 = (new flash.geom.Matrix(1, 0, 0, 1, 0, -200));
MM2.scale(1, -1);
var BLUR = (new flash.filters.BlurFilter(5, 5, 1));
var COLORT = (new flash.geom.ColorTransform(1, 1, 1, 1, -20, -20, -20, 0));
var i;
var TIMER = 0;
_root.attachBitmap(LOGOBit, 1);
_root.attachMovie("CUBE", "CUBE", 2);
_root.createEmptyMovieClip("HH", 4);
_root.HH.attachBitmap(LOGORef, 5);
_root.attachMovie("GGRADI", "GR", 6);
stop();
_root.attachMovie("FFSF", "FFSF", 7);
_root.FFSF.IN._alpha = 0;
_root.FFSF._visible = false;
GR._y = 200;
_root.HH._y = 200;
_root.CUBE._visible = false;
var ARC = new Array();
var ART = [[0, 0], [0, 20], [0, 40], [0, 60], [0, 100], [0, 120], [0, 140], [0, 160], [0, 200], [0, 220], [0, 240], [0, 260], [20, 0], [20, 100], [20, 200], [40, 0], [40, 20], [40, 40], [40, 60], [40, 100], [40, 120], [40, 140], [40, 160], [40, 200], [40, 220], [40, 240], [40, 260], [60, 0], [60, 100], [60, 260], [80, 0], [80, 100], [80, 200], [80, 220], [80, 240], [80, 260]];
i = 0;
while (i < ART.length) {
ARC.push([Math.random() * 550, Math.random() * 400, (Math.random() * 10) - 5, Math.random() * 5]);
i = i + 1;
}
onEnterFrame = function () {
onMouseDown = function () {
getURL ("http://www.futureflashstudio.com", "blank");
};
TIMER = TIMER + 0.5;
LOGORef.draw(LOGOBit, MM2);
LOGORef.applyFilter(LOGORef, LOGORef.rectangle, new flash.geom.Point(0, 0), BLUR);
LOGOBit.colorTransform(LOGOBit.rectangle, COLORT);
i = 0;
while (i < ART.length) {
if (TIMER < 150) {
ARC[i][0] = ARC[i][0] - ((ARC[i][0] - (ART[i][1] + 140)) / 40);
ARC[i][1] = ARC[i][1] - ((ARC[i][1] - (ART[i][0] + 110)) / 40);
} else {
if (TIMER == 150) {
DING.start(0, 1);
}
ARC[i][3] = ARC[i][3] - 0.1;
ARC[i][1] = ARC[i][1] - ARC[i][3];
ARC[i][0] = ARC[i][0] + ARC[i][2];
}
DRAWCUBE(ARC[i][0], ARC[i][1]);
i = i + 1;
}
if ((TIMER > 170) && (TIMER < 250)) {
MM.tx = 30;
MM.ty = 170;
if (_root.FFSF.IN._alpha < 100) {
_root.FFSF.IN._alpha = _root.FFSF.IN._alpha + 2;
}
LOGOBit.draw(FFSF, MM);
} else if (TIMER >= 250) {
MM.tx = 30;
MM.ty = 170;
LOGOBit.draw(FFSF, MM);
_root.FFSF.IN._alpha = _root.FFSF.IN._alpha - 2;
}
if (TIMER > 300) {
gotoAndStop (3);
LOGORef.dispose();
LOGOBit.dispose();
_root.FFSF.removeMovieClip();
_root.HH.removeMovieClip();
_root.GR.removeMovieClip();
delete _root.ART;
delete _root.ARC;
this.onEnterFrame = null;
onMouseDown = null;
}
};
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
LOL.onEnterFrame = function () {
onMouseDown = function () {
this.onMouseDown = null;
LOL.onEnterFrame = null;
gotoAndStop (4);
};
};
Frame 7
function SPAWN(ENE) {
if (ENE == 1) {
E = E + 1;
if (E > 30) {
E = 0;
}
_root.AVI.duplicateMovieClip("EN" + E, E + 280);
if (random(2) == 1) {
if (random(2) == 1) {
_root["EN" + E]._x = (Math.random() * 10) - 50;
_root["EN" + E]._y = Math.random() * 400;
} else {
_root["EN" + E]._x = (Math.random() * 50) + 550;
_root["EN" + E]._y = Math.random() * 400;
}
} else if (random(2) == 1) {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 10) - 50;
} else {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 50) + 400;
}
_root["EN" + E].TX = _root.SHIP._x;
_root["EN" + E].TY = _root.SHIP._y;
_root["EN" + E].ANGLE = 0;
_root["EN" + E].SPD = 2;
_root["EN" + E].SC = 5;
_root["EN" + E].DMG = 5;
_root["EN" + E].onEnterFrame = function () {
this.TX = _root.SHIP._x;
this.TY = _root.SHIP._y;
this.ANGLE = (Math.atan2(this._y - this.TY, this._x - this.TX) * 57.2957795130823) + 180;
this._y = this._y + (this.SPD * Math.sin((Math.PI/180) * this.ANGLE));
this._x = this._x + (this.SPD * Math.cos((Math.PI/180) * this.ANGLE));
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE - this.DMG;
EBOOM(this._x, this._y);
this.removeMovieClip();
}
};
} else if (ENE == 2) {
E = E + 1;
if (E > 24) {
E = 0;
}
_root.MP4.duplicateMovieClip("EN" + E, E + 280);
if (random(2) == 1) {
if (random(2) == 1) {
_root["EN" + E]._x = (Math.random() * 10) - 50;
_root["EN" + E]._y = Math.random() * 400;
} else {
_root["EN" + E]._x = (Math.random() * 50) + 550;
_root["EN" + E]._y = Math.random() * 400;
}
} else if (random(2) == 1) {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 10) - 50;
} else {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 50) + 400;
}
_root["EN" + E].TX = _root.SHIP._x;
_root["EN" + E].TY = _root.SHIP._y;
_root["EN" + E].ANGLE = 0;
_root["EN" + E].SPD = 3;
_root["EN" + E].DMG = 5;
_root["EN" + E].SC = 5;
_root["EN" + E].onEnterFrame = function () {
if (this.hitTest(this.TX, this.TY, true)) {
this.TX = _root.SHIP._x;
this.TY = _root.SHIP._y;
}
this.ANGLE = (Math.atan2(this._y - this.TY, this._x - this.TX) * 57.2957795130823) + 180;
this._y = this._y + (this.SPD * Math.sin((Math.PI/180) * this.ANGLE));
this._x = this._x + (this.SPD * Math.cos((Math.PI/180) * this.ANGLE));
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE - this.DMG;
EBOOM(this._x, this._y);
this.removeMovieClip();
}
};
} else if (ENE == 3) {
E = E + 1;
if (E > 24) {
E = 0;
}
_root.MP3.duplicateMovieClip("EN" + E, E + 280);
if (random(2) == 1) {
if (random(2) == 1) {
_root["EN" + E]._x = (Math.random() * 10) - 50;
_root["EN" + E]._y = Math.random() * 400;
} else {
_root["EN" + E]._x = (Math.random() * 50) + 550;
_root["EN" + E]._y = Math.random() * 400;
}
} else if (random(2) == 1) {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 10) - 50;
} else {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 50) + 400;
}
_root["EN" + E].TX = Math.random() * 550;
_root["EN" + E].TY = Math.random() * 400;
_root["EN" + E].ANGLE = 0;
_root["EN" + E].SPD = 4;
_root["EN" + E].DMG = 5;
_root["EN" + E].SC = 5;
_root["EN" + E].DIST = Math.sqrt((_root.SHIP._x * _root.SHIP._x) + (_root.SHIP._y * _root.SHIP._y));
_root["EN" + E].onEnterFrame = function () {
this.DIST = Math.sqrt(((_root.SHIP._x - this._x) * (_root.SHIP._x - this._x)) + ((_root.SHIP._y - this._y) * (_root.SHIP._y - this._y)));
if (this.DIST > 120) {
if (this.hitTest(this.TX, this.TY, true)) {
this.TX = Math.random() * 550;
this.TY = Math.random() * 400;
}
} else {
this.TX = _root.SHIP._x;
this.TY = _root.SHIP._y;
}
this.ANGLE = (Math.atan2(this._y - this.TY, this._x - this.TX) * 57.2957795130823) + 180;
this._y = this._y + (this.SPD * Math.sin((Math.PI/180) * this.ANGLE));
this._x = this._x + (this.SPD * Math.cos((Math.PI/180) * this.ANGLE));
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE - this.DMG;
EBOOM(this._x, this._y);
this.removeMovieClip();
}
};
} else if (ENE == 4) {
E = E + 1;
if (E > 24) {
E = 0;
}
_root.WINUP.duplicateMovieClip("EN" + E, E + 280);
if (random(2) == 1) {
if (random(2) == 1) {
_root["EN" + E]._x = (Math.random() * 10) - 50;
_root["EN" + E]._y = Math.random() * 400;
} else {
_root["EN" + E]._x = (Math.random() * 50) + 550;
_root["EN" + E]._y = Math.random() * 400;
}
} else if (random(2) == 1) {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 10) - 50;
} else {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 50) + 400;
}
_root["EN" + E].TX = Math.random() * 550;
_root["EN" + E].TY = Math.random() * 400;
_root["EN" + E]._rotation = Math.random() * 360;
_root["EN" + E].SC = 5;
_root["EN" + E].DMG = 5;
_root["EN" + E].DIST = Math.sqrt((_root.SHIP._x * _root.SHIP._x) + (_root.SHIP._y * _root.SHIP._y));
_root["EN" + E].onEnterFrame = function () {
this._rotation = this._rotation + 3;
this.DIST = Math.sqrt(((_root.SHIP._x - this._x) * (_root.SHIP._x - this._x)) + ((_root.SHIP._y - this._y) * (_root.SHIP._y - this._y)));
if (this.DIST > 80) {
if (this.hitTest(this.TX, this.TY, true)) {
this.TX = Math.random() * 550;
this.TY = Math.random() * 400;
}
this._x = this._x + ((this.TX - this._x) / 30);
this._y = this._y + ((this.TY - this._y) / 30);
} else {
this.TX = _root.SHIP._x;
this.TY = _root.SHIP._y;
this._x = this._x + ((this.TX - this._x) / 10);
this._y = this._y + ((this.TY - this._y) / 10);
}
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE - this.DMG;
EBOOM(this._x, this._y);
this.removeMovieClip();
}
};
} else if (ENE == 5) {
E = E + 1;
if (E > 24) {
E = 0;
}
_root.WMV2.duplicateMovieClip("EN" + E, E + 280);
if (random(2) == 1) {
if (random(2) == 1) {
_root["EN" + E]._x = (Math.random() * 10) - 50;
_root["EN" + E]._y = Math.random() * 400;
} else {
_root["EN" + E]._x = (Math.random() * 50) + 550;
_root["EN" + E]._y = Math.random() * 400;
}
} else if (random(2) == 1) {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 10) - 50;
} else {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 50) + 400;
}
_root["EN" + E].DMG = 5;
_root["EN" + E].SC = 5;
_root["EN" + E].DISTY = _root["EN" + E]._y - _root.SHIP._y;
_root["EN" + E].DISTX = _root["EN" + E]._x - _root.SHIP._x;
_root["EN" + E].ANGLE = Math.atan2(_root["EN" + E].DISTY, _root["EN" + E].DISTX);
_root["EN" + E].HYP = Math.sqrt(((_root.SHIP._x - this._x) * (_root.SHIP._x - this._x)) + ((_root.SHIP._y - this._y) * (_root.SHIP._y - this._y)));
_root["EN" + E].onEnterFrame = function () {
this.DISTX = this._x - _root.SHIP._x;
this.DISTX = this._y - _root.SHIP._y;
this.HYP = this.HYP - 1;
this.ANGLE = this.ANGLE - 0.01;
this._x = (Math.cos(this.ANGLE) * this.HYP) + _root.SHIP._x;
this._y = (Math.sin(this.ANGLE) * this.HYP) + _root.SHIP._y;
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE - this.DMG;
EBOOM(this._x, this._y);
this.removeMovieClip();
}
};
} else if (ENE == 6) {
E = E + 1;
if (E > 24) {
E = 0;
}
_root.FIRE2.duplicateMovieClip("EN" + E, E + 280);
if (random(2) == 1) {
if (random(2) == 1) {
_root["EN" + E]._x = (Math.random() * 10) - 50;
_root["EN" + E]._y = Math.random() * 400;
} else {
_root["EN" + E]._x = (Math.random() * 50) + 550;
_root["EN" + E]._y = Math.random() * 400;
}
} else if (random(2) == 1) {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 10) - 50;
} else {
_root["EN" + E]._x = Math.random() * 550;
_root["EN" + E]._y = (Math.random() * 50) + 400;
}
_root["EN" + E].SC = 5;
_root["EN" + E].TX = _root.SHIP._x;
_root["EN" + E].TY = _root.SHIP._y;
_root["EN" + E].ANGLE = 0;
_root["EN" + E].SPD = 2;
_root["EN" + E].DMG = 5;
_root["EN" + E].MM = true;
_root["EN" + E].onEnterFrame = function () {
this.TX = _root.SHIP._x;
this.TY = _root.SHIP._y;
this.ANGLE = (Math.atan2(this._y - this.TY, this._x - this.TX) * 57.2957795130823) + 180;
this._y = this._y + (this.SPD * Math.sin((Math.PI/180) * this.ANGLE));
this._x = this._x + (this.SPD * Math.cos((Math.PI/180) * this.ANGLE));
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE - this.DMG;
EBOOM(this._x, this._y);
this.removeMovieClip();
}
};
}
}
function EBOOM(XX, YY) {
i = 0;
while (i < 5) {
EB++;
if (EB >= 50) {
EB = 0;
}
_root.createEmptyMovieClip("EBO" + EB, EB + 320);
_root["EBO" + EB].lineStyle(2, 16711680);
_root["EBO" + EB].lineTo(1, 0.1);
_root["EBO" + EB].ANGLE = Math.random() * 360;
_root["EBO" + EB]._x = XX;
_root["EBO" + EB]._y = YY;
_root["EBO" + EB].filters = [_root.GLOW3];
_root["EBO" + EB].onEnterFrame = function () {
this._alpha = this._alpha - 5;
this._y = this._y + (3 * Math.cos((Math.PI/180) * this.ANGLE));
this._x = this._x + (3 * Math.sin((Math.PI/180) * this.ANGLE));
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
i = i + 1;
}
}
function MINISPAWN(XX, YY) {
E = E + 1;
if (E > 24) {
E = 0;
}
_root.FIRE2.duplicateMovieClip("EN" + E, E + 280);
_root["EN" + E]._x = XX;
_root["EN" + E]._y = YY;
_root["EN" + E].TX = Math.random() * 550;
_root["EN" + E].TY = Math.random() * 400;
_root["EN" + E].ANGLE = 0;
_root["EN" + E].SPD = 2;
_root["EN" + E].DMG = 5;
_root["EN" + E].SC = 1;
_root["EN" + E]._xscale = (_root["EN" + E]._yscale = 50);
_root["EN" + E].DIST = Math.sqrt((_root.SHIP._x * _root.SHIP._x) + (_root.SHIP._y * _root.SHIP._y));
_root["EN" + E].onEnterFrame = function () {
this.DIST = Math.sqrt(((_root.SHIP._x - this._x) * (_root.SHIP._x - this._x)) + ((_root.SHIP._y - this._y) * (_root.SHIP._y - this._y)));
if (this.DIST > 80) {
if (this.hitTest(this.TX, this.TY, true)) {
this.TX = Math.random() * 550;
this.TY = Math.random() * 400;
}
} else {
this.TX = _root.SHIP._x;
this.TY = _root.SHIP._y;
}
this.ANGLE = (Math.atan2(this._y - this.TY, this._x - this.TX) * 57.2957795130823) + 180;
this._y = this._y + (this.SPD * Math.sin((Math.PI/180) * this.ANGLE));
this._x = this._x + (this.SPD * Math.cos((Math.PI/180) * this.ANGLE));
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE - this.DMG;
EBOOM(this._x, this._y);
this.removeMovieClip();
}
};
}
function POWERUP(XX, YY) {
if (random(10) == 1) {
PUPC = PUPC + 1;
if (PUPC > 4) {
PUPC = 0;
}
if (random(2) == 1) {
_root.PUP2.duplicateMovieClip("DPUP" + PUPC, PUPC + 371);
_root["DPUP" + PUPC]._x = XX;
_root["DPUP" + PUPC]._y = YY;
_root["DPUP" + PUPC].onEnterFrame = function () {
if (this.hitTest(_root.SHIP)) {
_root.SHIP.SHIELD = true;
_root.SHIP.TEMPLIFE = _root.SHIP.LIFE;
_root.SHIP.SHIELDTIMER = _root.SHIP.SHIELDTIMER + 500;
this.removeMovieClip();
}
};
} else {
_root.PUP1.duplicateMovieClip("DPUP" + PUPC, PUPC + 371);
_root["DPUP" + PUPC]._x = XX;
_root["DPUP" + PUPC]._y = YY;
_root["DPUP" + PUPC].onEnterFrame = function () {
if (this.hitTest(_root.SHIP)) {
_root.SHIP.LIFE = _root.SHIP.LIFE + 25;
_root.SHIP.TEMPLIFE = _root.SHIP.TEMPLIFE + 25;
this.removeMovieClip();
}
};
}
}
}
function ENDD() {
var ENDB = (new flash.display.BitmapData(550, 400, false, 16777215));
_root.attachBitmap(ENDB, 300);
Mouse.show();
ENDB.draw(_root);
stopAllSounds();
gotoAndStop (8);
var CT = (new flash.geom.ColorTransform(1, 1, 1, 1, -2, -2, -2, 0));
onEnterFrame = function () {
ENDB.colorTransform(ENDB.rectangle, CT);
if (_root.ENDOR._currentframe == 264) {
i = 0;
while (i < 100) {
_root["BL" + i].removeMovieClip();
_root["EN" + i].removeMovieClip();
_root["DPUP" + i].removeMovieClip();
i = i + 1;
}
ENDB.dispose();
_root.ENDOR.removeMovieClip();
_root.gotoAndStop(6);
this.onEnterFrame = null;
}
};
}
stop();
var E = 0;
var SPWNER = _root.createEmptyMovieClip("SPWNER", 3);
var ST = 0;
var EB = 0;
var i;
var PUPC = 0;
PUP1._visible = false;
PUP2._visible = false;
AVI._visible = false;
MP4._visible = false;
MP3._visible = false;
NVID._visible = false;
MP2._visible = false;
PNG._visible = false;
WMV2._visible = false;
FIREW._visible = false;
WINUP._visible = false;
SYSTEM._visible = false;
SOUND._visible = false;
SWF._visible = false;
FLA._visible = false;
WMV._visible = false;
CPAN._visible = false;
FIRE2._visible = false;
SPWNER.onEnterFrame = function () {
ST = ST + 1;
if (ST > (150 - LEVEL)) {
SPAWN(random(6) + 1);
ST = 0;
}
LEVEL = SCORE / 10;
if (LEVEL > 120) {
LEVEL = 120;
}
};
var GLOW = (new flash.filters.GlowFilter(65280, 1, 10, 10, 5, 1, false, false));
var GLOW2 = (new flash.filters.GlowFilter(16776960, 1, 10, 10, 3, 1, false, false));
var GLOW3 = (new flash.filters.GlowFilter(16711680, 1, 10, 10, 5, 1, false, false));
_root.HUD.swapDepths(400);
var SCORE = 0;
var VSCORE = 0;
var SL = 0;
onEnterFrame = function () {
HUD.LIFE.FULLB.BAR._xscale = _root.SHIP.LIFE;
HUD.LIFE.TTLIFE.text = _root.SHIP.LIFE + "/100";
VSCORE = VSCORE + Math.round((SCORE - VSCORE) / 20);
HUD.SCB.SC.text = VSCORE;
SL = HUD.SCB.SC.length;
HUD.SCB.SC.text = "";
i = 0;
while (i < (9 - SL)) {
HUD.SCB.SC.text = HUD.SCB.SC.text + "0";
i = i + 1;
}
HUD.SCB.SC.text = HUD.SCB.SC.text + VSCORE;
};
Instance of Symbol 121 MovieClip "SHIP" in Frame 7
onClipEvent (load) {
function SPARKS() {
C++;
if (C >= 50) {
C = 0;
}
_root.createEmptyMovieClip("SP" + C, C + 50);
_root["SP" + C].lineStyle(2, 65280);
_root["SP" + C].lineTo(1, 0.1);
_root["SP" + C].ANGLE = this.tANGLE - ((Math.random() * 90) - 45);
_root["SP" + C]._x = this._x + (10 * Math.sin((Math.PI/180) * this.tANGLE));
_root["SP" + C]._y = this._y + (10 * Math.cos((Math.PI/180) * this.tANGLE));
_root["SP" + C].filters = [_root.GLOW];
_root["SP" + C].onEnterFrame = function () {
this._alpha = this._alpha - 2;
this._y = this._y + (2 * Math.cos((Math.PI/180) * this.ANGLE));
this._x = this._x + (2 * Math.sin((Math.PI/180) * this.ANGLE));
if (this._alpha <= 5) {
this.removeMovieClip();
}
};
}
function WALLSPARK(XX, YY, WANGLE) {
P++;
if (P >= 110) {
P = 60;
}
_root.createEmptyMovieClip("SP" + P, P + 160);
_root["SP" + P].lineStyle(2, 16776960);
_root["SP" + P].lineTo(1, 0.1);
_root["SP" + P].ANGLE = (-WANGLE) - ((Math.random() * 180) - 90);
_root["SP" + P]._x = XX;
_root["SP" + P]._y = YY;
_root["SP" + P].filters = [_root.GLOW2];
_root["SP" + P].onEnterFrame = function () {
this._alpha = this._alpha - 2;
this._y = this._y + (2 * Math.cos((Math.PI/180) * this.ANGLE));
this._x = this._x + (2 * Math.sin((Math.PI/180) * this.ANGLE));
if (this._alpha <= 5) {
this.removeMovieClip();
}
};
}
function SHOOT(DIST) {
TIMER = TIMER + 1;
if (TIMER > 10) {
SHOTFX.start(0, 1);
TIMER = 0;
B++;
if (B >= 100) {
B = 0;
}
_root.createEmptyMovieClip("BL" + B, B + 110);
_root["BL" + B].lineStyle(3, 16711680);
_root["BL" + B].lineTo(0.1, -5);
_root["BL" + B]._rotation = (this.TUR._rotation + 90) + DIST;
_root["BL" + B].filters = [_root.GLOW2];
_root["BL" + B]._x = this._x + (10 * Math.sin((Math.PI/180) * _root["BL" + B]._rotation));
_root["BL" + B]._y = this._y - (10 * Math.cos((Math.PI/180) * _root["BL" + B]._rotation));
_root["BL" + B].onEnterFrame = function () {
this._x = this._x + (BSPD * Math.sin((Math.PI/180) * this._rotation));
this._y = this._y - (BSPD * Math.cos((Math.PI/180) * this._rotation));
i = 0;
while (i < 35) {
if (_root["EN" + i].hitTest(this._x, this._y, true)) {
if (_root["EN" + i].MM) {
_root.MINISPAWN(this._x, this._y);
_root.MINISPAWN(this._x, this._y);
_root.MINISPAWN(this._x, this._y);
}
_root.SCORE = _root.SCORE + _root["EN" + i].SC;
_root.POWERUP(this._x, this._y);
_root["EN" + i].removeMovieClip();
_root.EBOOM(this._x, this._y);
i = 0;
while (i < 3) {
WALLSPARK(this._x, this._y, this._rotation);
i = i + 1;
}
this.removeMovieClip();
}
i = i + 1;
}
if ((((this._x > 550) || (this._x < 0)) || (this._y < 0)) || (this._y > 400)) {
i = 0;
while (i < 5) {
WALLSPARK(this._x, this._y, this._rotation);
i = i + 1;
}
this.removeMovieClip();
}
};
}
}
var SPEED = 3;
var BSPD = 6;
var ANGLE;
var TIMER = 0;
var tANGLE = 0;
var LIFE = 100;
var C;
var B;
var P;
var i;
var a;
var SHOTFX = new Sound(this);
var MH = _root.createEmptyMovieClip("MH", 2);
var SHIELD = false;
var SHIELDTIMER = 0;
SHOTFX.attachSound("SHOTFX");
}
onClipEvent (enterFrame) {
if (SHIELD && (SHIELDTIMER > 1)) {
_root.SHIELDP._x = this._x;
_root.SHIELDP._y = this._y;
this.LIFE = this.TEMPLIFE;
SHIELDTIMER = SHIELDTIMER - 1;
} else {
_root.SHIELDP._x = 1000;
_root.SHIELDP._y = 1000;
}
if (LIFE > 100) {
LIFE = 100;
} else if (LIFE <= 0) {
LIFE = 0;
_root.ENDD();
}
if (Key.isDown(39) && (this._x <= 550)) {
_y = (_y - (SPEED * Math.cos((Math.PI/180) * SHIPin._rotation)));
_x = (_x + (SPEED * Math.sin((Math.PI/180) * SHIPin._rotation)));
tANGLE = -90;
SPARKS();
} else if (Key.isDown(37) && (this._x >= 0)) {
tANGLE = 90;
SPARKS();
_y = (_y - (SPEED * Math.cos((Math.PI/180) * SHIPin._rotation)));
_x = (_x + (SPEED * Math.sin((Math.PI/180) * SHIPin._rotation)));
} else if (Key.isDown(38) && (this._y >= 0)) {
tANGLE = 0;
SPARKS();
_y = (_y - (SPEED * Math.cos((Math.PI/180) * SHIPin._rotation)));
_x = (_x + (SPEED * Math.sin((Math.PI/180) * SHIPin._rotation)));
} else if (Key.isDown(40) && (this._y <= 400)) {
tANGLE = 180;
SPARKS();
_y = (_y - (SPEED * Math.cos((Math.PI/180) * SHIPin._rotation)));
_x = (_x + (SPEED * Math.sin((Math.PI/180) * SHIPin._rotation)));
}
if (Key.isDown(32)) {
}
onMouseDown = function () {
TIMER = 11;
MH.onEnterFrame = function () {
SHOOT(0);
};
};
onMouseUp = function () {
MH.onEnterFrame = null;
};
this.TUR._rotation = (Math.atan2(_y - _root._ymouse, _x - _root._xmouse) * 57.2957795130823) + 180;
while (this._x < 0) {
this._x = 0;
}
while (this._x > 550) {
this._x = 550;
}
while (this._y > 400) {
this._y = 400;
}
while (this._y < 0) {
this._y = 0;
}
if (tANGLE < 0) {
tANGLE = tANGLE + 360;
}
ANGLE = tANGLE + SHIPin._rotation;
if (ANGLE > 180) {
ANGLE = -(360 - ANGLE);
}
ANGLE = ANGLE / 10;
SHIPin._rotation = SHIPin._rotation - ANGLE;
}
Instance of Symbol 130 MovieClip in Frame 7
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 182 MovieClip "SHIELDP" in Frame 7
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 190 MovieClip "ENDOR" in Frame 8
onClipEvent (load) {
this.swapDepths(400);
}
Symbol 34 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 35 MovieClip Frame 158
_root.play();
_root.play();
Symbol 43 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Instance of Symbol 43 MovieClip in Symbol 63 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop(7);
}
Instance of Symbol 47 MovieClip in Symbol 63 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop(5);
}
Instance of Symbol 51 MovieClip in Symbol 63 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Instance of Symbol 28 MovieClip in Symbol 63 MovieClip Frame 1
on (release) {
getURL ("http://www.futureflashstudio.com", "blank");
}
Instance of Symbol 22 MovieClip in Symbol 63 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
SUBMIT._visible = true;
stop();
Instance of Symbol 22 MovieClip in Symbol 99 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Instance of Symbol 86 MovieClip "SUBMIT" in Symbol 99 MovieClip Frame 1
on (release) {
this._visible = false;
ab20_09 = new LoadVars();
ab20_09.z = _parent.NAME.text;
ab20_09.x = _parent.SCORES.text;
ab20_09.c = 818;
ab20_09.v = "FWZINC";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
}
Instance of Symbol 94 MovieClip in Symbol 99 MovieClip Frame 1
on (press) {
_root.gotoAndStop(7);
}
Instance of Symbol 96 MovieClip in Symbol 99 MovieClip Frame 1
on (press) {
_root.gotoAndStop(4);
}
Instance of Symbol 98 MovieClip in Symbol 99 MovieClip Frame 1
on (press) {
getURL ("http://www.futureflashstudio.com/FileWars.html", "blank");
}
Symbol 121 MovieClip Frame 1
this.stop();