Frame 1
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Frame 2
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
Instance of Symbol 204 MovieClip in Frame 2
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Frame 3
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Instance of Symbol 213 MovieClip in Frame 3
on (release) {
getURL ("http://donutmaster.newgrounds.com", _blank);
}
Frame 4
stopAllSounds();
menusound = new Sound();
menusound.attachSound("menusong");
menusound.start(0, 9999);
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
function fire(ang, rad, pow) {
hit = false;
f++;
if (f >= 95) {
f = 0;
}
if (!shooting) {
mchar.hand.gotoAndPlay(1);
}
xDiff = Math.cos(ang);
yDiff = Math.sin(ang);
if (!hit) {
i = 0;
while (i < 650) {
xComp = (((Math.cos(ang) * i) + mchar._x) + mchar.hand._x) + (Math.cos(ang) * rad);
yComp = (((Math.sin(ang) * i) + mchar._y) + mchar.hand._y) + (Math.sin(ang) * rad);
if ((i >= 640) || (_root.mground.hitTest(xComp, yComp, true))) {
if (!hit) {
if (yComp < 255) {
yComp = 255;
}
createEmptyMovieClip("shot" + f, f);
_root["shot" + f].lineStyle(1, 16777215, 20);
_root["shot" + f].moveTo((mchar._x + ((xscale / mchar._xscale) * mchar.hand._x)) + (Math.cos(ang) * rad), (mchar._y + mchar.hand._y) + (Math.sin(ang) * rad));
_root["shot" + f].lineTo(xComp, yComp);
_root["shot" + f].i = 0;
_root["shot" + f].onEnterFrame = function () {
this.i++;
if (this.i > 3) {
this.removeMovieClip();
}
};
if (i < 640) {
duplicateMovieClip (splode, "splode" + f, f + 5);
_root["splode" + f]._x = xComp;
_root["splode" + f]._y = yComp;
_root["splode" + f]._rotation = 90 + ((ang * 180) / Math.PI);
_root["splode" + f].gotoAndPlay(1);
}
hit = true;
}
}
i = i + 10;
}
}
}
stop();
stop();
var xspd = 0;
var xmax = 4;
var yspd = 0;
var fall = true;
var jump = false;
var curframe = 1;
var curweap = 2;
var xscale = mchar._xscale;
var e = 100;
var f = 0;
var l = 0;
var offmax = 10;
var maxen = 7;
var weapons = 6;
onEnterFrame = function () {
if ((Key.isDown(81) && (!swinging)) && (!shooting)) {
if (!changew) {
if ((curweap - 1) <= 0) {
curweap = weapons;
} else if ((curweap - 1) == 4) {
curweap = 3;
} else {
curweap = curweap - 1;
}
changew = true;
}
} else if ((Key.isDown(69) && (!swinging)) && (!shooting)) {
if (!changew) {
if ((curweap + 1) > weapons) {
curweap = 1;
} else if ((curweap + 1) == 4) {
curweap = 5;
} else {
curweap = curweap + 1;
}
changew = true;
}
} else {
changew = false;
}
if (Key.isDown(65) && (!Key.isDown(68))) {
if (mground.hitTest(mchar._x - (mchar.ani.head._width / 2), mchar._y - 3, true) && (mground.hitTest(mchar._x - (mchar.ani.head._width / 2), mchar._y - 15, true))) {
xspd = 0;
} else {
xspd = -xmax;
}
mchar._xscale = -xscale;
if (!jump) {
curframe = 2;
}
} else if (Key.isDown(68) && (!Key.isDown(65))) {
if (!jump) {
curframe = 2;
}
mchar._xscale = xscale;
if (mground.hitTest(mchar._x + (mchar.ani.head._width / 2), mchar._y - 3, true) && (mground.hitTest(mchar._x + (mchar.ani.head._width / 2), mchar._y - 15, true))) {
xspd = 0;
} else {
xspd = xmax;
}
} else {
xspd = 0;
if (!jump) {
curframe = 1;
}
}
if (Key.isDown(87) && (!jump)) {
curframe = 3;
jump = true;
yspd = -13;
fall = true;
}
if (Key.isDown(83)) {
}
if (!mground.hitTest(mchar._x, mchar._y + yspd, true)) {
fall = true;
} else if (yspd > 0) {
fall = false;
jump = false;
}
if (yspd > 11) {
yspd = 11;
}
if (yspd > -2) {
while (mground.hitTest(mchar._x, (mchar._y - 1) + yspd, true)) {
mchar._y--;
}
}
mchar._x = mchar._x + xspd;
mchar._y = mchar._y + yspd;
if (fall) {
yspd++;
} else {
yspd = 0;
}
mchar.gotoAndStop(curframe);
mchar.hand.hand1.gotoAndStop(curweap);
if (curweap == 2) {
mchar.ani.hand2._visible = false;
} else {
mchar.ani.hand2._visible = true;
}
mchar.hand.hand1.handmc.gotoAndStop(1);
mchar.hand.hand1.handmc2.gotoAndStop(1);
mchar.ani.head.gotoAndStop(1);
mchar.ani.body.gotoAndStop(1);
mchar.ani.foot1.gotoAndStop(1);
mchar.ani.foot2.gotoAndStop(1);
mchar.ani.hand2.gotoAndStop(1);
radAngle = Math.atan2((_root._ymouse - mchar._y) - mchar.hand._y, (_root._xmouse - mchar._x) - mchar.hand._x);
if (shooting) {
stimer++;
if (stimer > 2) {
shotsound = new Sound();
shotsound.attachSound("uzi");
shotsound.start();
radAngle = radAngle + (offset / 70);
fire(radAngle, 12, 4);
stimer = 0;
offmax = offmax + 0.5;
}
offset = random(offmax) - random(offmax);
} else {
offmax = 0;
}
if (swinging) {
mchar.hand._rotation = mchar.hand._rotation + 40;
if (mchar.hand._rotation == 0) {
swinging = false;
}
}
if (((curweap != 3) && (curweap != 4)) && (curweap != weapons)) {
if (mchar._xscale == xscale) {
mchar.hand._rotation = int((radAngle * 360) / (Math.PI*2));
} else {
mchar.hand._rotation = (-int((radAngle * 360) / (Math.PI*2))) + 180;
}
} else if (!swinging) {
mchar.hand._rotation = 0;
}
if (offmax > 10) {
offmax = 10;
}
};
onMouseDown = function () {
if ((!scrolltime) && (lcover.hitTest(_root._xmouse, _root._ymouse, true))) {
if (curweap == 1) {
shotsound = new Sound();
shotsound.attachSound("pist");
shotsound.start();
fire(radAngle, 12, 10);
} else if (curweap == 2) {
shotsound = new Sound();
shotsound.attachSound("shottie");
shotsound.start();
fire(radAngle, 25, 10);
fire(radAngle + 0.1, 25, 10);
fire(radAngle - 0.1, 25, 10);
} else if (curweap == 3) {
if (!swinging) {
swing = new Sound();
sbla = 1 + Math.round(Math.random());
swing.attachSound("swing" + sbla);
swing.start();
}
swinging = true;
} else if (curweap == 4) {
if (!swinging) {
swing = new Sound();
sbla = 1 + Math.round(Math.random());
swing.attachSound("swing" + sbla);
swing.start();
}
swinging = true;
} else if (curweap == 5) {
offmax = 10;
offset = 0;
stimer = 3;
shooting = true;
} else if (curweap == weapons) {
if (!swinging) {
swing = new Sound();
sbla = 1 + Math.round(Math.random());
swing.attachSound("swing" + sbla);
swing.start();
}
swinging = true;
}
}
};
onMouseUp = function () {
offset = 0;
shooting = false;
};
Frame 5
function fire(ang, rad, pow) {
hit = false;
f++;
if (f >= 95) {
f = 0;
}
if (curweap != 5) {
char.hand.gotoAndPlay(1);
}
xDiff = Math.cos(ang);
yDiff = Math.sin(ang);
if (!hit) {
if (curweap == 2) {
iint = 20;
} else {
iint = 12;
}
i = 0;
while (i < 620) {
xComp = (((Math.cos(ang) * i) + char._x) + char.hand._x) + (Math.cos(ang) * rad);
yComp = (((Math.sin(ang) * i) + char._y) + char.hand._y) + (Math.sin(ang) * rad);
g = enemyarr.length;
while (g >= 0) {
if (((i >= (620 - iint)) || (_root.level["hg" + stagen].hitTest(xComp, yComp, true))) || (_root["e_" + enemyarr[g]].hitTest(xComp, yComp, true))) {
if (!hit) {
createEmptyMovieClip("shot" + f, f);
_root["shot" + f].lineStyle(1, 16777215, 20);
_root["shot" + f].moveTo((char._x + ((xscale / char._xscale) * char.hand._x)) + (Math.cos(ang) * rad), (char._y + char.hand._y) + (Math.sin(ang) * rad));
_root["shot" + f].lineTo(xComp, yComp);
_root["shot" + f].i = 0;
_root["shot" + f].onEnterFrame = function () {
if (!gpause) {
this.i++;
if (this.i > 3) {
this.removeMovieClip();
}
}
};
if (_root["e_" + enemyarr[g]].hitTest(xComp, yComp, true)) {
if (_root["e_" + enemyarr[g]]._alpha == 100) {
_root["e_" + enemyarr[g]].health = _root["e_" + enemyarr[g]].health - (pow * 3);
bsplat(xComp, yComp);
}
} else if (i < (620 - iint)) {
duplicateMovieClip (splode, "splode" + f, f + 5);
_root["splode" + f]._x = xComp;
_root["splode" + f]._y = yComp;
_root["splode" + f]._rotation = 90 + ((ang * 180) / Math.PI);
_root["splode" + f].gotoAndPlay(1);
}
hit = true;
}
}
g--;
}
i = i + iint;
}
}
}
function enemyspawn(type, weap) {
if (type == 1) {
arrdeen = new Array(1, 4, 6);
etype = arrdeen[Math.round(Math.random() * arrdeen.length)];
} else if (type == 2) {
arrdeen = new Array(2, 5);
etype = arrdeen[Math.round(Math.random() * arrdeen.length)];
} else if (type == 3) {
etype = 3;
} else if (type == 4) {
etype = 8;
}
point = Math.round(Math.random() * (spawnxarr.length - 1));
e = e + 1;
eons++;
enemyarr.push(e);
attachMovie("char", "e_" + e, e);
_root["e_" + e].swapDepths(char);
char.swapDepths(hud);
if (type != 15) {
_root["e_" + e].curframe = etype;
if (weap != 4) {
if (weap == 6) {
_root["e_" + e].curweap = 1 + (5 * Math.round(Math.random()));
} else {
_root["e_" + e].curweap = weap;
}
} else {
_root["e_" + e].curweap = 1;
}
if (zomb) {
_root["e_" + e].zomb = true;
_root["e_" + e].spd = 1;
_root["e_" + e]._xscale = _root["e_" + e]._xscale * 2;
_root["e_" + e]._yscale = _root["e_" + e]._yscale * 2;
_root["e_" + e]._x = 25;
_root["e_" + e]._y = -100;
_root["e_" + e].maxdist = 250;
_root["e_" + e].health = 5000;
_root["e_" + e].pvalue = 5000;
bossfight = true;
zomb = false;
} else {
_root["e_" + e].pvalue = 100 + (200 * (type - 1));
if (stagen != 5) {
if (((etype == 2) || (etype == 3)) || (etype == 5)) {
_root["e_" + e].health = 300;
} else {
_root["e_" + e].health = 100;
}
_root["e_" + e]._x = spawnxarr[point];
_root["e_" + e]._y = spawnyarr[point];
} else {
_root["e_" + e].health = 0;
_root["e_" + e]._x = 50 + (Math.random() * (Stage.width - 100));
_root["e_" + e]._y = -15;
}
_root["e_" + e].spd = 1 + (Math.random() * 1.5);
_root["e_" + e].maxdist = 180;
}
} else {
_root["e_" + e].pvalue = 5000;
_root["e_" + e].clown = true;
_root["e_" + e].curframe = 7;
_root["e_" + e].curweap = 4;
_root["e_" + e].spd = 2;
_root["e_" + e]._xscale = _root["e_" + e]._xscale * 1.2;
_root["e_" + e]._yscale = _root["e_" + e]._yscale * 1.2;
_root["e_" + e]._x = 25;
_root["e_" + e]._y = -100;
_root["e_" + e].maxdist = 220;
_root["e_" + e].health = 3000;
}
_root["e_" + e].xscale = _root["e_" + e]._xscale;
_root["e_" + e].fall = false;
_root["e_" + e].jump = false;
_root["e_" + e].yspd = 0;
_root["e_" + e].spd = 1 + (Math.random() * 1.5);
if ((weap == 1) || (weap == 2)) {
_root["e_" + e].powuh = 5;
} else if (weap == 5) {
_root["e_" + e].powuh = 2;
} else if (((weap == 3) || (weap == 4)) || (weap == 6)) {
_root["e_" + e].powuh = 10;
}
_root["e_" + e].stimer = 30;
_root["e_" + e].e = e;
_root["e_" + e].onEnterFrame = function () {
if (!chardead) {
if (this.zomb) {
zhealth.bar._xscale = this.health / 50;
zhealth.bar._alpha = 60;
if (this.health <= 0) {
zhealth.removeMovieClip();
}
}
if (this.clown) {
chealth.bar._xscale = this.health / 30;
if ((JESUSISDEAD == true) && (this.health <= 0)) {
chealth.removeMovieClip();
}
}
if (this.curweap == 2) {
this.ani.hand.hand1.handmc2.gotoAndStop(this.curframe);
this.ani.hand2._visible = false;
} else {
this.ani.hand2._visible = true;
}
if ((!gpause) && (!falling)) {
if (this.health > 0) {
this.dist = Math.pow(char._x - this._x, 2) + Math.pow(char._y - this._y, 2);
this.stimer++;
if (this.dist < 32400) {
this.targx = char._x;
this.targy = char._y - 20;
} else if (this.stimer > 30) {
if ((Math.random() * 100) > 60) {
this.targx = char._x;
this.targy = char._y - 20;
} else {
this.targx = Math.random() * Stage.width;
this.targy = Math.random() * Stage.height;
}
this.stimer = 0;
}
if ((((this.targx == char._x) && (this.targy == (char._y - 20))) && (health > 0)) && (!gamewin)) {
this.radAngle = Math.atan2((this.targy - this._y) - this.hand._y, (this.targx - this._x) - this.hand._x);
if (this.stimer > 20) {
this.blahr = Math.random() * 10;
if (this.blahr > 8) {
this.radAngle = this.radAngle + ((((Math.random() * 30) - (Math.random() * 30)) * Math.PI) / 180);
if (this.curweap == 1) {
eshotsound = new Sound();
eshotsound.attachSound("pist");
eshotsound.start();
enemyfire(this.e, this.radAngle, 20, this.powuh);
} else if (this.curweap == 2) {
eshotsound = new Sound();
eshotsound.attachSound("shottie");
eshotsound.start();
enemyfire(this.e, this.radAngle, 25, this.powuh);
enemyfire(this.e, this.radAngle - 0.1, 25, Math.round(this.powuh / 3));
enemyfire(this.e, this.radAngle + 0.1, 25, Math.round(this.powuh / 3));
} else if (this.curweap == 3) {
eswing = new Sound();
esbla = 1 + Math.round(Math.random());
eswing.attachSound("swing" + esbla);
eswing.start();
this.swinging = true;
} else if (this.curweap == 4) {
eswing = new Sound();
esbla = 1 + Math.round(Math.random());
eswing.attachSound("swing" + esbla);
eswing.start();
this.swinging = true;
} else if (this.curweap == 5) {
this.offmax = 10;
this.offset = 0;
this.shootingtime = 0;
this.shooting = true;
} else if (this.curweap == 6) {
eswing = new Sound();
esbla = 1 + Math.round(Math.random());
eswing.attachSound("swing" + esbla);
eswing.start();
this.swinging = true;
}
this.stimer = 0;
}
}
} else if (this._xscale == this.xscale) {
this.radAngle = 0;
} else {
this.radAngle = 3.14;
}
if (this.shooting) {
this.shootingtime++;
if (this.shootingtime < 12) {
if ((this.shootingtime % 2) == 0) {
eshotsound = new Sound();
eshotsound.attachSound("uzi");
eshotsound.start();
enemyfire(this.e, this.radAngle + (this.offset / 70), 20, this.powuh);
this.offset = this.offset + 2;
}
} else {
this.shooting = false;
}
}
if (this.swinging) {
this.hand._rotation = this.hand._rotation + 40;
if (char.hitTest((this._x + this.hand._x) + (Math.cos(this.hand._rotation) * 30), (this._y + this.hand._y) + (Math.sin(this.hand._rotation) * -30), true)) {
flash1.gotoAndPlay(1);
health = health - 2;
bsplat((this._x + this.hand._x) + (Math.cos(this.hand._rotation) * 30), (this._y + this.hand._y) + (Math.sin(this.hand._rotation) * -30));
}
if (this.hand._rotation == 0) {
this.swinging = false;
}
} else {
this.hand._rotation = 0;
}
if (((this.curweap != 3) && (this.curweap != 4)) && (this.curweap != weapons)) {
if (this._xscale == this.xscale) {
this.hand._rotation = (this.radAngle * 180) / Math.PI;
} else {
this.hand._rotation = 180 - ((this.radAngle * 180) / Math.PI);
}
}
if ((this.targx > (this._x + 25)) && ((!level["g" + stagen].hitTest(this._x + (this.ani.head._width / 2), this._y - 2, true)) || (!level["g" + stagen].hitTest(this._x + (this.ani.head._width / 2), this._y - 42, true)))) {
this._x = this._x + this.spd;
this.gotoAndStop(2);
this._xscale = this.xscale;
} else if ((this.targx < (this._x - 25)) && ((!level["g" + stagen].hitTest(this._x - (this.ani.head._width / 2), this._y - 2, true)) || (!level["g" + stagen].hitTest(this._x - (this.ani.head._width / 2), this._y - 42, true)))) {
this._x = this._x - this.spd;
this.gotoAndStop(2);
this._xscale = -this.xscale;
} else {
if (this.dist > 32400) {
this.stimer = 30;
}
this.gotoAndStop(1);
}
if ((this.targy < (this._y - 25)) && (!this.jump)) {
this.a = 0;
while (this.a < 90) {
this.b = 20;
if ((((this._xscale == this.xscale) && (level["g" + stagen].hitTest(this._x + this.b, (this._y - 3) - this.a, true))) || ((this._xscale == (-this.xscale)) && (level["g" + stagen].hitTest(this._x - this.b, (this._y - 3) - this.a, true)))) || (level["g" + stagen].hitTest(this._x, (this._y - 3) - this.a, true))) {
this.yspd = -14;
this.jump = true;
}
this.a = this.a + 10;
}
}
if (!level["g" + stagen].hitTest(this._x, this._y + this.yspd, true)) {
this.fall = true;
} else if (this.yspd > 0) {
this.fall = false;
this.jump = false;
}
if (this.yspd > 9) {
this.yspd = 9;
}
this._y = this._y + this.yspd;
if (this.fall) {
this.yspd++;
} else {
this.yspd = 0;
}
this.dropped = false;
if (this.yspd > -2) {
while (level["g" + stagen].hitTest(this._x, (this._y - 1) + this.yspd, true)) {
this._y--;
}
}
} else if (this.health <= 0) {
if (!this.dead) {
score = score + this.pvalue;
this.health = 0;
this.yspd = 0;
if (stagen != 5) {
eons--;
deadn++;
this.deadn = deadn;
}
if (this.zomb) {
healthdrop(this._x, this._y);
healthdrop(this._x, this._y);
healthdrop(this._x, this._y);
healthdrop(this._x, this._y);
}
if (char._x > this._x) {
if (this._xscale == this.xscale) {
this.gotoAndStop(5);
} else {
this.gotoAndStop(4);
}
} else if (this._xscale == this.xscale) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(5);
}
this.dead = true;
}
if (((stagen == 5) && (jhealth.bar._xscale <= 0)) && (!this.subbed)) {
eons--;
deadn++;
this.deadn = deadn;
this.subbed = true;
}
if (!level["g" + stagen].hitTest(this._x, this._y + this.yspd, true)) {
this.yspd++;
this._y = this._y + this.yspd;
} else if (!this.dropped) {
edie = new Sound();
edie.attachSound("dieded");
edie.start();
this.havegun = false;
lw = 0;
while (lw < gunarray.length) {
if (gunarray[lw] == this.curweap) {
this.havegun = true;
}
lw++;
}
if (!this.havegun) {
gundrop(this._x, this._y, this.curweap);
}
if ((this.deadn % 10) == 0) {
healthdrop(this._x, this._y - 10);
}
this.dropped = true;
}
if (this.deadn < (deadn - 4)) {
if (!this.fade) {
this.b = 0;
while (this.b <= enemyarr.length) {
if (enemyarr[this.b] == this.e) {
enemyarr.splice(this.b, 1);
}
this.b++;
}
this.fade = true;
}
}
if (this.fade) {
if (this._alpha <= 0) {
this.removeMovieClip();
} else {
this._alpha = this._alpha - 15;
}
}
}
}
if ((!this.dead) || (this.dead && (this.ani._currentframe < 12))) {
this.hand.hand1.gotoAndStop(this.curweap);
if (this.curframe < 4) {
this.hand.hand1.handmc.gotoAndStop(this.curframe);
this.hand.hand1.handmc2.gotoAndStop(this.curframe);
this.ani.hand1.gotoAndStop(this.curframe);
this.ani.head.gotoAndStop(this.curframe);
this.ani.body.gotoAndStop(this.curframe);
this.ani.foot1.gotoAndStop(this.curframe);
this.ani.foot2.gotoAndStop(this.curframe);
this.ani.hand2.gotoAndStop(this.curframe);
} else {
this.hand.hand1.handmc.gotoAndStop(1);
this.hand.hand1.handmc2.gotoAndStop(1);
this.ani.hand1.gotoAndStop(1);
this.ani.head.gotoAndStop(this.curframe);
this.ani.body.gotoAndStop(1);
this.ani.foot1.gotoAndStop(1);
this.ani.foot2.gotoAndStop(1);
this.ani.hand2.gotoAndStop(1);
}
}
if (scrolltime) {
this.removeMovieClip();
}
}
};
}
function enemyfire(e, ang, rad, pow) {
hit = false;
f++;
if (f >= 95) {
f = 0;
}
_root["e_" + e].hand.gotoAndPlay(1);
if (!hit) {
i = 0;
while (i < 550) {
cosa = Math.cos(ang) * i;
sina = Math.sin(ang) * i;
xComp = ((cosa + _root["e_" + e]._x) + ((_root["e_" + e].xscale / _root["e_" + e]._xscale) * _root["e_" + e].hand._x)) + (Math.cos(ang) * rad);
yComp = ((sina + _root["e_" + e]._y) + _root["e_" + e].hand._y) + (Math.sin(ang) * rad);
if (((i >= 550) || (_root.level["hg" + stagen].hitTest(xComp, yComp, true))) || (char.hitTest(xComp, yComp, true))) {
if (!hit) {
createEmptyMovieClip("shot" + f, f);
_root["shot" + f].lineStyle(1, 16776960, 20);
_root["shot" + f].moveTo(xComp - cosa, yComp - sina);
_root["shot" + f].lineTo(xComp, yComp);
_root["shot" + f].i = 0;
_root["shot" + f].onEnterFrame = function () {
this.i++;
if (this.i > 2) {
this.removeMovieClip();
}
};
if (char.hitTest(xComp, yComp, true)) {
flash1.gotoAndPlay(1);
health = health - Math.round(pow / 2);
bsplat(xComp, yComp);
} else if (i < 550) {
duplicateMovieClip (splode, "splode" + f, f + 5);
_root["splode" + f]._x = xComp;
_root["splode" + f]._y = yComp;
_root["splode" + f]._rotation = 90 + ((ang * 180) / Math.PI);
new Color(_root["splode" + f]).setRGB(16776960);
_root["splode" + f].gotoAndPlay(1);
}
hit = true;
}
}
i = i + 15;
}
}
}
function bsplat(xpos, ypos) {
var _local3 = 0;
while (_local3 < 4) {
l++;
attachMovie("blood", "b_" + l, (e + l) + 200);
_root["b_" + l]._x = xpos;
_root["b_" + l]._y = ypos;
_root["b_" + l].xspd = (Math.random() * 5) - (Math.random() * 5);
_root["b_" + l].yspd = (Math.random() * 6) - (Math.random() * 6);
_root["b_" + l]._xscale = (_root["b_" + l]._yscale = 80 + (Math.random() * 50));
_root["b_" + l]._alpha = 80 + (Math.random() * 20);
_root["b_" + l].onEnterFrame = function () {
if (!gpause) {
this._x = this._x + this.xspd;
this._y = this._y + this.yspd;
this.yspd++;
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
_local3++;
}
}
function wavechange() {
if (wavecount >= 3) {
if (gosign._x != 550) {
attachMovie("gosign", "gosign", 100000);
gosign._x = 550;
gosign._y = 30;
}
} else {
wave++;
attachMovie("wavesign", "w_" + wave, ((wave + e) + l) + 1200);
_root["w_" + wave]._x = Stage.width / 2;
_root["w_" + wave]._y = Stage.height / 2;
_root["w_" + wave].gotoAndPlay(1);
wcount = 0;
wavecount++;
}
}
function JESUSTIME() {
attachMovie("jhealth", "jhealth", 8674);
jhealth._x = 420.5;
jhealth._y = 16.95;
jhealth._alpha = 60;
e = e + 1;
eons++;
enemyarr.push(e);
attachMovie("char", "e_" + e, e);
_root["e_" + e].swapDepths(char);
char.swapDepths(hud);
_root["e_" + e]._x = 250;
_root["e_" + e]._y = 200;
_root["e_" + e].curframe = 8;
_root["e_" + e].health = 5000;
_root["e_" + e].spd = 1 + (Math.random() * 1.5);
_root["e_" + e].maxdist = 180;
_root["e_" + e]._xscale = _root["e_" + e]._xscale * 1.1;
_root["e_" + e]._yscale = _root["e_" + e]._yscale * 1.1;
_root["e_" + e].pvalue = 5000;
_root["e_" + e].xscale = _root["e_" + e]._xscale;
_root["e_" + e].fall = false;
_root["e_" + e].jump = false;
_root["e_" + e].yspd = 0;
_root["e_" + e].spd = 1 + (Math.random() * 1.5);
_root["e_" + e].powuh = 10;
_root["e_" + e].stimer = 0;
_root["e_" + e].e = e;
_root["e_" + e].targx = Math.random() * Stage.width;
_root["e_" + e].targy = Math.random() * Stage.height;
_root["e_" + e].arrayness = new Array();
_root["e_" + e].backuptimer = 0;
_root["e_" + e].jesus = true;
_root["e_" + e].onEnterFrame = function () {
if ((!gpause) && (!chardead)) {
if (this.health <= 0) {
if (!this.dead) {
score = score + this.pvalue;
JESUSISDEAD = true;
jhealth.removeMovieClip();
this.health = 0;
this.yspd = 0;
eons--;
deadn++;
this.deadn = deadn;
if (char._x > this._x) {
if (this._xscale == this.xscale) {
this.gotoAndStop(5);
} else {
this.gotoAndStop(4);
}
} else if (this._xscale == this.xscale) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(5);
}
this.dead = true;
}
if (!level["g" + stagen].hitTest(this._x, this._y, true)) {
this.yspd++;
this._y = this._y + this.yspd;
} else if (!this.dropped) {
edie = new Sound();
edie.attachSound("dieded");
edie.start();
this.dropped = true;
}
if (this.deadn < (deadn - 5)) {
if (!this.fade) {
this.b = 0;
while (this.b <= enemyarr.length) {
if (enemyarr[this.b] == this.e) {
enemyarr.splice(this.b, 1);
}
this.b++;
}
this.fade = true;
}
}
if (this.fade) {
if (this._alpha <= 0) {
this.removeMovieClip();
} else {
this._alpha = this._alpha - 15;
}
}
this._alpha = 100;
} else {
this._x = this._x + ((this.targx - this._x) / 10);
this._y = this._y + ((this.targy - this._y) / 10);
if (this.targx > this._x) {
this._xscale = this.xscale;
} else if (this.targx < this._x) {
this._xscale = -this.xscale;
}
this.rot = ((-Math.atan(this.oldx - this._x)) * 90) / Math.PI;
if (this._rotation > 30) {
this._rotation = 30;
}
if (this._rotation < -30) {
this._rotation = -30;
}
if (this.rot > 20) {
this.rot = 20;
}
if (this.rot < -20) {
this.rot = -20;
}
this.oldx = this._x;
this.oldy = this._y;
this.backuptimer++;
if (this.backuptimer > 200) {
this.attacking = false;
this.resi = false;
this.stimer = 41;
}
this._rotation = this._rotation - (this._rotation - this.rot);
jhealth.bar._xscale = this.health / 50;
if (this.stimer > 40) {
this.barf = Math.round(Math.random() * 2) + 1;
if (this.barf == 1) {
this.targx = Stage.width / 2;
this.targy = -50 + (Stage.height / 2);
this.attacking = true;
} else if (this.barf == 2) {
this.dayum = 0;
while (this.dayum <= enemyarr.length) {
if ((_root["e_" + enemyarr[this.dayum]].dead == true) && (enemyarr[this.dayum] != this.e)) {
this.arrayness.push(enemyarr[this.dayum]);
}
this.dayum++;
}
this.ohsnap = this.arrayness[Math.round(Math.random() * this.arrayness.length) - 1];
this.resi = true;
} else if (this.barf == 3) {
this.targx = Math.random() * Stage.width;
this.targy = Math.random() * Stage.height;
}
this.stimer = 0;
}
if (this._currentframe == 6) {
this._alpha = 60;
} else {
this._alpha = 100;
}
if (this.attacking) {
if (Math.sqrt(Math.pow(this.targx - this._x, 2) + Math.pow(this.targy - this._y, 2)) < 1) {
this.gotoAndStop(8);
if ((this.ani._currentframe > 40) && (this.ani._currentframe < 65)) {
elec(0, this.targx, -100, false, this._x, this._y - 40);
}
if (this.ani._currentframe > 68) {
bo = 0;
while (bo < 4) {
this.xval = Math.random() * Stage.width;
this.yval = Stage.height;
while (this.yval > 200) {
if (_root.level["hg" + stagen].hitTest(this.xval, this.yval, true)) {
elec(bo, this.xval, this.yval, false, this.xval, -100);
}
this.yval = this.yval - 12;
}
bo++;
}
}
}
if (this.ani._currentframe >= 95) {
this.attacking = false;
}
} else if (this.resi) {
this.targx = _root["e_" + this.ohsnap]._x;
this.targy = _root["e_" + this.ohsnap]._y - 75;
if (Math.sqrt(Math.pow(this.targx - this._x, 2) + Math.pow(this.targy - this._y, 2)) < 1) {
this.gotoAndStop(7);
if ((this.ani._currentframe > 25) && (this.ani._currentframe < 37)) {
if (this._xscale == this.xscale) {
elec(0, this.targx, this.targy + 75, false, this._x + 10, this._y - 20);
} else if (this._xscale == (-this.xscale)) {
elec(0, this.targx, this.targy + 75, false, this._x - 10, this._y - 20);
}
}
if (this.ani._currentframe >= 37) {
if (_root["e_" + this.ohsnap].clown == true) {
_root["e_" + this.ohsnap].health = 1500;
} else {
_root["e_" + this.ohsnap].health = 700;
}
_root["e_" + this.ohsnap].dead = false;
_root["e_" + this.ohsnap].jump = false;
_root["e_" + this.ohsnap].yspd = 0;
}
}
if (this.ani._currentframe >= 65) {
this.resi = false;
}
} else {
this.backuptimer = 0;
this.stimer++;
this.gotoAndStop(6);
}
}
}
if (!chardead) {
this.hand.hand1.handmc.gotoAndStop(1);
this.ani.hand1.gotoAndStop(1);
this.ani.head.gotoAndStop(this.curframe);
this.ani.body.gotoAndStop(this.curframe);
this.ani.foot1.gotoAndStop(this.curframe);
this.ani.foot2.gotoAndStop(this.curframe);
this.ani.hand2.gotoAndStop(1);
}
};
}
function elec(b, xmouse, ymouse, boom, oldx, oldy) {
k++;
if (k > 9050) {
k = 9000;
}
createEmptyMovieClip("line" + (b + k), (b + k) + depth);
_root["line" + (b + k)].moveTo(oldx, oldy);
_root["line" + (b + k)].onEnterFrame = function () {
if (this.hitTest(_root.char)) {
flash1.gotoAndPlay(1);
health = health - 5;
}
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
max = 8 + random(3);
i = 1;
while (i < max) {
_root["line" + (b + k)].lineStyle(random(2) + 2, colarr[0], random(30) + 80);
_root["line" + (b + k)].filters = [filter];
xspot = (((xmouse - oldx) * (i / (max - 1))) + random(randomizer)) - random(randomizer);
yspot = (((ymouse - oldy) * (i / (max - 1))) + random(randomizer)) - random(randomizer);
_root["line" + (b + k)].lineTo(oldx + xspot, oldy + yspot);
i++;
}
_root["line" + (b + k)].lineTo(xmouse, ymouse);
}
function healthdrop(xpos, ypos) {
he++;
attachMovie("itemmc", "h_" + he, he);
_root["h_" + he].gotoAndStop(1);
_root["h_" + he]._x = xpos;
_root["h_" + he]._y = ypos - 15;
_root["h_" + he].onEnterFrame = function () {
if (chardead) {
this.removeMovieClip();
}
if (this.hitTest(_root.char)) {
health = health + 25;
this.removeMovieClip();
}
};
}
function gundrop(xpos, ypos, curweap) {
he++;
attachMovie("gunmc", "g_" + he, he);
_root["g_" + he].gun.gotoAndStop(curweap);
_root["g_" + he].curweap = curweap;
_root["g_" + he]._x = xpos;
_root["g_" + he]._y = ypos - 15;
_root["g_" + he]._xscale = _root["g_" + he]._xscale * 0.75;
_root["g_" + he]._yscale = _root["g_" + he]._yscale * 0.75;
_root["g_" + he].havegun = false;
_root["g_" + he].onEnterFrame = function () {
this.gun.gotoAndStop(curweap);
this.lw = 0;
while (this.lw <= gunarray.length) {
if (gunarray[this.lw] == this.curweap) {
this.havegun = true;
}
this.lw++;
}
if (this.havegun || (chardead)) {
this.removeMovieClip();
}
if (this.hitTest(_root.char)) {
gunarray.push(this.curweap);
this.removeMovieClip();
}
};
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stopAllSounds();
stop();
hud._alpha = 60;
var gamestart = false;
var score = 0;
var xspd = 0;
var xmax = 4;
var yspd = 0;
var fall = true;
var jump = false;
var curframe = 1;
var curweap = 1;
var xscale = char._xscale;
var e = 100;
var f = 0;
var l = 0;
var spawnxarr = new Array(54, 196);
var spawnyarr = new Array(234, 480);
var offmax = 10;
var health = 100;
var spawntime = 0;
var eons = 0;
var enemyarr = new Array();
var deadn = 0;
var stagen = 1;
var wave = 0;
var wavecount = 0;
var gpause = false;
var hei = char._height;
var gunarray = new Array(0, 1);
var enemygunarray = new Array(1, 3, 5, 6);
var gunsel = 1;
var chardead = false;
var gamewin = false;
var maxen = 5;
var weapons = 6;
var gover = 0;
char.swapDepths(0);
intro.swapDepths(1);
dark._alpha = 0;
dark.swapDepths(90000);
onEnterFrame = function () {
if (((gpause && (!chardead)) && (!gamewin)) && (gamestart)) {
if (!pmenu) {
attachMovie("pausemenu", "pmenu", 99999);
pmenu._x = Stage.width / 2;
pmenu._y = Stage.height / 2;
}
} else if (pmenu) {
pmenu.removeMovieClip();
}
hud.bar._xscale = health;
p1._x = char._x;
p1._y = (char._y - hei) - 10;
if (health <= 0) {
health = 0;
if (char._xscale == xscale) {
char.gotoAndStop(4);
} else if (char._xscale == (-xscale)) {
char.gotoAndStop(5);
}
if (!droppeded) {
die = new Sound();
die.attachSound("dieded");
die.start();
droppeded = true;
}
dark.gotoAndStop(3);
if (dark._alpha < 100) {
dark._alpha = dark._alpha + 2;
}
if (gover < 1000) {
gover++;
}
if ((gover >= 120) && (gover < 1000)) {
chardead = true;
_root.gotoAndStop("subpage");
gover = 10000;
}
}
if (health > 100) {
health = 100;
}
if (((gamestart && (health > 0)) && (!chardead)) && (!gamewin)) {
if (Key.isDown(80)) {
if (!pdown) {
if (!gpause) {
gpause = true;
} else {
gpause = false;
}
}
pdown = true;
} else {
pdown = false;
}
if (wave == 0) {
wavechange();
}
if (stagen == 1) {
spawnxarr = new Array(54, 196);
spawnyarr = new Array(234, 480);
} else if (stagen == 2) {
spawnxarr = new Array(610, 596);
spawnyarr = new Array(71, 354);
} else if (stagen == 3) {
spawnxarr = new Array(95, 403, 63);
spawnyarr = new Array(490, 231, 116);
} else if (stagen == 4) {
spawnxarr = new Array(56, 418, 549);
spawnyarr = new Array(224, 115, 475);
}
if (!gpause) {
if ((!scrolltime) && (!falling)) {
if (stagen != 5) {
if (wcount < 3) {
if (eons < maxen) {
if (spawntime > 50) {
if (wave <= 5) {
lmax = Math.round(Math.random() * 2) + 1;
} else if (wave <= 10) {
lmax = Math.round(Math.random() * 2) + 2;
} else if (wave <= 15) {
lmax = Math.round(Math.random() * 2) + 3;
} else if (wave <= 20) {
lmax = Math.round(Math.random() * 1) + 3;
} else if (wave > 20) {
lmax = 5;
}
if ((wave == 12) && (wcount == 1)) {
attachMovie("zhealth", "zhealth", 8674);
zhealth._x = 420.5;
zhealth._y = 16.95;
zomb = true;
enemyspawn(3, 2);
wcount = wcount + 2;
} else {
l = 0;
while (l < lmax) {
if (stagen != 4) {
enemyspawn(Math.round(Math.random() * 2), enemygunarray[Math.round(Math.random() * enemygunarray.length) - 1]);
} else {
enemyspawn(3, 3);
}
l++;
}
wcount++;
}
spawntime = 0;
}
}
if (eons == 0) {
spawntime = 60;
}
} else if (eons == 0) {
wavechange();
}
}
if ((Key.isDown(81) && (!swinging)) && (!shooting)) {
if (!changew) {
gunsel = gunsel - 1;
if (gunsel < 1) {
gunsel = gunarray.length - 1;
}
changew = true;
}
} else if ((Key.isDown(69) && (!swinging)) && (!shooting)) {
if (!changew) {
gunsel = gunsel + 1;
if (gunsel >= gunarray.length) {
gunsel = 1;
}
changew = true;
}
} else {
changew = false;
}
curweap = gunarray[gunsel];
if (Key.isDown(65) && (!Key.isDown(68))) {
if (level["g" + stagen].hitTest(char._x - (char.ani.head._width / 2), char._y - 3, true) && (level["g" + stagen].hitTest(char._x - (char.ani.head._width / 2), char._y - 15, true))) {
xspd = 0;
} else {
xspd = -xmax;
}
char._xscale = -xscale;
if (!jump) {
curframe = 2;
}
} else if (Key.isDown(68) && (!Key.isDown(65))) {
if (!jump) {
curframe = 2;
}
char._xscale = xscale;
if (level["g" + stagen].hitTest(char._x + (char.ani.head._width / 2), char._y - 3, true) && (level["g" + stagen].hitTest(char._x + (char.ani.head._width / 2), char._y - 15, true))) {
xspd = 0;
} else {
xspd = xmax;
}
} else {
xspd = 0;
if (!jump) {
curframe = 1;
}
}
if (Key.isDown(87) && (!jump)) {
curframe = 3;
jump = true;
yspd = -13;
fall = true;
}
if (!level["g" + stagen].hitTest(char._x, char._y + yspd, true)) {
fall = true;
} else if (yspd > 0) {
fall = false;
jump = false;
}
if (yspd > 9) {
yspd = 9;
}
if (((fall == false) && (jump == false)) && (JESUSISDEAD == true)) {
alldead = 0;
ty = 0;
while (ty <= enemyarr.length) {
if (_root["e_" + enemyarr[ty]].dead == true) {
alldead++;
}
ty++;
}
if (alldead == 6) {
gamewin = true;
}
}
if (yspd > -2) {
while (level["g" + stagen].hitTest(char._x, (char._y - 1) + yspd, true)) {
char._y--;
}
}
char._x = char._x + xspd;
char._y = char._y + yspd;
if (fall) {
yspd++;
} else {
yspd = 0;
}
if ((char._x + (char.ani.head._width / 2)) > Stage.width) {
char._x = Stage.width - (char.ani.head._width / 2);
if (gosign._x == 550) {
if (stagen == 4) {
leveltarget = level._x - 680;
} else {
leveltarget = level._x - 670;
}
chartarget = ((char._x - Stage.width) + char.ani.head._width) + 5;
scrolltime = true;
gosign.removeMovieClip();
}
}
if ((char._x - (char.ani.head._width / 2)) < 0) {
char._x = char.ani.head._width / 2;
}
if (((char._y > ((Stage.height * 2) / 3)) && (stagen == 5)) && (level._y > -1000)) {
if (!falling) {
n = 0;
while (n < 4) {
enemyspawn(3, 3);
n++;
}
}
falling = true;
}
char.gotoAndStop(curframe);
radAngle = Math.atan2((_root._ymouse - char._y) - char.hand._y, (_root._xmouse - char._x) - char.hand._x);
if (shooting) {
stimer++;
if (stimer > 2) {
shotsound = new Sound();
shotsound.attachSound("uzi");
shotsound.start();
radAngle = radAngle + (offset / 70);
fire(radAngle, 12, 5);
stimer = 0;
offmax = offmax + 0.5;
}
offset = random(offmax) - random(offmax);
} else {
offmax = 0;
}
if (swinging) {
char.hand._rotation = char.hand._rotation + 40;
j = e;
while (j > (e - maxen)) {
if ((_root["e_" + j]._alpha == 100) && (_root["e_" + j].hitTest((char._x + char.hand._x) + (Math.cos(char.hand._rotation) * 20), (char._y + char.hand._y) + (Math.sin(char.hand._rotation) * -20), true))) {
if (_root["e_" + j].health > 0) {
_root["e_" + j]._x = _root["e_" + j]._x + (Math.cos(char.hand._rotation) * 20);
_root["e_" + j].health = _root["e_" + j].health - 100;
}
bsplat((char._x + char.hand._x) + (Math.cos(char.hand._rotation) * 20), (char._y + char.hand._y) + (Math.sin(char.hand._rotation) * -20));
}
j--;
}
if (char.hand._rotation == 0) {
swinging = false;
}
}
if (((curweap != 3) && (curweap != 4)) && (curweap != 6)) {
if (char._xscale == xscale) {
char.hand._rotation = int((radAngle * 360) / (Math.PI*2));
} else {
char.hand._rotation = (-int((radAngle * 360) / (Math.PI*2))) + 180;
}
} else if (!swinging) {
char.hand._rotation = 0;
}
if (offmax > 10) {
offmax = 10;
}
if ((jhealth.bar._xscale < 70) && (!clowned)) {
attachMovie("chealth", "chealth", 8676);
chealth._x = 420.5;
chealth._y = 75;
chealth._alpha = 60;
enemyspawn(15, 0);
clowned = true;
}
} else {
if (scrolltime) {
level._x = level._x - ((level._x - leveltarget) / 5);
char._x = char._x - ((char._x - chartarget) / 5);
if (level._x <= (leveltarget + 1)) {
stagen = stagen + 1;
wavecount = 0;
scrolltime = false;
}
}
if (falling) {
if (level._y <= -1315) {
JESUSTIME();
falling = false;
} else {
level._y = level._y - yspd;
}
}
}
}
}
if (gamewin) {
chealth.removeMovieClip();
char.gotoAndStop(9);
if (char.ani._currentframe > 230) {
dark.gotoAndStop(2);
if (dark._alpha < 100) {
dark._alpha = dark._alpha + 2;
}
if (gover < 1000) {
gover++;
}
if ((gover >= 120) && (gover < 1000)) {
if (!chardead) {
score = score + 3000;
score = score + (100 * health);
}
chardead = true;
_root.gotoAndStop("subpage");
gover = 10000;
}
}
}
if (!chardead) {
char.hand.hand1.gotoAndStop(curweap);
if (curweap == 2) {
char.ani.hand2._visible = false;
} else {
char.ani.hand2._visible = true;
}
char.hand.hand1.handmc.gotoAndStop(1);
char.hand.hand1.handmc2.gotoAndStop(1);
char.ani.hand1.gotoAndStop(1);
char.ani.hand2.gotoAndStop(1);
char.ani.head.gotoAndStop(1);
char.ani.body.gotoAndStop(1);
char.ani.foot1.gotoAndStop(1);
char.ani.foot2.gotoAndStop(1);
char.ani.hand2.gotoAndStop(1);
}
};
onMouseDown = function () {
if (((((((!falling) && (!scrolltime)) && (gamestart)) && (!gpause)) && (health > 0)) && (!chardead)) && (!gamewin)) {
if (curweap == 1) {
shotsound = new Sound();
shotsound.attachSound("pist");
shotsound.start();
fire(radAngle, 12, 10);
} else if (curweap == 2) {
shotsound = new Sound();
shotsound.attachSound("shottie");
shotsound.start();
fire(radAngle, 25, 10);
fire(radAngle + 0.1, 25, 10);
fire(radAngle - 0.1, 25, 10);
} else if (curweap == 3) {
if (!swinging) {
swing = new Sound();
sbla = 1 + Math.round(Math.random());
swing.attachSound("swing" + sbla);
swing.start();
}
swinging = true;
} else if (curweap == 4) {
if (!swinging) {
swing = new Sound();
sbla = 1 + Math.round(Math.random());
swing.attachSound("swing" + sbla);
swing.start();
}
swinging = true;
} else if (curweap == 5) {
offmax = 10;
offset = 0;
stimer = 3;
shooting = true;
} else if (curweap == 6) {
if (!swinging) {
swing = new Sound();
sbla = 1 + Math.round(Math.random());
swing.attachSound("swing" + sbla);
swing.start();
}
swinging = true;
}
}
};
onMouseUp = function () {
offset = 0;
shooting = false;
};
stop();
var filter = (new flash.filters.GlowFilter(13426175, 100, 12, 12, 2));
var randomizer = 15;
var colarr = ["0xDDFFDD"];
k = 9000;
he = 4321;
Frame 6
function senddascores() {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = namevar.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
__rankz_send__("MTY5NmolZSVhJW4lcw==", "TE1RbW1RTng=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
gotoAndStop (4);
getURL ("http://rankz.armorbot.com/absoluteMadness/", _blank);
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
menusound = new Sound();
menusound.attachSound("menusong");
menusound.start(0, 9999);
jhealth.removeMovieClip();
chealth.removeMovieClip();
zhealth.removeMovieClip();
char.removeMovieClip();
blo = 0;
while (blo <= enemyarr.length) {
if (_root["e_" + enemyarr[blo]]) {
_root["e_" + enemyarr[blo]].removeMovieClip();
}
blo++;
}
hud.removeMovieClip();
dark.removeMovieClip();
stop();
submitb.onRelease = function () {
if ((namevar.text != "") && (namevar.text != "input Name")) {
senddascores();
}
};
Symbol 14 MovieClip [pausemenu] Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 33 MovieClip in Symbol 45 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._parent._parent._parent.dead == true) {
this.stop();
}
}
Symbol 45 MovieClip Frame 7
stop();
Instance of Symbol 45 MovieClip in Symbol 49 MovieClip [chealth] Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 45 MovieClip in Symbol 51 MovieClip [jhealth] Frame 1
onClipEvent (load) {
this.gotoAndStop(8);
}
Symbol 67 MovieClip [itemmc] Frame 1
stop();
Symbol 67 MovieClip [itemmc] Frame 3
stop();
Symbol 89 MovieClip [wavesign] Frame 30
this.removeMovieClip();
this.stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 3
stop();
Symbol 110 MovieClip Frame 3
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 8
gotoAndStop (1);
Symbol 114 MovieClip Frame 12
_root.curframe = 1;
Symbol 115 MovieClip Frame 12
stop();
_parent.ani.head.skull.gotoAndStop(1);
Symbol 116 MovieClip Frame 13
stop();
_parent.ani.head.skull.gotoAndStop(1);
Symbol 118 MovieClip Frame 65
_parent.resi = false;
_parent.stimer = _parent.stimer + 15;
Symbol 119 MovieClip Frame 95
_parent.attacking = false;
_parent.stimer = _parent.stimer + 15;
Symbol 130 MovieClip Frame 266
stop();
Symbol 131 MovieClip [char] Frame 1
stop();
Symbol 131 MovieClip [char] Frame 2
stop();
Symbol 131 MovieClip [char] Frame 4
stop();
Symbol 131 MovieClip [char] Frame 5
stop();
Symbol 172 Button
on (press) {
getURL ("http://www.newgrounds.com/collection/madnessday2007", (target = "_blank"));
}
Symbol 181 MovieClip Frame 29
gotoAndPlay (1);
Symbol 181 MovieClip Frame 65
gotoAndPlay ("ready_loop");
Symbol 181 MovieClip Frame 85
_root.play();
Symbol 188 Button
on (press) {
_root.loader.hank.gotoAndPlay("go");
play();
}
Symbol 189 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
_root.loader.hank.gotoAndPlay("ready");
}
Symbol 189 MovieClip Frame 2
gotoAndPlay (1);
Symbol 189 MovieClip Frame 5
stop();
Symbol 204 MovieClip Frame 183
_root.nextFrame();
Symbol 213 MovieClip Frame 1
_root.stop();
Instance of Symbol 206 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
_parent._x = (_parent._y = 0);
xTarget = Stage.width / 2;
yTarget = Stage.height / 2;
xSpeed = 0;
ySpeed = 0;
Mode = 1;
Speed = 10;
Stop = 1.1;
blarg = getTimer();
sprinkles._visible = true;
_parent.thing._alpha = 0;
_parent.thing._width = Stage.width;
_parent.thing._height = Stage.height;
_parent.thing._x = Stage.width / 2;
_parent.thing._y = Stage.height / 2;
}
onClipEvent (enterFrame) {
if (2700 < (getTimer() - blarg)) {
_parent.thing._alpha = _parent.thing._alpha + 5;
if (_parent.thing._alpha >= 100) {
_root.stopAllSounds();
_root.play();
}
}
_rotation = (_rotation + xSpeed);
_x = (_x + xSpeed);
_y = (_y + ySpeed);
xSpeed = xSpeed + ((xTarget - _x) / Speed);
ySpeed = ySpeed + ((yTarget - _y) / Speed);
xSpeed = xSpeed / Stop;
ySpeed = ySpeed / Stop;
}
onClipEvent (mouseDown) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Symbol 235 MovieClip Frame 10
stop();
this.removeMovieClip();
Symbol 253 Button
on (release) {
getURL ("http://www.newgrounds.com/collection/madnessday2007", _blank);
}
Symbol 254 Button
on (release) {
_root.nextFrame();
_root.mchar.swapDepths(0);
_root.mchar.removeMovieClip();
}
Symbol 255 Button
on (release) {
getURL ("http://rankz.armorbot.com/absoluteMadness/", _blank);
}
Instance of Symbol 295 MovieClip "noplat" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.stagen == 5) {
dist = ((Stage.width * 3.75) / 5) - _root.char._x;
this._alpha = dist;
}
}
Symbol 350 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 3
stop();
Symbol 365 MovieClip Frame 570
stop();
_root.gamestart = true;
Symbol 366 MovieClip Frame 5550
gotoAndPlay (55);
Symbol 370 Button
on (release) {
gotoAndStop (4);
}