Frame 1
Stage.showMenu = false;
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
onEnterFrame = function () {
hairtext = _root.selectmom.head._currentframe;
bodytext = _root.selectmom.body._currentframe;
};
Instance of Symbol 164 MovieClip "selectmom" in Frame 5
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Instance of Symbol 167 MovieClip in Frame 5
on (press) {
_root.selectmom.head.gotoAndStop((_root.selectmom.head._currentframe = _root.selectmom.head._currentframe - 1));
}
Instance of Symbol 167 MovieClip in Frame 5
on (press) {
_root.selectmom.head.gotoAndStop((_root.selectmom.head._currentframe = _root.selectmom.head._currentframe + 1));
}
Instance of Symbol 167 MovieClip in Frame 5
on (press) {
_root.selectmom.body.gotoAndStop((_root.selectmom.body._currentframe = _root.selectmom.body._currentframe - 1));
}
Instance of Symbol 167 MovieClip in Frame 5
on (press) {
_root.selectmom.body.gotoAndStop((_root.selectmom.body._currentframe = _root.selectmom.body._currentframe + 1));
}
Instance of Symbol 171 MovieClip in Frame 5
on (press) {
_root.nextFrame();
}
Frame 6
stop();
music = new Sound(this);
music.attachSound("gamemusic");
music.start(0, 99);
var bc = 1000;
bulletcount = 30;
money = 100;
radius = 500;
intervals = 3000;
timer = 0;
i = 0;
_root.paused = false;
halfWidth = Stage.width / 2;
halfHeight = Stage.height / 2;
i = 0;
interval = setInterval(function () {
angle = random(360);
duplicateMovieClip (_root.robber, "robber" + i, i);
_root["robber" + i]._x = (Math.cos(angle * (Math.PI/180)) * radius) + halfWidth;
_root["robber" + i]._y = (Math.sin(angle * (Math.PI/180)) * radius) + halfHeight;
i++;
}, intervals);
_root.onMouseDown = function () {
bc++;
if (bc > 1100) {
bc = 1000;
}
if (((_root.man.arm._currentframe == 1) && (!(bulletcount === 0))) && (!_root.paused)) {
duplicateMovieClip ("bullet", "b" + bc, bc);
bulletcount = bulletcount - 1;
sfx = new Sound(this);
sfx.attachSound("pistol");
sfx.start(0, 1);
sfx.setVolume(100);
}
};
onEnterFrame = function () {
intervals--;
if (intervals < 500) {
intervals = 500;
}
};
Instance of Symbol 232 MovieClip "man" in Frame 6
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth() - 200);
if (!_root.paused) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (Key.isDown(39)) {
_x = (_x + speed);
} else if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(65)) {
_x = (_x - speed);
} else if (Key.isDown(68)) {
_x = (_x + speed);
}
if (Key.isDown(38)) {
_y = (_y - speed);
} else if (Key.isDown(40)) {
_y = (_y + speed);
}
if (Key.isDown(87)) {
_y = (_y - speed);
} else if (Key.isDown(83)) {
_y = (_y + speed);
}
if (Key.isDown(38) && (Key.isDown(40))) {
gotoAndStop (2);
}
if (Key.isDown(17)) {
this.arm.gotoAndStop((this.arm._currentframe = this.arm._currentframe + 1));
} else if (Key.isDown(16)) {
this.arm.gotoAndStop((this.arm._currentframe = this.arm._currentframe - 1));
} else if (Key.isDown(69)) {
this.arm.gotoAndStop((this.arm._currentframe = this.arm._currentframe + 1));
} else if (Key.isDown(81)) {
this.arm.gotoAndStop((this.arm._currentframe = this.arm._currentframe - 1));
}
}
if (_x > 540) {
_x = 540;
}
if (_x < 10) {
_x = 10;
}
if (_y > 390) {
_y = 390;
}
if (_y < 10) {
_y = 10;
}
}
Instance of Symbol 243 MovieClip "bullet" in Frame 6
onClipEvent (load) {
spd = 30;
_x = _root.man._x;
_y = _root.man._y;
_rotation = _root.man._rotation;
stopped = false;
}
onClipEvent (enterFrame) {
if (!stopped) {
if (_name == "bullet") {
_x = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
}
Instance of Symbol 164 MovieClip "mom" in Frame 6
onClipEvent (load) {
this.head.gotoAndStop((this.head._currentframe = this.head._currentframe + (_root.hairtext - 1)));
this.body.gotoAndStop((this.body._currentframe = this.body._currentframe + (_root.bodytext - 1)));
this.xtargets = new Array(25, 212, 510);
this.ytargets = new Array(35, 125, 250, 370);
this.xtarget = this.xtargets[random(this.xtargets.length)];
this.ytarget = this.ytargets[random(this.ytargets.length)];
this.speed = 4;
}
onClipEvent (enterFrame) {
if (!_root.paused) {
if ((Math.abs(this._x - this.xtarget) < this.speed) && (Math.abs(this._y - this.ytarget) < this.speed)) {
this.xtarget = this.xtargets[random(this.xtargets.length)];
this.ytarget = this.ytargets[random(this.ytargets.length)];
} else if (Math.abs(this._x - this.xtarget) > this.speed) {
if (this._x > this.xtarget) {
this._x = this._x - this.speed;
_rotation = 270;
} else {
this._x = this._x + this.speed;
_rotation = 90;
}
} else if (Math.abs(this._y - this.ytarget) > this.speed) {
if (this._y > this.ytarget) {
this._y = this._y - this.speed;
_rotation = 360;
} else {
this._y = this._y + this.speed;
_rotation = 180;
}
}
if (this.hitTest(_parent.char)) {
trace("HIT");
_root.gotoAndStop("lose");
}
}
}
Instance of Symbol 47 MovieClip [robber] "robber" in Frame 6
onClipEvent (load) {
tmpd = 0;
tmps = 0;
dist = 200;
speed = 2;
dead = false;
health = 100;
hurt = false;
}
onClipEvent (enterFrame) {
if (!_root.paused) {
angle_in_radians = Math.atan2(_root.mom._y - this._y, _root.mom._x - this._x);
angle_in_degrees = Math.round(((angle_in_radians * 180) / Math.PI) + 90);
if ((!dead) && (!hurt)) {
this._rotation = angle_in_degrees;
this._x = this._x + ((_root.mom._x - this._x) / 40);
this._y = this._y + ((_root.mom._y - this._y) / 40);
if (tmpd >= dist) {
tmps = -speed;
} else if (tmpd <= 0) {
tmps = speed;
}
tmpd = tmpd + tmps;
this._y = this._y + tmps;
}
i = 1000;
while (i < 1100) {
if (_root["b" + i].hitTest(this) && (this._currentframe == 1)) {
gotoAndStop (2);
dead = true;
_root["b" + i].gotoAndStop(2);
_root["b" + i].stopped = true;
}
i++;
}
if (this.hitTest(_root.man.arm.bat) && (_root.man.arm.bat.swing == true)) {
health = health - 4;
hurt = true;
_root.man.arm.bat.hit.play();
} else if (this.hitTest(_root.man.arm.fist) && (_root.man.arm.fist.swing == true)) {
health = health - 3;
hurt = true;
_root.man.arm.fist.hit.play();
} else if (this.hitTest(_root.man.arm.fish) && (_root.man.arm.fish.swing == true)) {
health = health - 6;
hurt = true;
_root.man.arm.fish.hit.play();
} else if (this.hitTest(_root.man.arm.katana) && (_root.man.arm.katana.swing == true)) {
health = health - 5;
hurt = true;
_root.man.arm.katana.hit.play();
} else {
hurt = false;
}
if (health < 0) {
dead = true;
}
if (dead) {
gotoAndStop (2);
}
if ((this.hitTest(_root.mom) && (!dead)) && (!hurt)) {
_root.money = _root.money - 20;
}
if (_root.money < 0) {
_root.paused = true;
_root.gameover.play();
_root.music.stop();
}
}
}
Instance of Symbol 256 MovieClip in Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop(_root.man.arm._currentframe);
if (this.hitTest(_root.man)) {
_alpha = 50;
} else {
_alpha = 100;
}
}
Instance of Symbol 264 MovieClip in Frame 6
onClipEvent (load) {
_x = 0;
_y = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 278 MovieClip "gameover" in Frame 6
onClipEvent (load) {
_x = 0;
_y = 0;
stop();
}
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
Frame 7
stop();
_root.gameover.removeMovieClip();
i = 0;
clearInterval(interval);
clearInterval(timeInt);
for (i in _root) {
if (_root[i]._name.indexOf("robber") != -1) {
_root[i].removeMovieClip();
}
_root.man.removeMovieClip();
}
Instance of Symbol 292 MovieClip in Frame 7
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOver) {
play();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
_root.gotoAndStop(6);
}
Instance of Symbol 295 MovieClip in Frame 7
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOver) {
play();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
_root.gotoAndStop(4);
}
Instance of Symbol 298 MovieClip in Frame 7
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOver) {
play();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Instance of Symbol 300 MovieClip in Frame 7
onClipEvent (load) {
_x = 0;
_y = 0;
}
Symbol 17 MovieClip Frame 1
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
_root.bulletcount = _root.bulletcount + 3;
Symbol 41 MovieClip Frame 8
stop();
this.removeMovieClip();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
_root.money = _root.money + 20;
Symbol 44 MovieClip Frame 5
stop();
this.removeMovieClip();
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
this._rotation = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man._x, _root.man._y, true) && (this._currentframe == 1)) {
play();
}
}
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.man._x, _root.man._y, true) && (this._currentframe == 1)) {
play();
_root.money = _root.money + 10;
}
}
Symbol 45 MovieClip Frame 3
stop();
this.removeMovieClip();
Instance of Symbol 30 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(8) + 1);
}
Symbol 46 MovieClip Frame 31
stop();
Instance of Symbol 45 MovieClip in Symbol 46 MovieClip Frame 31
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
Symbol 47 MovieClip [robber] Frame 1
stop();
Instance of Symbol 30 MovieClip in Symbol 47 MovieClip [robber] Frame 1
onClipEvent (load) {
gotoAndStop(random(8) + 1);
}
Symbol 62 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 69 MovieClip Frame 81
_root.play();
_root.play();
Symbol 88 MovieClip Frame 5
stop();
Symbol 91 MovieClip Frame 5
stop();
Symbol 94 MovieClip Frame 5
stop();
Symbol 121 MovieClip Frame 1
stop();
Instance of Symbol 99 MovieClip in Symbol 121 MovieClip Frame 1
on (press) {
_parent.prevFrame();
}
Instance of Symbol 102 MovieClip in Symbol 121 MovieClip Frame 1
on (press) {
_parent.nextFrame();
}
Instance of Symbol 108 MovieClip in Symbol 121 MovieClip Frame 1
on (press) {
_root.intro.play();
}
Symbol 122 MovieClip Frame 1
sfx = new Sound(_root);
sfx.attachSound("pistol");
sfx.start(0, 1);
Symbol 122 MovieClip Frame 15
sfx = new Sound(_root);
sfx.attachSound("pistol");
sfx.start(0, 1);
Symbol 122 MovieClip Frame 31
sfx = new Sound(_root);
sfx.attachSound("pistol");
sfx.start(0, 1);
Symbol 122 MovieClip Frame 78
sfx = new Sound(_root);
sfx.attachSound("bonk");
sfx.start(0, 1);
Instance of Symbol 88 MovieClip in Symbol 122 MovieClip Frame 83
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOver) {
play();
sfx = new Sound(_root);
sfx.attachSound("rollover");
sfx.start(0, 1);
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
_root.nextFrame();
}
Instance of Symbol 91 MovieClip in Symbol 122 MovieClip Frame 83
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOver) {
play();
sfx = new Sound(_root);
sfx.attachSound("rollover");
sfx.start(0, 1);
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
_parent.gotoAndPlay(91);
}
Instance of Symbol 94 MovieClip in Symbol 122 MovieClip Frame 83
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOver) {
play();
sfx = new Sound(_root);
sfx.attachSound("rollover");
sfx.start(0, 1);
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 122 MovieClip Frame 90
stop();
Symbol 122 MovieClip Frame 95
sfx = new Sound(_root);
sfx.attachSound("bonk");
sfx.start(0, 1);
Symbol 122 MovieClip Frame 98
stop();
Symbol 122 MovieClip Frame 107
gotoAndStop (90);
Symbol 140 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
sfx = new Sound(_root);
sfx.attachSound("baseballbat");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 186 MovieClip Frame 5
gotoAndStop (1);
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
sfx = new Sound(_root);
sfx.attachSound("whoosh");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 187 MovieClip Frame 5
gotoAndStop (1);
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
sfx = new Sound(_root);
sfx.attachSound("punch");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 192 MovieClip Frame 5
gotoAndStop (1);
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 8
sfx = new Sound(_root);
sfx.attachSound("whoosh");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 199 MovieClip Frame 11
gotoAndStop (1);
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
sfx = new Sound(_root);
sfx.attachSound("fishslap");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 203 MovieClip Frame 5
gotoAndStop (1);
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 6
sfx = new Sound(_root);
sfx.attachSound("thud");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 214 MovieClip Frame 14
gotoAndStop (1);
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
sfx = new Sound(_root);
sfx.attachSound("katana");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 220 MovieClip Frame 6
gotoAndStop (1);
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
sfx = new Sound(_root);
sfx.attachSound("whoosh");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 224 MovieClip Frame 6
gotoAndStop (1);
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Instance of Symbol 187 MovieClip "bat" in Symbol 225 MovieClip Frame 2
onClipEvent (mouseDown) {
if (_currentframe == 1) {
play();
}
}
onClipEvent (load) {
swing = false;
}
onClipEvent (enterFrame) {
if (!(this._currentframe === 1)) {
swing = true;
} else {
swing = false;
}
}
Symbol 225 MovieClip Frame 3
stop();
Instance of Symbol 199 MovieClip "fist" in Symbol 225 MovieClip Frame 3
onClipEvent (mouseDown) {
if (_currentframe == 1) {
play();
}
}
onClipEvent (load) {
swing = false;
}
onClipEvent (enterFrame) {
if (!(this._currentframe === 1)) {
swing = true;
} else {
swing = false;
}
}
Symbol 225 MovieClip Frame 4
stop();
Instance of Symbol 214 MovieClip "fish" in Symbol 225 MovieClip Frame 4
onClipEvent (mouseDown) {
if (_currentframe == 1) {
play();
}
}
onClipEvent (load) {
swing = false;
}
onClipEvent (enterFrame) {
if (((this._currentframe == 7) || (this._currentframe == 8)) || (this._currentframe == 9)) {
swing = true;
} else {
swing = false;
}
}
Symbol 225 MovieClip Frame 5
stop();
Instance of Symbol 224 MovieClip "katana" in Symbol 225 MovieClip Frame 5
onClipEvent (mouseDown) {
if (_currentframe == 1) {
play();
}
}
onClipEvent (load) {
swing = false;
}
onClipEvent (enterFrame) {
if (((this._currentframe == 2) || (this._currentframe == 2)) || (this._currentframe == 4)) {
swing = true;
} else {
swing = false;
}
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 8
stop();
this.removeMovieClip();
Symbol 243 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
stop();
bulletleft = 0;
onEnterFrame = function () {
bulletsleft = _root.bulletcount;
};
Symbol 264 MovieClip Frame 1
_root.paused = true;
Symbol 264 MovieClip Frame 10
sfx = new Sound(_root);
sfx.attachSound("buzz");
sfx.start(0, 1);
Symbol 264 MovieClip Frame 60
sfx = new Sound(_root);
sfx.attachSound("buzz");
sfx.start(0, 1);
Symbol 264 MovieClip Frame 99
sfx = new Sound(_root);
sfx.attachSound("buzz-long");
sfx.start(0, 1);
Symbol 264 MovieClip Frame 121
_root.paused = false;
Symbol 264 MovieClip Frame 122
stop();
this.removeMovieClip();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 9
sfx = new Sound(_root);
sfx.attachSound("4stringhorror");
sfx.start(0, 1);
sfx.setVolume(100);
Symbol 278 MovieClip Frame 105
stop();
_root.nextFrame();
Symbol 288 MovieClip Frame 75
stop();
Symbol 292 MovieClip Frame 5
stop();
Symbol 295 MovieClip Frame 5
stop();
Symbol 298 MovieClip Frame 5
stop();
Symbol 300 MovieClip Frame 1
sfx = new Sound(_root);
sfx.attachSound("funeral");
sfx.start(0, 1);
Symbol 300 MovieClip Frame 55
stop();
this.removeMovieClip();