Frame 1
stop();
onLoad = function () {
_global.topPwn = 0;
_global.stats = 0;
};
onEnterFrame = function () {
_root.loss = _global.stats;
_root.ptz = _global.topPwn;
};
Instance of Symbol 27 MovieClip "info" in Frame 1
onClipEvent (load) {
this._visible = false;
}
on (press) {
this._visible = false;
}
Instance of Symbol 30 MovieClip in Frame 1
on (release) {
stopAllSounds();
}
Frame 2
stop();
_root.frame = 10;
var spwvar = 1;
countdown = 60;
i = 0;
timer = 0;
_root.shooting = false;
spawning = 0;
shots = 1000;
_root.spwpoint = 500;
_root.carrying = false;
flagreset = false;
dific = 0.5;
_root.mobs = 0;
_root.kills = 0;
_root.gameOver = false;
onEnterFrame = function () {
var _local1 = _root;
_local1.points = _local1.carrying;
if (_local1.points == false) {
_local1.points = "Ok!";
} else if (_local1.points == true) {
_local1.points = "Picked up!";
}
cooldown++;
if (_local1.heli.dead == false) {
if (Key.isDown(32)) {
if (cooldown >= 60) {
duplicateMovieClip (bomb0, "bomb" + i, i);
_local1["bomb" + i].gotoAndPlay(1);
_local1["bomb" + i]._x = _local1.heli._x;
_local1["bomb" + i]._y = _local1.heli._y;
_local1.death._x = _local1.heli._x;
_local1.death._y = _local1.heli._y;
_local1["bomb" + i].grav = 0;
_local1["bomb" + i].speed = _local1.heli.speed;
_local1.death.grav = 0;
_local1.death.speed = _local1.heli.speed;
_local1.death.bombing = true;
cooldown = 0;
i++;
}
}
if (shots >= 0) {
if (_local1.shooting == true) {
if (Key.isDown(17)) {
if (timer >= 30) {
shotLoop = 1;
shots = shots - 1;
_local1.heli.gun.gotoAndPlay(1);
do {
duplicateMovieClip (shot0, "shot" + i, i);
_local1["shot" + i]._x = _local1.gunnah._x + Math.round(random(20));
_local1["shot" + i]._y = (_local1.gunnah._y - 50) + Math.round(random(20));
i++;
shotLoop++;
_local1.heli.gun._visible = true;
_local1.gunnah.gotoAndStop(2);
} while (shotLoop <= 5);
timer = 0;
} else {
_local1.gunnah.gotoAndStop(1);
}
} else {
_local1.heli.gun._visible = false;
_local1.gunnah.gotoAndStop(1);
}
} else {
_local1.heli.gun._visible = false;
_local1.gunnah.gotoAndStop(1);
}
}
}
timer++;
if (spawning >= 80) {
duplicateMovieClip (enemy0, "enemy" + i, i);
if (_local1.spwvar >= 1) {
_local1.spwpoint = -1625;
_local1["enemy" + i]._xscale = -_local1.enemy0._xscale;
}
if (_local1.spwvar <= -1) {
_local1.spwpoint = 1625;
_local1["enemy" + i]._xscale = _local1.enemy0._xscale;
}
_local1["enemy" + i]._x = _local1.ground._x + _local1.spwpoint;
_local1["enemy" + i]._y = 200;
_local1["enemy" + i].grav = 0;
_local1.enemy0._x = -1000;
_local1.enemy0._y = 5000;
_local1.enemy0._visible = false;
if (dific <= 3) {
dific = dific + 0.05;
} else {
dific = 2;
}
spawning = 0;
_local1.spwvar = Math.round(random(100)) - 50;
i++;
_local1.mobs = _local1.mobs + 1;
}
spawning = spawning + dific;
};
Instance of Symbol 34 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = (_x + (_root.heli.lolx / 3));
}
Instance of Symbol 40 MovieClip "ground" in Frame 2
onClipEvent (enterFrame) {
_x = (_x + _root.heli.lolx);
}
Instance of Symbol 57 MovieClip "enemy0" in Frame 2
onClipEvent (load) {
pickup = false;
grav = 0;
i = 0;
this.dead = false;
if (_x >= _root.ground._x) {
speed = -4;
} else if (_x <= _root.ground._x) {
speed = 4;
}
}
onClipEvent (enterFrame) {
i++;
_y = (_y + grav);
_x = (_x + speed);
grav++;
if (_root.ground.hitTest(this._x, this._y, true)) {
_y = (_y - 1);
grav = 0;
}
if (this.dead == false) {
if (_root.carrying == false) {
if (this.hitTest(_root.FLAG)) {
pickup = true;
_root.carrying = true;
}
}
if (_root.carrying == true) {
if (pickup == true) {
_root.FLAG._x = this._x;
_root.FLAG._y = this._y;
if (_root.flagcap1.hitTest(this._x, this._y, true)) {
pickup = false;
_root.flagreset = true;
_root.carrying = false;
_root.gotoAndPlay(4);
_root.gameOver = true;
}
if (_root.flagcap2.hitTest(this._x, this._y, true)) {
pickup = false;
_root.flagreset = true;
_root.carrying = false;
_root.gotoAndPlay(3);
_root.gameOver = true;
}
}
}
if (_root.gunnah.hitTest(this._x, this._y, true)) {
this.gotoAndPlay(4);
_root.kills = _root.kills + 1;
_root.mobs = _root.mobs - 1;
speed = 0;
this.dead = true;
if (pickup == true) {
this.dead = true;
_root.flagreset = true;
pickup = false;
_root.carrying = false;
}
}
if (_root.death.hitTest(this._x, this._y, true)) {
this.gotoAndPlay(3);
_root.kills = _root.kills + 1;
_root.mobs = _root.mobs - 1;
speed = 0;
this.dead = true;
if (pickup == true) {
this.dead = true;
_root.flagreset = true;
pickup = false;
_root.carrying = false;
}
}
} else if (this.dead == true) {
pickup = false;
}
_x = (_x + _root.heli.lolx);
}
Instance of Symbol 59 MovieClip "gunnah" in Frame 2
onClipEvent (enterFrame) {
_x = _root.heli._x;
}
Instance of Symbol 61 MovieClip "death" in Frame 2
onClipEvent (load) {
grav = 0;
speed = _root.heli.speed;
bombing = false;
}
onClipEvent (enterFrame) {
if (bombing == true) {
_y = (_y + grav);
_x = (_x + speed);
grav++;
if (_root.ground.hitTest(_x, _y, true)) {
counter++;
}
if (counter >= 10) {
_y = (_root.heli._y - 200);
grav = 0;
speed = 0;
bombing = false;
counter = 0;
}
}
_x = (_x + _root.heli.lolx);
}
Instance of Symbol 69 MovieClip "FLAG" in Frame 2
onClipEvent (load) {
loadx = _x + _root.heli.lolx;
loady = _y;
}
onClipEvent (enterFrame) {
if (_root.flagreset == true) {
_x = _root.ground._x;
_y = loady;
_root.flagreset = false;
}
_x = (_x + _root.heli.lolx);
}
Instance of Symbol 71 MovieClip "flagcap1" in Frame 2
onClipEvent (enterFrame) {
_x = ((_root.ground._x + 1560) + _root.heli.lolx);
}
Instance of Symbol 71 MovieClip "flagcap2" in Frame 2
onClipEvent (enterFrame) {
_x = ((_root.ground._x - 1565) + _root.heli.lolx);
}
Instance of Symbol 73 MovieClip "refuel" in Frame 2
onClipEvent (enterFrame) {
_x = (_x + _root.heli.lolx);
if (_root.gunnah.hitTest(this._x, this._y, true)) {
_root.explode.gotoAndPlay(1);
_root.explode._visible = true;
_root.heli._rotation = _root.heli._rotation + 2;
_root.heli._xscale = _root.heli._xscale + 2;
_root.heli._yscale = _root.heli._yscale + 2;
_root["enemy" + i].dead = true;
}
if (_root.death.hitTest(this._x, this._y, true)) {
_root.explode._visible = true;
_root.explode.gotoAndPlay(1);
_root.heli._rotation = _root.heli._rotation + 2;
_root.heli._xscale = _root.heli._xscale + 2;
_root.heli._yscale = _root.heli._yscale + 2;
_root["enemy" + i].dead = true;
}
if (_root.explode._visible == true) {
_root.heli.fall = true;
_root.heli.xplode = true;
}
}
Instance of Symbol 98 MovieClip "heli" in Frame 2
onClipEvent (load) {
speed = 0;
fly = 0;
fall = true;
float = false;
this.gotoAndStop(_root.frame);
bounce = false;
xplode = false;
dead = false;
roat = _rotation;
}
onClipEvent (enterFrame) {
_y = (_y - fly);
_x = (_x + speed);
fly = fly / 1.1;
speed = speed / 1.1;
if (dead == false) {
if (xplode == false) {
this.gotoAndStop(_root.frame);
if (Key.isDown(38)) {
fly = fly + 0.5;
float = true;
if (fall == true) {
fly = fly + 2.5;
if (fly >= 2.5) {
fall = false;
}
}
}
if (Key.isDown(40)) {
fall = true;
}
if (Key.isDown(39)) {
speed++;
_root.frame++;
_root.gas._xscale = _root.gas._xscale - 0.1;
} else if (_root.frame > 10) {
_root.frame--;
}
if (Key.isDown(37)) {
speed--;
_root.frame--;
_root.gas._xscale = _root.gas._xscale - 0.1;
} else if (_root.frame < 10) {
_root.frame++;
}
}
if (fly <= 0.5) {
if (float == true) {
fly = fly - 0.2;
} else if (float == false) {
fly = fly + 0;
}
}
if (_root.frame >= 20) {
_root.frame = 20;
}
if (_root.frame <= 1) {
_root.frame = 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 1);
fall = false;
float = false;
fly = 0;
speed = 0;
if (_root.frame > 10) {
_root.frame--;
} else if (_root.frame < 10) {
_root.frame++;
}
if (xplode == true) {
_y = (_y + 1);
dead = true;
this.gotoAndStop(22);
}
} else {
float = true;
}
if (_root.ground.hitTest(_x, _y + 20, true)) {
_root.shooting = false;
_root.gas._xscale = _root.gas._xscale + 0.05;
} else {
_root.shooting = true;
}
if (_root.gas._xscale <= 101) {
if (_root.refuel.hitTest(_x, _y + 10, true)) {
_root.gas._xscale = _root.gas._xscale + 0.25;
}
}
if (_root.ground.hitTest(_x + 5, _y - 150, true)) {
_y = (_y + 1);
_x = (_x - 3);
fall = true;
float = false;
fly = 0;
speed = 0;
}
if (_root.ground.hitTest(_x - 5, _y - 150, true)) {
_y = (_y + 1);
_x = (_x + 3);
fall = true;
float = false;
fly = 0;
speed = 0;
}
} else {
fall = false;
float = false;
fly = 0;
speed = 0;
_root.gas._xscale = 0;
_rotation = roat;
}
if (fall == true) {
fly = fly - 2;
}
lolx = Math.round(((Stage.width / 2) - _x) / 8);
_x = (_x + lolx);
}
Instance of Symbol 101 MovieClip "bomb0" in Frame 2
onClipEvent (load) {
grav = 0;
speed = _root.heli.speed;
xplode = false;
}
onClipEvent (enterFrame) {
_y = (_y + grav);
_x = (_x + speed);
grav++;
if (xplode == false) {
if (_root.ground.hitTest(_x, _y, true)) {
this.gotoAndPlay(2);
xplode = true;
} else {
this.gotoAndStop(1);
}
}
if (xplode == true) {
_y = _y;
grav = 0;
speed = 0;
}
_x = (_x + _root.heli.lolx);
}
Instance of Symbol 103 MovieClip "shot0" in Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
_y = (_y + 15);
if (_root.ground.hitTest(_x, _y, true)) {
this._visible = true;
_y = (_y - 15);
}
_x = (_x + _root.heli.lolx);
}
Instance of Symbol 109 MovieClip "explode" in Frame 2
onClipEvent (load) {
this._visible = false;
this.stop();
}
Instance of Symbol 118 MovieClip "intface" in Frame 2
on (rollOver) {
this.play();
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 123 MovieClip "gas" in Frame 2
onClipEvent (load) {
_xscale = 100;
}
onClipEvent (enterFrame) {
_xscale = (_xscale - 0.05);
if (_root.heli.xplode == false) {
if (_xscale <= 0) {
_root.gotoAndPlay(4);
}
}
}
Frame 3
stop();
_global.stats = _global.stats + 1;
if (_root.kills >= _global.topPwn) {
_global.topPwn = _root.kills;
} else {
_global.topPwn = _global.topPwn;
}
gotoAndStop (1);
Frame 101
stop();
_global.stats = _global.stats + 1;
if (_root.kills >= _global.topPwn) {
_global.topPwn = _root.kills;
} else {
_global.topPwn = _global.topPwn;
}
gotoAndStop (1);
Symbol 12 Button
on (release) {
play();
}
Symbol 18 Button
on (press) {
_root.info._visible = true;
}
Symbol 57 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.gameOver == true) {
removeMovieClip(this);
}
if (_root.heli.xplode == true) {
removeMovieClip(this);
}
};
Symbol 57 MovieClip Frame 401
stop();
removeMovieClip(this);
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 13
stop();
Symbol 97 MovieClip Frame 9
stop();
Symbol 98 MovieClip Frame 22
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 276
removeMovieClip(this);
stop();
Symbol 103 MovieClip Frame 35
onEnterFrame = function () {
if (_root.heli.xplode == true) {
removeMovieClip(this);
}
};
Symbol 103 MovieClip Frame 211
removeMovieClip(this);
stop();
Symbol 109 MovieClip Frame 115
stop();
_root.gotoAndStop(3);
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 30
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 401
stop();
removeMovieClip(this);
Symbol 132 MovieClip Frame 38
stop();