Frame 1
total_bytes = Math.ceil(_root.getBytesTotal() / 1000);
loaded_bytes = Math.ceil(_root.getBytesLoaded() / 1000);
percent_done = int((loaded_bytes / total_bytes) * 100);
bar.gotoAndStop(percent_done);
ifFrameLoaded (40) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
Mouse.show();
fscommand ("showmenu", false);
fscommand ("allowscale", false);
stop();
Frame 4
stopAllSounds();
gotoAndPlay (1);
Frame 5
_root.currentLev = 1;
stop();
startDrag ("_root.cursor", true);
Mouse.hide();
_root.score = 0;
_root.score1 = 0;
Instance of Symbol 125 MovieClip "pig01" in Frame 5
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed2 = 4;
}
_root.life = 1;
_root.speed2 = 4;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed2;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = _root.speed2 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig04" in Frame 5
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed = 4;
}
_root.life = 1;
_root.speed = 4;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = _root.speed / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig02" in Frame 5
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed1 = 3;
}
_root.life = 1;
_root.speed1 = 3;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed1;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = _root.speed1 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 140 MovieClip "actions" in Frame 5
onClipEvent (load) {
_root.pp01 = 0;
_root.pp02 = 0;
_root.ss01 = 0;
_root.ss02 = 0;
_root.rr01 = 0;
_root.rr02 = 0;
i = 1;
myListener = new Object();
_global.shot = "pistol";
}
onClipEvent (enterFrame) {
Mouse.addListener(myListener);
if (Key.isDown(81)) {
stopAllSounds();
_root.gotoAndPlay(1);
}
if (Key.isDown(49)) {
_root.cursor.gotoAndStop(1);
_global.shot = "pistol";
_root.fire.gotoAndStop(1);
}
if (Key.isDown(50)) {
_root.cursor.gotoAndStop(5);
_global.shot = "shotgun";
_root.fire.gotoAndStop(2);
}
if (Key.isDown(51)) {
_root.cursor.gotoAndStop(10);
_global.shot = "rocket";
_root.fire.gotoAndStop(3);
}
myListener.onMouseDown = function () {
_root.triggerHappy = true;
};
myListener.onMouseUp = function () {
_root.triggerHappy = false;
_root.shot.duplicateMovieClip("shot1" add i, i);
_root["shot1" add i]._y = _root._ymouse;
_root["shot1" add i]._x = _root._xmouse;
if (_global.shot == "pistol") {
_root["shot1" add i].gotoAndPlay(2);
} else if (_global.shot == "shotgun") {
_root["shot1" add i].gotoAndPlay(25);
} else {
_root["shot1" add i].gotoAndPlay(45);
}
i++;
};
if ((_root.score1 >= 25) && (_root.currentLev == 1)) {
_root.gotoAndPlay("get01");
_root.currentLev = 1;
}
if ((_root.score1 >= 50) && (_root.currentLev == 2)) {
_root.gotoAndPlay("get02");
_root.currentLev = 2;
}
if ((_root.score1 >= 95) && (_root.currentLev == 3)) {
_root.gotoAndPlay("get03");
_root.currentLev = 3;
}
if ((_root.score1 >= 135) && (_root.currentLev == 4)) {
_root.gotoAndPlay("get04");
_root.currentLev = 4;
}
if ((_root.score1 >= 175) && (_root.currentLev == 5)) {
stopAllSounds();
_root.gotoAndPlay("win");
_root.currentLev = 5;
}
if ((_root.pig01.getDepth() < _root.pig02.getDepth()) && (_root.pig01._y > _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() > _root.pig02.getDepth()) && (_root.pig01._y < _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() < _root.pig03.getDepth()) && (_root.pig01._y > _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() > _root.pig03.getDepth()) && (_root.pig01._y < _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() < _root.pig04.getDepth()) && (_root.pig01._y > _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() > _root.pig04.getDepth()) && (_root.pig01._y < _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig01);
}
if ((_root.pig02.getDepth() < _root.pig01.getDepth()) && (_root.pig02._y > _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() > _root.pig01.getDepth()) && (_root.pig02._y < _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() < _root.pig03.getDepth()) && (_root.pig02._y > _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() > _root.pig03.getDepth()) && (_root.pig02._y < _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() < _root.pig04.getDepth()) && (_root.pig02._y > _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() > _root.pig04.getDepth()) && (_root.pig02._y < _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig02);
}
if ((_root.pig03.getDepth() < _root.pig01.getDepth()) && (_root.pig03._y > _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() > _root.pig01.getDepth()) && (_root.pig03._y < _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() < _root.pig02.getDepth()) && (_root.pig03._y > _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() > _root.pig02.getDepth()) && (_root.pig03._y < _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() < _root.pig04.getDepth()) && (_root.pig03._y > _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() > _root.pig04.getDepth()) && (_root.pig03._y < _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig03);
}
if ((_root.pig04.getDepth() < _root.pig01.getDepth()) && (_root.pig04._y > _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() > _root.pig01.getDepth()) && (_root.pig04._y < _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() < _root.pig03.getDepth()) && (_root.pig04._y > _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() > _root.pig03.getDepth()) && (_root.pig04._y < _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() < _root.pig02.getDepth()) && (_root.pig04._y > _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() > _root.pig02.getDepth()) && (_root.pig04._y < _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig04);
}
}
Frame 6
stopAllSounds();
gotoAndPlay (5);
Frame 9
_root.currentLev = 2;
stop();
Instance of Symbol 125 MovieClip "pig01" in Frame 9
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed2 = 7;
}
_root.life = 1;
_root.speed2 = 7;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed2;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = _root.speed2 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig03" in Frame 9
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed3 = 6;
}
_root.life = 1;
_root.speed3 = 6;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed3;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = _root.speed3 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig04" in Frame 9
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed = 8;
}
_root.life = 1;
_root.speed = 8;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = _root.speed / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Frame 10
stopAllSounds();
gotoAndPlay (9);
Frame 14
_root.currentLev = 3;
stop();
Instance of Symbol 125 MovieClip "pig02" in Frame 14
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed1 = 10;
}
_root.life = 1;
_root.speed1 = 10;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed1;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = _root.speed1 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig01" in Frame 14
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed2 = 10;
}
_root.life = 1;
_root.speed2 = 10;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed2;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = _root.speed2 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig04" in Frame 14
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed = 8;
}
_root.life = 1;
_root.speed = 8;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = _root.speed / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig03" in Frame 14
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed3 = 6;
}
_root.life = 1;
_root.speed3 = 6;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed3;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = _root.speed3 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Frame 15
stopAllSounds();
gotoAndPlay (14);
Frame 19
_root.currentLev = 4;
stop();
Instance of Symbol 125 MovieClip "pig02" in Frame 19
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed1 = 8;
}
_root.life = 1;
_root.speed1 = 8;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed1;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = _root.speed1 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig01" in Frame 19
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed2 = 8;
}
_root.life = 1;
_root.speed2 = 8;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed2;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = _root.speed2 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig03" in Frame 19
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed3 = 10;
}
_root.life = 1;
_root.speed3 = 10;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed3;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = _root.speed3 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig04" in Frame 19
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed = 10;
}
_root.life = 1;
_root.speed = 10;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = _root.speed / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Frame 20
stopAllSounds();
gotoAndPlay (19);
Frame 24
_root.currentLev = 5;
stop();
Instance of Symbol 125 MovieClip "pig02" in Frame 24
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed1 = 10;
}
_root.life = 1;
_root.speed1 = 10;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed1;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = _root.speed1 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig01" in Frame 24
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed2 = 10;
}
_root.life = 1;
_root.speed2 = 10;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed2;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = _root.speed2 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig03" in Frame 24
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed3 = 12;
}
_root.life = 1;
_root.speed3 = 12;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed3;
if (this._x > 650) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = _root.speed3 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig04" in Frame 24
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed = 13;
}
_root.life = 1;
_root.speed = 13;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = _root.speed / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig05" in Frame 24
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed4 = 7;
}
_root.life = 1;
_root.speed4 = 7;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed4;
if (this._x < -50) {
_root.life++;
_root.heart.gotoAndStop(_root.life);
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed4 = _root.speed4 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed4 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed4 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed4 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed4 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed4 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed4 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed4 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Frame 25
stopAllSounds();
gotoAndPlay (24);
Frame 26
Mouse.show();
stop();
Frame 27
stop();
gotoAndPlay (26);
Frame 30
stop();
Frame 31
stopAllSounds();
gotoAndPlay (30);
Frame 35
startDrag ("_root.cursor", true);
Mouse.hide();
_root.score1 = 0;
Instance of Symbol 125 MovieClip "pig02" in Frame 35
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed1 = 5;
}
_root.speed1 = 5;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed1;
if (this._x < -50) {
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = _root.speed1 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed1 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed1 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed1 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed1 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig01" in Frame 35
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed2 = 3;
}
_root.speed2 = 3;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed2;
if (this._x > 650) {
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = _root.speed2 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed2 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed2 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed2 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed2 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig03" in Frame 35
onClipEvent (load) {
function reset() {
this._x = (-1 * random(200)) - 60;
this._y = random(60) + 180;
_root.speed3 = 4;
}
_root.speed3 = 4;
}
onClipEvent (enterFrame) {
this._x = this._x + _root.speed3;
if (this._x > 650) {
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = _root.speed3 / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed3 = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed3 = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed3 = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed3 = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 125 MovieClip "pig04" in Frame 35
onClipEvent (load) {
function reset() {
this._x = random(150) + 675;
this._y = random(60) + 180;
_root.speed = 4;
}
_root.speed = 4;
}
onClipEvent (enterFrame) {
this._x = this._x - _root.speed;
if (this._x < -50) {
this.gotoAndPlay("normal");
reset();
}
if (this.hitarea.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shotbody = true;
}
if (this.hitarea2.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okaythen = true;
}
if (this.hitarea4.hitTest(_root._xmouse, _root._ymouse, true)) {
this.okay = true;
}
if (((this.okaythen == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = _root.speed / 2;
this.gotoAndPlay("limp");
}
if ((((this.okay == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistolShotOnce == true)) {
_root.speed = 0.001;
this.gotoAndPlay("colt");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottie");
}
if (((this.shotbody == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazooka");
}
if (this.hitarea1.hitTest(_root._xmouse, _root._ymouse, true)) {
this.shothead = true;
}
if (this.hitarea5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.rockethead = true;
}
if (this.hitarea3.hitTest(_root._xmouse, _root._ymouse, true)) {
this.pistoldeadtwice = true;
}
if ((((this.pistolShotOnce == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) && (this.pistoldeadtwice == true)) {
_root.speed = 0.001;
this.gotoAndPlay("headbody");
}
if (((this.shothead == true) && (_root.triggerHappy == true)) && (_global.shot == "pistol")) {
_root.speed = 0.001;
this.gotoAndPlay("headshot");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "rocket")) {
_root.speed = 0.001;
this.gotoAndPlay("bazhead");
}
if (((this.rockethead == true) && (_root.triggerHappy == true)) && (_global.shot == "shotgun")) {
_root.speed = 0.001;
this.gotoAndPlay("shottiehead");
} else {
this.shothead = false;
this.shotbody = false;
this.pistoldeadtwice = false;
this.pistolShotOnce = false;
this.rockethead = false;
this.okay = false;
this.okaythen = false;
}
}
Instance of Symbol 140 MovieClip "actions" in Frame 35
onClipEvent (load) {
i = 1;
myListener = new Object();
_global.shot = "pistol";
}
onClipEvent (enterFrame) {
Mouse.addListener(myListener);
if (Key.isDown(81)) {
stopAllSounds();
_root.gotoAndPlay(1);
}
if (Key.isDown(49)) {
_root.cursor.gotoAndStop(1);
_global.shot = "pistol";
_root.fire.gotoAndStop(1);
}
if (Key.isDown(50)) {
_root.cursor.gotoAndStop(5);
_global.shot = "shotgun";
_root.fire.gotoAndStop(2);
}
if (Key.isDown(51)) {
_root.cursor.gotoAndStop(10);
_global.shot = "rocket";
_root.fire.gotoAndStop(3);
}
myListener.onMouseDown = function () {
_root.triggerHappy = true;
};
myListener.onMouseUp = function () {
_root.triggerHappy = false;
_root.shot.duplicateMovieClip("shot1" add i, i);
_root["shot1" add i]._y = _root._ymouse;
_root["shot1" add i]._x = _root._xmouse;
if (_global.shot == "pistol") {
_root["shot1" add i].gotoAndPlay(2);
} else if (_global.shot == "shotgun") {
_root["shot1" add i].gotoAndPlay(25);
} else {
_root["shot1" add i].gotoAndPlay(45);
}
i++;
};
if ((_root.score1 >= 25) && (_root.currentLev == 1)) {
_root.gotoAndPlay("get01");
_root.currentLev = 1;
}
if ((_root.score1 >= 50) && (_root.currentLev == 2)) {
_root.gotoAndPlay("get02");
_root.currentLev = 2;
}
if ((_root.score1 >= 95) && (_root.currentLev == 3)) {
_root.gotoAndPlay("get03");
_root.currentLev = 3;
}
if ((_root.score1 >= 135) && (_root.currentLev == 4)) {
_root.gotoAndPlay("get04");
_root.currentLev = 4;
}
if ((_root.score1 >= 175) && (_root.currentLev == 5)) {
stopAllSounds();
_root.gotoAndPlay("win");
_root.currentLev = 5;
}
if ((_root.pig01.getDepth() < _root.pig02.getDepth()) && (_root.pig01._y > _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() > _root.pig02.getDepth()) && (_root.pig01._y < _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() < _root.pig03.getDepth()) && (_root.pig01._y > _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() > _root.pig03.getDepth()) && (_root.pig01._y < _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() < _root.pig04.getDepth()) && (_root.pig01._y > _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig01);
}
if ((_root.pig01.getDepth() > _root.pig04.getDepth()) && (_root.pig01._y < _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig01);
}
if ((_root.pig02.getDepth() < _root.pig01.getDepth()) && (_root.pig02._y > _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() > _root.pig01.getDepth()) && (_root.pig02._y < _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() < _root.pig03.getDepth()) && (_root.pig02._y > _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() > _root.pig03.getDepth()) && (_root.pig02._y < _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() < _root.pig04.getDepth()) && (_root.pig02._y > _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig02);
}
if ((_root.pig02.getDepth() > _root.pig04.getDepth()) && (_root.pig02._y < _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig02);
}
if ((_root.pig03.getDepth() < _root.pig01.getDepth()) && (_root.pig03._y > _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() > _root.pig01.getDepth()) && (_root.pig03._y < _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() < _root.pig02.getDepth()) && (_root.pig03._y > _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() > _root.pig02.getDepth()) && (_root.pig03._y < _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() < _root.pig04.getDepth()) && (_root.pig03._y > _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig03);
}
if ((_root.pig03.getDepth() > _root.pig04.getDepth()) && (_root.pig03._y < _root.pig04._y)) {
_root.pig04.swapDepths(_root.pig03);
}
if ((_root.pig04.getDepth() < _root.pig01.getDepth()) && (_root.pig04._y > _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() > _root.pig01.getDepth()) && (_root.pig04._y < _root.pig01._y)) {
_root.pig01.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() < _root.pig03.getDepth()) && (_root.pig04._y > _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() > _root.pig03.getDepth()) && (_root.pig04._y < _root.pig03._y)) {
_root.pig03.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() < _root.pig02.getDepth()) && (_root.pig04._y > _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig04);
}
if ((_root.pig04.getDepth() > _root.pig02.getDepth()) && (_root.pig04._y < _root.pig02._y)) {
_root.pig02.swapDepths(_root.pig04);
}
}
Frame 36
gotoAndPlay (35);
Frame 40
Mouse.show();
stop();
Frame 41
gotoAndPlay (40);
Symbol 30 MovieClip Frame 1
bar.stop();
Symbol 43 Button
on (rollOver) {
_root.play.gotoAndStop(2);
}
on (rollOut) {
_root.play.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("stg1");
}
Symbol 44 Button
on (rollOver) {
_root.practice.gotoAndStop(2);
}
on (rollOut) {
_root.practice.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("prac");
}
Symbol 45 Button
on (rollOver) {
_root.instructions.gotoAndStop(2);
}
on (rollOut) {
_root.instructions.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("instruct");
}
Symbol 46 Button
on (rollOver) {
_root.quit.gotoAndStop(2);
}
on (rollOut) {
_root.quit.gotoAndStop(1);
}
on (release) {
fscommand ("quit");
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 76 Button
on (rollOver) {
_root.logo.gotoAndStop(2);
}
on (rollOut) {
_root.logo.gotoAndStop(1);
}
on (release) {
getURL ("http://www.alexanderbalanoff.com", "_blank");
}
Symbol 103 MovieClip Frame 1
play();
Symbol 109 MovieClip Frame 1
play();
Symbol 125 MovieClip Frame 6
this.gotoAndPlay("normal");
Symbol 125 MovieClip Frame 13
this.pistolShotOnce = true;
Instance of Symbol 66 MovieClip "hitarea3" in Symbol 125 MovieClip Frame 13
/* no clip actions */
Symbol 125 MovieClip Frame 14
this.pistolShotOnce = true;
Symbol 125 MovieClip Frame 15
this.pistolShotOnce = true;
Symbol 125 MovieClip Frame 16
this.pistolShotOnce = true;
Symbol 125 MovieClip Frame 17
this.pistolShotOnce = true;
Symbol 125 MovieClip Frame 18
this.pistolShotOnce = true;
Symbol 125 MovieClip Frame 19
this.pistolShotOnce = true;
Symbol 125 MovieClip Frame 20
this.pistolShotOnce = true;
this.gotoAndPlay("limppie");
Symbol 125 MovieClip Frame 68
stop();
gotoAndPlay (1);
_root.score1++;
_root.pp01++;
reset();
Symbol 125 MovieClip Frame 119
stop();
gotoAndPlay (1);
_root.score1++;
_root.ss01++;
reset();
Symbol 125 MovieClip Frame 169
stop();
gotoAndPlay (1);
_root.score1++;
_root.rr01++;
reset();
Symbol 125 MovieClip Frame 231
stop();
gotoAndPlay (1);
_root.score1++;
_root.pp02++;
reset();
Symbol 125 MovieClip Frame 290
stop();
gotoAndPlay (1);
_root.score1++;
_root.pp02++;
reset();
Symbol 125 MovieClip Frame 340
stop();
gotoAndPlay (1);
_root.score1++;
_root.rr02++;
reset();
Symbol 125 MovieClip Frame 390
stop();
gotoAndPlay (1);
_root.score1++;
_root.ss02++;
reset();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
play();
Symbol 130 MovieClip Frame 20
stop();
this.removeMovieClip();
Symbol 130 MovieClip Frame 24
stop();
Symbol 130 MovieClip Frame 25
play();
Symbol 130 MovieClip Frame 43
stop();
this.removeMovieClip();
Symbol 130 MovieClip Frame 44
stop();
Symbol 130 MovieClip Frame 45
play();
Symbol 130 MovieClip Frame 63
stop();
this.removeMovieClip();
Symbol 139 MovieClip Frame 1
stop();
_currentWeapon = pistol;
Symbol 139 MovieClip Frame 5
stop();
_currentWeapon = shotgun;
Symbol 139 MovieClip Frame 10
stop();
_currentWeapon = launcher;
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 3
stop();
Symbol 150 MovieClip Frame 4
stop();
stopAllSounds();
_root.gotoAndPlay("lose");
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 3
stop();
Symbol 159 MovieClip Frame 50
_root.gotoAndStop("stg2");
Symbol 166 MovieClip Frame 50
_root.gotoAndStop("stg3");
Symbol 173 MovieClip Frame 50
_root.gotoAndStop("stg4");
Symbol 180 MovieClip Frame 50
_root.gotoAndPlay("stg5");
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 210 Button
on (rollOver) {
_root.back.gotoAndStop(2);
}
on (rollOut) {
_root.back.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndPlay(1);
}