Instance of Symbol 57 MovieClip "bgi" in Frame 2
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (load) {
sw = Stage.width;
sh = Stage.height;
this._x = 0;
this._y = 0;
this._width = sw;
this._height = sh;
}
onClipEvent (mouseDown) {
this._visible = 0;
}
Instance of Symbol 73 MovieClip in Frame 2
onClipEvent (load) {
sw = Stage.width;
sh = Stage.height;
this._x = 0;
this._y = 0;
this._width = sw;
this._height = sh;
}
Frame 3
gotoAndStop ("game");
MovieClip.prototype.move = function (centerx, centery, inertia, k) {
this.x = (-this._x) + centerx;
this.y = (-this._y) + centery;
this.xp = (this.xp * inertia) + (this.x * k);
this.yp = (this.yp * inertia) + (this.y * k);
this._x = this._x + this.xp;
this._y = this._y + this.yp;
};
Instance of Symbol 92 MovieClip "blood" in Frame 3
onClipEvent (load) {
}
Instance of Symbol 100 MovieClip "rec" in Frame 3
onClipEvent (load) {
function blobs() {
if ((0 < b) && (b != 0)) {
b = 1;
while (b < blobfset) {
duplicateMovieClip ("/blobf", "blobf" + b, b * 2);
colorful = new Color(ject);
colorful.setRGB(16776960);
ject = _root["blobf" + b];
ject.amount = (b + 1) / 2;
ject._alpha = 100 - (blobfset * b);
ject._height = seth - ((blobfset * b) / sethh);
ject._width = seth - ((blobfset * b) / sethh);
this.swapDepths(ject);
b++;
}
}
}
_root.powerup = 1;
nukes = 0;
poweruptime = 0;
if (this._name == "rec") {
duplicateMovieClip (this, "blob", 1);
this._x = -100;
this._y = -100;
restvar = 0;
_root.restart._visible = 0;
}
if (this._name == "blob") {
mtxt = 0;
timep = 0;
xSPEED = 1;
b = 1;
blobfset = 10;
seth = 60;
sethh = 100 / seth;
mAmount = 8;
c = 1;
blobs();
samount = 20;
sx = Stage.width;
sy = Stage.height;
centerx = sx / 2;
centery = (sy / 2) - samount;
}
}
onClipEvent (enterFrame) {
function DuplicationMice() {
mAmountround = Math.round(mAmount);
c = c;
while (c < mAmountround) {
duplicateMovieClip ("/mice", "mice" + c, c * 1.33);
prop = _root["mice" + c];
xSPEED = xSPEED + 0.05;
prop.mspeed = xSPEED;
c++;
c++;
}
}
if ((this._name == "rec") && (restvar == 1)) {
duplicateMovieClip (this, "blob", 1);
this._x = -100;
this._y = -100;
_root.restart._visible = 0;
restvar = 0;
mtxt = 0;
timep = 0;
xSPEED = 1;
b = 1;
blobfset = 10;
seth = 60;
sethh = 100 / seth;
mAmount = 8;
c = 1;
_root.cheese._width = 60.3;
_root.cheese._height = 65;
}
if (this._name == "blob") {
this.gotoAndStop(_root.powerup);
_root.micetxt = txt;
txt = "Mice killed: " + mtxt;
framerate = 24;
_root.timertxt = timer;
timer = Math.round(timep) + " secs";
timep = timep + (1 / framerate);
if (pressing) {
startDrag (this, true);
} else {
stopDrag();
this.move(centerx, centery, 0.955, 0.1);
}
if (_root.powerup == 1) {
_root.pwrtime = " ";
} else if (_root.powerup != 1) {
_root.pwrtime = "Powerup " + Math.round(poweruptime);
poweruptime = poweruptime - (1 / framerate);
if (0 >= poweruptime) {
poweruptime = 0;
_root.powerup = 1;
}
}
DuplicationMice();
if (Key.isDown(81)) {
toggleHighQuality();
}
}
}
onClipEvent (mouseUp) {
pressing = 0;
}
onClipEvent (unload) {
b = 1;
while (b < blobfset) {
removeMovieClip(ject);
score1 = timep;
score2 = mtxt;
maxscore = 1500;
maskone = 225;
maskvalue = maskone * (score2 / maxscore);
if (maxscore >= score2) {
_root.restart.gotoAndStop(Math.round(maskvalue));
} else {
_root.restart.gotoAndStop(Math.round(maskone));
}
_root.restart.score = Math.round(score1 * score2);
b++;
}
}
Instance of Symbol 115 MovieClip "blobf" in Frame 3
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (this._name == "blobf") {
this._x = -200;
this._y = -200;
}
if (this._name != "blobf") {
object1 = _root.blob;
this._x = this._x + ((object1._x - this._x) / amount);
this._y = this._y + ((object1._y - this._y) / amount);
}
}
Instance of Symbol 118 MovieClip "nuke" in Frame 3
onClipEvent (load) {
startx = this._x;
starty = this._y;
}
onClipEvent (enterFrame) {
function reset() {
this.gotoAndStop(1);
this._x = startx;
this._y = starty;
}
if (_root.nukea == 0) {
this._x = startx;
this._y = starty;
this.gotoAndStop(1);
}
}
Instance of Symbol 34 MovieClip "pwN" in Frame 3
onClipEvent (load) {
function types() {
blob = _root.blob;
nuke = _root.nuke;
_root.nukea = 1;
Explode = new Sound(this);
Explode.attachSound("Explosion");
cheese = _root.cheese;
nuke._x = cheese._x;
nuke._y = cheese._y;
nuke.play();
Explode.start(0, 0);
}
function reset() {
Htimer = 0;
HstayT = 0;
this._x = 630;
this._y = 150;
}
_root.nukea = 0;
blob = _root.blob;
stagex = Stage.width;
stagey = Stage.height;
Htimer = Hmax / 2;
Hmax = 250;
HstayT = 0;
Hstay = 40;
}
onClipEvent (enterFrame) {
Htimer++;
if (Htimer == Hmax) {
stageminus = 100;
this._x = random(stagex - stageminus) + (stageminus / 2);
this._y = random(stagex - stageminus) + (stageminus / 2);
}
if (Hmax < Htimer) {
HstayT++;
blob = _root.blob;
if (this.hitTest(blob) && (!blob.pressing)) {
types();
reset();
}
if (HstayT >= Hstay) {
reset();
}
}
}
Instance of Symbol 37 MovieClip "pwC" in Frame 3
onClipEvent (load) {
function types() {
cheese = _root.cheese;
cheese._width = 60.3;
cheese._height = 65;
}
function reset() {
Htimer = 0;
HstayT = 0;
this._x = 630;
this._y = 150;
}
blob = _root.blob;
stagex = Stage.width;
stagey = Stage.height;
Htimer = 0;
Hmax = 700;
HstayT = 0;
Hstay = 50;
}
onClipEvent (enterFrame) {
Htimer++;
if (Htimer == Hmax) {
stageminus = 100;
this._x = random(stagex - stageminus) + (stageminus / 2);
this._y = random(stagex - stageminus) + (stageminus / 2);
}
if (Hmax < Htimer) {
HstayT++;
if (HstayT >= Hstay) {
reset();
}
blob = _root.blob;
if (this.hitTest(blob) && (!blob.pressing)) {
types();
reset();
}
}
}
Instance of Symbol 42 MovieClip "pwS" in Frame 3
onClipEvent (load) {
function types() {
_root.powerup = 3;
blob.poweruptime = 5;
}
function reset() {
Htimer = 0;
HstayT = 0;
this._x = 620;
this._y = 150;
}
blob = _root.blob;
blob = _root.blob;
stagex = Stage.width;
stagey = Stage.height;
Htimer = 0;
Hmax = 500;
HstayT = 0;
Hstay = 60;
}
onClipEvent (enterFrame) {
Htimer++;
if (Htimer == Hmax) {
stageminus = 100;
this._x = random(stagex - stageminus) + (stageminus / 2);
this._y = random(stagex - stageminus) + (stageminus / 2);
}
if (Hmax < Htimer) {
HstayT++;
if (HstayT >= Hstay) {
reset();
}
if (this.hitTest(blob) && (!blob.pressing)) {
types();
reset();
}
}
}
Instance of Symbol 47 MovieClip "pwF" in Frame 3
onClipEvent (load) {
function types() {
_root.powerup = 2;
blob.poweruptime = 10;
}
function reset() {
Htimer = 0;
HstayT = 0;
this._x = 610;
this._y = 150;
}
blob = _root.blob;
stagex = Stage.width;
stagey = Stage.height;
Htimer = Hmax / 2;
Hmax = 400;
HstayT = 0;
Hstay = 80;
}
onClipEvent (enterFrame) {
Htimer++;
if (Htimer == Hmax) {
stageminus = 100;
this._x = random(stagex - stageminus) + (stageminus / 2);
this._y = random(stagex - stageminus) + (stageminus / 2);
}
if (Hmax < Htimer) {
HstayT++;
if (HstayT >= Hstay) {
reset();
}
blob = _root.blob;
if (this.hitTest(blob) && (!blob.pressing)) {
types();
reset();
}
}
}
Instance of Symbol 91 MovieClip "mice" in Frame 3
onClipEvent (load) {
if (this._name != "mice") {
mice1 = 100;
mice2 = 300;
mnumber = _root.blob.mtxt;
if (mice1 >= mnumber) {
miceset = random(2) + 1;
} else if ((mice2 >= mnumber) && (mnumber >= mice1)) {
miceset = random(3) + 1;
} else if (mnumber >= mice2) {
miceset = random(5) + 1;
}
this.gotoAndStop(miceset);
dead = 0;
Cheese = _root.cheese;
blob = _root.blob;
HEIGHTxy = 50;
sx = _root.blob.sx;
sy = _root.blob.sy;
maxx = sx + HEIGHTxy;
maxy = sy + HEIGHTxy;
minx = -HEIGHTxy;
miny = -HEIGHTxy;
randomx = random(maxx);
randomy = random(maxy);
startpos = random(4);
switch (startpos) {
case 0 :
this._x = maxx;
this._y = randomy;
break;
case :
this._x = minx;
this._y = randomy;
break;
case :
this._x = randomx;
this._y = miny;
break;
case :
this._x = randomx;
this._y = maxy;
}
}
}
onClipEvent (enterFrame) {
function dsound() {
if (this.hitTest(_root.nuke) && (_root.nukea == 1)) {
Splatter.start(0, 0);
} else if (_root.powerup == 1) {
Splatter.start(0, 0);
} else if (_root.powerup == 2) {
Whip.start(0, 0);
} else if (_root.powerup == 3) {
Bump.start(0, 0);
}
}
function DIE() {
dead = 1;
duplicateMovieClip ("/blood", "blood" + bl, bl * 0.133);
_root["blood" + bl].miceset = miceset;
_root["blood" + bl]._x = this._x;
_root["blood" + bl]._y = this._y;
_root["blood" + bl]._rotation = this._rotation;
_root["blood" + bl]._width = this._width - 2;
_root["blood" + bl]._height = this._height - 1;
removeMovieClip(this);
}
if ((this._name != "mice") && (dead == 0)) {
if (mspeed >= 8) {
mspeed = 8;
}
Rotationc = Math.atan2(_root.cheese._y - this._y, _root.cheese._x - this._x);
Rotationo = Math.round((Rotationc * 180) / Math.PI);
this._rotation = Rotationo + 90;
movex = mspeed * Math.sin(this._rotation * (Math.PI/180));
movey = (-mspeed) * Math.cos(this._rotation * (Math.PI/180));
this._x = this._x + movex;
this._y = this._y + movey;
tnumber = _root.blob.timep;
if (this.hitTest(Cheese._x, Cheese._y, false)) {
Saw = new Sound(this);
Saw.attachSound("Saw");
Saw.start(0, 0);
scaleamount = 0.05;
Cheese._yscale = Cheese._yscale - scaleamount;
Cheese._xscale = Cheese._xscale - scaleamount;
if ((0 >= Cheese._xscale) || (0 >= Cheese._yscale)) {
Cheese._xscale = 0;
Cheese._yscale = 0;
removeMovieClip(blob);
_root.restart._visible = 1;
_root.pwrtime = " ";
}
}
blobfset = blob.blobfset;
Splatter = new Sound(this);
Splatter.attachSound("Splatter");
Bump = new Sound(this);
Bump.attachSound("Bump");
Whip = new Sound(this);
Whip.attachSound("Whip");
b = 1;
while (b < blobfset) {
ject = _root["blobf" + b];
if ((this.hitTest(ject._x, ject._y, false) && (!blob.pressing)) && (_root.powerup == 2)) {
bl = 1;
while (bl < 2) {
DIE();
bl++;
}
}
b++;
}
if (((this.hitTest(blob._x, blob._y, false) || ((_root.powerup == 3) && (this.hitTest(blob)))) || (this.hitTest(_root.nuke) && (_root.nukea == 1))) && (!blob.pressing)) {
dsound();
bl = 1;
while (bl < 2) {
DIE();
bl++;
}
}
}
}
onClipEvent (unload) {
_root.blob.mtxt = _root.blob.mtxt + 1;
_root.blob.mAmount = _root.blob.mAmount + 2.1;
}
Frame 4
Frame 5
gotoAndStop ("game");
Symbol 29 MovieClip Frame 1
_root.stop();
stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
gotoAndStop ("Loading");
} else {
gotoAndPlay ("Loaded");
}
Symbol 29 MovieClip Frame 2
stop();
Instance of Symbol 10 MovieClip "LoadBarLoading" in Symbol 29 MovieClip Frame 2
onClipEvent (enterFrame) {
Percentloadeddisplay = Math.round(_parent.loader.PercentLoaded) + "%";
Display = Percentloadeddisplay;
this.loadingpercent = Display;
}
Instance of Symbol 14 MovieClip "loader" in Symbol 29 MovieClip Frame 2
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(this, _xscale , PercentLoaded);
} else {
_parent.gotoAndPlay("Loaded");
}
}
Symbol 29 MovieClip Frame 78
_root.gotoAndStop(_root._currentframe + 1);
Symbol 34 MovieClip Frame 1
stop();
Symbol 64 Button
on (release) {
_root.bgi._visible = 1;
}
Symbol 69 Button
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 3
stop();
Symbol 91 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 5
stop();
Instance of Symbol 91 MovieClip "bm" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.miceset);
}
Symbol 92 MovieClip Frame 9
if (this._name != "blood") {
_root.removeMovieClip;
stop();
}
Symbol 96 Button
on (press) {
pressing = 1;
}
Symbol 97 Button
on (press) {
pressing = 1;
}
Symbol 99 Button
on (press) {
pressing = 1;
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 3
stop();
Symbol 113 Button
on (release) {
_root.rec.restvar = 1;
}
Symbol 118 MovieClip Frame 20
_root.nukea = 0;