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__("6bcaa6bc", this, 10301, true);
_global.dupnum = 1000;
_global.edupnum = 0;
_global.minenum = 0;
_global.minedepth = -200;
_global.missiles = 0;
_global.missilemax = 1;
_global.pausing = 0;
_global.explode = 0;
_global.exploded = 0;
_global.Psplash = 0;
_global.Pspeed = 0;
_global.Pmissile = 0;
_global.speed = 1;
_global.num = 0;
_global.okay = 0;
_global.lives = 5;
_quality = "medium";
Mouse.hide();
stop();
Instance of Symbol 24 MovieClip "bullet" in Frame 1
onClipEvent (load) {
if (this._name != "bullet") {
if (_global.Psplash == 1) {
speed = 0;
} else {
speed = 2;
}
power = 15;
ptimer = 0;
xspeed = 0;
yspeed = 0;
lastx = 0;
lasty = 0;
dist = 99999 /* 0x01869F */;
removing = 0;
dist = Math.sqrt(Math.pow(this._x - _root.loadingbar._x, 2) + Math.pow(this._y - _root.loadingbar._y, 2));
target = "loadingbar";
wide = _root[target].wide;
if (dist == 99999) {
_global.missiles--;
removeMovieClip(this);
}
}
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (this._name != "bullet") {
if (_root[target].targeted == 0) {
_root[target].targeted = 1;
}
if (_root.level._currentframe > 2) {
_root[target].targeted = 0;
_global.missiles--;
removeMovieClip(this);
}
if (_global.q == 1) {
ptimer = ptimer + 1;
if (ptimer > 1) {
duplicateMovieClip (_root.pbullet, "pbullet" + _global.dupnum, _global.dupnum);
_root["pbullet" + _global.dupnum]._x = this._x;
_root["pbullet" + _global.dupnum]._y = this._y;
_global.dupnum++;
ptimer = ptimer - 1.7;
}
}
if (_global.Psplash == 1) {
speed = speed + 0.3;
} else {
speed = speed + 0.6;
}
x = this._x - 300;
y = this._y - 250;
if (y < 0) {
arcSide = 180;
} else {
arcSide = 0;
}
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 = this._x + xspeed;
this._y = this._y + yspeed;
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
if ((((this._x > 650) or (this._x < -50)) or (this._y > 550)) or (this._y < -50)) {
_root[target].targeted = 0;
_global.missiles--;
removeMovieClip(this);
}
if (Math.sqrt(Math.pow(this._x - 300, 2) + Math.pow(this._y - 250, 2)) < wide) {
_root.sound.gotoAndPlay("rockblow");
x = lastx - this._x;
y = lasty - this._y;
if (y < 0) {
arcSide = 180;
} else {
arcSide = 0;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
power = 10 * _root[target].mass;
_root[target].xspeed = _root[target].xspeed + (Math.sin((angle * Math.PI) / 180) * power);
_root[target].yspeed = _root[target].yspeed + ((-Math.cos((angle * Math.PI) / 180)) * power);
duplicateMovieClip (_root.boom, "boom" + _global.dupnum, _global.dupnum);
_root["boom" + _global.dupnum]._x = this._x;
_root["boom" + _global.dupnum]._y = this._y;
_global.dupnum++;
_root[target].hit = 1;
_root[target].targeted = 0;
_global.power = power;
_global.missiles--;
removeMovieClip(this);
}
lastx = this._x;
lasty = this._y;
}
}
}
Instance of Symbol 33 MovieClip "boom" in Frame 1
onClipEvent (load) {
if (_global.Psplash == 1) {
i = 0;
while (i < _global.Aenemynum) {
_global.splash(this._name, _root["Aenemy" + i].mass, "Aenemy" + i);
i++;
}
i = 0;
while (i < _global.Benemynum) {
_global.splash(this._name, _root["Benemy" + i].mass, "Benemy" + i);
i++;
}
i = 0;
while (i < _global.Cenemynum) {
_global.splash(this._name, _root["Cenemy" + i].mass, "Cenemy" + i);
i++;
}
i = 0;
while (i < _global.Denemynum) {
_global.splash(this._name, _root["Denemy" + i].mass, "Denemy" + i);
i++;
}
i = 0;
while (i < _global.Eenemynum) {
_global.splash(this._name, _root["Eenemy" + i].mass, "Eenemy" + i);
i++;
}
}
}
Instance of Symbol 52 MovieClip "loadingbar" in Frame 1
onClipEvent (load) {
wide = 40;
targeted = 0;
baaah = new Sound(this);
baaah.attachSound("baaah");
baaah.setVolume(30);
}
onClipEvent (enterFrame) {
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
if (_root.percentLoaded == 100) {
_global.okay = 1;
}
this.bar._xscale = _root.percentLoaded;
}
Instance of Symbol 56 MovieClip "you1" in Frame 1
onClipEvent (load) {
t = 0;
hit = 0;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (_root._currentframe == 3) {
unloadMovie (this);
}
if ((_global.Pspeed == 1) and (_global.speed > 0.2)) {
_global.speed = _global.speed - 0.035;
}
if ((_global.Pspeed == 0) and (_global.speed < 1)) {
_global.speed = _global.speed + 0.035;
}
if (_global.dupnum > 10000) {
_global.dupnum = 1000;
}
if (this.hit == 0) {
this._x = _root._xmouse;
this._y = _root._ymouse;
} else {
this._x = this._x + ((_root._xmouse - this._x) * hitspeed);
this._y = this._y + ((_root._ymouse - this._y) * hitspeed);
hitspeed = hitspeed + (hitspeed * 0.04);
if (this._alpha == 100) {
this._alpha = 30;
} else {
this._alpha = 100;
}
if (hitspeed > 1) {
hit = 0;
this._alpha = 100;
}
}
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
dist = Math.sqrt(Math.pow(this._x - lastx, 2) + Math.pow(this._y - lasty, 2));
this.stretch._xscale = 100 - dist;
if (this.stretch._xscale < 35) {
this.stretch._xscale = 35;
}
this.stretch._yscale = 100 + (dist * 6);
if (this.stretch._yscale > 300) {
this.stretch._yscale = 300;
}
lastx = this._x;
lasty = this._y;
}
}
onClipEvent (mouseDown) {
Mouse.hide();
if (((_global.pausing == 0) and (_root.you1.stretch._currentframe < 14)) and (hit == 0)) {
Mouse.hide();
if (_global.missiles < _global.missilemax) {
if ((((this._x > 340) or (this._x < 260)) or (this._y > 295)) or (this._y < 205)) {
_global.missiles++;
this.stretch.gotoAndPlay(2);
}
}
}
}
Instance of Symbol 66 MovieClip "sound" in Frame 1
onClipEvent (load) {
besaid = new Sound(this);
besaid.attachSound("besaid");
ding = new Sound(this);
ding.attachSound("ding");
splode = new Sound(this);
splode.attachSound("splode");
}
Frame 3
stopAllSounds();
stop();
Instance of Symbol 75 MovieClip in Frame 3
onClipEvent (load) {
_global.Ptimer = 360;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (_global.Psplash == 1) {
_global.Ptimer = _global.Ptimer + 1.5;
if (_global.Ptimer > 361) {
_global.Ptimer = 360;
_global.Psplash = 0;
_root.bkg.gotoAndStop(1);
}
}
if (_global.Pspeed == 1) {
_global.Ptimer = _global.Ptimer + 1;
if (_global.Ptimer > 360) {
_global.Ptimer = 360;
_global.Pspeed = 0;
_root.bkg.gotoAndStop(1);
}
}
if (_global.Pmissile == 1) {
_global.Ptimer = _global.Ptimer + 1.5;
if (_global.Ptimer > 360) {
_global.Ptimer = 360;
_global.Pmissile = 0;
_global.missilemax = 1;
_root.bkg.gotoAndStop(1);
}
}
if (_global.Ptimer < 180) {
this.cover1._rotation = _global.Ptimer + 180;
} else {
this.cover1._rotation = 0;
}
if (_global.Ptimer > 180) {
this.cover2._rotation = _global.Ptimer - 180;
} else {
this.cover2._rotation = 0;
}
}
}
Instance of Symbol 84 MovieClip "you2" in Frame 3
onClipEvent (load) {
t = 0;
hit = 0;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (_root._currentframe == 4) {
unloadMovie (this);
}
if ((_global.Pspeed == 1) and (_global.speed > 0.2)) {
_global.speed = _global.speed - 0.035;
}
if ((_global.Pspeed == 0) and (_global.speed < 1)) {
_global.speed = _global.speed + 0.035;
}
if (_global.dupnum > 10000) {
_global.dupnum = 1000;
}
if (this.hit == 0) {
this._x = _root._xmouse;
this._y = _root._ymouse;
} else {
this._x = this._x + ((_root._xmouse - this._x) * hitspeed);
this._y = this._y + ((_root._ymouse - this._y) * hitspeed);
hitspeed = hitspeed + (hitspeed * 0.04);
if (this._alpha == 100) {
this._alpha = 30;
} else {
this._alpha = 100;
}
if (hitspeed > 1) {
hit = 0;
this._alpha = 100;
}
}
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
dist = Math.sqrt(Math.pow(this._x - lastx, 2) + Math.pow(this._y - lasty, 2));
this.stretch._xscale = 100 - dist;
if (this.stretch._xscale < 35) {
this.stretch._xscale = 35;
}
this.stretch._yscale = 100 + (dist * 6);
if (this.stretch._yscale > 300) {
this.stretch._yscale = 300;
}
lastx = this._x;
lasty = this._y;
}
}
onClipEvent (mouseDown) {
if (((_global.pausing == 0) and (_root.you.stretch._currentframe < 14)) and (hit == 0)) {
Mouse.hide();
if (_global.missiles < _global.missilemax) {
_global.missiles++;
this.stretch.gotoAndPlay(2);
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 65) {
trace(_global.missiles);
}
}
Instance of Symbol 87 MovieClip "level" in Frame 3
onClipEvent (load) {
this.swapDepths(9994958);
this.gotoAndPlay(3);
}
Instance of Symbol 66 MovieClip "sound" in Frame 3
onClipEvent (load) {
besaid = new Sound(this);
besaid.attachSound("besaid");
ding = new Sound(this);
ding.attachSound("ding");
splode = new Sound(this);
splode.attachSound("splode");
}
Frame 4
_global.level = 1;
_global.dead = 0;
Mouse.hide();
_global.Aenemynum = Math.round(_global.level / 4);
_global.Benemynum = Math.floor(_global.level / 2);
_global.Cenemynum = 1;
if (_global.level > 2) {
_global.Denemynum = 1;
} else {
_global.Denemynum = 0;
}
_global.Eenemynum = Math.floor(_global.level / 5);
_global.rot = _global.Aenemynum;
i = 0;
while (i < _global.Cenemynum) {
duplicateMovieClip (_root.Cenemy, "Cenemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Denemynum) {
duplicateMovieClip (_root.Denemy, "Denemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Eenemynum) {
duplicateMovieClip (_root.Eenemy, "Eenemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Aenemynum) {
duplicateMovieClip (_root.Aenemy, "Aenemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Benemynum) {
duplicateMovieClip (_root.Benemy, "Benemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
_global.splash = function (bullet, mass, enemy) {
dist = Math.sqrt(Math.pow(_root[enemy]._x - _root[bullet]._x, 2) + Math.pow(_root[enemy]._y - _root[bullet]._y, 2));
if (_global.Psplasher == 1) {
dist = ((dist + 30) / dist) - 1;
}
x = _root[bullet]._x - _root[enemy]._x;
y = _root[bullet]._y - _root[enemy]._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
_root[enemy].xspeed = _root[enemy].xspeed - (((Math.sin((angle * Math.PI) / 180) * dist) * mass) * 6);
_root[enemy].yspeed = _root[enemy].yspeed + (((Math.cos((angle * Math.PI) / 180) * dist) * mass) * 6);
};
_root.sound.gotoAndPlay("level");
stop();
Instance of Symbol 84 MovieClip "you" in Frame 4
onClipEvent (load) {
this.swapDepths(11000);
t = 0;
hit = 0;
unpause = 0;
unpausing = 0;
_root.you.stretch.gotoAndPlay("restart");
}
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (_global.pausing == 0) {
if ((_global.Pspeed == 1) and (_global.speed > 0.2)) {
_global.speed = _global.speed - 0.035;
}
if ((_global.Pspeed == 0) and (_global.speed < 1)) {
_global.speed = _global.speed + 0.035;
}
if (_global.dupnum > 10000) {
_global.dupnum = 1000;
}
if (this.hit == 0) {
if (unpausing == 1) {
this._x = this._x + ((_root._xmouse - this._x) * unpause);
this._y = this._y + ((_root._ymouse - this._y) * unpause);
unpause = unpause + 0.05;
if (unpause > 1) {
unpausing = 0;
}
} else {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
} else {
this._x = this._x + ((_root._xmouse - this._x) * hitspeed);
this._y = this._y + ((_root._ymouse - this._y) * hitspeed);
hitspeed = hitspeed + (hitspeed * 0.04);
if (this._alpha == 100) {
this._alpha = 30;
} else {
this._alpha = 100;
}
if (hitspeed > 1) {
hit = 0;
this._alpha = 100;
}
}
if (_root.death._currentframe == 1) {
Mouse.hide();
}
x = this._x - lastx;
y = this._y - lasty;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
dist = Math.sqrt(Math.pow(this._x - lastx, 2) + Math.pow(this._y - lasty, 2));
this.stretch._xscale = 100 - dist;
if (this.stretch._xscale < 35) {
this.stretch._xscale = 35;
}
this.stretch._yscale = 100 + (dist * 6);
if (this.stretch._yscale > 300) {
this.stretch._yscale = 300;
}
lastx = this._x;
lasty = this._y;
}
}
onClipEvent (mouseDown) {
if (((_global.pausing == 0) and (_root.you.stretch._currentframe < 14)) and (hit == 0)) {
if (_global.dead == 0) {
Mouse.hide();
}
_root.tutorial.clicked = 1;
if (_global.missiles < _global.missilemax) {
_global.missiles++;
this.stretch.gotoAndPlay(2);
}
}
}
onClipEvent (keyDown) {
if ((Key.getCode() == 80) and (_global.dead == 0)) {
if (_global.pausing == 0) {
_global.pausing = 1;
_root.pause._x = 300;
if (this.stretch._currentframe > 1) {
this.stretch.stop();
}
if (_root.death._currentframe == 2) {
Mouse.show();
}
} else {
_global.pausing = 0;
_root.pause._x = 10000;
unpausing = 1;
unpause = 0.3;
if (this.stretch._currentframe > 1) {
this.stretch.play();
}
Mouse.hide();
}
}
}
Instance of Symbol 89 MovieClip "Aenemy" in Frame 4
onClipEvent (load) {
if (this._name != "Aenemy") {
speed = 1;
xspeed = 0;
yspeed = 0;
targeted = 0;
mass = 2.5;
wide = this._width / 2;
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
offrot = _global.rot * (6.28 / _global.Aenemynum);
_global.rot--;
this._x = _root.Cenemy0._x + (Math.sin(offrot) * 100);
this._y = _root.Cenemy0._y + (Math.cos(offrot) * 100);
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (_global.pausing == 0) {
if (this._name != "Aenemy") {
targetx = _root.Cenemy0._x + (Math.sin(offrot) * 50);
targety = _root.Cenemy0._y + (Math.cos(offrot) * 50);
offrot = offrot - (0.015 * _global.speed);
xdist = targetx - this._x;
ydist = targety - this._y;
xspeed = xspeed + (xdist / 1000);
yspeed = yspeed + (ydist / 1000);
this._x = this._x + (xspeed * _global.speed);
this._y = this._y + (yspeed * _global.speed);
if (((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) < (wide + 10)) and (_root.you.stretch._currentframe < 14)) and (_root.you.hit == 0)) {
_root.you.hit = 1;
_root.sound.ding.start(0.26, 0);
_root.you.hitspeed = 0.01;
_root.lives.play();
if (_global.lives == 1) {
_global.pausing = 1;
_global.dead = 1;
_root.death.play();
Mouse.show();
} else {
_global.lives--;
}
}
xspeed = xspeed * 0.96;
yspeed = yspeed * 0.96;
}
}
}
Instance of Symbol 24 MovieClip "bullet" in Frame 4
onClipEvent (load) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (this._name != "bullet") {
if (_global.Psplash == 1) {
speed = 1;
this.gotoAndStop(2);
_global.Psplasher = 1;
} else {
speed = 2;
}
power = 20;
ptimer = 0;
xspeed = 0;
yspeed = 0;
lastx = 0;
lasty = 0;
dist = 99999 /* 0x01869F */;
removing = 0;
i = 0;
while (i < _global.Aenemynum) {
if ((((_root["Aenemy" + i]._x > -20) and (_root["Aenemy" + i]._x < 620)) and (_root["Aenemy" + i]._y > -20)) and (_root["Aenemy" + i]._y < 520)) {
edist = Math.sqrt(Math.pow(this._x - _root["Aenemy" + i]._x, 2) + Math.pow(this._y - _root["Aenemy" + i]._y, 2));
if ((edist < dist) and (_root["Aenemy" + i].targeted == 0)) {
target = "Aenemy" + i;
dist = edist;
}
}
i++;
}
i = 0;
while (i < _global.Benemynum) {
if ((((_root["Benemy" + i]._x > -20) and (_root["Benemy" + i]._x < 620)) and (_root["Benemy" + i]._y > -20)) and (_root["Benemy" + i]._y < 520)) {
edist = Math.sqrt(Math.pow(this._x - _root["Benemy" + i]._x, 2) + Math.pow(this._y - _root["Benemy" + i]._y, 2));
if ((edist < dist) and (_root["Benemy" + i].targeted == 0)) {
target = "Benemy" + i;
dist = edist;
}
}
i++;
}
i = 0;
while (i < _global.Cenemynum) {
if ((((_root["Cenemy" + i]._x > -50) and (_root["Cenemy" + i]._x < 650)) and (_root["Cenemy" + i]._y > -50)) and (_root["Cenemy" + i]._y < 550)) {
edist = Math.sqrt(Math.pow(this._x - _root["Cenemy" + i]._x, 2) + Math.pow(this._y - _root["Cenemy" + i]._y, 2));
if ((edist < dist) and (_root["Cenemy" + i].targeted == 0)) {
target = "Cenemy" + i;
dist = edist;
}
}
i++;
}
i = 0;
while (i < _global.Denemynum) {
if ((((_root["Denemy" + i]._x > -20) and (_root["Denemy" + i]._x < 620)) and (_root["Denemy" + i]._y > -20)) and (_root["Denemy" + i]._y < 520)) {
edist = Math.sqrt(Math.pow(this._x - _root["Denemy" + i]._x, 2) + Math.pow(this._y - _root["Denemy" + i]._y, 2));
if ((edist < dist) and (_root["Denemy" + i].targeted == 0)) {
target = "Denemy" + i;
dist = edist;
}
}
i++;
}
i = 0;
while (i < _global.Eenemynum) {
if ((((_root["Eenemy" + i]._x > -20) and (_root["Eenemy" + i]._x < 620)) and (_root["Eenemy" + i]._y > -20)) and (_root["Eenemy" + i]._y < 520)) {
edist = Math.sqrt(Math.pow(this._x - _root["Eenemy" + i]._x, 2) + Math.pow(this._y - _root["Eenemy" + i]._y, 2));
if ((edist < dist) and (_root["Eenemy" + i].targeted == 0)) {
target = "Eenemy" + i;
dist = edist;
}
}
i++;
}
i = 0;
while (i < _global.minenum) {
if (((((_root["mine" + i]._x > -20) and (_root["mine" + i]._x < 620)) and (_root["mine" + i]._y > -20)) and (_root["mine" + i]._y < 520)) and (_root["mine" + i].alive == 1)) {
edist = Math.sqrt(Math.pow(this._x - _root["mine" + i]._x, 2) + Math.pow(this._y - _root["mine" + i]._y, 2));
if ((edist < dist) and (_root["mine" + i].targeted == 0)) {
target = "mine" + i;
dist = edist;
}
}
i++;
}
if (((((_root.power._x > -20) and (_root.power._x < 620)) and (_root.power._y > -20)) and (_root.power._y < 520)) and (_root.power.alive == 1)) {
edist = Math.sqrt(Math.pow(this._x - _root.power._x, 2) + Math.pow(this._y - _root.power._y, 2));
if ((edist < dist) and (_root.power.targeted == 0)) {
target = "power";
dist = edist;
}
}
wide = _root[target].wide;
if (dist == 99999) {
_global.missiles--;
removeMovieClip(this);
}
}
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (this._name != "bullet") {
if (_root[target].targeted == 0) {
_root[target].targeted = 1;
}
if (_root.level._currentframe > 2) {
_root[target].targeted = 0;
_global.missiles--;
removeMovieClip(this);
}
if (_global.q == 1) {
ptimer = ptimer + 1;
if (ptimer > 1) {
duplicateMovieClip (_root.pbullet, "pbullet" + _global.dupnum, _global.dupnum);
_root["pbullet" + _global.dupnum]._x = this._x;
_root["pbullet" + _global.dupnum]._y = this._y;
_global.dupnum++;
ptimer = ptimer - 1.7;
}
}
if (_global.Psplash == 1) {
speed = speed + 0.3;
} else {
speed = speed + 0.6;
}
x = this._x - _root[target]._x;
y = this._y - _root[target]._y;
if (y < 0) {
arcSide = 180;
} else {
arcSide = 0;
}
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 = this._x + xspeed;
this._y = this._y + yspeed;
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
if ((((this._x > 650) or (this._x < -50)) or (this._y > 550)) or (this._y < -50)) {
_root[target].targeted = 0;
_global.missiles--;
removeMovieClip(this);
}
if (Math.sqrt(Math.pow(this._x - _root[target]._x, 2) + Math.pow(this._y - _root[target]._y, 2)) < wide) {
if (this._currentframe == 1) {
_root.sound.gotoAndPlay("rockblow");
} else {
_root.sound.gotoAndPlay("bigboom");
}
x = lastx - this._x;
y = lasty - this._y;
if (y < 0) {
arcSide = 180;
} else {
arcSide = 0;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
power = 10 * _root[target].mass;
_root[target].xspeed = _root[target].xspeed + (Math.sin((angle * Math.PI) / 180) * power);
_root[target].yspeed = _root[target].yspeed + ((-Math.cos((angle * Math.PI) / 180)) * power);
duplicateMovieClip (_root.boom, "boom" + _global.dupnum, _global.dupnum);
_root["boom" + _global.dupnum]._x = this._x;
_root["boom" + _global.dupnum]._y = this._y;
_global.dupnum++;
_root[target].hit = 1;
_root[target].targeted = 0;
_global.power = power;
_global.missiles--;
removeMovieClip(this);
}
lastx = this._x;
lasty = this._y;
}
}
}
Instance of Symbol 91 MovieClip "pbullet" in Frame 4
onClipEvent (load) {
xspeed = (random(10) / 5) - 1;
yspeed = (random(10) / 5) - 1;
this._alpha = 30;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (this._name != "pbullet") {
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
this._alpha = this._alpha - 2;
if (this._alpha < 1) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 33 MovieClip "boom" in Frame 4
onClipEvent (load) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (_global.Psplasher == 1) {
i = 0;
while (i < _global.Aenemynum) {
_global.splash(this._name, _root["Aenemy" + i].mass, "Aenemy" + i);
i++;
}
i = 0;
while (i < _global.Benemynum) {
_global.splash(this._name, _root["Benemy" + i].mass, "Benemy" + i);
i++;
}
i = 0;
while (i < _global.Cenemynum) {
_global.splash(this._name, _root["Cenemy" + i].mass, "Cenemy" + i);
i++;
}
i = 0;
while (i < _global.Denemynum) {
_global.splash(this._name, _root["Denemy" + i].mass, "Denemy" + i);
i++;
}
i = 0;
while (i < _global.Eenemynum) {
_global.splash(this._name, _root["Eenemy" + i].mass, "Eenemy" + i);
i++;
}
_global.Psplasher = 0;
}
}
Instance of Symbol 98 MovieClip "Benemy" in Frame 4
onClipEvent (load) {
speed = 2;
xspeed = 0;
yspeed = 0;
targeted = 0;
offsetx = random(200) - 100;
offsety = random(200) - 100;
mass = 2;
counter = 0;
wide = this._width / 2;
type = random(2);
side = random(2);
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
this.prop.gotoAndPlay(random(6));
if (this._name == "Benemy0") {
piano1 = new Sound(this);
piano1.attachSound("piano1");
piano2 = new Sound(this);
piano2.attachSound("piano2");
piano3 = new Sound(this);
piano3.attachSound("piano3");
piano4 = new Sound(this);
piano4.attachSound("piano4");
piano5 = new Sound(this);
piano5.attachSound("piano5");
piano6 = new Sound(this);
piano6.attachSound("piano6");
piano7 = new Sound(this);
piano7.attachSound("piano7");
countermax = 20;
randommax = 2000;
lastnote = 8;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (this._name == "Benemy0") {
counter++;
if (counter > countermax) {
num = random(randommax);
if (num < 10) {
if ((counter > countermax) and (lastnote != 1)) {
piano1.start(0.15, 0);
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
piano1.setVolume(vol);
lastnote = 1;
}
counter = 0;
}
num = random(randommax);
if (num < 10) {
if ((counter > countermax) and (lastnote != 2)) {
piano2.start(0.15, 0);
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
piano2.setVolume(vol);
lastnote = 2;
}
counter = 0;
}
num = random(randommax);
if (num < 10) {
if ((counter > countermax) and (lastnote != 3)) {
piano3.start(0.15, 0);
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
piano3.setVolume(vol);
lastnote = 3;
}
counter = 0;
}
num = random(randommax);
if (num < 10) {
if ((counter > countermax) and (lastnote != 4)) {
piano4.start(0.15, 0);
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
piano4.setVolume(vol);
lastnote = 4;
}
counter = 0;
}
num = random(randommax);
if (num < 10) {
if ((counter > countermax) and (lastnote != 5)) {
piano5.start(0.15, 0);
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
piano5.setVolume(vol);
lastnote = 5;
}
counter = 0;
}
num = random(randommax);
if (num < 10) {
if ((counter > countermax) and (lastnote != 6)) {
piano6.start(0.15, 0);
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
piano6.setVolume(vol);
lastnote = 6;
}
counter = 0;
}
num = random(randommax);
if (num < 10) {
if ((counter > countermax) and (lastnote != 7)) {
piano7.start(0.15, 0);
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
piano7.setVolume(vol);
lastnote = 7;
}
counter = 0;
}
}
}
if (_global.pausing == 0) {
if (this._name != "Benemy") {
xdist = _root.you._x - this._x;
ydist = _root.you._y - this._y;
if (Math.abs(xdist) > 75) {
ydist = ydist + offsety;
} else {
offsety = random(200) - 100;
}
if (Math.abs(ydist) > 150) {
xdist = xdist + offsetx;
} else {
offsetx = random(200) - 100;
}
xspeed = xspeed + ((xdist / 1600) * _global.speed);
yspeed = yspeed + ((ydist / 1600) * _global.speed);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) < (wide + 10)) and (_root.you.stretch._currentframe < 14)) and (_root.you.hit == 0)) {
_root.you.hit = 1;
_root.sound.ding.start(0.26, 0);
_root.you.hitspeed = 0.01;
_root.lives.play();
if (_global.lives == 1) {
_global.pausing = 1;
_global.dead = 1;
_root.death.play();
Mouse.show();
} else {
_global.lives--;
}
}
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
}
}
}
Instance of Symbol 102 MovieClip "Cenemy" in Frame 4
onClipEvent (load) {
speed = 0.2;
xspeed = 0;
yspeed = 0;
targeted = 0;
x1speed = 0;
y1speed = 0;
type = random(2);
side = random(2);
mass = 0.05;
hit = 0;
wide = this._width / 2;
if (this._name != "Cenemy") {
this._x = 299;
this._y = 249;
}
angel = new Sound(this);
angel.attachSound("angel");
angel.setVolume(0);
angel.start(0, 9999);
}
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (_global.pausing == 0) {
if (this._name != "Cenemy") {
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 3.5) - 100);
if (vol < 0) {
vol = 0;
}
angel.setVolume(vol);
if ((this._x == 300) and (this._y == 250)) {
angle = 0;
} else {
x = 300 - this._x;
y = 250 - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
}
x2speed = (Math.sin((angle * Math.PI) / 180) * speed) * _global.speed;
y2speed = ((-Math.cos((angle * Math.PI) / 180)) * speed) * _global.speed;
x1speed = x1speed + ((x2speed - x1speed) * 0.01);
y1speed = y1speed + ((y2speed - y1speed) * 0.01);
this._x = this._x + (x1speed + xspeed);
this._y = this._y + (y1speed + yspeed);
if (((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) < (wide + 10)) and (_root.you.stretch._currentframe < 14)) and (_root.you.hit == 0)) {
_root.you.hit = 1;
_root.sound.ding.start(0.26, 0);
_root.you.hitspeed = 0.01;
_root.lives.play();
if (_global.lives == 1) {
_global.pausing = 1;
_global.dead = 1;
_root.death.play();
Mouse.show();
} else {
_global.lives--;
}
}
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (hit == 1) {
this.gotoAndPlay(2);
hit = 0;
}
fatty = 20;
if ((((this._x < fatty) or (this._x > (600 - fatty))) or (this._y < fatty)) or (this._y > (500 - fatty))) {
angel.stop();
_root.Denemy0.remolo.stop();
_root.sound.gotoAndPlay("level");
_root.level.gotoAndPlay(2);
_global.level++;
_global.Aenemynum = Math.round((_global.level / 3) + 1);
_global.Benemynum = Math.floor(_global.level / 3);
if (_global.Benemynum > 4) {
_global.Benemynum = 4;
}
_global.Cenemynum = 1;
if (_global.level > 3) {
_global.Denemynum = 1;
} else {
_global.Denemynum = 0;
}
_global.Eenemynum = Math.floor(_global.level / 7);
_global.rot = _global.Aenemynum;
if (_global.Psplash == 1) {
_global.Psplash = 0;
}
if (_global.Pspeed == 1) {
_global.Pspeed = 0;
_global.speed = 1;
}
if (_global.Pmissile == 1) {
_global.Pmissile = 0;
_global.missilemax = 1;
}
_global.Ptimer = 360;
_global.dupnum = 1000;
_global.edupnum = 0;
_global.minenum = 0;
_global.minedepth = -200;
_global.pausing = 0;
_root.you.stretch.gotoAndPlay("restart");
_root.bkg.gotoAndStop(1);
i = 0;
while (i < _global.Cenemynum) {
duplicateMovieClip (_root.Cenemy, "Cenemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Denemynum) {
duplicateMovieClip (_root.Denemy, "Denemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Eenemynum) {
duplicateMovieClip (_root.Eenemy, "Eenemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Aenemynum) {
duplicateMovieClip (_root.Aenemy, "Aenemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
i = 0;
while (i < _global.Benemynum) {
duplicateMovieClip (_root.Benemy, "Benemy" + i, _global.edupnum);
_global.edupnum++;
i++;
}
this._x = 300;
this._y = 250;
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
if (this._currentframe > 1) {
this.stop();
}
} else if (this._currentframe > 1) {
this.play();
}
}
}
Instance of Symbol 104 MovieClip "Denemy" in Frame 4
onClipEvent (load) {
speed = 8;
xspeed = 0;
yspeed = 0;
targeted = 0;
x1speed = 0;
y1speed = 0;
type = random(2);
side = random(2);
mass = 4;
wide = this._width / 2;
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
if (this._name != "Denemy") {
remolo = new Sound(this);
remolo.attachSound("remolo");
remolo.start(0, 9999);
remolo.setVolume(0);
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (_global.pausing == 0) {
if (this._name != "Denemy") {
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 45) - 17);
if (vol < 0) {
vol = 0;
}
remolo.setVolume(vol);
x = _root.you._x - this._x;
y = _root.you._y - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
x2speed = (Math.sin((angle * Math.PI) / 180) * speed) * _global.speed;
y2speed = ((-Math.cos((angle * Math.PI) / 180)) * speed) * _global.speed;
x1speed = x1speed + ((x2speed - x1speed) * 0.05);
y1speed = y1speed + ((y2speed - y1speed) * 0.05);
this._x = this._x + ((x1speed + xspeed) * _global.speed);
this._y = this._y + ((y1speed + yspeed) * _global.speed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
x = this._x - lastx;
y = this._y - lasty;
if (((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) < (wide + 10)) and (_root.you.stretch._currentframe < 14)) and (_root.you.hit == 0)) {
_root.you.hit = 1;
_root.sound.ding.start(0.26, 0);
_root.you.hitspeed = 0.01;
_root.lives.play();
if (_global.lives == 1) {
_global.pausing = 1;
_global.dead = 1;
_root.death.play();
Mouse.show();
} else {
_global.lives--;
}
}
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
this._rotation = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
lastx = this._x;
lasty = this._y;
}
}
}
Instance of Symbol 115 MovieClip "Eenemy" in Frame 4
onClipEvent (load) {
maxspeed = 0.6;
speed = maxspeed;
xspeed = 0;
yspeed = 0;
targeted = 0;
x1speed = 0;
y1speed = 0;
type = random(2);
side = random(2);
mass = 0.2;
hit = 0;
wide = this._width / 2;
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
x = (random(500) + 50) - this._x;
y = (random(400) + 50) - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
}
onClipEvent (enterFrame) {
if (_global.dead == 1) {
this.stop();
}
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (_global.pausing == 0) {
if (this._name != "Eenemy") {
if (speed < maxspeed) {
speed = speed + (0.01 * _global.speed);
}
mine = random(50 * ((-_global.speed) + 2));
if (((mine == 0) and (this._currentframe == 1)) and (_global.Pspeed == 0)) {
this.gotoAndPlay(2);
}
x1speed = Math.sin((angle * Math.PI) / 180) * speed;
y1speed = (-Math.cos((angle * Math.PI) / 180)) * speed;
this._x = this._x + ((x1speed + xspeed) * _global.speed);
this._y = this._y + ((y1speed + yspeed) * _global.speed);
this._rotation = this._rotation + (Math.abs(this._x - lastx) + Math.abs(this._y - lasty));
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) < (wide + 10)) and (_root.you.stretch._currentframe < 14)) and (_root.you.hit == 0)) {
_root.you.hit = 1;
_root.sound.ding.start(0.26, 0);
_root.you.hitspeed = 0.01;
_root.lives.play();
if (_global.lives == 1) {
_global.pausing = 1;
_global.dead = 1;
_root.death.play();
Mouse.show();
} else {
_global.lives--;
}
}
lastx = this._x;
lasty = this._y;
if (hit == 1) {
this.gotoAndStop(1);
hit = 0;
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
if (this._currentframe > 1) {
this.stop();
}
} else if (this._currentframe > 1) {
this.play();
}
}
}
Instance of Symbol 121 MovieClip "mine" in Frame 4
onClipEvent (load) {
this._rotation = random(360);
hit = 0;
targeted = 0;
wide = 13;
alive = 1;
side = (random(2) * 2) - 1;
speed = (random(100) / 50) - 1;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
removeMovieClip(this);
}
if (_global.pausing == 0) {
if (_global.dead == 0) {
this.stop();
this._rotation = this._rotation + ((speed * side) * _global.speed);
}
if (hit == 1) {
this.gotoAndPlay(2);
_root.sound.splode.start(0.2, 0);
hit = 0;
alive = 0;
}
if (_root.level._currentframe > 2) {
this._y = 9999;
}
if ((((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) < (wide + 10)) and (_root.you.stretch._currentframe < 14)) and (_root.you.hit == 0)) and (alive == 1)) {
_root.you.hit = 1;
_root.sound.ding.start(0.26, 0);
_root.sound.splode.start(0.2, 0);
_root.you.hitspeed = 0.01;
this.gotoAndPlay(2);
_root.lives.play();
if (_global.lives == 1) {
_global.pausing = 1;
_global.dead = 1;
_root.death.play();
Mouse.show();
} else {
_global.lives--;
}
hit = 0;
alive = 0;
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
if (this._currentframe > 1) {
this.stop();
}
} else if ((this._currentframe > 1) and (alive == 1)) {
this.play();
}
}
}
Instance of Symbol 127 MovieClip "power" in Frame 4
onClipEvent (load) {
type = random(2);
side = random(2);
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
speed = 10;
stay = 1;
num = 0;
wide = 15;
targeted = 0;
alive = 1;
hit = 0;
japan = new Sound(this);
japan.attachSound("japan");
japan.setVolume(0);
dive = new Sound(this);
dive.attachSound("dive");
dive.setVolume(100);
}
onClipEvent (enterFrame) {
if (_global.dead == 1) {
this.stop();
}
if (_global.pausing == 0) {
if (stay == 1) {
if (_global.level > 1) {
num++;
}
japan.stop();
if ((((num > 600) and (_global.Pmissile == 0)) and (_global.Pspeed == 0)) and (_global.Psplash == 0)) {
numb = random(500);
if (numb == 0) {
if (this._x > 300) {
xspeed = -((random(speed) / (speed / 2)) + (speed / 10));
} else {
xspeed = (random(speed) / (speed / 2)) + (speed / 10);
}
if (this._y > 250) {
yspeed = -((random(speed) / (speed / 2)) + (speed / 10));
} else {
yspeed = (random(speed) / (speed / 2)) + (speed / 10);
}
japan.start(0, 9999);
stay = 0;
}
}
} else {
vol = -((Math.sqrt(Math.pow(this._x - _root.you._x, 2) + Math.pow(this._y - _root.you._y, 2)) / 6) - 70);
if (vol < 0) {
vol = 0;
}
japan.setVolume(vol);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if ((((this._x > 700) or (this._x < -100)) or (this._y < -100)) or (this._y > 600)) {
type = random(2);
side = random(2);
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
stay = 1;
num = 0;
numb = 100;
}
if (hit == 1) {
japan.stop();
_root.sound.gotoAndPlay("sweep");
_root.sound.gotoAndPlay("bling");
_root.bkg.gotoAndStop(2);
_global.Ptimer = 0;
num = random(3);
if (num == 0) {
_global.Psplash = 1;
}
if (num == 1) {
_global.Pspeed = 1;
dive.play(0, 0);
}
if (num == 2) {
_global.Pmissile = 1;
_global.missilemax = 2;
}
type = random(2);
side = random(2);
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
stay = 1;
num = 0;
numb = 100;
hit = 0;
alive = 1;
}
if (_root.level._currentframe > 2) {
japan.stop();
type = random(2);
side = random(2);
if (type == 1) {
this._x = random(700) - 50;
this._y = (side * 600) - 50;
} else {
this._y = random(600) - 50;
this._x = (side * 700) - 50;
}
stay = 1;
num = 0;
numb = 100;
hit = 0;
alive = 1;
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
this.stop();
} else {
this.play();
}
}
}
Instance of Symbol 87 MovieClip "level" in Frame 4
onClipEvent (load) {
this.swapDepths(9994959);
this.gotoAndPlay(3);
}
Instance of Symbol 134 MovieClip "lives" in Frame 4
onClipEvent (enterFrame) {
if (_root._currentframe == 3) {
this._alpha = 0;
} else {
this._alpha = 40;
}
}
Instance of Symbol 136 MovieClip "pause" in Frame 4
onClipEvent (load) {
this.swapDepths(111100);
this._x = 10000;
}
Instance of Symbol 141 MovieClip "tutorial" in Frame 4
onClipEvent (load) {
timer = 0;
clicked = 0;
pausedd = 0;
}
onClipEvent (enterFrame) {
if ((timer > 500) and (this._currentframe == 1)) {
if (clicked == 0) {
this.gotoAndPlay("mouse");
}
} else {
timer++;
}
if (_global.dead == 1) {
this.stop();
}
}
Instance of Symbol 159 MovieClip "death" in Frame 4
onClipEvent (load) {
this.swapDepths(99999999999);
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 38
removeMovieClip(this._parent);
stop();
Symbol 30 MovieClip Frame 20
stop();
Symbol 33 MovieClip Frame 1
i = 0;
if (_global.q == 1) {
max = 7;
} else {
max = 5;
}
while (i < max) {
duplicateMovieClip (this.particle, "particle" + _global.dupnum, _global.dupnum);
_global.dupnum++;
i++;
}
Instance of Symbol 27 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(360);
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
this.stop();
} else {
this.play();
}
}
}
Instance of Symbol 27 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(360);
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
this.stop();
} else {
this.play();
}
}
}
Instance of Symbol 27 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(360);
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
this.stop();
} else {
this.play();
}
}
}
Instance of Symbol 30 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
if (_global.Psplash == 0) {
this.gotoAndStop("end");
}
}
Instance of Symbol 32 MovieClip "particle" in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
xspeed = (random(200) / 10) - 10;
yspeed = (random(200) / 10) - 10;
alpha = (random(20) / 10) + 3;
this._xscale = random(50) + 100;
this._yscale = random(50) + 100;
this._x = 0;
this._y = 0;
}
onClipEvent (enterFrame) {
if (_global.pausing == 0) {
if (this._parent._name != "boom") {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xspeed = xspeed * 0.85;
yspeed = yspeed * 0.85;
this._alpha = this._alpha - alpha;
this._xscale = this._xscale - alpha;
this._yscale = this._yscale - alpha;
if (this._xscale < 0) {
this._xscale = 0;
}
if (this._yscale < 0) {
this._yscale = 0;
}
}
}
}
Symbol 52 MovieClip Frame 1
stop();
Instance of Symbol 41 MovieClip "logo" in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
bump = 100;
speed = 0;
target = 100;
clicked = 0;
}
onClipEvent (enterFrame) {
speed = speed + ((target - bump) * 0.2);
speed = speed * 0.8;
bump = bump + speed;
this._xscale = bump;
this._yscale = bump;
this.white._alpha = (bump - 100) * 2;
}
Instance of Symbol 43 MovieClip "hitter" in Symbol 52 MovieClip Frame 1
on (rollOver) {
if ((_global.okay == 1) and (this._parent.logo.clicked == 0)) {
this._parent.logo.target = 130;
this._parent.baaah.start(0.5, 0);
}
}
on (rollOut) {
if ((_global.okay == 1) and (this._parent.logo.clicked == 0)) {
this._parent.logo.target = 100;
}
}
on (press) {
if ((_global.okay == 1) and (this._parent.logo.clicked == 0)) {
this._parent.logo.target = 80;
_root.sound.gotoAndPlay("bling");
this._parent.logo.clicked = 1;
timer = 70;
}
}
on (release) {
if (_global.okay == 1) {
this._parent.logo.target = 110;
}
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer == 1) {
_root.gotoAndPlay(2);
}
}
onClipEvent (load) {
timer = 0;
}
Instance of Symbol 41 MovieClip "logo" in Symbol 52 MovieClip Frame 15
onClipEvent (load) {
bump = 100;
speed = 0;
target = 100;
}
onClipEvent (enterFrame) {
speed = speed + ((target - bump) * 0.2);
speed = speed * 0.8;
bump = bump + speed;
this._xscale = bump;
this._yscale = bump;
this.white._alpha = (bump - 100) * 2;
}
Instance of Symbol 43 MovieClip "hitter" in Symbol 52 MovieClip Frame 15
on (rollOver) {
if (_global.okay == 1) {
this._parent.logo.target = 130;
}
}
on (rollOut) {
if (_global.okay == 1) {
this._parent.logo.target = 100;
}
}
on (press) {
if (_global.okay == 1) {
this._parent.logo.target = 80;
}
}
on (release) {
if (_global.okay == 1) {
this._parent.logo.target = 110;
_root.gotoAndPlay(2);
}
}
Symbol 52 MovieClip Frame 16
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 4
duplicateMovieClip (_root.bullet, "bullet" + _global.dupnum, _global.dupnum);
_root["bullet" + _global.dupnum]._x = this._parent._x;
_root["bullet" + _global.dupnum]._y = this._parent._y;
_global.dupnum++;
Symbol 55 MovieClip Frame 5
if (_global.Pmissile == 1) {
duplicateMovieClip (_root.bullet, "bullet" + _global.dupnum, _global.dupnum);
_root["bullet" + _global.dupnum]._x = this._parent._x;
_root["bullet" + _global.dupnum]._y = this._parent._y;
_global.dupnum++;
_global.missiles++;
}
Symbol 55 MovieClip Frame 13
gotoAndStop (1);
Symbol 55 MovieClip Frame 14
play();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 4
gotoAndStop (1);
Symbol 66 MovieClip Frame 7
gotoAndStop (1);
Symbol 66 MovieClip Frame 10
gotoAndStop (1);
Symbol 66 MovieClip Frame 13
gotoAndStop (1);
Symbol 66 MovieClip Frame 16
gotoAndStop (1);
Symbol 66 MovieClip Frame 19
gotoAndStop (1);
Symbol 66 MovieClip Frame 22
gotoAndStop (1);
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 83 MovieClip Frame 80
unloadMovie (_root.you2);
_root.gotoAndStop(4);
this.gotoAndStop(1);
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 28
_global.missiles = 0;
Instance of Symbol 96 MovieClip "prop" in Symbol 98 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.pausing == 0) {
this.stop();
} else {
this.play();
}
}
}
onClipEvent (enterFrame) {
if (_global.dead == 1) {
this.stop();
}
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 143
x = (random(500) + 50) - this._x;
y = (random(400) + 50) - this._y;
if (y < 0) {
arcSide = 0;
} else {
arcSide = 180;
}
angle = (((Math.atan(x / y) * -1) * 180) / Math.PI) + arcSide;
if ((((this._x > -5) and (this._x < 605)) and (this._y > -5)) and (this._y < 505)) {
i = 0;
exit = 0;
while ((i < _global.minenum) and (exit == 0)) {
if (_root["mine" + i]._currentframe == 30) {
_root["mine" + i]._rotation = random(360);
_root["mine" + i].hit = 0;
_root["mine" + i].targeted = 0;
_root["mine" + i].wide = 13;
_root["mine" + i].alive = 1;
_root["mine" + i].gotoAndStop(1);
_root["mine" + i]._x = this._x;
_root["mine" + i]._y = this._y;
exit = 1;
}
i++;
}
if (exit == 0) {
duplicateMovieClip (_root.mine, "mine" + _global.minenum, _global.minedepth);
_root["mine" + _global.minenum]._x = this._x;
_root["mine" + _global.minenum]._y = this._y;
_global.minenum++;
_global.minedepth++;
if (_global.minedepth > -10) {
_global.minedepth = -200;
}
}
}
this.speed = 0;
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 30
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 19
stop();
Symbol 134 MovieClip Frame 35
stop();
Symbol 134 MovieClip Frame 53
stop();
Symbol 134 MovieClip Frame 71
stop();
Symbol 134 MovieClip Frame 88
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 49
if (this.clicked == 0) {
gotoAndPlay ("mouseloop");
}
Symbol 141 MovieClip Frame 80
stop();
Instance of Symbol 41 MovieClip "logo" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
bump = 100;
speed = 0;
target = 100;
clicked = 0;
}
onClipEvent (enterFrame) {
speed = speed + ((target - bump) * 0.2);
speed = speed * 0.8;
bump = bump + speed;
this._xscale = bump;
this._yscale = bump;
this.white._alpha = (bump - 100) * 2;
}
Instance of Symbol 43 MovieClip "hitter" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
baaah = new Sound(this);
baaah.attachSound("baaah");
}
on (rollOver) {
this._parent.logo.target = 130;
this.baaah.start(0.5, 0);
}
on (rollOut) {
this._parent.logo.target = 100;
}
on (press) {
this._parent.logo.target = 80;
_root.sound.gotoAndPlay("bling");
this._parent.logo.clicked = 1;
timer = 70;
}
on (release) {
this._parent.logo.target = 110;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer == 1) {
getURL ("http://www.armorgames.com", "_blank");
}
}
Instance of Symbol 151 MovieClip "ivorylogo" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
bump = 100;
speed = 0;
target = 100;
clicked = 0;
}
onClipEvent (enterFrame) {
speed = speed + ((target - bump) * 0.2);
speed = speed * 0.8;
bump = bump + speed;
this._xscale = bump / 2;
this._yscale = bump / 2;
this.white._alpha = (bump - 100) * 2;
}
Instance of Symbol 43 MovieClip "hitter" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
baaah = new Sound(this);
baaah.attachSound("baaah");
}
on (rollOver) {
this._parent.ivorylogo.target = 130;
this.baaah.start(0.5, 0);
}
on (rollOut) {
this._parent.ivorylogo.target = 100;
}
on (press) {
this._parent.ivorylogo.target = 80;
_root.sound.gotoAndPlay("bling");
this._parent.ivorylogo.clicked = 1;
timer = 70;
}
on (release) {
this._parent.ivorylogo.target = 110;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer == 1) {
getURL ("http://www.ivoryboy.com", "_blank");
}
}
Instance of Symbol 157 MovieClip "replay" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
bump = 100;
speed = 0;
target = 100;
clicked = 0;
}
onClipEvent (enterFrame) {
speed = speed + ((target - bump) * 0.2);
speed = speed * 0.8;
bump = bump + speed;
this._xscale = bump;
this._yscale = bump;
this.white._alpha = (bump - 100) * 2;
}
Instance of Symbol 43 MovieClip "hitter" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
baaah = new Sound(this);
baaah.attachSound("baaah");
}
on (rollOver) {
this._parent.replay.target = 130;
this.baaah.start(0.5, 0);
}
on (rollOut) {
this._parent.replay.target = 100;
}
on (press) {
this._parent.replay.target = 80;
_root.sound.gotoAndPlay("bling");
this._parent.replay.clicked = 1;
timer = 70;
}
on (release) {
this._parent.replay.target = 110;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (timer == 1) {
this._parent.replay.clicked = 0;
this._parent.logo.clicked = 0;
this._parent.ivorylogo.clicked = 0;
_root.gotoAndPlay(2);
_global.okay = 1;
_global.dupnum = 1000;
_global.edupnum = 0;
_global.minenum = 0;
_global.minedepth = -200;
_global.missiles = 0;
_global.missilemax = 1;
_global.pausing = 0;
_global.explode = 0;
_global.exploded = 0;
_global.Psplash = 0;
_global.Pspeed = 0;
_global.Pmissile = 0;
_global.speed = 1;
_global.num = 0;
_global.okay = 0;
_global.lives = 5;
_global.level = 1;
_global.dead = 0;
_root.you.t = 0;
_root.you.hit = 0;
_root.you.unpause = 0;
_root.you.unpausing = 0;
_root.you.stretch.gotoAndPlay("restart");
_root.tutorial.gotoAndStop(1);
this._parent._parent.gotoAndStop(1);
Mouse.hide();
}
}
Symbol 159 MovieClip Frame 1
this.swapDepths(9.3249999455994E16);
stop();
Symbol 159 MovieClip Frame 34
stop();