Frame 1
Stage.showMenu = false;
stop();
bar_mc.onEnterFrame = function () {
bl = getBytesLoaded();
tb = getBytesTotal();
per = bl / tb;
percen = per * 100;
percent = Math.ceil(percen);
bar_mc._xscale = percen * 1.2;
if (percent == 100) {
onEnterFrame = null;
b_mc.removeMovieClip();
line.removeMovieClip();
gotoAndPlay (2);
}
};
onEnterFrame = function () {
xdif = _xmouse - b_mc._x;
ydif = _ymouse - b_mc._y;
this.createEmptyMovieClip("line", 1);
this.line.pos = new Object();
with (this.line) {
lineStyle(1, 16777215, 100);
moveTo(_xmouse, _ymouse);
curveTo(_xmouse + _root.xbend, ((_ymouse + b_mc._y) / 2) + _root.ybend, b_mc._x, b_mc._y);
}
};
Instance of Symbol 20 MovieClip "b_mc" in Frame 1
onClipEvent (load) {
k = 0.02;
damp = 0.97;
vx = 0;
vy = 0;
grav = 2;
}
onClipEvent (enterFrame) {
this.swapDepths(getNextHighestDepth() + 2);
ax = (_root._xmouse - _x) * k;
ay = (_root._ymouse - _y) * k;
vx = vx + ax;
vy = vy + ay;
vy = vy + grav;
vx = vx * damp;
vy = vy * damp;
_x = (_x + vx);
_y = (_y + vy);
_root.xbend = (2 * vx) + vy;
_root.ybend = (2 * vy) + vx;
xdif = _root._xmouse - this._x;
ydif = _root._ymouse - this._y;
this._rotation = (Math.atan2(ydif, xdif) * 57.2957795130823) + 90;
}
Frame 2
stopAllSounds();
Frame 3
stopAllSounds();
Frame 4
stopAllSounds();
Frame 5
stopAllSounds();
Frame 11
stop();
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
stopAllSounds();
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
trackNumber = 1;
Mouse.show();
_root.onMouseMove = function () {
Mouse.show();
};
Frame 13
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop (14);
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 14
function go2() {
if ((tute_mc.tute == 1) && (tute_mc.hitTest(_xmouse, _ymouse, true) == false)) {
tute_mc.tute = 2;
}
}
function go3() {
if ((tute_mc.tute == 2) && (tute_mc.hitTest(_xmouse, _ymouse, true) == false)) {
tute_mc.tute = 3;
}
}
maxTrackNum = 3;
s2_sound.setVolume(100);
var s1_sound = new Sound();
s1_sound.attachSound("track1");
var s2_sound = new Sound();
s2_sound.attachSound("track2");
var s3_sound = new Sound();
s3_sound.attachSound("track3");
var hit_sound = new Sound();
hit_sound.attachSound("hittarget");
if (trackNumber == 1) {
s1_sound.start();
trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (trackNumber == 2) {
s2_sound.start();
trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (trackNumber == 3) {
s3_sound.start();
trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
s1_sound.onSoundComplete = function () {
stopAllSounds();
s1_sound.start();
};
s2_sound.onSoundComplete = function () {
stopAllSounds();
s2_sound.start();
};
s3_sound.onSoundComplete = function () {
stopAllSounds();
s3_sound.start();
};
function endlose() {
gotoAndStop (3);
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
gotoAndStop (4);
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if (_currentframe == 14) {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 0;
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
} else {
this.removeMovieClip();
}
}
stop();
Mouse.hide();
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = 0;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 510;
xmax = 810;
xmin = 27.5;
ymax = 550;
ground_mc._x = 880;
ground_mc._y = 275;
target_mc._x = 126;
target_mc._y = 220;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
Mouse.hide();
};
onEnterFrame = function () {
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
oldx = crosshair_mc._x;
oldy = crosshair_mc._y;
xdif = newx - oldx;
ydif = newy - oldy;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 1) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseUp = function () {
if (tute_mc.hitTest(_xmouse, _ymouse, true) == false) {
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
}
};
Instance of Symbol 54 MovieClip in Frame 14
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
if (Key.isDown(13)) {
_root.tute_mc._visible = true;
_root.tute_mc.tute = 1;
}
}
Instance of Symbol 72 MovieClip "tute_mc" in Frame 14
onClipEvent (load) {
tute = 1;
}
onClipEvent (enterFrame) {
if (tute == 1) {
this.tutorial = "Firstly, leftclick anywhere on the screen, keep your mouse button down!";
_root.bg_btn.onPress = _root.go2;
} else if (tute == 2) {
this.tutorial = "Now while keeping the mouse button down, drag the cursor accross the screen towards anywhere you like and then while the cursor is still moving suddenly let go of the mouse button!";
_root.bg_btn.onRelease = _root.go3;
} else if (tute == 3) {
this.tutorial = "Did the ball just fly away in the direction that you dragged your mouse? if not... you need more practice, try aiming at the target on the left of the screen!!! or press 'Enter' to repeat this tutorial.";
}
}
Instance of Symbol 77 MovieClip "txt_mc" in Frame 14
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.tute_mc._visible == false) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 35
gotoAndStop ("mode");
Frame 36
b.onEnterFrame = function () {
if (Key.isDown(8)) {
var _local2 = 0;
while (_local2 <= depth) {
_root["bullet" + _local2].removeMovieClip();
_local2++;
}
line.clear();
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
gotoAndStop (11);
removeMovieClip(anchor_mc);
}
};
Frame 38
maxTrackNum = 3;
s2_sound.setVolume(100);
var s1_sound = new Sound();
s1_sound.attachSound("track1");
var s2_sound = new Sound();
s2_sound.attachSound("track2");
var s3_sound = new Sound();
s3_sound.attachSound("track3");
var hit_sound = new Sound();
hit_sound.attachSound("hittarget");
if (trackNumber == 1) {
s1_sound.start();
trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (trackNumber == 2) {
s2_sound.start();
trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (trackNumber == 3) {
s3_sound.start();
trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
s1_sound.onSoundComplete = function () {
stopAllSounds();
s1_sound.start();
};
s2_sound.onSoundComplete = function () {
stopAllSounds();
s2_sound.start();
};
s3_sound.onSoundComplete = function () {
stopAllSounds();
s3_sound.start();
};
s2_sound.setVolume(50);
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("lvl1");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 39
function endlose() {
gotoAndStop ("lose1");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
gotoAndStop ("win1");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 510;
xmax = 810;
xmin = 27.5;
ymax = 550;
ground_mc._x = 880;
ground_mc._y = 275;
target_mc._x = 126;
target_mc._y = 220;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
oldx = crosshair_mc._x;
oldy = crosshair_mc._y;
xdif = newx - oldx;
ydif = newy - oldy;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseUp = function () {
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 39
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 40
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 41
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 42
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("lvl2");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 43
function endlose() {
gotoAndStop ("lose2");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
gotoAndStop ("win2");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y >= top) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y < (top + 15))) {
this._y = top;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y > (top + 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y > (top + 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
top = (wall_mc._y - (wall_mc._height / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 510;
xmax = 810;
xmin = 27.5;
ymax = 550;
ground_mc._x = 1000;
ground_mc._y = 275;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
oldx = crosshair_mc._x;
oldy = crosshair_mc._y;
xdif = newx - oldx;
ydif = newy - oldy;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseUp = function () {
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 43
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 44
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 45
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 46
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("lvl3");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 47
function endlose() {
gotoAndStop ("lose3");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
gotoAndStop ("win3");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 510;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
oldx = crosshair_mc._x;
oldy = crosshair_mc._y;
xdif = newx - oldx;
ydif = newy - oldy;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseUp = function () {
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 47
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 48
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 49
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 50
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("lvl4");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 51
function endlose() {
gotoAndStop ("lose4");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
gotoAndStop ("win4");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
if (this._y <= (this._x - 500)) {
this.x = this._x;
this._x = this.x;
this._y = this.x - 500;
this.dxdifr = this.dxdif;
this.dydifr = this.dydif;
this.dxdif = this.dydifr * 0.98;
this.dydif = this.dxdifr * 0.98;
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
ramp_mc.top = (ramp_mc._y - (ramp_mc._height / 2)) - 7.5;
ramp_mc.bottom = (ramp_mc._y + (ramp_mc._height / 2)) + 7.5;
ramp_mc.right = (ramp_mc._x + (ramp_mc._width / 2)) + 7.5;
ramp_mc.left = (ramp_mc._x - (ramp_mc._width / 2)) - 7.5;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 289;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
oldx = crosshair_mc._x;
oldy = crosshair_mc._y;
xdif = newx - oldx;
ydif = newy - oldy;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseUp = function () {
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 51
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 52
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 53
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 54
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("lvl5");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 55
function endlose() {
gotoAndStop ("lose5");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
gotoAndStop ("win5");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
this.avspeed = Math.sqrt((this.dxdif * this.dxdif) + (this.dydif * this.dydif));
this.distx = circle_mc._x - this._x;
this.disty = circle_mc._y - this._y;
this.dist = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
if (this.dist <= ((circle_mc._width / 2) + (this._width / 2))) {
this.atancalc = Math.atan2(this.disty, this.distx);
this.oangle = (Math.PI*2) - this.atancalc;
this.oangle2 = this.atancalc - (Math.PI*2);
this.angle = (Math.PI/2) - oangle;
this._x = circle_mc._x - ((circle_mc._width / 2) * Math.cos(this.atancalc - (Math.PI*2)));
this._y = circle_mc._y - ((circle_mc._width / 2) * Math.sin(this.atancalc - (Math.PI*2)));
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
ramp_mc.top = (ramp_mc._y - (ramp_mc._height / 2)) - 7.5;
ramp_mc.bottom = (ramp_mc._y + (ramp_mc._height / 2)) + 7.5;
ramp_mc.right = (ramp_mc._x + (ramp_mc._width / 2)) + 7.5;
ramp_mc.left = (ramp_mc._x - (ramp_mc._width / 2)) - 7.5;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 289;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
oldx = crosshair_mc._x;
oldy = crosshair_mc._y;
xdif = newx - oldx;
ydif = newy - oldy;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseUp = function () {
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 55
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 56
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 57
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 58
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("lvl6");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 59
function endlose() {
gotoAndStop ("lose6");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
gotoAndStop ("win6");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
this.avspeed = Math.sqrt((this.dxdif * this.dxdif) + (this.dydif * this.dydif));
this.distx = circle_mc._x - this._x;
this.disty = circle_mc._y - this._y;
this.dist = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
if (this.dist <= ((circle_mc._width / 2) + (this._width / 2))) {
this.angle = Math.atan2(this.disty, this.distx);
this.fx = circle_mc._x - (((circle_mc._width / 2) + (this._width / 2)) * Math.cos(this.angle));
this.fy = circle_mc._y - (((circle_mc._width / 2) + (this._width / 2)) * Math.sin(this.angle));
this._x = this.fx;
this._y = this.fy;
this.speed = Math.sqrt((this.dxdif * this.dxdif) + (this.dydif * this.dydif));
this.angle2 = (Math.PI*2) - this.angle;
this.o = Math.atan2(this.dydif, this.dxdif);
this.theta = ((Math.PI*2) - this.o) - (this.angle2 * 2);
this.dxdif = (-this.speed) * Math.cos(this.theta);
this.dydif = (-this.speed) * Math.sin(this.theta);
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
ramp_mc.top = (ramp_mc._y - (ramp_mc._height / 2)) - 7.5;
ramp_mc.bottom = (ramp_mc._y + (ramp_mc._height / 2)) + 7.5;
ramp_mc.right = (ramp_mc._x + (ramp_mc._width / 2)) + 7.5;
ramp_mc.left = (ramp_mc._x - (ramp_mc._width / 2)) - 7.5;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 289;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
oldx = crosshair_mc._x;
oldy = crosshair_mc._y;
xdif = newx - oldx;
ydif = newy - oldy;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseUp = function () {
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 59
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 60
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 61
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 62
maxTrackNum = 3;
s2_sound.setVolume(100);
var s1_sound = new Sound();
s1_sound.attachSound("track1");
var s2_sound = new Sound();
s2_sound.attachSound("track2");
var s3_sound = new Sound();
s3_sound.attachSound("track3");
var hit_sound = new Sound();
hit_sound.attachSound("hittarget");
if (trackNumber == 1) {
s1_sound.start();
trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (trackNumber == 2) {
s2_sound.start();
trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (trackNumber == 3) {
s3_sound.start();
trackname = "Paragonx9: Chaoz Devotion. (Pess spacebar to switch)";
}
s1_sound.onSoundComplete = function () {
stopAllSounds();
s1_sound.start();
};
s2_sound.onSoundComplete = function () {
stopAllSounds();
s2_sound.start();
};
s3_sound.onSoundComplete = function () {
stopAllSounds();
s3_sound.start();
};
s2_sound.setVolume(50);
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("llvl1");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 63
function endlose() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("llose1");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("lwin1");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
anchor_mc._visible = false;
mousedown = false;
anchorplaced = false;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 510;
xmax = 810;
xmin = 27.5;
ymax = 550;
ground_mc._x = 880;
ground_mc._y = 275;
target_mc._x = 126;
target_mc._y = 220;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
if (anchorplaced == true) {
anchor_mc._visible = true;
this.createEmptyMovieClip("line", -100);
line.lineStyle(1, 16777215, 100);
line.moveTo(anchor_mc._x, anchor_mc._y);
} else {
line.clear();
anchor_mc._visible = false;
}
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
line.lineTo(crosshair_mc._x, crosshair_mc._y);
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseDown = function () {
if ((score > 0) && (score < 600)) {
anchorplaced = true;
mousedown = true;
anchor_mc._x = _xmouse;
anchor_mc._y = _ymouse;
}
};
onMouseUp = function () {
anchorplaced = false;
mousedown = false;
anchor_mc._visible = false;
line.clear();
oldx = anchor_mc._x;
oldy = anchor_mc._y;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
xdif = (oldx - newx) / 4;
ydif = (oldy - newy) / 4;
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 63
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 64
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 65
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 66
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("llvl2");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 67
function endlose() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("llose2");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("lwin2");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y >= top) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y < (top + 15))) {
this._y = top;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y > (top + 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y > (top + 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
anchor_mc._visible = false;
mousedown = false;
anchorplaced = false;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
top = (wall_mc._y - (wall_mc._height / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 510;
xmax = 810;
xmin = 27.5;
ymax = 550;
ground_mc._x = 1000;
ground_mc._y = 275;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
if (anchorplaced == true) {
anchor_mc._visible = true;
this.createEmptyMovieClip("line", -100);
line.lineStyle(1, 16777215, 100);
line.moveTo(anchor_mc._x, anchor_mc._y);
} else {
line.clear();
anchor_mc._visible = false;
}
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
line.lineTo(crosshair_mc._x, crosshair_mc._y);
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseDown = function () {
if ((score > 0) && (score < 600)) {
anchorplaced = true;
mousedown = true;
anchor_mc._x = _xmouse;
anchor_mc._y = _ymouse;
}
};
onMouseUp = function () {
anchor_mc._visible = false;
anchorplaced = false;
mousedown = false;
line.clear();
oldx = anchor_mc._x;
oldy = anchor_mc._y;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
xdif = (oldx - newx) / 4;
ydif = (oldy - newy) / 4;
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 67
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 68
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 69
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 70
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("llvl3");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 71
function endlose() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("llose3");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("lwin3");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
anchor_mc._visible = false;
mousedown = false;
anchorplaced = false;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 510;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
if (anchorplaced == true) {
anchor_mc._visible = true;
this.createEmptyMovieClip("line", -100);
line.lineStyle(1, 16777215, 100);
line.moveTo(anchor_mc._x, anchor_mc._y);
} else {
line.clear();
anchor_mc._visible = false;
}
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
line.lineTo(crosshair_mc._x, crosshair_mc._y);
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseDown = function () {
if ((score > 0) && (score < 600)) {
anchorplaced = true;
mousedown = true;
anchor_mc._x = _xmouse;
anchor_mc._y = _ymouse;
}
};
onMouseUp = function () {
anchor_mc._visible = false;
anchorplaced = false;
mousedown = false;
line.clear();
oldx = anchor_mc._x;
oldy = anchor_mc._y;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
xdif = (oldx - newx) / 4;
ydif = (oldy - newy) / 4;
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 71
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 72
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 73
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 74
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("llvl4");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 75
function endlose() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("llose4");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("lwin4");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
if (this._y <= (this._x - 500)) {
this.x = this._x;
this._x = this.x;
this._y = this.x - 500;
this.dxdifr = this.dxdif;
this.dydifr = this.dydif;
this.dxdif = this.dydifr * 0.98;
this.dydif = this.dxdifr * 0.98;
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
anchor_mc._visible = false;
mousedown = false;
anchorplaced = false;
ramp_mc.top = (ramp_mc._y - (ramp_mc._height / 2)) - 7.5;
ramp_mc.bottom = (ramp_mc._y + (ramp_mc._height / 2)) + 7.5;
ramp_mc.right = (ramp_mc._x + (ramp_mc._width / 2)) + 7.5;
ramp_mc.left = (ramp_mc._x - (ramp_mc._width / 2)) - 7.5;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 289;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
if (anchorplaced == true) {
anchor_mc._visible = true;
this.createEmptyMovieClip("line", -100);
line.lineStyle(1, 16777215, 100);
line.moveTo(anchor_mc._x, anchor_mc._y);
} else {
line.clear();
anchor_mc._visible = false;
}
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
line.lineTo(crosshair_mc._x, crosshair_mc._y);
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseDown = function () {
if ((score > 0) && (score < 600)) {
anchorplaced = true;
mousedown = true;
anchor_mc._x = _xmouse;
anchor_mc._y = _ymouse;
}
};
onMouseUp = function () {
anchor_mc._visible = false;
anchorplaced = false;
mousedown = false;
line.clear();
oldx = anchor_mc._x;
oldy = anchor_mc._y;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
xdif = (oldx - newx) / 4;
ydif = (oldy - newy) / 4;
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 75
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 76
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 77
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 78
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("llvl5");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 79
function endlose() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("llose5");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("lwin5");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
this.avspeed = Math.sqrt((this.dxdif * this.dxdif) + (this.dydif * this.dydif));
this.distx = circle_mc._x - this._x;
this.disty = circle_mc._y - this._y;
this.dist = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
if (this.dist <= ((circle_mc._width / 2) + (this._width / 2))) {
this.atancalc = Math.atan2(this.disty, this.distx);
this.oangle = (Math.PI*2) - this.atancalc;
this.oangle2 = this.atancalc - (Math.PI*2);
this.angle = (Math.PI/2) - oangle;
this._x = circle_mc._x - ((circle_mc._width / 2) * Math.cos(this.atancalc - (Math.PI*2)));
this._y = circle_mc._y - ((circle_mc._width / 2) * Math.sin(this.atancalc - (Math.PI*2)));
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
anchor_mc._visible = false;
mousedown = false;
anchorplaced = false;
ramp_mc.top = (ramp_mc._y - (ramp_mc._height / 2)) - 7.5;
ramp_mc.bottom = (ramp_mc._y + (ramp_mc._height / 2)) + 7.5;
ramp_mc.right = (ramp_mc._x + (ramp_mc._width / 2)) + 7.5;
ramp_mc.left = (ramp_mc._x - (ramp_mc._width / 2)) - 7.5;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 289;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
if (anchorplaced == true) {
anchor_mc._visible = true;
this.createEmptyMovieClip("line", -100);
line.lineStyle(1, 16777215, 100);
line.moveTo(anchor_mc._x, anchor_mc._y);
} else {
line.clear();
anchor_mc._visible = false;
}
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
line.lineTo(crosshair_mc._x, crosshair_mc._y);
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseDown = function () {
if ((score > 0) && (score < 600)) {
anchorplaced = true;
mousedown = true;
anchor_mc._x = _xmouse;
anchor_mc._y = _ymouse;
}
};
onMouseUp = function () {
anchor_mc._visible = false;
anchorplaced = false;
mousedown = false;
line.clear();
oldx = anchor_mc._x;
oldy = anchor_mc._y;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
xdif = (oldx - newx) / 4;
ydif = (oldy - newy) / 4;
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 79
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 80
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 81
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 82
stop();
sec = 5;
b_txt._visible = false;
d_txt._visible = false;
b_txt._x = 310;
onEnterFrame = function () {
sec = sec - 0.0333333333333333;
if (sec > 3.5) {
b_txt._visible = true;
b_txt.text = "Get ready!";
}
if (sec < 3.5) {
seconds = Math.round(sec);
b_txt.text = "Starting in: " + seconds;
}
if (sec <= 0) {
gotoAndStop ("llvl6");
b_txt._visible = false;
onEnterFrame = null;
}
};
Frame 83
function endlose() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("llose6");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function endwin() {
removeMovieClip(anchor_mc);
line.clear();
gotoAndStop ("lwin6");
removeMovieClip(crosshair_mc);
removeMovieClip(bullet_mc);
end = true;
}
function bmove() {
if ((score > 0) && (score < 600)) {
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this.atotal = 100 - (5 * Math.sqrt((this.xvdif * this.xvdif) + (this.yvdif * this.yvdif)));
if (this.atotal > 0) {
this.hitscore = (this.atotal * 2) * bonuspower;
} else {
this.hitscore = 0;
}
hitscore = this.hitscore;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
var _local3 = target_mc._x - this._x;
var _local2 = target_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if ((this._x > xmax) || (this._y > ymax)) {
this.hitscore = 0;
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
this.removeMovieClip();
}
if (_local4 < tradius) {
score = score + Math.round(this.hitscore);
target_mc.play();
hit_sound.start();
if (bonuspower == 1) {
if (this.hitscore > maxscore) {
maxscore = this.hitscore;
}
} else if (this.hitscore > (maxscore * 1.5)) {
maxscore = this.hitscore / 1.5;
}
if (bonuspower == 1) {
if (this.hitscore >= 110) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
} else if (this.hitscore >= 165) {
bonus_mc.gotoAndPlay(1);
bonuspower = 1.5;
} else {
bonuspower = 1;
}
this.removeMovieClip();
}
if (this._x < xmin) {
this._x = xmin;
this.dxdif = this.dxdif * bounce;
}
if (end == true) {
this.removeMovieClip();
}
if ((((this._y <= bottom) && (this._x >= (left + 5))) && (this._x <= (right - 5))) && (this._y > (bottom - 15))) {
this._y = bottom + 1;
this.dydif = this.dydif * bounce;
} else if ((((this._x <= right) && (this._y < (bottom - 15))) && (this._x > left)) && (this._x > (right - 49))) {
this._x = right;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left) && (this._y < (bottom - 15))) && (this._x < right)) && (this._x < (left + 49))) {
this._x = left;
this.dxdif = this.dxdif * bounce;
}
if ((((this._y >= top) && (this._x >= (left2 + 5))) && (this._x <= (right2 - 5))) && (this._y < (top + 25))) {
this._y = top;
this.dydif = this.dydif * -1;
} else if ((((this._x <= right2) && (this._y > (top + 15))) && (this._x > left2)) && (this._x > (right2 - 49))) {
this._x = right2;
this.dxdif = this.dxdif * bounce;
} else if ((((this._x >= left2) && (this._y > (top + 15))) && (this._x < right2)) && (this._x < (left2 + 49))) {
this._x = left2;
this.dxdif = this.dxdif * bounce;
}
this.avspeed = Math.sqrt((this.dxdif * this.dxdif) + (this.dydif * this.dydif));
this.distx = circle_mc._x - this._x;
this.disty = circle_mc._y - this._y;
this.dist = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
if (this.dist <= ((circle_mc._width / 2) + (this._width / 2))) {
this.angle = Math.atan2(this.disty, this.distx);
this.fx = circle_mc._x - (((circle_mc._width / 2) + (this._width / 2)) * Math.cos(this.angle));
this.fy = circle_mc._y - (((circle_mc._width / 2) + (this._width / 2)) * Math.sin(this.angle));
this._x = this.fx;
this._y = this.fy;
this.speed = Math.sqrt((this.dxdif * this.dxdif) + (this.dydif * this.dydif));
this.angle2 = (Math.PI*2) - this.angle;
this.o = Math.atan2(this.dydif, this.dxdif);
this.theta = ((Math.PI*2) - this.o) - (this.angle2 * 2);
this.dxdif = (-this.speed) * Math.cos(this.theta);
this.dydif = (-this.speed) * Math.sin(this.theta);
}
} else {
this._alpha = this._alpha - 5;
this.dydif = this.dydif - gravity;
this.dxdif = this.dxdif * damp;
this.dydif = this.dydif * damp;
this.oldxv = this._x;
this.oldyv = this._y;
this.xvdif = this.newxv - this.oldxv;
this.yvdif = this.newyv - this.oldyv;
this.newxv = this._x;
this.newyv = this._y;
this._x = this._x - this.dxdif;
this._y = this._y - this.dydif;
if (this._alpha < 0) {
this.removeMovieClip();
}
}
}
stop();
Mouse.hide();
anchor_mc._visible = false;
mousedown = false;
anchorplaced = false;
ramp_mc.top = (ramp_mc._y - (ramp_mc._height / 2)) - 7.5;
ramp_mc.bottom = (ramp_mc._y + (ramp_mc._height / 2)) + 7.5;
ramp_mc.right = (ramp_mc._x + (ramp_mc._width / 2)) + 7.5;
ramp_mc.left = (ramp_mc._x - (ramp_mc._width / 2)) - 7.5;
right = (wall_mc._x + (wall_mc._width / 2)) + 7.5;
left = (wall_mc._x - (wall_mc._width / 2)) - 7.5;
bottom = (wall_mc._y + (wall_mc._height / 2)) + 7.5;
top = (wall2_mc._y - (wall2_mc._height / 2)) - 7.5;
right2 = (wall2_mc._x + (wall2_mc._width / 2)) + 7.5;
left2 = (wall2_mc._x - (wall2_mc._width / 2)) - 7.5;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(1);
bonuspower = 1;
end = false;
time = 0;
i = 0;
score = 300;
scoreloserate = level;
scorebar_mc._height = score / 10;
bounce = -0.5;
depth = 1;
deleted = 0;
deg = 57.2957795130823;
damp = 0.98;
gravity = 0.6;
tradius = 57.5;
pradius = 289;
xmax = 810;
xmin = 27.5;
ymax = 550;
crosshair_mc._x = 450;
crosshair_mc._y = 275;
atotal = (maxscore = 0);
onMouseMove = function () {
if (anchorplaced == true) {
anchor_mc._visible = true;
this.createEmptyMovieClip("line", -100);
line.lineStyle(1, 16777215, 100);
line.moveTo(anchor_mc._x, anchor_mc._y);
} else {
line.clear();
anchor_mc._visible = false;
}
Mouse.hide();
};
onEnterFrame = function () {
if (bonuspower == 1.5) {
bonus_mc._visible = true;
} else {
bonus_mc._visible = false;
}
timer = Math.round(time) + " Seconds";
maxscoretext = Math.round(maxscore);
scoredisplay = Math.round(score);
if (score > 0) {
score = score - scoreloserate;
} else {
score = 0;
}
if (score <= 600) {
scorebar_mc._height = score / 10;
} else {
score = 600;
scorebar_mc._height = score / 10;
}
px = ground_mc._x - _xmouse;
py = ground_mc._y - _ymouse;
pdist = Math.sqrt((px * px) + (py * py));
gxdif = _xmouse - ground_mc._x;
gydif = _ymouse - ground_mc._y;
angle = Math.atan2(gydif, gxdif);
ctrgtxdif = target_mc._x - crosshair_mc._x;
ctrgtydif = target_mc._y - crosshair_mc._y;
crosshair_mc._rotation = (Math.atan2(ctrgtydif, ctrgtxdif) * deg) + 180;
if (pdist < pradius) {
crosshair_mc._x = _xmouse;
crosshair_mc._y = _ymouse;
} else if (pdist > pradius) {
crosshair_mc._x = ground_mc._x + (pradius * Math.cos(angle));
crosshair_mc._y = ground_mc._y + (pradius * Math.sin(angle));
}
line.lineTo(crosshair_mc._x, crosshair_mc._y);
if ((score > 0) && (score < 600)) {
time = time + 0.0333333333333333;
}
if ((score <= 0) || (score >= 600)) {
i++;
scoreloserate = 0;
if (s2_sound.getVolume() > 30) {
s2_sound.setVolume(s2_sound.getVolume() - 5);
}
} else if (s2_sound.getVolume() < 100) {
s2_sound.setVolume(s2_sound.getVolume() + 5);
}
if ((score <= 0) && (i > 50)) {
endlose();
}
if ((score >= 600) && (i > 50)) {
endwin();
}
};
onMouseDown = function () {
if ((score > 0) && (score < 600)) {
anchorplaced = true;
mousedown = true;
anchor_mc._x = _xmouse;
anchor_mc._y = _ymouse;
}
};
onMouseUp = function () {
anchor_mc._visible = false;
anchorplaced = false;
mousedown = false;
line.clear();
oldx = anchor_mc._x;
oldy = anchor_mc._y;
newx = crosshair_mc._x;
newy = crosshair_mc._y;
xdif = (oldx - newx) / 4;
ydif = (oldy - newy) / 4;
if ((score > 0) && (score < 600)) {
var _local1 = attachMovie("bullet", "bullet" + depth, depth++);
crosshair_mc.swapDepths(depth + 1);
_local1.dydif = ydif;
_local1.dxdif = xdif;
_local1._x = crosshair_mc._x;
_local1._y = crosshair_mc._y;
_local1.onEnterFrame = bmove;
}
};
Instance of Symbol 54 MovieClip in Frame 83
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.trackNumber = _root.trackNumber + 1;
if (_root.trackNumber > _root.maxTrackNum) {
_root.trackNumber = 1;
}
if (_root.trackNumber == 1) {
stopAllSounds();
_root.s1_sound.start();
_root.trackname = "Loneroadie: Flicker of Light. (Pess spacebar to switch)";
}
if (_root.trackNumber == 2) {
stopAllSounds();
_root.s2_sound.start();
_root.trackname = "Paragonx9: Danger Ahead 3. (Pess spacebar to switch)";
}
if (_root.trackNumber == 3) {
stopAllSounds();
_root.s3_sound.start();
_root.trackname = "Paragonx9: Defcon Zero. (Pess spacebar to switch)";
}
}
}
Frame 84
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Frame 85
Mouse.show();
onMouseMove = function () {
Mouse.show();
};
onMouseMove = null;
onEnterFrame = null;
onMouseUp = null;
Symbol 32 Button
on (release) {
gotoAndPlay (15);
}
Symbol 34 Button
on (release) {
gotoAndStop (12);
}
Symbol 37 Button
on (release) {
gotoAndStop (13);
}
Symbol 39 Button
on (release) {
_root.level = 0.5;
gotoAndStop ("llvl5");
}
Symbol 44 Button
on (release) {
gotoAndStop (11);
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 64 Button
on (press) {
_root.crosshair_mc.removeMovieClip();
_root.bullet_mc.removeMovieClip();
_root.onMouseMove = null;
_root.onEnterFrame = null;
_root.onMouseUp = null;
}
on (release) {
_root.gotoAndStop(11);
}
Symbol 70 Button
on (release) {
_root.tute_mc._visible = false;
}
Symbol 84 Button
on (release) {
gotoAndStop (14);
}
Symbol 89 Button
on (release) {
_root.amode = "toss";
_root.gotoAndStop("level");
}
Symbol 91 Button
on (release) {
_root.amode = "drag";
_root.gotoAndStop("level");
}
Symbol 96 Button
on (release) {
_root.level = 0.5;
if (_root.amode == "toss") {
_root.gotoAndStop("l1");
} else if (_root.amode == "drag") {
_root.gotoAndStop("ll1");
}
}
Symbol 98 Button
on (release) {
_root.level = 1;
if (_root.amode == "toss") {
_root.gotoAndStop("l1");
} else if (_root.amode == "drag") {
_root.gotoAndStop("ll1");
}
}
Symbol 100 Button
on (release) {
_root.level = 1.5;
if (_root.amode == "toss") {
_root.gotoAndStop("l1");
} else if (_root.amode == "drag") {
_root.gotoAndStop("ll1");
}
}
Symbol 115 MovieClip Frame 1
function bubblemovement() {
this._y = this._y - 1;
this.h = this.h + 1;
this.vx = this.vx + ((Math.random() * 0.2) - 0.1);
this.vx = this.vx * 0.98;
this._x = this._x + this.vx;
if (((this.h > (_root.scorebar_mc._height / 1.1)) || (this._x > 13)) || (this._x < -13)) {
this.removeMovieClip();
}
}
dd = 1;
ii = 80;
onEnterFrame = function () {
ii++;
if (ii > 80) {
i = 0;
var _local1 = attachMovie("bubble", "b" + dd, dd++);
_local1._y = 0;
_local1._x = (Math.random() * 28) - 14;
_local1._width = (_local1._height = Math.random() * 3);
_local1.vx = 0;
_local1.h = 0;
_local1.onEnterFrame = bubblemovement;
}
};
Symbol 118 MovieClip Frame 25
gotoAndPlay (7);
Symbol 123 Button
on (release) {
gotoAndStop ("l1");
}
Symbol 124 Button
on (release) {
gotoAndStop (11);
}
Symbol 133 Button
on (release) {
gotoAndStop ("l2");
}
Symbol 143 Button
on (release) {
gotoAndStop ("l2");
}
Symbol 147 Button
on (release) {
gotoAndStop ("l3");
}
Symbol 159 Button
on (release) {
gotoAndStop ("l3");
}
Symbol 163 Button
on (release) {
gotoAndStop ("l4");
}
Symbol 174 Button
on (release) {
gotoAndStop ("l4");
}
Symbol 178 Button
on (release) {
gotoAndStop ("l5");
}
Symbol 188 Button
on (release) {
gotoAndStop ("l5");
}
Symbol 192 Button
on (release) {
gotoAndStop ("l6");
}
Symbol 202 Button
on (release) {
gotoAndStop ("l6");
}
Symbol 215 Button
on (release) {
gotoAndStop ("ll1");
}
Symbol 219 Button
on (release) {
gotoAndStop ("ll2");
}
Symbol 225 Button
on (release) {
gotoAndStop ("ll2");
}
Symbol 229 Button
on (release) {
gotoAndStop ("ll3");
}
Symbol 235 Button
on (release) {
gotoAndStop ("ll3");
}
Symbol 239 Button
on (release) {
gotoAndStop ("ll4");
}
Symbol 245 Button
on (release) {
gotoAndStop ("ll4");
}
Symbol 249 Button
on (release) {
gotoAndStop ("ll5");
}
Symbol 255 Button
on (release) {
gotoAndStop ("ll5");
}
Symbol 259 Button
on (release) {
gotoAndStop ("ll6");
}
Symbol 265 Button
on (release) {
gotoAndStop ("ll6");
}