Frame 1
stop();
Instance of Symbol 17 MovieClip in Frame 1
on (press) {
_quality = "high";
}
Instance of Symbol 19 MovieClip in Frame 1
on (press) {
_quality = "medium";
}
Instance of Symbol 21 MovieClip in Frame 1
on (press) {
_quality = "low";
}
Instance of Symbol 23 MovieClip "loads" in Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
}
Instance of Symbol 25 MovieClip in Frame 1
on (press) {
_root.gotoAndPlay(2);
}
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.loads._xscale != 100) {
_visible = false;
} else {
_visible = true;
}
}
Frame 2
stop();
Frame 3
stop();
_quality = "medium";
Instance of Symbol 25 MovieClip in Frame 3
on (press) {
stopAllSounds();
_root.gotoAndPlay(4);
}
Instance of Symbol 17 MovieClip in Frame 3
on (press) {
_quality = "high";
}
Instance of Symbol 19 MovieClip in Frame 3
on (press) {
_quality = "medium";
}
Instance of Symbol 21 MovieClip in Frame 3
on (press) {
_quality = "low";
}
Frame 4
stop();
Instance of Symbol 84 MovieClip "gun" in Frame 4
onClipEvent (load) {
timee = 1;
damage = 1;
rates = 2;
multi = 1;
}
onClipEvent (mouseDown) {
p = 1;
}
onClipEvent (mouseUp) {
p = 0;
}
onClipEvent (enterFrame) {
if (_root.varr.playin == 1) {
x = _root.crosshairs._x;
y = _root.crosshairs._y;
delta_x = x - _x;
delta_y = y - _y;
ra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
ra = ra + (Math.PI*2);
}
r = (ra / Math.PI) * 180;
if ((r > 360) || (r < 90)) {
r = 360;
}
if (r < 180) {
r = 180;
}
_rotation = (r + 90);
timee--;
if (timee < 1) {
if (p == 1) {
if (multi == 1) {
duplicateMovieClip (_root.bullet, "b" + _root.varr.fc, _root.varr.fc);
_root["b" + _root.varr.fc]._x = _x;
_root["b" + _root.varr.fc]._y = _y;
_root["b" + _root.varr.fc].angle = r;
_root["b" + _root.varr.fc].damage = damage;
_root.varr.fc++;
timee = 25 / rates;
gotoAndPlay (2);
_root.varr.cash = _root.varr.cash - 1;
_root.s1.gotoAndPlay(2);
}
if (multi == 3) {
t = 0;
while (t < 3) {
duplicateMovieClip (_root.bullet, "b" + _root.varr.fc, _root.varr.fc);
_root["b" + _root.varr.fc]._x = _x;
_root["b" + _root.varr.fc]._y = _y;
_root["b" + _root.varr.fc].angle = (r - 5) + (t * 5);
_root["b" + _root.varr.fc].damage = damage;
_root.varr.fc++;
timee = 25 / rates;
gotoAndPlay (2);
_root.varr.cash = _root.varr.cash - 1;
_root.s1.gotoAndPlay(2);
t++;
}
}
}
}
}
}
Instance of Symbol 86 MovieClip "crosshairs" in Frame 4
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
_y = _root._ymouse;
_x = _root._xmouse;
_rotation = (_rotation + (5 * speed));
}
Instance of Symbol 88 MovieClip "bullet" in Frame 4
onClipEvent (load) {
y = Math.sin((angle / 180) * Math.PI);
x = Math.cos((angle / 180) * Math.PI);
speed = 15;
_visible = false;
v = 1;
}
onClipEvent (enterFrame) {
v--;
if (v < 0) {
_visible = true;
}
h = 0;
while (h < 3) {
_x = (_x + (x * speed));
_y = (_y + (y * speed));
i = 0;
while (i < _root.varr.heli.length) {
if (this.hitTest(_root["h" + _root.varr.heli[i]])) {
_root["h" + _root.varr.heli[i]].nam = i;
_root["h" + _root.varr.heli[i]].life = _root["h" + _root.varr.heli[i]].life - damage;
duplicateMovieClip (_root.spark, "spr" + _root.varr.fc, _root.varr.fc);
_root["spr" + _root.varr.fc]._x = _x;
_root["spr" + _root.varr.fc]._y = _y;
_root.varr.fc++;
removeMovieClip(this);
}
i++;
}
i = 0;
while (i < _root.varr.ml) {
if (this.hitTest(_root["m" + _root.varr.men[i]].man)) {
_root["m" + _root.varr.men[i]].nam = i;
_root["m" + _root.varr.men[i]].life = _root["m" + _root.varr.men[i]].life - damage;
removeMovieClip(this);
}
if (this.hitTest(_root["m" + _root.varr.men[i]].paras)) {
_root["m" + _root.varr.men[i]].para = 0;
_root["m" + _root.varr.men[i]].a = 0.1;
removeMovieClip(this);
}
i++;
}
h++;
}
if (_y < 0) {
removeMovieClip(this);
} else if (_x < 0) {
removeMovieClip(this);
} else if (_x > 550) {
removeMovieClip(this);
}
}
Instance of Symbol 90 MovieClip "varr" in Frame 4
onClipEvent (load) {
level = 1;
fc = 1;
lvls = 2 + Math.floor(level / 2);
startlevel = 1;
playin = 1;
randomizer = 40;
heli = new Array();
dheli = new Array();
men = new Array();
part = 0;
mpart = 170;
amount = 20;
showbuy = 0;
cash = 100;
emp = 0;
}
onClipEvent (enterFrame) {
life = _root.lifes.life;
if (life < 1) {
t = 0;
while (t < heli.length) {
removeMovieClip(_root["h" + heli[t]]);
t++;
}
t = 0;
while (t < men.length) {
removeMovieClip(_root["m" + men[t]]);
t++;
}
_root.gotoAndStop(5);
}
ha = heli[0];
hb = heli[1];
hc = heli[2];
hd = heli[3];
he = heli[4];
hf = heli[5];
hg = heli[6];
hl = heli.length;
ml = men.length;
if (startlevel == 1) {
helicount = 10 * level;
}
if (((hl == 0) && (ml == 0)) && (amount == 0)) {
playin = 0;
showbuy = 1;
}
if (showbuy == 1) {
_root.buy._visible = true;
_root.buy._y = 170;
_root.buy._x = 270;
} else {
_root.buy._visible = false;
_root.buy._y = 50;
_root.buy._x = 700;
}
if (playin == 0) {
if (startplayin == 1) {
level = level + 1;
_root.level.a = 1;
amount = 20 + (level * 5);
playin = 1;
startplayin = 0;
lvls = 2 + Math.floor(level / 2);
randomizer = randomizer - (randomizer / 10);
if (randomizer < 4) {
randomizer = 4;
}
showbuy = 0;
}
}
if (playin == 1) {
if (Key.isDown(32) && (emp > 0)) {
emp--;
t = 0;
while (t < heli.length) {
_root["h" + heli[t]].life = _root["h" + heli[t]].life - 1000;
t++;
}
}
if (amount > 0) {
helicreate = random(randomizer);
if (helicreate == 1) {
lev = random(lvls) + 1;
if (lev > 6) {
lev = random(6) + 1;
}
side = random(2);
if (side == 1) {
duplicateMovieClip (_root.heli, "h" + _root.varr.fc, _root.varr.fc);
_root["h" + _root.varr.fc]._x = -50;
_root["h" + _root.varr.fc]._y = (lev * 35) + 35;
_root["h" + _root.varr.fc].dir = 1;
_root["h" + _root.varr.fc].id = fc;
_root["h" + _root.varr.fc].amount = amount;
heli[hl] = _root.varr.fc;
_root.varr.fc++;
amount--;
}
if (side == 0) {
duplicateMovieClip (_root.heli, "h" + _root.varr.fc, _root.varr.fc);
_root["h" + _root.varr.fc]._x = 500;
_root["h" + _root.varr.fc]._y = (lev * 35) + 20;
_root["h" + _root.varr.fc].dir = 2;
_root["h" + _root.varr.fc].id = fc;
_root["h" + _root.varr.fc].amount = 10;
heli[hl] = _root.varr.fc;
_root.varr.fc++;
amount--;
}
}
}
}
}
Instance of Symbol 94 MovieClip in Frame 4
onClipEvent (load) {
k = 0;
d = 0;
h = 3;
}
onClipEvent (enterFrame) {
dat = new Date();
k++;
h = dat.getSeconds();
if (h != s) {
fps = k;
k = 0;
}
s = dat.getSeconds();
}
Instance of Symbol 107 MovieClip "heli" in Frame 4
onClipEvent (load) {
function fire() {
if (_root.varr.part < _root.varr.mpart) {
duplicateMovieClip (_root.fire, "ff" + _root.varr.fc, _root.varr.fc);
_root["ff" + _root.varr.fc]._x = (_x - 5) + random(10);
_root["ff" + _root.varr.fc]._y = (_y - 5) + random(10);
_root.varr.fc++;
_root.varr.part++;
}
}
function live() {
k = _root.varr.heli.length;
i = 0;
while (i < k) {
if (this.hitTest(_root["h" + _root.varr.heli[i]])) {
_root["h" + _root.varr.heli[i]].nam = i;
_root["h" + _root.varr.heli[i]].life = 0;
_root["h" + _root.varr.heli[i]].destroy = 1;
xx = _x - ((_root["h" + _root.varr.heli[i]]._x - _x) / 2);
yy = _y - ((_root["h" + _root.varr.heli[i]]._y - _y) / 2);
destroy = 1;
removeMovieClip(this);
}
i++;
}
}
speed = 3;
j = _yscale;
men = 1;
slowdown = 0;
life = _root.varr.level + 1;
end = 0;
y = 0;
timee = 0;
amount = 0;
}
onClipEvent (enterFrame) {
squad = 1 + Math.floor(_root.varr.level / 3);
if (_name != "heli") {
if (dir == 1) {
_rotation = (180 + (speed * 2));
_yscale = (-j);
_x = (_x + speed);
}
if (dir == 2) {
_rotation = (360 - (speed * 2));
_x = (_x - speed);
}
if (end == 0) {
if ((_x > 20) && (_x < 530)) {
if (men > 0) {
mc = random(100);
if (mc == 1) {
slowdown = 1;
men--;
}
}
}
if (slowdown == 1) {
if (speed > 0) {
speed = speed - 0.1;
}
if (speed <= 0) {
u = 0;
while (u < squad) {
duplicateMovieClip (_root.man, "m" + _root.varr.fc, _root.varr.fc);
_root["m" + _root.varr.fc]._x = (_x - ((squad / 2) * 10)) + (u * 10);
_root["m" + _root.varr.fc]._y = _y;
_root["m" + _root.varr.fc].id = _root.varr.fc;
ml = _root.varr.men.length;
_root.varr.men[ml] = _root.varr.fc;
_root.varr.fc++;
slowdown = 0;
speedup = 1;
u++;
}
}
}
if (speedup == 1) {
if (speed < 3) {
speed = speed + 0.1;
}
if (speed >= 3) {
speedup = 0;
}
}
if (_x > 650) {
i = 0;
while (i < _root.varr.heli.length) {
if (id == _root.varr.heli[i]) {
tt = _root.varr.heli[i];
_root.varr.heli.splice(i, 1);
}
i++;
}
removeMovieClip(_root["h" + tt]);
}
if (_x < -100) {
i = 0;
while (i < _root.varr.heli.length) {
if (id == _root.varr.heli[i]) {
tt = _root.varr.heli[i];
_root.varr.heli.splice(i, 1);
}
i++;
}
removeMovieClip(_root["h" + tt]);
}
}
if (life < 1) {
if (end == 0) {
i = 0;
while (i < 5) {
if (_root.varr.part < _root.varr.mpart) {
duplicateMovieClip (_root.shrap, "sr" + _root.varr.fc, _root.varr.fc);
_root["sr" + _root.varr.fc]._x = _x;
_root["sr" + _root.varr.fc]._y = _y;
_root.varr.part++;
_root.varr.fc++;
}
i++;
}
duplicateMovieClip (_root.crash, "cr" + _root.varr.fc, _root.varr.fc);
_root["cr" + _root.varr.fc]._x = _x;
_root["cr" + _root.varr.fc]._y = _y;
_root["cr" + _root.varr.fc]._yscale = 50;
_root["cr" + _root.varr.fc]._xscale = 50;
_root.varr.fc++;
_root.s3.gotoAndPlay(2);
i = 0;
while (i < _root.varr.heli.length) {
if (id == _root.varr.heli[i]) {
tt = _root.varr.heli[i];
_root.varr.heli.splice(i, 1);
}
i++;
}
_root.varr.cash = _root.varr.cash + 50;
end = 1;
}
timee--;
if (timee < 0) {
if (_root.varr.part < _root.varr.mpart) {
duplicateMovieClip (_root.shrap, "sr" + _root.varr.fc, _root.varr.fc);
_root["sr" + _root.varr.fc]._x = _x;
_root["sr" + _root.varr.fc]._y = _y;
_root.varr.fc++;
_root.varr.part++;
timee = 3;
}
}
fire();
live();
y = y + 0.1;
_y = (_y + y);
if (this.hitTest(_root.flor)) {
destroy = 1;
}
if (destroy == 1) {
duplicateMovieClip (_root.crash, "cr" + _root.varr.fc, _root.varr.fc);
_root["cr" + _root.varr.fc]._x = _x;
_root["cr" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i = 0;
while (i < 20) {
if (_root.varr.part < _root.varr.mpart) {
duplicateMovieClip (_root.shrap, "sr" + _root.varr.fc, _root.varr.fc);
_root["sr" + _root.varr.fc]._x = _x;
_root["sr" + _root.varr.fc]._y = _y;
_root.varr.part++;
_root.varr.fc++;
}
i++;
}
_root.s2.gotoAndPlay(2);
removeMovieClip(_root["h" + tt]);
}
}
}
}
Instance of Symbol 114 MovieClip "man" in Frame 4
onClipEvent (load) {
function death() {
i = 0;
while (i < 20) {
if (_root.varr.part < _root.varr.mpart) {
duplicateMovieClip (_root.blood, "bl" + _root.varr.fc, _root.varr.fc);
_root["bl" + _root.varr.fc]._x = _x;
_root["bl" + _root.varr.fc]._y = _y;
_root["bl" + _root.varr.fc].angle = random(360);
_root.varr.fc++;
_root.varr.part++;
}
i++;
}
_root.s4.gotoAndPlay(2);
_root.varr.cash = _root.varr.cash + 25;
i = 0;
while (i < _root.varr.men.length) {
if (id == _root.varr.men[i]) {
tt = _root.varr.men[i];
_root.varr.men.splice(i, 1);
removeMovieClip(_root["m" + tt]);
}
i++;
}
}
grav = 0.2;
a = 1;
go = 1;
para = 1;
life = 1;
io = (random(20) / 10) + 6;
speed = (_root.varr.level * 0.1) + 1;
}
onClipEvent (enterFrame) {
if (_name != "man") {
if (go == 1) {
if (para == 1) {
if (a < io) {
a = a + grav;
_y = (_y + a);
}
if (a > io) {
_y = (_y + speed);
gotoAndStop (2);
}
}
if (para == 0) {
gotoAndStop (1);
a = a + grav;
_y = (_y + a);
}
}
if (this.hitTest(_root.flor)) {
if (para == 0) {
if (a > 4) {
death();
removeMovieClip(this);
}
}
go = 0;
ff = _x - _root.players._x;
if (ff < 0) {
_x = (_x + 1);
} else if (ff > 0) {
_x = (_x - 1);
}
if (this.hitTest(_root.players)) {
h = _root.varr.men.length;
i = 0;
while (i < _root.varr.men.length) {
if (id == _root.varr.men[i]) {
tt = _root.varr.men[i];
_root.varr.men.splice(i, 1);
_root.lifes.life = _root.lifes.life - 5;
removeMovieClip(_root["m" + tt]);
}
i++;
}
}
gotoAndStop (1);
}
if (life < 1) {
death();
}
}
}
Instance of Symbol 121 MovieClip "fire" in Frame 4
onClipEvent (load) {
life = 25;
y = 5;
}
onClipEvent (enterFrame) {
if (_name != "fire") {
_y = (_y - y);
if (y > 0) {
y = y - 0.3;
}
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
}
}
Instance of Symbol 123 MovieClip "blood" in Frame 4
onClipEvent (load) {
life = random(100);
speed = random(40) / 10;
angle = random(360);
y = Math.cos((angle / 180) * Math.PI) * speed;
x = Math.sin((angle / 180) * Math.PI) * speed;
ttt = random(100) + 50;
_xscale = ttt;
_yscale = ttt;
trails = random(3);
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if (trails == 1) {
if (_root.varr.part < _root.varr.mpart) {
duplicateMovieClip (_root.blood2, "bl" + _root.varr.fc, _root.varr.fc);
_root["bl" + _root.varr.fc]._x = _x;
_root["bl" + _root.varr.fc]._y = _y;
_root.varr.fc++;
_root.varr.part = _root.varr.part + 1;
}
}
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
_y = (_y + y);
_x = (_x + x);
y = y + 0.2;
if (y > 0) {
if (this.hitTest(_root.flor)) {
y = y - (1.6 * y);
}
}
}
}
Instance of Symbol 125 MovieClip "blood2" in Frame 4
onClipEvent (load) {
y = 0;
life = 10;
_alpha = 100;
}
onClipEvent (enterFrame) {
h = _name;
if (h != "blood2") {
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
_y = (_y + y);
y = y + 0.3;
_alpha = (_alpha - 10);
}
}
Instance of Symbol 129 MovieClip "crash" in Frame 4
onClipEvent (load) {
life = 13;
}
onClipEvent (enterFrame) {
life--;
if (life < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 132 MovieClip "shrap" in Frame 4
onClipEvent (load) {
angle = random(360);
speed = random(40) / 10;
y = Math.cos((angle / 180) * Math.PI) * speed;
x = Math.sin((angle / 180) * Math.PI) * speed;
life = random(100) + 50;
_rotation = random(360);
}
onClipEvent (enterFrame) {
h = _name;
if (h != "shrap") {
_y = (_y + y);
_x = (_x + x);
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
y = y + 0.2;
if (y > 0) {
if (this.hitTest(_root.flor)) {
y = y * -0.5;
x = x * 0.6;
}
}
}
}
Instance of Symbol 146 MovieClip "lifes" in Frame 4
onClipEvent (load) {
life = 100;
}
onClipEvent (enterFrame) {
this.bar._xscale = 100 - life;
if (effect == 1) {
_xscale = 120;
_yscale = 200;
effect = 0;
_alpha = 50;
}
if (_xscale > 101) {
_xscale = (_xscale - 2);
}
if (_yscale > 101) {
_yscale = (_yscale - 20);
}
if (_alpha < 99) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 150 MovieClip "cash" in Frame 4
onClipEvent (enterFrame) {
score = _root.varr.cash;
}
Instance of Symbol 154 MovieClip "level" in Frame 4
onClipEvent (load) {
b = 22;
}
onClipEvent (enterFrame) {
level = _root.varr.level;
if (a == 1) {
b--;
_y = (_y + b);
if (b < 0) {
b = 30;
}
if (_y > 500) {
_y = -50;
a = 0;
b = 22;
}
}
}
Instance of Symbol 157 MovieClip "spark" in Frame 4
onClipEvent (load) {
life = 1;
_rotation = random(360);
}
onClipEvent (enterFrame) {
life--;
if (life < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 198 MovieClip "buy" in Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
rate = ["rate: " + _root.gun.rates];
if (_root.gun.multi == 3) {
multi = "multi: Yes";
} else {
multi = "multi: No";
}
damage = ["damage: " + _root.gun.damage];
}
Instance of Symbol 201 MovieClip in Frame 4
onClipEvent (enterFrame) {
emp = _root.varr.emp;
}
Frame 5
stop();
Instance of Symbol 212 MovieClip in Frame 5
on (press) {
_root.gotoAndStop(3);
}
Symbol 70 Button
on (release) {
_root.play();
}
Symbol 71 MovieClip Frame 143
_root.play();
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Instance of Symbol 104 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 45);
}
Instance of Symbol 102 MovieClip in Symbol 107 MovieClip Frame 1
onClipEvent (load) {
frame = 1;
speed = 2;
}
onClipEvent (enterFrame) {
frame = frame + speed;
gotoAndPlay(frame);
if (frame > 9) {
frame = 1;
}
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 24
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
stop();
Instance of Symbol 164 MovieClip in Symbol 198 MovieClip Frame 1
on (press) {
if (_root.gun.multi != 3) {
if (_root.varr.cash > 6000) {
_root.gun.multi = 3;
_root.varr.cash = _root.varr.cash - 6000;
_root.s6.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
if ((_root.varr.cash < 6000) || (_root.gun.multi == 3)) {
_alpha = 20;
} else {
_alpha = 100;
}
}
Instance of Symbol 164 MovieClip in Symbol 198 MovieClip Frame 1
on (press) {
if (_root.gun.rates != 10) {
if (_root.varr.cash > 1500) {
_root.gun.rates = _root.gun.rates + 2;
_root.varr.cash = _root.varr.cash - 1500;
_root.s6.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
if ((_root.varr.cash < 1500) || (_root.gun.rates == 10)) {
_alpha = 20;
} else {
_alpha = 100;
}
}
Instance of Symbol 164 MovieClip in Symbol 198 MovieClip Frame 1
on (press) {
if (_root.gun.damage != 3) {
if (_root.varr.cash > 2500) {
_root.gun.damage = _root.gun.damage + 1;
_root.varr.cash = _root.varr.cash - 2500;
_root.s6.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
if ((_root.varr.cash < 2500) || (_root.gun.damage == 3)) {
_alpha = 20;
} else {
_alpha = 100;
}
}
Instance of Symbol 164 MovieClip in Symbol 198 MovieClip Frame 1
on (press) {
if (_root.varr.cash > 2000) {
_root.varr.cash = _root.varr.cash - 2000;
_root.varr.emp++;
_root.s6.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
if (_root.varr.cash < 2000) {
_alpha = 20;
} else {
_alpha = 100;
}
}
Instance of Symbol 164 MovieClip in Symbol 198 MovieClip Frame 1
on (press) {
if (_root.lifes.life < 99) {
if (_root.varr.cash > 200) {
_root.lifes.life = _root.lifes.life + 10;
_root.varr.cash = _root.varr.cash - 200;
_root.s6.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
if ((_root.lifes.life > 99) || (_root.varr.cash < 200)) {
_alpha = 20;
} else {
_alpha = 100;
}
}
Instance of Symbol 169 MovieClip in Symbol 198 MovieClip Frame 1
on (press) {
_root.varr.startplayin = 1;
}
Symbol 208 MovieClip Frame 1
stop();