Frame 1
_root.cacheAsBitmap = true;
Stage.showMenu = false;
stopAllSounds();
_root.createTextField("texta", 1000, 100, 100, 100, 100);
_root.texta.text = "Loading preloader.";
var my_fmt = new TextFormat();
my_fmt.color = 0;
my_fmt.underline = true;
_root.texta.setTextFormat(my_fmt);
_root.onEnterFrame = function () {
if (pl.getBytesLoaded() == pl.getBytesTotal()) {
removeMovieClip(_root.texta);
delete this.onEnterFrame;
}
};
Instance of Symbol 15 MovieClip "pl" in Frame 1
onClipEvent (load) {
_root.stop();
}
Frame 11
lives = 5;
level = 1;
_root.createEmptyMovieClip("ground", -100);
with (ground) {
moveTo(0, 400);
lineStyle(4, 10066329, 100);
beginFill(6710886, 100);
i = 0;
while (i < 550) {
lineTo(i, random(200) + 150);
i = i + 50;
}
lineTo(550, random(200) + 150);
lineTo(550, 400);
endFill();
}
id = setInterval(function () {
_root.createEmptyMovieClip("Noir", 110);
with (Noir) {
lineStyle(1, 7829367, 100);
ranx = random(550);
rany = random(400);
moveTo(ranx, rany);
lineTo(ranx + random(50), rany + random(50));
}
}, 100);
id2 = setInterval(function () {
_root.createEmptyMovieClip("Noir2", 111);
with (Noir2) {
lineStyle(1, 7829367, 100);
ranx = random(550);
rany = random(400);
moveTo(ranx, rany);
lineTo(ranx + random(50), rany + random(50));
}
}, 50);
id3 = setInterval(function () {
_root._alpha = random(10) + 90;
_root._x = _root._x + (random(10) - 5);
_root._y = _root._y + (random(10) - 5);
while (_root._x < -5) {
_root._x++;
}
while (_root._x > 5) {
_root._x--;
}
while (_root._y < -5) {
_root._y++;
}
while (_root._y > 5) {
_root._y--;
}
}, 100);
Instance of Symbol 21 MovieClip "ship" in Frame 11
onClipEvent (enterFrame) {
if (fall) {
this._y = this._y + 10;
} else {
if (this._alpha < 100) {
this._alpha++;
} else {
if (Key.isDown(40)) {
this._rotation = 12;
this._y = this._y + 2;
} else if (Key.isDown(38)) {
this._rotation = -12;
this._y = this._y - 2;
} else {
this._rotation = 0;
}
if (Key.isDown(39)) {
this._x = this._x + 2;
}
if (Key.isDown(37)) {
this._x = this._x - 2;
}
if (_root.ground.hitTest(_x, _y, 1)) {
this._y = 100;
_x = 20;
_root.lives--;
this._alpha = 0;
}
i = 1;
while (i < 5) {
if (_root["m" + i].hitTest(_x, _y, 1)) {
this._y = 100;
_x = 20;
_root.lives--;
this._alpha = 0;
}
i++;
}
}
if (this._x > 550) {
_root.level++;
i = 1;
while (i < 5) {
_root["m" + i]._x = -20;
i++;
}
this._x = 20;
this._y = 100;
_root.createEmptyMovieClip("ground", -100);
with (_root.ground) {
moveTo(0, 400);
lineStyle(4, 10066329, 100);
beginFill(6710886, 100);
i = 0;
while (i < 550) {
lineTo(i, random(200) + 150);
i = i + 50;
}
lineTo(550, random(200) + 150);
lineTo(550, 400);
endFill();
}
}
}
}
Instance of Symbol 27 MovieClip "m3" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (this._x < 0) {
this._xscale = (this._yscale = random(100) + 100);
this._y = random(250);
this.speed = random(10) + 1;
this._x = 550 + random(200);
this.gotoAndStop(1);
}
if (this._currentframe == 1) {
for (d in _root) {
if (_root[d]._name != this._name) {
if (_root[d].hitTest(_x, _y, 1)) {
this.play();
}
}
}
}
}
Instance of Symbol 27 MovieClip "m2" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (this._x < 0) {
this._xscale = (this._yscale = random(100) + 100);
this._y = random(250);
this.speed = random(10) + 1;
this._x = 550 + random(200);
this.gotoAndStop(1);
}
if (this._currentframe == 1) {
for (d in _root) {
if (_root[d]._name != this._name) {
if (_root[d].hitTest(_x, _y, 1)) {
this.play();
}
}
}
}
}
Instance of Symbol 27 MovieClip "m4" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (this._x < 0) {
this._xscale = (this._yscale = random(100) + 100);
this._y = random(250);
this.speed = random(10) + 1;
this._x = 550 + random(200);
this.gotoAndStop(1);
}
if (this._currentframe == 1) {
for (d in _root) {
if (_root[d]._name != this._name) {
if (_root[d].hitTest(_x, _y, 1)) {
this.play();
}
}
}
}
}
Instance of Symbol 27 MovieClip "m5" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (this._x < 0) {
this._xscale = (this._yscale = random(100) + 100);
this._y = random(250);
this.speed = random(10) + 1;
this._x = 550 + random(200);
this.gotoAndStop(1);
}
if (this._currentframe == 1) {
for (d in _root) {
if (_root[d]._name != this._name) {
if (_root[d].hitTest(_x, _y, 1)) {
this.play();
}
}
}
}
}
Instance of Symbol 27 MovieClip "m1" in Frame 11
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (this._x < 0) {
this._xscale = (this._yscale = random(100) + 100);
this._y = random(250);
this.speed = random(10) + 1;
this._x = 550 + random(200);
this.gotoAndStop(1);
}
if (this._currentframe == 1) {
for (d in _root) {
if (_root[d]._name != this._name) {
if (_root[d].hitTest(_x, _y, 1)) {
this.play();
}
}
}
}
}
Frame 6204
_root.ship.fall = true;
Frame 6441
stop();
score = (level * lives) + 1;
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = 0.6;
_width = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 275);
}
Symbol 13 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.gamesofgondor.com", "_blank");
};
Instance of Symbol 10 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) == 1) {
_root.play();
}
}
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 4
stop();