Frame 1
stop();
var score = 0;
var gunSound = new Sound(this);
var ricochetSound = new Sound(this);
var hitSniperSound = new Sound(this);
gunSound.attachSound("gunShot");
ricochetSound.attachSound("ricochet");
hitSniperSound.attachSound("sniperHit");
start_btn.onPress = function () {
gotoAndStop ("roundOne");
};
Frame 2
function updateScore(targetValue) {
var _local1 = _root;
trace("update score called = " + targetValue);
_local1.score = Number(_local1.score) + targetValue;
_local1.score_txt.text = _local1.score;
}
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
function updateTimer() {
var _local1 = this;
gameTime = (getTimer() - startTime) / 1000;
trace("game time = " + gameTime);
var _local3 = randRange(1, 5);
_level0["sniperTarget" + _local3].play();
if ((gameTime > 30) && (gameTime < 45)) {
crossHair_mc.onMouseMove = function () {
var _local2 = this;
_level0.lagMessage._visible = true;
var _local1 = 5;
_local2._x = _local2._x + (_local2._xmouse / _local1);
_local2._y = _local2._y + (_local2._ymouse / _local1);
};
} else if ((gameTime > 45) && (gameTime < 60)) {
crossHair_mc.onMouseMove = function () {
_level0.lagMessage._visible = false;
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
} else if (gameTime > 60) {
clearInterval();
nextRoundMessage._visible = true;
nextFrame();
}
}
stop();
nextRoundMessage._visible = false;
var score = 0;
var startTime = getTimer();
_level0.lagMessage._visible = false;
Mouse.hide();
crossHair_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
var intervalID = setInterval(updateTimer, 1000);
crossHair_mc.onMouseDown = function () {
var _local1 = _root;
var _local2 = this;
_local1.gunSound.setVolume(25);
_local1.gunSound.start();
if (_local2.hitTest(_level0.sniperTarget1.man.heart)) {
_local1.sniperTarget1.man.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget2.manTwo.heart)) {
_local1.sniperTarget2.manTwo.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget3.manThree.heart)) {
_local1.sniperTarget3.manThree.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget4.manFour.heart)) {
_local1.sniperTarget4.manFour.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget5.manFive.heart)) {
_local1.sniperTarget5.manFive.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.easterEgg)) {
_local1.miss.gotoAndStop(1);
_local1.hitSniperSound.start();
} else {
_local1.ricochetSound.start();
}
};
Frame 3
stop();
clearInterval(intervalID);
nextRoundMessage.play();
Frame 4
function updateScore(targetValue) {
var _local1 = _root;
trace("update score called = " + targetValue);
_local1.score = Number(_local1.score) + targetValue;
_local1.score_txt.text = _local1.score;
}
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
function updateTimer() {
var _local1 = this;
gameTime = (getTimer() - startTime) / 1000;
trace("game time = " + gameTime);
var _local3 = randRange(1, 5);
_level0["sniperTarget" + _local3].play();
if ((gameTime > 30) && (gameTime < 45)) {
crossHair_mc.onMouseMove = function () {
var _local2 = this;
_level0.lagMessage._visible = true;
var _local1 = 5;
_local2._x = _local2._x + (_local2._xmouse / _local1);
_local2._y = _local2._y + (_local2._ymouse / _local1);
};
} else if ((gameTime > 45) && (gameTime < 60)) {
crossHair_mc.onMouseMove = function () {
_level0.lagMessage._visible = false;
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
} else if (gameTime > 60) {
clearInterval();
nextRoundMessage._visible = true;
nextFrame();
}
}
stop();
nextRoundMessage._visible = false;
_root.score_txt.text = _root.score;
var startTime = getTimer();
_level0.lagMessage._visible = false;
Mouse.hide();
crossHair_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
var intervalID = setInterval(updateTimer, 1000);
crossHair_mc.onMouseDown = function () {
var _local1 = _root;
var _local2 = this;
_local1.gunSound.start();
if (_local2.hitTest(_level0.sniperTarget1.man.heart)) {
_local1.sniperTarget1.man.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget2.manTwo.heart)) {
_local1.sniperTarget2.manTwo.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget3.manThree.heart)) {
_local1.sniperTarget3.manThree.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget4.manFour.heart)) {
_local1.sniperTarget4.manFour.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget5.manFive.heart)) {
_local1.sniperTarget5.manFive.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.easterEgg)) {
_local1.miss.gotoAndStop(1);
_local1.hitSniperSound.start();
} else {
_local1.ricochetSound.start();
}
};
Frame 5
stop();
clearInterval(intervalID);
nextRoundMessage.play();
Frame 6
function updateScore(targetValue) {
var _local1 = _root;
trace("update score called = " + targetValue);
_local1.score = Number(_local1.score) + targetValue;
_local1.score_txt.text = _local1.score;
}
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
function updateTimer() {
var _local1 = this;
gameTime = (getTimer() - startTime) / 1000;
trace("game time = " + gameTime);
var _local3 = randRange(1, 6);
_level0["sniperTarget" + _local3].play();
if ((gameTime > 30) && (gameTime < 45)) {
crossHair_mc.onMouseMove = function () {
var _local2 = this;
_level0.lagMessage._visible = true;
var _local1 = 5;
_local2._x = _local2._x + (_local2._xmouse / _local1);
_local2._y = _local2._y + (_local2._ymouse / _local1);
};
} else if ((gameTime > 45) && (gameTime < 60)) {
crossHair_mc.onMouseMove = function () {
_level0.lagMessage._visible = false;
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
} else if (gameTime > 60) {
_level0.gotoAndStop("youWin");
clearInterval();
}
}
stop();
nextRoundMessage._visible = false;
_root.score_txt.text = _root.score;
clearInterval(intervalID);
var startTime = getTimer();
_level0.lagMessage._visible = false;
Mouse.hide();
crossHair_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
var intervalID = setInterval(updateTimer, 1000);
crossHair_mc.onMouseDown = function () {
var _local1 = _root;
var _local2 = this;
_local1.gunSound.start();
if (_local2.hitTest(_level0.sniperTarget1.man.heart)) {
_local1.sniperTarget1.man.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget2.manTwo.heart)) {
_local1.sniperTarget2.manTwo.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget3.manThree.heart)) {
_local1.sniperTarget3.manThree.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget4.manFour.heart)) {
_local1.sniperTarget4.manFour.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget5.manFive.heart)) {
_local1.sniperTarget5.manFive.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.sniperTarget6.manSix.heart)) {
_local1.sniperTarget6.manSix.play();
_local1.hitSniperSound.start();
} else if (_local2.hitTest(_level0.easterEgg)) {
_local1.miss.gotoAndStop(1);
_local1.hitSniperSound.start();
} else {
_local1.ricochetSound.start();
}
};
Frame 8
clearInterval(intervalID);
_root.challengeFriend_btn.onPress = function () {
trace("send score pressed");
var _local2 = "";
var _local1 = _local2.concat("/referral.php?score=", ((_root.score * 11) + 67) ^ 21517, "-", ((_root.score * 19) + 1) ^ 6832, "-", Math.round(Math.random() * 1000) * 3, "&frag=1");
trace(_local1);
getURL (_local1, "_self");
};
_root.score_txt.text = _root.score;
Mouse.show();
_root.restart.onPress = function () {
gotoAndStop ("roundOne");
_root.miss.gotoAndStop(1);
};
stop();
Frame 9
clearInterval(intervalID);
_root.challengeFriend_btn.onPress = function () {
trace("send score pressed");
var _local2 = "";
var _local1 = _local2.concat("/referral.php?score=", ((_root.score * 11) + 67) ^ 21517, "-", ((_root.score * 19) + 1) ^ 6832, "-", Math.round(Math.random() * 1000) * 3, "&frag=0");
trace(_local1);
getURL (_local1, "_self");
};
_root.score_txt.text = _root.score;
Mouse.show();
miss.gotoAndStop(4);
_root.restart.onPress = function () {
gotoAndStop ("roundOne");
_root.miss.gotoAndStop(1);
};
stop();
Symbol 44 MovieClip Frame 1
stop();
var targetValue = 20;
Symbol 44 MovieClip Frame 2
_parent.lifeStatus = "dead";
_root.updateScore(targetValue);
Symbol 44 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 49 MovieClip Frame 25
stop();
Symbol 65 MovieClip Frame 1
var lifeStatus = "alive";
man.targetValue = 50;
stop();
Symbol 65 MovieClip Frame 10
man.targetValue = 20;
Symbol 65 MovieClip Frame 15
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 66 MovieClip Frame 1
var lifeStatus = "alive";
manTwo.targetValue = 50;
stop();
Symbol 66 MovieClip Frame 11
manTwo.targetValue = 20;
Symbol 66 MovieClip Frame 16
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 67 MovieClip Frame 1
var lifeStatus = "alive";
manThree.targetValue = 50;
stop();
Symbol 67 MovieClip Frame 10
manThree.targetValue = 20;
Symbol 67 MovieClip Frame 21
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 68 MovieClip Frame 1
var lifeStatus = "alive";
manFour.targetValue = 50;
stop();
Symbol 68 MovieClip Frame 11
manFour.targetValue = 20;
Symbol 68 MovieClip Frame 16
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 70 MovieClip Frame 1
var lifeStatus = "alive";
manFive.targetValue = 50;
stop();
Symbol 70 MovieClip Frame 15
manFive.targetValue = 20;
Symbol 70 MovieClip Frame 22
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 77 MovieClip Frame 8
gotoAndPlay (1);
Symbol 77 MovieClip Frame 16
gotoAndPlay ("noLagMessage");
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 65
_root.nextFrame();
this._visible = false;
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 92 MovieClip Frame 3
stop();
Symbol 92 MovieClip Frame 4
_parent.gotoAndStop("youLose");
stop();
Symbol 96 MovieClip Frame 1
var lifeStatus = "alive";
manThree.targetValue = 50;
stop();
Symbol 96 MovieClip Frame 12
manThree.targetValue = 20;
Symbol 96 MovieClip Frame 25
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 98 MovieClip Frame 1
var lifeStatus = "alive";
manFour.targetValue = 50;
stop();
Symbol 98 MovieClip Frame 15
manFour.targetValue = 20;
Symbol 98 MovieClip Frame 30
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 100 MovieClip Frame 1
var lifeStatus = "alive";
manFive.targetValue = 50;
stop();
Symbol 100 MovieClip Frame 10
manFive.targetValue = 20;
Symbol 100 MovieClip Frame 20
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 105 MovieClip Frame 1
var lifeStatus = "alive";
man.targetValue = 50;
stop();
Symbol 105 MovieClip Frame 10
man.targetValue = 20;
Symbol 105 MovieClip Frame 20
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 107 MovieClip Frame 1
var lifeStatus = "alive";
manTwo.targetValue = 50;
stop();
Symbol 107 MovieClip Frame 10
manTwo.targetValue = 20;
Symbol 107 MovieClip Frame 20
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 109 MovieClip Frame 1
var lifeStatus = "alive";
manThree.targetValue = 50;
stop();
Symbol 109 MovieClip Frame 10
manThree.targetValue = 20;
Symbol 109 MovieClip Frame 20
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 111 MovieClip Frame 1
var lifeStatus = "alive";
manFour.targetValue = 50;
stop();
Symbol 111 MovieClip Frame 10
manFour.targetValue = 20;
Symbol 111 MovieClip Frame 20
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 113 MovieClip Frame 1
var lifeStatus = "alive";
manFive.targetValue = 50;
stop();
Symbol 113 MovieClip Frame 12
manFive.targetValue = 20;
Symbol 113 MovieClip Frame 25
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}
Symbol 115 MovieClip Frame 1
var lifeStatus = "alive";
manSix.targetValue = 50;
stop();
Symbol 115 MovieClip Frame 15
manSix.targetValue = 20;
Symbol 115 MovieClip Frame 30
if (lifeStatus == "alive") {
_level0.miss.nextFrame();
gotoAndStop (1);
} else {
gotoAndStop (1);
}