Frame 1
session_best = 0;
Frame 3
stop();
Instance of Symbol 92 MovieClip "sniper" in Frame 4
onClipEvent (load) {
_level0.main._xscale = 200;
_level0.main._yscale = 200;
_level0.main1._xscale = 100;
_level0.main1._yscale = 100;
_level0.main1._y = 200;
_level0.main1._x = 275;
mag = 1;
old_mag = mag;
target_state = "closed";
targets_limit = 10;
target_current = 0;
total = 0;
last_score = 0;
i = 1;
while (i <= 9) {
_level0.main["target" + i].board.bullethole._visible = false;
_level0.main1["target" + i].board.bullethole._visible = false;
i++;
}
}
onClipEvent (mouseDown) {
if (shot_allowed) {
x = _level0.main["target" + t]._xmouse;
y = _level0.main["target" + t]._ymouse;
if (_level0.main["target" + t].board.hitTest(_level0._xmouse, _level0._ymouse, false)) {
_level0.main.explode._x = _level0.main._xmouse;
_level0.main.explode._y = _level0.main._ymouse;
_level0.main1.explode._x = _level0.main.explode._x;
_level0.main1.explode._y = _level0.main.explode._y;
_level0.main.explode.gotoandplay(2);
_level0.main1.explode.gotoandplay(2);
_level0.shot.gotoandplay(2);
scdx = _level0.main["target" + t].board._x - x;
scdy = _level0.main["target" + t].board._y - y;
scdiff = 10 * Math.sqrt((scdx * scdx) + (scdy * scdy));
scdiff = int(scdiff);
score = 1020 - scdiff;
display_shot = true;
if (score > 1000) {
score = 1000;
}
if (score < 0) {
score = 0;
display_shot = false;
}
total = total + score;
}
shot_allowed = false;
}
}
onClipEvent (enterFrame) {
if (target_state == "closed") {
if (random(100) < 20) {
score = 0;
t = 1 + random(9);
target_state = "opening";
timer = 0;
_level0.main["target" + t].gotoandplay(2);
_level0.main1["target" + t].gotoandplay(2);
_level0.outline.gotoandplay(2);
_level0.outline._xscale = _level0.main1["target" + t]._xscale;
_level0.outline._yscale = _level0.main1["target" + t]._yscale;
_level0.outline._x = _level0.main1._x + _level0.main1["target" + t]._x;
_level0.outline._y = _level0.main1._y + _level0.main1["target" + t]._y;
trace("x = " + _level0.outline._x);
trace("y = " + _level0.main1["target" + t]._y);
shot_allowed = true;
display_shot = false;
}
}
if (target_state == "opening") {
timer++;
if (timer > 30) {
_level0.main["target" + t].gotoandplay("close");
_level0.main1["target" + t].gotoandplay("close");
target_state = "wait";
shot_allowed = false;
if (score < 1000) {
target_current++;
}
timer = 0;
}
}
if (target_state == "wait") {
timer++;
if (timer > 30) {
target_state = "closed";
timer = 0;
if (target_current >= targets_limit) {
target_state = "gameover";
_level0.gotoandplay("done");
}
}
}
_x = _level0._xmouse;
_y = _level0._ymouse;
_level0.sight._x = _x;
_level0.sight._y = _y;
dx = 275 - _x;
dy = 200 - _y;
_level0.main._y = 200 + (dy * mag);
_level0.main._x = 275 + (dx * mag);
if (Key.isDown(38)) {
if (up) {
} else {
up = true;
mag++;
if (mag > 10) {
mag = 10;
}
}
} else {
up = false;
}
if (Key.isDown(40)) {
if (down) {
} else {
down = true;
mag--;
if (mag < 1) {
mag = 1;
}
}
} else {
down = false;
}
if (old_mag != mag) {
_level0.main._y = 200 + (dy * mag);
_level0.main._x = 275 + (dx * mag);
_level0.main._xscale = 100 * (mag + 1);
_level0.main._yscale = 100 * (mag + 1);
_level0.zoom.gotoandplay(2);
}
old_mag = mag;
}
Frame 8
stop();
Frame 9
_level0.score = sniper.total;
if (_level0.score > 9000) {
play();
} else {
gotoAndStop (64);
}
Instance of Symbol 92 MovieClip "sniper" in Frame 24
onClipEvent (load) {
_level0.main._xscale = 200;
_level0.main._yscale = 200;
_level0.main1._xscale = 100;
_level0.main1._yscale = 100;
_level0.main1._y = 200;
_level0.main1._x = 275;
mag = 1;
old_mag = mag;
target_state = "closed";
targets_limit = 10;
target_current = 0;
total = _level0.score;
last_score = 0;
i = 1;
while (i <= 9) {
_level0.main["target" + i].board.bullethole._visible = false;
_level0.main1["target" + i].board.bullethole._visible = false;
i++;
}
}
onClipEvent (mouseDown) {
if (shot_allowed) {
x = _level0.main["target" + t]._xmouse;
y = _level0.main["target" + t]._ymouse;
if (_level0.main["target" + t].board.hitTest(_level0._xmouse, _level0._ymouse, false)) {
_level0.main.explode._x = _level0.main._xmouse;
_level0.main.explode._y = _level0.main._ymouse;
_level0.main1.explode._x = _level0.main.explode._x;
_level0.main1.explode._y = _level0.main.explode._y;
_level0.main.explode.gotoandplay(2);
_level0.main1.explode.gotoandplay(2);
_level0.shot.gotoandplay(2);
scdx = _level0.main["target" + t].board._x - x;
scdy = _level0.main["target" + t].board._y - y;
scdiff = 10 * Math.sqrt((scdx * scdx) + (scdy * scdy));
scdiff = int(scdiff);
score = 1020 - scdiff;
display_shot = true;
if (score > 1000) {
score = 1000;
}
if (score < 0) {
score = 0;
display_shot = false;
}
total = total + score;
}
shot_allowed = false;
}
}
onClipEvent (enterFrame) {
if (target_state == "closed") {
if (random(100) < 20) {
score = 0;
t = 1 + random(9);
target_state = "opening";
timer = 0;
_level0.main["target" + t].gotoandplay(2);
_level0.main1["target" + t].gotoandplay(2);
_level0.outline.gotoandplay(2);
_level0.outline._xscale = _level0.main1["target" + t]._xscale;
_level0.outline._yscale = _level0.main1["target" + t]._yscale;
_level0.outline._x = _level0.main1._x + _level0.main1["target" + t]._x;
_level0.outline._y = _level0.main1._y + _level0.main1["target" + t]._y;
trace("x = " + _level0.outline._x);
trace("y = " + _level0.main1["target" + t]._y);
shot_allowed = true;
display_shot = false;
}
}
if (target_state == "opening") {
timer++;
if (timer > 30) {
_level0.main["target" + t].gotoandplay("close");
_level0.main1["target" + t].gotoandplay("close");
target_state = "wait";
shot_allowed = false;
if (score < 1000) {
target_current++;
}
timer = 0;
}
}
if (target_state == "wait") {
timer++;
if (timer > 30) {
target_state = "closed";
timer = 0;
if (target_current >= targets_limit) {
target_state = "gameover";
_level0.gotoandplay("done2");
}
}
}
_x = _level0._xmouse;
_y = _level0._ymouse;
_level0.sight._x = _x;
_level0.sight._y = _y;
dx = 275 - _x;
dy = 200 - _y;
_level0.main._y = 200 + (dy * mag);
_level0.main._x = 275 + (dx * mag);
if (Key.isDown(38)) {
if (up) {
} else {
up = true;
mag++;
if (mag > 10) {
mag = 10;
}
}
} else {
up = false;
}
if (Key.isDown(40)) {
if (down) {
} else {
down = true;
mag--;
if (mag < 1) {
mag = 1;
}
}
} else {
down = false;
}
if (old_mag != mag) {
_level0.main._y = 200 + (dy * mag);
_level0.main._x = 275 + (dx * mag);
_level0.main._xscale = 100 * (mag + 1);
_level0.main._yscale = 100 * (mag + 1);
_level0.zoom.gotoandplay(2);
}
old_mag = mag;
}
Frame 28
stop();
Frame 29
_level0.score = sniper.total;
trace("SCORE..." + _level0.score);
if (_level0.score > 18000) {
play();
} else {
gotoAndStop (64);
}
Instance of Symbol 92 MovieClip "sniper" in Frame 44
onClipEvent (load) {
_level0.main._xscale = 200;
_level0.main._yscale = 200;
_level0.main1._xscale = 100;
_level0.main1._yscale = 100;
_level0.main1._y = 200;
_level0.main1._x = 275;
mag = 1;
old_mag = mag;
target_state = "closed";
targets_limit = 10;
target_current = 0;
total = _level0.score;
last_score = 0;
i = 1;
while (i <= 9) {
_level0.main["target" + i].board.bullethole._visible = false;
_level0.main1["target" + i].board.bullethole._visible = false;
i++;
}
}
onClipEvent (mouseDown) {
if (shot_allowed) {
x = _level0.main["target" + t]._xmouse;
y = _level0.main["target" + t]._ymouse;
if (_level0.main["target" + t].board.hitTest(_level0._xmouse, _level0._ymouse, false)) {
_level0.main.explode._x = _level0.main._xmouse;
_level0.main.explode._y = _level0.main._ymouse;
_level0.main1.explode._x = _level0.main.explode._x;
_level0.main1.explode._y = _level0.main.explode._y;
_level0.main.explode.gotoandplay(2);
_level0.main1.explode.gotoandplay(2);
_level0.shot.gotoandplay(2);
scdx = _level0.main["target" + t].board._x - x;
scdy = _level0.main["target" + t].board._y - y;
scdiff = 10 * Math.sqrt((scdx * scdx) + (scdy * scdy));
scdiff = int(scdiff);
score = 1020 - scdiff;
display_shot = true;
if (score > 1000) {
score = 1000;
}
if (score < 0) {
score = 0;
display_shot = false;
}
total = total + score;
}
shot_allowed = false;
}
}
onClipEvent (enterFrame) {
if (target_state == "closed") {
if (random(100) < 20) {
score = 0;
t = 1 + random(9);
target_state = "opening";
timer = 0;
_level0.main["target" + t].gotoandplay(2);
_level0.main1["target" + t].gotoandplay(2);
_level0.outline.gotoandplay(2);
_level0.outline._xscale = _level0.main1["target" + t]._xscale;
_level0.outline._yscale = _level0.main1["target" + t]._yscale;
_level0.outline._x = _level0.main1._x + _level0.main1["target" + t]._x;
_level0.outline._y = _level0.main1._y + _level0.main1["target" + t]._y;
trace("x = " + _level0.outline._x);
trace("y = " + _level0.main1["target" + t]._y);
shot_allowed = true;
display_shot = false;
}
}
if (target_state == "opening") {
timer++;
if (timer > 30) {
_level0.main["target" + t].gotoandplay("close");
_level0.main1["target" + t].gotoandplay("close");
target_state = "wait";
shot_allowed = false;
if (score < 1000) {
target_current++;
}
timer = 0;
}
}
if (target_state == "wait") {
timer++;
if (timer > 30) {
target_state = "closed";
timer = 0;
if (target_current >= targets_limit) {
target_state = "gameover";
_level0.gotoandplay("complete");
}
}
}
_x = _level0._xmouse;
_y = _level0._ymouse;
_level0.sight._x = _x;
_level0.sight._y = _y;
dx = 275 - _x;
dy = 200 - _y;
_level0.main._y = 200 + (dy * mag);
_level0.main._x = 275 + (dx * mag);
if (Key.isDown(38)) {
if (up) {
} else {
up = true;
mag++;
if (mag > 10) {
mag = 10;
}
}
} else {
up = false;
}
if (Key.isDown(40)) {
if (down) {
} else {
down = true;
mag--;
if (mag < 1) {
mag = 1;
}
}
} else {
down = false;
}
if (old_mag != mag) {
_level0.main._y = 200 + (dy * mag);
_level0.main._x = 275 + (dx * mag);
_level0.main._xscale = 100 * (mag + 1);
_level0.main._yscale = 100 * (mag + 1);
_level0.zoom.gotoandplay(2);
}
old_mag = mag;
}
Frame 48
stop();
Frame 49
_level0.score = sniper.total;
gotoAndStop (64);
Frame 64
stop();
Symbol 41 MovieClip [explosion1] Frame 1
stop();
Symbol 41 MovieClip [explosion1] Frame 21
stop();
Symbol 50 MovieClip Frame 7
gotoAndPlay (1);
Symbol 53 MovieClip Frame 32
gotoAndPlay (1);
Symbol 58 MovieClip Frame 1
doneLoading = 0;
stop();
Instance of Symbol 55 MovieClip "bkgd" in Symbol 58 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100 * (isLoaded / total);
_parent.bytes = ((int(isloaded / 1000) add " KB of ") add int(total / 1000)) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
if (Number(p) > Number(95)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
Instance of Symbol 55 MovieClip "bar" in Symbol 58 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100 * (isLoaded / total);
_parent.bytes = ((int(isloaded / 1000) add " KB of ") add int(total / 1000)) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
if (Number(p) > Number(95)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
Symbol 69 MovieClip Frame 10
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 5
stop();
Symbol 70 MovieClip Frame 154
board.bullethole._visible = false;
Symbol 70 MovieClip Frame 158
stop();
Symbol 77 Button
on (release) {
play();
}
Symbol 88 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?page=downloadagreement", "_blank");
}
Symbol 90 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?page=freestuff", "_blank");
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 12
stop();
Symbol 146 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?cdgtid=nvsniper_scores", "_self");
}
Symbol 149 Button
on (release) {
gotoAndPlay (3);
}
Symbol 151 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?cdgtid=nvsniper", "_self");
}