Frame 1
stop();
Stage.showMenu = false;
pLoaded = 0;
tBytes = _root.getBytesTotal();
this.onEnterFrame = function () {
lBytes = _root.getBytesLoaded();
pLoaded = (lBytes / tBytes) * 100;
loadBar._xscale = pLoaded;
if (pLoaded >= 100) {
gotoAndPlay ("title");
this.onEnterFrame = null;
}
};
Frame 11
stop();
Frame 20
function pointAt(obj, targetX, targetY, offsetTheta) {
deltaX = targetX - obj._x;
deltaY = targetY - obj._y;
deltaTotal = Math.sqrt((deltaX * deltaX) + (deltaY * deltaY));
radTheta = -Math.acos(deltaX / deltaTotal);
if (targetY < obj._y) {
obj._rotation = ((radTheta * 180) / Math.PI) - offsetTheta;
} else {
obj._rotation = (((-radTheta) * 180) / Math.PI) - offsetTheta;
}
}
function fire() {
leader = true;
i = 0;
while (i < 4) {
loadPlace = new Object();
loadPlace._x = wang._x + (Math.sin((wang._rotation * Math.PI) / 180) * wang._height);
loadPlace._y = wang._y + wang.spawn._y;
loadPlace.speed = (((Math.random() * 0.05) + 0.95) * (400 - _ymouse)) / 5;
loadPlace.zSpeed = loadPlace.speed / 25;
loadPlace.xAccel = ((Stage.width / 2) - wang._x) * -0.05;
loadPlace._rotation = Math.random() * 300;
this.attachMovie("load", "load" + loadLayer, loadLayer, loadPlace);
if (leader) {
leader = false;
leaderLayer = loadLayer;
this["load" + loadLayer].leader = true;
} else {
this["load" + loadLayer].leaderLayer = leaderLayer;
this["load" + loadLayer].leader = false;
}
if ((++loadLayer) > 810) {
loadLayer = 800;
}
i++;
}
}
function spawnTarget(targetClip, targetInitObj) {
attachMovie(targetClip, targetClip + targetInitObj.layer, targetInitObj.layer, targetInitObj);
return(this[targetClip + targetInitObj.layer]);
}
function targetTracking() {
traceOutput = counter;
if (((counter % 600) == 0) || (counter == 2)) {
targetArray[numTargets++] = spawnTarget("target1", target1Place);
}
if ((counter % 180) == 0) {
targetArray[numTargets++] = spawnTarget("target2", target2Place);
}
if (((counter % 160) == 0) || (counter == 10)) {
window.target3.play();
}
if (((counter + 1300) % 1000) == 0) {
window.targetD.play();
}
if (((counter + 720) % 800) == 0) {
targetArray[numTargets++] = spawnTarget("targetW", targetWPlace);
}
}
stop();
counter = 0;
barLayer = 40;
barPlace = new Object();
barPlace = {_x:333, _y:263};
attachMovie("bar", "bar", barLayer, barPlace);
loadLayer = 800;
wangLayer = 1000;
statLayer = 2000;
attachMovie("stat", "stat", statLayer);
wangPlace = new Object();
wangPlace._x = Stage.width / 2;
wangPlace._y = Stage.height + 100;
attachMovie("wang", "wang", wangLayer, wangPlace);
numTargets = 5;
targetArray = new Array();
targetArray[0] = bar;
targetArray[1] = liquorCabinet;
targetArray[2] = windowHitArea;
targetArray[3] = clock;
targetArray[4] = poolTable;
obstacleArray = new Array();
obstacleArray[0] = wall;
i = 1;
while (i < 7) {
this[("target" + i) + "Place"] = new Object();
this[("target" + i) + "Place"].layer = i * 100;
i++;
}
targetWPlace = new Object();
splatLayer = 0;
target1Place._y = 320;
target1Place._x = 730;
target1Place._xscale = (target1Place._yscale = 20);
target2Place._y = 260;
target2Place._x = 460;
target2Place._xscale = (target2Place._yscale = 80);
target2Place.layer = 10;
targetWPlace._y = 350;
targetWPlace._x = 700;
targetWPlace._xscale = (targetWPlace._yscale = 70);
targetWPlace.layer = 150;
this.onEnterFrame = function () {
counter++;
wang._x = (Stage.width / 2) - (((Stage.width / 2) - _xmouse) * 0.7);
pointAt(wang, _xmouse, _ymouse, -90);
wang._y = (Stage.height + 70) + (_ymouse / 5);
if (Key.isDown(1) && (wang.ready)) {
wang.play();
wang.ready = false;
}
targetTracking();
};
Frame 21
stop();
stat.end();
for (name in _root) {
if (_root[name] != stat) {
_root[name].removeMovieClip();
}
}
this.onEnterFrame = null;
if (stat.score < 1500) {
result1.gotoAndStop("limpBiscuit");
} else if (stat.score < 3000) {
result1.gotoAndStop("cornHusker");
} else if (stat.score < 6000) {
result1.gotoAndStop("straightShooter");
} else if (stat.score < 10000) {
result1.gotoAndStop("dirtySanchez");
} else {
result1.gotoAndStop("masterBater");
}
Symbol 8 MovieClip Frame 1
dir = 1;
this.onEnterFrame = function () {
box._alpha = box._alpha - (5 * dir);
if ((box._alpha < 0) || (box._alpha > 100)) {
dir = dir * -1;
}
};
Symbol 13 Button
on (release) {
getURL ("mailto:angrybinary@hotmail.com");
}
Symbol 17 Button
on (release) {
getURL ("http://www.devonshouse.com", "_blank");
}
Symbol 27 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
numHits = 0;
broken = false;
Symbol 36 MovieClip Frame 2
stop();
Symbol 36 MovieClip Frame 3
if (numHits < 5) {
scoreVal = (numHits * 50) + 100;
numHits++;
inner.nextFrame();
gotoAndStop (2);
} else {
broken = true;
scoreVal = 500;
}
scorePlace = new Object();
scorePlace._x = _x;
scorePlace._y = _y;
scorePlace.val = scoreVal;
_parent.attachMovie("score", "score" + _parent.layer, _parent.layer, scorePlace);
_parent.layer++;
Symbol 36 MovieClip Frame 12
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha < 0) {
this.onEnterFrame = null;
}
};
Symbol 43 MovieClip [bar] Frame 1
function hit(x, y) {
splatPlace = new Object();
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = 10000 / _yscale;
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
for (bottle in bottleArray) {
if (bottleArray[bottle].hitTest(this["splat" + layer]) && (!bottleArray[bottle].broken)) {
bottleArray[bottle].gotoAndPlay("break");
this["splat" + layer].removeMovieClip();
break;
}
}
layer++;
}
layer = 0;
bottleArray = new Array();
bottleArray[0] = bottle0;
Symbol 57 MovieClip [load] Frame 1
zDepth = 0;
accel = 0;
stop();
this.onEnterFrame = function () {
speed = speed + accel;
_y = (_y - speed);
_x = (_x + xAccel);
_rotation = (_rotation + 9);
accel = accel - 2;
zDepth = zDepth + zSpeed;
_yscale = (100 - (zDepth * 4));
_xscale = (100 - (zDepth * 4));
if (leader) {
floor = 400 - (zDepth * 10);
} else {
floor = _parent["load" + leaderLayer].floor;
}
for (item in _parent.obstacleArray) {
if ((zDepth > ((392 - _parent.obstacleArray[item]._y) / 10)) && (_parent.obstacleArray[item].hitTest(_x, _y, true))) {
if (leader) {
splatPlace = new Object();
splatPlace._x = _x - _parent.obstacleArray[item]._x;
splatPlace._y = _y - _parent.obstacleArray[item]._y;
_parent.obstacleArray[item].attachMovie("wallSplat", "splat", _parent.splatLayer++, splatPlace);
}
this.onEnterFrame = null;
gotoAndPlay ("splat2");
}
}
for (item in _parent.targetArray) {
if ((zDepth > ((390 - _parent.targetArray[item]._y) / 10)) && (_parent.targetArray[item].hitTest(_x, _y, true))) {
if (leader) {
_parent.targetArray[item].hit(_x - _parent.targetArray[item]._x, _y - _parent.targetArray[item]._y);
}
this.onEnterFrame = null;
gotoAndPlay ("splat2");
break;
}
}
if (_y > floor) {
_x = (_x + ((Math.random() * 10) - 5));
_xscale = (_xscale + (Math.random() * 40));
_y = floor;
speed = 0;
_rotation = 0;
this.onEnterFrame = null;
if (leader) {
gotoAndPlay ("splat1");
this.swapDepths(-900);
} else {
this.removeMovieClip();
}
}
};
Symbol 57 MovieClip [load] Frame 8
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha < 2) {
this.removeMovieClip();
}
};
Symbol 57 MovieClip [load] Frame 9
_alpha = (Math.random() * 100);
Symbol 57 MovieClip [load] Frame 13
stop();
this.onEnterFrame = null;
this.removeMovieClip();
Symbol 69 MovieClip [score] Frame 1
lifeSpan = 24;
lifeCount = 0;
_root.stat.score = _root.stat.score + val;
this.onEnterFrame = function () {
lifeCount++;
if (lifeCount > lifeSpan) {
this.removeMovieClip();
}
};
Symbol 69 MovieClip [score] Frame 10
gotoAndPlay (2);
Symbol 78 MovieClip [stat] Frame 1
function end() {
this.onEnterFrame = function () {
timeLeft = "0:00";
displayScore = score;
_root.score = score;
};
}
score = 0;
displayScore = 0;
now = new Date().getTime();
startTimeMS = now;
timeEndMS = now + 180000;
this.onEnterFrame = function () {
now = new Date().getTime();
timeLeftMS = timeEndMS - now;
minutesLeft = Math.floor(timeLeftMS / 60000);
secondsLeft = Math.floor((timeLeftMS - (minutesLeft * 60000)) / 1000);
if (secondsLeft > 9) {
timeLeft = (("" + minutesLeft) + ":") + secondsLeft;
} else {
timeLeft = (("" + minutesLeft) + ":0") + secondsLeft;
}
if (timeLeftMS <= 0) {
_root.gotoAndPlay("end");
}
if (displayScore < (score - 1000)) {
displayScore = displayScore + 500;
} else if (displayScore < (score - 500)) {
displayScore = displayScore + 100;
} else if (displayScore < (score - 200)) {
displayScore = displayScore + 50;
} else if (displayScore < score) {
displayScore = displayScore + 5;
}
if (displayScore > score) {
displayScore = score;
}
};
Symbol 84 MovieClip Frame 1
stop();
Symbol 89 MovieClip [target2] Frame 1
function hit(x, y) {
soundBox.play();
splatPlace = new Object();
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = 10000 / _yscale;
scorePlace = new Object();
scorePlace._x = (x * 100) / _xscale;
scorePlace._y = (y * 100) / _yscale;
scorePlace._xscale = 10000 / _xscale;
scorePlace._yscale = 10000 / _yscale;
scorePlace.val = 50;
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
layer++;
attachMovie("score", "score" + layer, layer, scorePlace);
layer++;
}
lifeCount = 0;
lifeSpan = 3;
layer = 0;
Symbol 89 MovieClip [target2] Frame 8
if (lifeCount > lifeSpan) {
gotoAndPlay ("exit");
}
Symbol 89 MovieClip [target2] Frame 27
gotoAndPlay ("move");
lifeCount++;
Symbol 89 MovieClip [target2] Frame 34
stop();
this.removeMovieClip();
Symbol 96 MovieClip [wallSplat] Frame 1
this._xscale = this._xscale * ((Math.random() * 0.5) + 0.75);
this._yscale = this._yscale * ((Math.random() * 0.5) + 0.75);
Symbol 96 MovieClip [wallSplat] Frame 8
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 112 MovieClip [wang] Frame 1
stop();
ready = true;
Symbol 112 MovieClip [wang] Frame 9
_parent.fire();
Symbol 114 MovieClip [windowCrack] Frame 1
stop();
this._rotation = Math.random() * 360;
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 7
_parent._x = _parent._x - (_parent.speedBase * _parent._xscale);
_parent.ready = true;
head.play();
Symbol 142 MovieClip Frame 16
_parent.gotoAndStop("move");
Symbol 165 MovieClip Frame 27
_parent.gotoAndStop("move");
Symbol 166 MovieClip [target1] Frame 1
function hit(x, y) {
splatPlace = new Object();
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = 10000 / _yscale;
scorePlace = new Object();
scorePlace._x = (x * 100) / _xscale;
scorePlace._y = (y * 100) / _yscale;
scorePlace._xscale = 10000 / _xscale;
scorePlace._yscale = 10000 / _yscale;
scorePlace.val = 50;
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
if (this["splat" + layer].hitTest(zone1) && (ready)) {
ready = false;
this["splat" + layer].removeMovieClip();
gotoAndPlay ("hit1");
scorePlace.val = 200;
scorePlace._xscale = (scorePlace._yscale = scorePlace._yscale * 2);
} else if (this["splat" + layer].hitTest(zone2) && (ready)) {
ready = false;
this["splat" + layer].removeMovieClip();
gotoAndPlay ("hit2");
scorePlace._xscale = (scorePlace._yscale = scorePlace._yscale * 2);
scorePlace.val = 150;
}
layer++;
attachMovie("score", "score" + layer, layer, scorePlace);
layer++;
}
layer = 0;
ready = true;
Symbol 166 MovieClip [target1] Frame 2
stop();
speedBase = 1;
Symbol 166 MovieClip [target1] Frame 6
stop();
Symbol 166 MovieClip [target1] Frame 10
stop();
Symbol 172 MovieClip Frame 7
_parent._x = _parent._x + (_parent.speed * _parent.dir);
Symbol 174 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 5
this.onEnterFrame = function () {
_parent._x = _parent._x + (_parent.speed * _parent.dir);
};
Symbol 183 MovieClip Frame 9
this.onEnterFrame = null;
Symbol 184 MovieClip [targetW] Frame 1
function hit(x, y) {
soundBoxW.play();
if (!dance) {
gotoAndStop ("dance");
dance = true;
} else {
_xscale = (_xscale * -1);
scorePlace._xscale = scorePlace._xscale * -1;
dir = dir * -1;
}
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = 10000 / _yscale;
scorePlace._x = _x + x;
scorePlace._y = _y + y;
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
scorePlace._xscale = (scorePlace._yscale = 160);
layer++;
_parent.attachMovie("score", "score" + layer, layer, scorePlace);
scorePlace.val = scorePlace.val * 2;
if (scorePlace.val > 1000) {
scorePlace.val = 1000;
}
layer++;
}
splatPlace = new Object();
scorePlace = new Object();
scorePlace.val = 50;
speed = 70;
dir = -1;
dance = false;
this.onEnterFrame = function () {
if ((_x > 800) || (_x < -50)) {
this.removeMovieClip();
}
};
Symbol 184 MovieClip [targetW] Frame 2
stop();
Symbol 184 MovieClip [targetW] Frame 11
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 194 Button
on (release) {
gotoAndPlay (20);
}
Symbol 204 MovieClip Frame 1
stop();
broken = false;
Symbol 204 MovieClip Frame 2
broken = true;
scorePlace = new Object();
scorePlace._x = _x;
scorePlace._y = _y;
scorePlace.val = 100;
_parent.attachMovie("score", "score" + _parent.layer, _parent.layer, scorePlace);
_parent.layer++;
Symbol 204 MovieClip Frame 10
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha < 0) {
this.onEnterFrame = null;
}
};
Symbol 205 MovieClip Frame 1
function hit(x, y) {
splatPlace = new Object();
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = 10000 / _yscale;
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
for (bottle in bottleArray) {
if (bottleArray[bottle].hitTest(this["splat" + layer]) && (!bottleArray[bottle].broken)) {
bottleArray[bottle].gotoAndPlay("break");
this["splat" + layer].removeMovieClip();
break;
}
}
layer++;
}
layer = 0;
bottleArray = new Array();
i = 0;
while (i < 12) {
bottleArray[i] = this["bottle" + i];
i++;
}
Symbol 208 MovieClip Frame 1
this.onEnterFrame = function () {
blades._rotation = blades._rotation + 1;
};
Symbol 214 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
function hit(x, y) {
soundBox.play();
splatPlace = new Object();
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = 10000 / _yscale;
scorePlace = new Object();
scorePlace._x = (x * 100) / _xscale;
scorePlace._y = (y * 100) / _yscale;
scorePlace._xscale = 10000 / _xscale;
scorePlace._yscale = 10000 / _yscale;
scorePlace.val = 150;
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
layer++;
attachMovie("score", "score" + layer, layer, scorePlace);
layer++;
}
layer = 0;
ready = false;
stop();
Symbol 218 MovieClip Frame 2
ready = true;
Symbol 218 MovieClip Frame 58
ready = false;
Symbol 232 MovieClip Frame 41
stop();
Symbol 233 MovieClip Frame 1
function hit(x, y) {
gotoAndPlay ("hit");
}
_x = -60;
_y = -165;
ready = false;
stop();
Symbol 233 MovieClip Frame 2
stop();
ready = true;
this.onEnterFrame = function () {
_x = (_x + 5);
if (_x > 220) {
_x = -60;
this.onEnterFrame = null;
gotoAndPlay (1);
}
};
Symbol 233 MovieClip Frame 8
ready = false;
this.onEnterFrame = null;
Symbol 233 MovieClip Frame 18
stop();
counter = 0;
this.onEnterFrame = function () {
counter++;
_y = (_y + 5);
if (counter > 25) {
gotoAndPlay ("dog");
}
};
Symbol 233 MovieClip Frame 22
this.onEnterFrame = null;
_x = 65;
Symbol 233 MovieClip Frame 39
attachMovie("score", "score", 0);
score.val = 500;
score._y = -50;
Symbol 234 MovieClip Frame 1
function hit(x, y) {
crackPlace = new Object();
crackPlace._x = (x * 100) / _xscale;
crackPlace._y = (y * 100) / _yscale;
crackPlace._xscale = (((Math.random() * 50) + 100) * 100) / _xscale;
crackPlace._yscale = crackPlace._xscale;
crackPlace._alpha = 50;
this.attachMovie("windowCrack", "crack" + crackLayer, crackLayer, crackPlace);
if (crackLayer > 10) {
crackLayer = 0;
}
for (targ in targetArray) {
if (targetArray[targ].hitTest(this["crack" + crackLayer]) && (targetArray[targ].ready)) {
targetArray[targ].hit(x - targetArray[targ]._x, y - targetArray[targ]._y);
}
}
crackLayer++;
}
layer = 11;
crackLayer = 0;
targetArray = new Array();
targetArray[2] = targetD;
targetArray[1] = target3;
Symbol 235 MovieClip Frame 1
function hit(x, y) {
_root.window.hit(x + (_x - _root.window._x), y + (_y - _root.window._y));
}
Symbol 243 MovieClip Frame 1
ready = false;
stop();
Symbol 243 MovieClip Frame 2
ready = true;
Symbol 248 MovieClip Frame 1
function hit(x, y) {
offset = offset + 30;
splatPlace = new Object();
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = splatPlace._xscale;
scorePlace = new Object();
scorePlace = {_x:splatPlace._x, _y:splatPlace._y + 50, val:1000, _xscale:200, _yscale:200};
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
for (targ in targetArray) {
if (targetArray[targ].hitTest(this["splat" + layer]) && (targetArray[targ].ready)) {
attachMovie("score", "score", ++layer, scorePlace);
}
}
layer++;
}
layer = 0;
offset = 0;
targetArray = new Array();
targetArray[0] = door;
this.onEnterFrame = function () {
hand._rotation = (_root.counter / 10) + offset;
hand2._rotation = _root.counter / 600;
if (hand._rotation == 0) {
door.play();
}
};
Symbol 250 MovieClip Frame 1
function hit(x, y) {
splatPlace = new Object();
splatPlace._x = (x * 100) / _xscale;
splatPlace._y = (y * 100) / _yscale;
splatPlace._xscale = 10000 / _xscale;
splatPlace._yscale = 10000 / _yscale;
this.attachMovie("wallSplat", "splat" + layer, layer, splatPlace);
for (bottle in bottleArray) {
if (bottleArray[bottle].hitTest(this["splat" + layer]) && (!bottleArray[bottle].broken)) {
bottleArray[bottle].gotoAndPlay("break");
bottleArray[bottle].broken = true;
this["splat" + layer].removeMovieClip();
break;
}
}
layer++;
}
layer = 0;
bottleArray = new Array();
Symbol 264 Button
on (release) {
_root.stat.removeMovieClip();
_root.play();
}