Frame 1
stop();
Frame 5
stop();
if (firstgo != 0) {
highscore = 0;
firstgo = 0;
}
j = 0;
while (j < i) {
removeMovieClip("bullet" + j);
j++;
}
scrollspeed = 8;
Instance of Symbol 35 MovieClip in Frame 5
onClipEvent (enterFrame) {
if ((_parent.scrollon == 1) && (_parent.scrollspeed != 0)) {
_x = (_x + (_parent.scrollspeed / 8));
if (_width < _x) {
_x = -30;
}
if (_x < (-_width)) {
_x = 30;
}
if (0 < _x) {
_parent.far2._x = (_x - _width) - 30;
} else {
_parent.far2._x = (_x + _width) + 30;
}
}
}
Instance of Symbol 37 MovieClip in Frame 5
onClipEvent (enterFrame) {
if ((_parent.scrollon == 1) && (_parent.scrollspeed != 0)) {
_x = (_x + (_parent.scrollspeed / 2));
if (_x >= _width) {
_x = 0;
}
if (_x < (-_width)) {
_x = 0;
}
if (0 < _x) {
_parent.ground2._x = _x - _width;
} else {
_parent.ground2._x = _x + _width;
}
}
}
Instance of Symbol 40 MovieClip in Frame 5
onClipEvent (load) {
_parent.scrollon = 1;
}
onClipEvent (enterFrame) {
if ((_parent.scrollon == 1) && (_parent.scrollspeed != 0)) {
_x = (_x + _parent.scrollspeed);
if (_x >= _width) {
_x = -30;
}
if (_x < (-_width)) {
_x = 30;
}
if (0 < _x) {
_parent.mount2._x = (_x - _width) - 30;
} else {
_parent.mount2._x = (_x + _width) + 30;
}
}
}
Frame 10
j = 0;
while (j < i) {
removeMovieClip("bullet" + j);
j++;
}
scrollspeed = 8;
Frame 15
_parent.scrollspeed = 0;
score = 0;
Instance of Symbol 65 MovieClip "bullet" in Frame 15
onClipEvent (load) {
if (_name != "bullet") {
_rotation = _parent.guy.gun.gun._rotation;
if (0 < rotation) {
_rotation = (_rotation + rotation);
}
xspeed = 7 * Math.cos((_rotation * Math.PI) / 180);
yspeed = 7 * Math.sin((_rotation * Math.PI) / 180);
var point = new Object();
point.x = 0;
point.y = 0;
_parent.guy.gun.gun.barrel.localToGlobal(point);
_x = point.x;
_y = point.y;
delete point;
gotoAndStop(frame);
}
}
onClipEvent (enterFrame) {
if (_name != "bullet") {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.copter.hitTest(_x, _y, 1)) {
_root.copter.health = _root.copter.health - damage;
_root.score = _root.score + score;
if (_root.highscore < _root.score) {
_root.highscore = _root.score;
}
if (frame == 2) {
_root.boom.duplicateMovieClip("bullet" + _root.i, _root.i + 1000000);
_root["bullet" + _root.i]._x = _x;
_root["bullet" + _root.i]._y = _y;
_root.i++;
}
if (frame != 3) {
removeMovieClip("");
}
}
if (frame == 2) {
ticks++;
if (1 < ticks) {
_root.smoke.duplicateMovieClip("bullet" + _root.i, _root.i + 1000000);
_root["bullet" + _root.i]._x = _x;
_root["bullet" + _root.i]._y = _y;
_root.i++;
ticks = 0;
}
}
if ((550 < _x) || (_x < 0)) {
if (frame == 2) {
_root.boom.duplicateMovieClip("bullet" + _root.i, _root.i + 1000000);
_root["bullet" + _root.i]._x = _x;
_root["bullet" + _root.i]._y = _y;
_root.i++;
}
removeMovieClip("");
}
if ((390 < _y) || (_y < 0)) {
if (frame == 2) {
_root.boom.duplicateMovieClip("bullet" + _root.i, _root.i + 1000000);
_root["bullet" + _root.i]._x = _x;
_root["bullet" + _root.i]._y = _y;
_root.i++;
}
removeMovieClip("");
}
}
}
Instance of Symbol 71 MovieClip "badbullet" in Frame 15
onClipEvent (load) {
if (_name != "badbullet") {
_rotation = ((_parent.copter.copter.gun._rotation + _parent.copter.copter._rotation) + _parent.copter._rotation);
_rotation = (_rotation - (random(9) + random(18)));
xspeed = 7 * Math.cos((_rotation * Math.PI) / 180);
yspeed = 7 * Math.sin((_rotation * Math.PI) / 180);
var point2 = new Object();
point2.x = 0;
point2.y = 0;
_parent.copter.copter.gun.barrel.localToGlobal(point2);
_x = point2.x;
_y = point2.y;
delete point2;
}
}
onClipEvent (enterFrame) {
if (_name != "badbullet") {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.guy.hitTest(_x, _y, 1)) {
_root.health = _root.health - 5;
removeMovieClip("");
}
if ((550 < _x) || (_x < 0)) {
removeMovieClip("");
}
if ((390 < _y) || (_y < 0)) {
removeMovieClip("");
}
}
}
Instance of Symbol 85 MovieClip "powerup" in Frame 15
onClipEvent (load) {
frame = random(6) + 1;
if (frame == 6) {
guy.play();
} else {
guy.gotoAndStop(frame);
}
stop();
_x = (_width + random(550 - _width));
}
onClipEvent (enterFrame) {
if (frame != 6) {
guy.gotoAndStop(frame);
}
if (guy.hitTest(_root.guy.guy)) {
_root.guy.firemode = guy._currentframe;
_root.guy.ticks2 = 0;
_root.guy.ticks = 100;
_root.guy.firetime = 320;
_root.guy.firechange = 1;
gotoAndStop (1);
do {
nextframe = random(6) + 1;
} while (nextframe == frame);
frame = nextframe;
if (frame == 6) {
guy.play();
} else {
guy.gotoAndStop(frame);
}
_x = (_width + random(550 - _width));
}
}
Instance of Symbol 114 MovieClip "copter" in Frame 15
onClipEvent (load) {
health = 125;
frame = 200 * random(8);
if (frame == 0) {
frame = 1;
}
gotoAndPlay(frame);
}
onClipEvent (enterFrame) {
if (0 >= health) {
_root.score = _root.score + 1000;
if (_root.highscore < _root.score) {
_root.highscore = _root.score;
}
powerup++;
if (2 < powerup) {
_parent.powerup.gotoAndPlay(1);
powerup = 0;
}
_parent.crash._x = _x + copter._x;
_parent.crash._y = _y + copter._y;
_parent.crash._rotation = copter._rotation;
if (_root.coptertype == 1) {
_parent.crash.gotoAndPlay(1);
} else {
_parent.crash.gotoAndPlay(20);
}
health = 125;
frame = 200 * random(8);
if (frame == 0) {
frame = 1;
}
gotoAndStop(frame);
}
}
Instance of Symbol 118 MovieClip "crash" in Frame 15
onClipEvent (load) {
yspeed = 1;
}
onClipEvent (enterFrame) {
if ((_currentframe == 5) || (_currentframe == 22)) {
_y = (_y + yspeed);
yspeed++;
if ((_y + 60) >= 390) {
play();
yspeed = 1;
}
}
}
Instance of Symbol 122 MovieClip "guy" in Frame 15
onClipEvent (load) {
function infoClip(title) {
_root.infoClip.duplicateMovieClip("bullet" + _root.i, _root.i + 100);
_root["bullet" + _root.i]._x = _x;
if ((_root["bullet" + _root.i]._x - (_root["bullet" + _root.i]._width / 2)) < 0) {
_root["bullet" + _root.i]._x = 0 + (_root["bullet" + _root.i]._width / 2);
}
if (550 < (_root["bullet" + _root.i]._x + (_root["bullet" + _root.i]._width / 2))) {
_root["bullet" + _root.i]._x = 550 - (_root["bullet" + _root.i]._width / 2);
}
_root["bullet" + _root.i]._y = _y - (_height * 1.5);
_root["bullet" + _root.i].info.title = title;
_root.i++;
}
_root.i = 0;
shooting = 0;
jump = 0;
_root.health = 100;
firemode = 0;
firechange = 1;
myColor = new Color(this);
}
onClipEvent (enterFrame) {
if (0 >= _root.health) {
_root.gotoAndStop(10);
}
_parent.scrollspeed = 0;
if (Key.isDown(Key.Up) && (jump == 0)) {
gotoAndPlay (14);
}
if ((_currentframe >= 14) && (36 >= _currentframe)) {
jump = 1;
} else {
jump = 0;
}
if (Key.isDown(39)) {
_x = (_x + 3);
_parent.scrollspeed = -3;
if (jump == 0) {
play();
}
if (535 < _x) {
_x = 535;
_parent.scrollspeed = 0;
}
}
if (Key.isDown(37)) {
_x = (_x - 3);
_parent.scrollspeed = 3;
if (jump == 0) {
play();
}
if (_x < 15) {
_x = 15;
_parent.scrollspeed = 0;
}
}
if ((Key.isDown(39) && (Key.isDown(37))) && (jump == 0)) {
_parent.scrollspeed = 0;
gotoAndStop (1);
}
if (((!Key.isDown(39)) && (!Key.isDown(37))) && (jump == 0)) {
gotoAndStop (1);
}
gun.gun._rotation = (360 - ((Math.atan2((_x + gun._x) - _root._xmouse, (_y + gun._y) - _root._ymouse) * 180) / Math.PI)) - 90;
if ((90 < gun.gun._rotation) || (gun.gun._rotation < -90)) {
gun.gun._yscale = -100;
} else {
gun.gun._yscale = 100;
}
if (firemode != 0) {
ticks2++;
if ((_root.bar._currentframe == 1) && (firemode != 1)) {
_root.bar.play();
}
_root.bar.bar.juice._yscale = (1 - (ticks2 / firetime)) * 100;
if (ticks2 >= firetime) {
if (firemode != 1) {
_root.bar.play();
}
if (firemode == 6) {
trans = new Object();
trans.ra = (trans.ga = (trans.ba = 100));
trans.rb = (trans.gb = (trans.bb = 0));
myColor.setTransform(trans);
delete trans;
}
firemode = 0;
firechange = 1;
ticks2 = 0;
}
}
if (firechange == 1) {
if (firemode == 0) {
gun.gun.gotoAndStop(1);
gunframe = 1;
firerate = 5;
damage = 5;
frame = 1;
score = 100;
}
if (firemode == 1) {
gun.gun.gotoAndStop(1);
gunframe = 1;
infoClip("HEALTH");
_root.health = _root.health + 25;
ticks2 = firetime;
}
if (firemode == 2) {
gun.gun.gotoAndStop(1);
gunframe = 1;
infoClip("MACHINE GUN");
firerate = 2;
damage = 4;
frame = 1;
score = 75;
}
if (firemode == 3) {
gun.gun.gotoAndStop(2);
gunframe = 2;
infoClip("ROCKET LAUNCHER");
firerate = 25;
damage = 45;
frame = 2;
score = 250;
}
if (firemode == 4) {
gun.gun.gotoAndStop(3);
gunframe = 3;
infoClip("FLAMETHROWER");
firerate = 2;
damage = 3;
frame = 3;
score = 25;
}
if (firemode == 5) {
gun.gun.gotoAndStop(4);
gunframe = 4;
infoClip("SHOTGUN");
firerate = 15;
damage = 5;
frame = 1;
score = 25;
}
if (firemode == 6) {
gun.gun.gotoAndStop(1);
gunframe = 1;
infoClip("INVINSIBILITY");
healthbak = _root.health;
trans = new Object();
trans.ra = 100;
trans.ga = (trans.ba = 0);
trans.rb = (trans.gb = (trans.bb = 0));
myColor.setTransform(trans);
delete trans;
}
firechange = 0;
}
if (firemode == 6) {
_root.health = healthbak;
}
ticks++;
if ((shooting == 1) && (firerate < ticks)) {
if (firemode == 5) {
i = 0;
while (i < 4) {
_parent.bullet.duplicateMovieClip("bullet" + _root.i, _root.i + 10000);
_parent["bullet" + _root.i].damage = damage;
_parent["bullet" + _root.i].frame = frame;
_parent["bullet" + _root.i].speed = speed;
_parent["bullet" + _root.i].score = score;
_parent["bullet" + _root.i].rotation = (-random(15)) + random(30);
_root.i++;
i++;
}
}
_parent.bullet.duplicateMovieClip("bullet" + _root.i, _root.i + 10000);
_parent["bullet" + _root.i].damage = damage;
_parent["bullet" + _root.i].frame = frame;
_parent["bullet" + _root.i].speed = speed;
_parent["bullet" + _root.i].score = score;
_root.i++;
ticks = 0;
}
}
onClipEvent (mouseDown) {
shooting = 1;
}
onClipEvent (mouseUp) {
shooting = 0;
}
Symbol 16 MovieClip Frame 15
stop();
Symbol 32 MovieClip Frame 54
total = Math.floor(_root.getBytesTotal() / 1024);
download = Math.floor(_root.getBytesLoaded() / 1024);
if (download == total) {
_root.gotoAndStop(5);
}
Symbol 32 MovieClip Frame 55
stop();
Instance of Symbol 29 MovieClip in Symbol 32 MovieClip Frame 55
onClipEvent (enterFrame) {
total = Math.floor(_root.getBytesTotal() / 1024);
}
onClipEvent (enterFrame) {
download = Math.floor(_root.getBytesLoaded() / 1024);
_xscale = Math.floor((download / total) * 100);
if (download == total) {
_root.gotoAndStop(5);
}
}
Symbol 47 Button
on (release) {
gotoAndStop (15);
}
Symbol 50 Button
on (keyPress "q") {
toggleHighQuality();
}
on (keyPress "p") {
if (scrollon == 1) {
scrollon = 0;
} else {
scrollon = 1;
}
}
Symbol 54 Button
on (release) {
gotoAndStop (5);
}
Symbol 64 MovieClip Frame 23
removeMovieClip(_parent);
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 252
do {
nextframe = random(6) + 1;
} while (nextframe == frame);
frame = nextframe;
if (frame == 6) {
guy.play();
randompower = 1;
} else {
guy.gotoAndStop(frame);
}
gotoAndStop (1);
Symbol 88 MovieClip Frame 11
removeMovieClip("");
stop();
Symbol 91 MovieClip Frame 10
removeMovieClip("");
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
_root.coptertype = 1;
Instance of Symbol 111 MovieClip "gun" in Symbol 112 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = ((360 - ((Math.atan2((_root.copter._x + _parent._x) - _root.guy._x, (_root.copter._y + _parent._y) - _root.guy._y) * 180) / Math.PI)) - 90);
if ((90 < _rotation) || (_rotation < -90)) {
_yscale = -100;
} else {
_yscale = 100;
}
_rotation = (_rotation - _parent._rotation);
ticks++;
if ((7 + random(5)) < ticks) {
_root.badbullet.duplicateMovieClip("bullet" + _root.i, _root.i + 10000);
_root.i++;
ticks = 0;
}
}
Symbol 113 MovieClip Frame 1
_root.coptertype = 2;
Instance of Symbol 111 MovieClip "gun" in Symbol 113 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = ((360 - ((Math.atan2((_root.copter._x + _parent._x) - _root.guy._x, (_root.copter._y + _parent._y) - _root.guy._y) * 180) / Math.PI)) - 90);
if ((90 < _rotation) || (_rotation < -90)) {
_yscale = -100;
} else {
_yscale = 100;
}
_rotation = (_rotation - _parent._rotation);
ticks++;
if (5 < ticks) {
_root.badbullet.duplicateMovieClip("bullet" + _root.i, _root.i + 10000);
_root.i++;
ticks = 0;
}
}
Symbol 114 MovieClip Frame 166
gotoAndPlay (200);
Symbol 114 MovieClip Frame 299
gotoAndPlay (400);
Symbol 114 MovieClip Frame 498
gotoAndPlay (600);
Symbol 114 MovieClip Frame 688
gotoAndPlay (800);
Symbol 114 MovieClip Frame 900
gotoAndPlay (1000);
Symbol 114 MovieClip Frame 1087
gotoAndPlay (1200);
Symbol 114 MovieClip Frame 1284
gotoAndPlay (1400);
Symbol 117 MovieClip Frame 8
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 5
stop();
Symbol 118 MovieClip Frame 18
gotoAndStop (1);
_x = -100;
_y = -100;
_root.copter.play();
Symbol 118 MovieClip Frame 22
stop();
Symbol 118 MovieClip Frame 35
gotoAndStop (1);
_x = -100;
_y = -100;
_root.copter.play();
Symbol 122 MovieClip Frame 1
gun.gun.gotoAndStop(gunframe);
stop();
Symbol 122 MovieClip Frame 10
gotoAndPlay (1);
Symbol 122 MovieClip Frame 15
gun.gun.gotoAndStop(gunframe);
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 10
stop();
Symbol 130 MovieClip Frame 24
removeMovieClip("");
stop();