Frame 3
weapon = "3a";
badguy1Ai = "walk";
death1 = 5;
hit1 = 1;
dead1 = 1;
Instance of Symbol 16 MovieClip "bg" in Frame 3
onClipEvent (enterFrame) {
if (key.isDown(39)) {
this._x = this._x - 5;
}
if (key.isDown(37)) {
this._x = this._x + 5;
}
}
Instance of Symbol 72 MovieClip "tommyPump" in Frame 3
onClipEvent (load) {
slap = 1;
time = 41;
}
onClipEvent (enterFrame) {
if ((timing = 2)) {
time = time + 1;
}
if (40 < time) {
slap = 1;
}
if (key.isDown(32)) {
if (key.isDown(39)) {
if ((slap == 1) and (this._visible == true)) {
if (40 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if (key.isDown(37)) {
if ((slap == 1) and (this._visible == true)) {
if (40 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
if (40 < time) {
this.gotoAndPlay(28);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (key.getCode(39) == false) {
if (slap == 2) {
if (55 < this._currentframe) {
play();
}
}
}
}
if (key.getCode(32)) {
if (key.getCode(39)) {
if (slap == 2) {
if (26 < this._currentframe) {
play();
}
}
shoot = 1;
}
}
}
Instance of Symbol 102 MovieClip "tommyMac" in Frame 3
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 137 MovieClip "tommyAK" in Frame 3
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 179 MovieClip "tommyBerretas" in Frame 3
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 350 MovieClip "badguy1" in Frame 3
onClipEvent (enterFrame) {
if (key.isDown(39)) {
this._x = this._x - 5;
}
if (key.isDown(37)) {
this._x = this._x + 5;
}
}
Frame 4
if (weapon == "1a") {
tommyBerretas._visible = true;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "2a") {
tommyBerretas._visible = false;
tommyMac._visible = true;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "3a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = true;
tommyAK._visible = false;
}
if (weapon == "4a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = true;
}
gunt1 = gunt1 + 1;
badguy1d = Math.abs(tommyMac._x - badguy1._x);
var _local1 = 2;
if (((!((dead1) === (_local1))) and ((badguy1._x - (badguy1._width / 2)) < tommyMac._x)) and (tommyMac._x < (badguy1._x + (badguy1._width / 2)))) {
badguy1.gotoAndStop(1);
}
_local1 = 2;
if (((400 < badguy1d) and (badguy1Ai == "shoot")) and (!((dead1) === (_local1)))) {
badguy1.gotoAndPlay(1);
badguy1Ai = "walk";
}
if (((badguy1._currentframe == 1) and (0 < badguy1._xscale)) and (badguy1._x < tommyMac._x)) {
badguy1._xscale = -225;
}
if (((badguy1._currentframe == 1) and (badguy1._xscale < 0)) and (tommyMac._x < badguy1._x)) {
badguy1._xscale = 225;
}
_local1 = 2;
if ((badguy1Ai == "walk") and (!((dead1) === (_local1)))) {
if ((tommyMac._x < badguy1._x) and (400 < badguy1d)) {
badguy1._xscale = 225;
badguy1m = -3.25;
}
if ((badguy1._x < tommyMac._x) and (400 < badguy1d)) {
badguy1._xscale = -225;
badguy1m = 3.25;
}
if (badguy1d < 400) {
badguy1Ai = "shoot";
badguy1.gotoAndStop(4);
}
badguy1._x = badguy1._x + badguy1m;
}
gunt = gunt + 1;
if ((150 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if ((death1 < 0) and (weapon == "3a")) {
if (300 < badguy1d) {
badguy1.gotoAndStop(23);
} else {
badguy1.gotoAndStop(22);
}
death1 = 5;
dead1 = 2;
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "4a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "2a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "2a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (30 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "1a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "1a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(72);
badguy1m = 0;
}
Frame 5
if (dead1 == 2) {
gotoAndPlay (6);
} else {
gotoAndPlay (4);
}
Frame 6
if (weapon == "1a") {
tommyBerretas._visible = true;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "2a") {
tommyBerretas._visible = false;
tommyMac._visible = true;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "3a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = true;
tommyAK._visible = false;
}
if (weapon == "4a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = true;
}
gunt1 = gunt1 + 1;
badguy1d = Math.abs(tommyMac._x - badguy1._x);
var _local1 = 2;
if (((!((dead1) === (_local1))) and ((badguy1._x - (badguy1._width / 2)) < tommyMac._x)) and (tommyMac._x < (badguy1._x + (badguy1._width / 2)))) {
badguy1.gotoAndStop(1);
}
_local1 = 2;
if (((400 < badguy1d) and (badguy1Ai == "shoot")) and (!((dead1) === (_local1)))) {
badguy1.gotoAndPlay(1);
badguy1Ai = "walk";
}
if (((badguy1._currentframe == 1) and (0 < badguy1._xscale)) and (badguy1._x < tommyMac._x)) {
badguy1._xscale = -225;
}
if (((badguy1._currentframe == 1) and (badguy1._xscale < 0)) and (tommyMac._x < badguy1._x)) {
badguy1._xscale = 225;
}
_local1 = 2;
if ((badguy1Ai == "walk") and (!((dead1) === (_local1)))) {
if ((tommyMac._x < badguy1._x) and (400 < badguy1d)) {
badguy1._xscale = 225;
badguy1m = -3.25;
}
if ((badguy1._x < tommyMac._x) and (400 < badguy1d)) {
badguy1._xscale = -225;
badguy1m = 3.25;
}
if (badguy1d < 400) {
badguy1Ai = "shoot";
badguy1.gotoAndStop(4);
}
badguy1._x = badguy1._x + badguy1m;
}
gunt = gunt + 1;
if ((150 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if ((death1 < 0) and (weapon == "3a")) {
if (300 < badguy1d) {
badguy1.gotoAndStop(23);
} else {
badguy1.gotoAndStop(22);
}
death1 = 5;
dead1 = 2;
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "4a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "2a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "2a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (30 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "1a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "1a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(72);
badguy1m = 0;
}
Frame 7
if (dead1 == 2) {
gotoAndPlay (6);
} else {
gotoAndPlay (4);
}
Frame 8
weapon = "3a";
badguy1Ai = "walk";
death1 = 5;
health = 100;
hit1 = 1;
hitb1 = 1;
deadb1 = 1;
dead1 = 1;
Instance of Symbol 16 MovieClip "bg" in Frame 8
onClipEvent (enterFrame) {
if (key.isDown(39)) {
this._x = this._x - 5;
}
if (key.isDown(37)) {
this._x = this._x + 5;
}
}
Instance of Symbol 72 MovieClip "tommyPump" in Frame 8
onClipEvent (load) {
slap = 1;
time = 41;
}
onClipEvent (enterFrame) {
if ((timing = 2)) {
time = time + 1;
}
if (29 < time) {
slap = 1;
}
if (key.isDown(32)) {
if (key.isDown(39)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if (key.isDown(37)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndPlay(28);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (key.getCode(39) == false) {
if (slap == 2) {
if (55 < this._currentframe) {
play();
}
}
}
}
if (key.getCode(32)) {
if (key.getCode(39)) {
if (slap == 2) {
if (26 < this._currentframe) {
play();
}
}
shoot = 1;
}
}
}
Instance of Symbol 102 MovieClip "tommyMac" in Frame 8
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 137 MovieClip "tommyAK" in Frame 8
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 179 MovieClip "tommyBerretas" in Frame 8
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 350 MovieClip "badguy1" in Frame 8
onClipEvent (enterFrame) {
if (key.isDown(39)) {
this._x = this._x - 5;
}
if (key.isDown(37)) {
this._x = this._x + 5;
}
}
Frame 9
if (weapon == "1a") {
tommyBerretas._visible = true;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "2a") {
tommyBerretas._visible = false;
tommyMac._visible = true;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "3a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = true;
tommyAK._visible = false;
}
if (weapon == "4a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = true;
}
if (hitb1 == 1) {
if (((((badguy1._currentframe == 21) and (badguy1Ai == "shoot")) and (0 < badguy1._xscale)) and (tommyMac._x < badguy1._x)) or ((((badguy1._currentframe == 21) and (badguy1Ai == "shoot")) and (badguy1._xscale < 0)) and (badguy1._x < tommyMac._x))) {
health = health - 5;
hitb1 = 2;
}
}
if (hitb1 == 2) {
guntb1 = guntb1 + 1;
}
if (5 < guntb1) {
guntb1 = 0;
hitb1 = 1;
}
gunt1 = gunt1 + 1;
badguy1d = Math.abs(tommyMac._x - badguy1._x);
if (badguy1d < 400) {
badguy1Ai = "shoot";
}
var _local1 = 2;
if (((!((dead1) === (_local1))) and ((badguy1._x - (badguy1._width / 2)) < tommyMac._x)) and (tommyMac._x < (badguy1._x + (badguy1._width / 2)))) {
badguy1.gotoAndStop(1);
}
_local1 = 2;
_local1 = 2;
if ((((!((hit1) === (_local1))) and (!((dead1) === (_local1)))) and (100 < badguy1d)) and (badguy1d < 400)) {
badguy1.gotoAndStop(21);
}
_local1 = 2;
if (((400 < badguy1d) and (badguy1Ai == "shoot")) and (!((dead1) === (_local1)))) {
badguy1.gotoAndPlay(1);
badguy1Ai = "walk";
}
if (((badguy1._currentframe == 1) and (0 < badguy1._xscale)) and (badguy1._x < tommyMac._x)) {
badguy1._xscale = -225;
}
if (((badguy1._currentframe == 1) and (badguy1._xscale < 0)) and (tommyMac._x < badguy1._x)) {
badguy1._xscale = 225;
}
_local1 = 2;
if ((badguy1Ai == "walk") and (!((dead1) === (_local1)))) {
if ((tommyMac._x < badguy1._x) and (400 < badguy1d)) {
badguy1._xscale = 225;
badguy1m = -3.25;
}
if ((badguy1._x < tommyMac._x) and (400 < badguy1d)) {
badguy1._xscale = -225;
badguy1m = 3.25;
}
badguy1._x = badguy1._x + badguy1m;
if (badguy1Ai == "shoot") {
guntb1 = 1;
badguy1.gotoAndStop(21);
}
}
gunt = gunt + 1;
if ((150 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if ((death1 < 0) and (weapon == "3a")) {
if (300 < badguy1d) {
badguy1.gotoAndStop(23);
} else {
badguy1.gotoAndStop(22);
}
death1 = 5;
dead1 = 2;
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "4a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "2a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "2a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (30 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "1a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "1a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
balls = random(2);
if (balls == 1) {
badguy1.gotoAndPlay(72);
badguy1m = 0;
} else {
badguy1.gotoAndPlay(118);
badguy1m = 0;
}
}
Frame 10
gotoAndPlay (9);
Frame 11
weapon = "3a";
badguy1Ai = "walk";
death1 = 5;
health = 100;
hit1 = 1;
hitb1 = 1;
deadb1 = 1;
deadt1 = 0;
dead1 = 1;
Instance of Symbol 72 MovieClip "tommyPump" in Frame 11
onClipEvent (load) {
slap = 1;
time = 41;
}
onClipEvent (enterFrame) {
if ((timing = 2)) {
time = time + 1;
}
if (29 < time) {
slap = 1;
}
if (key.isDown(32)) {
if (key.isDown(39)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if (key.isDown(37)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndPlay(28);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (key.getCode(39) == false) {
if (slap == 2) {
if (55 < this._currentframe) {
play();
}
}
}
}
if (key.getCode(32)) {
if (key.getCode(39)) {
if (slap == 2) {
if (26 < this._currentframe) {
play();
}
}
shoot = 1;
}
}
}
Instance of Symbol 102 MovieClip "tommyMac" in Frame 11
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 137 MovieClip "tommyAK" in Frame 11
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 179 MovieClip "tommyBerretas" in Frame 11
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 350 MovieClip "badguy1" in Frame 11
onClipEvent (enterFrame) {
if (key.isDown(39)) {
this._x = this._x - 5;
}
if (key.isDown(37)) {
this._x = this._x + 5;
}
}
Frame 12
if (dead1 == 2) {
deadt1 = deadt1 + 1;
}
if (50 < deadt1) {
gotoAndPlay (15);
}
if (health < 0) {
gotoAndStop (14);
}
if (weapon == "1a") {
tommyBerretas._visible = true;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "2a") {
tommyBerretas._visible = false;
tommyMac._visible = true;
tommyPump._visible = false;
tommyAK._visible = false;
}
if (weapon == "3a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = true;
tommyAK._visible = false;
}
if (weapon == "4a") {
tommyBerretas._visible = false;
tommyMac._visible = false;
tommyPump._visible = false;
tommyAK._visible = true;
}
if (hitb1 == 1) {
if (((((badguy1._currentframe == 21) and (badguy1Ai == "shoot")) and (0 < badguy1._xscale)) and (tommyMac._x < badguy1._x)) or ((((badguy1._currentframe == 21) and (badguy1Ai == "shoot")) and (badguy1._xscale < 0)) and (badguy1._x < tommyMac._x))) {
health = health - 15;
hitb1 = 2;
}
}
if (hitb1 == 2) {
guntb1 = guntb1 + 1;
}
if (5 < guntb1) {
guntb1 = 0;
hitb1 = 1;
}
gunt1 = gunt1 + 1;
badguy1d = Math.abs(tommyMac._x - badguy1._x);
if (badguy1d < 400) {
badguy1Ai = "shoot";
}
var _local1 = 2;
if (((!((dead1) === (_local1))) and ((badguy1._x - (badguy1._width / 2)) < tommyMac._x)) and (tommyMac._x < (badguy1._x + (badguy1._width / 2)))) {
badguy1.gotoAndStop(1);
}
_local1 = 2;
_local1 = 2;
if ((((!((hit1) === (_local1))) and (!((dead1) === (_local1)))) and (100 < badguy1d)) and (badguy1d < 400)) {
badguy1.gotoAndStop(21);
}
_local1 = 2;
if (((400 < badguy1d) and (badguy1Ai == "shoot")) and (!((dead1) === (_local1)))) {
badguy1.gotoAndPlay(1);
badguy1Ai = "walk";
}
if (((badguy1._currentframe == 1) and (0 < badguy1._xscale)) and (badguy1._x < tommyMac._x)) {
badguy1._xscale = -225;
}
if (((badguy1._currentframe == 1) and (badguy1._xscale < 0)) and (tommyMac._x < badguy1._x)) {
badguy1._xscale = 225;
}
_local1 = 2;
if ((badguy1Ai == "walk") and (!((dead1) === (_local1)))) {
if ((tommyMac._x < badguy1._x) and (400 < badguy1d)) {
badguy1._xscale = 225;
badguy1m = -3.25;
}
if ((badguy1._x < tommyMac._x) and (400 < badguy1d)) {
badguy1._xscale = -225;
badguy1m = 3.25;
}
badguy1._x = badguy1._x + badguy1m;
if (badguy1Ai == "shoot") {
guntb1 = 1;
badguy1.gotoAndStop(21);
}
}
gunt = gunt + 1;
if ((150 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if ((death1 < 0) and (weapon == "3a")) {
if (300 < badguy1d) {
badguy1.gotoAndStop(23);
} else {
badguy1.gotoAndStop(22);
}
death1 = 5;
dead1 = 2;
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "4a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "4a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (20 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "2a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "2a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
badguy1.gotoAndPlay(34);
badguy1m = 0;
}
gunt = gunt + 1;
ai = ai + 1;
if ((badguy1Ai == "shot") and (30 < ai)) {
ai = 0;
badguy1Ai = "walk";
}
if ((15 < gunt) and (weapon == "1a")) {
gunt = 0;
hit1 = 1;
}
if (((death1 < 0) and (weapon == "1a")) and (dead1 == 1)) {
death1 = 5;
dead1 = 2;
balls = random(2);
if (balls == 1) {
badguy1.gotoAndPlay(72);
badguy1m = 0;
} else {
badguy1.gotoAndPlay(118);
badguy1m = 0;
}
}
Frame 13
gotoAndPlay (12);
Frame 15
badguy1Ai = "walk";
badguy1.gotoAndPlay(1);
count = count + 1;
if (10 < count) {
gotoAndStop (14);
}
badguy1m = 5;
death1 = 5;
hit1 = 1;
deadt1 = 0;
hitb1 = 1;
deadb1 = 1;
dead1 = 1;
badguy1._x = 960;
gotoAndPlay (12);
Instance of Symbol 72 MovieClip "tommyPump" in Frame 15
onClipEvent (load) {
slap = 1;
time = 41;
}
onClipEvent (enterFrame) {
if ((timing = 2)) {
time = time + 1;
}
if (29 < time) {
slap = 1;
}
if (key.isDown(32)) {
if (key.isDown(39)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if (key.isDown(37)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndStop(58);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
}
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
if (29 < time) {
this.gotoAndPlay(28);
slap = 2;
time = 0;
shoot = 2;
timing = 2;
}
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (key.getCode(39) == false) {
if (slap == 2) {
if (55 < this._currentframe) {
play();
}
}
}
}
if (key.getCode(32)) {
if (key.getCode(39)) {
if (slap == 2) {
if (26 < this._currentframe) {
play();
}
}
shoot = 1;
}
}
}
Instance of Symbol 102 MovieClip "tommyMac" in Frame 15
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 137 MovieClip "tommyAK" in Frame 15
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 179 MovieClip "tommyBerretas" in Frame 15
onClipEvent (load) {
slap = 1;
}
onClipEvent (enterFrame) {
if (key.isDown(32)) {
if ((slap == 1) and (this._visible == true)) {
this.gotoAndStop(26);
slap = 2;
shoot = 2;
}
}
if (key.isDown(39)) {
this.play();
this._xscale = 35;
}
if (key.isDown(37)) {
this.play();
this._xscale = -35;
}
}
onClipEvent (keyUp) {
if (key.getCode(39)) {
this.stop();
}
if (key.getCode(32)) {
if (slap == 2) {
slap = 1;
shoot = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 350 MovieClip "badguy1" in Frame 15
onClipEvent (enterFrame) {
if (key.isDown(39)) {
this._x = this._x - 5;
}
if (key.isDown(37)) {
this._x = this._x + 5;
}
}
Symbol 6 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 6 MovieClip Frame 2
gotoAndPlay (1);
Symbol 6 MovieClip Frame 3
_root.gotoAndStop(2);
Symbol 12 Button
on (release) {
stopAllSounds();
gotoAndPlay (11);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 25
gotoAndPlay (1);
Symbol 72 MovieClip Frame 57
gotoAndStop (1);
Symbol 72 MovieClip Frame 87
gotoAndStop (1);
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 25
gotoAndPlay (1);
Symbol 102 MovieClip Frame 50
gotoAndStop (26);
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 25
gotoAndPlay (1);
Symbol 137 MovieClip Frame 40
gotoAndStop (26);
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 25
gotoAndStop (1);
Symbol 179 MovieClip Frame 51
gotoAndStop (27);
Symbol 234 MovieClip Frame 50
stop();
Symbol 270 MovieClip Frame 50
stop();
Symbol 350 MovieClip Frame 20
gotoAndPlay (1);
Symbol 350 MovieClip Frame 32
gotoAndPlay (1);
Symbol 350 MovieClip Frame 63
stop();
Symbol 350 MovieClip Frame 71
gotoAndPlay (1);
Symbol 350 MovieClip Frame 108
stop();
Symbol 350 MovieClip Frame 117
gotoAndPlay (1);
Symbol 350 MovieClip Frame 158
stop();
Symbol 354 MovieClip Frame 220
stop();
Symbol 357 Button
on (keyPress "1") {
weapon = "1a";
}
on (keyPress "2") {
weapon = "2a";
}
on (keyPress "3") {
weapon = "3a";
}
on (keyPress "4") {
weapon = "4a";
}
on (keyPress "<Space>") {
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "3a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "3a"))) {
death1 = -5;
hit1 = 2;
}
}
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "4a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "4a"))) {
death1 = death1 - 1.5;
hit1 = 2;
badguy1.gotoAndPlay(24);
badguy1m = 0;
badguy1Ai = "shot";
}
}
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "2a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "2a"))) {
death1 = death1 - 1;
hit1 = 2;
badguy1.gotoAndPlay(24);
badguy1m = 0;
badguy1Ai = "shot";
}
}
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "1a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "1a"))) {
death1 = death1 - 1;
hit1 = 2;
badguy1.gotoAndPlay(65);
badguy1m = 0;
badguy1Ai = "shot";
}
}
}
Symbol 358 Button
on (keyPress "1") {
weapon = "1a";
}
on (keyPress "2") {
weapon = "2a";
}
on (keyPress "3") {
weapon = "3a";
}
on (keyPress "4") {
weapon = "4a";
}
on (keyPress "<Space>") {
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and ((badguy1._width + tommyMac._x) < badguy1._x)) and (weapon == "3a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < (tommyMac._x - badguy1._width))) and (weapon == "3a"))) {
death1 = -5;
hit1 = 2;
}
}
}
Symbol 362 MovieClip Frame 610
stop();
Symbol 364 Button
on (press) {
gotoAndStop (1);
}
Symbol 368 Button
on (keyPress "1") {
weapon = "1a";
}
on (keyPress "2") {
weapon = "2a";
}
on (keyPress "3") {
weapon = "3a";
}
on (keyPress "4") {
weapon = "4a";
}
on (keyPress "<Space>") {
if (hit1 == 1) {
if ((((((((tommyPump._currentframe < 26) and (dead1 == 1)) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "3a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "3a"))) {
death1 = -5;
hit1 = 2;
}
}
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "4a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "4a"))) {
death1 = death1 - 1.5;
hit1 = 2;
badguy1.gotoAndPlay(24);
badguy1m = 0;
badguy1Ai = "shot";
}
}
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "2a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "2a"))) {
death1 = death1 - 1;
hit1 = 2;
badguy1.gotoAndPlay(24);
badguy1m = 0;
badguy1Ai = "shot";
}
}
if (hit1 == 1) {
if (((((((dead1 == 1) and (0 < tommyMac._xscale)) and (tommyMac._x < badguy1._x)) and (badguy1._x < 900)) and (((badguy1._width + tommyMac._x) - 50) < badguy1._x)) and (weapon == "1a")) or ((((((dead1 == 1) and (tommyMac._xscale < 0)) and (badguy1._x < tommyMac._x)) and (0 < badguy1._x)) and (badguy1._x < ((tommyMac._x - badguy1._width) + 50))) and (weapon == "1a"))) {
death1 = death1 - 1;
hit1 = 2;
badguy1.gotoAndPlay(65);
badguy1m = 0;
badguy1Ai = "shot";
}
}
}
Symbol 376 Button
on (release) {
gotoAndPlay (11);
}