Frame 1
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
_root.loader.gotoAndStop(_root.percentbytes);
play();
Frame 2
if (loadedbytes == totalbytes) {
nextFrame();
} else {
gotoAndPlay (1);
}
Frame 3
Mouse.show();
stop();
stopAllSounds();
Frame 4
stop();
gun = "machine";
kills = 0;
hp = 1000;
score = 0;
pause = false;
_quality = "LOW";
timer = 2880;
ammo = 0;
Instance of Symbol 155 MovieClip "bg" in Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_root.gun == "sniper") {
zoom = 0.35;
this._xscale = 400;
this._yscale = 400;
} else {
zoom = 3;
this._xscale = 135;
this._yscale = 135;
}
if (_root.fire == true) {
if (_root.gun == "machine") {
errorx = random(20) - 10;
errory = random(20) - 10;
}
} else {
errorx = 0;
errory = 0;
}
_x = ((((-_xmouse) / zoom) + 350) + errorx);
_y = ((((-_ymouse) / zoom) + 200) + errory);
if (Key.isDown(32)) {
if (change == true) {
if (_root.gun == "machine") {
_root.gun = "sniper";
} else if (_root.gun == "sniper") {
_root.gun = "rocket";
} else {
_root.gun = "machine";
}
change = false;
}
} else {
change = true;
}
}
if (Key.isDown(17)) {
if (pause == true) {
if (_root.pause == false) {
_root.pause = true;
} else {
_root.pause = false;
}
pause = false;
}
} else {
pause = true;
}
}
Instance of Symbol 164 MovieClip "cursor" in Frame 4
onClipEvent (load) {
this.startDrag(true);
Mouse.hide();
}
Instance of Symbol 203 MovieClip "gun3" in Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
_y = (360 + ((-400 + _root._ymouse) / 11));
_x = (350 + ((-350 + _root._xmouse) / 5.5));
this._rotation = Math.atan2(_root.gun1._y - this._y, _root.gun1._x - this._x) / (Math.PI/180);
if (_root.gun == "machine") {
if (_root.fire == true) {
this.gotoAndStop("machine");
_root.score = _root.score - 1;
} else {
this.gotoAndStop(1);
}
} else if (_root.gun == "sniper") {
this.gotoAndStop("sniper");
if (_root.fire == true) {
_root.score = _root.score - 5;
this.fire.gotoAndplay(2);
}
} else if (_root.gun == "rocket") {
this.gotoAndStop("rocket");
if (_root.fire == true) {
_root.score = _root.score - 25;
this.fire.gotoAndplay(2);
}
}
if (_root.cursor.hitTest(this)) {
_alpha = 50;
} else {
_alpha = 100;
}
}
}
Instance of Symbol 204 MovieClip "gun2" in Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
_y = (380 + ((-400 + _root._ymouse) / 20));
_x = (350 + ((-350 + _root._xmouse) / 10));
this._rotation = Math.atan2(_root.gun1._y - this._y, _root.gun1._x - this._x) / (Math.PI/180);
}
}
Instance of Symbol 205 MovieClip "gun1" in Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
this._rotation = Math.atan2(_root.gun1._y - _root.gun2._y, _root.gun1._x - _root.gun2._x) / (Math.PI/180);
}
}
Instance of Symbol 212 MovieClip in Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(_root.hp + 1);
if (_root.hp <= 0) {
_root.nextFrame();
}
_root.timer--;
if (_root.timer <= 0) {
_root.gotoAndStop(3);
}
}
Frame 5
Mouse.show();
Frame 6
Mouse.show();
Symbol 7 MovieClip Frame 1
stop();
Symbol 23 Button
on (press) {
nextFrame();
_root.dif = 0.5;
}
Symbol 30 Button
on (press) {
nextFrame();
_root.dif = 1;
}
Symbol 40 Button
on (press) {
nextFrame();
_root.dif = 2;
}
Symbol 43 Button
on (press) {
nextFrame();
_root.dif = 5;
}
Symbol 98 MovieClip Frame 6
stop();
Symbol 99 MovieClip Frame 1
stop();
Instance of Symbol 72 MovieClip in Symbol 99 MovieClip Frame 1
onClipEvent (load) {
speed = (1 * _root.dif) + (random(10) / 10);
hp = 8 * _root.dif;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent._x < 215) {
_parent._x = _parent._x + speed;
} else {
_root.hp = _root.hp - 1;
}
this.play();
if (_root.cursor.hit.hitTest(this)) {
if (_root.fire == true) {
if (_root.gun == "machine") {
hp = hp - 1;
} else if (_root.gun == "sniper") {
hp = hp - 20;
}
}
}
if (hp <= 0) {
speed = 0;
_root.kills = _root.kills + 1;
_root.score = _root.score + 15;
_parent.gotoAndplay("bullet");
}
crazy = random(10000);
if (crazy == 0) {
hp = hp - 5;
}
if (_root.bg.rocket.hitTest(this)) {
hp = hp - 20;
}
crazy = random(300);
if (crazy == 4) {
hp = hp - 10;
}
} else {
this.stop();
}
}
Symbol 99 MovieClip Frame 2
prevFrame();
Instance of Symbol 90 MovieClip in Symbol 99 MovieClip Frame 2
onClipEvent (load) {
speed = 1 + (random(10) / 10);
hp = 10;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent._x < 155) {
_parent._x = _parent._x + speed;
} else {
_root.hp = _root.hp - 1;
}
this.play();
if (_root.cursor.hit.hitTest(this)) {
if (_root.fire == true) {
if (_root.gun == "machine") {
hp = hp - 1;
}
}
}
if (hp <= 0) {
speed = 0;
_root.kills = _root.kills + 1;
_root.score = _root.score + 15;
_parent.gotoAndplay("bullet");
}
crazy = random(200);
if (crazy == 0) {
hp = hp - 5;
}
} else {
this.stop();
}
}
Instance of Symbol 98 MovieClip in Symbol 99 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pause == false) {
_parent.play();
} else {
_parent.stop();
}
}
Symbol 99 MovieClip Frame 40
_x = -350;
_y = (random(100) + 20);
if (_root.timer > 480) {
gotoAndStop (1);
} else {
stop();
}
Symbol 104 MovieClip Frame 1
stop();
Instance of Symbol 102 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
speed = (3 * _root.dif) + (random(10) / 10);
hp = 8 * _root.dif;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent._x < 155) {
_parent._x = _parent._x + speed;
} else {
_root.hp = _root.hp - 1;
}
this.play();
if (_root.cursor.hit.hitTest(this)) {
if (_root.fire == true) {
if (_root.gun == "machine") {
hp = hp - 1;
} else if (_root.gun == "sniper") {
hp = hp - 20;
}
}
}
if (hp <= 0) {
speed = 0;
_root.kills = _root.kills + 1;
_root.score = _root.score + 15;
_parent.gotoAndplay("bullet");
}
crazy = random(25);
if (crazy == 0) {
hp = hp - 5;
}
if (_root.bg.rocket.hitTest(this)) {
hp = hp - 20;
}
} else {
this.stop();
}
}
Symbol 104 MovieClip Frame 2
prevFrame();
Instance of Symbol 90 MovieClip in Symbol 104 MovieClip Frame 2
onClipEvent (load) {
speed = 1 + (random(10) / 10);
hp = 10;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent._x < 155) {
_parent._x = _parent._x + speed;
} else {
_root.hp = _root.hp - 1;
}
this.play();
if (_root.cursor.hit.hitTest(this)) {
if (_root.fire == true) {
if (_root.gun == "machine") {
hp = hp - 1;
}
}
}
if (hp <= 0) {
speed = 0;
_root.kills = _root.kills + 1;
_root.score = _root.score + 15;
_parent.gotoAndplay("bullet");
}
crazy = random(200);
if (crazy == 0) {
hp = hp - 5;
}
} else {
this.stop();
}
}
Symbol 104 MovieClip Frame 40
_x = -350;
_y = ((-random(100)) - 50);
if (_root.timer > 480) {
gotoAndStop (1);
} else {
stop();
}
Symbol 135 MovieClip Frame 7
stop();
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 126 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
speed = (0.5 * _root.dif) + (random(10) / 10);
hp = 100 * _root.dif;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent._x < 155) {
_parent._x = _parent._x + speed;
} else {
_root.hp = _root.hp - 5;
}
this.play();
if (_root.cursor.hit.hitTest(this)) {
if (_root.fire == true) {
if (_root.gun == "machine") {
hp = hp - 1;
} else if (_root.gun == "sniper") {
hp = hp - 5;
}
}
}
if (hp <= 0) {
speed = 0;
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
_parent.gotoAndplay("bullet");
}
crazy = random(200);
if (crazy == 0) {
hp = hp - 5;
}
if (_root.bg.rocket.hitTest(this)) {
hp = hp - 3;
}
} else {
this.stop();
}
}
Symbol 136 MovieClip Frame 2
prevFrame();
Instance of Symbol 90 MovieClip in Symbol 136 MovieClip Frame 2
onClipEvent (load) {
speed = 1 + (random(10) / 10);
hp = 10;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent._x < 155) {
_parent._x = _parent._x + speed;
} else {
_root.hp = _root.hp - 1;
}
this.play();
if (_root.cursor.hit.hitTest(this)) {
if (_root.fire == true) {
if (_root.gun == "machine") {
hp = hp - 1;
}
}
}
if (hp <= 0) {
speed = 0;
_root.kills = _root.kills + 1;
_root.score = _root.score + 15;
_parent.gotoAndplay("bullet");
}
crazy = random(200);
if (crazy == 0) {
hp = hp - 5;
}
} else {
this.stop();
}
}
Symbol 136 MovieClip Frame 80
_x = -350;
_y = (random(100) + 20);
if (_root.timer > 480) {
gotoAndStop (1);
} else {
stop();
}
Symbol 148 MovieClip Frame 1
stop();
_root.rocket = true;
Symbol 148 MovieClip Frame 2
_root.ammo++;
_root.gun3.gun.backfire.play();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
_root.rocket = false;
Instance of Symbol 154 MovieClip "smoke" in Symbol 155 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root.bg.rocket._x;
this._y = _root.bg.rocket._y;
}
Symbol 157 Button
on (press) {
if (_root.pause == false) {
if (_root.gun == "machine") {
_root.fire = true;
} else if (_root.gun == "sniper") {
_root.fire = true;
} else if (_root.gun == "rocket") {
if (_root.ammo < 13) {
_root.bg.rocket.play();
_root.bg.smoke.play();
if (_root.rocket == true) {
_root.bg.rocket._x = (_xmouse * 1) - 350;
_root.bg.rocket._y = (_ymouse * 1) - 200;
}
}
}
}
}
on (release) {
if (_root.pause == false) {
if (_root.gun == "machine") {
_root.fire = false;
}
}
}
on (rollOver) {
if (_root.pause == false) {
if (_root.gun == "machine") {
_root.fire = false;
}
}
}
Instance of Symbol 159 MovieClip "hit" in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gun == "machine") {
this._xscale = 100;
this._yscale = 100;
} else if (_root.gun == "sniper") {
this._xscale = 10;
this._yscale = 10;
}
}
Instance of Symbol 163 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gun);
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
_root.fire = false;
Symbol 189 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 172 MovieClip in Symbol 203 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
this.play();
} else {
this.stop();
_root.fire = false;
}
}
Instance of Symbol 202 MovieClip "gun" in Symbol 203 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(_root.ammo + 1);
}
Symbol 226 Button
on (press) {
gotoAndStop (1);
}