Frame 2
var savefile = SharedObject.getLocal("musicping");
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
_root.menu = new ContextMenu();
_root.menu.hideBuiltInItems();
Frame 3
if (_root.percentLoaded == 100) {
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
number = 0;
song = true;
Instance of Symbol 276 MovieClip "actions" in Frame 7
onClipEvent (load) {
number = 0;
}
onClipEvent (enterFrame) {
if (_root.changer._currentframe == 15) {
if (number == 1) {
_root.menu1.gotoAndStop(2);
}
if (number == 2) {
_root.menu1.gotoAndStop(3);
}
if (number == 3) {
_root.menu1.gotoAndStop(5);
}
if (number == 4) {
_root.menu1.gotoAndStop(4);
}
if (number == 5) {
_root.menu1.gotoAndStop(1);
}
if (number == 6) {
_root.gotoAndStop("game");
}
if (number > 0) {
number = 0;
}
}
}
Instance of Symbol 279 MovieClip in Frame 7
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!down)) {
if (_root.song) {
_root.song = false;
_root.moosic.stop();
} else {
_root.song = true;
_root.moosic.play();
}
down = true;
}
}
onClipEvent (mouseUp) {
down = false;
}
onClipEvent (enterFrame) {
if (_root.song) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
Frame 8
function newring() {
ringcount++;
if (ringcount > 0) {
powercount++;
}
if ((ringcount / 7) < 5) {
if (powercount != 10) {
esel = random(Math.floor(ringcount / 7) + 1) + 1;
} else {
esel = 7;
powercount = 0;
}
eseli = random(Math.floor(ringcount / 7) + 1) + 1;
esel2 = random(Math.floor(ringcount / 7) + 1) + 1;
eseli2 = random(Math.floor(ringcount / 7) + 1) + 1;
} else {
if (powercount != 10) {
esel = random(5) + 1;
} else {
esel = 7;
powercount = 0;
}
eseli = random(5) + 1;
esel2 = random(5) + 1;
eseli2 = random(5) + 1;
}
g++;
duplicateMovieClip (_root.ground, "gr_" + g, g);
duplicateMovieClip (_root["enemy" + esel], "e_" + g, g + 100);
if (ringcount >= 15) {
duplicateMovieClip (_root["enemy" + eseli], "e2_" + g, g + 103);
}
if (ringcount >= 30) {
duplicateMovieClip (_root["enemy" + esel2], "e3_" + g, g + 106);
}
if (ringcount >= 45) {
duplicateMovieClip (_root["enemy" + eseli2], "e4_" + g, g + 109);
}
duplicateMovieClip (_root.emidthing, "m_" + g, g + 500);
_root["gr_" + (g - 1)].minscale = 75;
_root["gr_" + (g - 2)].minscale = 50;
_root["gr_" + (g - 3)].minscale = 1;
}
stop();
m = 0;
while (m < 15) {
_root["b" + m].removeMovieClip();
_root["e_" + (g - m)].removeMovieClip();
_root["e2_" + (g - m)].removeMovieClip();
_root["e3_" + (g - m)].removeMovieClip();
_root["e4_" + (g - m)].removeMovieClip();
_root["m_" + (g - m)].removeMovieClip();
_root["gr_" + (g - m)].removeMovieClip();
_root["s_" + (i - m)].removeMovieClip();
m++;
}
var g = 0;
var i = 700;
var score = 0;
var timer = 0;
if (_root.sudden) {
var damage = 4;
} else {
var damage = 1;
}
var trishot = false;
var dualshot = false;
var shield = false;
var begin = false;
var lives = 12;
var mlives = lives;
var blah = 1;
var j = 0;
var ringcount = -2;
var shots = 0;
var ecount = 0;
var sense = 0;
var gpause = false;
var number = 0;
var powercount = 0;
var bombcount = 3;
var powertime = 0;
var maxpower = 600;
onEnterFrame = function () {
if (lives > mlives) {
lives = mlives;
}
if ((trishot || (dualshot)) || (shield)) {
powertime--;
if (powertime <= 0) {
powertime = 0;
trishot = (shield = (dualshot = false));
}
}
if (shield) {
arr.sh._alpha = 100;
} else {
arr.sh._alpha = 0;
}
pbar._height = (powertime / maxpower) * 182.3;
if (_root.lives <= 0) {
gpause = false;
m = 0;
while (m < 15) {
_root["b" + m].removeMovieClip();
_root["e_" + (g - m)].removeMovieClip();
_root["e2_" + (g - m)].removeMovieClip();
_root["e3_" + (g - m)].removeMovieClip();
_root["e4_" + (g - m)].removeMovieClip();
_root["m_" + (g - m)].removeMovieClip();
_root["gr_" + (g - m)].removeMovieClip();
_root["s_" + (i - m)].removeMovieClip();
m++;
}
if ((_root.changer._currentframe == 1) && (_root.changer._currentframe == 1)) {
changer.play();
}
if (_root.changer._currentframe == 15) {
_root.gotoAndStop("gmenu");
}
}
if (ringcount < 10) {
ringdisplay = "000" + ringcount;
} else if ((ringcount < 100) && (ringcount >= 10)) {
ringdisplay = "00" + ringcount;
} else if ((ringcount >= 100) && (ringcount < 1000)) {
ringdisplay = "0" + ringcount;
} else if (ringcount >= 1000) {
ringdisplay = ringcount;
}
if (!_root.gpause) {
if (!begin) {
if (_root["gr_" + (g - 2)].minscale != 50) {
newring();
} else {
begin = true;
}
}
if (spawn < g) {
newring();
}
if (i >= (_root.g + 400)) {
i = _root.g + 200;
}
if (j >= 50) {
j = 0;
}
if (j < 10) {
j = 10;
}
m = 10000 + g;
if ((Key.isDown(32) && (!_root.mouse)) || (shoot && (_root.mouse))) {
timer++;
if (timer >= 5) {
i++;
shots++;
duplicateMovieClip (_root.shot, "s_" + i, i);
if (dualshot) {
duplicateMovieClip (_root.shot, "s2_" + i, i + 20);
} else if (trishot) {
duplicateMovieClip (_root.shot, "s2_" + i, i + 20);
duplicateMovieClip (_root.shot, "s3_" + i, i + 40);
}
timer = 0;
}
} else {
timer = 5;
}
if (Key.isDown(65)) {
ctimer++;
if (ctimer >= 7) {
blah = blah + 1;
ctimer = 0;
}
} else if (Key.isDown(68)) {
ctimer++;
if (ctimer >= 7) {
blah = blah - 1;
ctimer = 0;
}
} else {
ctimer = 7;
}
if (blah <= 0) {
blah = 4;
}
if (blah >= 5) {
blah = 1;
}
arr.gotoAndStop(blah);
arr2.gotoAndStop(blah);
}
if (Key.isDown(13) && (!entered)) {
if (gpause) {
gpause = false;
} else {
gpause = true;
}
entered = true;
}
if (!Key.isDown(13)) {
entered = false;
}
if (bombcount < 0) {
bombcount = 0;
}
if (bombcount > 3) {
bombcount = 3;
}
if (((Key.isDown(17) && (!condown)) && (bombcount > 0)) && (!gpause)) {
bombcount = bombcount - 1;
m = 0;
while (m < 15) {
_root["e_" + (g - m)].gotoAndStop(2);
_root["e2_" + (g - m)].gotoAndStop(2);
_root["e3_" + (g - m)].gotoAndStop(2);
_root["e4_" + (g - m)].gotoAndStop(2);
m++;
}
condown = true;
}
if (!Key.isDown(17)) {
condown = false;
}
};
onMouseDown = function () {
shoot = true;
};
onMouseUp = function () {
shoot = false;
};
Instance of Symbol 292 MovieClip "midthing" in Frame 8
onClipEvent (load) {
speed = 0;
_rotation = 0;
xspot = _x;
yspot = _y;
}
onClipEvent (enterFrame) {
if (!_root.gpause) {
if (!_root.mouse) {
spd = 1;
this._visible = false;
_x = xspot;
_y = yspot;
xDist = _x - _root._xmouse;
yDist = _y - _root._ymouse;
angle = _rotation;
if (Key.isDown(39)) {
speed = speed + spd;
} else if (Key.isDown(37)) {
speed = speed - spd;
}
if (speed > 25) {
speed = 25;
} else if (speed < -25) {
speed = -25;
}
if (speed > 0) {
speed = speed - 0.5;
} else if (speed < 0) {
speed = speed + 0.5;
}
_rotation = (_rotation + speed);
} else {
spd = 1;
this._visible = false;
_x = xspot;
_y = yspot;
xDist = _x - _root._xmouse;
yDist = _y - _root._ymouse;
angle = _rotation;
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
if (speed > 20) {
speed = 20;
} else if (speed < -20) {
speed = -20;
}
if (speed > 0) {
speed = speed - 0.5;
} else if (speed < 0) {
speed = speed + 0.5;
}
oldangle = (Math.atan2(yDist, xDist) / (Math.PI/180)) - 180;
}
xDiff = Math.cos(angle * (Math.PI/180));
yDiff = Math.sin(angle * (Math.PI/180));
i = 50;
while (i < 80) {
xComp = (Math.cos(angle * (Math.PI/180)) * i) + _x;
yComp = (Math.sin(angle * (Math.PI/180)) * i) + _y;
if (_root.ground.hitTest(xComp, yComp, true)) {
if (_root.ground.hitTest(xComp - xDiff, yComp - yDiff, true) == false) {
_root.arr._x = (Math.cos(angle * (Math.PI/180)) * i) + _x;
_root.arr._y = (Math.sin(angle * (Math.PI/180)) * i) + _y;
_root.arr._rotation = _rotation;
}
}
i++;
}
}
}
Instance of Symbol 292 MovieClip "emidthing" in Frame 8
onClipEvent (load) {
this._visible = false;
g = _root.g;
h = _root.g;
mspd = 2;
sarray = new Array(random(mspd) + 1, -(random(mspd) + 1));
rspeed = sarray[random(sarray.length)];
rotation = random(360);
xspot = _x;
yspot = _y;
}
onClipEvent (enterFrame) {
this._visible = false;
if (_name != emidthing) {
if (_root.lives <= 0) {
this.removeMovieClip();
}
maxi = _root["gr_" + g]._xscale * 2.5;
mini = maxi - 20;
if (!_root.gpause) {
if (rspeed == 0) {
rspeed = sarray[random(2)];
}
speed = rspeed;
_x = xspot;
_y = yspot;
xDist = _x - _root._xmouse;
yDist = _y - _root._ymouse;
angle = rotation;
rotation = rotation + speed;
}
xDiff = Math.cos(angle * (Math.PI/180));
yDiff = Math.sin(angle * (Math.PI/180));
i = mini;
while (i < maxi) {
xComp = (Math.cos(angle * (Math.PI/180)) * i) + _x;
yComp = (Math.sin(angle * (Math.PI/180)) * i) + _y;
if (_root["gr_" + g].hitTest(xComp, yComp, true)) {
if (_root["gr_" + g].hitTest(xComp - xDiff, yComp - yDiff, true) == false) {
rawrc = Math.cos(angle * (Math.PI/180));
rawrs = Math.sin(angle * (Math.PI/180));
rawrc2 = Math.cos((angle + 90) * (Math.PI/180));
rawrs2 = Math.sin((angle + 90) * (Math.PI/180));
_root["e_" + h]._x = (rawrc * i) + _x;
_root["e_" + h]._y = (rawrs * i) + _y;
_root["e2_" + h]._x = ((-rawrc) * i) + _x;
_root["e2_" + h]._y = ((-rawrs) * i) + _y;
_root["e3_" + h]._x = (rawrc2 * i) + _x;
_root["e3_" + h]._y = (rawrs2 * i) + _y;
_root["e4_" + h]._x = ((-rawrc2) * i) + _x;
_root["e4_" + h]._y = ((-rawrs2) * i) + _y;
}
}
i++;
}
} else {
this._x = -1000;
}
}
Instance of Symbol 299 MovieClip "enemy1" in Frame 8
onClipEvent (load) {
spawn = _root.spawn;
g = _root.g;
_root["gr_" + g].alive++;
stimer = 0;
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2");
blarg = random(carray.length);
_root["gr_" + g].blarg = blarg;
color1 = new Color(this).setRGB(carray[blarg]);
stime2 = random(60) + 90;
var alive = true;
}
onClipEvent (enterFrame) {
if (_name != "enemy1") {
if (_currentframe == 1) {
stime = stime2;
if (alive && (_root["gr_" + g] == _root["gr_" + (_root.g - 2)])) {
_root.spawn = _root.g;
}
Xd = _root.emidthing._x - _x;
Yd = _root.emidthing._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 180);
if (!_root.gpause) {
if (_root.lives <= 0) {
this.removeMovieClip();
}
if (alive) {
stimer++;
if (stimer > stime) {
shoot = true;
stimer = 0;
}
if (shoot) {
_root.j++;
duplicateMovieClip (_root.eshot, "es_" + _name, (_root.g * 2) + _root.j);
_root["es_" + _name].blarg = blarg;
_root["es_" + _name]._x = _x;
_root["es_" + _name]._y = _y;
_root["es_" + _name].dude = _name;
_root["es_" + _name]._rotation = _rotation - 90;
shoot = false;
}
}
this._xscale = (this._yscale = _root["gr_" + g]._xscale);
if (_root["gr_" + g]._xscale <= 25) {
_root["m_" + g].removeMovieClip();
this.removeMovieClip();
}
a = 0;
while (a < 15) {
z = _root.i - a;
if (_root["s_" + z].hitTest(this)) {
if (blarg == _root["s_" + z].blarg) {
gotoAndStop (3);
_root["s_" + z].removeMovieClip();
} else {
_root["s_" + z]._rotation = _root["s_" + z]._rotation + 180;
}
}
if (_root["s2_" + z].hitTest(this)) {
if (blarg == _root["s2_" + z].blarg) {
gotoAndStop (3);
_root["s2_" + z].removeMovieClip();
} else {
_root["s2_" + z]._rotation = _root["s2_" + z]._rotation + 180;
}
}
if (_root["s3_" + z].hitTest(this)) {
if (blarg == _root["s3_" + z].blarg) {
gotoAndStop (3);
_root["s3_" + z].removeMovieClip();
} else {
_root["s3_" + z]._rotation = _root["s3_" + z]._rotation + 180;
}
}
a++;
}
}
}
} else {
this._x = -1000;
}
}
Instance of Symbol 303 MovieClip "enemy2" in Frame 8
onClipEvent (load) {
spawn = _root.spawn;
g = _root.g;
_root["gr_" + g].alive++;
stimer = 0;
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2");
blarg = random(carray.length);
color1 = new Color(this).setRGB(carray[blarg]);
stime2 = random(60) + 100;
alive = true;
}
onClipEvent (enterFrame) {
if (_name != "enemy2") {
if (_currentframe == 1) {
stime = stime2 - _root.sense;
if (!_root.gpause) {
if (_root.lives <= 0) {
this.removeMovieClip();
}
if (alive && (_root["gr_" + g] == _root["gr_" + (_root.g - 2)])) {
_root.spawn = _root.g;
}
Xd = this._parent.arr._x - _x;
Yd = this._parent.arr._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (alive) {
stimer++;
if (stimer > stime) {
shoot = true;
stimer = 0;
}
if (shoot) {
_root.j++;
duplicateMovieClip (_root.eshot2, "es_" + _name, _root.g + _root.j);
_root["es_" + _name]._xscale = (_root["es_" + _name]._yscale = this._xscale * 2.5);
_root["es_" + _name].blarg = blarg;
_root["es_" + _name]._x = _x;
_root["es_" + _name]._y = _y;
_root["es_" + _name].dude = _name;
_root["es_" + _name]._rotation = _rotation;
shoot = false;
}
}
this._xscale = (this._yscale = _root["gr_" + g]._xscale);
if (_root["gr_" + g]._xscale <= 25) {
_root["m_" + g].removeMovieClip();
this.removeMovieClip();
}
a = 0;
while (a < 15) {
z = _root.i - a;
if (_root["s_" + z].hitTest(this)) {
if (blarg == _root["s_" + z].blarg) {
gotoAndStop (3);
_root["s_" + z].removeMovieClip();
} else {
_root["s_" + z]._rotation = _root["s_" + z]._rotation + 180;
}
}
if (_root["s2_" + z].hitTest(this)) {
if (blarg == _root["s2_" + z].blarg) {
gotoAndStop (3);
_root["s2_" + z].removeMovieClip();
} else {
_root["s2_" + z]._rotation = _root["s2_" + z]._rotation + 180;
}
}
if (_root["s3_" + z].hitTest(this)) {
if (blarg == _root["s3_" + z].blarg) {
gotoAndStop (3);
_root["s3_" + z].removeMovieClip();
} else {
_root["s3_" + z]._rotation = _root["s3_" + z]._rotation + 180;
}
}
a++;
}
}
}
} else {
this._x = -1000;
}
}
Instance of Symbol 305 MovieClip "enemy3" in Frame 8
onClipEvent (load) {
spawn = _root.spawn;
g = _root.g;
_root["gr_" + g].alive++;
stimer = 0;
_rotation = 90;
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2");
blarg = random(carray.length);
color1 = new Color(this).setRGB(carray[blarg]);
stime2 = random(70) + 90;
alive = true;
}
onClipEvent (enterFrame) {
if (_name != "enemy3") {
if (_currentframe == 1) {
stime = stime2;
if (!_root.gpause) {
if (_root.lives <= 0) {
this.removeMovieClip();
}
if (alive && (_root["gr_" + g] == _root["gr_" + (_root.g - 2)])) {
_root.spawn = _root.g;
}
Xd = _root.emidthing._x - _x;
Yd = _root.emidthing._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (alive) {
stimer++;
if (stimer > stime) {
shoot = true;
stimer = 0;
}
if (shoot) {
_root.j++;
duplicateMovieClip (_root.eshot, "es_" + _name, _root.g + _root.j);
_root.j++;
duplicateMovieClip (_root.eshot, "es1_" + _name, _root.g + _root.j);
_root["es_" + _name].blarg = blarg;
_root["es_" + _name]._x = _x;
_root["es_" + _name]._y = _y;
_root["es_" + _name].dude = _name;
_root["es_" + _name]._rotation = _rotation + 5;
_root["es1_" + _name].blarg = blarg;
_root["es1_" + _name]._x = _x;
_root["es1_" + _name]._y = _y;
_root["es1_" + _name].dude = _name;
_root["es1_" + _name]._rotation = _rotation - 5;
shoot = false;
}
}
this._xscale = (this._yscale = _root["gr_" + g]._xscale);
a = 0;
while (a < 15) {
z = _root.i - a;
if (_root["s_" + z].hitTest(this)) {
if (blarg == _root["s_" + z].blarg) {
gotoAndStop (3);
_root["s_" + z].removeMovieClip();
} else {
_root["s_" + z]._rotation = _root["s_" + z]._rotation + 180;
}
}
if (_root["s2_" + z].hitTest(this)) {
if (blarg == _root["s2_" + z].blarg) {
gotoAndStop (3);
_root["s2_" + z].removeMovieClip();
} else {
_root["s2_" + z]._rotation = _root["s2_" + z]._rotation + 180;
}
}
if (_root["s3_" + z].hitTest(this)) {
if (blarg == _root["s3_" + z].blarg) {
gotoAndStop (3);
_root["s3_" + z].removeMovieClip();
} else {
_root["s3_" + z]._rotation = _root["s3_" + z]._rotation + 180;
}
}
a++;
}
}
}
} else {
this._x = -1000;
}
}
Instance of Symbol 306 MovieClip "enemy4" in Frame 8
onClipEvent (load) {
spawn = _root.spawn;
g = _root.g;
carray = new Array("0xFFFFFF");
blarg = random(carray.length);
new Color(this).setRGB(carray[blarg]);
alive = false;
shield = true;
}
onClipEvent (enterFrame) {
if (_name != "enemy4") {
if (!_root.gpause) {
if (_root.lives <= 0) {
this.removeMovieClip();
}
_alpha = 70;
Xd = _root.emidthing._x - _x;
Yd = _root.emidthing._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 180);
this._xscale = (this._yscale = _root["gr_" + g]._xscale);
a = 0;
while (a < 15) {
z = _root.i - a;
if (_root["s_" + z].hitTest(this)) {
_root["s_" + z].spd = 0;
_root["s_" + z].gotoAndStop(2);
}
if (_root["s2_" + z].hitTest(this)) {
_root["s2_" + z].spd = 0;
_root["s2_" + z].gotoAndStop(2);
}
if (_root["s3_" + z].hitTest(this)) {
_root["s3_" + z].spd = 0;
_root["s3_" + z].gotoAndStop(2);
}
a++;
}
}
} else {
this._x = -1000;
}
}
Instance of Symbol 299 MovieClip "thing1" in Frame 8
onClipEvent (enterFrame) {
}
Instance of Symbol 299 MovieClip "thing2" in Frame 8
onClipEvent (enterFrame) {
}
Instance of Symbol 299 MovieClip "thing3" in Frame 8
onClipEvent (enterFrame) {
}
Instance of Symbol 299 MovieClip "thing4" in Frame 8
onClipEvent (enterFrame) {
}
Instance of Symbol 164 MovieClip in Frame 8
onClipEvent (enterFrame) {
_x = _root["thing" + _root.blah]._x;
_y = _root["thing" + _root.blah]._y;
}
Instance of Symbol 309 MovieClip "ground" in Frame 8
onClipEvent (load) {
alive = 0;
g = _root.g;
if (this._name != "ground") {
minscale = 100;
_yscale = 200;
_xscale = 200;
}
new Color(this).setRGB(7719167);
}
onClipEvent (enterFrame) {
if (this._name != "ground") {
if (_root.lives <= 0) {
this.removeMovieClip();
}
if (((((!_root["e_" + g].alive) && (!_root["e2_" + g].alive)) && (!_root["e3_" + g].alive)) && (!_root["e4_" + g].alive)) && (g == (_root.g - 2))) {
alive = -1;
}
if ((alive <= 0) && (g == (_root.g - 2))) {
alive = 0;
_root.spawn = _root.spawn - 1;
}
thing._visible = true;
if (!_root.gpause) {
_alpha = (_xscale - 10);
if (_xscale > minscale) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
}
if (_xscale <= 25) {
_root["e_" + g].removeMovieClip();
_root["e2_" + g].removeMovieClip();
_root["e3_" + g].removeMovieClip();
_root["e4_" + g].removeMovieClip();
_root["m_" + g].removeMovieClip();
this.removeMovieClip();
}
if (_xscale <= 50) {
_root["e_" + (g - 1)].removeMovieClip();
_root["e2_" + (g - 1)].removeMovieClip();
_root["e3_" + (g - 1)].removeMovieClip();
_root["e4_" + (g - 1)].removeMovieClip();
_root["m_" + (g - 1)].removeMovieClip();
_root["gr_" + (g - 1)].removeMovieClip();
}
}
} else {
thing._visible = false;
_alpha = 0;
_yscale = 25;
_xscale = 25;
}
}
Instance of Symbol 311 MovieClip "mground" in Frame 8
onClipEvent (load) {
g = _root.g;
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2", "0xFFFFFF");
}
onClipEvent (enterFrame) {
_alpha = 50;
_yscale = 25;
_xscale = 25;
blarg = _parent.arr._currentframe - 1;
color1 = new Color(this).setRGB(carray[blarg]);
}
Instance of Symbol 325 MovieClip "arr2" in Frame 8
onClipEvent (enterFrame) {
_alpha = 35;
this._x = _parent.arr._x;
this._y = _parent.arr._y;
this._rotation = _parent.arr._rotation;
}
Instance of Symbol 329 MovieClip "shot" in Frame 8
onClipEvent (load) {
this._x = _parent.arr._x;
this._y = _parent.arr._y;
spd = 15;
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2");
blarg = _parent.arr._currentframe - 1;
if (_root.dualshot) {
if (_name == ("s_" + _root.i)) {
_rotation = (_parent.arr._rotation + 85);
} else if (_name == ("s2_" + _root.i)) {
_rotation = (_parent.arr._rotation + 95);
blarg = blarg + 1;
if (blarg >= 4) {
blarg = 0;
}
}
} else if (_root.trishot) {
if (_name == ("s_" + _root.i)) {
_rotation = (_parent.arr._rotation + 90);
} else if (_name == ("s2_" + _root.i)) {
_rotation = (_parent.arr._rotation + 100);
blarg = blarg - 1;
if (blarg <= -1) {
blarg = 3;
}
} else if (_name == ("s3_" + _root.i)) {
_rotation = (_parent.arr._rotation + 80);
blarg = blarg + 1;
if (blarg >= 4) {
blarg = 0;
}
}
} else {
_rotation = (_parent.arr._rotation + 90);
}
if (blarg > 4) {
blarg = 1;
}
if (blarg < 0) {
blarg = 4;
}
color1 = new Color(this).setRGB(carray[blarg]);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_name == "shot") {
this._x = -1000;
} else {
if (_root.lives <= 0) {
this.removeMovieClip();
}
if (!_root.gpause) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((this._x > (Stage.width + 100)) || (this._x < -100)) || (this._y > (Stage.height + 100))) || (this._y < -100)) {
this.removeMovieClip();
}
}
if (this.hitTest(_parent.arr)) {
_alpha = 0;
} else {
_alpha = 80;
}
}
}
Instance of Symbol 329 MovieClip "eshot" in Frame 8
onClipEvent (load) {
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2");
color1 = new Color(this).setRGB(carray[blarg]);
spd = 10;
_alpha = 80;
}
onClipEvent (enterFrame) {
if (_name == "eshot") {
this._x = -1000;
} else {
if (_root.lives <= 0) {
this.removeMovieClip();
}
color1 = new Color(this).setRGB(carray[blarg]);
if (!_root.gpause) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((this._x > (Stage.width + 100)) || (this._x < -100)) || (this._y > (Stage.height + 100))) || (this._y < -100)) {
this.removeMovieClip();
}
if (_parent.arr.hitTest(_x, _y, true)) {
if (!_root.shield) {
_root.flash2.play();
_root.lives = _root.lives - _root.damage;
this.removeMovieClip();
} else {
_root.score = _root.score + 50;
this.removeMovieClip();
}
}
}
}
}
Instance of Symbol 332 MovieClip "eshot2" in Frame 8
onClipEvent (load) {
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2", "0xFFFFFF");
color1 = new Color(this).setRGB(carray[blarg]);
spd = 10;
_alpha = 80;
}
onClipEvent (enterFrame) {
if (_name == "eshot2") {
this._x = -1000;
} else {
if (_root.lives <= 0) {
this.removeMovieClip();
}
color1 = new Color(this).setRGB(carray[blarg]);
if (!_root.gpause) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((this._x > (Stage.width + 100)) || (this._x < -100)) || (this._y > (Stage.height + 100))) || (this._y < -100)) {
this.removeMovieClip();
}
if (_parent.arr.hitTest(_x, _y, true)) {
if (!_root.shield) {
_root.flash2.play();
_root.lives = _root.lives - _root.damage;
_root.blah = blarg + 1;
this.removeMovieClip();
} else {
_root.score = _root.score + 50;
this.removeMovieClip();
}
}
}
}
}
Instance of Symbol 340 MovieClip "enemy5" in Frame 8
onClipEvent (load) {
g = _root.g;
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2");
blarg = random(carray.length);
color1 = new Color(this).setRGB(carray[blarg]);
var alive = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_name != "enemy5") {
if (_currentframe == 1) {
if (!_root.gpause) {
if (_root.lives <= 0) {
this.removeMovieClip();
}
_alpha = 70;
Xd = _root.emidthing._x - _x;
Yd = _root.emidthing._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 180);
this._xscale = (this._yscale = _root["gr_" + g]._xscale);
if (((g == (_root.g - 2)) && (_currentframe != 2)) && (_root["gr_" + g].alive <= 0)) {
_root.flash2.play();
dead = true;
gotoAndStop (3);
_root.lives = _root.lives - _root.damage;
}
a = 0;
while (a < 15) {
z = _root.i - a;
if (_root["s_" + z].hitTest(this)) {
if (blarg == _root["s_" + z].blarg) {
alive = false;
gotoAndStop (3);
_root["s_" + z].removeMovieClip();
} else {
_root["s_" + z]._rotation = _root["s_" + z]._rotation + 180;
}
}
if (_root["s2_" + z].hitTest(this)) {
if (blarg == _root["s2_" + z].blarg) {
alive = false;
gotoAndStop (3);
_root["s2_" + z].removeMovieClip();
} else {
_root["s2_" + z]._rotation = _root["s2_" + z]._rotation + 180;
}
}
if (_root["s3_" + z].hitTest(this)) {
if (blarg == _root["s3_" + z].blarg) {
alive = false;
gotoAndStop (3);
_root["s3_" + z].removeMovieClip();
} else {
_root["s3_" + z]._rotation = _root["s3_" + z]._rotation + 180;
}
}
a++;
}
}
}
} else {
this._x = -1000;
}
}
Instance of Symbol 347 MovieClip "enemy7" in Frame 8
onClipEvent (load) {
blah = random(5);
if ((blah == 2) && ((_root.lives >= 12) || (_root.sudden))) {
blah = 3;
}
if ((blah == 3) && (_root.bombs >= 3)) {
blah = 4;
}
gotoAndStop(blah + 2 +1);
spawn = _root.spawn;
g = _root.g;
alive = false;
shield = true;
dead = true;
}
onClipEvent (enterFrame) {
if (_name != "enemy7") {
if (!_root.gpause) {
if (_currentframe != 2) {
if (_root.lives <= 0) {
this.removeMovieClip();
}
_alpha = 70;
Xd = _root.emidthing._x - _x;
Yd = _root.emidthing._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 180);
this._xscale = (this._yscale = _root["gr_" + g]._xscale);
if ((g <= (_root.g - 2)) && (_root["gr_" + g].alive <= 0)) {
removeMovieClip(this);
}
a = 0;
while (a < 15) {
z = _root.i - a;
if ((_root["s_" + z].hitTest(this) || (_root["s2_" + z].hitTest(this))) || (_root["s3_" + z].hitTest(this))) {
dead = false;
alive = false;
if (blah == 0) {
_root.powertime = _root.maxpower;
_root.dualshot = true;
_root.trishot = (_root.shield = false);
}
if (blah == 1) {
_root.powertime = _root.maxpower;
_root.trishot = true;
_root.dualshot = (_root.shield = false);
}
if (blah == 2) {
_root.lives = _root.lives + 3;
}
if (blah == 3) {
_root.bombcount = _root.bombcount + 1;
}
if (blah == 4) {
_root.powertime = _root.maxpower;
_root.shield = true;
_root.trishot = (_root.dualshot = false);
}
gotoAndStop (2);
}
a++;
}
}
}
} else {
this._x = -1000;
}
}
Instance of Symbol 350 MovieClip "bomb" in Frame 8
onClipEvent (load) {
if (_name == "bomb") {
i = 1;
while (i < 4) {
duplicateMovieClip (_root.bomb, "b" + i, i + 3452);
_root["b" + i].i = i;
_root["b" + i]._y = _root["b" + (i - 1)]._y + (_height * 2);
i++;
}
}
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2", "0xFFFFFF");
}
onClipEvent (enterFrame) {
if (_name != "bomb") {
if (i > _root.bombcount) {
_visible = false;
} else {
_visible = true;
}
_alpha = 50;
blarg = _parent.arr._currentframe - 1;
color1 = new Color(this).setRGB(carray[blarg]);
} else {
_x = -1000;
}
}
Instance of Symbol 366 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.gpause) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 9
stop();
submit._visible = true;
if (sudden) {
titlebar.gotoAndStop(1);
} else {
titlebar.gotoAndStop(2);
}
lives = 1;
Symbol 25 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 32 MovieClip Frame 81
_root.play();
Symbol 32 MovieClip Frame 103
_root.play();
Symbol 37 Button
on (release) {
nextFrame();
}
Symbol 162 MovieClip Frame 11
stop();
Symbol 165 MovieClip Frame 10
stop();
Symbol 184 MovieClip Frame 314
_root.play();
Symbol 188 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 10);
};
Instance of Symbol 188 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
vel_y = -1;
_parent.startmenu._alpha = 0;
_root.menuchange = false;
_root.menuchange2 = false;
_root.screenchange = false;
_root.gotogame = false;
_root.menuchange3 = false;
}
onClipEvent (enterFrame) {
if (((!vel_y) <= 5) && (!_root.screenchange)) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
} else {
_parent.startmenu._alpha = 100;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
} else if ((this._y >= 650) && (_root.screenchange)) {
_root.gotogame = true;
}
this._x = this._x - speed;
}
Symbol 193 MovieClip Frame 150
_root.play();
Symbol 205 Button
on (release) {
if (_root.changer._currentframe == 1) {
_root.actions.number = 1;
_root.changer.play();
}
}
Symbol 206 Button
on (release) {
if (_root.changer._currentframe == 1) {
_root.actions.number = 2;
_root.changer.play();
}
}
Symbol 207 Button
on (release) {
if (_root.changer._currentframe == 1) {
_root.actions.number = 4;
_root.changer.play();
}
}
Symbol 208 Button
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 209 Button
on (release) {
if (_root.changer._currentframe == 1) {
_root.actions.number = 3;
_root.changer.play();
}
}
Symbol 211 Button
on (release) {
if (_root.changer._currentframe == 1) {
_root.actions.number = 5;
_root.changer.play();
}
}
Symbol 214 Button
on (release) {
_root.mouse = true;
_root.sudden = false;
if (_root.changer._currentframe == 1) {
_root.actions.number = 6;
_root.changer.play();
}
}
Symbol 215 Button
on (release) {
_root.mouse = false;
_root.sudden = false;
if (_root.changer._currentframe == 1) {
_root.actions.number = 6;
_root.changer.play();
}
}
Symbol 220 Button
on (release) {
_root.mouse = true;
_root.sudden = true;
if (_root.changer._currentframe == 1) {
_root.actions.number = 6;
_root.changer.play();
}
}
Symbol 221 Button
on (release) {
_root.mouse = false;
_root.sudden = true;
if (_root.changer._currentframe == 1) {
_root.actions.number = 6;
_root.changer.play();
}
}
Symbol 225 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=560", _blank);
}
Symbol 226 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=886", _blank);
}
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
stop();
Symbol 271 Button
on (release) {
if (_root.menu1.instructions._currentframe != 1) {
_root.menu1.instructions.prevFrame();
}
}
Symbol 272 Button
on (release) {
if (_root.menu1.instructions._currentframe != 2) {
_root.menu1.instructions.nextFrame();
}
}
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
stop();
Symbol 274 MovieClip Frame 3
stop();
Symbol 274 MovieClip Frame 4
stop();
Symbol 274 MovieClip Frame 5
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 15
if (_root.number == 8) {
_root.gotoAndStop("menu");
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 1
_root.flash.play();
_root.score = _root.score + 200;
Symbol 298 MovieClip Frame 21
stop();
_root.ecount = _root.ecount + 1;
_parent.alive = false;
_root["gr_" + _parent.g].alive = _root["gr_" + _parent.g].alive - 1;
this._parent.removeMovieClip();
Symbol 299 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
_root.flash.play();
_root.score = _root.score + 300;
Symbol 302 MovieClip Frame 21
stop();
_root.ecount = _root.ecount + 1;
_parent.alive = false;
_root["gr_" + _parent.g].alive = _root["gr_" + _parent.g].alive - 1;
this._parent.removeMovieClip();
Symbol 303 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 2
_root.score = _root.score + 250;
Symbol 306 MovieClip Frame 1
stop();
Instance of Symbol 312 MovieClip "bar" in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = ((_root.lives / 12) * 120);
}
Symbol 325 MovieClip Frame 1
stop();
Instance of Symbol 324 MovieClip "sh" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
carray = new Array("0x75C8FF", "0xAAFF95", "0xFFCA79", "0xE1B5F2", "0xFFFFFF");
}
onClipEvent (enterFrame) {
blarg = _root.arr._currentframe - 1;
color1 = new Color(this).setRGB(carray[blarg]);
}
Symbol 328 MovieClip Frame 21
stop();
this._parent.removeMovieClip();
Symbol 329 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
_root.flash.play();
if (!_parent.dead) {
_root.score = _root.score + 400;
}
Symbol 339 MovieClip Frame 21
stop();
_root.ecount = _root.ecount + 1;
this._parent.removeMovieClip();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 3
stop();
Symbol 347 MovieClip Frame 4
stop();
Symbol 360 Button
on (release) {
_quality = "Low";
}
Symbol 362 Button
on (release) {
_quality = "Medium";
}
Symbol 364 Button
on (release) {
_quality = "High";
}
Instance of Symbol 279 MovieClip in Symbol 366 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (!down)) {
if (_root.song) {
_root.song = false;
_root.moosic.stop();
} else {
_root.song = true;
_root.moosic.play();
}
down = true;
}
}
onClipEvent (mouseUp) {
down = false;
}
onClipEvent (enterFrame) {
if (_root.song) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
Symbol 371 Button
on (release) {
if ((mynamevar.text != "Name") && (mynamevar.text != "")) {
if (_root.sudden) {
ab20_09 = new LoadVars();
ab20_09.z = mynamevar.text;
ab20_09.x = score;
ab20_09.c = 886;
ab20_09.v = "ZOHIXM";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
} else {
ab20_09 = new LoadVars();
ab20_09.z = mynamevar.text;
ab20_09.x = score;
ab20_09.c = 560;
ab20_09.v = "EGUQES";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
}
submit._visible = false;
}
}
Symbol 372 Button
on (release) {
if (_root.changer._currentframe == 1) {
_root.number = 8;
_root.changer.play();
}
}