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();
Frame 418
_root.pos = sharedobject.getLocal("game");
_root.level = _root.pos.data.level;
if (level == undefined) {
level = 1;
}
if (story == undefined) {
story = 1;
}
fly = true;
Frame 433
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;
Frame 447
stop();
Frame 477
stop();
Frame 507
gotoAndPlay (447);
ship._alpha = 100;
tunnel_movie._alpha = 100;
smoke._alpha + 24;
Frame 537
stop();
Frame 567
gotoAndPlay (447);
ship._alpha = 100;
tunnel_movie._alpha = 100;
smoke._alpha + 24;
Frame 597
stop();
Frame 627
gotoAndPlay (447);
ship._alpha = 100;
tunnel_movie._alpha = 100;
smoke._alpha + 24;
Frame 628
if (level == 2) {
gotoAndStop (629);
} else if (level == 1) {
gotoAndStop (628);
} else if (level == 3) {
gotoAndStop (630);
}
stop();
Frame 630
stop();
Frame 631
trace(story);
if ((story = undefined)) {
story = 1;
}
if (story == 1) {
gotoAndStop (631);
} else if (story == 2) {
gotoAndStop (632);
} else if (story == 3) {
gotoAndStop (633);
}
stop();
Frame 632
stop();
stop();
Frame 633
stop();
Frame 634
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 (635);
}
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 635
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
empty.removeMovieClip();
Frame 784
gotoAndPlay (785);
Frame 785
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 (789);
}
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 786
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 (791);
}
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 787
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 (792);
}
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 788
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 (803);
}
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 789
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 (802);
}
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 (800);
}
};
if ((game = true)) {
_root.onMouseDown = function () {
engines = true;
smoke_interval = 5;
};
}
if ((game = true)) {
_root.onMouseUp = function () {
engines = false;
smoke_interval = 1000;
};
}
Frame 791
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 (802);
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 (800);
}
};
if ((game = true)) {
_root.onMouseDown = function () {
engines = true;
smoke_interval = 5;
};
}
if ((game = true)) {
_root.onMouseUp = function () {
engines = false;
smoke_interval = 1000;
};
}
stop();
Frame 792
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 (788);
}
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 (800);
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 793
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 (797);
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 794
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 (797);
}
};
if ((game = true)) {
_root.onMouseDown = function () {
engines = true;
smoke_interval = 5;
};
}
if ((game = true)) {
_root.onMouseUp = function () {
engines = false;
smoke_interval = 1000;
};
}
stop();
Frame 795
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 (797);
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 796
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 (801);
}
};
stop();
Frame 797
stop();
_root.pos = sharedobject.getLocal("game");
_root.pos.data.level = _root.level;
game = false;
Mouse.show();
Frame 798
stop();
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.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 (799);
} 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 799
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 800
stop();
Frame 801
gotoAndPlay (796);
Frame 802
stop();
Frame 1042
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 389 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 118 Button
on (release) {
gotoAndPlay (31);
}
Symbol 144 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 154 Button
on (rollOver) {
mode_text = "Free play with highscores activated!";
}
on (rollOut) {
mode_text = " ";
}
on (release) {
gotoAndPlay (628);
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
}
Symbol 161 Button
on (release) {
ship._alpha = 24;
tunnel_movie._alpha = 24;
smoke._alpha - 24;
gotoAndPlay (508);
}
Symbol 165 Button
on (release) {
ship._alpha = 24;
tunnel_movie._alpha = 24;
smoke._alpha - 24;
gotoAndPlay (448);
}
Symbol 169 Button
on (release) {
ship._alpha = 24;
tunnel_movie._alpha = 24;
smoke._alpha - 24;
gotoAndPlay (568);
}
Symbol 173 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 177 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 (796);
}
Symbol 182 Button
on (rollOver) {
mode_text = "Play the game with a story!";
}
on (rollOut) {
mode_text = " ";
}
on (release) {
gotoAndPlay (631);
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
}
Symbol 187 MovieClip Frame 15
stop();
Symbol 201 Button
on (press) {
_quality == "HIGH";
}
Symbol 203 Button
on (press) {
_quality == "MEDIUM";
}
Symbol 205 Button
on (press) {
_quality == "LOW";
}
Symbol 211 Button
on (release) {
gotoAndPlay (478);
}
Symbol 212 Button
on (press) {
if ((_quality == "LOW") or "MEDIUM") {
_quality = "HIGH";
}
}
Symbol 213 Button
on (press) {
if ((_quality == "LOW") or "HIGH") {
_quality = "MEDIUM";
}
}
Symbol 214 Button
on (press) {
if ((_quality == "HIGH") or "MEDIUM") {
_quality = "LOW";
}
}
Symbol 215 Button
on (press) {
mousehide = false;
}
Symbol 216 Button
on (press) {
mousehide = true;
}
Symbol 219 Button
on (release) {
gotoAndPlay(next);
}
Symbol 239 Button
on (release) {
gotoAndPlay (538);
}
Symbol 246 Button
on (release) {
gotoAndPlay (598);
}
Symbol 247 Button
on (release) {
gotoAndPlay (598);
}
Symbol 248 Button
on (release) {
gotoAndPlay (418);
}
Symbol 251 Button
on (press) {
gotoAndPlay (793);
}
Symbol 256 Button
on (press) {
gotoAndPlay (794);
}
Symbol 257 Button
on (press) {
gotoAndPlay (795);
}
Symbol 265 Button
on (press) {
gotoAndPlay (634);
}
Symbol 267 Button
on (release) {
gotoAndPlay (789);
}
Symbol 277 Button
on (release) {
gotoAndPlay (786);
}
Symbol 278 Button
on (release) {
gotoAndPlay (791);
}
Symbol 279 Button
on (release) {
gotoAndPlay (792);
}
Symbol 280 Button
on (release) {
gotoAndPlay (787);
}
Symbol 341 Button
on (release) {
tunnel_movie.removeMovieClip();
ship.removeMovieClip();
smoke.removeMovieClip();
gotoAndPlay (418);
}
Symbol 349 Button
on (release) {
gotoAndPlay (628);
}
Symbol 353 Button
on (release) {
gotoAndPlay (418);
}
Symbol 357 Button
on (release) {
gotoAndPlay (798);
}
Symbol 377 Button
on (release) {
if (storymode == 1) {
gotoAndPlay (789);
} else if (storymode == 2) {
gotoAndPlay (791);
} else if (storymode == 3) {
gotoAndPlay (792);
}
}
Symbol 379 Button
on (release) {
gotoAndPlay (418);
}
Symbol 382 Button
on (release) {
if (story == 1) {
gotoAndPlay (631);
} else if (story == 2) {
gotoAndPlay (632);
} else if (story == 3) {
gotoAndPlay (633);
}
}