Frame 1
function makeCow(x, y, type) {
size = 5;
deg = Math.PI / (size * 4);
i = 0;
while (i < size) {
level++;
duplicateMovieClip (cow, "debris" + level, level);
mc = eval ("debris" + level);
r = (deg * i) - 0.392699081698724;
r = r + (-0.2 + (Math.random() * 0.4));
mc.bx = (mc._x = x - _root.scr);
mc._y = y;
mc.gotoAndStop((i + 1) + (type * 5));
mc.xv = Math.sin(r) * 8;
mc.yv = (-Math.cos(r)) * (12 + (Math.random() * 8));
mc.gen = false;
i++;
}
}
detail = true;
mute = false;
stop();
highlevel = 1000000 /* 0x0F4240 */;
Instance of Symbol 21 MovieClip "cow" in Frame 1
onClipEvent (load) {
rv = -3 + (Math.random() * 6);
_x = (bx + _root.scr);
atimer = 10;
if (_name == "cow") {
_visible = false;
}
eccentricity = 4;
brightness = 1;
if (_root.detail) {
quantity = 3;
} else {
quantity = 1;
}
}
onClipEvent (enterFrame) {
if (gen == false) {
yv = yv + 1;
xv = xv * 0.99;
bx = bx + xv;
by = by + yv;
_x = (bx + _root.scr);
_y = (_y + yv);
_rotation = (_rotation + rv);
_alpha = (_alpha - 3);
i = 0;
while (i < quantity) {
_root.level++;
duplicateMovieClip (_root.blood, "blood" + _root.level, _root.level);
blood = eval ("_root.blood" + _root.level);
blood.bx = ((_x - eccentricity) + ((Math.random() * eccentricity) * 2)) - _root.scr;
blood._x = blood.bx + _root.scr;
blood._y = _y + ((Math.random() * eccentricity) * 2);
blood._alpha = _alpha * brightness;
blood.aspeed = 3 + (Math.random() * 4);
blood.gen = false;
i++;
}
atimer--;
if (atimer < 0) {
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 25 MovieClip "debris" in Frame 1
onClipEvent (load) {
rv = -3 + (Math.random() * 6);
_x = (bx + _root.scr);
atimer = 10;
if (_name == "debris") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (gen == false) {
yv = yv + 1;
xv = xv * 0.99;
bx = bx + xv;
by = by + yv;
_x = (bx + _root.scr);
_y = (_y + yv);
_rotation = (_rotation + rv);
atimer--;
if (atimer < 0) {
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 32 MovieClip "fire" in Frame 1
onClipEvent (load) {
_yscale = 75;
_xscale = 75;
_x = (bx + _root.scr);
atimer = 10;
if (_name == "fire") {
_visible = false;
}
if (!trail) {
stop();
}
if (_root.detail) {
qt = 3;
} else {
qt = 1;
}
}
onClipEvent (enterFrame) {
if (fade) {
_x = (bx + _root.scr);
_alpha = (_alpha - 15);
if (_alpha < 0) {
removeMovieClip(this);
}
nextFrame();
} else if (trail) {
_x = (bx + _root.scr);
_alpha = (_alpha - 10);
_xscale = (_xscale - 10);
_yscale = _xscale;
if (_alpha < 0) {
removeMovieClip(this);
}
} else if (gen == false) {
yv = yv + 1;
xv = xv * 0.99;
bx = bx + xv;
by = by + yv;
_x = (bx + _root.scr);
_y = (_y + yv);
atimer--;
if (atimer < 0) {
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
i = 0;
while (i < qt) {
_root.level++;
duplicateMovieClip (this, "fire" + _root.level, _root.level);
f = eval ("_root.fire" + _root.level);
f.gen = false;
f.trail = true;
f.gotoAndPlay(i + 1);
f.bx = (((_x - 3) + (Math.random() * 6)) - _root.scr) + _root.scrspeed;
f._y = _y + (Math.random() * 3);
f._alpha = _alpha;
i++;
}
}
}
Instance of Symbol 33 MovieClip "blood" in Frame 1
onClipEvent (enterFrame) {
if (gen == false) {
_alpha = (_alpha - (aspeed * 2));
_yscale = (_yscale + 16);
_y = (_y+1);
_x = (bx + _root.scr);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
Instance of Symbol 35 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.percent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 1000);
_xscale = (_root.percent / 5);
}
Instance of Symbol 51 MovieClip in Frame 1
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
dec = _root.percent % 10;
uni = (_root.percent - dec) % 100;
ten = (_root.percent - uni) - dec;
d.gotoAndStop(dec + 1);
u.gotoAndStop((uni / 10) + 1);
t.gotoAndStop((ten / 100) + 1);
if (_root.percent == 1000) {
gotoAndStop (2);
}
}
Instance of Symbol 53 MovieClip in Frame 1
onClipEvent (enterFrame) {
timer++;
if ((timer % 12) == 0) {
_xscale = (_xscale * -1);
}
if (_root.percent == 1000) {
btimer++;
if ((5 < btimer) && (hasgone != true)) {
_root.makecow(_x, _y, 3);
_visible = false;
hasgone = true;
}
}
}
Instance of Symbol 54 MovieClip in Frame 1
onClipEvent (enterFrame) {
timer++;
if ((timer % 12) == 0) {
_xscale = (_xscale * -1);
}
if (_root.percent == 1000) {
btimer++;
if ((35 < btimer) && (hasgone != true)) {
_root.makecow(_x, _y, 3);
_visible = false;
hasgone = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 1
onClipEvent (enterFrame) {
timer++;
if ((timer % 12) == 0) {
_xscale = (_xscale * -1);
}
if (_root.percent == 1000) {
btimer++;
if ((20 < btimer) && (hasgone != true)) {
_root.makecow(_x, _y, 3);
_visible = false;
hasgone = true;
}
}
}
Frame 2
version = 42;
detail = true;
ai = false;
flak = false;
meteor = false;
ctf = false;
campaign = false;
bossdown = false;
scr = false;
instructions = "--Control--<br><br>Up/down - rotate<br>Left/right - speed up/slow down<br>Space - drop bomb<br>Shift - fire gun/missile<br><br>--Objectives--<br><br>-Bomb cows and beef factories to score points.<br>-Lose points for bombing chickens.<br>-You will stall if you go too high. to get out of a stall, alternate between left/right keys.<br>-The red 'N' powerup gives you a nuke. The next bomb you drop will destroy everything on the screen.<br>-The green 'M' powerup gives you three missiles. Press shift to fire them.";
credits = "Max Abernethy - Design, program, lush scenery<br>Keith McKnight - Tiny little farm animals<br>Nick Schorsh- Told me to make this thing.<br><br>-You can find everything else I've made on Flecko.net, plus alpha versions of upcoming projects.<br><br>-This game is basically a Sopwith ripoff, but with cow blood, Southerners, and more than four colors!<br><br>-Note: grand ole Kentucky is my place of birth. No offense meant to all you fellow hicks.";
modes = "<u>Campaign</u>: full story mode. A gripping tale of the struggle for dominance in the meat industry--in outer space!<br><u>Skirmish</u>: Single battle (good for practice).<br><u>Capture the Flag</u>: Grab the flag from the other side, and tough it to yours to score a point.<br><u>Meteor attack</u>: Use your missiles to stop the meteors and save the chickens!<br><u>Flak run</u>: Incomplete.";
levels = new Array(new Array(false, false, false, 0, false, "Kentucky has always been proud to be the world's premiere fried chicken producer. But, in recent years, the fine chicken industry has been tainted...by beef. Go destroy the cows and the beef factories, but be careful not to bomb any chickens!"), new Array(false, true, true, 0, false, "The beef industry is retaliating! They are sending their best warplanes to counter your attack. Stop them, and take out all their factories and livestock while you are there!"), new Array(true, true, true, 1, false, "Good work taking out those cows! We were getting close to caving in and agreeing to their 'chicken fried steak' compromise, but with a pilot like you handling things, I can see we won't need to! Now, as for your next mission: your goal will be to capture the enemy's flag, but to protect your own. Get ahead three captures, and you win. Do not fall behind by three...or your fate is sealed!"), new Array(true, true, true, 0, true, "Well done! Things are looking brighter for fried chicken, and it's all because of you. There are two nuclear bombs waiting for you out on this next field. To use them, just fly over the red flashing 'N' and drop a bomb like usual. KABOOM!"), new Array(false, false, false, 2, false, "It seems that we've run into a problem. Perhaps the nuclear attack was overkill; the explosions created lots of meteors, and they are now falling towards our most valuable stock of chickens! Keep at least five of ten intact for 2:00, and we should be okay. Get on it!"), new Array(false, false, true, 3, false, "It is time to finish this thing once and for all. You will be attacking the beef headquarters. First you will have to fly through a long field filled with lasers, because lasers are COOL. Then you'll have to fight their hideous leader. Get in there and remove the bovine influence from grand ole Kentucky for good!"));
gamelevel = 0;
stop();
Instance of Symbol 80 MovieClip "optionbox" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 95 MovieClip "gamebox" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 121 MovieClip "cheat" in Frame 2
onClipEvent (load) {
_visible = false;
codes = new Array(new Array("cracker", "_root.imissile"), new Array("white trash", "_root.inuke"), new Array("po' boy", "_root.totalinv"), new Array("moonshine", "_root.bloody"));
}
Frame 3
function clear() {
clear = 30;
}
function showCombo() {
level++;
duplicateMovieClip (combo, "combo" + level, level);
mycombo = eval ("combo" + level);
mycombo._x = plane._x;
mycombo._y = plane._y - plane._height;
mycombo.gen = false;
mycombo.number.gotoAndStop(plane.combo + 1);
}
function showGreat() {
level++;
duplicateMovieClip (great, "great" + level, level);
mygreat = eval ("great" + level);
mygreat._x = plane._x;
mygreat._y = plane._y - plane._height;
mygreat.gen = false;
}
function shoot(x, y, xd, yd, target) {
level++;
duplicateMovieClip (bullet, "bullet" + level, level);
b = eval ("bullet" + level);
b._x = x;
b._y = y;
b.xd = xd;
b.yd = yd;
b.tg = target;
b.gen = false;
}
function bshoot(x, y, target) {
if (buildingfire || (_root.campaign != true)) {
level++;
duplicateMovieClip (bullet, "bullet" + level, level);
b = eval ("bullet" + level);
b._x = x;
b._y = y;
b.xd = -0.35 + (Math.random() * 0.7);
b.yd = -1;
b.tg = target;
b.gen = false;
b.longshot = true;
}
}
function fshoot(x, y, xd, yd) {
level++;
duplicateMovieClip (bullet, "bullet" + level, level);
b = eval ("bullet" + level);
b._x = x;
b._y = y;
b.xd = xd;
b.yd = yd;
b.tg = 0;
b.gen = false;
}
function makeCow(x, y, type) {
size = 5;
deg = Math.PI / (size * 4);
i = 0;
while (i < size) {
level++;
duplicateMovieClip (cow, "debris" + level, level);
mc = eval ("debris" + level);
r = (deg * i) - 0.392699081698724;
r = r + (-0.2 + (Math.random() * 0.4));
mc.bx = (mc._x = x - _root.scr);
mc._y = y;
mc.gotoAndStop((i + 1) + (type * 5));
mc.xv = Math.sin(r) * 8;
mc.yv = (-Math.cos(r)) * (12 + (Math.random() * 8));
mc.gen = false;
i++;
}
}
function makeDebris(x, y, size) {
if (!_root.detail) {
size = size / 2;
}
deg = Math.PI / (size * 4);
i = 0;
while (i < size) {
level++;
duplicateMovieClip (debris, "debris" + level, level);
mc = eval ("debris" + level);
r = (deg * i) - 0.392699081698724;
r = r + (-0.2 + (Math.random() * 0.4));
mc.bx = (mc._x = x - _root.scr);
mc._y = y;
mc.xv = Math.sin(r) * 8;
mc.yv = (-Math.cos(r)) * (12 + (Math.random() * 8));
mc.gotoAndStop(Math.ceil(Math.random() * mc._totalframes));
mc.gen = false;
i++;
}
}
function makeFire(x, y, size) {
deg = Math.PI / (size * 4);
i = 0;
while (i < size) {
level++;
duplicateMovieClip (fire, "fire" + level, level);
mc = eval ("fire" + level);
r = (deg * i) - 0.392699081698724;
r = r + (-0.2 + (Math.random() * 0.4));
mc.bx = (mc._x = x - _root.scr);
mc._y = y;
mc.xv = Math.sin(r) * 8;
mc.yv = (-Math.cos(r)) * (12 + (Math.random() * 8));
mc.gen = false;
i++;
}
}
_quality = "LOW";
height = 400;
width = 600;
if (flak) {
limit = 10000;
} else {
limit = 4000;
}
if ((campaign != true) || (gamelevel == 0)) {
score = 500;
}
ctfscore = 0;
bombs = new Array();
enemies = new Array();
nlist = new Array();
Instance of Symbol 133 MovieClip "land" in Frame 3
onClipEvent (load) {
if (type == 0) {
type = 1;
}
gotoAndStop(type);
bx = _x;
by = _y;
if (_root.meteor) {
ptcheck = 4;
} else {
ptcheck = 2;
}
}
onClipEvent (enterFrame) {
_x = (bx + _root.scr);
if ((0 < _root.nuke) && (_visible)) {
childobj.getRidOf();
}
if ((((-_width) * 2) < _x) && (_x < (_root.width + _width))) {
_visible = true;
if (((_root.totalinv != true) && (Math.abs(_root.plane._x - _x) < (_width * 2))) && (_root.plane.dead != true)) {
i = 0;
while (i < 4) {
pt = eval ("_root.plane.pt" + i);
if (this.hitTest(pt.x, pt.y, true)) {
_root.plane.die();
break;
}
i++;
}
}
i = 0;
while (i < _root.enemies.length) {
en = _root.enemies[i];
if ((Math.abs(en._x - _x) < (_width * 2)) && (en.dead != true)) {
i = 0;
while (i < 4) {
pt = eval ((en + ".pt") + i);
if (this.hitTest(pt.x, pt.y, true)) {
en.die();
en.kill();
break;
}
i++;
}
}
i++;
}
i = 0;
while (i < _root.bombs.length) {
bomb = eval (_root.bombs[i]);
if (((Math.abs(bomb.bx - bx) < (_width * 2)) && (bomb.gok != true)) && (bomb.ltype != true)) {
n = 0;
while (n < ptcheck) {
pt = eval ("bomb.pt" + n);
if (this.hitTest(pt.x, pt.y, true)) {
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
flash = eval ("_root.flash" + _root.level);
flash._x = bomb._x;
flash._y = bomb._y;
if (bomb.nap) {
_root.bigflash.show = 3;
trace("hey!");
}
_root.badid = bomb.id;
_root.bombs.splice(bomb.id, 1);
x = bomb.id;
while (x < _root.bombs.length) {
_root.bombs[x].id--;
x++;
}
removeMovieClip(bomb);
break;
}
n++;
}
}
i++;
}
} else {
_visible = false;
}
if (0 < _root.clear) {
_alpha = (_alpha - 10);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
Instance of Symbol 136 MovieClip in Frame 3
onClipEvent (load) {
pieces = Math.floor(_root.limit / _root.land._width);
divide = (_root.divide = _root.limit / 2);
ymax = 384;
ymin = 240;
endwidth = 112;
flat = 3;
grades = new Array(-3, -3, -2, -1, 0, 0, 1, 2, 3, 4);
friendly = new Array(1, 5);
enemy = new Array(2, 3, 4, 6, 7);
_root.numen = 0;
_root.level++;
duplicateMovieClip (_root.land, "land" + _root.level, _root.level);
mc = eval ("_root.land" + _root.level);
mc._x = 0;
mc._y = 0;
mc.type = mc._totalframes - 1;
x = mc._width;
y = 336;
if (_root.meteor) {
_root.mscore = 10;
_root.limit = 700;
i = 0;
while (i < 10) {
_root.level++;
duplicateMovieClip (_root.land, "land" + _root.level, _root.level);
mc = eval ("_root.land" + _root.level);
x = (i * mc._width) + endwidth;
if (i == (pieces - 1)) {
finalend = ((i + 1) * mc._width) + endwidth;
}
mc._x = x;
mc._y = y;
mc.type = 4;
if (i == 9) {
finalend = ((i + 1) * mc._width) + endwidth;
}
_root.level++;
duplicateMovieClip (_root.target, "target" + _root.level, _root.level);
target = eval ("_root.target" + _root.level);
target._y = y;
target._x = x + 32;
target.gen = false;
target.type = 5;
target.friendly = true;
numleft = 5;
i++;
}
} else {
i = 0;
while (i < pieces) {
_root.level++;
duplicateMovieClip (_root.land, "land" + _root.level, _root.level);
mc = eval ("_root.land" + _root.level);
x = (i * mc._width) + endwidth;
if (i == (pieces - 1)) {
finalend = ((i + 1) * mc._width) + endwidth;
}
mc._x = x;
mc._y = y;
mc.type = Math.ceil(Math.random() * 5);
maxtype = (ymax - y) / 16;
mintype = (ymin - y) / 16;
do {
mc.type = Math.floor(Math.random() * 10);
} while (((grades[mc.type] < mintype) || (maxtype < grades[mc.type])) || ((_root.flak && (3 < mc.type)) && (mc.type < 6)));
if (grades[mc.type] != 0) {
y = y + ((grades[mc.type] * 16) - 16);
}
if ((3 < mc.type) && (mc.type < 6)) {
_root.level++;
duplicateMovieClip (_root.target, "target" + _root.level, _root.level);
target = eval ("_root.target" + _root.level);
mc.childobj = target;
target._y = y;
target._x = x + 32;
target.gen = false;
if (_root.ctf) {
if (x < _root.divide) {
fr = true;
} else {
fr = false;
}
} else if (Math.random() < 0.5) {
fr = true;
} else {
fr = false;
}
if (fr == true) {
target.friendly = true;
if (_root.ctf) {
target.type = 1;
} else {
target.type = friendly[Math.floor(Math.random() * friendly.length)];
}
} else {
target.friendly = false;
if (_root.ctf) {
target.type = 6;
} else {
target.type = enemy[Math.floor(Math.random() * enemy.length)];
_root.numen++;
}
}
}
i++;
}
}
_root.level++;
duplicateMovieClip (_root.land, "land" + _root.level, _root.level);
mc = eval ("_root.land" + _root.level);
mc._x = finalend;
mc._y = y;
mc.type = mc._totalframes;
}
onClipEvent (enterFrame) {
if (0 < _root.clear) {
_root.clear--;
if (_root.clear == 0) {
if (_root.campaign) {
_root.gamelevel++;
trace("WHAT THE FUCK IS GOING ON HERE: " + _root.lives);
if (_root.gamelevel >= 6) {
trace("what the hell");
_root.gotoAndStop("final");
} else if (0 >= _root.lives) {
_root.gotoAndStop("menu");
} else if (_root.meteor) {
_root.gotoAndStop(_root.mgo);
} else if (_root.ctf) {
_root.gotoAndStop(_root.ctfgo);
} else {
_root.gotoAndStop("campaign");
}
} else {
_root.gotoAndStop("menu");
}
}
}
if (0 < _root.nuke) {
_root.nuke--;
}
}
onClipEvent (mouseDown) {
if (Key.isDown(Key.DELETEKEY)) {
xm = _root._xmouse;
ym = _root._ymouse;
if (_root.bloody) {
_root.makeCow(xm, ym, 4);
} else {
_root.makeDebris(xm, ym, 5);
_root.makeFire(xm, ym, 5);
}
}
}
Instance of Symbol 143 MovieClip "plane" in Frame 3
onClipEvent (load) {
function initialize() {
if (_root.lives >= 0) {
_x = (_root.width / 2);
bx = _root.width / 2;
_y = 150;
_yscale = 100;
_rotation = 0;
minspeed = 6;
maxspeed = 14;
accel = 1;
rs = 8;
if (_root.scr < -8500) {
_root.scr = -8500;
} else {
_root.scr = 0;
}
vel = 6;
xd = 0;
yd = 0;
noscroll = (nsright = (nsleft = false));
control = 1;
decline = 0;
stall = 0;
smoke = (flame = false);
dead = false;
init = false;
at = 100;
ybp = 1;
combo = 0;
cmtimer = 0;
_visible = true;
} else {
_root.clear();
}
}
function die() {
if ((!dead) && (!init)) {
if ((_root.meteor != true) && (_root.ctf != true)) {
_root.lives--;
}
_visible = false;
stall = false;
dead = true;
deadtime = 0;
if (_root.bloody) {
_root.makecow(_x, _y, 4);
_root.makecow(_x, _y, 4);
} else {
_root.makeDebris(_x, _y, 10);
_root.makeFire(_x, _y, 5);
}
if (hasflag) {
hasflag = false;
myflag._visible = true;
}
_root.score = _root.score - 2000;
if (1 < combo) {
_root.score = _root.score + (Math.round((combo * cmtimer) / 2, 0) * 100);
if (2 < combo) {
_root.lives = _root.lives + (combo - 2);
}
if (_root.highcombo < combo) {
_root.highcombo = combo;
}
}
}
}
function flip() {
_yscale = (_yscale * -1);
ybp = ybp * -1;
ctimer = ctime;
}
function makeSmoke() {
if (smoke) {
i = 0;
while (i < smq) {
_root.level++;
duplicateMovieClip (_root.smoke, "smoke" + _root.level, _root.level);
mysmoke = eval ("_root.smoke" + _root.level);
mysmoke._x = (pt0.point.x - 6) + (Math.random() * 12);
mysmoke._y = (pt0.point.y - 6) + (Math.random() * 12);
mysmoke.gen = false;
i++;
}
}
}
if (_root.campaign != true) {
missiles = 0;
}
if ((_root.meteor || (_root.flak)) || (_root.imissile)) {
missiles = 1;
}
if (_root.inuke) {
hasnapalm = true;
} else {
hasnapalm = false;
}
if (_root.campaign) {
if (_root.gamelevel == 0) {
_root.lives = 6;
_root.highcombo = 0;
}
} else {
_root.highcombo = 0;
_root.lives = 3;
}
initialize();
if (_root.detail) {
smq = 2;
burntime = 10;
} else {
burntime = 15000000 /* 0xE4E1C0 */;
smq = 1;
}
bdelay = 25;
ctime = 5;
stime = 3;
ftime = 10;
stop();
}
onClipEvent (enterFrame) {
_root.bl = _root.bombs.length;
if (_root.invincible || (_root.totalinv)) {
control = 1;
decline = 0;
}
inv--;
if ((0 < _root.clear) || (_root.bossdown)) {
_rotation = 0;
gotoAndStop (1);
vel = 0;
if (0 < _xscale) {
_xscale = (_xscale - 0.5);
_yscale = (_yscale - 0.5);
}
} else if (_root.bossdown != true) {
left = Key.isDown(Key.LEFT);
right = Key.isDown(Key.RIGHT);
up = Key.isDown(Key.UP);
down = Key.isDown(Key.DOWN);
space = Key.isDown(Key.SPACE);
ctrl = Key.isDown(Key.CONTROL);
shift = Key.isDown(Key.SHIFT);
back = Key.isDown(Key.BACKSPACE);
}
if (init) {
init = false;
initialize();
} else if (0 < stall) {
_y = (_y + stallgrav);
if (stall < 10) {
stall = stall + 0.25;
}
ftimer++;
if ((ftimer % ftime) == 0) {
flip();
}
if (left && (!ldown)) {
ldown = true;
rdown = false;
stall = stall - 1.5;
} else if (right && (!rdown)) {
ldown = false;
rdown = true;
stall = stall - 1.5;
}
makeSmoke();
} else if (dead != true) {
if (back) {
die();
}
if (_root.bossdown != true) {
if (up && (!down)) {
_rotation = (_rotation - (rs * control));
} else if (down && (!up)) {
_rotation = (_rotation + (rs * control));
}
}
if (0 < decline) {
if ((_rotation < 90) && (-90 < _rotation)) {
_rotation = (_rotation + (decline * ybp));
if (90 < _rotation) {
_rotation = 90;
}
} else if ((_rotation < -90) || (90 < _rotation)) {
_rotation = (_rotation - (decline * ybp));
if ((_rotation < 90) && (0 < _rotation)) {
_rotation = 90;
}
}
if ((_rotation < 135) && (45 < _rotation)) {
vel = vel + 0.25;
}
}
ctimer--;
if (ctrl && (ctimer < 0)) {
flip();
}
radangle = ((_rotation - 90) / 180) * Math.PI;
xd = Math.sin(radangle);
yd = Math.cos(radangle);
if ((left && (!right)) && (minspeed < vel)) {
vel = vel - accel;
} else if ((right && (!left)) && (vel < maxspeed)) {
vel = vel + accel;
}
if (_root.bossdown != true) {
_root.scrspeed = vel * xd;
if (noscroll) {
_x = (_x - _root.scrspeed);
} else {
_root.scr = _root.scr + _root.scrspeed;
}
yv = vel * yd;
_y = (_y + yv);
}
if (hasnapalm && (space)) {
if (_root.inuke != true) {
hasnapalm = false;
}
btimer = bdelay;
_root.level++;
duplicateMovieClip (_root.napalm, "napalm" + _root.level, _root.level);
nap = eval ("_root.napalm" + _root.level);
nap._y = (_y + (_height / 2)) + nap._height;
nap._x = _x;
nap.gen = false;
nap.id = _root.bombs.length;
_root.badida = nap.id;
_root.bombs[_root.bombs.length] = eval ("_root." + nap._name);
}
if ((space && (btimer < 0)) && (0 >= napalm)) {
_root.level++;
duplicateMovieClip (_root.bomb, "bomb" + _root.level, _root.level);
bomb = eval ("_root.bomb" + _root.level);
bomb.xv = _root.scrspeed;
bomb.yv = yv;
bomb._x = _x - (yd * 20);
bomb._y = _y - ((xd * 20) * ybp);
bomb._rotation = _rotation;
bomb.gen = false;
bomb.fr = true;
btimer = bdelay;
bomb.id = _root.bombs.length;
_root.badida = bomb.id;
_root.bombs[_root.bombs.length] = eval ("_root." + bomb._name);
}
btimer--;
stimer--;
if (shift && (stimer < 0)) {
if (0 < missiles) {
_root.level++;
duplicateMovieClip (_root.missile, "missile" + _root.level, _root.level);
missile = eval ("_root.missile" + _root.level);
missile._x = _x - (yd * 20);
missile._y = _y - ((xd * 20) * ybp);
missile._rotation = _rotation;
missile.gen = false;
missile.xd = xd;
missile.yd = yd;
missile.fr = true;
missile.vel = vel / 2;
missile.id = _root.bombs.length;
_root.badida = missile.id;
_root.bombs[_root.bombs.length] = eval ("_root." + missile._name);
if (((!_root.meteor) && (!_root.flak)) && (_root.imissile != true)) {
missiles--;
}
stimer = stime * 4;
} else {
newx = _x - ((xd * _width) / 2);
newy = _y + ((yd * _height) / 2);
_root.shoot(newx, newy, xd, yd, 1);
stimer = stime;
}
}
i = 0;
while (i < _root.nlist.length) {
if (this.hitTest(_root.nlist[i])) {
_root.nlist[i].removeMovieClip();
hasnapalm = true;
}
i++;
}
if (_root.totalinv != true) {
i = 0;
while (i < _root.bombs.length) {
mb = _root.bombs[i];
if (mb.fr != true) {
n = 0;
while (n < 4) {
mp = eval ("mb.pt" + n);
if (this.hitTest(mp.x, mp.y, true)) {
tempburn = mb.burn;
if (mb.met != true) {
mb.die();
}
if (tempburn) {
control = control - 0.3;
if (0 >= control) {
control = 0;
decline = 1;
}
flame = true;
smoke = true;
} else {
die();
}
}
n++;
}
}
i++;
}
}
_alpha = (_alpha + ((at - _alpha) / 3));
makeSmoke();
burntimer++;
if (flame && ((burntimer % burntime) == 0)) {
_root.makefire(_x, _y, 1);
}
decline = decline * 1.1;
if ((_y < -100) && (decline == 0)) {
stall = 10;
stallgrav = (vel = minspeed);
_rotation = 90;
}
if (((!noscroll) && (!nsleft)) && (0 < _root.scr)) {
_x = (bx - _root.scr);
_root.scr = 0;
noscroll = true;
nsleft = true;
} else if ((noscroll && (bx < _x)) && (nsleft)) {
_root.scr = bx - _x;
_x = bx;
noscroll = false;
nsleft = false;
}
if (((!noscroll) && (!nsright)) && (_root.scr < (((-_root.limit) + _root.width) - 152))) {
_x = bx;
_root.scr = ((-_root.limit) + _root.width) - 152;
noscroll = true;
nsright = true;
} else if ((noscroll && (nsright)) && (_x < bx)) {
_root.scr = ((((-_root.limit) + _root.width) - 152) + bx) - _x;
_x = bx;
noscroll = false;
nsright = false;
}
if (0 < combo) {
cmtimer++;
}
} else {
deadtime++;
if ((90 < deadtime) && (_root.bossdown != true)) {
dead = false;
init = true;
_y = -5000;
gotoAndStop (1);
}
}
}
Instance of Symbol 145 MovieClip "bomb" in Frame 3
onClipEvent (load) {
function die() {
_root.bombs.splice(id, 1);
i = id;
while (i < _root.bombs.length) {
_root.bombs[i].id--;
i++;
}
removeMovieClip(this);
}
bx = (_x - _root.scr) + xv;
by = _y + _root.yscr;
r = _rotation;
}
onClipEvent (enterFrame) {
if (gen == false) {
if ((r < 90) && (r >= -90)) {
r = r + 2.5;
} else if ((-270 < r) && (r < -90)) {
r = r - 2.5;
}
_rotation = r;
xv = xv / 1.01;
yv = yv + 0.4;
bx = bx - xv;
by = by + yv;
_x = (bx + _root.scr);
_y = (by - _root.yscr);
if ((_root.height + _height) < _y) {
die();
}
}
}
Instance of Symbol 157 MovieClip "target" in Frame 3
onClipEvent (load) {
function planesplatter() {
xd = _root.plane._x - _x;
yd = _root.plane._y - _y;
d = Math.sqrt((xd * xd) + (yd * yd));
if (d < 80) {
_root.plane.gotoAndStop(2);
}
}
function getRidOf() {
if (_root.bloody) {
_root.makeCow(_x, _y, 4);
}
if ((type == 1) || (type >= 6)) {
_root.makeDebris(_x, _y, 16);
_root.makeFire(_x, _y, 5);
} else {
_root.makeCow(_x, _y, type - 2);
planesplatter();
}
if (friendly) {
_root.score = _root.score - 300;
if (_root.meteor) {
_root.mscore--;
if (_root.mscore < 5) {
_root.clear();
_root.mgo = "menu";
}
}
} else {
_root.score = _root.score + 500;
_root.numen--;
if ((_root.numen == 0) && (_root.ctf != true)) {
_root.clear();
}
}
removeMovieClip(this);
}
bx = _x;
moverange = 16;
min = bx - moverange;
max = bx + moverange;
d = 1 + Math.random();
by = _y;
gotoAndStop(type);
ftime = 2;
}
onClipEvent (enterFrame) {
_x = (bx + _root.scr);
if ((_x < (-_width)) || ((_root.width + _width) < _x)) {
_visible = false;
} else {
_visible = true;
if ((2 < type) && (type < 6)) {
bx = bx + d;
if ((bx >= max) || (min >= bx)) {
d = d * -1;
_xscale = (_xscale * -1);
}
}
if ((type == 1) || (type == 6)) {
ftimer--;
if (((!friendly) && (Math.abs(_root.plane._x - _x) < (_width * 2))) && (ftimer < 0)) {
ftimer = ftime;
_root.bshoot(_x, _y - _height, 0);
} else {
i == 0;
while (i < _root.enemies.length) {
myen = _root.enemies[i];
if ((Math.abs(myen._x - _x) < (_width * 2)) && (ftimer < 0)) {
ftimer = ftime;
_root.bshoot(_x, _y - _height, 1);
}
i++;
}
}
}
i = 0;
while (i < _root.bombs.length) {
bomb = _root.bombs[i];
if (Math.abs(bomb.bx - bx) < (_width * 2)) {
n = 0;
while (n < 4) {
if ((bomb.ms == true) && (1 < n)) {
break;
}
pt = eval ("bomb.pt" + n);
if (this.hitTest(pt.x, pt.y, true)) {
if (bomb.nap) {
_root.bigflash.show = 3;
}
_root.bombs.splice(bomb.id, 1);
x = bomb.id;
while (x < _root.bombs.length) {
_root.bombs[x].id--;
x++;
}
removeMovieClip(bomb);
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
flash = eval ("_root.flash" + _root.level);
flash._x = _x;
flash._y = _y;
getRidOf();
}
n++;
}
}
i++;
}
if (Math.abs(_root.plane._x - _x) < (_width * 2)) {
i = 0;
while (i < 4) {
pt = eval ("_root.plane.pt" + i);
if (this.hitTest(pt.x, pt.y, true)) {
if (_root.totalinv != true) {
if ((type == 1) || (type == 6)) {
_root.plane.die();
} else {
_root.plane.gotoAndStop(2);
_root.plane.control = 0;
_root.plane.decline = 0.5;
_root.plane.smoke = true;
}
}
if (!friendly) {
_root.plane.combo++;
}
if (1 < _root.plane.combo) {
_root.showCombo();
}
getRidOf();
}
i++;
}
}
}
if (0 < _root.clear) {
removeMovieClip(this);
}
}
Instance of Symbol 161 MovieClip "flash" in Frame 3
onClipEvent (load) {
bx = _x - _root.scr;
}
onClipEvent (enterFrame) {
_x = ((bx + _root.scr) + _root.scrspeed);
}
Instance of Symbol 163 MovieClip "smoke" in Frame 3
onClipEvent (load) {
bx = _x - _root.scr;
}
onClipEvent (enterFrame) {
if (gen == false) {
_x = ((bx + _root.scr) + _root.scrspeed);
_y = (_y - 2);
_xscale = (_xscale + 10);
_yscale = _xscale;
_alpha = (_alpha - 10);
if (0 >= _alpha) {
removeMovieClip(this);
}
}
}
Instance of Symbol 167 MovieClip "en0" in Frame 3
onClipEvent (load) {
function die() {
_visible = false;
dead = true;
if (_root.bloody) {
_root.makecow(_x, _y, 4);
_root.makecow(_x, _y, 4);
} else {
_root.makeDebris(_x, _y, 10);
_root.makeFire(_x, _y, 5);
}
if (hasflag) {
hasflag = false;
myflag._visible = true;
}
}
function kill() {
_root.score = _root.score + 500;
_root.enemies.splice(id, 1);
i = id;
while (i < _root.enemies.length) {
_root.enemies[i].id--;
i++;
}
_root.level++;
duplicateMovieClip (this, "en" + _root.level, _root.level);
myen = eval ("_root.en" + _root.level);
myen.aitype = aitype;
this.removeMovieClip();
}
function flip() {
_yscale = (_yscale * -1);
ybp = ybp * -1;
ctimer = ctime;
}
function makeSmoke() {
if (smoke) {
_root.level++;
duplicateMovieClip (_root.smoke, "smoke" + _root.level, _root.level);
smoke = eval ("_root.smoke" + _root.level);
smoke._x = pt0.point.x - (Math.random() * 3);
smoke._y = pt0.point.y - (Math.random() * 3);
smoke.gen = false;
}
}
if (_name == "en0") {
i = 0;
while (i < 2) {
_root.level++;
duplicateMovieClip (this, "en" + _root.level, _root.level);
myen = eval ("_root.en" + _root.level);
if (i == 0) {
myen.aitype = 0;
} else if (_root.ctf) {
myen.aitype = 2;
} else {
myen.aitype = 0;
}
i++;
}
_visible = false;
} else {
id = _root.enemies.length;
_root.enemies[_root.enemies.length] = eval ("_root." + _name);
delay = 96;
_y = -30;
_x = (_root.limit - 300);
bx = _root.limit - 300;
_rotation = 180;
_yscale = -100;
minspeed = 6;
maxspeed = 14;
accel = 1;
rs = 8;
vel = 6;
xd = 0;
yd = 0;
control = 1;
decline = 0;
at = 100;
ybp = -1;
dtt = 30;
battlespeed = 9;
travelspeed = 14;
firedist = 50;
quickturn = 0;
bdelay = 25;
ctime = 5;
stime = 3;
ftime = 10;
stop();
}
}
onClipEvent (enterFrame) {
delay--;
if ((_root.ai && (!gen)) && (delay < 0)) {
if (stall) {
_y = (_y + stallgrav);
_x = (bx + _root.scr);
ftimer++;
if ((ftimer % ftime) == 0) {
flip();
}
if (left && (!ldown)) {
ldown = true;
rdown = false;
stall--;
} else if (right && (!rdown)) {
ldown = false;
rdown = true;
stall--;
}
makeSmoke();
} else if (dead != true) {
left = false;
right = false;
up = false;
down = false;
space = false;
ctrl = false;
if (aitype == 0) {
evdtime--;
if (0 < evdtime) {
rt = _rotation + (rs * 2);
} else {
xpd = Math.abs(_root.plane._x - _x);
if (xpd < _root.width) {
xt = _root.plane._x - (_root.plane._width * 4);
yt = _root.plane._y - (_root.plane._height * 0.6);
eng = true;
} else {
yt = 100;
if (_root.plane._x < _x) {
xt = _x - 100;
} else {
xt = _x + 100;
}
}
xd = xt - _x;
yd = yt - _y;
rt = (Math.atan2(yd, xd) * 180) / Math.PI;
rd = Math.abs(rt - _rotation);
if (10 < Math.abs(yd)) {
rt = (Math.atan2(yd, xd) * 180) / Math.PI;
} else {
rt = 0;
}
rd = Math.abs(rt - _rotation);
if (180 < rd) {
if ((rt < 0) && (0 < _rotation)) {
rt = 360 + rt;
} else if ((0 < rt) && (_rotation < 0)) {
rt = rt - 360;
}
}
}
rd = Math.abs(rt - _rotation);
if (rs < rd) {
if (rt < _rotation) {
_rotation = (_rotation - rs);
} else {
_rotation = (_rotation + rs);
}
}
if (90 < rd) {
vt = minspeed;
} else if (eng) {
vt = Math.abs(_root.scrspeed);
}
if (vel < vt) {
left = true;
} else {
right = true;
}
if ((xpd < (_root.plane._width * 2)) && (eng)) {
shift = true;
}
} else if (aitype == 2) {
oldxt = xt;
if (hasflag) {
xt = _root.flag0._x;
td = 1;
} else {
xt = _root.flag1._x;
td = -1;
}
if (xt != oldxt) {
quickturn = 20;
}
if (0 < quickturn) {
quickturn--;
xd = 30 * td;
} else {
xd = xt - _x;
}
yd = 140 - _y;
rt = (Math.atan2(yd, xd) * 180) / Math.PI;
rd = Math.abs(rt - _rotation);
if (180 < rd) {
if ((rt < 0) && (0 < _rotation)) {
rt = 360 + rt;
} else if ((0 < rt) && (_rotation < 0)) {
rt = rt - 360;
}
}
rd = Math.abs(rt - _rotation);
if (rs < rd) {
if (rt < _rotation) {
_rotation = (_rotation - rs);
} else if (_rotation < rt) {
_rotation = (_rotation + rs);
}
}
if (30 < rd) {
left = true;
} else if (vel < 10) {
right = true;
}
}
i = 0;
while (i < 4) {
pt = eval ("_root.plane.pt" + i);
if (this.hitTest(pt.x, pt.y, true)) {
_root.plane.control = 0;
_root.plane.decline = 1;
_root.plane.smoke = true;
control = 0;
decline = 1;
smoke = true;
}
i++;
}
if (control == 0) {
deadtime++;
if (74 < deadtime) {
die();
kill();
}
}
if (up && (!down)) {
_rotation = (_rotation - (rs * control));
} else if (down && (!up)) {
_rotation = (_rotation + (rs * control));
}
if (0 < decline) {
if ((_rotation < 90) && (-90 < _rotation)) {
_rotation = (_rotation + (decline * ybp));
if (90 < _rotation) {
_rotation = 90;
}
} else if ((_rotation < -90) || (90 < _rotation)) {
_rotation = (_rotation - (decline * ybp));
if ((_rotation < 90) && (0 < _rotation)) {
_rotation = 90;
}
}
if ((_rotation < 135) && (45 < _rotation)) {
vel = vel + 0.25;
}
}
i = 0;
while (i < _root.bombs.length) {
bomb = eval (_root.bombs[i]);
if (Math.abs(bomb.bx - bx) < (_width * 2)) {
n = 0;
while (n < 4) {
if ((bomb.ms == true) && (1 < n)) {
break;
}
pt = eval ("bomb.pt" + n);
if (this.hitTest(pt.x, pt.y, true)) {
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
flash = eval ("_root.flash" + _root.level);
flash._x = bomb._x;
flash._y = bomb._y;
_root.bombs.splice(bomb.id, 1);
i = bomb.id;
while (i < _root.bombs.length) {
_root.bombs[i].id--;
i++;
}
removeMovieClip(bomb);
_root.showGreat();
_root.score = _root.score + 500;
die();
kill();
}
n++;
}
}
i++;
}
ctimer--;
if (ctrl && (ctimer < 0)) {
flip();
}
radangle = ((_rotation - 90) / 180) * Math.PI;
xd = Math.sin(radangle);
yd = Math.cos(radangle);
if ((left && (!right)) && (minspeed < vel)) {
vel = vel - accel;
} else if ((right && (!left)) && (vel < maxspeed)) {
vel = vel + accel;
}
bx = bx - (vel * xd);
_x = (bx + _root.scr);
_y = (_y + (vel * yd));
if ((_y < -100) && (decline == 0)) {
stall = 10;
stallgrav = (vel = minspeed);
_rotation = 90;
}
if (((-_width) < _x) && (_x < (_root.width + _width))) {
_visible = true;
} else {
_visible = false;
}
if ((_root.limit + 200) < bx) {
die();
kill();
}
if (space && (btimer < 0)) {
_root.level++;
duplicateMovieClip (_root.bomb, "bomb" + _root.level, _root.level);
bomb = eval ("_root.bomb" + _root.level);
bomb.xv = xd * vel;
bomb.yv = yv;
bomb._x = _x - (yd * 20);
bomb._y = _y - ((xd * 20) * ybp);
bomb._rotation = _rotation;
bomb.gen = false;
btimer = bdelay;
bomb.id = _root.bombs.length;
_root.badida = bomb.id;
_root.bombs[_root.bombs.length] = eval ("_root." + bomb._name);
evdtime = 24;
}
btimer--;
if (shift && (stimer < 0)) {
newx = _x - ((xd * _width) / 2);
newy = _y + ((yd * _height) / 2);
_root.shoot(newx, newy, xd, yd, 0);
_root.popgun.start();
stimer = stime;
}
stimer--;
_alpha = (_alpha + ((at - _alpha) / 3));
if (smoke) {
_root.level++;
duplicateMovieClip (_root.smoke, "smoke" + _root.level, _root.level);
smoke = eval ("_root.smoke" + _root.level);
smoke._x = pt0.point.x - (Math.random() * 3);
smoke._y = pt0.point.y - (Math.random() * 3);
smoke.gen = false;
}
decline = decline * 1.1;
if ((noscroll == false) && (0 < _root.scr)) {
_x = (bx - _root.scr);
_root.scr = 0;
noscroll = true;
} else if ((noscroll == true) && (bx < _x)) {
_root.scr = bx - _x;
_x = bx;
noscroll = false;
}
if ((_root.height + _height) < _y) {
kill();
}
}
}
if (0 < _root.clear) {
removeMovieClip(this);
}
}
Instance of Symbol 168 MovieClip "bullet" in Frame 3
onClipEvent (load) {
v = 18;
bx = _x - _root.scr;
ftimer = 8;
}
onClipEvent (enterFrame) {
if (gen == false) {
if (flak) {
ftimer--;
if (ftimer < 0) {
i = 0;
while (i < 3) {
txd = (Math.random() * 2) - 1;
tyd = (Math.random() * 2) - 1;
_root.shoot(_x, _y, txd, tyd, 0);
i++;
}
removeMovieClip(this);
}
}
bx = bx - (xd * v);
_x = (bx + _root.scr);
_y = (_y + (yd * v));
timer++;
if ((12 < timer) && (longshot != true)) {
removeMovieClip(this);
} else if (_y < (-_height)) {
removeMovieClip(this);
}
if (tg == 0) {
if (_root.plane.hitTest(_x, _y, true)) {
_root.plane.smoke = true;
if (0.01 < _root.plane.control) {
_root.plane.control = _root.plane.control - 0.2;
} else {
_root.plane.decline = 0.5;
}
}
} else {
i = 0;
while (i < _root.enemies.length) {
myplane = _root.enemies[i];
if (myplane.hitTest(_x, _y, true)) {
myplane.smoke = true;
if (0.01 < myplane.control) {
myplane.control = myplane.control - 0.2;
} else {
myplane.decline = 0.5;
}
}
i++;
}
}
}
}
Instance of Symbol 170 MovieClip in Frame 3
onClipEvent (load) {
if ((gen != false) && (_root.meteor != true)) {
d = 4;
s = _root.limit / d;
i = 0;
while (i < d) {
_root.level++;
duplicateMovieClip (this, "birds" + _root.level, _root.level);
birds = eval ("_root.birds" + _root.level);
birds.bx = ((i * s) + 100) + (Math.random() * 100);
birds.gen = false;
i++;
}
_visible = false;
} else if (_root.meteor) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
_x = (bx + _root.scr);
if ((Math.abs(_root.plane._x - _x) < (_width * 2)) && (_root.plane._y < (_height * 2))) {
if (this.hitTest(_root.plane._x, _root.plane._y, true)) {
if (0 < _root.plane.control) {
_root.plane.control = _root.plane.control - 0.3;
if (_root.plane.control < 0) {
_root.plane.control = 0;
_root.plane.decline = 0.5;
}
}
_root.plane.smoke = true;
}
}
if (0 < _root.clear) {
removeMovieClip(this);
}
}
Instance of Symbol 181 MovieClip in Frame 3
onClipEvent (load) {
if (_root.ctf && (gen != false)) {
i = 1;
while (i < 3) {
_root.level++;
duplicateMovieClip (this, "flag" + _root.level, _root.level);
myflag = eval ("_root.flag" + _root.level);
myflag._y = 100;
myflag.gen = false;
myflag.gotoAndStop(i);
if (i == 1) {
myflag.team = 1;
myflag.bx = 100;
_root.flag1 = myflag;
} else {
myflag.team = 0;
myflag.bx = _root.limit;
myflag._xscale = -100;
_root.flag0 = myflag;
}
i++;
}
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.ctf) {
if (gen == false) {
_x = (bx + _root.scr);
}
if (team == 0) {
if (this.hitTest(_root.plane) && (_visible)) {
_visible = false;
_root.plane.hasflag = true;
_root.plane.myflag = eval ("_root." + _name);
} else {
i = 0;
while (i < _root.enemies.length) {
if ((this.hitTest(_root.enemies[i]) && (_root.enemies[i].hasflag)) && (_visible)) {
_root.ctfscore--;
_root.enemies[i].myflag._visible = true;
_root.enemies[i].hasflag = false;
}
i++;
}
}
} else if (team == 1) {
if ((this.hitTest(_root.plane) && (_root.plane.hasflag)) && (_visible)) {
_root.ctfscore++;
_root.plane.myflag._visible = true;
_root.plane.hasflag = false;
} else {
i = 0;
while (i < _root.enemies.length) {
if (this.hitTest(_root.enemies[i]) && (_visible)) {
_visible = false;
_root.enemies[i].hasflag = true;
_root.enemies[i].myflag = eval ("_root." + _name);
}
i++;
}
}
}
if (Math.abs(_root.ctfscore) == 3) {
if ((_root.ctfscore == 3) && (_root.campaign)) {
_root.ctfgo = "campaign";
} else {
_root.ctfgo = "menu";
}
_root.ctfscore == 0;
_root.clear();
}
if (0 < _root.clear) {
removeMovieClip(this);
}
}
}
Instance of Symbol 183 MovieClip "missile" in Frame 3
onClipEvent (load) {
function die() {
_root.bombs.splice(id, 1);
i = id;
while (i < _root.bombs.length) {
_root.bombs[i].id--;
i++;
}
removeMovieClip(this);
}
ms = true;
bx = (_x - _root.scr) + _root.scrspeed;
p = 0.05;
}
onClipEvent (enterFrame) {
if (gen == false) {
if (vel < (_width * 2)) {
vel = vel * 1.1;
}
bx = bx - (xd * vel);
_y = (_y + (yd * vel));
_x = (bx + _root.scr);
if (((((_x < (-_width)) || ((_root.width + _width) < _x)) || ((_root.height + _height) < _y)) || (_y < (-100 - _height))) || (_root.bossdown)) {
die();
}
}
}
Instance of Symbol 187 MovieClip in Frame 3
onClipEvent (load) {
function die() {
_root.score = _root.score + 300;
_root.bombs.splice(id, 1);
x = id;
while (x < _root.bombs.length) {
_root.bombs[x].id--;
x++;
}
removeMovieClip(this);
}
gotoAndStop(Math.ceil(Math.random() * _totalframes));
rate = 80;
vel = 4;
}
onClipEvent (enterFrame) {
if (_root.meteor == true) {
_root.ar0 = _root.bombs[0]._name;
_root.ar1 = _root.bombs[1]._name;
_root.ar2 = _root.bombs[2]._name;
_root.ar3 = _root.bombs[3]._name;
if (gen != false) {
timer++;
if (rate < timer) {
timer = 0;
rate--;
vel = vel + 0.5;
_root.level++;
duplicateMovieClip (this, "meteor" + _root.level, _root.level);
mm = eval ("_root.meteor" + _root.level);
mm.bx = 50 + (Math.random() * (_root.limit - 100));
mm.gen = false;
mm.xd = -0.1 + (Math.random() / 5);
mm.rd = -1 + (Math.round(Math.random()) * 2);
mm.rs = Math.random() * 4;
mm.met = true;
mm._rotation = Math.random() * 360;
mm.id = _root.bombs.length;
_root.bombs[_root.bombs.length] = eval ("_root." + mm._name);
}
} else {
_y = (_y + vel);
bx = bx + (vel * xd);
_x = (bx + _root.scr);
_rotation = (_rotation + (rd * rs));
i = 0;
while (i < _root.bombs.length) {
bomb = eval (_root.bombs[i]);
if ((Math.abs(bomb.bx - bx) < (_width * 2)) && (bomb._name != _name)) {
n = 0;
while (n < 2) {
pt = eval ("bomb.pt" + n);
if (this.hitTest(pt.x, pt.y, true)) {
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
flash = eval ("_root.flash" + _root.level);
flash._x = bomb._x;
flash._y = bomb._y;
_root.badid = bomb.id;
_root.bombs.splice(bomb.id, 1);
x = bomb.id;
while (x < _root.bombs.length) {
_root.bombs[x].id--;
x++;
}
removeMovieClip(bomb);
die();
}
n++;
}
}
i++;
}
if (((_root.height + 100) < _y) || (0 < _root.clear)) {
die();
}
}
}
}
Instance of Symbol 189 MovieClip "napalm" in Frame 3
onClipEvent (load) {
v = 10;
nap = true;
bx = (_x - _root.scr) + _root.scrspeed;
bw = 15;
bwd = -1;
}
onClipEvent (enterFrame) {
if (fade) {
_x = (bx + _root.scr);
_alpha = (_alpha - 5);
_xscale = (_xscale + 30);
_yscale = (_yscale - 5);
} else if (gen == false) {
_x = (bx + _root.scr);
_y = (_y + v);
}
}
Instance of Symbol 194 MovieClip "npower" in Frame 3
onClipEvent (load) {
if ((((!_root.meteor) && (!_root.flak)) && (gen != false)) && (_root.usenuke)) {
i = 0;
while (i < 2) {
_root.level++;
duplicateMovieClip (this, "np" + _root.level, _root.level);
myn = eval ("_root.np" + _root.level);
myn._x = (myn.bx = 200 + (Math.random() * (_root.limit - 400)));
myn.gen = false;
_root.nlist[i] = myn;
i++;
}
}
}
onClipEvent (enterFrame) {
if (!gen) {
_x = (bx + _root.scr);
}
if (0 < _root.clear) {
removeMovieClip(this);
}
}
Instance of Symbol 226 MovieClip in Frame 3
onClipEvent (load) {
if (_root.flak) {
by = _y;
bx = 9850;
ptcheck = 2;
z = 0;
flux = 15;
fluxrate = 0.1;
health = 3;
} else {
_visible = false;
_y = -1000;
}
}
onClipEvent (enterFrame) {
if ((0 >= health) && (_root.flak)) {
_root.bossdown = true;
_root.plane.control = 1;
_root.plane.decline = 0;
_root.plane.stall = 0;
_root.plane.flame = (_root.plane.smoke = false);
dietime++;
if ((dietime % 20) == 0) {
if (_root.bloody) {
_root.makecow((_x - (_width / 2)) + (Math.random() * _width), (_y - (_height / 2)) + (Math.random() * _height), 4);
_root.makecow((_x - (_width / 2)) + (Math.random() * _width), (_y - (_height / 2)) + (Math.random() * _height), 4);
} else {
_root.makedebris((_x - (_width / 2)) + (Math.random() * _width), (_y - (_height / 2)) + (Math.random() * _height), 5);
_root.makefire((_x - (_width / 2)) + (Math.random() * _width), (_y - (_height / 2)) + (Math.random() * _height), 5);
}
}
if (dietime % 5) {
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
flash = eval ("_root.flash" + _root.level);
flash._x = (_x - (_width / 2)) + (Math.random() * _width);
flash._y = (_y - (_height / 2)) + (Math.random() * _height);
}
_y = (_y + 2);
if ((_root.height + _height) < _y) {
if (numflashes < 5) {
numflashes++;
_root.level++;
duplicateMovieClip (_root.bossflash, "flash" + _root.level, _root.level);
f = eval ("_root.flash" + _root.level);
f._x = _x;
f._y = 400;
f.gen = false;
} else {
_root.clear();
}
}
} else if (_root.flak && (_root.scr < -8500)) {
z = z + fluxrate;
_x = (bx + _root.scr);
_y = (by + (Math.sin(z) * flux));
if (Math.random() < 0.1) {
play();
}
if ((Math.abs(_root.plane._x - _x) < (_width * 2)) && (_root.plane.dead != true)) {
i = 0;
while (i < 4) {
pt = eval ("_root.plane.pt" + i);
if (this.hitTest(pt.x, pt.y, true)) {
_root.plane.die();
break;
}
i++;
}
}
i = 0;
while (i < _root.bombs.length) {
bomb = eval (_root.bombs[i]);
if (bomb.cow != true) {
n = 0;
while (n < ptcheck) {
pt = eval ("bomb.pt" + n);
if (red.hitTest(pt.x, pt.y, true)) {
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
flash = eval ("_root.flash" + _root.level);
flash._x = bomb._x;
flash._y = bomb._y;
_root.makedebris(_x, _y - 24, 8 - health);
_root.makefire(_x, _y - 24, 8 - health);
health--;
_root.badid = bomb.id;
_root.bombs.splice(bomb.id, 1);
x = bomb.id;
while (x < _root.bombs.length) {
_root.bombs[x].id--;
x++;
}
removeMovieClip(bomb);
break;
}
n++;
}
n = 0;
while (n < ptcheck) {
pt = eval ("bomb.pt" + n);
if (this.hitTest(pt.x, pt.y, true)) {
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
flash = eval ("_root.flash" + _root.level);
flash._x = bomb._x;
flash._y = bomb._y;
_root.badid = bomb.id;
_root.bombs.splice(bomb.id, 1);
x = bomb.id;
while (x < _root.bombs.length) {
_root.bombs[x].id--;
x++;
}
removeMovieClip(bomb);
break;
}
n++;
}
}
i++;
}
}
}
Instance of Symbol 233 MovieClip in Frame 3
onClipEvent (load) {
function duplicate(nxa) {
_root.level++;
duplicateMovieClip (this, "laser" + _root.level, _root.level);
l = eval ("_root.laser" + _root.level);
l.xa = nxa;
l.gen = false;
l.limit = _root.scr;
}
if (xa || (gen != false)) {
_x = _root.width;
_y = ((Math.random() * _root.height) - 100);
} else {
_y = 0;
_rotation = -90;
_x = (Math.random() * _root.width);
}
if (gen != false) {
xa = true;
oldscr = _root.scr;
}
firespeed = 20;
}
onClipEvent (enterFrame) {
if ((-8500 < _root.scr) && (_root.flak)) {
time++;
if ((time % firespeed) == 0) {
play();
}
if (gen != false) {
if ((((_root.scr < -1000) && (-1000 < oldscr)) || ((_root.scr < -2000) && (-2000 < oldscr))) || ((_root.scr < -3000) && (-3000 < oldscr))) {
duplicate(true);
} else if ((((_root.scr < -4000) && (-4000 < oldscr)) || ((_root.scr < -5000) && (-5000 < oldscr))) || ((_root.scr < -6000) && (-6000 < oldscr))) {
duplicate(false);
}
oldscr = _root.scr;
}
if ((((xa && (Math.abs(_root.plane._y - _y) < (_root.plane._height * 0.75))) || ((xa != true) && (Math.abs(_root.plane._x - _x) < (_root.plane._width * 0.75)))) && (_root.plane.inv < 0)) && (firing)) {
_root.plane.control = _root.plane.control - 0.2;
_root.plane.smoke = true;
_root.makefire(_root.plane._x, _root.plane._y, 4);
_root.plane.inv = 5;
if (0 >= _root.plane.control) {
_root.plane.control = 0;
_root.plane.decline = 1;
}
}
if ((_currentframe != 1) && (xa != true)) {
_x = (_x + _root.scrspeed);
}
if (limit < _root.scr) {
removeMovieClip(this);
}
}
}
Instance of Symbol 235 MovieClip "eyelaser" in Frame 3
onClipEvent (load) {
function die() {
_root.bombs.splice(id, 1);
i = id;
while (i < _root.bombs.length) {
_root.bombs[i].id--;
i++;
}
removeMovieClip(this);
}
_xscale = 1;
bx = (_x - _root.scr) + _root.scrspeed;
cow = true;
ltype = true;
burn = true;
}
onClipEvent (enterFrame) {
if (gen == false) {
_xscale = (_xscale + ((100 - _xscale) / 3));
if ((100 - _xscale) < 0.01) {
_xscale = 100;
}
bx = bx - 8;
_x = (bx + _root.scr);
if (((_x < (-_width)) || ((_root.width + _width) < _x)) || (_root.bossdown)) {
die();
}
}
}
Instance of Symbol 241 MovieClip in Frame 3
onClipEvent (load) {
bx = 9000;
}
onClipEvent (enterFrame) {
_x = (bx + _root.scr);
if (_visible && (this.hitTest(_root.plane))) {
_root.plane.control = 1;
_root.plane.decline = 0;
_root.plane.smoke = false;
_root.plane.flame = false;
_visible = false;
}
if (0 < _root.clear) {
removeMovieClip(this);
}
}
Instance of Symbol 243 MovieClip "bossflash" in Frame 3
onClipEvent (load) {
if (gen == false) {
_yscale = 10;
}
}
onClipEvent (enterFrame) {
if (gen == false) {
if (_yscale < 100) {
_yscale = (_yscale * 1.5);
if (100 < _yscale) {
_yscale = 100;
}
} else {
_xscale = (_xscale / 1.6);
_alpha = (_alpha - 2);
if ((_alpha < 0) || (_xscale < 1)) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 248 MovieClip in Frame 3
onClipEvent (load) {
if (((!_root.meteor) && (!_root.flak)) && (gen != false)) {
i = 0;
while (i < 2) {
_root.level++;
duplicateMovieClip (this, "np" + _root.level, _root.level);
myn = eval ("_root.np" + _root.level);
myn._x = (myn.bx = 200 + (Math.random() * (_root.limit - 400)));
myn.gen = false;
i++;
}
}
}
onClipEvent (enterFrame) {
if (!gen) {
_x = (bx + _root.scr);
if (this.hitTest(_root.plane)) {
_root.plane.missiles = _root.plane.missiles + 3;
removeMovieClip(this);
}
if (0 < _root.clear) {
removeMovieClip(this);
}
}
}
Instance of Symbol 251 MovieClip "combo" in Frame 3
onClipEvent (enterFrame) {
if (gen == false) {
_y = (_y-1);
timer++;
if (5 < timer) {
_alpha = (_alpha - 10);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 253 MovieClip "great" in Frame 3
onClipEvent (enterFrame) {
if (gen == false) {
_y = (_y-1);
timer++;
if (5 < timer) {
_alpha = (_alpha - 10);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 280 MovieClip in Frame 3
onClipEvent (load) {
_root.highlevel++;
this.swapDepths(_root.highlevel);
}
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 281 MovieClip "bigflash" in Frame 3
onClipEvent (load) {
_root.highlevel++;
this.swapDepths(_root.highlevel);
show = 0;
_visible = false;
nukeinit = true;
}
onClipEvent (enterFrame) {
if (0 < show) {
show--;
nukeinit = false;
_visible = true;
} else {
if (!nukeinit) {
nukeinit = true;
_root.nuke = 2;
}
_visible = false;
}
}
Frame 4
stop();
Instance of Symbol 288 MovieClip in Frame 4
onClipEvent (load) {
fullstr = _root.levels[_root.gamelevel][5];
partstr = "";
pos = 0;
}
onClipEvent (enterFrame) {
if (pos < fullstr.length) {
partstr = partstr + fullstr.charAt(pos);
pos++;
}
if (Key.isDown(Key.SPACE)) {
partstr = fullstr;
pos = fullstr.length;
}
pguptime--;
if (Key.isDown(Key.PGUP) && (pguptime < 0)) {
_root.gamelevel++;
pguptime = 8;
}
}
Frame 5
stop();
lifep = Number(_root.lives) / 15;
if (4 < highcombo) {
tempcombo = 4;
} else {
tempcombo = highcombo;
}
combop = highcombo / 10;
if (20000 < score) {
tempsc = 20000;
} else {
tempsc = score;
}
scorep = tempsc / 100000;
sp = Math.round(((scorep + combop) + lifep) * 100);
if (100 < sp) {
sp = 100;
}
trace((((((((("end of game | lifep=" + lifep) + " (") + _root.lives) + "), combop=") + combop) + ", scorep=") + scorep) + ", sp=") + sp);
Instance of Symbol 293 MovieClip in Frame 5
onClipEvent (load) {
if (_root.sp == 100) {
gotoAndStop (2);
} else {
uv = (_root.sp % 10) + 1;
tv = ((_root.sp - (_root.sp % 10)) / 10) + 1;
u.gotoAndStop(uv);
t.gotoAndStop(tv);
}
}
Instance of Symbol 295 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop(_root.highestcombo + 1);
}
Instance of Symbol 299 MovieClip in Frame 5
onClipEvent (load) {
_visible = (_root.sp >= 25);
}
Instance of Symbol 301 MovieClip in Frame 5
onClipEvent (load) {
_visible = (_root.sp >= 50);
}
Instance of Symbol 303 MovieClip in Frame 5
onClipEvent (load) {
_visible = (_root.sp >= 75);
}
Symbol 50 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 64 Button
on (release) {
_root.gamebox._visible = true;
_visible = false;
}
Symbol 65 Button
on (release) {
_root.optionbox._visible = true;
_visible = false;
}
Symbol 66 Button
on (release) {
_root.infobox.gotoAndStop(3);
}
Symbol 67 Button
on (release) {
_root.infobox.gotoAndStop(2);
}
Symbol 72 Button
on (release) {
if (eval (variable)) {
Set(variable, false);
gotoAndStop (1);
} else {
Set(variable, true);
gotoAndStop (2);
}
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 78 Button
on (release) {
_root.mainbox._visible = true;
_visible = false;
}
Symbol 79 Button
on (release) {
_root.cheat._visible = true;
}
Instance of Symbol 74 MovieClip in Symbol 80 MovieClip Frame 1
onClipEvent (load) {
variable = "_root.detail";
default = "true";
}
onClipEvent (load) {
if (eval (variable) == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 89 Button
on (release) {
_visible = false;
_root.mainbox._visible = true;
}
Symbol 90 Button
on (release) {
_root.campaign = true;
_root.gotoAndStop("campaign");
}
Symbol 91 Button
on (release) {
_root.ai = true;
_root.gotoAndStop("game");
}
Symbol 92 Button
on (release) {
_root.ai = true;
_root.ctf = true;
_root.gotoAndStop("game");
}
Symbol 93 Button
on (release) {
_root.meteor = true;
_root.gotoAndStop("game");
}
Symbol 94 Button
on (release) {
_root.flak = true;
_root.gotoAndStop("game");
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 104 Button
on (release) {
_visible = false;
}
Symbol 108 Button
on (release) {
i = 0;
while (i < codes.length) {
if (codes[i][0] == cheatinput.toLowerCase()) {
trace("why not");
eval ("option" + i)._visible = true;
cheatinput = "";
break;
}
trace((codes[i][0] + " vs ") + cheatinput.toLowerCase());
i++;
}
}
Symbol 109 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
variable = "_root.bloody";
default = "false";
}
onClipEvent (load) {
if (eval (variable) == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 112 MovieClip Frame 1
stop();
Instance of Symbol 112 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
variable = "_root.inuke";
default = "false";
}
onClipEvent (load) {
if (eval (variable) == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 115 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 117 MovieClip Frame 1
onClipEvent (load) {
variable = "_root.totalinv";
default = "false";
}
onClipEvent (load) {
if (eval (variable) == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 118 MovieClip Frame 1
stop();
Instance of Symbol 118 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (load) {
variable = "_root.imissile";
default = "false";
}
onClipEvent (load) {
if (eval (variable) == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 111 MovieClip "option3" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 114 MovieClip "option1" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 117 MovieClip "option2" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 120 MovieClip "option0" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 140 MovieClip Frame 1
play();
Symbol 140 MovieClip Frame 2
if ((0 >= _root.clear) && (_root.bossdown != true)) {
gotoAndPlay (1);
} else {
gotoAndStop (3);
}
Symbol 143 MovieClip Frame 1
stop();
Instance of Symbol 141 MovieClip "pt0" in Symbol 143 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt1" in Symbol 143 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt2" in Symbol 143 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt3" in Symbol 143 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt0" in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt1" in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt3" in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt2" in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 154 MovieClip in Symbol 157 MovieClip Frame 5
onClipEvent (load) {
delay = Math.floor(Math.random() * 3);
stop();
}
onClipEvent (enterFrame) {
delay--;
if (delay < 0) {
play();
}
}
Symbol 161 MovieClip Frame 4
removeMovieClip(this);
Instance of Symbol 141 MovieClip "pt0" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt1" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt2" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt3" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt0" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt1" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt0" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt1" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt3" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt2" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt0" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt1" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt2" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Symbol 207 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
function actions() {
if ((_root.scr < -8500) && (0 < _parent.health)) {
t--;
if ((Math.abs(_root.plane._y - (_y + _parent._y)) < 20) && (t < 0)) {
_root.shoot(_x + _parent._x, _y + _parent._y, 1, 0, 0);
gr.play();
t = 12;
}
}
}
Symbol 208 MovieClip Frame 2
actions();
Symbol 208 MovieClip Frame 3
actions();
gotoAndPlay (2);
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 16
_root.level++;
duplicateMovieClip (_root.eyelaser, "el" + _root.level, _root.level);
e = eval ("_root.el" + _root.level);
e._x = (_x + _parent._x) + 20;
e._y = _y + _parent._y;
e.gen = false;
e.id = _root.bombs.length;
_root.badida = e.id;
_root.bombs[_root.bombs.length] = eval ("_root." + e._name);
Symbol 217 MovieClip Frame 21
gotoAndStop (1);
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 16
_root.level++;
duplicateMovieClip (_root.eyelaser, "el" + _root.level, _root.level);
e = eval ("_root.el" + _root.level);
e._x = (_x + _parent._x) + 20;
e._y = _y + _parent._y;
e.gen = false;
e.id = _root.bombs.length;
_root.badida = e.id;
_root.bombs[_root.bombs.length] = eval ("_root." + e._name);
Symbol 219 MovieClip Frame 21
gotoAndStop (1);
Symbol 226 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip "red" in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
firepoint = 30;
}
onClipEvent (enterFrame) {
if (_parent._currentframe == firepoint) {
_root.level++;
duplicateMovieClip (_root.missile, "missile" + _root.level, _root.level);
missile = eval ("_root.missile" + _root.level);
missile._x = _x + _parent._x;
missile._y = _y + _parent._y;
missile._rotation = 180;
missile.gen = false;
missile.xd = 1;
missile.yd = 0;
missile.vel = 5;
missile.cow = true;
missile.id = _root.bombs.length;
_root.badida = missile.id;
_root.bombs[_root.bombs.length] = eval ("_root." + missile._name);
}
}
Instance of Symbol 217 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((Math.random() < 0.05) && (_root.scr < -8500)) && (0 < _parent.health)) {
play();
}
}
Instance of Symbol 219 MovieClip in Symbol 226 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Math.random() < 0.1) {
play();
}
}
Symbol 226 MovieClip Frame 45
gotoAndStop (1);
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 19
firing = true;
Symbol 233 MovieClip Frame 23
firing = false;
Symbol 233 MovieClip Frame 25
if (xa) {
_y = ((Math.random() * _root.height) - 100);
} else {
_x = (Math.random() * _root.width);
}
gotoAndStop (1);
Instance of Symbol 141 MovieClip "pt0" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt1" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt2" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 141 MovieClip "pt3" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 255 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._visible) {
_xscale = (_root.plane.stall * 10);
} else if (_xscale != 100) {
_xscale = 100;
}
}
Instance of Symbol 261 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
sc = 0;
}
onClipEvent (enterFrame) {
if (_root.score < 0) {
neg._visible = true;
} else {
neg._visible = false;
}
oldsc = sc;
newsc = Math.abs(_root.score);
if (newsc < oldsc) {
sc = sc - 25;
} else if (oldsc < newsc) {
sc = sc + 25;
}
uv = sc % 10;
tv = (sc % 100) - uv;
hv = ((sc % 1000) - tv) - uv;
thv = (((sc % 10000) - hv) - tv) - uv;
tthv = (((sc - thv) - hv) - tv) - uv;
u.gotoAndStop(uv + 1);
t.gotoAndStop((tv / 10) + 1);
h.gotoAndStop((hv / 100) + 1);
th.gotoAndStop((thv / 1000) + 1);
tth.gotoAndStop((tthv / 10000) + 1);
}
Instance of Symbol 262 MovieClip "lt" in Symbol 264 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(((_root.lives - (_root.lives % 10)) / 10) + 1);
}
Instance of Symbol 263 MovieClip "lu" in Symbol 264 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop((_root.lives % 10) + 1);
}
Instance of Symbol 262 MovieClip "t" in Symbol 267 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(((_root.lives - (_root.lives % 10)) / 10) + 1);
}
Instance of Symbol 263 MovieClip "u" in Symbol 267 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop((_root.lives % 10) + 1);
}
Instance of Symbol 269 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.abs(_root.ctfscore) + 1);
}
Instance of Symbol 270 MovieClip "neg" in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ctfscore < 0) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 272 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = _root.flag1._visible;
}
Instance of Symbol 273 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = _root.flag0._visible;
}
Instance of Symbol 262 MovieClip "ts" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(((_root.lives - (_root.lives % 10)) / 10) + 1);
}
Instance of Symbol 263 MovieClip "us" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop((_root.lives % 10) + 1);
}
Instance of Symbol 263 MovieClip "min" in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop((_root.lives % 10) + 1);
}
Instance of Symbol 262 MovieClip "t" in Symbol 278 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(((_root.lives - (_root.lives % 10)) / 10) + 1);
}
Instance of Symbol 263 MovieClip "u" in Symbol 278 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop((_root.lives % 10) + 1);
}
Instance of Symbol 276 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.meteor) {
_visible = true;
ctest = 0 < _root.clear;
if ((istiming != true) && (ctest != true)) {
istiming = true;
timer = 2160;
} else {
if (Key.isDown(Key.INSERT)) {
timer = timer - 1000;
}
if (0 >= timer) {
_root.mgo = "campaign";
_root.clear();
}
timer--;
sec = Math.round(timer / 18);
minv = (sec - (sec % 60)) / 60;
rsec = sec % 60;
usv = rsec % 10;
tsv = (rsec - (rsec % 10)) / 10;
min.gotoAndStop(minv + 1);
us.gotoAndStop(usv + 1);
ts.gotoAndStop(tsv + 1);
}
if (0 < _root.clear) {
istiming = false;
}
}
}
Instance of Symbol 278 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mscore == 10) {
t.gotoAndStop(2);
u.gotoAndStop(1);
} else {
t.gotoAndStop(1);
u.gotoAndStop(_root.mscore + 1);
}
}
Instance of Symbol 257 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.plane.stall) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 264 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ctf || (_root.meteor)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 267 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.flak || (_root.meteor)) || (_root.imissile)) && (_currentframe != 2)) {
gotoAndStop (2);
} else if ((_currentframe == 2) && (((_root.flak != true) && (_root.meteor != true)) && (_root.imissile != true))) {
gotoAndStop (1);
}
m = _root.plane.missiles;
uv = (m % 10) + 1;
tv = ((m - (m % 10)) / 10) + 1;
u.gotoAndStop(uv);
t.gotoAndStop(tv);
}
Instance of Symbol 274 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ctf != true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 279 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = _root.meteor;
}
Symbol 284 Button
on (release) {
ar = _root.levels[_root.gamelevel];
_root.fattack = ar[0];
_root.ai = ar[1];
_root.buildingfire = ar[2];
_root.usenuke = ar[4];
_root.flak = false;
_root.meteor = false;
_root.ctf = false;
m = ar[3];
if (m == 1) {
_root.ctf = true;
} else if (m == 2) {
_root.meteor = true;
} else if (m == 3) {
_root.flak = true;
}
_root.gotoAndStop("game");
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 307 Button
on (release) {
gotoAndStop (2);
}