Frame 1
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__("270f30cb", this, 10301, true);
stop();
Instance of Symbol 14 MovieClip "loadingbar" in Frame 1
onClipEvent (enterFrame) {
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
if ((_root.percentLoaded == 100) and (_root.button._currentframe == 1)) {
_root.button.gotoAndPlay(2);
}
this.bar._xscale = _root.percentLoaded;
}
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((700 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((700 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
}
Instance of Symbol 24 MovieClip in Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((700 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((700 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
}
Instance of Symbol 26 MovieClip in Frame 1
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((700 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((700 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
}
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (load) {
ypos = this._y;
xpos = this._x;
this.swapDepths(9999999999);
}
onClipEvent (enterFrame) {
this._y = (_root._y * -1) + ypos;
}
Instance of Symbol 21 MovieClip in Frame 2
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((700 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((700 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
this._alpha = this._alpha - 4;
}
Instance of Symbol 24 MovieClip in Frame 2
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((700 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((700 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
this._alpha = this._alpha - 4;
}
Instance of Symbol 26 MovieClip in Frame 2
onClipEvent (load) {
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((700 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((700 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
this._alpha = this._alpha - 4;
}
Frame 34
_global.begin = function () {
_global.dupnum = 1000;
_global.alpha = 0;
_global.uammo = 0;
_global.xoffset;
_global.yoffset;
_global.sound = 1;
_global.asteroidnum = 6;
_global.ammospend = 1.4;
_global.ammo2spend = 25;
_global.ammoregain = 0.4;
_global.gravity = 0.0015;
_global.shotsfired = 0;
_global.tut1 = 0;
_global.tut2 = 0;
_global.tut3 = 0;
_global.pausing = 0;
_global.clock = 0;
_global.huge = 0;
_global.hugewait = 0;
_global.hugecoming = 0;
_global.shield = 0;
_global.upower = 0;
_global.dead = 0;
_global.ytarget = 0;
_global.miniturretnum = 0;
_global.minidupnum = 0;
_root.death._y = 1000;
if (_global.sound == 1) {
_root.music.gotoAndPlay(1);
}
_global.wind = 0;
_global.windlow = 0;
_global.windhigh = 0;
_global.windspeed = 0;
};
_global.sound = 1;
_global.ammo = 0;
_global.go = 0;
_global.reset = 0;
_global.begin();
stop();
Instance of Symbol 54 MovieClip "shot" in Frame 34
onClipEvent (load) {
if (this._name == "shot") {
} else {
speed = 8;
power = 0.12;
if (Math.abs(this._x - _root.turret._x) < 20) {
x = _root.ball1._x - _root.turret._x;
y = _root.ball1._y - _root.turret._y;
this._y = _root.turret._y - 5;
} else if (_global.miniturretnum > 0) {
i = 0;
while (i < (_global.minidupnum + 1)) {
if (Math.abs(this._x - _root["miniturret" + i]._x) < 20) {
x = (_root["miniturret" + i].xtarget - _root["miniturret" + i]._x) + random(20);
y = _root["miniturret" + i].ytarget - _root["miniturret" + i]._y;
this._y = _root["miniturret" + i]._y - 5;
}
i++;
}
}
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
xspeed = Math.sin((angle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((angle * Math.PI) / 180)) * speed;
lastangle = angle;
}
}
onClipEvent (enterFrame) {
if (_global.reset == 1) {
removeMovieClip(this);
}
if (((this._name != "shot") and (_global.pausing == 0)) and (_global.dead == 0)) {
if ((((this._x < -50) or (this._y < -10)) or (this._x > 620)) or (this._y > 390)) {
if (this._y > 390) {
duplicateMovieClip (_root.hole, "hole" + _global.dupnum, _global.dupnum);
_root["hole" + _global.dupnum]._x = this._x;
_root["hole" + _global.dupnum]._y = this._y + random(5);
_global.dupnum++;
}
removeMovieClip(this);
}
xspeed = xspeed + _global.wind;
if ((lastx == this._x) and (lasty == this._y)) {
removeMovieClip(this);
}
lastx = this._x;
lasty = this._y;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
i = 0;
while (i < (_global.asteroidnum + 1)) {
anum = "asteroid" + i;
if (_root[anum].a.dead == 0) {
if (Math.sqrt(Math.pow(this._x - _root[anum]._x, 2) + Math.pow(this._y - _root[anum]._y, 2)) < (_root[anum]._width / 2)) {
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
lastangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
x = this._x - _root[anum]._x;
y = this._y - _root[anum]._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
_root[anum].a.xspeed = _root[anum].a.xspeed - (Math.sin((angle * Math.PI) / 180) * (power * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
_root[anum].a.yspeed = _root[anum].a.yspeed + (Math.cos((angle * Math.PI) / 180) * (power * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
newangle = angle + (angle - (lastangle - 180));
this._x = (Math.sin((angle * Math.PI) / 180) * (_root[anum]._width / 1.9)) + _root[anum]._x;
this._y = ((-Math.cos((angle * Math.PI) / 180)) * (_root[anum]._width / 1.9)) + _root[anum]._y;
xspeed = Math.sin((newangle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((newangle * Math.PI) / 180)) * speed;
_root.sounds.gotoAndPlay("shot1bounce");
}
}
i++;
}
if ((_global.itemout == 1) and (_global.itemgettable == 1)) {
if (Math.sqrt(Math.pow(this._x - _root.item._x, 2) + Math.pow(this._y - _root.item._y, 2)) < 15) {
if (_root.item.item._currentframe == 1) {
_global.shield = 1;
}
if (_root.item.item._currentframe == 3) {
duplicateMovieClip (_root.miniturret, "miniturret" + _global.minidupnum, 500 + _global.minidupnum);
_global.minidupnum++;
_global.miniturretnum++;
}
if (_root.item.item._currentframe == 2) {
_global.upower = 400;
}
_global.itemout = 0;
_root.item.gotoAndPlay(2);
removeMovieClip(this);
}
}
anum = "fast";
if (_root[anum].a.dead == 0) {
if (Math.sqrt(Math.pow(this._x - _root[anum]._x, 2) + Math.pow(this._y - _root[anum]._y, 2)) < 24) {
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
lastangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
x = this._x - _root[anum]._x;
y = this._y - _root[anum]._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
_root[anum].a.xspeed = _root[anum].a.xspeed - (Math.sin((angle * Math.PI) / 180) * ((power * 0.8) * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
_root[anum].a.yspeed = _root[anum].a.yspeed + (Math.cos((angle * Math.PI) / 180) * ((power * 0.8) * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
newangle = angle + (angle - (lastangle - 180));
this._x = (Math.sin((angle * Math.PI) / 180) * 24) + _root[anum]._x;
this._y = ((-Math.cos((angle * Math.PI) / 180)) * 24) + _root[anum]._y;
xspeed = Math.sin((newangle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((newangle * Math.PI) / 180)) * speed;
_root.sounds.gotoAndPlay("shot1bounce");
}
}
if (_global.huge == 1) {
anum = "huge";
if (_root[anum].a.dead == 0) {
if (Math.sqrt(Math.pow(this._x - _root[anum]._x, 2) + Math.pow(this._y - _root[anum]._y, 2)) < (_root[anum]._width / 2)) {
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
lastangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
x = this._x - _root[anum]._x;
y = this._y - _root[anum]._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
_root[anum].a.xspeed = _root[anum].a.xspeed - (Math.sin((angle * Math.PI) / 180) * ((power * 0.07) * 3.5));
_root[anum].a.yspeed = _root[anum].a.yspeed + (Math.cos((angle * Math.PI) / 180) * ((power * 0.07) * 3.5));
newangle = angle + (angle - (lastangle - 180));
this._x = (Math.sin((angle * Math.PI) / 180) * (_root[anum]._width / 1.99)) + _root[anum]._x;
this._y = ((-Math.cos((angle * Math.PI) / 180)) * (_root[anum]._width / 1.99)) + _root[anum]._y;
xspeed = Math.sin((newangle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((newangle * Math.PI) / 180)) * speed;
_root.sounds.gotoAndPlay("shot1bounce");
}
}
}
}
}
Instance of Symbol 54 MovieClip "shot2" in Frame 34
onClipEvent (load) {
if (this._name == "shot2") {
} else {
speed = 10;
power = 0.8;
x = _root.ball1._x - _root.turret._x;
y = _root.ball1._y - _root.turret._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
xspeed = Math.sin((angle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((angle * Math.PI) / 180)) * speed;
this._x = _root.turret._x;
this._y = _root.turret._y - 5;
lastangle = angle;
if (_global.upower == 0) {
particle = 1;
} else {
particle = 0;
}
}
}
onClipEvent (enterFrame) {
if (_global.reset == 1) {
removeMovieClip(this);
}
if (((this._name != "shot2") and (_global.pausing == 0)) and (_global.dead == 0)) {
dupnum++;
if (dupnum > 3) {
if (particle == 1) {
duplicateMovieClip (_root.particle, "particle" + _global.dupnum, _global.dupnum);
_root["particle" + _global.dupnum]._x = this._x;
_root["particle" + _global.dupnum]._y = this._y;
_root["particle" + _global.dupnum]._alpha = 100;
_global.dupnum++;
}
}
if (this._name != "shot2") {
xspeed = xspeed + _global.wind;
lastx = this._x;
lasty = this._y;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if ((((this._x < -50) or (this._y < -10)) or (this._x > 620)) or (this._y > 390)) {
if (this._y > 390) {
duplicateMovieClip (_root.crater, "crater" + _global.dupnum, _global.dupnum);
_root["crater" + _global.dupnum]._x = this._x;
_root["crater" + _global.dupnum]._y = this._y;
_root.shaky.num = 2;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("shot2bounce");
}
_global.dupnum++;
}
removeMovieClip(this);
}
i = 0;
while (i < (_global.asteroidnum + 1)) {
anum = "asteroid" + i;
if (_root[anum].a.dead == 0) {
if (Math.sqrt(Math.pow(this._x - _root[anum]._x, 2) + Math.pow(this._y - _root[anum]._y, 2)) < ((_root[anum]._width / 2) + 8)) {
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
lastangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
x = this._x - _root[anum]._x;
y = this._y - _root[anum]._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
_root[anum].a.xspeed = _root[anum].a.xspeed - (Math.sin((angle * Math.PI) / 180) * (power * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
_root[anum].a.yspeed = _root[anum].a.yspeed + (Math.cos((angle * Math.PI) / 180) * (power * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
newangle = angle + (angle - (lastangle - 180));
this._x = (Math.sin((angle * Math.PI) / 180) * ((_root[anum]._width / 1.9) + 8)) + _root[anum]._x;
this._y = ((-Math.cos((angle * Math.PI) / 180)) * ((_root[anum]._width / 1.9) + 8)) + _root[anum]._y;
xspeed = Math.sin((newangle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((newangle * Math.PI) / 180)) * speed;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("shot2bounce");
}
_root.shaky.num = 4;
}
}
i++;
}
if ((_global.itemout == 1) and (_global.itemgettable == 1)) {
if (Math.sqrt(Math.pow(this._x - _root.item._x, 2) + Math.pow(this._y - _root.item._y, 2)) < 23) {
if (_root.item.item._currentframe == 1) {
_global.shield = 1;
}
if (_root.item.item._currentframe == 3) {
duplicateMovieClip (_root.miniturret, "miniturret" + _global.minidupnum, 500 + _global.minidupnum);
_global.minidupnum++;
_global.miniturretnum++;
}
if (_root.item.item._currentframe == 2) {
_global.upower = 400;
}
_global.itemout = 0;
_root.item.gotoAndPlay(2);
removeMovieClip(this);
}
}
anum = "fast";
if (_root[anum].a.dead == 0) {
if (Math.sqrt(Math.pow(this._x - _root[anum]._x, 2) + Math.pow(this._y - _root[anum]._y, 2)) < 30) {
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
lastangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
x = this._x - _root[anum]._x;
y = this._y - _root[anum]._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
_root[anum].a.xspeed = _root[anum].a.xspeed - (Math.sin((angle * Math.PI) / 180) * ((power * 0.8) * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
_root[anum].a.yspeed = _root[anum].a.yspeed + (Math.cos((angle * Math.PI) / 180) * ((power * 0.8) * ((((-_root[anum]._width) + 100) * 0.05) + 1)));
newangle = angle + (angle - (lastangle - 180));
this._x = (Math.sin((angle * Math.PI) / 180) * 30) + _root[anum]._x;
this._y = ((-Math.cos((angle * Math.PI) / 180)) * 30) + _root[anum]._y;
xspeed = Math.sin((newangle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((newangle * Math.PI) / 180)) * speed;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("shot2bounce");
}
_root.shaky.num = 4;
}
}
if (_global.huge == 1) {
anum = "huge";
if (_root[anum].a.dead == 0) {
if (Math.sqrt(Math.pow(this._x - _root[anum]._x, 2) + Math.pow(this._y - _root[anum]._y, 2)) < (_root[anum]._width / 2)) {
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
lastangle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
x = this._x - _root[anum]._x;
y = this._y - _root[anum]._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
_root[anum].a.xspeed = _root[anum].a.xspeed - (Math.sin((angle * Math.PI) / 180) * ((power * 0.07) * 3.5));
_root[anum].a.yspeed = _root[anum].a.yspeed + (Math.cos((angle * Math.PI) / 180) * ((power * 0.07) * 3.5));
newangle = angle + (angle - (lastangle - 180));
this._x = (Math.sin((angle * Math.PI) / 180) * ((_root[anum]._width / 1.99) + 8)) + _root[anum]._x;
this._y = ((-Math.cos((angle * Math.PI) / 180)) * ((_root[anum]._width / 1.99) + 8)) + _root[anum]._y;
xspeed = Math.sin((newangle * Math.PI) / 180) * speed;
yspeed = (-Math.cos((newangle * Math.PI) / 180)) * speed;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("shot2bounce");
}
_root.shaky.num = 4;
}
}
}
}
}
}
Instance of Symbol 56 MovieClip "hole" in Frame 34
onClipEvent (load) {
num = 0;
alpha = 100;
origx = this._x;
origy = this._y;
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (_global.reset == 1) {
removeMovieClip(this);
}
this._x = origx + _global.xoffset;
this._y = origy + _global.yoffset;
num++;
if (num > 200) {
alpha--;
this._alpha = alpha;
if (alpha < 1) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip in Frame 34
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 5));
if (this._x < -150) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 5);
this._x = 650;
}
if (this._x > 700) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 5);
this._x = -100;
}
}
}
Instance of Symbol 34 MovieClip in Frame 34
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 4));
if (this._x < -150) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 4);
this._x = 650;
}
if (this._x > 700) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 4);
this._x = -100;
}
}
}
Instance of Symbol 36 MovieClip in Frame 34
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 6));
if (this._x < -150) {
xspeed = (random(10) * _global.wind) + (_global.wind * 6);
this._y = random(170) + 150;
this._x = 650;
}
if (this._x > 700) {
xspeed = (random(10) * _global.wind) + (_global.wind * 6);
this._y = random(170) + 150;
this._x = -100;
}
}
}
Instance of Symbol 38 MovieClip in Frame 34
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 3));
if (this._x < -150) {
this._y = random(170) + 150;
this._x = 650;
xspeed = (random(10) * _global.wind) + (_global.wind * 3);
}
if (this._x > 700) {
this._y = random(170) + 150;
this._x = -100;
xspeed = (random(10) * _global.wind) + (_global.wind * 3);
}
}
}
Instance of Symbol 30 MovieClip in Frame 34
onClipEvent (load) {
this.swapDepths(0);
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
this._x = origx + _global.xoffset;
this._y = origy + _global.yoffset;
}
Instance of Symbol 44 MovieClip "turret" in Frame 34
onClipEvent (load) {
nummax = 2;
num = nummax;
num2max = 20;
num2 = num2max;
shooting = 0;
blinkmax = 0;
blinknum = 0;
this.swapDepths(1);
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (_global.dupnum > 5000) {
_global.dupnum = 3000;
}
if (blinkmax > 1) {
blinknum++;
if (blinknum > 0) {
if (this._alpha < 80) {
this._alpha = 100;
} else {
this._alpha = 0;
}
blinkmax--;
blinknum = 0;
}
} else {
this._alpha = 100;
}
if (_global.wind < _global.windlow) {
dir = 1;
}
if (_global.wind > _global.windhigh) {
dir = 0;
}
if (dir == 1) {
_global.wind = _global.wind + _global.windspeed;
} else {
_global.wind = _global.wind - _global.windspeed;
}
if (((shooting == 1) and (_global.ammo > _global.ammospend)) and (_global.dead == 0)) {
num++;
if (num > nummax) {
if (_global.upower == 0) {
duplicateMovieClip (_root.shot, "shot" + _global.dupnum, _global.dupnum);
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("shot1fire");
}
_root["shot" + _global.dupnum]._x = this._x;
} else {
duplicateMovieClip (_root.shot2, "shot2" + _global.dupnum, _global.dupnum);
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("shot2fire");
}
}
_global.dupnum++;
_global.shotsfired = _global.shotsfired + _global.ammospend;
if (_global.uammo == 0) {
_global.ammo = _global.ammo - _global.ammospend;
}
num = 0;
}
} else if (_global.dead == 0) {
_global.ammo = _global.ammo + _global.ammoregain;
}
num2++;
if ((Key.isDown(32) and (_global.ammo > _global.ammo2spend)) and (_global.dead == 0)) {
if (num2 > num2max) {
_global.tut2 = 1;
duplicateMovieClip (_root.shot2, "shot2" + _global.dupnum, _global.dupnum);
_global.dupnum++;
_global.shotsfired = _global.shotsfired + (_global.ammo2spend / 2);
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("shot2fire");
}
if (_global.uammo == 0) {
_global.ammo = _global.ammo - _global.ammo2spend;
}
_root.shaky.num = 2;
num2 = 2;
}
}
if (_global.ammo < 0) {
_global.ammo = 0;
}
if (_global.ammo > 100) {
_global.ammo = 100;
}
}
this._x = origx + _global.xoffset;
this._y = origy + _global.yoffset;
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
num = 10;
}
}
onClipEvent (mouseDown) {
shooting = 1;
_global.tut1 = 1;
}
onClipEvent (mouseUp) {
shooting = 0;
if (_global.pausing == 0) {
num = nummax - 1;
}
}
onClipEvent (keyDown) {
if ((Key.getCode() == 80) and (_global.dead == 0)) {
if (_global.pausing == 0) {
_root.ammo.glow.stop();
_root.turret.glow.stop();
_global.pausing = 1;
} else {
if (_global.uammo > 0) {
_root.ammo.glow.play();
}
if (_global.upower > 0) {
_root.turret.glow.play();
}
_global.pausing = 0;
_global.tut3 = 1;
}
}
}
Instance of Symbol 63 MovieClip "particle" in Frame 34
onClipEvent (load) {
xspeed = (Math.random() * 2) - 1;
yspeed = (Math.random() * 2) - 1;
}
onClipEvent (enterFrame) {
if (_global.reset == 1) {
removeMovieClip(this);
}
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
this._alpha = this._alpha - 5;
if (this._alpha < 1) {
this._alpha = 0;
removeMovieClip(this);
}
}
}
Instance of Symbol 79 MovieClip "tutorial" in Frame 34
onClipEvent (load) {
this.swapDepths(100);
}
Instance of Symbol 109 MovieClip "death" in Frame 34
onClipEvent (load) {
this.swapDepths(5212);
}
onClipEvent (enterFrame) {
this.clock = Math.round(_global.clock / 40) + " seconds";
}
Instance of Symbol 113 MovieClip "miniturret" in Frame 34
onClipEvent (load) {
if (this._name != "miniturret") {
blinkmax = -1;
blinknum = 0;
waiter = 0;
shotnum = 0;
waiternum = random(40) + 50;
firing = 0;
okay = 1;
okay2 = 1;
while ((okay == 1) or (okay2 == 1)) {
this._x = random(450) + 50;
okay = 0;
if (Math.abs(this._x - _root.turret._x) < 75) {
okay = 1;
}
okay2 = 0;
i = 0;
while (i < (_global.minidupnum - 1)) {
if (Math.abs(this._x - _root["miniturret" + i]._x) < 60) {
okay2 = 1;
}
i++;
}
}
origx = this._x;
origy = this._y;
}
}
onClipEvent (enterFrame) {
if (((_global.dead == 0) and (_global.pausing == 0)) and (this._name != "miniturret")) {
if (blinkmax > 1) {
blinknum++;
if (blinknum > 0) {
if (this._alpha < 80) {
this._alpha = 100;
} else {
this._alpha = 0;
}
blinkmax--;
blinknum = 0;
}
}
if (blinkmax == 1) {
removeMovieClip(this);
}
waiter++;
if (waiter > waiternum) {
firing = 5;
waiter = 0;
waiternum = random(40) + 50;
xtarget = random(450);
ytarget = random(150);
}
if ((firing > 0) and (blinkmax == -1)) {
shotnum++;
if (shotnum > 1) {
duplicateMovieClip (_root.shot, "shot" + _global.dupnum, _global.dupnum);
_root.sounds.gotoAndPlay("shot1fire");
_root["shot" + _global.dupnum]._x = this._x;
_global.dupnum++;
firing--;
shotnum = 0;
}
}
}
this._x = origx + _global.xoffset;
this._y = origy + _global.yoffset;
if (_global.reset == 1) {
removeMovieClip(this);
}
}
Instance of Symbol 120 MovieClip "ammo" in Frame 34
onClipEvent (load) {
blinkmax = 0;
blinknum = 0;
this.swapDepths(2);
this.bar._xscale = 0;
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
this.bar._xscale = _global.ammo;
if (blinkmax > 1) {
blinknum++;
if (blinknum > 0) {
if (this._alpha < 80) {
this._alpha = 100;
} else {
this._alpha = 0;
}
blinkmax--;
blinknum = 0;
}
} else {
this._alpha = 100;
}
}
this._x = origx + _global.xoffset;
this._y = origy + _global.yoffset;
}
Instance of Symbol 122 MovieClip "diff" in Frame 34
onClipEvent (load) {
num = 0;
itemnum = 0;
windnum = 0;
windgo = 0;
_global.average = 100;
}
onClipEvent (enterFrame) {
if ((((_root._y != 0) and (_root._y != -470)) and (_root.shaky.num == 0)) and (_global.dead == 1)) {
if ((_root._y > _global.ytarget) and (_global.goup == 0)) {
_root._y = _root._y - ((_root._y - _global.ytarget) * 0.3);
}
if (_global.goup == 1) {
_root._y = _root._y * 0.7;
}
}
if ((_root._y > -1) and (_root.shaky.num > 0)) {
_root._y = 0;
_global.goup = 0;
}
if ((_root._y < -469) and (_root.shaky.num > 0)) {
_root._y = -470;
}
if (((_global.go == 1) and (_global.pausing == 0)) and (_global.dead == 0)) {
_global.clock++;
if ((_global.clock / 4000) == Math.round(_global.clock / 4000)) {
_global.hugecoming = 1;
}
if (windgo == 1) {
windnum++;
if (windnum > 1200) {
windtarget = (random(100) / 250) - 0.2;
windnum = 0;
}
}
if (Math.abs(_global.wind - windtarget) > 0.001) {
if (_global.wind < windtarget) {
_global.wind = _global.wind + 0.0003;
} else {
_global.wind = _global.wind - 0.0003;
}
}
itemnum++;
if (itemnum > 1650) {
_global.itemgo = 1;
_global.itemout = 1;
itemnum = 0;
}
if (_global.uammo > 0) {
_global.uammo--;
_root.ammo.glow.play();
}
if (_global.upower > 0) {
_global.upower--;
_root.turret.glow.play();
}
num++;
_global.average = _global.average + ((_global.ammo - _global.average) / num);
if (num > 300) {
_global.gravity = _global.gravity + 0.00012;
if (_global.gravity > 0.004) {
if (windgo == 0) {
windtarget = 0.1;
_root.tutorial.gotoAndPlay("wind");
}
windgo = 1;
}
_global.shotsfired = 0;
_global.average = _global.ammo;
num = 0;
}
if (_global.hugecoming == 1) {
if (_global.hugewait == 0) {
_global.huge = 1;
}
_global.hugewait = 0;
}
}
}
Instance of Symbol 124 MovieClip in Frame 34
onClipEvent (load) {
origx = this._x;
origy = this._y;
this.swapDepths(25000);
}
onClipEvent (enterFrame) {
if (_global.pausing == 1) {
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
}
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((1000 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((1000 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
} else {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._alpha = 0;
}
}
}
Instance of Symbol 126 MovieClip in Frame 34
onClipEvent (load) {
origx = this._x;
origy = this._y;
this.swapDepths(25001);
}
onClipEvent (enterFrame) {
if (_global.pausing == 1) {
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
}
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((1000 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((1000 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
} else {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._alpha = 0;
}
}
}
Instance of Symbol 129 MovieClip in Frame 34
onClipEvent (load) {
origx = this._x;
origy = this._y;
this.swapDepths(25002);
}
onClipEvent (enterFrame) {
if (_global.pausing == 1) {
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
}
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((1000 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((1000 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
} else {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._alpha = 0;
}
}
}
Instance of Symbol 131 MovieClip in Frame 34
onClipEvent (load) {
origx = this._x;
origy = this._y;
this.swapDepths(25003);
}
onClipEvent (enterFrame) {
if (_global.pausing == 1) {
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
}
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((1000 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((1000 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
} else {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._alpha = 0;
}
}
}
Instance of Symbol 133 MovieClip in Frame 34
onClipEvent (load) {
origx = this._x;
origy = this._y;
this.swapDepths(25004);
}
onClipEvent (enterFrame) {
if (_global.pausing == 1) {
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
}
dist = Math.sqrt(Math.pow(origx - _root._xmouse, 2) + Math.pow(origy - _root._ymouse, 2));
if (dist < 20) {
dist = 20;
}
x = origx - _root._xmouse;
y = origy - _root._ymouse;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
targetx = origx + (Math.sin((angle * Math.PI) / 180) * ((1000 + dist) / dist));
targety = origy - (Math.cos((angle * Math.PI) / 180) * ((1000 + dist) / dist));
this._x = this._x + ((targetx - this._x) * 0.1);
this._y = this._y + ((targety - this._y) * 0.1);
} else {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._alpha = 0;
}
}
}
Instance of Symbol 145 MovieClip "crater" in Frame 34
onClipEvent (load) {
num = 0;
alpha = 100;
origx = this._x;
origy = this._y;
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (_global.reset == 1) {
removeMovieClip(this);
}
this._x = origx + _global.xoffset;
this._y = origy + _global.yoffset;
num++;
if (num > 200) {
alpha--;
this._alpha = alpha;
if (alpha < 1) {
removeMovieClip(this);
}
}
}
Instance of Symbol 147 MovieClip "shaky" in Frame 34
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.ytarget == 0)) {
if (num < 0.3) {
num = 0;
} else {
num = num - 0.3;
}
_global.xoffset = random(num * 2) - num;
_global.yoffset = random(num * 2) - num;
} else {
num = 0;
}
}
Instance of Symbol 157 MovieClip "shield" in Frame 34
onClipEvent (load) {
this._alpha = 0;
this.swapDepths(3);
origx = this._x;
origy = this._y;
}
onClipEvent (enterFrame) {
if (_global.shield == 0) {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._alpha = 0;
}
}
if (_global.shield == 1) {
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
}
}
this._x = origx + _global.xoffset;
this._y = origy + _global.yoffset;
}
Instance of Symbol 164 MovieClip "item" in Frame 34
onClipEvent (load) {
go = function () {
side = random(4);
if (side == 0) {
this._y = -50;
this._x = random(300) + 125;
xspeed = (random(20) / 10) - 1;
yspeed = 2;
}
if (side == 1) {
this._x = 600;
this._y = random(200) + 125;
yspeed = (random(20) / 10) - 1;
xspeed = -2;
}
if (side == 2) {
this._y = 500;
this._x = random(300) + 125;
xspeed = (random(20) / 10) - 1;
yspeed = -2;
}
if (side == 3) {
this._x = -50;
this._y = random(200) + 125;
yspeed = (random(20) / 10) - 1;
xspeed = 2;
}
if (_global.shield == 1) {
this.item.gotoAndStop(random(2) + 2);
} else {
this.item.gotoAndStop(1);
}
if ((_global.shield == 1) and (_global.miniturretnum == 0)) {
this.item.gotoAndStop(3);
}
if ((_global.shield == 1) and (_global.miniturretnum == 3)) {
this.item.gotoAndStop(2);
}
rotate = (random(5) / 10) - 0.25;
_global.itemout = 1;
};
this.swapDepths(-50);
}
onClipEvent (enterFrame) {
if (_global.reset == 1) {
_global.itemout = 0;
this._x = -999;
}
if ((_global.pausing == 0) and (_global.dead == 0)) {
if (_global.itemgo == 1) {
go();
_global.itemgo = 0;
}
if (_global.itemout == 1) {
this._rotation = this._rotation + rotate;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
}
if ((((this._y < -100) or (this._y > 550)) or (this._x > 650)) or (this._x < -100)) {
_global.itemout = 0;
_global.itemgettable = 0;
this._x = -999;
}
if ((((this._y > 50) or (this._y < 400)) or (this._x > 50)) or (this._x < 320)) {
_global.itemgettable = 1;
}
}
}
Instance of Symbol 170 MovieClip in Frame 34
onClipEvent (load) {
this.swapDepths(5211);
}
onClipEvent (enterFrame) {
if (_global.pausing == 1) {
this._x = 250;
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
}
} else {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._alpha = 0;
this._x = -100;
}
}
}
Instance of Symbol 172 MovieClip in Frame 34
onClipEvent (load) {
this.swapDepths(5221);
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 176 MovieClip "ball1" in Frame 34
onClipEvent (load) {
this.swapDepths(5220);
Mouse.hide();
}
Symbol 18 Button
on (release) {
_root.gotoAndPlay(2);
play();
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 23
stop();
Instance of Symbol 32 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 5));
if (this._x < -150) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 5);
this._x = 650;
}
if (this._x > 700) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 5);
this._x = -100;
}
}
}
Instance of Symbol 34 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 4));
if (this._x < -150) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 4);
this._x = 650;
}
if (this._x > 700) {
this._y = random(170) + 150;
xspeed = (random(10) * _global.wind) + (_global.wind * 4);
this._x = -100;
}
}
}
Instance of Symbol 36 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 6));
if (this._x < -150) {
xspeed = (random(10) * _global.wind) + (_global.wind * 6);
this._y = random(170) + 150;
this._x = 650;
}
if (this._x > 700) {
xspeed = (random(10) * _global.wind) + (_global.wind * 6);
this._y = random(170) + 150;
this._x = -100;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
xspeed = random(10);
}
onClipEvent (enterFrame) {
if ((_global.pausing == 0) and (_global.dead == 0)) {
this._x = this._x + ((xspeed * _global.wind) + (_global.wind * 3));
if (this._x < -150) {
this._y = random(170) + 150;
this._x = 650;
xspeed = (random(10) * _global.wind) + (_global.wind * 3);
}
if (this._x > 700) {
this._y = random(170) + 150;
this._x = -100;
xspeed = (random(10) * _global.wind) + (_global.wind * 3);
}
}
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip "a" in Symbol 61 MovieClip Frame 1
onClipEvent (load) {
origx = this._parent._x;
origy = this._parent._y;
xspeed = ((_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y)) - (_global.wind * 2.5);
yspeed = (_global.gravity * 3) + Math.random();
waiter = 10;
dead = 0;
this._parent.swapDepths(Math.round((-this._parent._xscale) - 3000));
size = this._parent._xscale;
trail = 0;
this._parent._x = origx;
this._parent._y = origy;
}
onClipEvent (enterFrame) {
if (resetting == 1) {
resetting = 0;
_global.reset = 0;
}
if (_global.reset == 1) {
this._parent._y = random(100) - 300;
this._parent._x = random(550);
xspeed = ((_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y)) - (_global.wind * 2.5);
yspeed = (_global.gravity * 3) + Math.random();
waiter = 10;
dead = 0;
this._parent.swapDepths(Math.round((-this._parent._xscale) - 3000));
size = this._parent._xscale;
trail = 0;
resetting = 1;
}
if (dead == 1) {
this._parent._x = xorig + _global.xoffset;
this._parent._y = yorig + _global.yoffset;
}
if ((((_global.go == 1) and (_global.pausing == 0)) and (_global.huge == 0)) and (_global.dead == 0)) {
if (Math.sqrt(Math.pow(this._parent._x - _root.turret._x, 2) + Math.pow(this._parent._y - (_root.turret._y + 36), 2)) < ((this._parent._width / 2) + 46)) {
if (dead == 0) {
if (_global.shield == 1) {
_global.shield = 0;
_global.gravity = _global.gravity - 0.0005;
_root.shield.fadeout = 1;
} else {
_global.dead = 1;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("death");
_root.music.stop();
}
_root.death._alpha = 100;
_root.death._y = 110;
}
_root.turret.blinkmax = 23;
_root.ammo.blinkmax = 23;
_root.shaky.num = 10;
}
dead = 1;
xorig = this._parent._x;
yorig = this._parent._y;
}
if (this._parent._y > 300) {
i = 0;
while (i < _global.minidupnum) {
if (_root["miniturret" + i]._currentframe == 80) {
if (Math.sqrt(Math.pow(this._parent._x - _root["miniturret" + i]._x, 2) + Math.pow(this._parent._y - (_root["miniturret" + i]._y + 25), 2)) < ((this._parent._width / 2) + 35)) {
if (dead == 0) {
_root["miniturret" + i].blinkmax = 23;
_root.shaky.num = 5;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("minideath");
}
_global.miniturretnum--;
}
dead = 1;
xorig = this._parent._x;
yorig = this._parent._y;
}
}
i++;
}
}
if (dead == 1) {
waiter = waiter - 1;
if (waiter < 1) {
this._parent._alpha = this._parent._alpha - 3;
if (this._parent._alpha < 1) {
waiter = 10;
dead = 0;
this._parent._alpha = 100;
this._parent._y = random(100) - 300;
this._parent._x = random(550);
yspeed = 0.3 + Math.random();
xspeed = ((_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y)) - (_global.wind * 4.5);
rnd = random(13) + size;
this._parent._xscale = rnd;
this._parent._yscale = rnd;
this._parent._alpha = 100;
}
}
} else {
if ((this._parent._y > -50) or (_global.hugecoming == 0)) {
this._parent._x = this._parent._x + xspeed;
this._parent._y = this._parent._y + yspeed;
yspeed = yspeed + _global.gravity;
xspeed = xspeed + (_global.wind / 50);
_global.hugewait = 1;
}
if ((((this._parent._x < -50) or (this._parent._x > 600)) or (this._parent._y > 500)) or (this._parent._y < -350)) {
this._parent._y = random(100) - 300;
this._parent._x = random(550);
rnd = random(13) + size;
this._parent._alpha = 100;
this._parent._xscale = rnd;
this._parent._yscale = rnd;
yspeed = 0.5 + Math.random();
xspeed = ((_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y)) - (_global.wind * 4.5);
}
}
}
}
Symbol 79 MovieClip Frame 136
stop();
Instance of Symbol 66 MovieClip in Symbol 79 MovieClip Frame 136
onClipEvent (enterFrame) {
if (_global.tut1 == 1) {
this._parent.play();
}
}
Symbol 79 MovieClip Frame 257
stop();
Instance of Symbol 68 MovieClip in Symbol 79 MovieClip Frame 257
onClipEvent (enterFrame) {
if (_global.tut2 == 1) {
this._parent.play();
}
}
Symbol 79 MovieClip Frame 543
stop();
Instance of Symbol 74 MovieClip in Symbol 79 MovieClip Frame 543
onClipEvent (enterFrame) {
if (_global.tut3 == 1) {
this._parent.play();
}
}
Symbol 79 MovieClip Frame 561
_global.go = 1;
_global.clock = 0;
_global.shotsfired = 0;
Symbol 79 MovieClip Frame 902
stop();
Symbol 79 MovieClip Frame 1176
stop();
Instance of Symbol 60 MovieClip "a" in Symbol 80 MovieClip Frame 1
onClipEvent (load) {
xspeed = (((((_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y)) * 1.5) + (Math.random() / 2)) - 0.25) * (_global.gravity * 267);
yspeed = (_global.gravity * 3) + Math.random();
waiter = 10;
dead = 0;
this._parent.s;
resetting = 0;
}
onClipEvent (enterFrame) {
if ((_global.reset == 1) and (_global.dead == 1)) {
this._parent._y = -170;
this._parent._x = random(550);
xspeed = (((((_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y)) * 1.5) + (Math.random() / 2)) - 0.25) * (_global.gravity * 267);
yspeed = (_global.gravity * 3) + Math.random();
waiter = 10;
dead = 0;
resetting = 1;
}
if (dead == 1) {
this._parent._x = xorig + _global.xoffset;
this._parent._y = yorig + _global.yoffset;
}
if ((((_global.go == 1) and (_global.pausing == 0)) and (_global.huge == 1)) and (_global.dead == 0)) {
if (Math.sqrt(Math.pow(this._parent._x - _root.turret._x, 2) + Math.pow(this._parent._y - (_root.turret._y + 36), 2)) < ((this._parent._width / 2) + 46)) {
if (dead == 0) {
if (_global.shield == 1) {
_global.shield = 0;
_global.gravity = _global.gravity - 0.0005;
_root.shield.fadeout = 1;
} else {
_global.dead = 1;
if (_global.sounds == 1) {
_root.sound.gotoAndPlay("death");
_root.music.stop();
}
_root.death._alpha = 100;
_root.death._y = 110;
}
_root.turret.blinkmax = 23;
_root.ammo.blinkmax = 23;
_root.shaky.num = 10;
}
xorig = this._parent._x;
yorig = this._parent._y;
dead = 1;
}
if (this._parent._y > 180) {
i = 0;
while (i < _global.minidupnum) {
if (_root["miniturret" + i]._currentframe == 80) {
if (Math.sqrt(Math.pow(this._parent._x - _root["miniturret" + i]._x, 2) + Math.pow(this._parent._y - (_root["miniturret" + i]._y + 25), 2)) < ((this._parent._width / 2) + 35)) {
if (dead == 0) {
_root["miniturret" + i].blinkmax = 23;
_root.shaky.num = 5;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("minideath");
}
_global.miniturretnum--;
}
dead = 1;
xorig = this._parent._x;
yorig = this._parent._y;
}
}
i++;
}
}
if (dead == 1) {
waiter = waiter - 1;
if (waiter < 1) {
this._parent._alpha = this._parent._alpha - 3;
if (this._parent._alpha < 1) {
waiter = 10;
dead = 0;
this._parent._alpha = 100;
this._parent._y = -170;
this._parent._x = random(550);
this._parent._alpha = 100;
yspeed = 0.3 + Math.random();
xspeed = (_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y);
_global.huge = 0;
_global.hugecoming = 0;
}
}
} else {
if (_global.huge == 1) {
this._parent._x = this._parent._x + xspeed;
this._parent._y = this._parent._y + yspeed;
yspeed = yspeed + (_global.gravity / 2);
_root.shaky.num = (this._parent._y + 500) / 250;
}
if ((((this._parent._x < -150) or (this._parent._x > 700)) or (this._parent._y > 600)) or (this._parent._y < -180)) {
this._parent._y = -170;
this._parent._x = random(550);
_global.huge = 0;
this._parent._alpha = 100;
_global.hugecoming = 0;
yspeed = 0.5 + Math.random();
xspeed = (_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y);
}
}
}
}
Symbol 85 Button
on (release) {
if (_global.dead == 1) {
_global.ytarget = -470;
_global.goup = 0;
_root._y = -1;
}
}
Symbol 89 Button
on (release) {
_global.dead = 0;
_root.diff.num = 0;
_root.diff.itemnum = 0;
_root.diff.windnum = 0;
_root.diff.windgo = 0;
_root.diff.windtarget = 0;
_global.average = 100;
_global.wind = 0;
_global.reset = 1;
_global.ammo = 100;
_root.death._alpha = 0;
_root.fast.a.holding = 800;
_global.begin();
_root.tutorial.gotoAndStop("reset");
this._y = 1000;
}
Symbol 94 Button
on (release) {
_global.goup = 1;
}
Symbol 99 Button
on (release) {
getURL ("http://ivorydrive.deviantart.com", "_blank");
}
Symbol 104 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 108 Button
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 113 MovieClip Frame 1
gotoAndPlay (2);
Symbol 113 MovieClip Frame 80
stop();
Instance of Symbol 115 MovieClip "a" in Symbol 116 MovieClip Frame 1
onClipEvent (load) {
origx = this._parent._x;
origy = this._parent._y;
xspeed = 0;
yspeed = 0.3;
waiter = 10;
holding = 800;
dead = 0;
this._parent.swapDepths(-2500);
size = this._parent._xscale;
trail = 0;
rotate = (random(100) / 10) - 5;
this._parent._x = origx;
this._parent._y = origy;
xorig = this._parent._x;
yorig = this._parent._y;
}
onClipEvent (enterFrame) {
if (resetting == 1) {
resetting = 0;
_global.reset = 0;
}
if (_global.reset == 1) {
this._parent._y = random(100) - 300;
this._parent._x = random(550);
rotate = (random(100) / 10) - 5;
xspeed = (_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y);
yspeed = _global.gravity * 3;
waiter = 10;
dead = 0;
this._parent.swapDepths(Math.round((-this._parent._xscale) - 3000));
size = this._parent._xscale;
trail = 0;
resetting = 1;
}
if (dead == 1) {
this._parent._x = xorig + _global.xoffset;
this._parent._y = yorig + _global.yoffset;
}
if ((((_global.go == 1) and (_global.pausing == 0)) and (_global.huge == 0)) and (_global.dead == 0)) {
holding--;
if (holding < 1) {
holding = 0;
}
if (Math.sqrt(Math.pow(this._parent._x - _root.turret._x, 2) + Math.pow(this._parent._y - (_root.turret._y + 36), 2)) < 67) {
if (dead == 0) {
if (_global.shield == 1) {
_global.shield = 0;
_global.gravity = _global.gravity - 0.0005;
_root.shield.fadeout = 1;
} else {
_global.dead = 1;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("death");
_root.music.stop();
}
_root.death._alpha = 100;
_root.death._y = 110;
}
_root.turret.blinkmax = 23;
_root.ammo.blinkmax = 23;
_root.shaky.num = 10;
}
dead = 1;
xorig = this._parent._x;
yorig = this._parent._y;
}
if (this._parent._y > 300) {
i = 0;
while (i < _global.minidupnum) {
if (Math.sqrt(Math.pow(this._parent._x - _root["miniturret" + i]._x, 2) + Math.pow(this._parent._y - (_root["miniturret" + i]._y + 25), 2)) < 56) {
if (dead == 0) {
_root["miniturret" + i].blinkmax = 23;
_root.shaky.num = 5;
_global.miniturretnum--;
if (_global.sound == 1) {
_root.sounds.gotoAndPlay("minideath");
}
}
dead = 1;
xorig = this._parent._x;
yorig = this._parent._y;
}
i++;
}
}
if (dead == 1) {
waiter = waiter - 1;
if (waiter < 1) {
this._parent._alpha = this._parent._alpha - 3;
if (this._parent._alpha < 1) {
waiter = 10;
dead = 0;
this._parent._alpha = 100;
this._parent._y = random(100) - 300;
this._wparent._x = random(550);
yspeed = 0.3;
xspeed = (_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y);
rnd = random(13) + size;
rotate = (random(100) / 10) - 5;
this._parent._xscale = rnd;
this._parent._yscale = rnd;
holding = random(300) + 700;
this._parent._alpha = 100;
}
}
} else if (holding == 0) {
if ((this._parent._y > -40) or (_global.hugecoming == 0)) {
this._parent._x = this._parent._x + (xspeed * 1.9);
this._parent._y = this._parent._y + (yspeed * 1.9);
yspeed = yspeed + (_global.gravity + 0.005);
this._rotation = this._rotation + rotate;
_global.hugewait = 1;
}
if ((((this._parent._x < -50) or (this._parent._x > 600)) or (this._parent._y > 500)) or (this._parent._y < -350)) {
this._parent._y = random(100) - 300;
this._parent._x = random(550);
rnd = random(13) + size;
this._parent._xscale = rnd;
this._parent._yscale = rnd;
rotate = (random(100) / 10) - 5;
holding = random(300) + 700;
this._parent._alpha = 100;
yspeed = 0.5;
xspeed = (_root.turret._x - this._parent._x) / (_root.turret._y - this._parent._y);
}
}
}
}
Instance of Symbol 136 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
xspeed = (random(100) / 25) - 2;
yspeed = ((-random(100)) / 50) - 2;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
yspeed = yspeed + 0.2;
if (this._y > 0) {
this._y = 0;
xspeed = xspeed * 0.4;
yspeed = (-yspeed) * 0.4;
}
}
}
Instance of Symbol 138 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
xspeed = (random(100) / 25) - 2;
yspeed = ((-random(100)) / 50) - 2;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
yspeed = yspeed + 0.2;
if (this._y > 0) {
this._y = 0;
xspeed = xspeed * 0.4;
yspeed = (-yspeed) * 0.4;
}
}
}
Instance of Symbol 140 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
xspeed = (random(100) / 25) - 2;
yspeed = ((-random(100)) / 50) - 2;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
yspeed = yspeed + 0.2;
if (this._y > 0) {
this._y = 0;
xspeed = xspeed * 0.4;
yspeed = (-yspeed) * 0.4;
}
}
}
Instance of Symbol 142 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
xspeed = (random(100) / 25) - 2;
yspeed = ((-random(100)) / 50) - 2;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
yspeed = yspeed + 0.2;
if (this._y > 0) {
this._y = 0;
xspeed = xspeed * 0.4;
yspeed = (-yspeed) * 0.4;
}
}
}
Instance of Symbol 144 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
xspeed = (random(100) / 25) - 2;
yspeed = ((-random(100)) / 50) - 2;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
yspeed = yspeed + 0.2;
if (this._y > 0) {
this._y = 0;
xspeed = xspeed * 0.4;
yspeed = (-yspeed) * 0.4;
}
}
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 6
gotoAndStop (1);
Symbol 153 MovieClip Frame 10
gotoAndStop (1);
Symbol 153 MovieClip Frame 40
gotoAndStop (1);
Symbol 153 MovieClip Frame 70
gotoAndStop (1);
Symbol 153 MovieClip Frame 191
gotoAndStop (1);
Symbol 153 MovieClip Frame 257
gotoAndPlay (1);
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
stop();
Symbol 163 MovieClip Frame 3
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 17
_root.item._x = -999;
_root.item._rotation = 0;
Symbol 168 Button
on (release) {
_root.music.stop();
_global.sound = 0;
gotoAndStop (2);
}
Symbol 169 Button
on (release) {
_root.music.play();
_global.sound = 1;
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
stop();
Instance of Symbol 175 MovieClip "ball" in Symbol 176 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
followspeed = 0.1;
}
onClipEvent (enterFrame) {
xspeed = (xspeed * 0.7) + ((_root._xmouse - this._parent._x) * followspeed);
yspeed = (yspeed * 0.7) + ((_root._ymouse - this._parent._y) * followspeed);
this._parent._x = this._parent._x + xspeed;
this._parent._y = this._parent._y + yspeed;
}