Frame 1
stop();
_quality = "medium";
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("faf64eaf", this, 10301, true);
Frame 4
o = 0;
f = 0;
e = 0;
i = 0;
Mouse.hide();
stop();
Instance of Symbol 53 MovieClip in Frame 4
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 55 MovieClip "ground" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 85 MovieClip "buggy" in Frame 4
onClipEvent (enterFrame) {
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y-1);
}
}
Instance of Symbol 94 MovieClip "try4" in Frame 4
onClipEvent (enterFrame) {
while (((((_rotation > 180) && (!_root.ground.hitTest(_x, _y, true))) && (!_root.enemy.hitTest(_x, _y, true))) && (!_root.globe.hitTest(_x, _y, true))) && (((_y - _root.buggy._y) < 550) && ((_y - _root.buggy._y) > -400))) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
while (((((_rotation < 180) && (!_root.ground.hitTest(_x, _y, true))) && (!_root.enemy.hitTest(_x, _y, true))) && (!_root.globe.hitTest(_x, _y, true))) && (((_y - _root.buggy._y) < 550) && ((_y - _root.buggy._y) > -400))) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
}
onClipEvent (load) {
spd = 10;
_rotation = (_root.buggy.arm._rotation + _root.buggy._rotation);
_x = _root.buggy._x;
_y = _root.buggy._y;
}
Instance of Symbol 156 MovieClip "globe" in Frame 4
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 159 MovieClip "linelol" in Frame 4
onClipEvent (enterFrame) {
_x = _root.buggy._x;
_y = _root.buggy._y;
_rotation = (_root.buggy.arm._rotation + _root.buggy._rotation);
}
onClipEvent (mouseDown) {
play();
}
Instance of Symbol 163 MovieClip "orig" in Frame 4
onClipEvent (load) {
_x = _root.buggy._x;
_y = (_root.buggy._y + 15);
_rotation = (_root.buggy.arm._rotation + _root.buggy._rotation);
}
Instance of Symbol 167 MovieClip "lina" in Frame 4
onClipEvent (load) {
_x = _root.buggy._x;
_y = _root.buggy._y;
_rotation = (_root.buggy.arm._rotation + _root.buggy._rotation);
}
Instance of Symbol 171 MovieClip "orig2" in Frame 4
onClipEvent (enterFrame) {
while (((((_rotation > 180) && (!_root.ground.hitTest(_x, _y, true))) && (!_root.enemy.hitTest(_x, _y, true))) && (!_root.globe.hitTest(_x, _y, true))) && (((_y - _root.buggy._y) < 550) && ((_y - _root.buggy._y) > -400))) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
while (((((_rotation < 180) && (!_root.ground.hitTest(_x, _y, true))) && (!_root.enemy.hitTest(_x, _y, true))) && (!_root.globe.hitTest(_x, _y, true))) && (((_y - _root.buggy._y) < 550) && ((_y - _root.buggy._y) > -400))) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
}
onClipEvent (load) {
spd = 20;
_rotation = (_root.buggy.arm._rotation + _root.buggy._rotation);
_x = _root.buggy._x;
_y = _root.buggy._y;
}
Instance of Symbol 181 MovieClip in Frame 4
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 231 MovieClip "enemy" in Frame 4
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 242 MovieClip in Frame 4
onClipEvent (enterFrame) {
gotoAndStop(_root.waveNum);
}
Instance of Symbol 265 MovieClip "cam" in Frame 4
onClipEvent (enterFrame) {
if ((_root.buggy._y > -150) && (_root.buggy._y < 440)) {
_y = (_y - ((_y - (_root.buggy._y - 200)) / 5));
}
while (_y < -350) {
_y = (_y+1);
}
while (_y > 240) {
_y = (_y-1);
}
_root._y = -_y;
this.money = _root.cash;
}
Instance of Symbol 267 MovieClip in Frame 4
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 269 MovieClip "music" in Frame 4
onClipEvent (enterFrame) {
if (_root.stopSound == true) {
stop();
playin = false;
stopAllSounds();
} else if (playin == false) {
play();
playin = true;
}
}
onClipEvent (load) {
playin = true;
}
Frame 5
Mouse.show();
_root._y = 0;
Instance of Symbol 290 MovieClip "uWeapon" in Frame 5
onClipEvent (enterFrame) {
weaponGain = _root.weaponGain;
if (_root.gunlevel == 5) {
gotoAndStop (2);
}
}
Instance of Symbol 248 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.health = Math.round(_root.health);
gotoAndStop((-Math.round((_root.health / _root.fullhealth) * 100)) + 101);
}
Instance of Symbol 295 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.stopSound == true) {
stop();
playin = false;
stopAllSounds();
} else if (playin == false) {
play();
playin = true;
}
}
onClipEvent (load) {
playin = true;
}
Frame 6
_root._y = 0;
Mouse.show();
Frame 7
_root._y = 0;
Mouse.show();
Symbol 4 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 4 MovieClip Frame 2
gotoAndPlay (1);
Symbol 4 MovieClip Frame 3
_root.gotoAndStop(2);
Symbol 18 MovieClip Frame 126
_root.nextFrame();
Symbol 31 Button
on (release) {
_root.instructions.play();
}
Symbol 34 Button
on (release) {
_root.stopSound = false;
_root.cash = 0;
_root.gunlevel = 1;
_root.waveNum = 1;
_root.fullhealth = 100;
_root.repairGain = 150;
_root.weaponGain = 1000;
_root.healthGain = 250;
health = fullhealth;
nextFrame();
}
Symbol 36 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 43 Button
on (release) {
play();
}
Symbol 44 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 15
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
if (_root.stopSound == true) {
stopAllSounds();
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
if (_root.stopSound == true) {
stopAllSounds();
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
if (_root.stopSound == true) {
stopAllSounds();
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
if (_root.stopSound == true) {
stopAllSounds();
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
if (_root.stopSound == true) {
stopAllSounds();
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip "ad" in Symbol 84 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.gunlevel);
}
Instance of Symbol 59 MovieClip "wheel" in Symbol 85 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
spd++;
}
if (Key.isDown(83)) {
spd--;
}
if ((!Key.isDown(87)) && (!Key.isDown(83))) {
spd = spd / 1.5;
}
_parent._rotation = _parent._rotation + (_rotation / 2);
if (Key.isDown(65)) {
_parent.s++;
rot = -30;
}
if (Key.isDown(68)) {
rot = 30;
}
if (spd > 5) {
spd = 5;
}
if (spd < -2) {
spd = -2;
}
if ((!Key.isDown(68)) && (!Key.isDown(65))) {
rot = 0;
}
if (_rotation > 180) {
_parent._y = _parent._y + (spd * Math.cos((Math.PI/180) * _parent._rotation));
_parent._x = _parent._x - (spd * Math.sin((Math.PI/180) * _parent._rotation));
} else {
_parent._y = _parent._y - (spd * Math.cos((Math.PI/180) * _parent._rotation));
_parent._x = _parent._x + (spd * Math.sin((Math.PI/180) * _parent._rotation));
}
_rotation = (_rotation - ((_rotation - rot) / 6));
}
onClipEvent (load) {
rot = 0;
spd = 0;
}
Instance of Symbol 84 MovieClip "arm" in Symbol 85 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.o > 9) {
_root.o = 0;
}
if (_root.f > 4) {
_root.f = 0;
}
if (_root.e > 40) {
_root.e = 0;
}
Xd = _parent._x - _root._xmouse;
Yd = _parent._y - _root._ymouse;
radAngle = Math.atan2(Yd, Xd);
_rotation = ((int(((radAngle * 360) / (Math.PI*2)) + 90) - _parent._rotation) + 180);
if (machgunon == true) {
this.ad.typeOfGun.gotoAndPlay(2);
_root.buggy.gunstrength = 20;
k++;
if (k == 3) {
_root.o++;
_root.f++;
_root.e++;
gotoAndPlay (2);
_rotation = (_rotation + (random(5) - 2.5));
duplicateMovieClip (_root.orig, _root.o, _root.e + 233);
duplicateMovieClip (_root.lina, _root.o, _root.o + 10);
duplicateMovieClip (_root.orig2, "oucher", _root.o);
duplicateMovieClip (_root.orig3, _root.o, _root.o + 300);
duplicateMovieClip (_root.try3, "oucher2", _root.f + 9000);
_root.linelol.play();
duplicateMovieClip (_root.try4, "oucher3", 6);
k = 0;
}
}
if (mod2 == false) {
k = 0;
machgunon = false;
}
if (mod2 == true) {
machgunon = true;
}
if (machgunon2 == true) {
k2++;
if (k2 == 4) {
this.ad.typeOfGun.gotoAndPlay(2);
_root.buggy.gunstrength = 100;
_root.o++;
_root.f++;
_root.e++;
gotoAndPlay (2);
_rotation = (_rotation + (random(10) - 5));
duplicateMovieClip (_root.orig, _root.o, _root.e + 233);
duplicateMovieClip (_root.lina, _root.o, _root.o + 10);
duplicateMovieClip (_root.orig2, "oucher", _root.o);
duplicateMovieClip (_root.orig3, _root.o, _root.o + 300);
duplicateMovieClip (_root.try3, "oucher2", _root.f + 9000);
duplicateMovieClip (_root.try4, "oucher3", 6);
_root.linelol.play();
k2 = 0;
}
}
if (machgunon3 == true) {
k3++;
trace(k3);
if (k3 >= 7) {
this.ad.typeOfGun.gotoAndPlay(2);
_root.buggy.gunstrength = 10;
_root.o++;
_root.f++;
_root.e++;
gotoAndPlay (2);
duplicateMovieClip (_root.orig, _root.o, _root.e + 233);
duplicateMovieClip (_root.lina, _root.o, _root.o + 10);
duplicateMovieClip (_root.orig2, "oucher", _root.o);
duplicateMovieClip (_root.orig3, _root.o, _root.o + 300);
duplicateMovieClip (_root.try3, "oucher2", _root.f + 9000);
duplicateMovieClip (_root.try4, "oucher3", 6);
_root.linelol.play();
k3 = 0;
}
}
if (machgunon4 == true) {
k4++;
if (k4 >= 5) {
this.ad.typeOfGun.gotoAndPlay(2);
_root.buggy.gunstrength = 300;
_root.o++;
_root.f++;
_root.e++;
gotoAndPlay (2);
duplicateMovieClip (_root.orig, _root.o, _root.e + 233);
duplicateMovieClip (_root.lina, _root.o, _root.o + 10);
duplicateMovieClip (_root.orig2, "oucher", _root.o);
duplicateMovieClip (_root.orig3, _root.o, _root.o + 300);
duplicateMovieClip (_root.try3, "oucher2", _root.f + 9000);
duplicateMovieClip (_root.try4, "oucher3", 6);
_root.linelol.play();
k4 = 0;
}
}
if (machgunon5 == true) {
k5++;
if (k5 >= 7) {
this.ad.typeOfGun.gotoAndPlay(2);
_root.buggy.gunstrength = 150;
_root.o++;
_root.f++;
_root.e++;
gotoAndPlay (2);
duplicateMovieClip (_root.orig, _root.o, _root.e + 233);
duplicateMovieClip (_root.lina, _root.o, _root.o + 10);
duplicateMovieClip (_root.orig2, "oucher", _root.o);
duplicateMovieClip (_root.orig3, _root.o, _root.o + 300);
duplicateMovieClip (_root.try3, "oucher2", _root.f + 9000);
duplicateMovieClip (_root.try4, "oucher3", 6);
_root.linelol.play();
k5 = 0;
}
}
if (mod == false) {
k2 = 0;
machgunon2 = false;
}
if (mod == true) {
k = 0;
machgunon2 = true;
}
if (mod3 == false) {
k3 = 0;
machgunon3 = false;
}
if (mod3 == true) {
machgunon3 = true;
}
if (mod4 == false) {
k4 = 0;
machgunon4 = false;
}
if (mod4 == true) {
machgunon4 = true;
}
if (mod5 == false) {
k5 = 0;
machgunon5 = false;
}
if (mod5 == true) {
machgunon5 = true;
}
}
onClipEvent (mouseDown) {
if (_root.gunlevel == 1) {
mod3 = true;
k3 = 60;
} else if (_root.gunlevel == 2) {
mod2 = true;
k = 0;
} else if (_root.gunlevel == 3) {
mod5 = true;
k5 = 60;
} else if (_root.gunlevel == 4) {
mod = true;
k2 = 0;
} else if (_root.gunlevel == 5) {
mod4 = true;
k4 = 60;
}
}
onClipEvent (mouseUp) {
mod = false;
mod2 = false;
mod3 = false;
mod4 = false;
mod5 = false;
}
onClipEvent (load) {
k = 0;
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip Frame 2
onClipEvent (load) {
Rframe = random(5) + 1;
gotoAndStop(Rframe);
}
Symbol 94 MovieClip Frame 4
stop();
removeMovieClip(this);
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 4
_root.health--;
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting == true) {
play();
}
}
Symbol 108 MovieClip Frame 2
_root.cash = _root.cash + 50;
Symbol 108 MovieClip Frame 30
this.swapDepths(10);
removeMovieClip(this);
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
_root.health = _root.health - 5;
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting == true) {
play();
}
}
Symbol 136 MovieClip Frame 2
_root.cash = _root.cash + 150;
Symbol 136 MovieClip Frame 24
this.swapDepths(10);
removeMovieClip(this);
Instance of Symbol 113 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting == true) {
play();
}
}
Instance of Symbol 113 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting == true) {
play();
}
}
Symbol 146 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting == true) {
play();
}
}
Instance of Symbol 113 MovieClip in Symbol 146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting == true) {
play();
}
}
Symbol 146 MovieClip Frame 2
_root.cash = _root.cash + 200;
Symbol 146 MovieClip Frame 24
this.swapDepths(10);
removeMovieClip(this);
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 4
_root.health = _root.health - 2;
Symbol 155 MovieClip Frame 1
stop();
Instance of Symbol 148 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.shooting == true) {
play();
}
}
Symbol 155 MovieClip Frame 2
_root.cash = _root.cash + 100;
Symbol 155 MovieClip Frame 30
this.swapDepths(10);
removeMovieClip(this);
Instance of Symbol 108 MovieClip "infDUP" in Symbol 156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "infDUP") {
dis = Math.sqrt(Math.pow(_x - _root.buggy._x, 2) + Math.pow(_y - _root.buggy._y, 2));
if (this.hitTest(_root.cam)) {
_visible = true;
} else {
_visible = true;
}
if (dead == false) {
Xd = _root.buggy._x - _x;
Yd = _root.buggy._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (dis > 100) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
shooting = false;
} else {
shooting = true;
}
}
if (this.hitTest(_root.oucher3._x, _root.oucher3._y, true)) {
health = health - _root.buggy.gunstrength;
}
if (health < 1) {
dead = true;
play();
}
if (this.hitTest(_root.buggy._x, _root.buggy._y, true) && (_root.buggy.wheel.spd > 1)) {
dead = true;
play();
}
}
}
onClipEvent (load) {
spd = 2;
health = 50;
dead = false;
}
Instance of Symbol 136 MovieClip "tankDUP" in Symbol 156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "tankDUP") {
dis = Math.sqrt(Math.pow(_x - _root.buggy._x, 2) + Math.pow(_y - _root.buggy._y, 2));
if (this.hitTest(_root.cam)) {
_visible = true;
} else {
_visible = true;
}
if (dead == false) {
Xd = _root.buggy._x - _x;
Yd = _root.buggy._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (dis > 150) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
shooting = false;
} else {
shooting = true;
}
}
if (this.hitTest(_root.oucher3._x, _root.oucher3._y, true)) {
health = health - _root.buggy.gunstrength;
}
if (health < 1) {
dead = true;
play();
}
}
}
onClipEvent (load) {
spd = 1;
health = 400;
dead = false;
}
Instance of Symbol 146 MovieClip "tank2DUP" in Symbol 156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "tank2DUP") {
dis = Math.sqrt(Math.pow(_x - _root.buggy._x, 2) + Math.pow(_y - _root.buggy._y, 2));
if (this.hitTest(_root.cam)) {
_visible = true;
} else {
_visible = true;
}
if (dead == false) {
Xd = _root.buggy._x - _x;
Yd = _root.buggy._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (dis > 150) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
shooting = false;
} else {
shooting = true;
}
}
if (this.hitTest(_root.oucher3._x, _root.oucher3._y, true)) {
health = health - _root.buggy.gunstrength;
}
if (health < 1) {
dead = true;
play();
}
}
}
onClipEvent (load) {
spd = 1;
health = 2600;
dead = false;
}
Instance of Symbol 155 MovieClip "inf2DUP" in Symbol 156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "inf2DUP") {
dis = Math.sqrt(Math.pow(_x - _root.buggy._x, 2) + Math.pow(_y - _root.buggy._y, 2));
if (this.hitTest(_root.cam)) {
_visible = true;
} else {
_visible = true;
}
if (dead == false) {
Xd = _root.buggy._x - _x;
Yd = _root.buggy._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (dis > 100) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
shooting = false;
} else {
shooting = true;
}
}
if (this.hitTest(_root.oucher3._x, _root.oucher3._y, true)) {
health = health - _root.buggy.gunstrength;
}
if (health < 1) {
dead = true;
play();
}
if (this.hitTest(_root.buggy._x, _root.buggy._y, true) && (_root.buggy.wheel.spd > 1)) {
dead = true;
play();
}
}
}
onClipEvent (load) {
spd = 3;
health = 600;
dead = false;
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Instance of Symbol 160 MovieClip in Symbol 161 MovieClip Frame 1
onClipEvent (load) {
if (_root.gunlevel == 4) {
gotoAndStop (2);
}
if (_root.gunlevel == 2) {
gotoAndStop (3);
}
}
Symbol 161 MovieClip Frame 46
stop();
Instance of Symbol 161 MovieClip in Symbol 162 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + xs);
_y = (_y + ys);
if (_root.gunlevel != 4) {
_rotation = (_rotation + (xs * 50));
} else {
_rotation = (_rotation + (xs * 2));
}
}
onClipEvent (load) {
xs = random(5) - 3;
ys = random(4);
}
Instance of Symbol 162 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
_rotation = (-_parent._rotation);
}
Instance of Symbol 165 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
_xscale = random(170);
_yscale = (random(20) + 90);
}
Symbol 167 MovieClip Frame 6
stop();
Symbol 169 MovieClip Frame 40
stop();
Instance of Symbol 169 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + xs);
_y = (_y + ys);
}
onClipEvent (load) {
xs = random(6) - 3;
ys = random(4) - 2;
if (xs >= 0) {
_xscale = -100;
} else {
_xscale = 100;
}
}
Instance of Symbol 169 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + (xs / 3));
_y = (_y + (ys / 3));
}
onClipEvent (load) {
xs = random(2) - 1;
ys = random(2) - 1;
if (xs >= 0) {
_xscale = -100;
} else {
_xscale = 100;
}
}
Symbol 170 MovieClip Frame 52
stop();
removeMovieClip(_parent._parent);
Symbol 171 MovieClip Frame 1
stop();
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 174 MovieClip Frame 1
stop();
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _parent._parent._rotation;
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
_root.health = _root.health - _parent._parent.damage;
Instance of Symbol 196 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.shooting == true) {
play();
}
}
Symbol 212 MovieClip Frame 1
stop();
Instance of Symbol 191 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 212 MovieClip Frame 2
_root.cash = _root.cash + 200;
Symbol 212 MovieClip Frame 40
this.swapDepths(10);
removeMovieClip(this);
Instance of Symbol 196 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.shooting == true) {
play();
}
}
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 191 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 230 MovieClip Frame 2
_root.cash = _root.cash + 250;
Symbol 230 MovieClip Frame 40
this.swapDepths(10);
removeMovieClip(this);
Instance of Symbol 212 MovieClip "heliDUP" in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "heliDUP") {
dis = Math.sqrt(Math.pow(_x - _root.buggy._x, 2) + Math.pow(_y - _root.buggy._y, 2));
if (this.hitTest(_root.cam)) {
_visible = true;
} else {
_visible = true;
}
if (dead == false) {
Xd = _root.buggy._x - _x;
Yd = _root.buggy._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (dis > 200) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
shooting = false;
} else {
shooting = true;
}
}
if (this.hitTest(_root.oucher3._x, _root.oucher3._y, true)) {
health = health - _root.buggy.gunstrength;
}
if (health < 1) {
dead = true;
play();
}
}
}
onClipEvent (load) {
spd = 2;
health = 250;
dead = false;
damage = 1;
}
Instance of Symbol 230 MovieClip "heli2DUP" in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "heli2DUP") {
dis = Math.sqrt(Math.pow(_x - _root.buggy._x, 2) + Math.pow(_y - _root.buggy._y, 2));
if (this.hitTest(_root.cam)) {
_visible = true;
} else {
_visible = true;
}
if (dead == false) {
Xd = _root.buggy._x - _x;
Yd = _root.buggy._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (dis > 200) {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
shooting = false;
} else {
shooting = true;
}
}
if (this.hitTest(_root.oucher3._x, _root.oucher3._y, true)) {
health = health - _root.buggy.gunstrength;
}
if (health < 1) {
dead = true;
play();
}
}
}
onClipEvent (load) {
spd = 2;
health = 2000;
dead = false;
damage = 2;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 1
onClipEvent (enterFrame) {
time++;
if (time > 50) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.infDUP, "inf" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["inf" + _root.i]._x = -256;
_root.globe["inf" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["inf" + _root.i]._x = -315;
_root.globe["inf" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["inf" + _root.i]._x = 297;
_root.globe["inf" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["inf" + _root.i]._x = 781;
_root.globe["inf" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["inf" + _root.i]._x = 761;
_root.globe["inf" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["inf" + _root.i]._x = 757;
_root.globe["inf" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["inf" + _root.i]._x = 418;
_root.globe["inf" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["inf" + _root.i]._x = -210;
_root.globe["inf" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["inf" + _root.i]._x = -368;
_root.globe["inf" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 0;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 2
onClipEvent (enterFrame) {
time++;
if (time > 500) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.tankDUP, "tank" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["tank" + _root.i]._x = -256;
_root.globe["tank" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["tank" + _root.i]._x = -315;
_root.globe["tank" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["tank" + _root.i]._x = 297;
_root.globe["tank" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["tank" + _root.i]._x = 781;
_root.globe["tank" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["tank" + _root.i]._x = 761;
_root.globe["tank" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["tank" + _root.i]._x = 757;
_root.globe["tank" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["tank" + _root.i]._x = 418;
_root.globe["tank" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["tank" + _root.i]._x = -210;
_root.globe["tank" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["tank" + _root.i]._x = -368;
_root.globe["tank" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 498;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 4
onClipEvent (enterFrame) {
time++;
if (time > 100) {
time = 0;
_root.i++;
duplicateMovieClip (_root.enemy.heliDUP, "heli" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.enemy["heli" + _root.i]._x = -256;
_root.enemy["heli" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.enemy["heli" + _root.i]._x = -315;
_root.enemy["heli" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.enemy["heli" + _root.i]._x = 297;
_root.enemy["heli" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.enemy["heli" + _root.i]._x = 781;
_root.enemy["heli" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.enemy["heli" + _root.i]._x = 761;
_root.enemy["heli" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.enemy["heli" + _root.i]._x = 757;
_root.enemy["heli" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.enemy["heli" + _root.i]._x = 418;
_root.enemy["heli" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.enemy["heli" + _root.i]._x = -210;
_root.enemy["heli" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.enemy["heli" + _root.i]._x = -368;
_root.enemy["heli" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 0;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 4
onClipEvent (enterFrame) {
time++;
if (time > 50) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.infDUP, "inf" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["inf" + _root.i]._x = -256;
_root.globe["inf" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["inf" + _root.i]._x = -315;
_root.globe["inf" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["inf" + _root.i]._x = 297;
_root.globe["inf" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["inf" + _root.i]._x = 781;
_root.globe["inf" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["inf" + _root.i]._x = 761;
_root.globe["inf" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["inf" + _root.i]._x = 757;
_root.globe["inf" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["inf" + _root.i]._x = 418;
_root.globe["inf" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["inf" + _root.i]._x = -210;
_root.globe["inf" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["inf" + _root.i]._x = -368;
_root.globe["inf" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 0;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 4
onClipEvent (enterFrame) {
time++;
if (time > 500) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.tankDUP, "tank" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["tank" + _root.i]._x = -256;
_root.globe["tank" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["tank" + _root.i]._x = -315;
_root.globe["tank" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["tank" + _root.i]._x = 297;
_root.globe["tank" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["tank" + _root.i]._x = 781;
_root.globe["tank" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["tank" + _root.i]._x = 761;
_root.globe["tank" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["tank" + _root.i]._x = 757;
_root.globe["tank" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["tank" + _root.i]._x = 418;
_root.globe["tank" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["tank" + _root.i]._x = -210;
_root.globe["tank" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["tank" + _root.i]._x = -368;
_root.globe["tank" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 498;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 7
onClipEvent (enterFrame) {
time++;
if (time > 300) {
time = 0;
_root.i++;
duplicateMovieClip (_root.enemy.heli2DUP, "heli2" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.enemy["heli2" + _root.i]._x = -256;
_root.enemy["heli2" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.enemy["heli2" + _root.i]._x = -315;
_root.enemy["heli2" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.enemy["heli2" + _root.i]._x = 297;
_root.enemy["heli2" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.enemy["heli2" + _root.i]._x = 781;
_root.enemy["heli2" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.enemy["heli2" + _root.i]._x = 761;
_root.enemy["heli2" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.enemy["heli2" + _root.i]._x = 757;
_root.enemy["heli2" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.enemy["heli2" + _root.i]._x = 418;
_root.enemy["heli2" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.enemy["heli2" + _root.i]._x = -210;
_root.enemy["heli2" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.enemy["heli2" + _root.i]._x = -368;
_root.enemy["heli2" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 0;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 7
onClipEvent (enterFrame) {
time++;
if (time > 300) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.tank2DUP, "tank2" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["tank2" + _root.i]._x = -256;
_root.globe["tank2" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["tank2" + _root.i]._x = -315;
_root.globe["tank2" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["tank2" + _root.i]._x = 297;
_root.globe["tank2" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["tank2" + _root.i]._x = 781;
_root.globe["tank2" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["tank2" + _root.i]._x = 761;
_root.globe["tank2" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["tank2" + _root.i]._x = 757;
_root.globe["tank2" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["tank2" + _root.i]._x = 418;
_root.globe["tank2" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["tank2" + _root.i]._x = -210;
_root.globe["tank2" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["tank2" + _root.i]._x = -368;
_root.globe["tank2" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 298;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 8
onClipEvent (enterFrame) {
time++;
if (time > 500) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.tankDUP, "tank" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["tank" + _root.i]._x = -256;
_root.globe["tank" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["tank" + _root.i]._x = -315;
_root.globe["tank" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["tank" + _root.i]._x = 297;
_root.globe["tank" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["tank" + _root.i]._x = 781;
_root.globe["tank" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["tank" + _root.i]._x = 761;
_root.globe["tank" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["tank" + _root.i]._x = 757;
_root.globe["tank" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["tank" + _root.i]._x = 418;
_root.globe["tank" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["tank" + _root.i]._x = -210;
_root.globe["tank" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["tank" + _root.i]._x = -368;
_root.globe["tank" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 498;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 8
onClipEvent (enterFrame) {
time++;
if (time > 50) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.inf2DUP, "inf2" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["inf2" + _root.i]._x = -256;
_root.globe["inf2" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["inf2" + _root.i]._x = -315;
_root.globe["inf2" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["inf2" + _root.i]._x = 297;
_root.globe["inf2" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["inf2" + _root.i]._x = 781;
_root.globe["inf2" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["inf2" + _root.i]._x = 761;
_root.globe["inf2" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["inf2" + _root.i]._x = 757;
_root.globe["inf2" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["inf2" + _root.i]._x = 418;
_root.globe["inf2" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["inf2" + _root.i]._x = -210;
_root.globe["inf2" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["inf2" + _root.i]._x = -368;
_root.globe["inf2" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 48;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 10
onClipEvent (enterFrame) {
time++;
if (time > 50) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.infDUP, "inf" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["inf" + _root.i]._x = -256;
_root.globe["inf" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["inf" + _root.i]._x = -315;
_root.globe["inf" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["inf" + _root.i]._x = 297;
_root.globe["inf" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["inf" + _root.i]._x = 781;
_root.globe["inf" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["inf" + _root.i]._x = 761;
_root.globe["inf" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["inf" + _root.i]._x = 757;
_root.globe["inf" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["inf" + _root.i]._x = 418;
_root.globe["inf" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["inf" + _root.i]._x = -210;
_root.globe["inf" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["inf" + _root.i]._x = -368;
_root.globe["inf" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 0;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 10
onClipEvent (enterFrame) {
time++;
if (time > 300) {
time = 0;
_root.i++;
duplicateMovieClip (_root.enemy.heli2DUP, "heli2" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.enemy["heli2" + _root.i]._x = -256;
_root.enemy["heli2" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.enemy["heli2" + _root.i]._x = -315;
_root.enemy["heli2" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.enemy["heli2" + _root.i]._x = 297;
_root.enemy["heli2" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.enemy["heli2" + _root.i]._x = 781;
_root.enemy["heli2" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.enemy["heli2" + _root.i]._x = 761;
_root.enemy["heli2" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.enemy["heli2" + _root.i]._x = 757;
_root.enemy["heli2" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.enemy["heli2" + _root.i]._x = 418;
_root.enemy["heli2" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.enemy["heli2" + _root.i]._x = -210;
_root.enemy["heli2" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.enemy["heli2" + _root.i]._x = -368;
_root.enemy["heli2" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 0;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 10
onClipEvent (enterFrame) {
time++;
if (time > 500) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.tankDUP, "tank" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["tank" + _root.i]._x = -256;
_root.globe["tank" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["tank" + _root.i]._x = -315;
_root.globe["tank" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["tank" + _root.i]._x = 297;
_root.globe["tank" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["tank" + _root.i]._x = 781;
_root.globe["tank" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["tank" + _root.i]._x = 761;
_root.globe["tank" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["tank" + _root.i]._x = 757;
_root.globe["tank" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["tank" + _root.i]._x = 418;
_root.globe["tank" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["tank" + _root.i]._x = -210;
_root.globe["tank" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["tank" + _root.i]._x = -368;
_root.globe["tank" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 498;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 10
onClipEvent (enterFrame) {
time++;
if (time > 300) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.tank2DUP, "tank2" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["tank2" + _root.i]._x = -256;
_root.globe["tank2" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["tank2" + _root.i]._x = -315;
_root.globe["tank2" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["tank2" + _root.i]._x = 297;
_root.globe["tank2" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["tank2" + _root.i]._x = 781;
_root.globe["tank2" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["tank2" + _root.i]._x = 761;
_root.globe["tank2" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["tank2" + _root.i]._x = 757;
_root.globe["tank2" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["tank2" + _root.i]._x = 418;
_root.globe["tank2" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["tank2" + _root.i]._x = -210;
_root.globe["tank2" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["tank2" + _root.i]._x = -368;
_root.globe["tank2" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 298;
}
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 11
onClipEvent (enterFrame) {
time++;
if (time > 50) {
time = 0;
_root.i++;
duplicateMovieClip (_root.globe.inf2DUP, "inf2" + _root.i, _root.i);
Rplace = random(8) + 1;
if (Rplace == 1) {
_root.globe["inf2" + _root.i]._x = -256;
_root.globe["inf2" + _root.i]._y = 230;
}
if (Rplace == 2) {
_root.globe["inf2" + _root.i]._x = -315;
_root.globe["inf2" + _root.i]._y = 780;
}
if (Rplace == 3) {
_root.globe["inf2" + _root.i]._x = 297;
_root.globe["inf2" + _root.i]._y = 894;
}
if (Rplace == 4) {
_root.globe["inf2" + _root.i]._x = 781;
_root.globe["inf2" + _root.i]._y = 596;
}
if (Rplace == 5) {
_root.globe["inf2" + _root.i]._x = 761;
_root.globe["inf2" + _root.i]._y = 98;
}
if (Rplace == 6) {
_root.globe["inf2" + _root.i]._x = 757;
_root.globe["inf2" + _root.i]._y = -390;
}
if (Rplace == 7) {
_root.globe["inf2" + _root.i]._x = 418;
_root.globe["inf2" + _root.i]._y = -691;
}
if (Rplace == 8) {
_root.globe["inf2" + _root.i]._x = -210;
_root.globe["inf2" + _root.i]._y = -610;
}
if (Rplace == 9) {
_root.globe["inf2" + _root.i]._x = -368;
_root.globe["inf2" + _root.i]._y = -283;
}
}
}
onClipEvent (load) {
time = 48;
}
Symbol 242 MovieClip Frame 12
_root.gotoAndStop(7);
Symbol 252 MovieClip Frame 1604
if (_root.waveNum == 11) {
_root.gotoAndStop(7);
} else {
_root.nextFrame();
}
Symbol 257 Button
on (release) {
if (_root.stopSound == false) {
_root.stopSound = true;
} else {
_root.stopSound = false;
}
}
Instance of Symbol 263 MovieClip "cover" in Symbol 264 MovieClip Frame 1
onClipEvent (enterFrame) {
waveNum = _root.waveNum;
}
Symbol 264 MovieClip Frame 31
stop();
Instance of Symbol 248 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.health = Math.round(_root.health);
gotoAndStop((-Math.round((_root.health / _root.fullhealth) * 100)) + 101);
if (_root.health < 1) {
_root.gotoAndStop(6);
}
}
Instance of Symbol 259 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.stopSound == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 272 MovieClip Frame 4
stop();
Symbol 273 MovieClip Frame 4
stop();
Symbol 274 Button
on (release) {
if (_root.cash > (_root.healthGain - 1)) {
_root.cash = _root.cash - _root.healthGain;
_root.health = _root.health + 50;
_root.fullhealth = _root.fullhealth + 50;
_root.healthGain = _root.healthGain + 200;
}
}
Symbol 275 Button
on (release) {
if ((_root.health < _root.fullhealth) && (_root.cash > (_root.repairGain - 1))) {
_root.cash = _root.cash - _root.repairGain;
_root.health = _root.health + (_root.fullhealth / 4);
_root.repairGain = _root.repairGain + 100;
if (_root.health > _root.fullhealth) {
_root.health = _root.fullhealth;
}
}
}
Symbol 279 Button
on (release) {
_root.waveNum++;
prevFrame();
}
Symbol 285 Button
on (release) {
if (_root.cash > (_root.weaponGain - 1)) {
_root.cash = _root.cash - _root.weaponGain;
_root.gunlevel++;
_root.weaponGain = _root.weaponGain + 1000;
}
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 309 Button
on (release) {
_root.cash = 0;
_root.gunlevel = 1;
_root.waveNum = 1;
_root.fullhealth = 100;
_root.repairGain = 150;
_root.weaponGain = 1000;
_root.healthGain = 500;
health = fullhealth;
gotoAndStop (3);
}