Frame 5
fscommand ("allowScale", false);
stop();
Instance of Symbol 37 MovieClip "beginGame" in Frame 11
on (release) {
_parent.play();
}
Frame 37
function CountDownTimer(durationMin) {
var _local1 = this;
AsBroadcaster.initialize(_local1);
_local1.duration = (durationMin * 60) * 1000;
_local1.startTime = getTimer();
_local1.id = setInterval(_local1, "checkTime", 1000);
_local1.checkTime();
}
function onProgress(timeLeftMS) {
var totalSeconds = (timeLeftMS / 1000);
var _local1 = Math.floor(totalSeconds / 3600);
var _local2 = Math.floor((totalSeconds - ((_local1 > 0) ? 3600 : 0)) / 60);
var _local3 = Math.floor(totalSeconds - ((_local1 * 3600) + (_local2 * 60)));
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (_local2 < 10) {
_local2 = "0" + _local2;
}
if (_local3 < 10) {
_local3 = "0" + _local3;
}
timerTF.text = (_local2 + ":") + _local3;
}
function onComplete() {
var _local1 = _root;
timerTF.text = "00:00";
_local1.targetsMissed = _local1.targetsHit - _local1.targetsSeen;
_local1.accuracy = Math.round((_local1.targetsHit / _local1.shotsFired) * 100);
trace("targetsHit: " + _local1.targetsHit);
trace("accuracy: " + _local1.accuracy);
if ((_local1.accuracy == 100) && (_local1.targetsHit >= 10)) {
_local1.perfectScore = 1;
}
_local1.levelNum++;
_local1.level = "level_" + _local1.levelNum;
_local1.gotoAndPlay(_local1.level);
}
Mouse.hide();
perfectScore = 0;
totalBullets = 8;
bullet_1._alpha = 100;
bullet_2._alpha = 100;
bullet_3._alpha = 100;
bullet_4._alpha = 100;
bullet_5._alpha = 100;
bullet_6._alpha = 100;
bullet_7._alpha = 100;
bullet_8._alpha = 100;
levelNum = 1;
level = "level_" + levelNum;
CountDownTimer.prototype.checkTime = function () {
var _local1 = this;
if (getTimer() >= (_local1.startTime + _local1.duration)) {
_local1.broadcastMessage("onComplete");
clearInterval(_local1.id);
} else {
var _local2 = _local1.duration - (getTimer() - _local1.startTime);
_local1.broadcastMessage("onProgress", _local2);
}
};
myTimer = new CountDownTimer(0.5);
myTimer.addListener(this);
totalBullets = 8;
reloadClip = function () {
targetDamage = true;
totalBullets = 8;
bullet_1._alpha = 100;
bullet_2._alpha = 100;
bullet_3._alpha = 100;
bullet_4._alpha = 100;
bullet_5._alpha = 100;
bullet_6._alpha = 100;
bullet_7._alpha = 100;
bullet_8._alpha = 100;
};
playReload = function () {
reloadSnd = new Sound(this);
reloadSnd.attachSound("reload_Snd");
reloadSnd.onSoundComplete = reloadClip;
reloadSnd.setVolume(100);
reloadSnd.start();
};
var reloader = new Object();
reloader.onKeyDown = function () {
if (Key.getCode() == 82) {
playReload();
}
};
Key.addListener(reloader);
panVolume = function () {
if (_xmouse < 340) {
mouseTemp = (340 - _xmouse) * -1;
panVol = Math.round((mouseTemp / 340) * 100);
} else if (_xmouse > 340) {
mouseTemp = (340 - _xmouse) * -1;
panVol = Math.round((mouseTemp / 340) * 100);
}
};
targetDamage = true;
fireGun = function () {
var _local1 = this;
if (totalBullets >= 1) {
bullet = "bullet_" + totalBullets;
_local1[bullet]._alpha = 40;
panVolume();
fireSound = new Sound(_local1);
fireSound.attachSound("shot_Snd");
fireSound.setVolume(100);
fireSound.setPan(_root.panVol);
fireSound.start();
} else {
panVolume();
emptySound = new Sound(_local1);
emptySound.attachSound("empty_Snd");
emptySound.setVolume(100);
emptySound.setPan(_root.panVol);
emptySound.start();
trace("CLIP EMPTY!!!");
}
totalBullets--;
if (totalBullets == 0) {
targetDamage = false;
}
shotsFired++;
};
this.onMouseDown = fireGun;
var targetsHit = 0;
var shotsFired = 0;
var targetsSeen = 0;
showTargets = function () {
target = random(5) + 1;
target = "point_" + target;
targets_mc[target].gotoAndPlay(2);
targetsSeen++;
};
time = 2000;
showTar = setInterval(showTargets, time);
stop();
Instance of Symbol 64 MovieClip "scope" in Frame 37
onClipEvent (enterFrame) {
mpx = _root._xmouse;
if (mpx < _x) {
disx = _x - mpx;
} else {
disx = mpx - _x;
}
moveSpeedx = disx / 5;
if (mpx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
mpy = _root._ymouse;
if (mpy < _y) {
disy = _y - mpy;
} else {
disy = mpy - _y;
}
moveSpeedy = disy / 5;
if (mpy < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
}
Frame 38
delete fireGun;
delete this.onMouseDown;
clearInterval(showTar);
delete showTar;
delete myTimer;
delete reloader;
levelNum = 2;
Mouse.show();
stop();
Frame 69
function CountDownTimer(durationMin) {
var _local1 = this;
AsBroadcaster.initialize(_local1);
_local1.duration = (durationMin * 60) * 1000;
_local1.startTime = getTimer();
_local1.id = setInterval(_local1, "checkTime", 1000);
_local1.checkTime();
}
function onProgress(timeLeftMS) {
var totalSeconds = (timeLeftMS / 1000);
var _local1 = Math.floor(totalSeconds / 3600);
var _local2 = Math.floor((totalSeconds - ((_local1 > 0) ? 3600 : 0)) / 60);
var _local3 = Math.floor(totalSeconds - ((_local1 * 3600) + (_local2 * 60)));
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (_local2 < 10) {
_local2 = "0" + _local2;
}
if (_local3 < 10) {
_local3 = "0" + _local3;
}
timerTF.text = (_local2 + ":") + _local3;
}
function onComplete() {
var _local1 = _root;
timerTF.text = "00:00";
_local1.targetsMissed = _local1.targetsHit - _local1.targetsSeen;
_local1.accuracy = Math.round((_local1.targetsHit / _local1.shotsFired) * 100);
trace("targetsHit: " + _local1.targetsHit);
trace("accuracy: " + _local1.accuracy);
if ((_local1.accuracy == 100) && (_local1.targetsHit >= 15)) {
_local1.perfectScore = 2;
}
_local1.levelNum++;
_local1.level = "level_" + _local1.levelNum;
_local1.gotoAndPlay(_local1.level);
}
Mouse.hide();
totalBullets = 8;
bullet_1._alpha = 100;
bullet_2._alpha = 100;
bullet_3._alpha = 100;
bullet_4._alpha = 100;
bullet_5._alpha = 100;
bullet_6._alpha = 100;
bullet_7._alpha = 100;
bullet_8._alpha = 100;
CountDownTimer.prototype.checkTime = function () {
var _local1 = this;
if (getTimer() >= (_local1.startTime + _local1.duration)) {
_local1.broadcastMessage("onComplete");
clearInterval(_local1.id);
} else {
var _local2 = _local1.duration - (getTimer() - _local1.startTime);
_local1.broadcastMessage("onProgress", _local2);
}
};
myTimer = new CountDownTimer(0.5);
myTimer.addListener(this);
totalBullets = 8;
reloadClip = function () {
targetDamage = true;
totalBullets = 8;
bullet_1._alpha = 100;
bullet_2._alpha = 100;
bullet_3._alpha = 100;
bullet_4._alpha = 100;
bullet_5._alpha = 100;
bullet_6._alpha = 100;
bullet_7._alpha = 100;
bullet_8._alpha = 100;
};
playReload = function () {
reloadSnd = new Sound(this);
reloadSnd.attachSound("reload_Snd");
reloadSnd.onSoundComplete = reloadClip;
reloadSnd.setVolume(100);
reloadSnd.start();
};
var reloader = new Object();
reloader.onKeyDown = function () {
if (Key.getCode() == 82) {
playReload();
}
};
Key.addListener(reloader);
panVolume = function () {
if (_xmouse < 340) {
mouseTemp = (340 - _xmouse) * -1;
panVol = Math.round((mouseTemp / 340) * 100);
} else if (_xmouse > 340) {
mouseTemp = (340 - _xmouse) * -1;
panVol = Math.round((mouseTemp / 340) * 100);
}
};
targetDamage = true;
fireGun = function () {
var _local1 = this;
if (totalBullets >= 1) {
bullet = "bullet_" + totalBullets;
_local1[bullet]._alpha = 40;
panVolume();
fireSound = new Sound(_local1);
fireSound.attachSound("shot_Snd");
fireSound.setVolume(100);
fireSound.setPan(_root.panVol);
fireSound.start();
} else {
panVolume();
emptySound = new Sound(_local1);
emptySound.attachSound("empty_Snd");
emptySound.setVolume(100);
emptySound.setPan(_root.panVol);
emptySound.start();
trace("CLIP EMPTY!!!");
}
totalBullets--;
if (totalBullets == 0) {
targetDamage = false;
}
shotsFired++;
};
this.onMouseDown = fireGun;
var targetsHit = 0;
var shotsFired = 0;
var targetsSeen = 0;
showTargets = function () {
target = random(5) + 1;
target = "point_" + target;
targets_mc[target].gotoAndPlay(2);
targetsSeen++;
};
time = 1300;
showTar = setInterval(showTargets, time);
stop();
Instance of Symbol 64 MovieClip "scope" in Frame 69
onClipEvent (enterFrame) {
mpx = _root._xmouse;
if (mpx < _x) {
disx = _x - mpx;
} else {
disx = mpx - _x;
}
moveSpeedx = disx / 5;
if (mpx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
mpy = _root._ymouse;
if (mpy < _y) {
disy = _y - mpy;
} else {
disy = mpy - _y;
}
moveSpeedy = disy / 5;
if (mpy < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
}
Frame 70
delete fireGun;
delete this.onMouseDown;
clearInterval(showTar);
delete showTar;
delete myTimer;
delete reloader;
levelNum = 3;
Mouse.show();
stop();
Instance of Symbol 78 MovieClip "levelScreen" in Frame 70
on (release) {
_parent.play();
}
Frame 103
function CountDownTimer(durationMin) {
var _local1 = this;
AsBroadcaster.initialize(_local1);
_local1.duration = (durationMin * 60) * 1000;
_local1.startTime = getTimer();
_local1.id = setInterval(_local1, "checkTime", 1000);
_local1.checkTime();
}
function onProgress(timeLeftMS) {
var totalSeconds = (timeLeftMS / 1000);
var _local1 = Math.floor(totalSeconds / 3600);
var _local2 = Math.floor((totalSeconds - ((_local1 > 0) ? 3600 : 0)) / 60);
var _local3 = Math.floor(totalSeconds - ((_local1 * 3600) + (_local2 * 60)));
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (_local2 < 10) {
_local2 = "0" + _local2;
}
if (_local3 < 10) {
_local3 = "0" + _local3;
}
timerTF.text = (_local2 + ":") + _local3;
}
function onComplete() {
var _local1 = _root;
timerTF.text = "00:00";
_local1.targetsMissed = _local1.targetsHit - _local1.targetsSeen;
_local1.accuracy = Math.round((_local1.targetsHit / _local1.shotsFired) * 100);
trace("targetsHit: " + _local1.targetsHit);
trace("accuracy: " + _local1.accuracy);
if ((_local1.accuracy == 100) && (_local1.targetsHit >= 20)) {
_local1.perfectScore = 3;
}
_local1.levelNum++;
if (_local1.perfectScore == 3) {
_local1.gotoAndPlay("perfect");
} else if (levelNum > 3) {
_local1.gotoAndPlay("end_game");
} else {
_local1.level = "level_" + _local1.levelNum;
_local1.gotoAndPlay(_local1.level);
}
}
Mouse.hide();
totalBullets = 8;
bullet_1._alpha = 100;
bullet_2._alpha = 100;
bullet_3._alpha = 100;
bullet_4._alpha = 100;
bullet_5._alpha = 100;
bullet_6._alpha = 100;
bullet_7._alpha = 100;
bullet_8._alpha = 100;
CountDownTimer.prototype.checkTime = function () {
var _local1 = this;
if (getTimer() >= (_local1.startTime + _local1.duration)) {
_local1.broadcastMessage("onComplete");
clearInterval(_local1.id);
} else {
var _local2 = _local1.duration - (getTimer() - _local1.startTime);
_local1.broadcastMessage("onProgress", _local2);
}
};
myTimer = new CountDownTimer(0.5);
myTimer.addListener(this);
totalBullets = 8;
reloadClip = function () {
targetDamage = true;
totalBullets = 8;
bullet_1._alpha = 100;
bullet_2._alpha = 100;
bullet_3._alpha = 100;
bullet_4._alpha = 100;
bullet_5._alpha = 100;
bullet_6._alpha = 100;
bullet_7._alpha = 100;
bullet_8._alpha = 100;
};
playReload = function () {
reloadSnd = new Sound(this);
reloadSnd.attachSound("reload_Snd");
reloadSnd.onSoundComplete = reloadClip;
reloadSnd.setVolume(100);
reloadSnd.start();
};
var reloader = new Object();
reloader.onKeyDown = function () {
if (Key.getCode() == 82) {
playReload();
}
};
Key.addListener(reloader);
panVolume = function () {
if (_xmouse < 340) {
mouseTemp = (340 - _xmouse) * -1;
panVol = Math.round((mouseTemp / 340) * 100);
} else if (_xmouse > 340) {
mouseTemp = (340 - _xmouse) * -1;
panVol = Math.round((mouseTemp / 340) * 100);
}
};
targetDamage = true;
fireGun = function () {
var _local1 = this;
if (totalBullets >= 1) {
bullet = "bullet_" + totalBullets;
_local1[bullet]._alpha = 40;
panVolume();
fireSound = new Sound(_local1);
fireSound.attachSound("shot_Snd");
fireSound.setVolume(100);
fireSound.setPan(_root.panVol);
fireSound.start();
} else {
panVolume();
emptySound = new Sound(_local1);
emptySound.attachSound("empty_Snd");
emptySound.setVolume(100);
emptySound.setPan(_root.panVol);
emptySound.start();
trace("CLIP EMPTY!!!");
}
totalBullets--;
if (totalBullets == 0) {
targetDamage = false;
}
shotsFired++;
};
this.onMouseDown = fireGun;
var targetsHit = 0;
var shotsFired = 0;
var targetsSeen = 0;
showTargets = function () {
target = random(5) + 1;
target = "point_" + target;
targets_mc[target].gotoAndPlay(2);
targetsSeen++;
};
time = 800;
showTar = setInterval(showTargets, time);
stop();
Instance of Symbol 64 MovieClip "scope" in Frame 103
onClipEvent (enterFrame) {
mpx = _root._xmouse;
if (mpx < _x) {
disx = _x - mpx;
} else {
disx = mpx - _x;
}
moveSpeedx = disx / 5;
if (mpx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
mpy = _root._ymouse;
if (mpy < _y) {
disy = _y - mpy;
} else {
disy = mpy - _y;
}
moveSpeedy = disy / 5;
if (mpy < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
}
Frame 104
delete fireGun;
delete this.onMouseDown;
clearInterval(showTar);
delete showTar;
delete myTimer;
delete reloader;
Mouse.show();
Frame 112
stop();
Frame 113
delete fireGun;
delete this.onMouseDown;
clearInterval(showTar);
delete showTar;
delete myTimer;
delete reloader;
Mouse.show();
Frame 120
stop();
Symbol 28 Button
on (release) {
_parent.play();
}
Symbol 29 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 36 Button
on (release) {
gotoAndPlay ("back");
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 22
stop();
Symbol 56 MovieClip Frame 1
this.onMouseDown = function () {
var _local1 = _root;
if (this.hitTest(_local1.scope.exact) && (_local1.targetDamage == true)) {
hit = true;
_local1.targetsHit++;
this.gotoAndPlay("shot");
} else if (_local1.targetDamage == false) {
}
hit = false;
};
stop();
Symbol 56 MovieClip Frame 69
gotoAndStop (1);
trace("Killed Myself");
Symbol 56 MovieClip Frame 84
gotoAndStop (1);
Symbol 77 Button
on (release) {
_parent.gotoAndPlay(_root.level);
}
Symbol 81 MovieClip Frame 1
this.onMouseDown = function () {
var _local1 = _root;
if (this.hitTest(_local1.scope.exact) && (_local1.targetDamage == true)) {
hit = true;
_local1.targetsHit++;
this.gotoAndPlay("shot");
} else if (_local1.targetDamage == false) {
}
hit = false;
};
stop();
Symbol 81 MovieClip Frame 53
gotoAndStop (1);
trace("Killed Myself");
Symbol 81 MovieClip Frame 68
gotoAndStop (1);
Symbol 92 MovieClip Frame 1
this.onMouseDown = function () {
var _local1 = _root;
if (this.hitTest(_local1.scope.exact) && (_local1.targetDamage == true)) {
hit = true;
_local1.targetsHit++;
this.gotoAndPlay("shot");
} else if (_local1.targetDamage == false) {
}
hit = false;
};
stop();
Symbol 92 MovieClip Frame 64
gotoAndStop (1);
trace("Killed Myself");
Symbol 92 MovieClip Frame 79
gotoAndStop (1);
Symbol 103 Button
on (release) {
_parent.gotoAndPlay("level_1");
}
Symbol 117 Button
on (release) {
getURL ("wallpapers/deadeye_1280.htm", "_blank");
}
Symbol 118 Button
on (release) {
getURL ("wallpapers/deadeye_1024.htm", "_blank");
}
Symbol 119 Button
on (release) {
getURL ("wallpapers/deadeye_800.htm", "_blank");
}