Frame 1
stop();
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.smcc-canossian.org/colintso", "_blank");
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("2008 Colin Productions Co.", deadClick);
copyrightNotice.separatorBefore = true;
var mySiteLink = new ContextMenuItem("Colin's Home Page", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
Frame 30
stop();
Instance of Symbol 126 MovieClip in Frame 177
on (press) {
getURL ("http://newgrounds.com/refer/colintso", "_blank");
}
Instance of Symbol 126 MovieClip in Frame 178
on (press) {
getURL ("http://www.albinoblacksheep.com/", "_blank");
}
Frame 565
_root.pos = sharedobject.getLocal("game");
_root.level = _root.pos.data.level;
if (level == undefined) {
level = 1;
}
if (story == undefined) {
story = 1;
}
fly = true;
Frame 580
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
AI = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel", "tunnel" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
if (this._y < (ship._y - 10)) {
engines = true;
smoke_interval = 5;
}
if (this._y > (ship._y + 10)) {
engines = false;
smoke_interval = 1000;
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 250) {
tunnel_height = 250;
}
if (tunnel_height > 281) {
tunnel_height = 281;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (((((this._y > 790) or (this._y < 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
score = distance;
frames_passed = 0;
tunnel_height = 281;
engines = false;
}
};
ship._alpha = 100;
tunnel_movie._alpha = 100;
smoke._alpha + 24;
Instance of Symbol 122 MovieClip in Frame 580
on (press) {
getURL ("http://newgrounds.com/refer/colintso", "_blank");
}
Frame 594
stop();
Frame 624
stop();
Frame 654
gotoAndPlay (594);
ship._alpha = 100;
tunnel_movie._alpha = 100;
smoke._alpha + 24;
Frame 684
stop();
Frame 714
gotoAndPlay (594);
ship._alpha = 100;
tunnel_movie._alpha = 100;
smoke._alpha + 24;
Frame 744
stop();
Frame 774
gotoAndPlay (594);
ship._alpha = 100;
tunnel_movie._alpha = 100;
smoke._alpha + 24;
Frame 775
if (level == 2) {
gotoAndStop (776);
} else if (level == 1) {
gotoAndStop (775);
} else if (level == 3) {
gotoAndStop (777);
}
stop();
Frame 777
stop();
Frame 778
trace(story);
if ((story = undefined)) {
story = 1;
}
if (story == 1) {
gotoAndStop (778);
} else if (story == 2) {
gotoAndStop (779);
} else if (story == 3) {
gotoAndStop (780);
}
stop();
Frame 779
stop();
stop();
Frame 780
stop();
Frame 781
timer = 0;
talk = 1;
talked = 1;
_root.attachMovie("empty", "empty", _root.getNextHighestDepth(), {_x:150, _y:200});
empty.onEnterFrame = function () {
timer = timer + 1;
if (Key.isDown(32) && (timer > 35)) {
talk = talk + 1;
timer = 0;
}
if ((talk == 1) && (talked == 1)) {
talk1 = _root.attachMovie("part_1_story_1", "part_1_story_1" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 2) && (talked == 2)) {
talk1.removeMovieClip();
talk2 = _root.attachMovie("part_1_story_2", "part_1_story_2" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if ((talk == 3) && (talked == 1)) {
talk2.removeMovieClip();
talk3 = _root.attachMovie("part_1_story_3", "part_1_story_3" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 4) && (talked == 2)) {
talk3.removeMovieClip();
talk4 = _root.attachMovie("part_1_story_4", "part_1_story_4" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if ((talk == 5) && (talked == 1)) {
talk4.removeMovieClip();
talk5 = _root.attachMovie("part_1_story_5", "part_1_story_5" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 6) && (talked == 2)) {
talk5.removeMovieClip();
talk6 = _root.attachMovie("part_1_story_6", "part_1_story_6" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if ((talk == 7) && (talked == 1)) {
talk6.removeMovieClip();
talk7 = _root.attachMovie("part_1_story_7", "part_1_story_7" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 8) && (talked == 2)) {
talk7.removeMovieClip();
talk8 = _root.attachMovie("part_1_story_8", "part_1_story_8" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if (talk == 9) {
talk8.removeMovieClip();
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
gotoAndPlay (782);
}
trace(talk);
};
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
AI = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("empty", "empty" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
if (tunnel_height < (ship._y - 10)) {
engines = true;
smoke_interval = 5;
}
if (tunnel_height > (ship._y + 10)) {
engines = false;
smoke_interval = 1000;
}
};
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
};
stop();
Frame 782
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
empty.removeMovieClip();
Frame 931
gotoAndPlay (932);
Frame 932
timer = 0;
talk = 9;
talked = 1;
_root.attachMovie("empty", "empty", _root.getNextHighestDepth(), {_x:150, _y:200});
empty.onEnterFrame = function () {
timer = timer + 1;
if (Key.isDown(32) && (timer > 35)) {
talk = talk + 1;
timer = 0;
}
if ((talk == 9) && (talked == 1)) {
talk1 = _root.attachMovie("part_1_story_9", "part_1_story_9" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 10) && (talked == 2)) {
talk1.removeMovieClip();
talk2 = _root.attachMovie("part_1_story_10", "part_1_story_10" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if ((talk == 11) && (talked == 1)) {
talk2.removeMovieClip();
talk3 = _root.attachMovie("part_1_story_11", "part_1_story_11" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if (talk == 12) {
talk3.removeMovieClip();
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
fadeout.removeMovieClip();
gotoAndPlay (936);
}
trace(talk);
};
stop();
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
AI = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.attachMovie("fadeout", "fadeout", _root.getNextHighestDepth(), {_x:0, _y:0});
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel", "tunnel" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
if (this._y < (ship._y - 10)) {
engines = true;
smoke_interval = 5;
}
if (this._y > (ship._y + 10)) {
engines = false;
smoke_interval = 1000;
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 250) {
tunnel_height = 250;
}
if (tunnel_height > 281) {
tunnel_height = 281;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (((((this._y > 790) or (this._y < 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
score = distance;
frames_passed = 0;
tunnel_height = 281;
engines = false;
}
};
Frame 933
timer = 0;
talk = 9;
talked = 1;
_root.attachMovie("empty", "empty", _root.getNextHighestDepth(), {_x:150, _y:200});
empty.onEnterFrame = function () {
timer = timer + 1;
if (Key.isDown(32) && (timer > 35)) {
talk = talk + 1;
timer = 0;
}
if ((talk == 9) && (talked == 1)) {
talk1 = _root.attachMovie("part_2_story_1", "part_2_story_1" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 10) && (talked == 2)) {
talk1.removeMovieClip();
talk2 = _root.attachMovie("part_2_story_2", "part_2_story_2" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if ((talk == 11) && (talked == 1)) {
talk2.removeMovieClip();
talk3 = _root.attachMovie("part_2_story_3", "part_2_story_3" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if (talk == 12) {
talk3.removeMovieClip();
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
fadeout.removeMovieClip();
gotoAndPlay (938);
}
trace(talk);
};
stop();
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
AI = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.attachMovie("fadeout", "fadeout", _root.getNextHighestDepth(), {_x:0, _y:0});
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel", "tunnel" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
if (this._y < (ship._y - 10)) {
engines = true;
smoke_interval = 5;
}
if (this._y > (ship._y + 10)) {
engines = false;
smoke_interval = 1000;
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 250) {
tunnel_height = 250;
}
if (tunnel_height > 281) {
tunnel_height = 281;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (((((this._y > 790) or (this._y < 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
score = distance;
frames_passed = 0;
tunnel_height = 281;
engines = false;
}
};
Frame 934
timer = 0;
talk = 9;
talked = 1;
_root.attachMovie("empty", "empty", _root.getNextHighestDepth(), {_x:150, _y:200});
empty.onEnterFrame = function () {
timer = timer + 1;
if (Key.isDown(32) && (timer > 35)) {
talk = talk + 1;
timer = 0;
}
if ((talk == 9) && (talked == 1)) {
talk1 = _root.attachMovie("part_3_story_1", "part_3_story_1" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 10) && (talked == 2)) {
talk1.removeMovieClip();
talk2 = _root.attachMovie("part_3_story_2", "part_3_story_2" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if ((talk == 11) && (talked == 1)) {
talk2.removeMovieClip();
talk3 = _root.attachMovie("part_3_story_3", "part_3_story_3" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if (talk == 12) {
talk3.removeMovieClip();
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
fadeout.removeMovieClip();
gotoAndPlay (939);
}
trace(talk);
};
stop();
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
AI = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.attachMovie("fadeout", "fadeout", _root.getNextHighestDepth(), {_x:0, _y:0});
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel", "tunnel" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
if (this._y < (ship._y - 10)) {
engines = true;
smoke_interval = 5;
}
if (this._y > (ship._y + 10)) {
engines = false;
smoke_interval = 1000;
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 250) {
tunnel_height = 250;
}
if (tunnel_height > 281) {
tunnel_height = 281;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (((((this._y > 790) or (this._y < 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
score = distance;
frames_passed = 0;
tunnel_height = 281;
engines = false;
}
};
Frame 935
timer = 0;
talk = 9;
talked = 1;
_root.attachMovie("empty", "empty", _root.getNextHighestDepth(), {_x:150, _y:200});
empty.onEnterFrame = function () {
timer = timer + 1;
if (Key.isDown(32) && (timer > 35)) {
talk = talk + 1;
timer = 0;
}
if ((talk == 9) && (talked == 1)) {
talk1 = _root.attachMovie("storyend_1", "storyend_1" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if ((talk == 10) && (talked == 2)) {
talk1.removeMovieClip();
talk2 = _root.attachMovie("storyend_2", "storyend_2" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 1;
}
if ((talk == 11) && (talked == 1)) {
talk2.removeMovieClip();
talk3 = _root.attachMovie("storyend_3", "storyend_3" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:494.9, _y:672.8});
talked = 2;
}
if (talk == 12) {
talk3.removeMovieClip();
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
fadeout.removeMovieClip();
gotoAndPlay (950);
}
trace(talk);
};
stop();
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
AI = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.attachMovie("fadeout", "fadeout", _root.getNextHighestDepth(), {_x:0, _y:0});
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("empty", "empty" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
if (this._y < (ship._y - 10)) {
engines = true;
smoke_interval = 5;
}
if (this._y > (ship._y + 10)) {
engines = false;
smoke_interval = 1000;
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 250) {
tunnel_height = 250;
}
if (tunnel_height > 281) {
tunnel_height = 281;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (((((this._y > 790) or (this._y < 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
score = distance;
frames_passed = 0;
tunnel_height = 281;
engines = false;
}
};
Frame 936
empty.removeMovieClip();
fadeout.removeMovieClip();
stop();
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var rock_filter = (new flash.filters.GlowFilter(39372, 0.8, 4, 4, 2, 3, false, false));
var man_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var alien_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var fix_filter = (new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
timer = 0;
hp = 100;
hp_max = 100;
timer2 = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
bonus = " ";
shield_text = " ";
unlock = " ";
storymode = 1;
say = 1;
if (score > 10000) {
rock_freq = 200;
} else if (score < 10000) {
rock_freq = 100;
}
man_freq = 25;
alien_freq = 25;
fix_freq = 5;
engines = false;
game = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("deadly_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("fix_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if ((Math.random() * 1000) < rock_freq) {
rock = deadly_movie.attachMovie("rock", "rock" + deadly_movie.getNextHighestDepth(), deadly_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50, _rotation:Math.random() * 360});
rock.filters = new Array(rock_filter);
rock.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x3 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y3 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist3 = Math.sqrt((dist_x3 * dist_x3) + (dist_y3 * dist_y3));
if (dist3 < 26.5) {
hp = hp - 25;
ship._alpha = hp;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "-25";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < fix_freq) {
fix = fix_movie.attachMovie("fix", "fix" + fix_movie.getNextHighestDepth(), fix_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
fix.filters = new Array(fix_filter);
fix.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x4 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y4 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist4 = Math.sqrt((dist_x4 * dist_x4) + (dist_y4 * dist_y4));
if (dist4 < 26.5) {
hp = hp_max;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "Shields Full!";
ship._alpha = hp;
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((game = true)) {
score = score + 0.001;
timer = timer + 1;
timer2 = timer2 + 1;
score = Math.floor(score);
if (score > highscore) {
highscore = score;
}
}
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel", "tunnel" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 60) {
tunnel_height = 60;
}
if (tunnel_height > 520) {
tunnel_height = 520;
}
trace(level);
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if ((score < 10000) && (say == 1)) {
obj1 = _root.attachMovie("obj1", "obj1" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:0, _y:350});
obj1.onEnterFrame = function () {
this._alpha = this._alpha - 0.5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
say = 2;
};
if ((score < 10000) && (say == 2)) {
obj1._alpha = obj1._alpha - 0.5;
if (obj1._alpha <= 0) {
this.removeMovieClip();
}
say = 2;
}
}
if (score >= 10000) {
story = 2;
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
smoke.removeMovieClip();
ship.removeMovieClip();
gotoAndPlay (949);
}
if ((((((this._y > 790) or (this._y < 0)) or (hp <= 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
good_movie.removeMovieClip();
bad_movie.removeMovieClip();
fix_movie.removeMovieClip();
smoke.removeMovieClip();
ship.removeMovieClip();
un.removeMovieClip();
gotoAndPlay (947);
}
};
if ((game = true)) {
_root.onMouseDown = function () {
engines = true;
smoke_interval = 5;
};
}
if ((game = true)) {
_root.onMouseUp = function () {
engines = false;
smoke_interval = 1000;
};
}
Frame 938
stop();
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
empty.removeMovieClip();
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var rock_filter = (new flash.filters.GlowFilter(39372, 0.8, 4, 4, 2, 3, false, false));
var man_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var alien_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var fix_filter = (new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
timer = 0;
hp = 100;
hp_max = 100;
timer2 = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
bonus = " ";
shield_text = " ";
storymode = 2;
rock_freq = 25;
man_freq = 50;
alien_freq = 10;
fix_freq = 25;
engines = false;
game = true;
say = 1;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("deadly_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("good_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("bad_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("fix_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if ((Math.random() * 1000) < rock_freq) {
rock = deadly_movie.attachMovie("rock", "rock" + deadly_movie.getNextHighestDepth(), deadly_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50, _rotation:Math.random() * 360});
rock.filters = new Array(rock_filter);
rock.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x3 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y3 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist3 = Math.sqrt((dist_x3 * dist_x3) + (dist_y3 * dist_y3));
if (dist3 < 26.5) {
hp = hp - 25;
ship._alpha = hp;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "-25";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < fix_freq) {
fix = fix_movie.attachMovie("fix", "fix" + fix_movie.getNextHighestDepth(), fix_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
fix.filters = new Array(fix_filter);
fix.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x4 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y4 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist4 = Math.sqrt((dist_x4 * dist_x4) + (dist_y4 * dist_y4));
if (dist4 < 26.5) {
hp = hp_max;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "Shields Full!";
ship._alpha = hp;
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < man_freq) {
man = good_movie.attachMovie("man", "man" + good_movie.getNextHighestDepth(), good_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
man.filters = new Array(man_filter);
man.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y = (ship._y + (28 * Math.sin(angle))) - this._y;
dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (dist < 26.5) {
score = score + 100;
timer = 0;
timer = timer + 1;
bonus = "+100";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if ((Math.random() * 1000) < alien_freq) {
alien = bad_movie.attachMovie("alien", "alien" + bad_movie.getNextHighestDepth(), bad_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
alien.filters = new Array(alien_filter);
alien.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x2 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y2 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist2 = Math.sqrt((dist_x2 * dist_x2) + (dist_y2 * dist_y2));
if (dist2 < 26.5) {
score = score - 1000;
timer = 0;
timer = timer + 1;
bonus = "-1000";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if ((game = true)) {
score = score + 0.001;
timer = timer + 1;
timer2 = timer2 + 1;
trace(story);
score = Math.floor(score);
if (score > highscore) {
highscore = score;
}
}
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
if (mousehide == true) {
Mouse.hide();
} else if (mousehide == false) {
Mouse.show();
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel2", "tunnel2" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 60) {
tunnel_height = 60;
}
if (tunnel_height > 520) {
tunnel_height = 520;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if ((score < 30000) && (say == 1)) {
obj2 = _root.attachMovie("obj2", "obj2" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:0, _y:350});
obj2.onEnterFrame = function () {
this._alpha = this._alpha - 0.5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
say = 2;
};
if ((score < 20000) && (say == 2)) {
obj2._alpha = obj2._alpha - 0.5;
if (obj2._alpha <= 0) {
this.removeMovieClip();
}
say = 2;
}
}
if (score >= 20000) {
story = 3;
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
smoke.removeMovieClip();
ship.removeMovieClip();
gotoAndPlay (949);
story = 3;
}
if ((((((this._y > 790) or (this._y < 0)) or (hp <= 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
good_movie.removeMovieClip();
bad_movie.removeMovieClip();
fix_movie.removeMovieClip();
ship.removeMovieClip();
gotoAndPlay (947);
}
};
if ((game = true)) {
_root.onMouseDown = function () {
engines = true;
smoke_interval = 5;
};
}
if ((game = true)) {
_root.onMouseUp = function () {
engines = false;
smoke_interval = 1000;
};
}
stop();
Frame 939
stop();
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var rock_filter = (new flash.filters.GlowFilter(39372, 0.8, 4, 4, 2, 3, false, false));
var man_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var alien_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var fix_filter = (new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
timer = 0;
hp = 100;
hp_max = 100;
timer2 = 0;
timer3 = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
bonus = " ";
shield_text = " ";
unlock = " ";
gamemode = 3;
fly = true;
rock_freq = 10;
man_freq = 25;
alien_freq = 10;
fix_freq = 10;
engines = false;
game = true;
storymode = 3;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("deadly_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("good_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("bad_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("fix_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (((Math.random() * 1000) < rock_freq) && ((fly = true))) {
rock = deadly_movie.attachMovie("rock", "rock" + deadly_movie.getNextHighestDepth(), deadly_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50, _rotation:Math.random() * 360});
rock.filters = new Array(rock_filter);
rock.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x3 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y3 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist3 = Math.sqrt((dist_x3 * dist_x3) + (dist_y3 * dist_y3));
if (dist3 < 26.5) {
hp = hp - 25;
ship._alpha = hp;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "-25";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < fix_freq) {
fix = fix_movie.attachMovie("fix", "fix" + fix_movie.getNextHighestDepth(), fix_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
fix.filters = new Array(fix_filter);
fix.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x4 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y4 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist4 = Math.sqrt((dist_x4 * dist_x4) + (dist_y4 * dist_y4));
if (dist4 < 26.5) {
hp = hp_max;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "Shields Full!";
ship._alpha = hp;
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if (((Math.random() * 1000) < man_freq) && ((fly = true))) {
man = good_movie.attachMovie("man", "man" + good_movie.getNextHighestDepth(), good_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
man.filters = new Array(man_filter);
man.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y = (ship._y + (28 * Math.sin(angle))) - this._y;
dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (dist < 26.5) {
score = score + 100;
timer = 0;
timer = timer + 1;
bonus = "+100";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if (((Math.random() * 1000) < alien_freq) && ((fly = true))) {
alien = bad_movie.attachMovie("alien", "alien" + bad_movie.getNextHighestDepth(), bad_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
alien.filters = new Array(alien_filter);
alien.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x2 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y2 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist2 = Math.sqrt((dist_x2 * dist_x2) + (dist_y2 * dist_y2));
if (dist2 < 26.5) {
score = score - 1000;
timer = 0;
timer = timer + 1;
bonus = "-1000";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if (((game = true)) && ((fly = true))) {
score = score + 0.001;
timer = timer + 1;
timer2 = timer2 + 1;
xspeed = xspeed + 0.01;
score = Math.floor(score);
if (score > highscore) {
highscore = score;
}
}
if (engines && ((fly = true))) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
if (mousehide == true) {
Mouse.hide();
} else if (mousehide == false) {
Mouse.show();
}
_root.pos = sharedobject.getLocal("game");
_root.ship._y = _root.pos.data.ship._y;
yspeed = yspeed + gravity;
if (((game = true)) && ((fly = true))) {
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
}
if (distance > 50) {
step = distance - 50;
wall.filters = new Array(smoke_filter);
wall = tunnel_movie.attachMovie("tunnel3", "tunnel3" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 60) {
tunnel_height = 60;
}
if (tunnel_height > 520) {
tunnel_height = 520;
}
trace(level);
distance = step;
}
if (xspeed < 15) {
score = score + 10;
} else if (xspeed < 20) {
score = score + 20;
} else if (xspeed < 30) {
score = score + 30;
} else if (xspeed <= 50) {
score = score + 50;
}
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
trace("fly = " + fly);
trace("engines = " + engines);
trace("xspeed = " + xspeed);
if (Key.isDown(80)) {
if ((fly = true)) {
timer3 = 0;
_root.pos = sharedobject.getLocal("game");
_root.thrust = _root.pos.data.thrust;
_root.pos.data.yspeed = _root.yspeed;
_root.pos.data.xspeed = _root.xspeed;
_root.pos.data.distance = _root.distance;
_root.pos.data.smoke_interval = _root.smoke_interval;
_root.pos.data.gravity = _root.gravity;
_root.pos.data.engines = _root.engines;
_root.pos.data.rock_freq = _root.rock_freq;
alien_freq = 0;
rock_freq = 0;
fix_freq = 0;
man_freq = 0;
thrust = 0;
gravity = 0;
yspeed = 0;
xspeed = 0;
distance = 0;
smoke_interval = 1000;
engines = false;
fly = false;
} else {
fly = true;
timer3 = 0;
_root.pos = sharedobject.getLocal("game");
_root.thrust = _root.pos.data.thrust;
_root.yspeed = _root.pos.data.yspeed;
_root.xspeed = _root.pos.data.xspeed;
_root.distance = _root.pos.data.distance;
_root.smoke_interval = _root.pos.data.smoke_interval;
_root.gravity = _root.pos.data.gravity;
_root.engines = _root.pos.data.engines;
_root.rock_freq = _root.pos.data.rock_freq;
man_freq = 25;
alien_freq = 25;
fix_freq = 5;
}
}
if ((score < 30000) && (say == 1)) {
obj3 = _root.attachMovie("obj3", "obj3" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:0, _y:350});
obj3.onEnterFrame = function () {
this._alpha = this._alpha - 0.5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
say = 2;
};
if ((score < 30000) && (say == 2)) {
obj3._alpha = obj3._alpha - 0.5;
if (obj3._alpha <= 0) {
this.removeMovieClip();
}
say = 2;
}
}
if (score >= 30000) {
story = 3;
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
smoke.removeMovieClip();
ship.removeMovieClip();
gotoAndPlay (935);
}
if ((((((this._y > 790) or (this._y < 0)) or (hp <= 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
good_movie.removeMovieClip();
bad_movie.removeMovieClip();
fix_movie.removeMovieClip();
smoke.removeMovieClip();
ship.removeMovieClip();
un.removeMovieClip();
gotoAndPlay (947);
if ((game = true)) {
timer3 = timer3 + 1;
}
}
};
_root.onMouseDown = function () {
if (((game = true)) && ((fly = true))) {
engines = true;
smoke_interval = 5;
}
_root.onMouseUp = function () {
if (((game = true)) && ((fly = true))) {
engines = false;
smoke_interval = 1000;
}
};
};
Frame 940
stop();
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var rock_filter = (new flash.filters.GlowFilter(39372, 0.8, 4, 4, 2, 3, false, false));
var man_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var alien_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var fix_filter = (new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
timer = 0;
hp = 100;
hp_max = 100;
timer2 = 0;
timer3 = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
bonus = " ";
shield_text = " ";
unlock = " ";
gamemode = 3;
fly = true;
if (score > 10000) {
rock_freq = 200;
} else if (score < 10000) {
rock_freq = 100;
}
man_freq = 25;
alien_freq = 25;
fix_freq = 5;
engines = false;
game = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("deadly_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("good_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("bad_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("fix_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (((Math.random() * 1000) < rock_freq) && ((fly = true))) {
rock = deadly_movie.attachMovie("rock", "rock" + deadly_movie.getNextHighestDepth(), deadly_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50, _rotation:Math.random() * 360});
rock.filters = new Array(rock_filter);
rock.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x3 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y3 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist3 = Math.sqrt((dist_x3 * dist_x3) + (dist_y3 * dist_y3));
if (dist3 < 26.5) {
hp = hp - 25;
ship._alpha = hp;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "-25";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < fix_freq) {
fix = fix_movie.attachMovie("fix", "fix" + fix_movie.getNextHighestDepth(), fix_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
fix.filters = new Array(fix_filter);
fix.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x4 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y4 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist4 = Math.sqrt((dist_x4 * dist_x4) + (dist_y4 * dist_y4));
if (dist4 < 26.5) {
hp = hp_max;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "Shields Full!";
ship._alpha = hp;
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if (((Math.random() * 1000) < man_freq) && ((fly = true))) {
man = good_movie.attachMovie("man", "man" + good_movie.getNextHighestDepth(), good_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
man.filters = new Array(man_filter);
man.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y = (ship._y + (28 * Math.sin(angle))) - this._y;
dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (dist < 26.5) {
score = score + 100;
timer = 0;
timer = timer + 1;
bonus = "+100";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if (((Math.random() * 1000) < alien_freq) && ((fly = true))) {
alien = bad_movie.attachMovie("alien", "alien" + bad_movie.getNextHighestDepth(), bad_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
alien.filters = new Array(alien_filter);
alien.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x2 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y2 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist2 = Math.sqrt((dist_x2 * dist_x2) + (dist_y2 * dist_y2));
if (dist2 < 26.5) {
score = score - 1000;
timer = 0;
timer = timer + 1;
bonus = "-1000";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if (((game = true)) && ((fly = true))) {
score = score + 0.001;
timer = timer + 1;
timer2 = timer2 + 1;
score = Math.floor(score);
if (score > highscore) {
highscore = score;
}
}
if (engines && ((fly = true))) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
if (mousehide == true) {
Mouse.hide();
} else if (mousehide == false) {
Mouse.show();
}
_root.pos = sharedobject.getLocal("game");
_root.ship._y = _root.pos.data.ship._y;
yspeed = yspeed + gravity;
if (((game = true)) && ((fly = true))) {
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
}
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel", "tunnel" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 60) {
tunnel_height = 60;
}
if (tunnel_height > 520) {
tunnel_height = 520;
}
trace(level);
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if ((score == 10000) && (level == 1)) {
un = _root.attachMovie("unlocked", "unlocked" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:0, _y:350});
un.onEnterFrame = function () {
this._alpha = this._alpha - 2.5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
level = 2;
};
if ((score >= 10000) && (level == 2)) {
un._alpha = un._alpha - 2.5;
if (un._alpha <= 0) {
this.removeMovieClip();
}
level = 2;
}
}
trace("fly = " + fly);
trace("engines = " + engines);
trace("xspeed = " + xspeed);
if (Key.isDown(80)) {
if ((fly = true)) {
timer3 = 0;
_root.pos = sharedobject.getLocal("game");
_root.thrust = _root.pos.data.thrust;
_root.pos.data.yspeed = _root.yspeed;
_root.pos.data.xspeed = _root.xspeed;
_root.pos.data.distance = _root.distance;
_root.pos.data.smoke_interval = _root.smoke_interval;
_root.pos.data.gravity = _root.gravity;
_root.pos.data.engines = _root.engines;
_root.pos.data.rock_freq = _root.rock_freq;
alien_freq = 0;
rock_freq = 0;
fix_freq = 0;
man_freq = 0;
thrust = 0;
gravity = 0;
yspeed = 0;
xspeed = 0;
distance = 0;
smoke_interval = 1000;
engines = false;
fly = false;
} else {
fly = true;
timer3 = 0;
_root.pos = sharedobject.getLocal("game");
_root.thrust = _root.pos.data.thrust;
_root.yspeed = _root.pos.data.yspeed;
_root.xspeed = _root.pos.data.xspeed;
_root.distance = _root.pos.data.distance;
_root.smoke_interval = _root.pos.data.smoke_interval;
_root.gravity = _root.pos.data.gravity;
_root.engines = _root.pos.data.engines;
_root.rock_freq = _root.pos.data.rock_freq;
man_freq = 25;
alien_freq = 25;
fix_freq = 5;
}
}
if ((((((this._y > 790) or (this._y < 0)) or (hp <= 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
good_movie.removeMovieClip();
bad_movie.removeMovieClip();
fix_movie.removeMovieClip();
smoke.removeMovieClip();
ship.removeMovieClip();
un.removeMovieClip();
gotoAndPlay (944);
if ((game = true)) {
timer3 = timer3 + 1;
}
if (xspeed >= 50) {
xspeed = 50;
}
}
};
_root.onMouseDown = function () {
if (((game = true)) && ((fly = true))) {
engines = true;
smoke_interval = 5;
}
_root.onMouseUp = function () {
if (((game = true)) && ((fly = true))) {
engines = false;
smoke_interval = 1000;
}
};
};
_root.attachMovie("empty", "empty", _root.getNextHighestDepth(), {_x:150, _y:200});
empty.onEnterFrame = function () {
};
Frame 941
stop();
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var rock_filter = (new flash.filters.GlowFilter(39372, 0.8, 4, 4, 2, 3, false, false));
var man_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var alien_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var fix_filter = (new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
timer = 0;
hp = 100;
hp_max = 100;
timer2 = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
bonus = " ";
shield_text = " ";
gamemode = 2;
rock_freq = 25;
man_freq = 50;
alien_freq = 10;
fix_freq = 25;
engines = false;
game = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("deadly_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("good_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("bad_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("fix_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if ((Math.random() * 1000) < rock_freq) {
rock = deadly_movie.attachMovie("rock", "rock" + deadly_movie.getNextHighestDepth(), deadly_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50, _rotation:Math.random() * 360});
rock.filters = new Array(rock_filter);
rock.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x3 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y3 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist3 = Math.sqrt((dist_x3 * dist_x3) + (dist_y3 * dist_y3));
if (dist3 < 26.5) {
hp = hp - 25;
ship._alpha = hp;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "-25";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < fix_freq) {
fix = fix_movie.attachMovie("fix", "fix" + fix_movie.getNextHighestDepth(), fix_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
fix.filters = new Array(fix_filter);
fix.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x4 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y4 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist4 = Math.sqrt((dist_x4 * dist_x4) + (dist_y4 * dist_y4));
if (dist4 < 26.5) {
hp = hp_max;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "Shields Full!";
ship._alpha = hp;
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < man_freq) {
man = good_movie.attachMovie("man", "man" + good_movie.getNextHighestDepth(), good_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
man.filters = new Array(man_filter);
man.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y = (ship._y + (28 * Math.sin(angle))) - this._y;
dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (dist < 26.5) {
score = score + 100;
timer = 0;
timer = timer + 1;
bonus = "+100";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if ((Math.random() * 1000) < alien_freq) {
alien = bad_movie.attachMovie("alien", "alien" + bad_movie.getNextHighestDepth(), bad_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
alien.filters = new Array(alien_filter);
alien.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x2 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y2 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist2 = Math.sqrt((dist_x2 * dist_x2) + (dist_y2 * dist_y2));
if (dist2 < 26.5) {
score = score - 1000;
timer = 0;
timer = timer + 1;
bonus = "-1000";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if ((game = true)) {
score = score + 0.001;
timer = timer + 1;
timer2 = timer2 + 1;
score = Math.floor(score);
if (score > highscore) {
highscore = score;
}
}
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
if (mousehide == true) {
Mouse.hide();
} else if (mousehide == false) {
Mouse.show();
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel2", "tunnel2" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 60) {
tunnel_height = 60;
}
if (tunnel_height > 520) {
tunnel_height = 520;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if ((score == 20000) && (level == 2)) {
un2 = _root.attachMovie("unlocked2", "unlocked2" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:0, _y:350});
un2.onEnterFrame = function () {
this._alpha = this._alpha - 2.5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
level = 3;
};
if ((score >= 20000) && (level == 3)) {
un2._alpha = un2._alpha - 2.5;
if (un._alpha <= 0) {
this.removeMovieClip();
}
level = 3;
}
}
if ((((((this._y > 790) or (this._y < 0)) or (hp <= 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
good_movie.removeMovieClip();
bad_movie.removeMovieClip();
fix_movie.removeMovieClip();
ship.removeMovieClip();
gotoAndPlay (944);
}
};
if ((game = true)) {
_root.onMouseDown = function () {
engines = true;
smoke_interval = 5;
};
}
if ((game = true)) {
_root.onMouseUp = function () {
engines = false;
smoke_interval = 1000;
};
}
stop();
Frame 942
stop();
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var rock_filter = (new flash.filters.GlowFilter(39372, 0.8, 4, 4, 2, 3, false, false));
var man_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
var alien_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var fix_filter = (new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
timer = 0;
hp = 100;
hp_max = 100;
timer2 = 0;
timer3 = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
bonus = " ";
shield_text = " ";
unlock = " ";
gamemode = 1;
fly = true;
rock_freq = 10;
man_freq = 25;
alien_freq = 10;
fix_freq = 10;
engines = false;
game = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("deadly_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("good_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("bad_movie", _root.getNextHighestDepth());
_root.createEmptyMovieClip("fix_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (((Math.random() * 1000) < rock_freq) && ((fly = true))) {
rock = deadly_movie.attachMovie("rock", "rock" + deadly_movie.getNextHighestDepth(), deadly_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50, _rotation:Math.random() * 360});
rock.filters = new Array(rock_filter);
rock.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x3 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y3 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist3 = Math.sqrt((dist_x3 * dist_x3) + (dist_y3 * dist_y3));
if (dist3 < 26.5) {
hp = hp - 25;
ship._alpha = hp;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "-25";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if ((Math.random() * 1000) < fix_freq) {
fix = fix_movie.attachMovie("fix", "fix" + fix_movie.getNextHighestDepth(), fix_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
fix.filters = new Array(fix_filter);
fix.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x4 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y4 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist4 = Math.sqrt((dist_x4 * dist_x4) + (dist_y4 * dist_y4));
if (dist4 < 26.5) {
hp = hp_max;
timer2 = 0;
timer2 = timer2 + 1;
shield_text = "Shields Full!";
ship._alpha = hp;
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (timer2 > 90) {
shield_text = " ";
}
};
}
if (((Math.random() * 1000) < man_freq) && ((fly = true))) {
man = good_movie.attachMovie("man", "man" + good_movie.getNextHighestDepth(), good_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
man.filters = new Array(man_filter);
man.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y = (ship._y + (28 * Math.sin(angle))) - this._y;
dist = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (dist < 26.5) {
score = score + 100;
timer = 0;
timer = timer + 1;
bonus = "+100";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if (((Math.random() * 1000) < alien_freq) && ((fly = true))) {
alien = bad_movie.attachMovie("alien", "alien" + bad_movie.getNextHighestDepth(), bad_movie.getNextHighestDepth(), {_x:1010, _y:(Math.random() * 750) + 50});
alien.filters = new Array(alien_filter);
alien.onEnterFrame = function () {
this._x = this._x - xspeed;
dist_x2 = (ship._x + (28 * Math.cos(angle))) - this._x;
dist_y2 = (ship._y + (28 * Math.sin(angle))) - this._y;
dist2 = Math.sqrt((dist_x2 * dist_x2) + (dist_y2 * dist_y2));
if (dist2 < 26.5) {
score = score - 1000;
timer = 0;
timer = timer + 1;
bonus = "-1000";
this.removeMovieClip();
}
if ((this._x < -10) or tunnel_movie.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
};
if (timer > 90) {
bonus = " ";
}
}
if (((game = true)) && ((fly = true))) {
score = score + 0.001;
timer = timer + 1;
timer2 = timer2 + 1;
xspeed = xspeed + 0.01;
score = Math.floor(score);
if (score > highscore) {
highscore = score;
}
}
if (engines && ((fly = true))) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
if (mousehide == true) {
Mouse.hide();
} else if (mousehide == false) {
Mouse.show();
}
_root.pos = sharedobject.getLocal("game");
_root.ship._y = _root.pos.data.ship._y;
yspeed = yspeed + gravity;
if (((game = true)) && ((fly = true))) {
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
}
if (distance > 50) {
step = distance - 50;
wall.filters = new Array(smoke_filter);
wall = tunnel_movie.attachMovie("tunnel3", "tunnel3" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 60) {
tunnel_height = 60;
}
if (tunnel_height > 520) {
tunnel_height = 520;
}
trace(level);
distance = step;
}
score = score + 10;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
trace("fly = " + fly);
trace("engines = " + engines);
trace("xspeed = " + xspeed);
if (Key.isDown(80)) {
if ((fly = true)) {
timer3 = 0;
_root.pos = sharedobject.getLocal("game");
_root.thrust = _root.pos.data.thrust;
_root.pos.data.yspeed = _root.yspeed;
_root.pos.data.xspeed = _root.xspeed;
_root.pos.data.distance = _root.distance;
_root.pos.data.smoke_interval = _root.smoke_interval;
_root.pos.data.gravity = _root.gravity;
_root.pos.data.engines = _root.engines;
_root.pos.data.rock_freq = _root.rock_freq;
alien_freq = 0;
rock_freq = 0;
fix_freq = 0;
man_freq = 0;
thrust = 0;
gravity = 0;
yspeed = 0;
xspeed = 0;
distance = 0;
smoke_interval = 1000;
engines = false;
fly = false;
} else {
fly = true;
timer3 = 0;
_root.pos = sharedobject.getLocal("game");
_root.thrust = _root.pos.data.thrust;
_root.yspeed = _root.pos.data.yspeed;
_root.xspeed = _root.pos.data.xspeed;
_root.distance = _root.pos.data.distance;
_root.smoke_interval = _root.pos.data.smoke_interval;
_root.gravity = _root.pos.data.gravity;
_root.engines = _root.pos.data.engines;
_root.rock_freq = _root.pos.data.rock_freq;
man_freq = 25;
alien_freq = 25;
fix_freq = 5;
}
}
if ((((((this._y > 790) or (this._y < 0)) or (hp <= 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
yspeed = 0;
distance = 0;
this._y = 200;
game = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
good_movie.removeMovieClip();
bad_movie.removeMovieClip();
fix_movie.removeMovieClip();
smoke.removeMovieClip();
ship.removeMovieClip();
un.removeMovieClip();
gotoAndPlay (944);
if ((game = true)) {
timer3 = timer3 + 1;
}
}
};
_root.onMouseDown = function () {
if (((game = true)) && ((fly = true))) {
engines = true;
smoke_interval = 5;
}
_root.onMouseUp = function () {
if (((game = true)) && ((fly = true))) {
engines = false;
smoke_interval = 1000;
}
};
};
Frame 943
stop();
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
fRate = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
onEnterFrame = function () {
updateFrameRate();
};
var ship_filter = (new flash.filters.GlowFilter(65280, 0.8, 4, 4, 2, 3, false, false));
var smoke_filter = (new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false));
var tunnel_filter = (new flash.filters.GlowFilter(16776960, 0.8, 4, 4, 2, 3, false, false));
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
AI = true;
_root.attachMovie("ship", "ship", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.createEmptyMovieClip("tunnel_movie", _root.getNextHighestDepth());
ship.filters = new Array(ship_filter);
ship.onEnterFrame = function () {
if (engines) {
yspeed = yspeed - thrust;
smoke_interval = smoke_interval - 0.25;
}
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
angle = Math.atan2(yspeed, xspeed);
this._rotation = (angle * 180) / Math.PI;
frames_passed++;
distance = distance + xspeed;
if (distance > 50) {
step = distance - 50;
wall = tunnel_movie.attachMovie("tunnel", "tunnel" + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {_x:1025 - step, _y:tunnel_height});
wall.filters = new Array(tunnel_filter);
wall.onEnterFrame = function () {
this._x = this._x - xspeed;
if (this._x < -25) {
this.removeMovieClip();
}
if (this._y < (ship._y - 10)) {
engines = true;
smoke_interval = 5;
}
if (this._y > (ship._y + 10)) {
engines = false;
smoke_interval = 1000;
}
};
tunnel_height = tunnel_height + (Math.floor(Math.random() * 40) - 19);
if (tunnel_height < 250) {
tunnel_height = 250;
}
if (tunnel_height > 281) {
tunnel_height = 281;
}
distance = step;
}
score = score + xspeed;
if (frames_passed >= smoke_interval) {
sm = _root.attachMovie("smoke", "smoke" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 2, _y:this._y});
sm.filters = new Array(smoke_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._width = this._width - 0.5;
this._height = this._height - 0.5;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (((((this._y > 790) or (this._y < 0)) or tunnel_movie.hitTest(this._x + (28 * Math.cos(angle)), this._y + (28 * Math.sin(angle)), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle + (Math.PI/2))), this._y + (8 * Math.sin(angle + (Math.PI/2))), true)) or tunnel_movie.hitTest(this._x + (8 * Math.cos(angle - (Math.PI/2))), this._y + (8 * Math.sin(angle - (Math.PI/2))), true)) {
yspeed = 0;
distance = 0;
this._y = 200;
AI = false;
tunnel_movie.removeMovieClip();
deadly_movie.removeMovieClip();
good_movie.removeMovieClip();
bad_movie.removeMovieClip();
fix_movie.removeMovieClip();
ship.removeMovieClip();
gotoAndPlay (948);
}
};
stop();
Frame 944
stop();
_root.pos = sharedobject.getLocal("game");
_root.pos.data.level = _root.level;
game = false;
Mouse.show();
Frame 945
stop();
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
gotoAndPlay (946);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = username;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
if (gamemode == 1) {
__rankz_send__("Mjk1OGolZSVhJW4lcw==", "bXJmUm9kR3E=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else if (gamemode == 2) {
__rankz_send__("Mjk1OWolZSVhJW4lcw==", "ZnBjdWJIUHY=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else if (gamemode == 3) {
__rankz_send__("Mjk3OWolZSVhJW4lcw==", "VEtES2ZWY3I=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
Frame 946
stop();
_root.pos = sharedobject.getLocal("game");
_root.pos.data.level = _root.level;
if (gamemode == 1) {
getURL ("http://rankz.armorbot.com/NGgame3_1", "_blank");
} else if (gamemode == 2) {
getURL ("http://rankz.armorbot.com/NGgame3_2", "_blank");
} else if (gamemode == 3) {
getURL ("http://rankz.armorbot.com/NGgame3_3", "_blank");
}
Frame 947
stop();
Frame 948
gotoAndPlay (943);
Frame 949
stop();
Frame 1189
gotoAndPlay (31);
Symbol 59 MovieClip [score] Frame 1
score = score + 1;
Symbol 96 MovieClip Frame 1
var pc = 0;
this.onEnterFrame = function () {
pc = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.pc_txt.text = pc;
if ((pc == 100) && (!isNAN(pc))) {
delete this.onEnterFrame;
_root.play();
}
};
Symbol 118 Button
on (release) {
gotoAndPlay (31);
}
Symbol 153 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 163 Button
on (rollOver) {
mode_text = "Free play with highscores activated!";
}
on (rollOut) {
mode_text = " ";
}
on (release) {
gotoAndPlay (775);
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
}
Symbol 170 Button
on (release) {
ship._alpha = 24;
tunnel_movie._alpha = 24;
smoke._alpha - 24;
gotoAndPlay (655);
}
Symbol 174 Button
on (release) {
ship._alpha = 24;
tunnel_movie._alpha = 24;
smoke._alpha - 24;
gotoAndPlay (595);
}
Symbol 178 Button
on (release) {
ship._alpha = 24;
tunnel_movie._alpha = 24;
smoke._alpha - 24;
gotoAndPlay (715);
}
Symbol 182 Button
on (release) {
getURL ("http://rankz.armorbot.com/NGgame3_1/", "_blank");
getURL ("http://rankz.armorbot.com/NGgame3_2/", "_blank");
getURL ("http://rankz.armorbot.com/NGgame3_3/", "_blank");
}
Symbol 186 Button
on (rollOver) {
mode_text = "Sit back and watch the computer play the game!";
}
on (rollOut) {
mode_text = " ";
}
on (release) {
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
gravity = 0.1;
thrust = 0.2;
yspeed = 0;
xspeed = 10;
distance = 0;
score = distance;
smoke_interval = 1000;
frames_passed = 0;
tunnel_height = 281;
engines = false;
gotoAndPlay (943);
}
Symbol 191 Button
on (rollOver) {
mode_text = "Play the game with a story!";
}
on (rollOut) {
mode_text = " ";
}
on (release) {
gotoAndPlay (778);
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
}
Symbol 196 MovieClip Frame 15
stop();
Symbol 198 Button
on (release) {
getURL ("http://albinoblacksheep.com", "_blank");
}
Symbol 212 Button
on (press) {
_quality == "HIGH";
}
Symbol 214 Button
on (press) {
_quality == "MEDIUM";
}
Symbol 216 Button
on (press) {
_quality == "LOW";
}
Symbol 222 Button
on (release) {
gotoAndPlay (625);
}
Symbol 223 Button
on (press) {
if ((_quality == "LOW") or "MEDIUM") {
_quality = "HIGH";
}
}
Symbol 224 Button
on (press) {
if ((_quality == "LOW") or "HIGH") {
_quality = "MEDIUM";
}
}
Symbol 225 Button
on (press) {
if ((_quality == "HIGH") or "MEDIUM") {
_quality = "LOW";
}
}
Symbol 226 Button
on (press) {
mousehide = false;
}
Symbol 227 Button
on (press) {
mousehide = true;
}
Symbol 230 Button
on (release) {
gotoAndPlay(next);
}
Symbol 250 Button
on (release) {
gotoAndPlay (685);
}
Symbol 257 Button
on (release) {
gotoAndPlay (745);
}
Symbol 258 Button
on (release) {
gotoAndPlay (745);
}
Symbol 259 Button
on (release) {
gotoAndPlay (565);
}
Symbol 262 Button
on (press) {
gotoAndPlay (940);
}
Symbol 267 Button
on (press) {
gotoAndPlay (941);
}
Symbol 268 Button
on (press) {
gotoAndPlay (942);
}
Symbol 276 Button
on (press) {
gotoAndPlay (781);
}
Symbol 278 Button
on (release) {
gotoAndPlay (936);
}
Symbol 289 Button
on (release) {
gotoAndPlay (933);
}
Symbol 290 Button
on (release) {
gotoAndPlay (938);
}
Symbol 291 Button
on (release) {
gotoAndPlay (939);
}
Symbol 292 Button
on (release) {
gotoAndPlay (934);
}
Symbol 353 Button
on (release) {
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
gotoAndPlay (565);
}
Symbol 361 Button
on (release) {
gotoAndPlay (775);
}
Symbol 365 Button
on (release) {
gotoAndPlay (565);
}
Symbol 369 Button
on (release) {
gotoAndPlay (945);
}
Symbol 388 Button
on (release) {
if (storymode == 1) {
gotoAndPlay (936);
} else if (storymode == 2) {
gotoAndPlay (938);
} else if (storymode == 3) {
gotoAndPlay (939);
}
}
Symbol 390 Button
on (release) {
gotoAndPlay (565);
}
Symbol 393 Button
on (release) {
if (story == 1) {
gotoAndPlay (778);
} else if (story == 2) {
gotoAndPlay (779);
} else if (story == 3) {
gotoAndPlay (780);
}
}