Frame 1
Mouse.show();
protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "file") {
play();
} else if (protocol == "http") {
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toUpperCase();
if (server.indexOf("WWW.") != -1) {
server = server.substr(server.indexOf("WWW.") + 4, server.length);
}
if (server.indexOf("UNGROUNDED.NET") != -1) {
play();
} else {
getURL ("http://www.thorgaming.com/flasharcade/");
}
}
box1 = prefix;
Instance of Symbol 240 MovieClip in Frame 1
on (rollOut) {
mouse.show();
}
Frame 2
_root.tune = new Sound(this);
_root.tune.attachSound("tune");
_root.tune.start(0, 9999);
Frame 18
stop();
Frame 19
_root.deadeye1.gotoAndStop(1);
_root.deadeye2.gotoAndStop(1);
_root.deadeye3.gotoAndStop(1);
_root.deadeye4.gotoAndStop(1);
_root.deadeye5.gotoAndStop(1);
_root.deadeye6.gotoAndStop(1);
_root.deadeye7.gotoAndStop(1);
_root.deadeye8.gotoAndStop(1);
_root.volumefade = 100;
_root.deadeyenumber = 1;
_root.targetnumber = 1;
_root.score = 0;
_root.ammo = 7;
_root.i = 1;
_root.deagle = 7;
_root.deagleclip = 50;
_root.shots = 0;
_root.hits = 0;
_root.targetshit = 1;
stop();
Frame 20
_root.attachMovie("perfect", "perfect", 998);
_root.perfect._x = -280;
_root.perfect._y = 330;
_root.attachMovie("sight", "sight", 1000);
_root.attachMovie("reloadanim", "reloadanim", 999);
_root.reloadanim._x = -230;
_root.reloadanim._y = 330;
_root.attachMovie("niceshot", "niceshot", 1001);
_root.niceshot._x = -230;
_root.niceshot._y = 330;
_root.attachMovie("killershot", "killershot", 1002);
_root.killershot._x = -280;
_root.killershot._y = 330;
_root.attachMovie("gun1", "gun1", 1003);
_root.gun1._x = 800;
_root.gun1._y = 800;
_root.inclip = _root.deagleclip;
_root.reloading = "no";
_root.attachMovie("notbad", "notbad", 1004);
_root.notbad._x = -230;
_root.notbad._y = 330;
myMC.target = textfield_txt;
myMC.decount = function () {
var _local3 = Math.ceil((this.endTime - getTimer()) / 1000);
if (_local3 <= 0) {
_local3 = 0;
}
var _local2 = Math.floor(_local3 / 60);
if (_local2 < 10) {
_local2 = "0" + _local2;
}
var _local1 = _local3 % 60;
if (_local1 < 10) {
_local1 = "0" + _local1;
}
this.target.text = (_local2 + ":") + _local1;
_root.timeleft = (_local2 + ":") + _local1;
if (_local3 > 0) {
} else {
_root.gotoAndPlay("gameover");
_root.gamestatus = "Time Up";
}
};
myMC.countDown = function (sec) {
var _local1 = this;
_local1.endTime = getTimer() + (sec * 1000);
_local1.onEnterFrame = _local1.decount;
};
if (_root.remember == 3) {
myMC.countDown(60);
play();
}
if (_root.remember == 2) {
myMC.countDown(90);
play();
}
if (_root.remember == 1) {
myMC.countDown(120);
play();
}
Instance of Symbol 541 MovieClip "myMC" in Frame 20
onClipEvent (enterFrame) {
if (_root.volumefade > 0) {
_root.tune.setVolume(_root.volumefade);
_root.volumefade = _root.volumefade - 2;
} else {
_root.tune.setVolume(100);
_root.tune.stop();
}
if ((_root.inclip <= 0) and (_root.ammo <= 0)) {
_root.gamestatus = "Out Of Ammo!";
_root.gotoAndStop("gameover");
}
if (_root.inclip < 0) {
_root.inclip = 0;
}
if (_root.ammo == -1) {
_root.displayammo = 0;
} else {
_root.displayammo = _root.ammo;
}
Mouse.hide();
_root.sight._x = _root._xmouse;
_root.sight._y = _root._ymouse;
_root.gun1._rotation = (_root._xmouse / 10) - (_root._ymouse / 10);
_root.gun1._x = (_root._xmouse / 1.5) + 150;
_root.gun1._y = (_root._ymouse / 10) + 320;
}
onClipEvent (mouseDown) {
if (_root.reloading == "no") {
if (_root.ammo > 0) {
_root.ready = 1;
_root.attachMovie("bullet", "bullet", 90);
_root.i = _root.i + 1;
_root.bullet._x = _root._xmouse;
_root.bullet._y = _root._ymouse;
_root.gun1.gotoAndPlay(1);
_root.ammo = _root.ammo - 1;
trace(_root.ammo);
_root.shots = _root.shots + 1;
} else {
_root.ready = 0;
_root.reloadanim.play();
}
} else {
_root.ready = 0;
}
}
on (keyPress "<Space>") {
_root.reloading = "yes";
_root.gun1.gotoAndPlay("reloadnoise");
if (_root.inclip > 0) {
if (_root.inclip >= 7) {
if (_root.ammo == -1) {
_root.inclip = _root.inclip - 7;
} else {
_root.inclip = _root.inclip - (7 - _root.ammo);
}
_root.ammo = 7;
} else if (_root.ammo <= 0) {
_root.ammo = _root.inclip;
_root.inclip = 0;
} else {
_root.ammor = _root.ammo;
_root.inclip = _root.inclip - (7 - _root.ammo);
_root.ammo = _root.ammo + (7 - _root.ammor);
}
}
}
Frame 21
_root.targets = 1;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 22
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 23
_root.targets = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 24
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 25
_root.targets = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 26
play();
if (_root.shots <= _root.hits) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.perfect.play();
_root.deadeye1.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
Frame 37
_root.targets = 1;
_root.targetnumber = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 38
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 39
_root.targets = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 40
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 41
_root.targets = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 42
play();
if (_root.shots == _root.hits) {
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.deadeye2.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
Frame 52
stop();
myMC.countDown(3600);
_root.gun1._visible = 0;
_root.reloading = "yes";
_root.myvalue = math.round((_root.hits / _root.shots) * 100);
mouse.show();
_root.accuracy = _root.myvalue + "%";
_root.score = _root.score + _root.myvalue;
Frame 55
_root.reloading = "no";
if (_root.remember == 3) {
myMC.countDown(60);
_root.play();
}
if (_root.remember == 2) {
myMC.countDown(90);
_root.play();
}
if (_root.remember == 1) {
myMC.countDown(120);
_root.play();
}
_root.gun1._visible = 1;
Frame 56
_root.targets = 1;
_root.targetnumber = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 57
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 58
_root.targets = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 59
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 60
_root.targets = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 61
play();
if (_root.shots == _root.hits) {
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.deadeye3.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
Frame 70
_root.targets = 1;
_root.targetnumber = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 71
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 72
_root.targets = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 73
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 74
_root.targets = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 75
play();
if (_root.shots == _root.hits) {
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.deadeye4.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
Frame 85
stop();
myMC.countDown(3600);
_root.gun1._visible = 0;
_root.reloading = "yes";
_root.myvalue = math.round((_root.hits / _root.shots) * 100);
mouse.show();
_root.accuracy = _root.myvalue + "%";
_root.score = _root.score + _root.myvalue;
Frame 88
_root.reloading = "no";
if (_root.remember == 3) {
myMC.countDown(60);
_root.play();
}
if (_root.remember == 2) {
myMC.countDown(90);
_root.play();
}
if (_root.remember == 1) {
myMC.countDown(120);
_root.play();
}
_root.gun1._visible = 1;
Frame 89
_root.targets = 1;
_root.targetnumber = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 90
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 91
_root.targets = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 92
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 93
_root.targets = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 94
play();
if (_root.shots == _root.hits) {
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.deadeye5.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
Frame 104
_root.targets = 1;
_root.targetnumber = 6;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 105
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 106
_root.targets = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 107
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 108
_root.targets = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 109
play();
if (_root.shots == _root.hits) {
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.deadeye6.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
Frame 120
stop();
myMC.countDown(3600);
_root.gun1._visible = 0;
_root.reloading = "yes";
_root.myvalue = math.round((_root.hits / _root.shots) * 100);
mouse.show();
_root.accuracy = _root.myvalue + "%";
_root.score = _root.score + _root.myvalue;
Frame 123
_root.reloading = "no";
if (_root.remember == 3) {
myMC.countDown(60);
_root.play();
}
if (_root.remember == 2) {
myMC.countDown(90);
_root.play();
}
if (_root.remember == 1) {
myMC.countDown(120);
_root.play();
}
_root.gun1._visible = 1;
Frame 124
_root.targets = 1;
_root.targetnumber = 7;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 125
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 126
_root.targets = 3;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 127
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 128
_root.targets = 5;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 129
play();
if (_root.shots == _root.hits) {
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.deadeye7.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
_root.gamestatus = "Success";
Frame 139
_root.targets = 1;
_root.targetnumber = 8;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 140
_root.targets = 2;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 141
_root.targets = 4;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 142
_root.targets = 6;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 143
_root.targets = 8;
stop();
MoveByAngle = function (mc, angle, power) {
mc._x = mc._x + (Math.cos(angle) * power);
mc._y = mc._y + (Math.sin(angle) * power);
};
DistanceBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
AngleBetween = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.atan2(_local1, _local2));
};
BouncingBallEnterFrame = function () {
var _local1 = this;
MoveByAngle(_local1, _local1.angle, _local1.power);
var _local2 = DistanceBetween(_local1, _local1.bounding_mc);
if (_local2 >= _local1.range) {
var _local3 = AngleBetween(_local1, _local1.bounding_mc);
MoveByAngle(_local1, _local3, _local2 - _local1.range);
var da = (_local3 - _local1.angle);
_local1.angle = _local1.angle + (Math.PI + (2 * da));
}
};
GenerateBalls = function (count) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, count);
var _local3 = 1;
var _local2 = 0;
while (_local2 < count) {
var _local1 = this.attachMovie("target" + _root.targetnumber, "target" + _local3, _local3++);
_local1.angle = (Math.PI*2) * Math.random();
_local1.power = 3 + (_root._currentframe / ((Math.random() * 5) + 15));
_local1.bounding_mc = bounding_circle;
_local1.range = (_local1.bounding_mc._width / 2) - (_local1._width / 2);
_local1._x = _local1.bounding_mc._x;
_local1._y = _local1.bounding_mc._y;
MoveByAngle(_local1, (Math.PI*2) * Math.random(), _local1.range * Math.random());
_local1.onEnterFrame = BouncingBallEnterFrame;
_local2++;
}
};
GenerateBalls(_root.targets, this, bounding_circle);
Frame 144
play();
if (_root.shots == _root.hits) {
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.deadeye8.play();
_root.deadeyenumber = _root.deadeyenumber + 1;
}
_root.gamestatus = "Success";
Frame 155
stop();
_root.myvalue = math.round((_root.hits / _root.shots) * 100);
mouse.show();
_root.accuracy = _root.myvalue + "%";
_root.score = _root.score + _root.myvalue;
_root.score = _root.score * _root.deadeyenumber;
_root.gun1.removeMovieClip();
_root.sight.removeMovieClip();
_root.target0.removeMovieClip();
_root.target1.removeMovieClip();
_root.target2.removeMovieClip();
_root.target3.removeMovieClip();
_root.target4.removeMovieClip();
_root.target5.removeMovieClip();
_root.target6.removeMovieClip();
_root.target7.removeMovieClip();
_root.target8.removeMovieClip();
_root.target9.removeMovieClip();
_root.target10.removeMovieClip();
_root.target11.removeMovieClip();
_root.target12.removeMovieClip();
Symbol 54 MovieClip [sight] Frame 1
stop();
Symbol 54 MovieClip [sight] Frame 5
gotoAndStop (1);
Symbol 54 MovieClip [sight] Frame 10
this.gotoAndStop(1);
Symbol 54 MovieClip [sight] Frame 16
this.gotoAndStop(1);
Symbol 54 MovieClip [sight] Frame 22
gotoAndStop (1);
Symbol 54 MovieClip [sight] Frame 26
gotoAndStop (1);
Symbol 54 MovieClip [sight] Frame 55
gotoAndPlay (1);
Symbol 62 MovieClip [Gun1] Frame 1
_root.reloading = "no";
this.stop();
Symbol 62 MovieClip [Gun1] Frame 4
deagle = new Sound(this);
deagle.attachSound("deagle");
deagle.start(0, 1);
_root.reloading = "yes";
Symbol 62 MovieClip [Gun1] Frame 5
_root.sight.gotoAndPlay(2);
Symbol 62 MovieClip [Gun1] Frame 8
_root.reloading = "no";
Symbol 62 MovieClip [Gun1] Frame 9
gotoAndPlay (1);
Symbol 62 MovieClip [Gun1] Frame 10
this.stop();
Symbol 62 MovieClip [Gun1] Frame 11
this.gotoAndPlay("reload");
Symbol 62 MovieClip [Gun1] Frame 33
_root.reloading = "no";
gotoAndStop (1);
Symbol 62 MovieClip [Gun1] Frame 35
gotoAndStop (1);
Symbol 62 MovieClip [Gun1] Frame 36
_root.reloading = "no";
Symbol 62 MovieClip [Gun1] Frame 38
_root.reloading = "yes";
Symbol 62 MovieClip [Gun1] Frame 68
_root.reloading = "no";
Symbol 62 MovieClip [Gun1] Frame 73
this.gotoAndStop(1);
Symbol 62 MovieClip [Gun1] Frame 78
gotoAndStop (1);
Symbol 62 MovieClip [Gun1] Frame 88
gotoAndStop (1);
Symbol 62 MovieClip [Gun1] Frame 93
gotoAndStop (1);
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 8
stop();
Symbol 67 MovieClip Frame 15
stop();
Symbol 68 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 70 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 73 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 76 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 78 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 80 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 82 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 84 Button
on (press) {
if (_root.ready == 1) {
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
_root.hits = _root.hits + 1;
if ((((_root.pointsx >= -2) and (_root.pointsx <= 2)) and (_root.pointsy >= -2)) and (_root.pointsy <= 2)) {
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -4) and (_root.pointsx <= 4)) and (_root.pointsy >= -4)) and (_root.pointsy <= 4)) {
soundniceshot = new Sound(this);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -8) and (_root.pointsx <= 8)) and (_root.pointsy >= -8)) and (_root.pointsy <= 8)) {
soundnotbad = new Sound(this);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
} else {
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
}
if (math.random() <= (0.3 / _root.remember)) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 85 MovieClip Frame 3
if (Math.random() >= 0.7) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise1");
hitnoise.start(0, 1);
} else if (Math.random() >= 0.4) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise2");
hitnoise.start(0, 1);
} else {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise3");
hitnoise.start(0, 1);
}
Symbol 85 MovieClip Frame 27
if (_root.targetshit < _root.targets) {
_root.targetshit = _root.targetshit + 1;
} else {
_root.nextFrame();
_root.targetshit = 1;
}
stop();
Symbol 90 Button
on (press) {
crateselect = new Sound(this);
crateselect.attachSound("reload");
crateselect.start(0, 1);
this.gotoAndPlay("end");
_root.inclip = _root.inclip + 5;
_root.shots = _root.shots - 1;
}
Symbol 115 MovieClip Frame 3
if (Math.random() >= 0.7) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise1");
hitnoise.start(0, 1);
} else if (Math.random() >= 0.4) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise2");
hitnoise.start(0, 1);
} else {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise3");
hitnoise.start(0, 1);
}
Symbol 115 MovieClip Frame 50
if (_root.targetshit < _root.targets) {
_root.targetshit = _root.targetshit + 1;
} else {
_root.nextFrame();
_root.targetshit = 1;
}
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 3
stop();
Symbol 116 MovieClip Frame 4
stop();
Symbol 116 MovieClip Frame 5
stop();
Symbol 116 MovieClip Frame 6
stop();
Symbol 116 MovieClip Frame 7
stop();
Symbol 116 MovieClip Frame 8
stop();
Symbol 116 MovieClip Frame 9
stop();
Symbol 116 MovieClip Frame 10
stop();
Instance of Symbol 116 MovieClip in Symbol 117 MovieClip Frame 1
onClipEvent (load) {
if (_root.targetnumber == 1) {
gotoAndStop (1);
} else if (_root.targetnumber == 2) {
gotoAndStop (2);
} else if (_root.targetnumber == 3) {
gotoAndStop (3);
} else if (_root.targetnumber == 4) {
trace("target4");
gotoAndStop (4);
} else if (_root.targetnumber == 5) {
gotoAndStop (5);
} else if (_root.targetnumber == 6) {
gotoAndStop (6);
} else if (_root.targetnumber == 7) {
gotoAndStop (7);
} else if (_root.targetnumber == 8) {
gotoAndStop (8);
}
}
Symbol 129 MovieClip [notbad] Frame 1
stop();
Symbol 132 MovieClip [reloadanim] Frame 1
stop();
Symbol 135 MovieClip [niceshot] Frame 1
stop();
Symbol 138 MovieClip [perfect] Frame 1
stop();
Symbol 138 MovieClip [perfect] Frame 19
_root.pointsadded = 500;
_root.score = _root.score + _root.pointsadded;
_root.pointshower.play();
Symbol 141 MovieClip [killershot] Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 148 MovieClip Frame 2
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 148 MovieClip Frame 3
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 149 MovieClip Frame 1
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 149 MovieClip Frame 2
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 149 MovieClip Frame 3
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 158 Button
on (release) {
getURL ("http://www.kizash.com/", "_blank");
}
Symbol 165 MovieClip Frame 1
stop();
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 165 MovieClip Frame 2
stop();
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 165 MovieClip Frame 3
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
stop();
Symbol 186 MovieClip [Kizash High Score Component] Frame 1
myTextFormat = new TextFormat();
myTextFormat.font = scoreFont;
myTextFormat.color = scoreColor;
myTextFormat.size = scoreSize;
myTextFormat.bold = scoreBold;
lastLabel.setTextFormat(myTextFormat);
nextLabel.setTextFormat(myTextFormat);
nextFrame();
Instance of Symbol 145 MovieClip "hs_frame" in Symbol 186 MovieClip [Kizash High Score Component] Frame 1
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Instance of Symbol 148 MovieClip "last_btn" in Symbol 186 MovieClip [Kizash High Score Component] Frame 1
on (release) {
_parent.page = _parent.page - 10;
if (_parent.page < 0) {
_parent.page = 0;
}
if (_parent.page < 10) {
_parent.last_btn._visible = false;
_parent.lastScoreLabel._visible = false;
}
_parent.next_btn._visible = true;
_parent.nextScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 149 MovieClip "next_btn" in Symbol 186 MovieClip [Kizash High Score Component] Frame 1
on (release) {
_parent.page = _parent.page + 10;
if (_parent.page > _parent.maxScore) {
_parent.page = _parent.maxScore;
}
if (_parent.page > (_parent.maxScore - 20)) {
_parent.next_btn._visible = false;
_parent.nextScoreLabel._visible = false;
}
_parent.last_btn._visible = true;
_parent.lastScoreLabel._visible = true;
_parent.showScores();
}
Symbol 186 MovieClip [Kizash High Score Component] Frame 2
stop();
checkLabel.setTextFormat(myTextFormat);
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "," + _local2;
}
_local1++;
}
return(_local2);
};
game_so = SharedObject.getLocal(myswfname);
check_score = new LoadVars();
score = _level0[myscorevar];
check_score.score = score;
check_score.game = myuniqueid;
check_score.sendAndLoad("https://www.kizash.com/high_scores/check_score.php", check_score, "POST");
check_score.onLoad = function (success) {
if (success) {
if (String(check_score.success) eq "1") {
ishigh = check_score.ishigh;
if (((ishigh eq "1") && (score != undefined)) && (score != 0)) {
hs_text = "You got a high score!";
gotoAndPlay ("EnterName");
} else {
hs_text = "Sorry. keep on trying";
gotoAndPlay ("ShowHighScores");
}
}
}
};
Symbol 186 MovieClip [Kizash High Score Component] Frame 3
stop();
_level0[sub_button_skin]._visible = true;
scoreLabel.setTextFormat(myTextFormat);
nameLabel.setTextFormat(myTextFormat);
score_txt.setTextFormat(myTextFormat);
myTabTextFormat = new TextFormat();
myTabTextFormat.font = scoreFont;
myTabTextFormat.color = scoreColor;
submitText.setTextFormat(myTabTextFormat);
name_txt.setTextFormat(myTextFormat);
newcolor = new Color(sub_btn.sub_up);
newcolor.setRGB(sel_color);
newcolor = new Color(sub_btn.sub_over);
newcolor.setRGB(des_color);
newcolor = new Color(sub_btn.sub_dn);
newcolor.setRGB(bg_color);
newcolor = new Color(sub_btn.next_btn_bg);
newcolor.setRGB(bg_color);
name_txt.restrict = "A-Z 0-9.\\-";
name_txt.text = game_so.data.playerName;
name_txt.maxChars = 16;
Selection.setFocus(name_txt);
Selection.setSelection(name_txt.length, name_txt.length);
if (name_txt.text == "undefined") {
name_txt.text = "";
}
name_txt.textColor = scoreColor;
Instance of Symbol 165 MovieClip "sub_btn" in Symbol 186 MovieClip [Kizash High Score Component] Frame 3
on (release, keyPress "<Enter>") {
if (_parent.name_txt.length > 0) {
_parent.game_so.data.playerName = _parent.name_txt.text;
}
_parent.nextFrame();
}
Symbol 186 MovieClip [Kizash High Score Component] Frame 4
stop();
_level0[sub_button_skin]._visible = false;
unique_id = new LoadVars();
if ((score > 0) && (game_so.data.playerName.length > 0)) {
unique_id.score = score;
unique_id.name = game_so.data.playerName.toLowerCase();
}
unique_id.game = myuniqueid;
unique_id.sendAndLoad("https://www.kizash.com/high_scores/games_unique_id.php", unique_id, "POST");
unique_id.onLoad = function (success) {
if (success) {
if (String(unique_id.success) eq "1") {
myunique = unique_id.unid;
nextFrame();
}
}
};
Symbol 186 MovieClip [Kizash High Score Component] Frame 5
stop();
hs_frame._visible = showFrame;
myScoreTextFormat = new TextFormat();
myScoreTextFormat.font = scoreFont;
myScoreTextFormat.size = scoreSize;
myScoreTextFormat.bold = scoreBold;
viewLastSkin = function (bool) {
_level0[last_button_skin]._visible = bool;
};
viewNextSkin = function (bool) {
_level0[next_button_skin]._visible = bool;
};
showScores = function () {
var _local3 = 10;
while (_local3 > 0) {
if (scoreboard_lv.tabletype == 2) {
var _local2 = scoreboard_lv["hname" + (page + _local3)];
var s = scoreboard_lv["hscore" + (page + _local3)];
} else {
var _local2 = scoreboard_lv["name" + (page + _local3)];
var s = scoreboard_lv["score" + (page + _local3)];
}
var _local1 = this[("line" + _local3) + "_mc"];
_local1.rank_txt.text = (page + _local3) + ".";
_local1.name_txt.text = (_local2.length ? (_local2.toUpperCase()) : "...");
_local1.score_txt.text = (s.length ? (s.addCommas()) : "...");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((game_so.data.playerName.length && (_local2.toUpperCase() == game_so.data.playerName.toUpperCase())) ? (pl_color) : (scoreColor))));
_local1._visible = true;
loading_mc._visible = false;
_local3--;
}
_local3 = 10;
while (_local3 > 0) {
var _local1 = this[("line" + _local3) + "_mc"];
_local1.rank_txt.setTextFormat(myScoreTextFormat);
_local1.name_txt.setTextFormat(myScoreTextFormat);
_local1.score_txt.setTextFormat(myScoreTextFormat);
_local3--;
}
};
page = 0;
maxScore = 100;
scoreboard_lv = new LoadVars();
scoreboard_lv.unid = myunique;
if (myunique == undefined) {
scoreboard_lv.game = myuniqueid;
scoreboard_lv.sendAndLoad("https://www.kizash.com/high_scores/games_high_score_tbl.php", scoreboard_lv, "POST");
} else {
scoreboard_lv.sendAndLoad("https://www.kizash.com/high_scores/games_score_sql.php", scoreboard_lv, "POST");
}
scoreboard_lv.onLoad = function (success) {
if (success) {
if (String(scoreboard_lv.success) eq "1") {
next_btn._visible = true;
_level0[next_button_skin]._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
var _local1 = maxScore;
while (_local1 > 0) {
var _local2 = scoreboard_lv["name" + _local1];
if (game_so.data.playerName.length && (_local2.toUpperCase() == game_so.data.playerName.toUpperCase())) {
page = Math.floor(_local1 / 10) * 10;
if ((_local1 % 10) == 0) {
page = page - 10;
}
}
_local1--;
}
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
_level0[next_button_skin]._visible = false;
nextScoreLabel._visible = false;
}
if (page < 10) {
last_btn._visible = false;
_level0[last_button_skin]._visible = false;
lastScoreLabel._visible = false;
} else {
last_btn._visible = true;
_level0[last_button_skin]._visible = true;
lastScoreLabel._visible = true;
}
showScores();
} else {
errorMsg = scoreboard_lv.errorMsg.toUpperCase();
scoreboard_lv = new LoadVars();
nextFrame();
}
} else {
errorMsg = "COULD NOT ACCESS HIGH SCORES";
scoreboard_lv = new LoadVars();
nextFrame();
}
};
score = 0;
next_btn._visible = (last_btn._visible = false);
_level0[last_button_skin]._visible = (_level0[next_button_skin]._visible = false);
myTabTextFormat = new TextFormat();
myTabTextFormat.font = scoreFont;
myTabTextFormat.color = scoreColor;
whsText.setTextFormat(myTabTextFormat);
athsText.setTextFormat(myTabTextFormat);
lastScoreLabel.setTextFormat(myTextFormat);
lastScoreLabel._visible = false;
nextScoreLabel.setTextFormat(myTextFormat);
newcolor = new Color(next_btn.next_btn_bg);
newcolor.setRGB(bg_color);
newcolor = new Color(last_btn.prev_btn_bg);
newcolor.setRGB(bg_color);
newcolor = new Color(week_tab.w_selected);
newcolor.setRGB(sel_color);
newcolor = new Color(week_tab.w_deselected);
newcolor.setRGB(des_color);
newcolor = new Color(alltime_tab.a_selected);
newcolor.setRGB(sel_color);
newcolor = new Color(alltime_tab.a_deselected);
newcolor.setRGB(des_color);
Instance of Symbol 148 MovieClip "last_btn" in Symbol 186 MovieClip [Kizash High Score Component] Frame 5
on (release) {
_parent.page = _parent.page - 10;
if (_parent.page < 0) {
_parent.page = 0;
}
if (_parent.page < 10) {
_parent.last_btn._visible = false;
_parent._level0[last_button_skin]._visible = false;
_parent.viewLastSkin(false);
_parent.lastScoreLabel._visible = false;
}
_parent.next_btn._visible = true;
_parent.viewNextSkin(true);
_parent.nextScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 149 MovieClip "next_btn" in Symbol 186 MovieClip [Kizash High Score Component] Frame 5
on (release) {
_parent.page = _parent.page + 10;
if (_parent.page > _parent.maxScore) {
_parent.page = _parent.maxScore;
}
if (_parent.page > (_parent.maxScore - 20)) {
_parent.next_btn._visible = false;
_parent.viewNextSkin(false);
_parent.nextScoreLabel._visible = false;
}
_parent.last_btn._visible = true;
_parent.viewLastSkin(true);
_parent.lastScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 176 MovieClip "week_tab" in Symbol 186 MovieClip [Kizash High Score Component] Frame 5
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
newcolor = new Color(_parent.alltime_tab.a_deselected);
newcolor.setRGB(_parent.des_color);
newcolor = new Color(this.w_selected);
newcolor.setRGB(_parent.sel_color);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Instance of Symbol 182 MovieClip "alltime_tab" in Symbol 186 MovieClip [Kizash High Score Component] Frame 5
on (release) {
this.gotoAndStop(2);
_parent.week_tab.gotoAndStop(2);
newcolor = new Color(this.a_selected);
newcolor.setRGB(_parent.sel_color);
newcolor = new Color(_parent.week_tab.w_deselected);
newcolor.setRGB(_parent.des_color);
_parent.scoreboard_lv.tabletype = 2;
_parent.showScores();
}
Instance of Symbol 145 MovieClip "hs_frame" in Symbol 186 MovieClip [Kizash High Score Component] Frame 5
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Symbol 186 MovieClip [Kizash High Score Component] Frame 6
errorLabel.setTextFormat(myTextFormat);
_level0[last_button_skin]._visible = false;
_level0[next_button_skin]._visible = false;
stop();
Symbol 191 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
_root.gotoAndPlay(2);
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 203 MovieClip Frame 115
stop();
Symbol 204 MovieClip Frame 12
stop();
Instance of Symbol 204 MovieClip in Symbol 205 MovieClip Frame 1
on (release) {
getURL ("http://www.thorgaming.com", "_blank");
}
Symbol 213 MovieClip Frame 5
this.gotoAndPlay(1);
Symbol 215 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
ready._visible = 0;
setProperty(bar, _xscale , PercentLoaded * 1.69);
} else {
setProperty(bar, _xscale , 169);
ready._visible = 1;
}
Symbol 215 MovieClip Frame 2
gotoAndPlay (1);
Symbol 220 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
getURL ("http://www.thorgaming.com/highscores/index.php?game=8&diff=3&order=top", "_blank");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 225 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
getURL ("http://www.thorgaming.com/highscores/index.php?game=8&diff=2&order=top", "_blank");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 230 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
getURL ("http://www.thorgaming.com/highscores/index.php?game=8&diff=1&order=top", "_blank");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 236 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
getURL ("http://www.thorgaming.com");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 240 MovieClip Frame 20
stop();
Symbol 245 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
getURL ("http://www.thorgaming.com/flasharcade");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 268 Button
on (release) {
_quality = "HIGH";
}
Symbol 273 Button
on (release) {
_quality = "MEDium";
}
Symbol 277 Button
on (release) {
_quality = "LOW";
}
Symbol 283 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
_root.lives = 4;
_root.health = 4;
_root.targethit = 3;
_root.remember = 3;
_root.nextFrame();
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 287 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
_root.lives = 5;
_root.health = 5;
_root.targethit = 2;
_root.remember = 2;
_root.nextFrame();
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 291 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
_root.lives = 10;
_root.health = 10;
_root.targethit = 1;
_root.remember = 1;
_root.nextFrame();
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 294 MovieClip Frame 34
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 325 MovieClip Frame 28
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 352 MovieClip Frame 28
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 377 MovieClip Frame 28
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 405 MovieClip Frame 28
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 432 MovieClip Frame 28
stop();
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 459 MovieClip Frame 28
stop();
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 485 MovieClip Frame 28
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.start(0, 1);
Symbol 511 MovieClip Frame 28
stop();
Symbol 529 Button
on (release) {
_root.gotoAndPlay(1);
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 532 Button
on (release) {
_root.menustate = "no";
_root.gotoAndPlay("level1");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 534 MovieClip Frame 30
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 11
beep = new Sound(this);
beep.attachSound("beep");
beep.start(0, 1);
Symbol 539 MovieClip Frame 13
beep = new Sound(this);
beep.attachSound("beep");
beep.start(0, 1);
Symbol 539 MovieClip Frame 15
beep = new Sound(this);
beep.attachSound("beep");
beep.start(0, 1);
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 6
gotoAndPlay (1);
this._visible = 0;
Instance of Symbol 548 MovieClip in Symbol 549 MovieClip Frame 6
onClipEvent (enterFrame) {
this._visible = 0;
}
Instance of Symbol 549 MovieClip "pistol2" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 2) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 549 MovieClip "pistol3" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 3) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 549 MovieClip "pistol4" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 4) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 549 MovieClip "pistol7" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo == 7) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 549 MovieClip "pistol6" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 6) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 549 MovieClip "pistol5" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 5) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 549 MovieClip "pistol1" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 1) {
this._visible = 1;
} else {
this.play();
}
}
Symbol 559 Button
on (release) {
Mouse.show();
_root.gun1._visible = 0;
_root.gotoAndPlay(1);
_root.sight.removeMovieClip();
_root.target0.removeMovieClip();
_root.target1.removeMovieClip();
_root.target2.removeMovieClip();
_root.target3.removeMovieClip();
_root.target4.removeMovieClip();
_root.target5.removeMovieClip();
_root.target6.removeMovieClip();
_root.target7.removeMovieClip();
_root.target8.removeMovieClip();
_root.target9.removeMovieClip();
_root.target10.removeMovieClip();
_root.target11.removeMovieClip();
}
Symbol 574 Button
on (release) {
_root.inclip = _root.inclip + 20;
_root.play();
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 576 MovieClip Frame 30
stop();
Symbol 584 Button
on (release) {
_root.inclip = _root.inclip + 20;
_root.play();
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 586 MovieClip Frame 30
stop();
Symbol 595 MovieClip Frame 30
stop();
Symbol 596 Button
on (release) {
getURL ("http://www.thorgaming.com/highscores/index.php?game=8&diff=3&order=top", "_blank");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 597 Button
on (release) {
getURL ("http://www.thorgaming.com/highscores/index.php?game=8&diff=2&order=top", "_blank");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 598 Button
on (release) {
getURL ("http://www.thorgaming.com/highscores/index.php?game=8&diff=1&order=top", "_blank");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 602 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
getURL ("http://www.thorgaming.com/flasharcade/play-1089.html", "_blank");
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 605 Button
on (release) {
boink = new Sound(this);
boink.attachSound("boink");
boink.start(0, 1);
_root.gotoAndPlay(2);
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 619 MovieClip Frame 30
stop();