Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 4
xm = _root._xmouse;
ym = _root._ymouse;
zoomed = false;
_root.scope._visible = false;
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
_root.crosshair.startDrag();
Mouse.hide();
shot = new Sound();
shot.attachSound("gunshot");
reload = new Sound();
reload.attachSound("reload");
breath = new Sound();
breath.attachSound("breathing");
timee = 48;
blood._visible = false;
kills = 0;
health = 5;
bloodtime = 0;
_root.score._alpha = 50;
time_skill = 60;
turn = 100;
firstTime = false;
wait = 0;
meShot = false;
bloodtime = 0;
numShots = 0;
numEnsOut = 1;
lastTurn = 100;
birdHit = false;
enArray = new Array(8);
i = 0;
while (i < 8) {
enArray[i] = 0;
i++;
}
enTot = 1;
enOut = 0;
Instance of Symbol 89 MovieClip "main" in Frame 4
onClipEvent (mouseDown) {
if (_root.zoomed && (_root.wait < 0)) {
_root.bullet._x = 320;
_root.bullet._y = 240;
_root.shot.start();
_root.wait = 12;
_root.numShots++;
} else if ((_root.wait < 0) && (!_root.zoomed)) {
_root.bullet._x = _root._xmouse;
_root.bullet._y = _root._ymouse;
_root.shot.start();
_root.wait = 12;
_root.numShots++;
}
}
Frame 5
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
prevx = xm;
prevy = ym;
xm = _root._xmouse;
ym = _root._ymouse;
if ((!zoomed) && (breathing)) {
breathing = false;
breath.stop();
}
if (meShot) {
if (bloodtime == 0) {
health--;
}
if (blood._visible) {
blood._visible = false;
} else {
blood._visible = true;
}
bloodtime++;
}
if (6 < bloodtime) {
meShot = false;
blood._visible = false;
bloodtime = 0;
}
if (Key.isDown(Key.SHIFT) && (zoomed == false)) {
breathing = true;
_root.main._width = _root.main._width * 10;
_root.main._height = _root.main._height * 10;
breath.start(0, 10000);
_root.crosshair._visible = false;
if (240 < ym) {
_root.main._y = _root.main._y - ((ym - 240) * 10);
} else {
_root.main._y = _root.main._y + ((240 - ym) * 10);
}
if (320 < xm) {
_root.main._x = _root.main._x - ((xm - 320) * 10);
} else {
_root.main._x = _root.main._x + ((320 - xm) * 10);
}
_root.scope._visible = true;
zoomed = true;
}
if (zoomed) {
_root.main._x = _root.main._x - (xm - prevx);
}
if (zoomed) {
_root.main._y = _root.main._y - (ym - prevy);
}
if (zoomed && (Key.isDown(Key.CONTROL))) {
zoomed = false;
_root.main._width = _root.main._width / 10;
_root.main._height = _root.main._height / 10;
_root.main._x = 320;
_root.main._y = 240;
_root.scope._visible = false;
_root.crosshair._visible = true;
}
if (wait == 6) {
reload.start();
}
Frame 6
_root.bullet._x = -10000;
_root.bullet._y = -10000;
wait--;
timee++;
if (timee >= time_skill) {
turn = random(8);
if (enArray[turn] == 0) {
enArray[turn] = 1;
enOut++;
} else {
turn = 100;
}
if (enOut >= enTot) {
enOut = 0;
i = 0;
while (i < 8) {
enArray[i] = 0;
i++;
}
timee = random(36);
}
}
if (0 < (kills % 5)) {
firstTime = true;
}
if ((((kills % 5) == 0) && (firstTime)) && (kills != 0)) {
firstTime = false;
if (enTot < 8) {
enTot++;
}
}
if (((health == 0) && (!meShot)) || (health < 0)) {
gotoAndPlay (7);
} else {
gotoAndPlay (5);
}
Frame 7
breath.stop();
Mouse.show();
stop();
Instance of Symbol 117 MovieClip in Frame 7
onClipEvent (load) {
kills = _root.kills;
shotcount = _root.numShots;
if (0 < _root.numShots) {
accuracy = Math.floor((_root.kills / _root.numShots) * 100) + "%";
} else {
accuracy = "0%";
}
}
Symbol 22 Button
on (press) {
gotoAndPlay (4);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 1
hit = false;
stop();
Symbol 40 MovieClip Frame 10
stop();
Symbol 43 MovieClip Frame 1
stop();
Instance of Symbol 40 MovieClip "crook" in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.kills++;
hit = true;
gotoAndPlay (2);
}
}
Symbol 44 MovieClip Frame 1
stop();
Instance of Symbol 40 MovieClip "crook" in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.kills++;
hit = true;
gotoAndPlay (2);
}
}
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 40 MovieClip "crook" in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.kills++;
hit = true;
gotoAndPlay (2);
}
}
Symbol 46 MovieClip Frame 1
stop();
Instance of Symbol 43 MovieClip "crook" in Symbol 46 MovieClip Frame 1
onClipEvent (enterFrame) {
crook.moving = false;
}
Instance of Symbol 44 MovieClip "crook" in Symbol 46 MovieClip Frame 2
onClipEvent (enterFrame) {
crook.moving = true;
}
Symbol 46 MovieClip Frame 5
stop();
Instance of Symbol 45 MovieClip "crook" in Symbol 46 MovieClip Frame 5
onClipEvent (load) {
time = 0;
shooting = false;
shoot._visible = false;
shot = new Sound();
shot.attachSound("enemyShot");
shootTime = 24 + random(24);
}
onClipEvent (enterFrame) {
crook.moving = true;
if ((time >= shootTime) && (!crook.hit)) {
time = 0;
_root.meShot = true;
shot.start();
shooting = true;
shootTime = 12 + random(36);
}
if (shooting && (time < 6)) {
shoot._visible = true;
}
if (6 < time) {
shoot._visible = false;
shooting = false;
}
time++;
}
Symbol 50 MovieClip Frame 1
stop();
Instance of Symbol 50 MovieClip "cop" in Symbol 51 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.meShot = true;
hit = true;
gotoAndStop (2);
}
}
Instance of Symbol 50 MovieClip "cop" in Symbol 52 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.meShot = true;
hit = true;
gotoAndStop (2);
}
}
Instance of Symbol 50 MovieClip "cop" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.meShot = true;
hit = true;
gotoAndStop (2);
}
}
Instance of Symbol 50 MovieClip "cop" in Symbol 54 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.meShot = true;
hit = true;
gotoAndStop (2);
}
}
Symbol 55 MovieClip Frame 1
cop.cop.cop_head.gotoAndStop(1);
cop.cop.cop_body.gotoAndStop(1);
stop();
Instance of Symbol 51 MovieClip "cop" in Symbol 55 MovieClip Frame 1
onClipEvent (enterFrame) {
cop.moving = false;
}
Instance of Symbol 52 MovieClip "cop" in Symbol 55 MovieClip Frame 2
onClipEvent (enterFrame) {
cop.moving = true;
cop.moving = true;
}
Instance of Symbol 53 MovieClip "cop" in Symbol 55 MovieClip Frame 5
onClipEvent (enterFrame) {
cop.moving = true;
}
Symbol 59 MovieClip Frame 1
stop();
Instance of Symbol 59 MovieClip "baby" in Symbol 60 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.meShot = true;
hit = true;
gotoAndStop (2);
}
}
Instance of Symbol 59 MovieClip "baby" in Symbol 61 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (moving)) {
_root.meShot = true;
hit = true;
gotoAndStop (2);
}
}
Symbol 62 MovieClip Frame 1
baby.baby_head.gotoAndStop(1);
baby.baby_body.gotoAndStop(1);
stop();
Instance of Symbol 60 MovieClip "baby" in Symbol 62 MovieClip Frame 1
onClipEvent (enterFrame) {
baby.moving = false;
}
Instance of Symbol 61 MovieClip "baby" in Symbol 62 MovieClip Frame 2
onClipEvent (enterFrame) {
baby.moving = true;
}
Instance of Symbol 34 MovieClip in Symbol 63 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip in Symbol 73 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip in Symbol 74 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bullet)) {
gotoAndStop (2);
}
}
Symbol 85 MovieClip Frame 3
if (!_root.birdHit) {
gotoAndPlay (1);
}
Symbol 85 MovieClip Frame 60
_root.birdHit = false;
gotoAndPlay (1);
Symbol 86 MovieClip Frame 3
if (!_root.birdHit) {
gotoAndPlay (1);
}
Symbol 86 MovieClip Frame 60
_root.birdHit = false;
gotoAndPlay (1);
Symbol 87 MovieClip Frame 3
if (!_root.birdHit) {
gotoAndPlay (1);
}
Symbol 87 MovieClip Frame 60
_root.birdHit = false;
gotoAndPlay (1);
Symbol 88 MovieClip Frame 1
stop();
Instance of Symbol 85 MovieClip "bird" in Symbol 88 MovieClip Frame 1
onClipEvent (enterFrame) {
hit = false;
moving = false;
_root.birdHit = false;
}
Symbol 88 MovieClip Frame 2
birdsound = new Sound();
birdsound.attachSound("bird");
birdsound.start();
Instance of Symbol 86 MovieClip "bird" in Symbol 88 MovieClip Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (!hit)) {
hit = true;
gotoAndPlay (4);
}
hit = false;
moving = true;
}
Instance of Symbol 87 MovieClip "bird" in Symbol 88 MovieClip Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root.bullet) && (!hit)) {
_root.birdHit = true;
hit = true;
gotoAndPlay (4);
_root.health++;
}
_x = (_x - (40 + random(20)));
}
Symbol 88 MovieClip Frame 4
gotoAndPlay (3);
Instance of Symbol 63 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 6) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 64 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 7) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 67 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 5) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 68 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 4) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 73 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 2) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 74 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 3) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 78 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 0) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 79 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == 1) {
en = random(5);
if (en < 3) {
crook.play();
}
if (en == 3) {
baby.play();
}
if (en == 4) {
cop.play();
}
_root.turn = 100;
}
}
Instance of Symbol 88 MovieClip "bird" in Symbol 89 MovieClip Frame 1
onClipEvent (load) {
birdtime = 0;
time = random(120);
}
onClipEvent (enterFrame) {
if (birdtime == time) {
gotoAndPlay (2);
time = 240 + random(500);
birdtime = 0;
}
birdtime++;
}
Instance of Symbol 103 MovieClip "score" in Symbol 104 MovieClip Frame 1
onClipEvent (enterFrame) {
kills = _root.kills;
health = _root.health;
}
Symbol 108 Button
on (press) {
gotoAndPlay (1);
}