Frame 1
i = "1";
alpha = "0.9";
maxlight = "10";
while (Number(i) <= Number(maxlight)) {
duplicateMovieClip ("ray0", "ray" add i, 800 - i);
setProperty("/ray" add i, _xscale , getProperty("/ray" add (i - 1), _xscale) + (i * alpha));
setProperty("/ray" add i, _yscale , getProperty("/ray" add (i - 1), _yscale) + (i * alpha));
setProperty("/ray" add i, _alpha , 10 - (i * 0.01));
i = Number(i) + 1;
}
setProperty("ray0", _visible , "0");
stop();
stop();
Frame 5
stop();
Frame 10
gotoAndPlay (12);
Frame 11
stop();
ammo = 100;
time = 250;
score = 0;
_root.bigcan._visible = false;
_root.happyface._visible = false;
_root.glass._visible = false;
_root.bottle._visible = false;
_root.line1._visible = false;
_root.line2._visible = false;
_root.line3._visible = false;
_root.line4._visible = false;
duplicateMovieClip ("line1", line11, 1000);
duplicateMovieClip ("line2", line12, 1001);
duplicateMovieClip ("line3", line13, 1003);
duplicateMovieClip ("line4", line14, 1004);
_root.line11._visible = true;
_root.line12._visible = true;
_root.line13._visible = true;
_root.line14._visible = true;
_root.ammobox1._visible = true;
_root.timebox1._visible = true;
smallspacer = 30;
bottleSpacer = 40;
facespacer = 30;
glasslim = 20;
y = 11;
while (y < 23) {
newface = "happyface" + y;
duplicateMovieClip ("happyface", newface, y + 1);
_root[newface]._visible = true;
_root[newface]._y = 170;
_root[newface]._x = (_root[newface]._width + facespacer) * (y - 10);
y++;
}
x = 1;
while (x < 10) {
newName = "bigcan" + x;
duplicateMovieClip ("bigcan", newName, x + 1);
_root[newName]._visible = true;
_root[newName]._y = 100;
_root[newName]._x = (_root[newName]._width + bottleSpacer) * x;
x++;
}
z = 24;
while (z < 49) {
newglass = "glass" + z;
duplicateMovieClip ("glass", newglass, z + 1);
_root[newglass]._visible = true;
_root[newglass]._y = 220;
_root[newglass]._x = (_root[newglass]._width + glasslim) * (z - 22);
z++;
}
n = 50;
while (n < 64) {
newbottle = "bottle" + n;
duplicateMovieClip ("bottle", newbottle, n + 1);
_root[newbottle]._visible = true;
_root[newbottle]._y = 290;
_root[newbottle]._x = (_root[newbottle]._width + smallspacer) * (n - 45);
n++;
}
Instance of Symbol 35 MovieClip "bottle" in Frame 11
onClipEvent (load) {
function reset() {
this._y = 290;
this._x = 570;
dead = 0;
}
dead = 0;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.aimer) && (this.dead == 0)) {
if (this._name != "bottle") {
_root.score = _root.score + 40;
breaksound = new Sound(this);
breaksound.attachSound("slash");
breaksound.start(0, 1);
this.dead = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.dead == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
this._x = this._x - 15;
this.widthreset = 9 * (this._width - 15);
if (this._x < widthreset) {
reset();
}
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 30 MovieClip "happyface" in Frame 11
onClipEvent (load) {
function reset() {
this._y = 170;
this._x = 570;
dead = 0;
}
dead = 0;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.aimer) && (this.dead == 0)) {
if (this._name != "happyface") {
_root.score = _root.score + 15;
breaksound = new Sound(this);
breaksound.attachSound("slash");
breaksound.start(0, 1);
this.dead = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.dead == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
this._x = this._x - 15;
this.widthreset = 9 * (this._width - 30);
if (this._x < widthreset) {
reset();
}
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 39 MovieClip "ammobox" in Frame 11
onClipEvent (load) {
function reset() {
blah = 0;
this._x = random(500) + 20;
this._y = -30;
speed = random(15) + 12;
}
blah = 0;
reset();
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.aimer) && (this.blah == 0)) {
_root.ammo = _root.ammo + 10;
this.blah = 1;
beep = new Sound(this);
beep.attachSound("buttonbeep");
beep.start(0, 1);
}
}
onClipEvent (enterFrame) {
if (this.blah == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
this._y = this._y + speed;
if (this._y > 450) {
reset();
}
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 43 MovieClip "timebox" in Frame 11
onClipEvent (load) {
function reset() {
blah = 0;
this._x = random(500) + 20;
this._y = -30;
speed = random(15) + 12;
}
blah = 0;
reset();
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.aimer) && (this.blah == 0)) {
_root.time = _root.time + 35;
this.blah = 1;
beep = new Sound(this);
beep.attachSound("buttonbeep");
beep.start(0, 1);
}
}
onClipEvent (enterFrame) {
if (this.blah == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
this._y = this._y + speed;
if (this._y > 450) {
reset();
}
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip "bigcan" in Frame 11
onClipEvent (load) {
function reset() {
this._y = 100;
this._x = -20;
this.dead = 0;
}
dead = 0;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.aimer) && (this.dead == 0)) {
if (this._name != "bigcan") {
_root.score = _root.score + 10;
breaksound = new Sound(this);
breaksound.attachSound("slash");
breaksound.start(0, 1);
this.dead = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.dead == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
this._x = this._x + 10;
this.widthreset = 9 * (this._width + 40);
if (this._x > widthreset) {
reset();
}
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 52 MovieClip "line1" in Frame 11
onClipEvent (load) {
this._y = 130;
}
onClipEvent (enterFrame) {
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 54 MovieClip "line2" in Frame 11
onClipEvent (load) {
this._y = 190;
}
onClipEvent (enterFrame) {
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 56 MovieClip "line3" in Frame 11
onClipEvent (load) {
this._y = 240;
}
onClipEvent (enterFrame) {
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 58 MovieClip "line4" in Frame 11
onClipEvent (load) {
this._y = 303;
}
onClipEvent (enterFrame) {
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 50 MovieClip "glass" in Frame 11
onClipEvent (load) {
function reset() {
this._y = 220;
this._x = -10;
this.dead = 0;
}
dead = 0;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.aimer) && (this.dead == 0)) {
if (this._name != "glass") {
_root.score = _root.score + 20;
breaksound = new Sound(this);
breaksound.attachSound("slash");
breaksound.start(0, 1);
this.dead = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.dead == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
this._x = this._x + 17;
this.widthreset = 14 * (this._width + 20);
if (this._x > widthreset) {
reset();
}
if ((_root.time < 0) || (_root.ammo < 0)) {
this.removeMovieClip();
}
}
Instance of Symbol 67 MovieClip "aimer" in Frame 11
onClipEvent (load) {
startDrag (this, true);
Mouse.hide();
this.swapDepths(100000);
msdown = 0;
}
onClipEvent (mouseDown) {
_root.ammo--;
shotsound = new Sound(this);
shotsound.attachSound("slap");
shotsound.start(0, 1);
}
onClipEvent (enterFrame) {
_root.time--;
if ((_root.time < 0) || (_root.ammo < 0)) {
_root.gotoAndPlay(10);
this.removeMovieClip();
}
}
Frame 12
startDrag (_root.aimer);
Mouse.show();
stop();
ok.onRelease = function () {
gotoAndStop (1);
};
Frame 13
loadVariablesNum ("http://www.flashninjaclan.com/games/shootinggallery/scores.php", 0);
stop();
Symbol 9 Button
on (release) {
gotoAndPlay (11);
}
Symbol 12 Button
on (release) {
gotoAndPlay (5);
}
Symbol 15 Button
on (release) {
getURL ("http://www.java-gaming.com", "_blank");
}
Symbol 18 Button
on (release) {
gotoAndPlay (13);
}
Symbol 22 Button
on (release) {
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 47 Button
on (release) {
gotoAndPlay (1);
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 72 Button
on (release) {
_root.thename = _root.scorename;
_root.score = _root.score;
loadVariablesNum ("http://www.flashninjaclan.com/games/shootinggallery/newscore.php", 0, "POST");
gotoAndPlay (1);
}
Symbol 102 Button
on (release) {
gotoAndPlay (1);
}