Frame 1
stop();
Instance of Symbol 33 MovieClip "percent" in Frame 1
onClipEvent (load) {
totalb = _root.getBytesTotal();
totalkb = int(totalb / 4064);
}
onClipEvent (enterFrame) {
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
_root.gotoAndStop(2);
} else {
loadedkb = int(loadedb / 4064);
percent = (loadedb / totalb) * 100;
_root.loader.gotoAndStop(int(percent));
pl1 = ("" + int(percent)) + "%";
pl2 = ((("" + loadedkb) + " / ") + totalkb) + " kb";
}
}
Frame 2
stop();
_root.play();
Frame 3
function david() {
getURL ("http://www.truedarkness.tk/", "_blank");
}
function muter() {
_root.all.setVolume((_x + 0) / 0);
}
function mutera() {
_root.all.setVolume((_x + 120) / 1.9);
}
_root.tank._x = Stage.width / -5;
_root.tank._y = Stage.height / 2;
stop();
onLoad = function () {
_root.all = new Sound();
};
var menu = new ContextMenu();
menu.hideBuiltInItems();
var truedarkness = new ContextMenuItem("True Darkness", david);
var mute = new ContextMenuItem("Sound Off", muter);
var mutee = new ContextMenuItem("Sound On", mutera);
menu.customItems.push(truedarkness, mute, mutee);
menu.onSelect = menuHandler;
menu.builtInItems.quality = true;
_root.menu = menu;
System.security.allowDomain("http://www.buzzwerd.deviantart.com");
System.security.allowInsecureDomain("http://www.buzzwerd.deviantart.com");
System.security.allowDomain("http://www.truedarkness.tk/");
System.security.allowInsecureDomain("http://www.truedarkness.tk/");
System.security.allowDomain("www.welcome-to-life.ca.tf");
System.security.allowInsecureDomain("http://www.buzzwerd.deviantart.com");
System.security.allowDomain("www.truedarkness.tk");
System.security.allowInsecureDomain("www.truedarkness.tk");
Instance of Symbol 74 MovieClip "tank" in Frame 3
onClipEvent (enterFrame) {
if (_x <= (Stage.width / 2)) {
_x = (_x + 5);
} else {
this.tanka.nextFrame();
}
}
Frame 4
stop();
_root.scorea = 0;
_root.scoreb = 0;
_root.scores.score = 0;
_root.fade4.removeMovieClip();
removeMovieClip(_root.fade4);
i = 100;
_root._x = 999999 /* 0x0F423F */;
onEnterFrame = function () {
_root._x = 0;
_root.createEmptyMovieClip("fade", 100);
with (fade) {
lineStyle(2, 0, 100);
beginFill(0, i);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = i;
i = i - 2;
}
};
Frame 5
function MakeBHole() {
z++;
duplicateMovieClip (_root.BHole, "BHole" + z, z);
ran = random(2);
if (ran == 0) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = random(9);
}
if (var3 == 1) {
randomw = random(2);
var3 = 0;
}
}
if (ran == 1) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = -random(9);
}
if (var3 == 1) {
randomw = -random(2);
var3 = 0;
}
}
setProperty("BHole" + z, _x , _root._xmouse + randomw);
setProperty("BHole" + z, _y , _root._ymouse + randomw);
if (_root.target.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.hits2++;
_root["BHole" + z]._visible = false;
}
if (_root["BHole" + z].hitTest(_root.metal) && (!_root["BHole" + z].hitTest(_root.target))) {
hits = random(2);
missess++;
if (_root.hits == 0) {
_root.bSound1.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound5.start(0, 1);
}
}
if ((_root["BHole" + z].hitTest(_root.wall) && (!_root["BHole" + z].hitTest(_root.metal))) && (!_root["BHole" + z].hitTest(_root.target))) {
missess++;
hits = random(2);
if (_root.hits == 0) {
_root.bSound2.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound4.start(0, 1);
}
}
if (_root["BHole" + z].hitTest(_root.target)) {
_root.bSound6.start(0, 1);
}
}
function MakeBHolea() {
j++;
duplicateMovieClip (_root.BHolea, "BHolea" + j, j + 30005);
setProperty("BHolea" + j, _x , _root._xmouse + randomw);
setProperty("BHolea" + j, _y , _root._ymouse + randomw);
if (_root["BHolea" + j].hitTest(_root.wall) && (!_root["BHolea" + j].hitTest(_root.target))) {
_root["BHolea" + j]._visible = false;
}
if (_root["BHolea" + j].hitTest(_root.target)) {
_root["BHolea" + j]._visible = true;
}
}
function MakeNum() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 10;
}
function MakeNum2() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 20;
}
function MakeNum3() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 30;
}
function MakeNum4() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 40;
}
function MakeNum5() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 50;
}
function MakeNum6() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 75;
}
function MakeNum7() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 100;
}
_root.reload = false;
_root.amm.ammo = 25;
var3 = 0;
bull = 0;
missess = 0;
_root.timer.time = 35;
scores.score = 0;
go = 0;
ix = 0;
hits2 = 0;
shoot = 0;
_root.scoreb = 0;
_root.scorea = 0;
j = 0;
stopfade = 0;
rel = 0;
j = 100;
k = 0;
stop();
onMouseDown = function () {
if (_root.go == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (_root.cursor._currentframe == 1) {
var3 = 1;
}
var1 = 1;
if (_root.gun._currentframe == 1) {
_root.gun.gotoAndStop(2);
}
}
};
onMouseUp = function () {
var1 = 0;
};
onEnterFrame = function () {
if ((_root.timer.time <= 0) && (stopfade == 0)) {
_root.createEmptyMovieClip("fade2", 67050);
with (fade2) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (k >= 160) {
_root.scorea = _root.scores.score;
stopfade = 1;
k = 0;
_root.nextFrame();
}
}
}
if (_root.go == 1) {
accuracy = Math.ceil((Number(hits2) / Number(shoot)) * 100);
i++;
if (i >= 30) {
if (_root.timer.time != 0) {
_root.timer.time--;
}
i = 0;
}
}
if (accuracy >= 100) {
accuracy = 100;
}
if (_root.target.ten.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 10;
_root.MakeNum();
}
if (_root.target.twenty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 20;
_root.MakeNum2();
}
if (_root.target.thirty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 30;
_root.MakeNum3();
}
if (_root.target.forty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 40;
_root.MakeNum4();
}
if (_root.target.fifty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 50;
_root.MakeNum5();
}
if (_root.target.seventy.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 75;
_root.MakeNum6();
}
if (_root.target.hundred.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 100;
_root.MakeNum7();
_root.bull++;
}
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
Mouse.hide();
if (var1 == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (((_root.amm.ammo == 0) && (_root.gun._currentframe != 3)) && (_root.gun._currentframe == 1)) {
_root.gun.gotoAndPlay(2);
_root.click.play();
}
if (((_root.amm.ammo <= 0) && (_root.reload == false)) && (_root.gun._currentframe != 3)) {
_root.gun.gotoAndStop(1);
_root.reloadd.play();
}
}
if (_root.amm.ammo != 0) {
_root.reloadd.gotoAndStop(1);
}
};
z = 0;
bSound1 = new Sound(this);
bSound1.attachSound("metalBullet");
bSound2 = new Sound(this);
bSound2.attachSound("wallBullet");
bSound3 = new Sound(this);
bSound3.attachSound("Click");
bSound4 = new Sound(this);
bSound4.attachSound("gun4");
bSound5 = new Sound(this);
bSound5.attachSound("metalhit");
bSound6 = new Sound(this);
bSound6.attachSound("hitter");
Instance of Symbol 110 MovieClip "amm" in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(40008);
}
Instance of Symbol 138 MovieClip "gun" in Frame 5
onClipEvent (enterFrame) {
_x = (_x - (((_x - _root._xmouse) / 2) - 30));
_y = (_root._ymouse + 25);
_rotation = (_root._ymouse / -60);
this.swapDepths(10001);
if (_root.go == 1) {
if ((Key.isDown(32) && (_root.reload == false)) && (_root.amm.ammo != 25)) {
this.gotoAndStop(3);
}
}
}
Instance of Symbol 142 MovieClip "cursor" in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(10000);
}
Instance of Symbol 149 MovieClip "BHole" in Frame 5
onClipEvent (enterFrame) {
if (_root.target.hitTest(_x, _y, true)) {
var1 = 1;
if (var1 == 1) {
z++;
var1 = 0;
}
this._name = "x" + z;
}
}
Instance of Symbol 29 MovieClip "target" in Frame 5
onClipEvent (load) {
speed = 4;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_x = (_x + speed);
if (_root.timer.time != 0) {
if (_x > 750) {
speed = speed + 2.3;
_x = -100;
}
}
}
this.swapDepths(1007);
}
Instance of Symbol 155 MovieClip "scores" in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(10008);
}
Instance of Symbol 158 MovieClip "timer" in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(10005);
}
Instance of Symbol 169 MovieClip "reloadd" in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(10009);
}
Instance of Symbol 176 MovieClip "BHolea" in Frame 5
onClipEvent (load) {
xx = 0;
}
onClipEvent (enterFrame) {
if (varr != 1) {
xx = _root.ix;
varr = 1;
}
if (_root.target.hitTest(_x, _y, true)) {
z++;
_name = ("xx" + z);
_alpha = (_alpha - 5);
_x = (_x + _root.target.speed);
}
}
Instance of Symbol 181 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(10012);
}
Instance of Symbol 184 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(10062);
}
Frame 6
j = 100;
k = 0;
nextLevel = 0;
fadee = 0;
menuu = 0;
_root._x = -100000;
onEnterFrame = function () {
scoreb = _root.scorea;
if (misses <= 0) {
misses = 0;
}
acc = _root.accuracy;
ree = _root.rel;
shoota = _root.shoot;
hitsa = _root.hits2;
_root._x = 0;
misses = _root.shoota - _root.hitsa;
Mouse.show();
stop();
i = 100;
_root.createEmptyMovieClip("fade3", 10058);
with (fade3) {
lineStyle(2, 0, 100);
beginFill(0, j);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = j;
j = j - 2;
if (j <= 2) {
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
}
}
if (_root.fadee == 1) {
_root.createEmptyMovieClip("fade4", 10059);
with (fade4) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (((_root.menuu == 1) && (_alpha >= 98)) && (nextLevel == 0)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop("menu");
}
if (((_root.menuu == 0) && (_alpha >= 98)) && (nextLevel == 1)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop(7);
}
}
}
};
stop();
if (_root.shoota == 0) {
_root.acc = 0;
}
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
Instance of Symbol 149 MovieClip "BHole" in Frame 6
onClipEvent (enterFrame) {
if (_root.target.hitTest(_x, _y, true)) {
var1 = 1;
if (var1 == 1) {
z++;
var1 = 0;
}
_x = (_x + _root.target.speed);
this._name = "x" + z;
}
}
Frame 7
function MakeBHole() {
z++;
duplicateMovieClip (_root.BHole, "BHole" + z, z);
ran = random(2);
if (ran == 0) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = random(9);
}
if (var3 == 1) {
randomw = random(2);
var3 = 0;
}
}
if (ran == 1) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = -random(9);
}
if (var3 == 1) {
randomw = -random(2);
var3 = 0;
}
}
setProperty("BHole" + z, _x , _root._xmouse + randomw);
setProperty("BHole" + z, _y , _root._ymouse + randomw);
if (_root.target.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.hits2++;
_root["BHole" + z]._visible = false;
}
if (_root["BHole" + z].hitTest(_root.metal) && (!_root["BHole" + z].hitTest(_root.target))) {
hits = random(2);
missess++;
if (_root.hits == 0) {
_root.bSound1.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound5.start(0, 1);
}
}
if ((_root["BHole" + z].hitTest(_root.wall) && (!_root["BHole" + z].hitTest(_root.metal))) && (!_root["BHole" + z].hitTest(_root.target))) {
missess++;
hits = random(2);
if (_root.hits == 0) {
_root.bSound2.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound4.start(0, 1);
}
}
if (_root["BHole" + z].hitTest(_root.target)) {
_root.bSound6.start(0, 1);
}
}
function MakeBHolea() {
j++;
duplicateMovieClip (_root.BHolea, "BHolea" + j, j + 30005);
setProperty("BHolea" + j, _x , _root._xmouse + randomw);
setProperty("BHolea" + j, _y , _root._ymouse + randomw);
if (_root["BHolea" + j].hitTest(_root.wall) && (!_root["BHolea" + j].hitTest(_root.target))) {
_root["BHolea" + j]._visible = false;
}
if (_root["BHolea" + j].hitTest(_root.target)) {
_root["BHolea" + j]._visible = true;
}
}
function MakeNum() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 10;
}
function MakeNum2() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 20;
}
function MakeNum3() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 30;
}
function MakeNum4() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 40;
}
function MakeNum5() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 50;
}
function MakeNum6() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 75;
}
function MakeNum7() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 100;
}
_root.fade4.removeMovieClip();
removeMovieClip(_root.fade4);
_root.reload = false;
_root.amm.ammo = 25;
var3 = 0;
bull = 0;
scores.score = _root.scoreb;
missess = 0;
_root.timer.time = 35;
go = 0;
ix = 0;
hits2 = 0;
shoot = 0;
j = 0;
stopfade = 0;
rel = 0;
j = 100;
k = 0;
stop();
onMouseDown = function () {
if (_root.go == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (_root.cursor._currentframe == 1) {
var3 = 1;
}
var1 = 1;
if (_root.gun._currentframe == 1) {
_root.gun.gotoAndStop(2);
}
}
};
onMouseUp = function () {
var1 = 0;
};
onEnterFrame = function () {
if ((_root.timer.time <= 0) && (stopfade == 0)) {
_root.createEmptyMovieClip("fade2", 91050);
with (fade2) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (k >= 160) {
_root.scorea = _root.scores.score;
stopfade = 1;
k = 0;
_root.nextFrame();
}
}
}
if (_root.go == 1) {
accuracy = Math.ceil((Number(hits2) / Number(shoot)) * 100);
i++;
if (i >= 30) {
if (_root.timer.time != 0) {
_root.timer.time--;
}
i = 0;
}
}
if (accuracy >= 100) {
accuracy = 100;
}
if (_root.target.ten.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 10;
_root.MakeNum();
}
if (_root.target.twenty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 20;
_root.MakeNum2();
}
if (_root.target.thirty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 30;
_root.MakeNum3();
}
if (_root.target.forty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 40;
_root.MakeNum4();
}
if (_root.target.fifty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 50;
_root.MakeNum5();
}
if (_root.target.seventy.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 75;
_root.MakeNum6();
}
if (_root.target.hundred.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 100;
_root.MakeNum7();
_root.bull++;
}
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
Mouse.hide();
if (var1 == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (((_root.amm.ammo == 0) && (_root.gun._currentframe != 3)) && (_root.gun._currentframe == 1)) {
_root.gun.gotoAndPlay(2);
_root.click.play();
}
if (((_root.amm.ammo <= 0) && (_root.reload == false)) && (_root.gun._currentframe != 3)) {
_root.gun.gotoAndStop(1);
_root.reloadd.play();
}
}
if (_root.amm.ammo != 0) {
_root.reloadd.gotoAndStop(1);
}
};
z = 0;
bSound1 = new Sound(this);
bSound1.attachSound("metalBullet");
bSound2 = new Sound(this);
bSound2.attachSound("wallBullet");
bSound3 = new Sound(this);
bSound3.attachSound("Click");
bSound4 = new Sound(this);
bSound4.attachSound("gun4");
bSound5 = new Sound(this);
bSound5.attachSound("metalhit");
bSound6 = new Sound(this);
bSound6.attachSound("hitter");
Instance of Symbol 110 MovieClip "amm" in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(40008);
}
Instance of Symbol 142 MovieClip "cursor" in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(20000);
}
Instance of Symbol 149 MovieClip "BHole" in Frame 7
onClipEvent (enterFrame) {
if (_root.target.hitTest(_x, _y, true)) {
var1 = 1;
if (var1 == 1) {
z++;
var1 = 0;
}
this._name = "x" + z;
}
}
Instance of Symbol 29 MovieClip "target" in Frame 7
onClipEvent (enterFrame) {
if (_root.go == 1) {
i++;
if (i >= 20) {
i = 0;
_root.ranNumber = random(4);
_root.ranNumber2 = random(5);
}
}
speed = 7;
if (_root.ranNumber == 0) {
this._x = this._x - speed;
}
if (_root.ranNumber == 1) {
this._x = this._x + speed;
}
if (_root.ranNumber == 2) {
this._y = this._y - speed;
}
if (_root.ranNumber == 3) {
this._y = this._y + speed;
}
if (_root.ranNumber2 == 0) {
this._x = this._x - speed;
}
if (_root.ranNumber2 == 1) {
this._x = this._x + speed;
}
if (_root.ranNumber2 == 2) {
this._y = this._y - speed;
}
if (_root.ranNumber2 == 3) {
this._y = this._y + speed;
}
if (this._x >= Stage.width) {
this._x = 0;
} else if (this._x <= 0) {
this._x = Stage.width;
} else if (this._y >= Stage.height) {
this._y = 0;
} else if (this._y <= 0) {
this._y = Stage.height;
}
this.swapDepths(19999);
if (_root.timer.time <= 0) {
_alpha = (_alpha - 2);
}
if (_alpha <= 2) {
this.removeMovieClip();
removeMovieClip(this);
}
}
Instance of Symbol 155 MovieClip "scores" in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(20008);
}
Instance of Symbol 158 MovieClip "timer" in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(20005);
}
Instance of Symbol 169 MovieClip "reloadd" in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(20009);
}
Instance of Symbol 138 MovieClip "gun" in Frame 7
onClipEvent (enterFrame) {
_x = (_x - (((_x - _root._xmouse) / 2) - 30));
_y = (_root._ymouse + 25);
_rotation = (_root._ymouse / -60);
this.swapDepths(20001);
if (_root.go == 1) {
if ((Key.isDown(32) && (_root.reload == false)) && (_root.amm.ammo != 25)) {
this.gotoAndStop(3);
}
}
}
Instance of Symbol 176 MovieClip "BHolea" in Frame 7
onClipEvent (load) {
xx = 0;
}
onClipEvent (enterFrame) {
if (varr != 1) {
xx = _root.ix;
varr = 1;
}
if (_root.target.hitTest(_x, _y, true)) {
z++;
_name = ("xx" + z);
_alpha = (_alpha - 20);
} else {
_visible = false;
}
}
Instance of Symbol 220 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(20012);
}
Instance of Symbol 184 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(400060);
}
Frame 8
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
j = 100;
k = 0;
nextLevel = 0;
fadee = 0;
misses = 0;
menuu = 0;
_root._x = -100000;
onEnterFrame = function () {
scoreb = _root.scorea;
if (misses <= 0) {
misses = 0;
}
acc = _root.accuracy;
ree = _root.rel;
shoota = _root.shoot;
hitsa = _root.hits2;
_root._x = 0;
misses = _root.shoota - _root.hitsa;
Mouse.show();
stop();
i = 100;
_root.createEmptyMovieClip("fade3", 10058);
with (fade3) {
lineStyle(2, 0, 100);
beginFill(0, j);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = j;
j = j - 2;
if (j <= 2) {
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
}
}
if (_root.fadee == 1) {
_root.createEmptyMovieClip("fade4", 10059);
with (fade4) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (((_root.menuu == 1) && (_alpha >= 98)) && (nextLevel == 0)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop("menu");
}
if (((_root.menuu == 0) && (_alpha >= 98)) && (nextLevel == 1)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop(9);
}
}
}
};
stop();
if (_root.shoota == 0) {
_root.acc = 0;
}
Frame 9
function MakeBHole() {
z++;
duplicateMovieClip (_root.BHole, "BHole" + z, z);
ran = random(2);
if (ran == 0) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = random(9);
}
if (var3 == 1) {
randomw = random(2);
var3 = 0;
}
}
if (ran == 1) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = -random(9);
}
if (var3 == 1) {
randomw = -random(2);
var3 = 0;
}
}
setProperty("BHole" + z, _x , _root._xmouse + randomw);
setProperty("BHole" + z, _y , _root._ymouse + randomw);
if (_root.target.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.hits2++;
_root["BHole" + z]._visible = false;
}
if (_root["BHole" + z].hitTest(_root.metal) && (!_root["BHole" + z].hitTest(_root.target))) {
hits = random(2);
missess++;
if (_root.hits == 0) {
_root.bSound1.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound5.start(0, 1);
}
}
if ((_root["BHole" + z].hitTest(_root.wall) && (!_root["BHole" + z].hitTest(_root.metal))) && (!_root["BHole" + z].hitTest(_root.target))) {
missess++;
hits = random(2);
if (_root.hits == 0) {
_root.bSound2.start(0, 1);
_root.bSound6.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound4.start(0, 1);
_root.bSound6.start(0, 1);
}
}
if (_root["BHole" + z].hitTest(_root.target)) {
_root.bSound6.start(0, 1);
}
}
function MakeBHolea() {
j++;
duplicateMovieClip (_root.BHolea, "BHolea" + j, j + 30005);
setProperty("BHolea" + j, _x , _root._xmouse + randomw);
setProperty("BHolea" + j, _y , _root._ymouse + randomw);
if (_root["BHolea" + j].hitTest(_root.wall) && (!_root["BHolea" + j].hitTest(_root.target))) {
_root["BHolea" + j]._visible = false;
}
if (_root["BHolea" + j].hitTest(_root.target)) {
_root["BHolea" + j]._visible = true;
}
}
function MakeNum() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 10;
}
function MakeNum2() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 20;
}
function MakeNum3() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 30;
}
function MakeNum4() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 40;
}
function MakeNum5() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 50;
}
function MakeNum6() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 75;
}
function MakeNum7() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 100;
}
_root.fade4.removeMovieClip();
removeMovieClip(_root.fade4);
_root.reload = false;
_root.amm.ammo = 25;
var3 = 0;
bull = 0;
scores.score = _root.scoreb;
missess = 0;
_root.timer.time = 35;
go = 0;
ix = 0;
hits2 = 0;
shoot = 0;
j = 0;
stopfade = 0;
rel = 0;
j = 100;
k = 0;
stop();
onMouseDown = function () {
if (_root.go == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (_root.cursor._currentframe == 1) {
var3 = 1;
}
var1 = 1;
if (_root.gun._currentframe == 1) {
_root.gun.gotoAndStop(2);
}
}
};
onMouseUp = function () {
var1 = 0;
};
onEnterFrame = function () {
if ((_root.timer.time <= 0) && (stopfade == 0)) {
_root.createEmptyMovieClip("fade2", 96050);
with (fade2) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (k >= 160) {
_root.scorea = _root.scores.score;
stopfade = 1;
k = 0;
_root.nextFrame();
}
}
}
if (_root.go == 1) {
accuracy = Math.ceil((Number(hits2) / Number(shoot)) * 100);
i++;
if (i >= 30) {
if (_root.timer.time != 0) {
_root.timer.time--;
}
i = 0;
}
}
if (accuracy >= 100) {
accuracy = 100;
}
if (_root.target.ten.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 10;
_root.MakeNum();
}
if (_root.target.twenty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 20;
_root.MakeNum2();
}
if (_root.target.thirty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 30;
_root.MakeNum3();
}
if (_root.target.forty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 40;
_root.MakeNum4();
}
if (_root.target.fifty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 50;
_root.MakeNum5();
}
if (_root.target.seventy.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 75;
_root.MakeNum6();
}
if (_root.target.hundred.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 100;
_root.MakeNum7();
_root.bull++;
}
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
Mouse.hide();
if (var1 == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (((_root.amm.ammo == 0) && (_root.gun._currentframe != 3)) && (_root.gun._currentframe == 1)) {
_root.gun.gotoAndPlay(2);
_root.click.play();
}
if (((_root.amm.ammo <= 0) && (_root.reload == false)) && (_root.gun._currentframe != 3)) {
_root.gun.gotoAndStop(1);
_root.reloadd.play();
}
}
if (_root.amm.ammo != 0) {
_root.reloadd.gotoAndStop(1);
}
};
z = 0;
bSound1 = new Sound(this);
bSound1.attachSound("metalBullet");
bSound2 = new Sound(this);
bSound2.attachSound("wallBullet");
bSound3 = new Sound(this);
bSound3.attachSound("Click");
bSound4 = new Sound(this);
bSound4.attachSound("gun4");
bSound5 = new Sound(this);
bSound5.attachSound("metalhit");
bSound6 = new Sound(this);
bSound6.attachSound("hitter");
Instance of Symbol 110 MovieClip "amm" in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(40008);
}
Instance of Symbol 142 MovieClip "cursor" in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(20000);
}
Instance of Symbol 149 MovieClip "BHole" in Frame 9
onClipEvent (enterFrame) {
if (_root.target.hitTest(_x, _y, true)) {
var1 = 1;
if (var1 == 1) {
z++;
var1 = 0;
}
this._name = "x" + z;
}
}
Instance of Symbol 29 MovieClip "target" in Frame 9
onClipEvent (load) {
speed = 4;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_y = (_y + speed);
if (_root.timer.time != 0) {
if (_y > 420) {
speed = speed + 1.3;
_x = random(Stage.width);
_y = -120;
}
}
}
this.swapDepths(1004);
}
Instance of Symbol 155 MovieClip "scores" in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(20008);
}
Instance of Symbol 158 MovieClip "timer" in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(20005);
}
Instance of Symbol 169 MovieClip "reloadd" in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(20009);
}
Instance of Symbol 138 MovieClip "gun" in Frame 9
onClipEvent (enterFrame) {
_x = (_x - (((_x - _root._xmouse) / 2) - 30));
_y = (_root._ymouse + 25);
_rotation = (_root._ymouse / -60);
this.swapDepths(20001);
if (_root.go == 1) {
if ((Key.isDown(32) && (_root.reload == false)) && (_root.amm.ammo != 25)) {
this.gotoAndStop(3);
}
}
}
Instance of Symbol 176 MovieClip "BHolea" in Frame 9
onClipEvent (load) {
xx = 0;
}
onClipEvent (enterFrame) {
if (varr != 1) {
xx = _root.ix;
varr = 1;
}
if (_root.target.hitTest(_x, _y, true)) {
z++;
_name = ("xx" + z);
_alpha = (_alpha - 5);
_y = (_y + _root.target.speed);
}
}
Instance of Symbol 239 MovieClip in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(20012);
}
Instance of Symbol 184 MovieClip in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(400060);
}
Frame 10
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
j = 100;
k = 0;
nextLevel = 0;
fadee = 0;
misses = 0;
menuu = 0;
_root._x = -100000;
onEnterFrame = function () {
scoreb = _root.scorea;
if (misses <= 0) {
misses = 0;
}
acc = _root.accuracy;
ree = _root.rel;
shoota = _root.shoot;
hitsa = _root.hits2;
_root._x = 0;
misses = _root.shoota - _root.hitsa;
Mouse.show();
stop();
i = 100;
_root.createEmptyMovieClip("fade3", 10058);
with (fade3) {
lineStyle(2, 0, 100);
beginFill(0, j);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = j;
j = j - 2;
if (j <= 2) {
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
}
}
if (_root.fadee == 1) {
_root.createEmptyMovieClip("fade4", 85059);
with (fade4) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (((_root.menuu == 1) && (_alpha >= 98)) && (nextLevel == 0)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop("menu");
}
if (((_root.menuu == 0) && (_alpha >= 98)) && (nextLevel == 1)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop(11);
}
}
}
};
stop();
if (_root.shoota == 0) {
_root.acc = 0;
}
Frame 11
function MakeBHole() {
z++;
duplicateMovieClip (_root.BHole, "BHole" + z, z);
ran = random(2);
if (ran == 0) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = random(9);
}
if (var3 == 1) {
randomw = random(2);
var3 = 0;
}
}
if (ran == 1) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = -random(9);
}
if (var3 == 1) {
randomw = -random(2);
var3 = 0;
}
}
setProperty("BHole" + z, _x , _root._xmouse + randomw);
setProperty("BHole" + z, _y , _root._ymouse + randomw);
if (_root.target.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.hits2++;
_root["BHole" + z]._visible = false;
}
if (_root["BHole" + z].hitTest(_root.metal) && (!_root["BHole" + z].hitTest(_root.target))) {
hits = random(2);
missess++;
if (_root.hits == 0) {
_root.bSound1.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound5.start(0, 1);
}
}
if ((_root["BHole" + z].hitTest(_root.wall) && (!_root["BHole" + z].hitTest(_root.metal))) && (!_root["BHole" + z].hitTest(_root.target))) {
missess++;
hits = random(2);
if (_root.hits == 0) {
_root.bSound2.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound4.start(0, 1);
}
}
if (_root["BHole" + z].hitTest(_root.target)) {
_root.bSound6.start(0, 1);
}
}
function MakeBHolea() {
j++;
duplicateMovieClip (_root.BHolea, "BHolea" + j, j + 30005);
setProperty("BHolea" + j, _x , _root._xmouse + randomw);
setProperty("BHolea" + j, _y , _root._ymouse + randomw);
if (_root["BHolea" + j].hitTest(_root.wall) && (!_root["BHolea" + j].hitTest(_root.target))) {
_root["BHolea" + j]._visible = false;
}
if (_root["BHolea" + j].hitTest(_root.target)) {
_root["BHolea" + j]._visible = true;
}
}
function MakeNum() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 10;
}
function MakeNum2() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 20;
}
function MakeNum3() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 30;
}
function MakeNum4() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 40;
}
function MakeNum5() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 50;
}
function MakeNum6() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 75;
}
function MakeNum7() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 100;
}
_root.fade4.removeMovieClip();
removeMovieClip(_root.fade4);
_root.reload = false;
_root.amm.ammo = 25;
var3 = 0;
scores.score = _root.scoreb;
bull = 0;
missess = 0;
_root.timer.time = 35;
go = 0;
ix = 0;
hits2 = 0;
shoot = 0;
j = 0;
stopfade = 0;
rel = 0;
j = 100;
k = 0;
stop();
onMouseDown = function () {
if (_root.go == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (_root.cursor._currentframe == 1) {
var3 = 1;
}
var1 = 1;
if (_root.gun._currentframe == 1) {
_root.gun.gotoAndStop(2);
}
}
};
onMouseUp = function () {
var1 = 0;
};
onEnterFrame = function () {
if ((_root.timer.time <= 0) && (stopfade == 0)) {
_root.createEmptyMovieClip("fade2", 60050);
with (fade2) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (k >= 160) {
_root.scorea = _root.scores.score;
stopfade = 1;
k = 0;
_root.nextFrame();
}
}
}
if (_root.go == 1) {
accuracy = Math.ceil((Number(hits2) / Number(shoot)) * 100);
i++;
if (i >= 30) {
if (_root.timer.time != 0) {
_root.timer.time--;
}
i = 0;
}
}
if (accuracy >= 100) {
accuracy = 100;
}
if (_root.target.ten.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 10;
_root.MakeNum();
}
if (_root.target.twenty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 20;
_root.MakeNum2();
}
if (_root.target.thirty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 30;
_root.MakeNum3();
}
if (_root.target.forty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 40;
_root.MakeNum4();
}
if (_root.target.fifty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 50;
_root.MakeNum5();
}
if (_root.target.seventy.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 75;
_root.MakeNum6();
}
if (_root.target.hundred.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 100;
_root.MakeNum7();
_root.bull++;
}
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
Mouse.hide();
if (var1 == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (((_root.amm.ammo == 0) && (_root.gun._currentframe != 3)) && (_root.gun._currentframe == 1)) {
_root.gun.gotoAndPlay(2);
_root.click.play();
}
if (((_root.amm.ammo <= 0) && (_root.reload == false)) && (_root.gun._currentframe != 3)) {
_root.gun.gotoAndStop(1);
_root.reloadd.play();
}
}
if (_root.amm.ammo != 0) {
_root.reloadd.gotoAndStop(1);
}
};
z = 0;
bSound1 = new Sound(this);
bSound1.attachSound("metalBullet");
bSound2 = new Sound(this);
bSound2.attachSound("wallBullet");
bSound3 = new Sound(this);
bSound3.attachSound("Click");
bSound4 = new Sound(this);
bSound4.attachSound("gun4");
bSound5 = new Sound(this);
bSound5.attachSound("metalhit");
bSound6 = new Sound(this);
bSound6.attachSound("hitter");
Instance of Symbol 110 MovieClip "amm" in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(40008);
}
Instance of Symbol 142 MovieClip "cursor" in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(20000);
}
Instance of Symbol 149 MovieClip "BHole" in Frame 11
onClipEvent (enterFrame) {
if (_root.target.hitTest(_x, _y, true)) {
var1 = 1;
if (var1 == 1) {
z++;
var1 = 0;
}
this._name = "x" + z;
}
}
Instance of Symbol 155 MovieClip "scores" in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(20008);
}
Instance of Symbol 158 MovieClip "timer" in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(20005);
}
Instance of Symbol 169 MovieClip "reloadd" in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(20009);
}
Instance of Symbol 138 MovieClip "gun" in Frame 11
onClipEvent (enterFrame) {
_x = (_x - (((_x - _root._xmouse) / 2) - 30));
_y = (_root._ymouse + 25);
_rotation = (_root._ymouse / -60);
this.swapDepths(20001);
if (_root.go == 1) {
if ((Key.isDown(32) && (_root.reload == false)) && (_root.amm.ammo != 25)) {
this.gotoAndStop(3);
}
}
}
Instance of Symbol 176 MovieClip "BHolea" in Frame 11
onClipEvent (load) {
xx = 0;
scale = _xscale;
scale2 = _yscale;
}
onClipEvent (enterFrame) {
if (varr != 1) {
xx = _root.ix;
varr = 1;
}
if (_root.target.hitTest(_x, _y, true)) {
z++;
_name = ("xx" + z);
_alpha = (_alpha - 10);
} else {
_visible = false;
}
}
Instance of Symbol 255 MovieClip "center_cross_hairs" in Frame 11
onClipEvent (enterFrame) {
_x = (_root.Stage.width / 2);
_y = (_root.Stage.height / 2);
}
Instance of Symbol 256 MovieClip "target" in Frame 11
onClipEvent (load) {
radius = 100;
degrees = 0;
a = 1;
}
onClipEvent (enterFrame) {
angle = degrees * (Math.PI/180);
degrees = degrees + a;
xposition = (radius * Math.cos(angle)) * 2;
zposition = radius * Math.sin(angle);
this._x = xposition + _root.center_cross_hairs._x;
this._y = _root.center_cross_hairs._y;
this._yscale = zposition + 150;
this._xscale = zposition + 150;
if (_xscale <= 55) {
if (up != 1) {
a = a + 0.8;
up = 1;
}
} else {
up = 0;
}
this.swapDepths(1992);
}
Instance of Symbol 258 MovieClip in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(20012);
}
Instance of Symbol 184 MovieClip in Frame 11
onClipEvent (enterFrame) {
this.swapDepths(400060);
}
Frame 12
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
j = 100;
k = 0;
nextLevel = 0;
fadee = 0;
misses = 0;
menuu = 0;
_root._x = -100000;
onEnterFrame = function () {
scoreb = _root.scorea;
if (misses <= 0) {
misses = 0;
}
acc = _root.accuracy;
ree = _root.rel;
shoota = _root.shoot;
hitsa = _root.hits2;
_root._x = 0;
misses = _root.shoota - _root.hitsa;
Mouse.show();
stop();
i = 100;
_root.createEmptyMovieClip("fade3", 10058);
with (fade3) {
lineStyle(2, 0, 100);
beginFill(0, j);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = j;
j = j - 2;
if (j <= 2) {
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
}
}
if (_root.fadee == 1) {
_root.createEmptyMovieClip("fade4", 10059);
with (fade4) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (((_root.menuu == 1) && (_alpha >= 98)) && (nextLevel == 0)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop("menu");
}
if (((_root.menuu == 0) && (_alpha >= 98)) && (nextLevel == 1)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop(13);
}
}
}
};
stop();
if (_root.shoota == 0) {
_root.acc = 0;
}
Frame 13
function MakeBHole() {
z++;
duplicateMovieClip (_root.BHole, "BHole" + z, z);
ran = random(2);
if (ran == 0) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = random(9);
}
if (var3 == 1) {
randomw = random(2);
var3 = 0;
}
}
if (ran == 1) {
if ((_root.cursor._currentframe != 1) && (var3 == 0)) {
randomw = -random(9);
}
if (var3 == 1) {
randomw = -random(2);
var3 = 0;
}
}
setProperty("BHole" + z, _x , _root._xmouse + randomw);
setProperty("BHole" + z, _y , _root._ymouse + randomw);
if (_root.target.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.hits2++;
_root["BHole" + z]._visible = false;
}
if (_root["BHole" + z].hitTest(_root.metal) && (!_root["BHole" + z].hitTest(_root.target))) {
hits = random(2);
missess++;
if (_root.hits == 0) {
_root.bSound1.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound5.start(0, 1);
}
}
if ((_root["BHole" + z].hitTest(_root.wall) && (!_root["BHole" + z].hitTest(_root.metal))) && (!_root["BHole" + z].hitTest(_root.target))) {
missess++;
hits = random(2);
if (_root.hits == 0) {
_root.bSound2.start(0, 1);
}
if (_root.hits == 1) {
_root.bSound4.start(0, 1);
}
}
if (_root["BHole" + z].hitTest(_root.target)) {
_root.bSound6.start(0, 1);
}
}
function MakeBHolea() {
j++;
duplicateMovieClip (_root.BHolea, "BHolea" + j, j + 30005);
setProperty("BHolea" + j, _x , _root._xmouse + randomw);
setProperty("BHolea" + j, _y , _root._ymouse + randomw);
if (_root["BHolea" + j].hitTest(_root.wall) && (!_root["BHolea" + j].hitTest(_root.target))) {
_root["BHolea" + j]._visible = false;
}
if (_root["BHolea" + j].hitTest(_root.target)) {
_root["BHolea" + j]._visible = true;
}
}
function MakeNum() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 10;
}
function MakeNum2() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 20;
}
function MakeNum3() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 30;
}
function MakeNum4() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 40;
}
function MakeNum5() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 50;
}
function MakeNum6() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 75;
}
function MakeNum7() {
i++;
duplicateMovieClip (_root.nummm, "nummm" + i, i + 30001);
setProperty("nummm" + i, _x , _root._xmouse);
setProperty("nummm" + i, _y , _root._ymouse);
_root["nummm" + i].numm.num = 100;
}
_root.fade4.removeMovieClip();
removeMovieClip(_root.fade4);
_root.reload = false;
_root.amm.ammo = 25;
var3 = 0;
bull = 0;
scores.score = _root.scoreb;
missess = 0;
_root.timer.time = 35;
go = 0;
ix = 0;
hits2 = 0;
shoot = 0;
j = 0;
stopfade = 0;
rel = 0;
j = 100;
k = 0;
stop();
onMouseDown = function () {
if (_root.go == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (_root.cursor._currentframe == 1) {
var3 = 1;
}
var1 = 1;
if (_root.gun._currentframe == 1) {
_root.gun.gotoAndStop(2);
}
}
};
onMouseUp = function () {
var1 = 0;
};
onEnterFrame = function () {
if ((_root.timer.time <= 0) && (stopfade == 0)) {
_root.createEmptyMovieClip("fade2", 60050);
with (fade2) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (k >= 160) {
_root.scorea = _root.scores.score;
stopfade = 1;
k = 0;
_root.nextFrame();
}
}
}
if (_root.go == 1) {
accuracy = Math.ceil((Number(hits2) / Number(shoot)) * 100);
i++;
if (i >= 30) {
if (_root.timer.time != 0) {
_root.timer.time--;
}
i = 0;
}
}
if (accuracy >= 100) {
accuracy = 100;
}
if (_root.target.ten.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 10;
_root.MakeNum();
}
if (_root.target.twenty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 20;
_root.MakeNum2();
}
if (_root.target.thirty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 30;
_root.MakeNum3();
}
if (_root.target.forty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 40;
_root.MakeNum4();
}
if (_root.target.fifty.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 50;
_root.MakeNum5();
}
if (_root.target.seventy.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 75;
_root.MakeNum6();
}
if (_root.target.hundred.hitTest(_root["BHole" + z]._x, _root["BHole" + z]._y, true)) {
_root.scores.score = _root.scores.score + 100;
_root.MakeNum7();
_root.bull++;
}
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
Mouse.hide();
if (var1 == 1) {
if ((_root.amm.ammo != 0) && (_root.gun._currentframe != 3)) {
_root.cursor.gotoAndPlay(2);
}
if (((_root.amm.ammo == 0) && (_root.gun._currentframe != 3)) && (_root.gun._currentframe == 1)) {
_root.gun.gotoAndPlay(2);
_root.click.play();
}
if (((_root.amm.ammo <= 0) && (_root.reload == false)) && (_root.gun._currentframe != 3)) {
_root.gun.gotoAndStop(1);
_root.reloadd.play();
}
}
if (_root.amm.ammo != 0) {
_root.reloadd.gotoAndStop(1);
}
};
z = 0;
bSound1 = new Sound(this);
bSound1.attachSound("metalBullet");
bSound2 = new Sound(this);
bSound2.attachSound("wallBullet");
bSound3 = new Sound(this);
bSound3.attachSound("Click");
bSound4 = new Sound(this);
bSound4.attachSound("gun4");
bSound5 = new Sound(this);
bSound5.attachSound("metalhit");
bSound6 = new Sound(this);
bSound6.attachSound("hitter");
Instance of Symbol 271 MovieClip "target" in Frame 13
onClipEvent (load) {
rot = 3;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_rotation = (_rotation + rot);
_y = (_y + (speed * Math.sin(_rotation * (Math.PI/180))));
_x = (_x + (speed * Math.cos(_rotation * (Math.PI/180))));
rot = rot + 0.017;
}
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
i++;
if (i >= 20) {
i = 0;
_root.ranNumber = random(4);
_root.ranNumber2 = random(5);
}
}
speed = 7;
if (_root.ranNumber == 0) {
this._x = this._x - speed;
}
if (_root.ranNumber == 1) {
this._x = this._x + speed;
}
if (_root.ranNumber == 2) {
this._y = this._y - speed;
}
if (_root.ranNumber == 3) {
this._y = this._y + speed;
}
if (_root.ranNumber2 == 0) {
this._x = this._x - speed;
}
if (_root.ranNumber2 == 1) {
this._x = this._x + speed;
}
if (_root.ranNumber2 == 2) {
this._y = this._y - speed;
}
if (_root.ranNumber2 == 3) {
this._y = this._y + speed;
}
if (this._x >= Stage.width) {
this._x = 0;
} else if (this._x <= 0) {
this._x = Stage.width;
} else if (this._y >= Stage.height) {
this._y = 0;
} else if (this._y <= 0) {
this._y = Stage.height;
}
if (_root.timer.time <= 0) {
_alpha = (_alpha - 2);
}
if (_alpha <= 2) {
this.removeMovieClip();
removeMovieClip(this);
}
this.swapDepths(1992);
}
Instance of Symbol 110 MovieClip "amm" in Frame 13
onClipEvent (enterFrame) {
this.swapDepths(40008);
}
Instance of Symbol 142 MovieClip "cursor" in Frame 13
onClipEvent (enterFrame) {
this.swapDepths(20000);
}
Instance of Symbol 149 MovieClip "BHole" in Frame 13
onClipEvent (enterFrame) {
if (_root.target.hitTest(_x, _y, true)) {
var1 = 1;
if (var1 == 1) {
z++;
var1 = 0;
}
this._name = "x" + z;
}
}
Instance of Symbol 155 MovieClip "scores" in Frame 13
onClipEvent (enterFrame) {
this.swapDepths(20008);
}
Instance of Symbol 158 MovieClip "timer" in Frame 13
onClipEvent (enterFrame) {
this.swapDepths(20005);
}
Instance of Symbol 169 MovieClip "reloadd" in Frame 13
onClipEvent (enterFrame) {
this.swapDepths(20009);
}
Instance of Symbol 138 MovieClip "gun" in Frame 13
onClipEvent (enterFrame) {
_x = (_x - (((_x - _root._xmouse) / 2) - 30));
_y = (_root._ymouse + 25);
_rotation = (_root._ymouse / -60);
this.swapDepths(20001);
if (_root.go == 1) {
if ((Key.isDown(32) && (_root.reload == false)) && (_root.amm.ammo != 25)) {
this.gotoAndStop(3);
}
}
}
Instance of Symbol 176 MovieClip "BHolea" in Frame 13
onClipEvent (load) {
xx = 0;
scale = _xscale;
scale2 = _yscale;
}
onClipEvent (enterFrame) {
if (varr != 1) {
xx = _root.ix;
varr = 1;
}
if (_root.target.hitTest(_x, _y, true)) {
z++;
_name = ("xx" + z);
_alpha = (_alpha - 10);
} else {
_visible = false;
}
}
Instance of Symbol 274 MovieClip in Frame 13
onClipEvent (enterFrame) {
this.swapDepths(20012);
}
Instance of Symbol 184 MovieClip in Frame 13
onClipEvent (enterFrame) {
this.swapDepths(400060);
}
Frame 14
myname = "Enter Name Here";
this.submit.onRelease = function () {
pldm128948 = new LoadVars();
pldm128948.namevar = myname;
pldm128948.scorevar = scorea;
pldm128948.mid = 226;
pldm128948.pro = "df182bed2ce1e37fa91ae5e77f11c5ff";
pldm128948.sendAndLoad("http://bot.armorstudios.com/hs.php", pldm128948, "POST");
getURL ("http://bot.armorstudios.com/highscores.php?id=226", "_blank");
};
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
j = 100;
k = 0;
nextLevel = 0;
fadee = 0;
misses = 0;
menuu = 0;
_root._x = -100000;
onEnterFrame = function () {
scoreb = _root.scorea;
if (misses <= 0) {
misses = 0;
}
acc = _root.accuracy;
ree = _root.rel;
shoota = _root.shoot;
hitsa = _root.hits2;
_root._x = 0;
misses = _root.shoota - _root.hitsa;
Mouse.show();
stop();
i = 100;
_root.createEmptyMovieClip("fade3", 10058);
with (fade3) {
lineStyle(2, 0, 100);
beginFill(0, j);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = j;
j = j - 2;
if (j <= 2) {
for (i in _root) {
_root[i].removeMovieClip();
removeMovieClip(_root[i]);
}
}
}
if (_root.fadee == 1) {
_root.createEmptyMovieClip("fade4", 10059);
with (fade4) {
lineStyle(2, 0, 100);
beginFill(0, k);
lineTo(5000, -5000);
lineTo(5000, 5000);
lineTo(-5000, 5000);
lineTo(-5000, -5000);
_alpha = k;
k = k + 2;
if (((_root.menuu == 1) && (_alpha >= 98)) && (nextLevel == 0)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop("menu");
}
if (((_root.menuu == 0) && (_alpha >= 98)) && (nextLevel == 1)) {
stopAllSounds();
_root.menuu = 0;
_root.nextLevel = 0;
_root.fadee = 0;
stopAllSounds();
_root.gotoAndStop(7);
}
}
}
};
stop();
if (_root.shoota == 0) {
_root.acc = 0;
}
Symbol 31 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 500;
if (PercentLoaded != 100) {
setProperty(bar, _yscale , PercentLoaded);
} else {
gotoAndPlay ("loaded");
}
Symbol 31 MovieClip Frame 2
gotoAndPlay (1);
Symbol 31 MovieClip Frame 3
_root.play();
Symbol 56 MovieClip Frame 10
stop();
Symbol 62 MovieClip Frame 16
stop();
Symbol 66 MovieClip Frame 16
stop();
Symbol 67 MovieClip Frame 64
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 288
stop();
_root.play();
Symbol 82 Button
on (release) {
_root.play();
_root.i = 0;
stopAllSounds();
}
Symbol 84 Button
on (release) {
getURL ("http://bot.armorstudios.com/highscores.php?id=226", "_blank");
}
Symbol 86 Button
on (release) {
getURL ("http://www.truedarkness.phrozenflame.com", "_blank");
}
Symbol 90 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 131 MovieClip Frame 1
_root.fire = 0;
Symbol 131 MovieClip Frame 3
_root.MakeBHole();
_root.MakeBHolea();
_root.amm.ammo--;
_root.shoot++;
_root.fire = 1;
Symbol 131 MovieClip Frame 6
_root.fire = 0;
Symbol 137 MovieClip Frame 35
_root.amm.ammo = 25;
Symbol 137 MovieClip Frame 36
_root.reload = false;
_root.rel++;
Symbol 137 MovieClip Frame 59
_parent.gotoAndStop(1);
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
onEnterFrame = function () {
if ((_root.var1 == 0) && (_root.gun._currentframe != 3)) {
this.play();
if (_root.gun.gunn._currentframe >= 6) {
_root.gun.gotoAndStop(1);
}
}
};
Symbol 142 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 11
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 26
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 87
gotoAndPlay (2);
Symbol 176 MovieClip Frame 11
stop();
Symbol 181 MovieClip Frame 161
_root.go = 1;
Symbol 181 MovieClip Frame 162
stop();
Symbol 203 Button
on (release) {
_root.menuu = 1;
_root.fadee = 1;
}
Symbol 205 Button
on (release) {
_root.fadee = 1;
_root.nextLevel = 1;
}
Symbol 220 MovieClip Frame 161
_root.go = 1;
Symbol 220 MovieClip Frame 162
stop();
Symbol 239 MovieClip Frame 161
_root.go = 1;
Symbol 239 MovieClip Frame 162
stop();
Symbol 258 MovieClip Frame 161
_root.go = 1;
Symbol 258 MovieClip Frame 162
stop();
Symbol 274 MovieClip Frame 161
_root.go = 1;
Symbol 274 MovieClip Frame 162
stop();
Symbol 284 Button
on (release) {
_root.fadee = 1;
_root.menuu = 1;
}