Combined Code
frame 1 {
fire = false;
gunshot = new Sound(this);
gunshot.attachSound('shot');
mouseicon.gotoAndStop('crosshairs');
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 12 {
}
movieClip 15 {
}
movieClip 19 {
}
movieClip 22 {
}
movieClip 25 {
}
movieClip 28 {
}
movieClip 31 {
}
movieClip 34 {
}
movieClip 35 {
}
movieClip 36 {
instance of movieClip 35 {
onClipEvent (load) {
this.gotoAndStop(random(7) + 1);
}
}
frame 10 {
_root.fire = false;
}
}
movieClip 40 {
}
movieClip 42 {
instance of movieClip 36 {
onClipEvent (enterFrame) {
Xd = _root._xmouse - _root.lupon._x - 35;
Yd = _root._ymouse - _root.lupon._y + 135;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(radAngle * 360 / 6.283185307179586);
if (_root.fire == false) {
this.gotoAndStop(1);
} else {
this.play();
}
}
}
}
movieClip 43 {
}
movieClip 44 {
}
instance lupon of movieClip 44 {
onClipEvent (enterFrame) {
if ((Key.isDown(65) || Key.isDown(97)) && _x > 60) {
_x = _x - 4;
}
if ((Key.isDown(68) || Key.isDown(100)) && _x < 500) {
_x = _x + 4;
}
if ((Key.isDown(87) || Key.isDown(119)) && _y > 270) {
_y = _y - 3;
}
if ((Key.isDown(83) || Key.isDown(115)) && _y < 450) {
_y = _y + 3;
}
}
onClipEvent (mouseDown) {
if (_root.fire == false) {
_root.fire = true;
_root.gunshot.start(0, 1);
}
}
}
movieClip 55 {
}
movieClip 65 {
}
movieClip 70 {
frame 4 {
stop();
}
}
movieClip 71 {
}
instance mouseicon of movieClip 71 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
}
frame 2 {
stop();
}
instance mouseicon of movieClip 71 {
onClipEvent (enterFrame) {
this._x = 605;
this._y = _root._ymouse;
Mouse.hide();
}
}
movieClip 72 {
}
movieClip 74 {
}
movieClip 75 {
instance of movieClip 36 {
onClipEvent (enterFrame) {
this._x = _root.lupon2.body._x + 15;
this._y = _root.lupon2.body._y + 9;
this._rotation = 90 * _root.lupon2.body.yd * 0.001 - 5;
if (_root.fire == false) {
this.gotoAndStop(1);
} else {
this.play();
}
}
}
instance body of movieClip 74 {
onClipEvent (enterFrame) {
if (_root._ymouse > 360) {
ydist = 360;
} else {
if (_root._ymouse < 85) {
ydist = 85;
} else {
ydist = _root._ymouse;
}
}
yd = ydist - this._y;
this._y += yd * 0.075;
this._rotation = 90 * yd * 0.0025;
if (yd > 10) {
_root.mouseicon.gotoAndStop('down');
} else {
if (yd < -10) {
_root.mouseicon.gotoAndStop('up');
} else {
_root.mouseicon.gotoAndStop('neutral');
}
}
}
}
}
instance lupon2 of movieClip 75 {
onClipEvent (enterFrame) {
if ((Key.isDown(65) || Key.isDown(97) || Key.isDown(37)) && _x > 0) {
_x = _x - 4;
}
if ((Key.isDown(68) || Key.isDown(100) || Key.isDown(39)) && _x < 520) {
_x = _x + 4;
}
if ((Key.isDown(87) || Key.isDown(119) || Key.isDown(38)) && _y > -100) {
_y = _y - 3;
}
if ((Key.isDown(83) || Key.isDown(115) || Key.isDown(40)) && _y < 100) {
_y = _y + 3;
}
}
onClipEvent (mouseDown) {
if (_root.fire == false) {
_root.fire = true;
_root.gunshot.start(0, 1);
}
}
}
// unknown tag 88 length 119
movieClip 86 {
}