Frame 1
Stage.scaleMode = "noScale";
Stage.showMenu = false;
fscommand ("trapallkeys", "true");
music = true;
Instance of Symbol 22 MovieClip in Frame 1
//component parameters
onClipEvent (initialize) {
mcScripter.message = [];
mcScripter.message[0] = "Loading...please wait.";
mcScripter.ypos = 200;
mcScripter.duration = 5;
}
Instance of Symbol 32 MovieClip in Frame 1
//component parameters
onClipEvent (initialize) {
xin_motion_val = "None";
xin_alphatype_val = "Yes";
xout_motion_val = "None";
xout_alphatype_val = "Yes";
perc_req_val = 100;
show_perc_val = "No";
slow_factor_val = 0.35;
init_action_val = "_root.stop();";
play_action_val = "_root.play();";
}
Frame 2
function Tutorial() {
gotoAndStop (3);
}
function Highscores() {
gotoAndStop (2);
}
function Survival() {
gotoAndStop (5);
}
function Gameover() {
gotoAndStop (2);
}
function Normal() {
gotoAndStop (4);
}
function titl() {
gotoAndStop (2);
}
function helpon(txt) {
_root.info.inf = txt;
_root.info.gotoAndPlay(2);
}
function helpoff() {
var _local1 = _root;
if (_local1.info._currentframe > 20) {
_local1.info.gotoAndPlay("off");
} else {
_local1.info.gotoAndStop(1);
}
}
function scoring(point) {
_root.score = _root.score + point;
scoreClip.plotScore();
}
function pourcent() {
pourcentage = Math.round((nbrtirok / nbrtir) * 100);
}
function menu() {
if (_root.motor == true) {
if ((Target._y > 360) or (Target._y < 20)) {
Target._visible = false;
Mouse.show();
} else {
Target._visible = true;
Mouse.hide();
}
}
}
stop();
Mouse.show();
_root.score = 0;
_root.score = 0;
game_so = SharedObject.getLocal("Training_Targets");
if (game_so.data.highscore_n > 0) {
_root.highscore_n = game_so.data.highscore_n;
} else {
_root.highscore_n = 0;
}
if (game_so.data.highscore_s > 0) {
_root.highscore_s = game_so.data.highscore_s;
} else {
_root.highscore_s = 0;
}
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);
};
Instance of Symbol 69 MovieClip in Frame 2
onClipEvent (load) {
soundstatus = "on";
mySound = new Sound(this);
maxvolume = 100;
if (_root.music == false) {
mySound.stop();
gotoAndStop ("off");
} else {
gotoAndStop ("on");
}
}
onClipEvent (enterFrame) {
if (soundstatus == "on") {
step = 5;
}
if (soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
mySound.stop();
maxvolume = 0;
}
mySound.setVolume(maxvolume);
maxvolume = maxvolume + step;
mySound.setVolume(maxvolume);
}
Instance of Symbol 128 MovieClip "info" in Frame 2
onClipEvent (enterFrame) {
_y = (_root._ymouse + 50);
_x = (_root._xmouse + 50);
}
Frame 3
function scrolling() {
rx2 = -(_xmouse - 300);
rx = ((rx * 9) + rx2) / 12;
setProperty("game", _x , rx);
setProperty("game.plan2", _x , (rx * game.plan2.scale) + game.plan2.zone);
setProperty("weapon", _x , (Target._x + 200) / 1.2);
if (Target._y > 250) {
setProperty("weapon", _y , (Target._y + 100) / 1.2);
}
menu();
}
c = true;
tryhighscore._visible = false;
stop();
rx = 0;
Instance of Symbol 131 MovieClip in Frame 3
onClipEvent (enterFrame) {
_parent.scrolling();
}
Instance of Symbol 151 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
stopAllSounds();
_root.titl();
Mouse.show();
}
if (Key.isDown(82)) {
if (_root.reloading == false) {
_root.reloading = true;
_root.weapon.gotoAndPlay(11);
}
}
}
Instance of Symbol 230 MovieClip "Target" in Frame 3
onClipEvent (load) {
mov = 2;
}
onClipEvent (enterFrame) {
_y = _root._ymouse;
_x = _root._xmouse;
}
onClipEvent (enterFrame) {
if (_root.breath == true) {
_y = (_y + (mov * Math.cos((ang = ang + 0.1))));
}
}
Instance of Symbol 239 MovieClip in Frame 3
onClipEvent (load) {
function down() {
if (bar._x > 0) {
bar._x--;
} else {
respire = true;
}
}
function up() {
if (respire == false) {
if (bar._x < 60) {
bar._x++;
}
}
}
function br() {
if (bar._x < 60) {
bar._x++;
} else {
respire = false;
}
}
respire = false;
setInterval(down, 250);
setInterval(up, 250);
setInterval(br, 250);
}
onClipEvent (enterFrame) {
if (respire == false) {
if (Key.isDown(32)) {
_root.breath = false;
down();
} else {
_root.breath = true;
up();
}
}
if (respire == true) {
_root.breath = true;
br();
}
}
Instance of Symbol 310 MovieClip "scoreClip" in Frame 3
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.score;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plotScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 317 MovieClip "ammo" in Frame 3
onClipEvent (load) {
function am() {
_root.muni--;
gotoAndStop(_root.muni + 3 +2);
}
}
Frame 4
function scrolling() {
rx2 = -(_xmouse - 300);
rx = ((rx * 9) + rx2) / 12;
setProperty("game", _x , rx);
setProperty("game.plan2", _x , (rx * game.plan2.scale) + game.plan2.zone);
setProperty("weapon", _x , (Target._x + 200) / 1.2);
if (Target._y > 250) {
setProperty("weapon", _y , (Target._y + 100) / 1.2);
}
menu();
}
c = true;
tryhighscore._visible = false;
stop();
rx = 0;
Instance of Symbol 131 MovieClip in Frame 4
onClipEvent (enterFrame) {
_parent.scrolling();
}
Instance of Symbol 151 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
stopAllSounds();
_root.titl();
Mouse.show();
}
if (Key.isDown(82)) {
if (_root.reloading == false) {
_root.reloading = true;
_root.weapon.gotoAndPlay(11);
}
}
}
Instance of Symbol 230 MovieClip "Target" in Frame 4
onClipEvent (load) {
mov = 2;
}
onClipEvent (enterFrame) {
_y = _root._ymouse;
_x = _root._xmouse;
}
onClipEvent (enterFrame) {
if (_root.breath == true) {
_y = (_y + (mov * Math.cos((ang = ang + 0.1))));
}
}
Instance of Symbol 239 MovieClip in Frame 4
onClipEvent (load) {
function down() {
if (bar._x > 0) {
bar._x--;
} else {
respire = true;
}
}
function up() {
if (respire == false) {
if (bar._x < 60) {
bar._x++;
}
}
}
function br() {
if (bar._x < 60) {
bar._x++;
} else {
respire = false;
}
}
respire = false;
setInterval(down, 250);
setInterval(up, 250);
setInterval(br, 250);
}
onClipEvent (enterFrame) {
if (respire == false) {
if (Key.isDown(32)) {
_root.breath = false;
down();
} else {
_root.breath = true;
up();
}
}
if (respire == true) {
_root.breath = true;
br();
}
}
Instance of Symbol 310 MovieClip "scoreClip" in Frame 4
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.score;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plotScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 310 MovieClip "highscoreClip_n" in Frame 4
onClipEvent (load) {
function plothighScore() {
var _local2 = this;
s = _root.highscore_n;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plothighScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 317 MovieClip "ammo" in Frame 4
onClipEvent (load) {
function am() {
_root.muni--;
gotoAndStop(_root.muni + 2 +3);
}
}
Frame 5
function scrolling() {
rx2 = -(_xmouse - 300);
rx = ((rx * 9) + rx2) / 12;
setProperty("game", _x , rx);
setProperty("game.plan2", _x , (rx * game.plan2.scale) + game.plan2.zone);
setProperty("weapon", _x , (Target._x + 200) / 1.2);
if (Target._y > 250) {
setProperty("weapon", _y , (Target._y + 100) / 1.2);
}
menu();
}
c = true;
tryhighscore._visible = false;
stop();
rx = 0;
Instance of Symbol 131 MovieClip in Frame 5
onClipEvent (enterFrame) {
_parent.scrolling();
}
Instance of Symbol 151 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
stopAllSounds();
_root.titl();
Mouse.show();
}
if (Key.isDown(82)) {
if (_root.reloading == false) {
_root.reloading = true;
_root.weapon.gotoAndPlay(11);
}
}
}
Instance of Symbol 230 MovieClip "Target" in Frame 5
onClipEvent (load) {
mov = 2;
}
onClipEvent (enterFrame) {
_y = _root._ymouse;
_x = _root._xmouse;
}
onClipEvent (enterFrame) {
if (_root.breath == true) {
_y = (_y + (mov * Math.cos((ang = ang + 0.1))));
}
}
Instance of Symbol 239 MovieClip in Frame 5
onClipEvent (load) {
function down() {
if (bar._x > 0) {
bar._x--;
} else {
respire = true;
}
}
function up() {
if (respire == false) {
if (bar._x < 60) {
bar._x++;
}
}
}
function br() {
if (bar._x < 60) {
bar._x++;
} else {
respire = false;
}
}
respire = false;
setInterval(down, 250);
setInterval(up, 250);
setInterval(br, 250);
}
onClipEvent (enterFrame) {
if (respire == false) {
if (Key.isDown(32)) {
_root.breath = false;
down();
} else {
_root.breath = true;
up();
}
}
if (respire == true) {
_root.breath = true;
br();
}
}
Instance of Symbol 449 MovieClip "clock" in Frame 5
onClipEvent (load) {
function clock(u) {
a = a + u;
scoreClip.plotScore();
}
}
Instance of Symbol 310 MovieClip "scoreClip" in Frame 5
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.score;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plotScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 310 MovieClip "highscoreClip_s" in Frame 5
onClipEvent (load) {
function plothighScore() {
var _local2 = this;
s = _root.highscore_s;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plothighScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 317 MovieClip "ammo" in Frame 5
onClipEvent (load) {
function am() {
_root.muni--;
gotoAndStop(_root.muni + 1 +4);
}
}
Instance of Symbol 5 MovieClip "mcLetter" in Symbol 6 MovieClip [myLetter] Frame 1
onClipEvent (load) {
destx = random(400) + 50;
desty = random(300) + 50;
rot = random(10);
if (rot < 5) {
rot = random(10) + 5;
} else {
rot = -(random(10) + 5);
}
loop = 0;
}
onClipEvent (enterFrame) {
if (!finished) {
w = random(100);
if (w < 20) {
destx = random(400) + 50;
desty = random(300) + 50;
loop++;
}
if (loop < duration) {
speedx = ((destx - _parent._x) / 10) + (speedx * 0.5);
speedy = ((desty - _parent._y) / 10) + (speedy * 0.5);
_parent._rotation = _parent._rotation + rot;
_parent._xscale = _parent._xscale - Math.abs(rot);
if (_parent._xscale < -150) {
_parent._xscale = 150;
}
_parent._yscale = _parent._yscale - Math.abs(rot);
if (_parent._yscale < -150) {
_parent._yscale = 150;
}
} else {
if ((speedx < 0.05) && (speedx > -0.05)) {
finished = true;
_parent._x = finalx;
_parent._y = finaly;
}
speedx = ((finalx - _parent._x) / 5) + (speedx * 0.3);
speedy = ((finaly - _parent._y) / 5) + (speedy * 0.3);
_parent._rotation = 0;
_parent._xscale = 100;
_parent._yscale = 100;
}
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
}
}
Symbol 14 MovieClip Frame 20
stop();
Symbol 17 MovieClip Frame 60
stop();
Instance of Symbol 16 MovieClip in Symbol 17 MovieClip Frame 60
onClipEvent (enterFrame) {
gotoAndPlay(random(100));
}
Instance of Symbol 20 MovieClip in Symbol 22 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 21 MovieClip "mcScripter" in Symbol 22 MovieClip Frame 1
onClipEvent (load) {
function MakeMessage(num) {
finalx = 275 - (((message[num].length - 1) * 10) / 2);
finaly = ypos;
myLetter = new Array();
x = 0;
while (x < message[num].length) {
attachMovie("myLetter", "myLetter" + x, x);
myLetter[x] = eval ("myLetter" + x);
myLetter[x].mcLetter.txtLetter = message[num].substr(x, 1);
myLetter[x].mcLetter.finalx = finalx + (x * 10);
myLetter[x].mcLetter.finaly = finaly;
myLetter[x].mcLetter.duration = duration;
myLetter[x]._x = finalx + (x * 10);
myLetter[x]._y = finaly;
x++;
}
}
MakeMessage(0);
no = 0;
}
onClipEvent (enterFrame) {
finished = true;
x = 0;
while (x < message[no].length) {
if (!myLetter[x].mcLetter.finished) {
finished = false;
}
x++;
}
if (finished) {
w = random(100);
if (w < 25) {
loop++;
}
if (loop > duration) {
x = 0;
while (x < message[no].length) {
myLetter[x].removeMovieClip();
x++;
}
no++;
if (no == message.length) {
no = 0;
}
MakeMessage(no);
loop = 0;
}
}
}
Symbol 32 MovieClip Frame 1
stop();
Instance of Symbol 30 MovieClip "perc" in Symbol 32 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 31 MovieClip "swfloader" in Symbol 32 MovieClip Frame 1
onClipEvent (load) {
function strip_spaces(str) {
var _local2 = str;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2.charAt(_local1) != " ") && (_local2.charAt(_local1) != ";")) {
_local3 = _local3 + _local2.charAt(_local1);
}
_local1++;
}
return(_local3);
}
function simple_script(action, timeline) {
action = strip_spaces(action);
if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) {
var _local3 = action.split(".");
var timeline_action = _local3.pop();
var first_paren = timeline_action.indexOf("(");
var second_paren = timeline_action.indexOf(")");
var timeline_function = timeline_action.substr(0, first_paren);
var function_parameter = timeline_action.substr(first_paren + 1, second_paren - (first_paren + 1));
var _local2 = timeline;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2[_local3[_local1]];
_local1++;
}
if (function_parameter.indexOf("\"") != -1) {
function_parameter = function_parameter.substr(1, function_parameter.length - 2);
}
_local2[timeline_function](function_parameter);
}
}
function execute_action() {
var _local1 = _parent;
unloaded = true;
_local1._visible = false;
simple_script(_local1.play_action_val, _local1);
}
_parent.anim.gotoAndStop(1);
simple_script(_parent.init_action_val, _parent);
var done = false;
var unloaded = false;
var orig_x = _parent._x;
var orig_y = _parent._y;
var dist_x = (_parent._x + ((_parent._width * 2) / 3));
var dist_y = (_parent._y + ((_parent._height * 2) / 3));
var orig_a = _parent._alpha;
var accel_jump = 0.75;
var slow_factor = _parent.slow_factor_val;
var speed_factor = (1 + (slow_factor / (1 - slow_factor)));
var ready = false;
var perc_fadeout = 0;
if (slow_factor < 1) {
switch (_parent.xin_motion_val) {
case "Up" :
_parent._y = orig_y + (dist_y * 2);
break;
case "Down" :
_parent._y = orig_y - (dist_y * 2);
break;
case "Left" :
_parent._x = orig_x + (dist_x * 2);
break;
case "Right" :
_parent._x = orig_x - (dist_x * 2);
break;
case "Toward" :
_parent._xscale = (_parent._yscale = 1);
break;
case "None" :
_parent._alpha = 0;
}
} else {
ready = true;
}
}
onClipEvent (enterFrame) {
if (unloaded) {
return(undefined);
}
if (!ready) {
switch (_parent.xin_motion_val) {
case "Toward" :
_parent._xscale = _parent._xscale + ((100 - _parent._xscale) * slow_factor);
_parent._yscale = _parent._xscale;
if (_parent.xin_alphatype_val == "Yes") {
_parent._alpha = Math.round((orig_a / 100) * Math.max(0, Math.min(_parent._xscale, 100)));
}
if (Math.abs(100 - _parent._xscale) < 0.5) {
_parent._xscale = (_parent._yscale = 100);
_parent._alpha = orig_a;
ready = true;
}
break;
default :
_parent._x = _parent._x + ((orig_x - _parent._x) * slow_factor);
_parent._y = _parent._y + ((orig_y - _parent._y) * slow_factor);
if (_parent.xin_alphatype_val == "Yes") {
if (_parent.xin_motion_val == "None") {
_parent._alpha = _parent._alpha + ((orig_a - _parent._alpha) * slow_factor);
} else if (Math.abs(orig_x - _parent._x) > Math.abs(orig_y - _parent._y)) {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x)) * 100);
} else {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y)) * 100);
}
}
if (!(((_parent.xin_motion_val == "None") && (Math.abs(_parent._alpha - orig_a) <= 1)) || (((_parent.xin_motion_val != "None") && (Math.abs(_parent._y - orig_y) < 0.5)) && (Math.abs(_parent._x - orig_x) < 0.5)))) {
break;
}
_parent._x = orig_x;
_parent._y = orig_y;
_parent._alpha = orig_a;
ready = true;
}
} else if (!done) {
var rl = _root.getBytesLoaded();
var rt = (_root.getBytesTotal() * (_parent.perc_req_val / 100));
if ((rl > 10) && (rt > 10)) {
rl = Math.min(rl, rt);
var new_frame = (_parent.anim._currentframe + Math.ceil(((_parent.anim._totalframes * (rl / rt)) - _parent.anim._currentframe) / 4));
new_frame = Math.max(1, new_frame);
if (_parent.show_perc_val == "Yes") {
_parent.perc.text = Math.round(((new_frame - 1) / (_parent.anim._totalframes - 1)) * 100) + " %";
}
if (new_frame != _parent.anim._currentframe) {
_parent.anim.gotoAndStop(new_frame);
}
if ((_parent.anim._totalframes == _parent.anim._currentframe) && (rl >= rt)) {
done = true;
}
}
} else if (slow_factor < 1) {
switch (_parent.xout_motion_val) {
case "Down" :
if (_parent._y <= orig_y) {
_parent._y = orig_y + accel_jump;
}
_parent._y = orig_y + (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y > (orig_y + (dist_y * 2))) {
execute_action();
}
break;
case "Up" :
if (_parent._y >= orig_y) {
_parent._y = orig_y - accel_jump;
}
_parent._y = orig_y - (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y < (orig_y - (dist_y * 2))) {
execute_action();
}
break;
case "Right" :
if (_parent._x <= orig_x) {
_parent._x = orig_x + accel_jump;
}
_parent._x = orig_x + (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x > (orig_x + (dist_x * 2))) {
execute_action();
}
break;
case "Left" :
if (_parent._x >= orig_x) {
_parent._x = orig_x - accel_jump;
}
_parent._x = orig_x - (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x < (orig_x - (dist_x * 2))) {
execute_action();
}
break;
case "Away" :
if ((_parent._xscale >= 100) || (_parent._yscale >= 100)) {
_parent._xscale = (_parent._yscale = 100 - accel_jump);
}
_parent._xscale = (_parent._yscale = Math.max(0.5, 100 - ((100 - _parent._yscale) * speed_factor)));
perc_fadeout = 100 - Math.round(Math.max(0, Math.min(_parent._xscale, 100)));
if (_parent._xscale < 1) {
execute_action();
}
break;
default :
perc_fadeout = perc_fadeout + ((100 - perc_fadeout) * slow_factor);
if (Math.abs(perc_fadeout - 100) > 1) {
break;
}
execute_action();
}
if (!(_parent.xout_alphatype_val === "Yes")) {
} else {
_parent._alpha = (orig_a / 100) * (100 - perc_fadeout);
}
} else {
execute_action();
}
}
Symbol 61 MovieClip Frame 1
l1.gotoAndPlay(10);
l2.gotoAndPlay(15);
l3.gotoAndPlay(20);
l4.gotoAndPlay(21);
l5.gotoAndPlay(25);
stop();
Symbol 62 MovieClip Frame 12
stop();
Symbol 63 Button
on (release) {
gotoAndStop (3);
}
on (release) {
soundstatus = "off";
_root.music = false;
}
Symbol 65 MovieClip Frame 11
stop();
Symbol 68 Button
on (release) {
gotoAndStop (2);
}
on (release) {
soundstatus = "on";
_root.music = true;
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 72 MovieClip Frame 30
stop();
Symbol 86 Button
on (release) {
stopAllSounds();
_root.Normal();
}
on (rollOver) {
_root.helpon("Normal mode,shot 12 targets. If u prefer a quiet game. Choose this mode.");
}
on (rollOut) {
_root.helpoff();
}
Symbol 88 Button
on (release) {
stopAllSounds();
_root.Survival();
}
on (rollOver) {
_root.helpon("Survival mode,try it if u like more intensives game");
}
on (rollOut) {
_root.helpoff();
}
Symbol 90 Button
on (release) {
stopAllSounds();
_root.Tutorial();
}
on (rollOver) {
_root.helpon("Here is the best way to discover the game");
}
on (rollOut) {
_root.helpoff();
}
Symbol 92 Button
on (release) {
getURL ("http://jeuxflashs.be/flash_games/trainingtargets/");
}
on (rollOver) {
_root.helpon("Only available on the official website");
}
on (rollOut) {
_root.helpoff();
}
Symbol 94 Button
on (release) {
getURL ("http://jeuxflashs.be/flash_games/trainingtargets/");
}
on (rollOver) {
_root.helpon("Wanna visit a nice web site,with my last works ?");
}
on (rollOut) {
_root.helpoff();
}
Symbol 120 MovieClip Frame 20
stop();
Symbol 127 MovieClip Frame 1
txt2 = txt;
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 21
info.txt = inf;
Instance of Symbol 127 MovieClip "info" in Symbol 128 MovieClip Frame 21
onClipEvent (load) {
info = _parent.info;
}
Symbol 128 MovieClip Frame 34
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 9
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 3
_root.floor_sound.gotoAndPlay(1);
Instance of Symbol 161 MovieClip "shard" in Symbol 162 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 40);
_yscale = _xscale;
bv = 30;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 162 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 10;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 162 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 35);
_yscale = _xscale;
bv = 20;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 162 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 25);
_yscale = _xscale;
bv = -10;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 162 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 20);
_yscale = _xscale;
bv = -15;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 3
_root.floor_sound.gotoAndPlay(1);
Instance of Symbol 161 MovieClip "shard" in Symbol 163 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20);
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (350 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 163 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20);
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (320 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 163 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20);
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (310 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 163 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20);
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (300 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 163 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20);
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (310 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 3
_root.floor_sound.gotoAndPlay(1);
Instance of Symbol 161 MovieClip "shard" in Symbol 164 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 25;
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (320 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 164 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 25;
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (310 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 164 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 25;
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (315 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 164 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 25;
yspeed = -(random(10) - 5);
_xscale = (random(50) + 25);
_yscale = _xscale;
bv = (305 + _parent._x) + (_parent._y / _parent._xscale);
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 161 MovieClip "shard" in Symbol 165 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 25);
_yscale = _xscale;
bv = -200 + _root.game.plan2._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 165 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 25);
_yscale = _xscale;
bv = -205 + _root.game.plan2._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 165 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 25);
_yscale = _xscale;
bv = -215 + _root.game.plan2._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 165 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 25);
_yscale = _xscale;
bv = -190 + _root.game.plan2._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 165 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 25);
_yscale = _xscale;
bv = -210 + _root.game.plan2._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Symbol 168 MovieClip Frame 1
stop();
Instance of Symbol 167 MovieClip "crac" in Symbol 168 MovieClip Frame 1
onClipEvent (load) {
var impact = a;
}
Symbol 168 MovieClip Frame 2
_root.floor_sound.gotoAndPlay(1);
Instance of Symbol 161 MovieClip "shard" in Symbol 168 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 40);
_yscale = _xscale;
bv = 130;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 168 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 110;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 168 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 35);
_yscale = _xscale;
bv = 120;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 168 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 25);
_yscale = _xscale;
bv = 100;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Instance of Symbol 161 MovieClip "shard" in Symbol 168 MovieClip Frame 3
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
_xscale = (random(10) + 20);
_yscale = _xscale;
bv = 115;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
var i = 0;
while (i < (random(8) + 1)) {
duplicateMovieClip ("shard", "shard" + i, i);
target = eval ("shard" + i);
target._x = target._x + (random(20) - 10);
i++;
}
_root.floor_sound.gotoAndPlay(1);
Instance of Symbol 161 MovieClip "shard" in Symbol 169 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = -(random(10) + 5);
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 500;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if (_y >= bv) {
this._visible = false;
}
}
Symbol 173 MovieClip Frame 1
stop();
_visible = false;
Symbol 173 MovieClip Frame 2
_visible = true;
Symbol 173 MovieClip Frame 3
_visible = false;
Symbol 173 MovieClip Frame 4
_visible = true;
Symbol 173 MovieClip Frame 5
_visible = false;
Symbol 173 MovieClip Frame 6
_visible = true;
Symbol 173 MovieClip Frame 7
_visible = false;
Symbol 173 MovieClip Frame 8
_visible = true;
Symbol 173 MovieClip Frame 9
_visible = false;
Symbol 173 MovieClip Frame 10
_visible = true;
Symbol 173 MovieClip Frame 11
_visible = false;
Symbol 173 MovieClip Frame 12
_visible = true;
Symbol 173 MovieClip Frame 13
_visible = false;
Symbol 173 MovieClip Frame 14
_visible = true;
Symbol 175 Button
on (press) {
if (_root.muni > 0) {
if (_root.fire == true) {
murfond();
shot();
}
} else {
_root.sound_clic.gotoAndPlay(2);
}
}
Symbol 177 Button
on (press) {
if (_root.muni > 0) {
if (_root.fire == true) {
sol();
shot();
}
} else {
_root.sound_clic.gotoAndPlay(2);
}
}
Symbol 178 Button
on (press) {
if (_root.muni > 0) {
if (_root.fire == true) {
plafond();
shot();
}
} else {
_root.sound_clic.gotoAndPlay(2);
}
}
Symbol 180 Button
on (press) {
if (_root.muni > 0) {
if (_root.fire == true) {
murgauche();
shot();
}
} else {
_root.sound_clic.gotoAndPlay(2);
}
}
Symbol 182 Button
on (press) {
if (_root.muni > 0) {
if (_root.fire == true) {
murdroit();
shot();
}
} else {
_root.sound_clic.gotoAndPlay(2);
}
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 18
stop();
Symbol 202 MovieClip Frame 1
stop();
_root.ms = getTimer();
function distance() {
var _local2 = ((_ro._xmouse - _par2._x) - _par._x) - _x;
-zero._x;
var _local1 = ((_ro._ymouse - _par2._y) - _par._y) - _y;
-zero._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function resolve() {
var _local2 = getTimer();
distance();
if (bulleye == 1) {
double = 2;
} else {
double = 1;
}
precision();
var _local3 = distance() / (_xscale / 10);
_ro.reac = (_local2 - _ro.ms) / 1000;
if (_ro.bestreac > _ro.reac) {
_ro.bestreac = _ro.reac;
}
resultat = ((100 - _local3) / _ro.reac) * double;
var _local1 = Math.round(resultat);
_ro.distance = (1 - _par.scale) * 10;
_ro.scoring(_local1);
if (_ro.bestscore < _local1) {
_ro.bestscore = _local1;
}
_ro.game.res.res.res = _local1;
_ro.game.res._y = _ro.game.plan2._y;
_ro.game.res._x = _ro.game.plan2._x;
if (bulleye == 1) {
_ro.eye.gotoAndPlay(1);
}
_ro.game.res.gotoAndPlay(1);
_ro.resultat = _local1;
_root.game.play();
}
function reset() {
if (_ro.nbrcible == 0) {
_ro.game.play();
}
_par.zone = random(250) + 200;
_xscale = (random(80) + 20);
_yscale = _xscale;
_par.scale = (_xscale / 100) - 0.1;
_par.zoney = 250 + _xscale;
}
function precision() {
precis = 100 - (distance() / (_yscale / 100));
_ro.precision = arrondi(precis, 3);
if (_ro.bestprecision < _ro.precision) {
_ro.bestprecision = _ro.precision;
}
if (_ro.precision > 98) {
bulleye = 1;
} else {
bulleye = 0;
}
_ro.bull = _ro.bull + bulleye;
}
function arrondi(n, d) {
return(Math.round(n * Math.pow(10, d)) / Math.pow(10, d));
}
function effet(qui, RA, VA, BA) {
myColor = new Color(qui);
myColor.setTransform({ra:RA, ga:VA, ba:BA, rb:"0", gb:"0", bb:"0", aa:"100", ab:0});
}
var _ro = _root;
var _par = _parent;
var _par2 = _parent._parent;
effet(_par, _xscale, _xscale, _xscale);
Instance of Symbol 197 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
var _par = _parent;
var _par2 = _parent._parent;
var _ro = _root;
var _l1 = _root.game;
}
on (press) {
if (_ro.muni > 0) {
if (_ro.fire == true) {
_ro.weapon.gotoAndPlay(2);
_ro.weapon.douille.gotoAndPlay(2);
_ro.fire_sound.gotoAndPlay(2);
_ro.hit_sound.gotoAndPlay(2);
_par.resolve();
_l1.star._x = _ro._xmouse - _ro.game._x;
_l1.star._y = _ro._ymouse - _ro.game._y;
_l1.star.gotoAndPlay(2);
_ro.Target.T.gotoAndPlay(2);
_ro.nbrtirok++;
_ro.pourcent();
var y = ((((_ro._ymouse - _ro.game._y) - _par2._y) / (_par._yscale / 100)) / (_ro.game.plan2._yscale / 100));
var x = ((((_ro._xmouse - _ro.game._x) - _par2._x) / (_par._xscale / 100)) / (_ro.game.plan2._xscale / 100));
_par.perso.trou._y = y;
_par.perso.trou._x = x;
_par.perso.hit._y = y;
_par.perso.hit._x = x;
_ro.bulleye.trou._y = y;
_ro.bulleye.trou._x = x;
_par.play();
}
} else {
_ro.sound_clic.gotoAndPlay(2);
}
}
Symbol 202 MovieClip Frame 45
var mov = (random(50) + 51);
gotoAndPlay(mov);
Symbol 202 MovieClip Frame 120
_root.nbrcible--;
reset();
Symbol 202 MovieClip Frame 121
_visible = false;
effet(_parent, _xscale, _xscale, _xscale);
Symbol 202 MovieClip Frame 122
_visible = true;
Symbol 202 MovieClip Frame 123
_visible = false;
Symbol 202 MovieClip Frame 124
_visible = true;
Symbol 202 MovieClip Frame 125
_visible = false;
Symbol 202 MovieClip Frame 126
_visible = true;
Symbol 202 MovieClip Frame 127
_visible = false;
Symbol 202 MovieClip Frame 129
_visible = true;
Instance of Symbol 202 MovieClip "plan2" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (45);
}
Symbol 204 MovieClip Frame 1
function resetvar() {
var _local2 = _root;
var _local1 = _local2;
_local1.fire = false;
_local1.breath = true;
_local1.reloading = false;
_local1.bestreac = 60;
_local1.bull = 0;
_local1.nbrtir = 0;
_local1.nbrtirok = 0;
_local1.nbrtirmiss = 0;
_local1.pourcentage = 0;
_local1.reac = 0;
_local1.precision = 0;
_local1.resultat = 0;
_local1.bestreac = 60;
_local1.bestprecision = 0;
_local1.bestscore = 0;
_local1.distance = 0;
_local2.score = 0;
_local2.scoreClip.plotScore();
}
function sol() {
var _local1 = _root;
dirt._yscale = _local1._ymouse - 250;
dirt._xscale = dirt._yscale;
dirt._y = _local1._ymouse - _local1.game._y;
dirt._x = _local1._xmouse - _local1.game._x;
dirt.gotoAndPlay(2);
}
function plafond() {
var _local1 = _root;
dirt_p._yscale = _local1._ymouse - 150;
dirt_p._xscale = dirt_p._yscale;
dirt_p._y = _local1._ymouse - _local1.game._y;
dirt_p._x = _local1._xmouse - _local1.game._x;
dirt_p.gotoAndPlay(2);
}
function shot() {
var _local1 = _root;
_local1.fire_sound.gotoAndPlay(2);
_local1.weapon.gotoAndPlay(2);
_local1.weapon.douille.gotoAndPlay(2);
_local1.fire = false;
_local1.nbrtirmiss++;
_local1.Target.T.gotoAndPlay(2);
_local1.pourcent();
}
function murfond() {
var _local1 = _root;
dirt_f._y = _local1._ymouse - _local1.game._y;
dirt_f._x = _local1._xmouse - _local1.game._x;
dirt_f.gotoAndPlay(2);
}
function murgauche() {
var _local1 = _root;
dirt_l._yscale = (-_local1._xmouse) + 200;
dirt_l._xscale = dirt_l._yscale;
dirt_l._y = _local1._ymouse - _local1.game._y;
dirt_l._x = _local1._xmouse - _local1.game._x;
dirt_l.gotoAndPlay(2);
}
function murdroit() {
var _local1 = _root;
dirt_r._xscale = _local1._xmouse - 400;
dirt_r._yscale = dirt_r._xscale;
dirt_r._y = _local1._ymouse - _local1.game._y;
dirt_r._x = _local1._xmouse - _local1.game._x;
dirt_r.gotoAndPlay(2);
}
_root.motor = false;
Mouse.show();
_root.Target._visible = false;
_root.Weapon._visible = false;
_root.tuto._visible = true;
stop();
Instance of Symbol 155 MovieClip "fond" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("on");
}
Symbol 204 MovieClip Frame 2
_root.motor = true;
resetvar();
_root.showscore.gotoAndStop(1);
_root.instruction._visible = false;
_root.tryhighscore._visible = false;
_root.Target._visible = true;
_root.Weapon._visible = true;
fond.gotoAndPlay("on");
Mouse.hide();
_root.Target.gotoAndPlay(17);
_root.weapon.gotoAndPlay("begin");
stop();
Symbol 204 MovieClip Frame 50
Mouse.hide();
_root.nbrcible = 2;
plan2.plan2.bulleye = 0;
_root.Target._visible = true;
_root.fire = true;
stop();
Instance of Symbol 203 MovieClip "plan2" in Symbol 204 MovieClip Frame 50
onClipEvent (load) {
zone = random(200) + 200;
zoney = 250 + plan2._xscale;
}
Symbol 204 MovieClip Frame 51
fond.gotoAndPlay("off");
_root.Target.gotoAndPlay(2);
_root.weapon.gotoAndPlay("end");
_root.showscore.gotoAndPlay(2);
_root.fire = false;
Symbol 204 MovieClip Frame 96
_root.tuto.tuto();
Symbol 216 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Instance of Symbol 216 MovieClip in Symbol 217 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(random(7) + 1);
}
Symbol 220 MovieClip Frame 1
stop();
Instance of Symbol 219 MovieClip "shard" in Symbol 220 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(20) - 10;
yspeed = (-random(10)) - 5;
bv = 200;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / Math.PI);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if (_y >= bv) {
this._visible = false;
}
}
Symbol 220 MovieClip Frame 25
_root.sound_douille.gotoAndPlay(2);
Symbol 222 MovieClip Frame 1
_root.reloading = false;
stop();
Symbol 222 MovieClip Frame 2
weapon.gotoAndPlay(2);
Symbol 222 MovieClip Frame 10
gotoAndStop (1);
Symbol 222 MovieClip Frame 11
_root.muni = 0;
_root.fire = false;
Symbol 222 MovieClip Frame 18
_root.ammo.gotoAndStop(1);
Symbol 222 MovieClip Frame 29
_root.muni = 12;
_root.ammo.gotoAndPlay(2);
_root.fire = true;
gotoAndStop (1);
Symbol 222 MovieClip Frame 45
_root.reloading = false;
_root.muni = 12;
_root.ammo.gotoAndPlay(2);
gotoAndStop (1);
Symbol 222 MovieClip Frame 76
_visible = false;
Symbol 226 MovieClip Frame 14
stop();
Symbol 228 MovieClip Frame 1
stop();
_root.fire = true;
Symbol 228 MovieClip Frame 2
anim.play();
_root.nbrtir++;
_root.pourcent();
_root.fire = false;
_root.ammo.am();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 16
Mouse.show();
stop();
Symbol 230 MovieClip Frame 30
_root.game.play();
Symbol 237 Button
on (release) {
getURL ("http://jeuxflashs.be/flash_games/trainingtargets/");
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
_visible = true;
Symbol 316 MovieClip Frame 3
_visible = false;
Symbol 316 MovieClip Frame 4
_visible = true;
Symbol 316 MovieClip Frame 5
_visible = false;
Symbol 316 MovieClip Frame 6
_visible = true;
Symbol 316 MovieClip Frame 7
_visible = false;
Symbol 316 MovieClip Frame 8
_visible = true;
Symbol 316 MovieClip Frame 9
_visible = false;
Symbol 316 MovieClip Frame 10
_visible = true;
Symbol 316 MovieClip Frame 11
_visible = false;
Symbol 316 MovieClip Frame 12
_visible = true;
Symbol 316 MovieClip Frame 13
_visible = false;
Symbol 316 MovieClip Frame 14
_visible = true;
Symbol 316 MovieClip Frame 15
_visible = true;
Symbol 316 MovieClip Frame 16
_visible = false;
Symbol 316 MovieClip Frame 17
_visible = true;
Symbol 316 MovieClip Frame 18
_visible = false;
Symbol 316 MovieClip Frame 19
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 17
stop();
Symbol 320 Button
on (press) {
gotoAndStop (2);
}
Symbol 323 Button
on (press) {
stopAllSounds();
_root.titl();
}
Symbol 324 Button
on (press) {
gotoAndStop (1);
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 333 MovieClip Frame 21
stop();
Symbol 334 MovieClip Frame 1
i = 0;
while (i < 5) {
duplicateMovieClip ("isk1", "isk" add i, i);
isk1._rotation = random(360);
scalefactor = 50 + Number(random(50));
isk1._xscale = scalefactor;
isk1._yscale = scalefactor;
tellTarget ("isk" add i) {
gotoAndPlay(random(5));
};
i++;
}
Symbol 335 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 25
stop();
Symbol 361 MovieClip Frame 1
_parent.tv.prof.gotoAndStop("shut");
Symbol 361 MovieClip Frame 2
_parent.tv.prof.gotoAndStop("talk");
Symbol 361 MovieClip Frame 74
_parent.tv.prof.gotoAndStop("shut");
stop();
Symbol 363 Button
on (release) {
play();
}
Symbol 366 Button
on (release) {
_root.titl();
}
Symbol 367 MovieClip Frame 1
function tuto() {
var _local1 = _root;
if (step == 1) {
_local1.tuto.play();
} else if (step == 2) {
if (_local1.bull > 0) {
_local1.tuto.play();
} else {
mask.gotoAndPlay(2);
txt = "no,here is an other try...";
_local1.game.gotoAndPlay(2);
}
}
}
stop();
txt = "Hi there! Welcome to the tiny tutorial of training targets.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 2
stop();
txt = "For the beginning,we will simply shot a target.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 3
stop();
txt = "Note:If you want to reload your weapon push the \"R\" key.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 4
stop();
step = 1;
_root.game.play();
txt = "Now a target will appear, use your mouse to move and fire with your left mouse button.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 5
stop();
txt = "Ok,Check the stats at the top of the screen.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 6
stop();
txt = "The two most important points is your reaction time and your precision.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 7
stop();
txt = "About the precision:100% is a perfect shot. Between 98 and 100. It's a bullseye.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 8
stop();
txt = "To make more easily a bulleye,you must retain your breath.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 9
stop();
txt = "To retain your breath, hold the spacebar,your precision will be increase.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 10
stop();
step = 2;
_root.game.play();
txt = "Ok,now try to make a bullseye.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 11
stop();
txt = "Nice,when you make a bullseye your next shotscore will be a doubled.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 12
stop();
txt = "You can make amazing score when you combine a bullseye and a fast shot.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 13
stop();
txt = "That's all, You are ready.Thanks for your interest.";
mask.gotoAndPlay(2);
Symbol 367 MovieClip Frame 14
stop();
txt = "Coding/gfx/songs by Nowe Reginald.Have a nice day.";
mask.gotoAndPlay(2);
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 9
stop();
Symbol 374 MovieClip Frame 1
stop();
_visible = false;
Symbol 374 MovieClip Frame 2
_visible = true;
Symbol 374 MovieClip Frame 3
_visible = false;
Symbol 374 MovieClip Frame 4
_visible = true;
Symbol 374 MovieClip Frame 5
_visible = false;
Symbol 374 MovieClip Frame 6
_visible = true;
Symbol 374 MovieClip Frame 7
_visible = false;
Symbol 374 MovieClip Frame 8
_visible = true;
Symbol 374 MovieClip Frame 9
_visible = false;
Symbol 374 MovieClip Frame 10
_visible = true;
Symbol 374 MovieClip Frame 11
_visible = false;
Symbol 374 MovieClip Frame 12
_visible = true;
Symbol 374 MovieClip Frame 13
_visible = false;
Symbol 374 MovieClip Frame 14
_visible = true;
Symbol 375 MovieClip Frame 1
stop();
_root.ms = getTimer();
function distance() {
var _local2 = ((_ro._xmouse - _par2._x) - _par._x) - _x;
-zero._x;
var _local1 = ((_ro._ymouse - _par2._y) - _par._y) - _y;
-zero._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function resolve() {
var _local2 = getTimer();
distance();
if (bulleye == 1) {
double = 2;
} else {
double = 1;
}
precision();
var _local3 = distance() / (_xscale / 10);
_ro.reac = (_local2 - _ro.ms) / 1000;
if (_ro.bestreac > _ro.reac) {
_ro.bestreac = _ro.reac;
}
resultat = ((100 - _local3) / _ro.reac) * double;
var _local1 = Math.round(resultat);
_ro.distance = (1 - _par.scale) * 10;
_ro.scoring(_local1);
if (_ro.bestscore < _local1) {
_ro.bestscore = _local1;
}
_ro.game.res.res.res = _local1;
_ro.game.res._y = _ro.game.plan2._y;
_ro.game.res._x = _ro.game.plan2._x;
if (bulleye == 1) {
_ro.eye.gotoAndPlay(1);
}
_ro.game.res.gotoAndPlay(1);
_ro.resultat = _local1;
}
function reset() {
if (_ro.nbrcible == 0) {
_ro.game.play();
}
_par.zone = random(250) + 200;
_xscale = (random(80) + 20);
_yscale = _xscale;
_par.scale = (_xscale / 100) - 0.1;
_par.zoney = 250 + _xscale;
}
function precision() {
precis = 100 - (distance() / (_yscale / 100));
_ro.precision = arrondi(precis, 3);
if (_ro.bestprecision < _ro.precision) {
_ro.bestprecision = _ro.precision;
}
if (_ro.precision > 98) {
bulleye = 1;
} else {
bulleye = 0;
}
_ro.bull = _ro.bull + bulleye;
}
function arrondi(n, d) {
return(Math.round(n * Math.pow(10, d)) / Math.pow(10, d));
}
function effet(qui, RA, VA, BA) {
myColor = new Color(qui);
myColor.setTransform({ra:RA, ga:VA, ba:BA, rb:"0", gb:"0", bb:"0", aa:"100", ab:0});
}
var _ro = _root;
var _par = _parent;
var _par2 = _parent._parent;
effet(_par, _xscale, _xscale, _xscale);
Instance of Symbol 197 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
var _par = _parent;
var _par2 = _parent._parent;
var _ro = _root;
var _l1 = _root.game;
}
on (press) {
if (_ro.muni > 0) {
if (_ro.fire == true) {
_ro.weapon.gotoAndPlay(2);
_ro.weapon.douille.gotoAndPlay(2);
_ro.fire_sound.gotoAndPlay(2);
_ro.hit_sound.gotoAndPlay(2);
_par.resolve();
_l1.star._x = _ro._xmouse - _ro.game._x;
_l1.star._y = _ro._ymouse - _ro.game._y;
_l1.star.gotoAndPlay(2);
_ro.Target.T.gotoAndPlay(2);
_ro.nbrtirok++;
_ro.pourcent();
var y = ((((_ro._ymouse - _ro.game._y) - _par2._y) / (_par._yscale / 100)) / (_ro.game.plan2._yscale / 100));
var x = ((((_ro._xmouse - _ro.game._x) - _par2._x) / (_par._xscale / 100)) / (_ro.game.plan2._xscale / 100));
_par.perso.trou._y = y;
_par.perso.trou._x = x;
_par.perso.hit._y = y;
_par.perso.hit._x = x;
_ro.bulleye.trou._y = y;
_ro.bulleye.trou._x = x;
_par.play();
}
} else {
_ro.sound_clic.gotoAndPlay(2);
}
}
Symbol 375 MovieClip Frame 45
var mov = (random(50) + 51);
gotoAndPlay(mov);
Symbol 375 MovieClip Frame 120
_root.nbrcible--;
reset();
Symbol 375 MovieClip Frame 121
_visible = false;
effet(_parent, _xscale, _xscale, _xscale);
Symbol 375 MovieClip Frame 122
_visible = true;
Symbol 375 MovieClip Frame 123
_visible = false;
Symbol 375 MovieClip Frame 124
_visible = true;
Symbol 375 MovieClip Frame 125
_visible = false;
Symbol 375 MovieClip Frame 126
_visible = true;
Symbol 375 MovieClip Frame 127
_visible = false;
Symbol 375 MovieClip Frame 129
_visible = true;
Instance of Symbol 375 MovieClip "plan2" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (45);
}
Symbol 377 MovieClip Frame 1
function miss() {
_ro.game.res2._y = _ro._ymouse;
_ro.game.res2._x = _ro._xmouse;
_ro.game.res2.gotoAndPlay(2);
_ro.game.res2.cl.cl = "miss";
}
function resetvar() {
var _local1 = _root;
_local1.fire = false;
_local1.breath = true;
_local1.reloading = false;
_local1.bestreac = 60;
_local1.bull = 0;
_local1.nbrtir = 0;
_local1.nbrtirok = 0;
_local1.nbrtirmiss = 0;
_local1.pourcentage = 0;
_local1.reac = 0;
_local1.precision = 0;
_local1.resultat = 0;
_local1.bestreac = 60;
_local1.bestprecision = 0;
_local1.bestscore = 0;
_local1.distance = 0;
_ro.score = 0;
_ro.scoreClip.plotScore();
}
function sol() {
dirt._yscale = _ro._ymouse - 250;
dirt._xscale = dirt._yscale;
dirt._y = _ro._ymouse - _ro.game._y;
dirt._x = _ro._xmouse - _ro.game._x;
dirt.gotoAndPlay(2);
}
function plafond() {
dirt_p._yscale = _ro._ymouse - 150;
dirt_p._xscale = dirt_p._yscale;
dirt_p._y = _ro._ymouse - _ro.game._y;
dirt_p._x = _ro._xmouse - _ro.game._x;
dirt_p.gotoAndPlay(2);
}
function shot() {
_ro.fire_sound.gotoAndPlay(2);
_ro.weapon.gotoAndPlay(2);
_ro.weapon.douille.gotoAndPlay(2);
_ro.fire = false;
_ro.nbrtirmiss++;
_ro.Target.T.gotoAndPlay(2);
_ro.pourcent();
miss();
}
function murfond() {
dirt_f._y = _ro._ymouse - _ro.game._y;
dirt_f._x = _ro._xmouse - _ro.game._x;
dirt_f.gotoAndPlay(2);
}
function murgauche() {
dirt_l._yscale = (-_ro._xmouse) + 200;
dirt_l._xscale = dirt_l._yscale;
dirt_l._y = _ro._ymouse - _ro.game._y;
dirt_l._x = _ro._xmouse - _ro.game._x;
dirt_l.gotoAndPlay(2);
}
function murdroit() {
dirt_r._xscale = _ro._xmouse - 400;
dirt_r._yscale = dirt_r._xscale;
dirt_r._y = _ro._ymouse - _ro.game._y;
dirt_r._x = _ro._xmouse - _ro.game._x;
dirt_r.gotoAndPlay(2);
}
_root.motor = false;
var _ro = _root;
Mouse.show();
_ro.proceed._visible = true;
_ro.Target._visible = false;
_ro.Weapon._visible = false;
stop();
Instance of Symbol 368 MovieClip "fond" in Symbol 377 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("on");
}
Symbol 377 MovieClip Frame 2
_root.motor = true;
resetvar();
_root.showscore.gotoAndStop(1);
_root.instruction._visible = false;
_root.tryhighscore._visible = false;
_root.proceed._visible = false;
_root.Target._visible = true;
_root.Weapon._visible = true;
fond.gotoAndPlay("on");
Mouse.hide();
_root.Target.gotoAndPlay(17);
_root.weapon.gotoAndPlay("begin");
stop();
Symbol 377 MovieClip Frame 50
Mouse.hide();
_root.nbrcible = 13;
plan2.plan2.bulleye = 0;
_root.Target._visible = true;
_root.fire = true;
stop();
Instance of Symbol 376 MovieClip "plan2" in Symbol 377 MovieClip Frame 50
onClipEvent (load) {
zone = random(200) + 200;
zoney = 250 + plan2._xscale;
}
Symbol 377 MovieClip Frame 51
if (_root.score > _root.highscore_n) {
_root.highscore_n = _root.score;
_root.highscoreClip_n.plothighScore();
_root.game_so.data.highscore_n = _root.highscore_n;
}
fond.gotoAndPlay("off");
_root.Target.gotoAndPlay(2);
_root.weapon.gotoAndPlay("end");
_root.showscore.gotoAndPlay(2);
_root.fire = false;
Symbol 377 MovieClip Frame 60
_root.tryhighscore._visible = true;
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 310 MovieClip "scoreClip" in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.score;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plotScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Symbol 378 MovieClip Frame 10
stop();
Symbol 404 Button
on (release) {
_root.game.gotoAndPlay(2);
}
Symbol 406 Button
on (release) {
stopAllSounds();
_root.titl();
}
Symbol 411 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 9
stop();
Symbol 416 MovieClip Frame 1
stop();
_visible = false;
Symbol 416 MovieClip Frame 2
_visible = true;
Symbol 416 MovieClip Frame 3
_visible = false;
Symbol 416 MovieClip Frame 4
_visible = true;
Symbol 416 MovieClip Frame 5
_visible = false;
Symbol 416 MovieClip Frame 6
_visible = true;
Symbol 416 MovieClip Frame 7
_visible = false;
Symbol 416 MovieClip Frame 8
_visible = true;
Symbol 416 MovieClip Frame 9
_visible = false;
Symbol 416 MovieClip Frame 10
_visible = true;
Symbol 416 MovieClip Frame 11
_visible = false;
Symbol 416 MovieClip Frame 12
_visible = true;
Symbol 416 MovieClip Frame 13
_visible = false;
Symbol 416 MovieClip Frame 14
_visible = true;
Symbol 417 MovieClip Frame 1
stop();
_root.ms = getTimer();
function distance() {
var _local2 = ((_ro._xmouse - _par2._x) - _par._x) - _x;
-zero._x;
var _local1 = ((_ro._ymouse - _par2._y) - _par._y) - _y;
-zero._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function resolve() {
var _local2 = getTimer();
distance();
if (bulleye == 1) {
double = 2;
} else {
double = 1;
}
precision();
var _local3 = distance() / (_xscale / 10);
_ro.reac = (_local2 - _ro.ms) / 1000;
if (_ro.bestreac > _ro.reac) {
_ro.bestreac = _ro.reac;
}
resultat = ((100 - _local3) / _ro.reac) * double;
var _local1 = Math.round(resultat);
_ro.distance = (1 - _par.scale) * 10;
_ro.scoring(_local1);
if (_ro.bestscore < _local1) {
_ro.bestscore = _local1;
}
_ro.game.res.res.res = _local1;
_ro.game.res._y = _ro.game.plan2._y;
_ro.game.res._x = _ro.game.plan2._x;
if (bulleye == 1) {
_ro.eye.gotoAndPlay(1);
}
cl = Math.round(_local1 / 100);
_ro.clock.clock(cl);
_ro.game.res.gotoAndPlay(1);
_ro.game.res.cl.cl = ("+ " + cl) + " sec(s)";
_ro.resultat = _local1;
}
function reset() {
_par.zone = random(250) + 200;
_xscale = (random(80) + 20);
_yscale = _xscale;
_par.scale = (_xscale / 100) - 0.1;
_par.zoney = 250 + _xscale;
}
function precision() {
precis = 100 - (distance() / (_yscale / 100));
_ro.precision = arrondi(precis, 3);
if (_ro.bestprecision < _ro.precision) {
_ro.bestprecision = _ro.precision;
}
if (_ro.precision > 98) {
bulleye = 1;
} else {
bulleye = 0;
}
_ro.bull = _ro.bull + bulleye;
}
function arrondi(n, d) {
return(Math.round(n * Math.pow(10, d)) / Math.pow(10, d));
}
function effet(qui, RA, VA, BA) {
myColor = new Color(qui);
myColor.setTransform({ra:RA, ga:VA, ba:BA, rb:"0", gb:"0", bb:"0", aa:"100", ab:0});
}
var _ro = _root;
var _par = _parent;
var _par2 = _parent._parent;
effet(_par, _xscale, _xscale, _xscale);
Instance of Symbol 197 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
var _par = _parent;
var _par2 = _parent._parent;
var _ro = _root;
var _l1 = _root.game;
}
on (press) {
if (_ro.muni > 0) {
if (_ro.fire == true) {
_ro.weapon.gotoAndPlay(2);
_ro.weapon.douille.gotoAndPlay(2);
_ro.fire_sound.gotoAndPlay(2);
_ro.hit_sound.gotoAndPlay(2);
_par.resolve();
_l1.star._x = _ro._xmouse - _ro.game._x;
_l1.star._y = _ro._ymouse - _ro.game._y;
_l1.star.gotoAndPlay(2);
_ro.Target.T.gotoAndPlay(2);
_ro.nbrtirok++;
_ro.pourcent();
var y = ((((_ro._ymouse - _ro.game._y) - _par2._y) / (_par._yscale / 100)) / (_ro.game.plan2._yscale / 100));
var x = ((((_ro._xmouse - _ro.game._x) - _par2._x) / (_par._xscale / 100)) / (_ro.game.plan2._xscale / 100));
_par.perso.trou._y = y;
_par.perso.trou._x = x;
_par.perso.hit._y = y;
_par.perso.hit._x = x;
_ro.bulleye.trou._y = y;
_ro.bulleye.trou._x = x;
_par.play();
}
} else {
_ro.sound_clic.gotoAndPlay(2);
}
}
Symbol 417 MovieClip Frame 45
play();
Symbol 417 MovieClip Frame 80
reset();
Symbol 417 MovieClip Frame 81
_visible = false;
effet(_parent, _xscale, _xscale, _xscale);
Symbol 417 MovieClip Frame 82
_visible = true;
Symbol 417 MovieClip Frame 83
_visible = false;
Symbol 417 MovieClip Frame 84
_visible = true;
Symbol 417 MovieClip Frame 85
_visible = false;
Symbol 417 MovieClip Frame 86
_visible = true;
Symbol 417 MovieClip Frame 87
_visible = false;
Symbol 417 MovieClip Frame 89
_visible = true;
Instance of Symbol 417 MovieClip "plan2" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (45);
}
Symbol 419 MovieClip Frame 1
function klok() {
_ro.game.res2._y = _ro._ymouse;
_ro.game.res2._x = _ro._xmouse;
if ((_ro.clock.a - 5) < 1) {
_ro.clock.a = 0;
_ro.clock.scoreClip.plotScore();
_ro.cl = false;
_ro.sound_timeup.gotoAndPlay(2);
_ro.game.play();
}
_ro.game.res2.gotoAndPlay(2);
_ro.game.res2.cl.cl = "miss: -5 secs";
_ro.clock.clock(-5);
}
function resetvar() {
var _local1 = _root;
_local1.fire = false;
_local1.breath = true;
_local1.reloading = false;
_local1.bestreac = 60;
_local1.bull = 0;
_local1.nbrtir = 0;
_local1.nbrtirok = 0;
_local1.nbrtirmiss = 0;
_local1.pourcentage = 0;
_local1.reac = 0;
_local1.precision = 0;
_local1.resultat = 0;
_local1.bestreac = 60;
_local1.bestprecision = 0;
_local1.bestscore = 0;
_local1.distance = 0;
_ro.score = 0;
_ro.scoreClip.plotScore();
}
function sol() {
dirt._yscale = _ro._ymouse - 250;
dirt._xscale = dirt._yscale;
dirt._y = _ro._ymouse - _ro.game._y;
dirt._x = _ro._xmouse - _ro.game._x;
dirt.gotoAndPlay(2);
}
function plafond() {
dirt_p._yscale = _ro._ymouse - 150;
dirt_p._xscale = dirt_p._yscale;
dirt_p._y = _ro._ymouse - _ro.game._y;
dirt_p._x = _ro._xmouse - _ro.game._x;
dirt_p.gotoAndPlay(2);
}
function shot() {
_ro.fire_sound.gotoAndPlay(2);
_ro.weapon.gotoAndPlay(2);
_ro.weapon.douille.gotoAndPlay(2);
_ro.fire = false;
_ro.nbrtirmiss++;
_ro.Target.T.gotoAndPlay(2);
_ro.pourcent();
klok();
}
function murfond() {
dirt_f._y = _ro._ymouse - _ro.game._y;
dirt_f._x = _ro._xmouse - _ro.game._x;
dirt_f.gotoAndPlay(2);
}
function murgauche() {
dirt_l._yscale = (-_ro._xmouse) + 200;
dirt_l._xscale = dirt_l._yscale;
dirt_l._y = _ro._ymouse - _ro.game._y;
dirt_l._x = _ro._xmouse - _ro.game._x;
dirt_l.gotoAndPlay(2);
}
function murdroit() {
dirt_r._xscale = _ro._xmouse - 400;
dirt_r._yscale = dirt_r._xscale;
dirt_r._y = _ro._ymouse - _ro.game._y;
dirt_r._x = _ro._xmouse - _ro.game._x;
dirt_r.gotoAndPlay(2);
}
_root.motor = false;
var _ro = _root;
Mouse.show();
_ro.proceed._visible = true;
_ro.Target._visible = false;
_ro.Weapon._visible = false;
stop();
Instance of Symbol 412 MovieClip "fond" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("on");
}
Symbol 419 MovieClip Frame 2
_root.motor = true;
resetvar();
_root.cl = true;
_root.clock.a = 31;
_root.showscore.gotoAndStop(1);
_root.instruction._visible = false;
_root.tryhighscore._visible = false;
_root.proceed._visible = false;
_root.Target._visible = true;
_root.Weapon._visible = true;
fond.gotoAndPlay("on");
Mouse.hide();
_root.Target.gotoAndPlay(17);
_root.weapon.gotoAndPlay("begin");
stop();
Symbol 419 MovieClip Frame 50
Mouse.hide();
_root.nbrcible = 13;
plan2.plan2.bulleye = 0;
_root.Target._visible = true;
_root.fire = true;
stop();
Instance of Symbol 418 MovieClip "plan2" in Symbol 419 MovieClip Frame 50
onClipEvent (load) {
zone = random(200) + 200;
zoney = 250 + plan2._xscale;
}
Symbol 419 MovieClip Frame 51
if (_root.score > _root.highscore_s) {
_root.highscore_s = _root.score;
_root.highscoreClip_s.plothighScore();
_root.game_so.data.highscore_s = _root.highscore_s;
}
fond.gotoAndPlay("off");
_root.Target.gotoAndPlay(2);
_root.weapon.gotoAndPlay("end");
_root.showscore.gotoAndPlay(2);
_root.fire = false;
Symbol 419 MovieClip Frame 60
_root.tryhighscore._visible = true;
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
_visible = true;
Symbol 422 MovieClip Frame 3
_visible = false;
Symbol 422 MovieClip Frame 4
_visible = true;
Symbol 422 MovieClip Frame 5
_visible = false;
Symbol 422 MovieClip Frame 6
_visible = true;
Symbol 422 MovieClip Frame 7
_visible = false;
Symbol 422 MovieClip Frame 8
_visible = true;
Symbol 422 MovieClip Frame 9
_visible = false;
Symbol 422 MovieClip Frame 10
_visible = true;
Symbol 422 MovieClip Frame 11
_visible = false;
Symbol 422 MovieClip Frame 12
_visible = true;
Symbol 422 MovieClip Frame 13
_visible = false;
Symbol 422 MovieClip Frame 14
_visible = true;
Symbol 422 MovieClip Frame 15
_visible = false;
Symbol 447 MovieClip Frame 1
stop();
cont = new Sound();
cont.attachSound("count");
if (ok == true) {
cont.start();
}
Symbol 447 MovieClip Frame 2
if (ok == true) {
cont.start();
}
Symbol 447 MovieClip Frame 3
if (ok == true) {
cont.start();
}
Symbol 447 MovieClip Frame 4
if (ok == true) {
cont.start();
}
Symbol 447 MovieClip Frame 5
if (ok == true) {
cont.start();
}
Symbol 447 MovieClip Frame 6
if (ok == true) {
cont.start();
}
Symbol 449 MovieClip Frame 1
scoreClip.plotScore();
Instance of Symbol 448 MovieClip "scoreClip" in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _parent.a;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else if (s < 10) {
digit1.ok = true;
_local1 = 0;
} else {
digit1.ok = false;
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
digit1.ok = false;
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Symbol 449 MovieClip Frame 30
if (_root.cl == true) {
if (a > 1) {
a--;
} else {
a = 0;
_root.cl = false;
_root.sound_timeup.gotoAndPlay(2);
_root.game.play();
}
}