Frame 1
System.security.allowDomain("mochibot.com");
this.swfid = "2b57aca0";
var mc = this.createEmptyMovieClip("mochibot", 10000);
mc.loadMovie("http://mochibot.com/my/core.swf");
_root.code = "THROWTHEHEAT";
_root.typing = [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76];
_root.typed = String.fromCharCode(t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11]);
keyListener = new Object();
keyListener.onKeyDown = function () {
_root.typing = _root.typing.slice(-11);
_root.typing.push(Key.getCode());
_root.typed = String.fromCharCode(typing[0], typing[1], typing[2], typing[3], typing[4], typing[5], typing[6], typing[7], typing[8], typing[9], typing[10], typing[11]);
if (_root.typed == _root.code) {
_root.code2 = true;
_root.gotoAndStop(5);
}
};
Key.addListener(keyListener);
function itemHandler1(obj, item) {
getURL ("http://newgrounds.com", "_blank");
}
function itemHandler2(obj, item) {
getURL ("mailto:PunkKid7188@comcast.net");
}
function itemHandler3(obj, item) {
_quality = "high";
}
function itemHandler4(obj, item) {
_quality = "medium";
}
function itemHandler5(obj, item) {
_quality = "low";
}
stop();
_root.savefile = SharedObject.getLocal("EndlessFlight2antiHack");
((_root.savefile.data.highScore != undefined) ? ((_root.highscore = _root.savefile.data.highScore)) : ((_root.highscore = 0)));
((_root.savefile.data.blue != undefined) ? ((_root.secret2 = _root.savefile.data.blue)) : ((_root.secret2 = 0)));
_root.song = 2;
_root.secret1 = (_root.secret3 = (_root.qual = (_root.col = 0)));
_root.song1 = new Sound();
_root.song2 = new Sound();
_root.song3 = new Sound();
_root.sound1 = new Sound();
_root.song1.attachSound("song1");
_root.song2.attachSound("song2");
_root.song3.attachSound("song3");
_root.sound1.attachSound("sound1");
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
aaa_cmi = new ContextMenuItem("Games of Gondor", itemHandler1);
bbb_cmi = new ContextMenuItem("Email Me", itemHandler2);
eee_cmi = new ContextMenuItem("High Quality", itemHandler3);
fff_cmi = new ContextMenuItem("Mid Quality", itemHandler4);
ggg_cmi = new ContextMenuItem("Low Quality", itemHandler5);
eee_cmi.separatorBefore = true;
root_cm.customItems.push(aaa_cmi, bbb_cmi, eee_cmi, fff_cmi, ggg_cmi);
_root.menu = root_cm;
Frame 2
function dustCloud(a) {
_root.sound1.start();
if (!DC) {
i = -90;
while (i < 90) {
_root.dust.duplicateMovieClip("dust" + n, n);
_root["dust" + n]._rotation = ((180 * (_root.obsticle._height / 2)) / i) + (a * -90);
n++;
i = i + 10;
}
}
DC = true;
}
_root["song" + _root.song].start();
_root["song" + _root.song].onSoundComplete = function () {
_root["song" + _root.song].start();
};
_root.barrier = (_root.clicks = (_root.bonus = (g = (DC = (_root.fall = (n = (n2 = (death = (_root.score = (_root.score2 = (_root.death2 = 0)))))))))));
MovieClip.prototype.val = function (n) {
return(((n > 0) ? 1 : (((n < 0) ? -1 : 0))));
};
ar = new Array();
a = 50;
i = 0;
while (i <= 550) {
a = a + ((random(3) - 1) * 20);
ar[i / 20] = Math.abs(a);
i = i + 20;
}
l = ar.length;
_root.onEnterFrame = function () {
if (_currentframe == 2) {
_root.createEmptyMovieClip("t", 2);
_root.createEmptyMovieClip("t2", -2);
_root.createEmptyMovieClip("b", 1);
_root.createEmptyMovieClip("b2", -10);
t.lineStyle(2, "0x000000");
t2.lineStyle(3, "0x4B351B", 100);
b.lineStyle(2, "0x000000");
b2.lineStyle(3, "0x4B351B", 100);
t.beginFill("0x00DF00");
t2.beginFill("0x000000", 0);
b.beginFill("0x00DF00");
b2.beginFill("0x000000", 0);
_root.bgt.setMask(t);
_root.bgb.setMask(b);
t.moveTo(0, 0);
t2.moveTo(0, 0);
b.moveTo(0, 400);
b2.moveTo(0, 400);
i = 0;
while (i < l) {
t.curveTo((i * 20) + 5, ar[i] - 3, i * 20, ar[i] + ((((i + _root.score) + 10) % 25) ? 10 : 75));
t2.curveTo((i * 20) + 5, ar[i] - 3, i * 20, ar[i] + ((((i + _root.score) + 10) % 25) ? 10 : 75));
b.curveTo((i * 20) + 5, ar[i] + Math.max(150, 300 - (_root.score / 10)), i * 20, (ar[i] + Math.max(150, 300 - (_root.score / 10))) - ((((i + _root.score) + 12) % 25) ? 5 : 25));
b2.curveTo((i * 20) + 5, ar[i] + Math.max(150, 300 - (_root.score / 10)), i * 20, (ar[i] + Math.max(150, 300 - (_root.score / 10))) - ((((i + _root.score) + 12) % 25) ? 5 : 25));
i++;
}
ar = ar.slice(1, l);
ar.push(Math.min(200, Math.abs(ar[l - 2] + (val(random(int(3 + (_root.score / 250))) - int((3 + (_root.score / 250)) / 2)) * 20))));
t.lineTo(550, 0);
t2.lineTo(550, 0);
b.lineTo(550, 400);
b2.lineTo(550, 400);
t.lineTo(0, 0);
t2.lineTo(0, 0);
b.lineTo(0, 400);
b2.lineTo(0, 400);
t.endFill();
t2.endFill();
b.endFill();
b2.endFill();
n++;
i = _root.dragon._width / -2;
while (i <= (_root.obsticle._width / 2)) {
if (_root.b2.hitTest(_root.dragon._x + i, _root.dragon._y + 10, true) && (!death)) {
if (_root.barrier) {
_root.dragon.count = true;
} else {
_root.dragon.count = (_root.dragon.counter = false);
_root.dragon.gotoAndPlay("death3");
death = true;
dustCloud(0);
}
}
if (_root.t2.hitTest(_root.dragon._x + i, _root.dragon._y - 10, true)) {
if (_root.barrier) {
_root.dragon.count = true;
} else {
_root.dragon.count = (_root.dragon.counter = false);
if (!(_root.dragon.tophit && (!_root.fall))) {
} else {
(_root.dragon.gotoAndPlay("death2"));// not popped
}
(_root.dragon.tophit ? ((_root.fall = true)) : null);
_root.dust.duplicateMovieClip("dust" + n, n);
_root["dust" + n]._rotation = (-random(90)) - 180;
_root.dragon.tophit = true;
_root.dragon.y = -10;
_root.dragon.mouse = false;
}
}
i = i + 5;
}
(((!death) && (!_root.dragon.tophit)) ? ((_root.score2 = _root.score + bonus)) : null);
_root.score++;
_root.sc = "score: " + _root.score2;
((_root.score2 > _root.highscore) ? ((_root.highscore = _root.score2)) : null);
if (!random(50)) {
_root.gem.duplicateMovieClip("gem" + g, g + 100);
_root["gem" + g]._x = 570;
_root["gem" + g]._y = ar[l - 1] + (Math.max(75, 300 - (_root.score / 20)) / 2);
g++;
}
if ((!random(150)) && (!_root.barrier)) {
_root.sheild.duplicateMovieClip("gem" + g, g + 100);
_root["gem" + g]._x = 570;
_root["gem" + g]._y = ar[l - 1] + (Math.max(75, 300 - (_root.score / 20)) / 2);
g++;
}
if (!(score % 100)) {
_root.obsticle._x = 560;
_root.obsticle._y = ar[l - 1] + (Math.max(75, 300 - (_root.score / 20)) / 2);
}
}
};
Instance of Symbol 97 MovieClip in Frame 2
/* no clip actions */
Instance of Symbol 138 MovieClip "dragon" in Frame 2
onClipEvent (load) {
count = (counter = (tophit = (y = (mouse = 0))));
if (_root.col == 4) {
_root.barrier++;
}
}
onClipEvent (mouseDown) {
_root.clicks++;
mouse = !tophit;
}
onClipEvent (mouseUp) {
mouse = false;
}
onClipEvent (enterFrame) {
if (!_root.death) {
(mouse ? (this.play()) : null);
y = Math.min(Math.max(-9, y), 9);
_y = (_y - ((y = y + (((_root.col == 0) || (_root.col == 4)) ? ((mouse * 2) - 1) : (((_root.col == 2) ? ((mouse * 4) - 2) : (((_root.col == 1) ? ((mouse * 3) - 1) : (((_root.col == 2) ? ((mouse * 3) - 2) : null))))))))));
_rotation = (180 - y);
counter = counter + count;
if ((!(counter % 15)) && (counter)) {
_root.barrier--;
count = (counter = 0);
}
i = -30;
while (i <= 30) {
if (this.hitTest(_root.obsticle._x, _root.obsticle._y - i, true)) {
if (_root.barrier) {
count = true;
} else {
_root.dustCloud(1);
this.gotoAndPlay("death1");
_root.death = true;
}
}
i = i + 5;
}
} else {
_x = (_x - 20);
}
((((_x < -100) || (_y > 430)) || (_y < 0)) ? (_root.play()) : null);
}
Instance of Symbol 144 MovieClip "dust" in Frame 2
onClipEvent (load) {
if (_name != "dust") {
_x = _root.dragon._x;
_y = _root.dragon._y;
}
}
onClipEvent (enterFrame) {
if (_name != "dust") {
_x = (_x - 10);
_x = (_x - (Math.sin((_rotation / 180) * Math.PI) * 10));
_y = (_y - (Math.cos((_rotation / 180) * Math.PI) * 10));
_alpha = (_alpha - 10);
((_alpha <= 0) ? (this.removeMovieClip()) : null);
_width = (_width + 10);
_height = (_height + 10);
}
}
Instance of Symbol 146 MovieClip "obsticle" in Frame 2
onClipEvent (enterFrame) {
_height = (55 - int(_root.score / 30));
_x = (_x - 20);
}
Instance of Symbol 87 MovieClip "gem" in Frame 2
onClipEvent (enterFrame) {
if (_name != "gem") {
if (_root.dragon.hitTest(_x, _y, true)) {
_root.bonus = _root.bonus + 10;
_root.plus.duplicateMovieClip("plus" + _root.g, this.getDepth() + 10);
_root["plus" + _root.g]._x = _x;
_root["plus" + _root.g]._y = _y;
this.removeMovieClip();
}
((_x < 20) ? (this.removeMovieClip()) : (_x = (_x - 20)_x - 20));
}
}
Instance of Symbol 148 MovieClip "plus" in Frame 2
onClipEvent (enterFrame) {
if (_name != "plus") {
_y = (_y - 5);
_x = (_x - 5);
_alpha = (_alpha - 10);
((!_alpha) ? (this.removeMovieClip()) : null);
}
}
Instance of Symbol 91 MovieClip "sheild" in Frame 2
onClipEvent (enterFrame) {
if (_name != "sheild") {
if (_root.dragon.hitTest(_x, _y, true)) {
_root.barrier++;
this.removeMovieClip();
trace(_root.barrier);
}
((_x < 20) ? (this.removeMovieClip()) : (_x = (_x - 20)_x - 20));
}
}
Instance of Symbol 150 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (!_root.barrier) {
(this.gotoAndStop(1));// not popped
} else {
(this.play());// not popped
}
_visible = (_root.barrier && (!(_root.dragon.counter % 2)));
_y = _root.dragon._y;
_x = _root.dragon._x;
_rotation = (_root.dragon._rotation + 180);
}
Frame 3
stop();
_root.t2.clear();
_root.b2.clear();
_root.t.clear();
_root.b.clear();
stopAllSounds();
_root.savefile.data.highScore = _root.highscore;
_root.savefile.data.blue = _root.secret2;
_root.savefile.flush();
i = 0;
onEnterFrame = function () {
i++;
_root.hs = (((int(i / 24) % 2) && (_root.highscore == _root.score2)) ? (((((_root.score >= 500) && (!_root.secret1)) || ((_root.score >= 1000) && (!_root.secret3))) ? "Secret Unlocked!!!" : "New HighScore!")) : (((((_root.clicks == 1) && (_root.score >= 100)) && (!_root.secret2)) ? "Secret Unlocked!!!" : ((("score: " + _root.score2) + " highScore: ") + _root.highscore))));
};
Instance of Symbol 177 MovieClip in Frame 3
onClipEvent (load) {
_visible = ((_root.highscore < 500) && (!_root.code2));
}
Instance of Symbol 177 MovieClip in Frame 3
onClipEvent (load) {
_visible = ((_root.highscore <= 500) && (!_root.code2));
}
Instance of Symbol 177 MovieClip in Frame 3
onClipEvent (load) {
_visible = ((!_root.secret2) && (!_root.code2));
}
Instance of Symbol 247 MovieClip in Frame 5
onClipEvent (mouseDown) {
_root.prevFrame();
}
Instance of Symbol 247 MovieClip in Frame 5
onClipEvent (mouseDown) {
_root.prevFrame();
}
Instance of Symbol 247 MovieClip in Frame 5
onClipEvent (mouseDown) {
_root.prevFrame();
}
Instance of Symbol 247 MovieClip in Frame 5
onClipEvent (mouseDown) {
_root.prevFrame();
}
Symbol 15 MovieClip Frame 1
with (_parent) {
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.useHandCursor = true;
getURL("http://www.armorgames.com/", "_blank");
}
};
}
Symbol 55 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = (cX - (this._x * _local4)) - 200;
_parent._y = (cY - (this._y * _local3)) - 200;
_parent._xscale = 90 * _local4;
_parent._yscale = 90 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Instance of Symbol 55 MovieClip in Symbol 62 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Symbol 70 Button
on (press) {
_quality = "low";
}
Symbol 71 Button
on (press) {
_quality = "medium";
}
Symbol 72 Button
on (press) {
_quality = "high";
}
Symbol 77 Button
on (release) {
_root.nextFrame();
}
Symbol 93 MovieClip Frame 1
Stage.showMenu = false;
stop();
Instance of Symbol 15 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
w = _width;
}
onClipEvent (enterFrame) {
_width = ((_root.getBytesLoaded() / _root.getBytesTotal()) * w);
_parent.mid._width = (_width / w) * 269.6;
_parent.right._x = _parent.mid._x + _parent.mid._width;
(int(_root.getBytesLoaded() / _root.getBytesTotal()) ? (_parent.nextFrame()) : null);
}
Symbol 93 MovieClip Frame 2
stop();
Instance of Symbol 62 MovieClip in Symbol 93 MovieClip Frame 2
onClipEvent (load) {
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse)) {
getURL ("http://www.ArmorGames.com/", "_blank");
_parent.nextFrame();
}
}
onClipEvent (enterFrame) {
if ((this._currentframe == this._totalframes) || (Key.isDown(65))) {
_parent.nextFrame();
}
}
Instance of Symbol 67 MovieClip in Symbol 93 MovieClip Frame 3
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse)) {
this.useHandCursor = true;
getURL ("http://www.mochibot.com/", "_blank");
}
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.nextFrame();
}
}
Symbol 93 MovieClip Frame 4
Stage.showMenu = true;
Symbol 138 MovieClip Frame 1
stop();
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 2
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 3
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 4
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 5
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 6
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 7
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 8
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Symbol 138 MovieClip Frame 9
gotoAndStop (1);
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 9
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 10
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Symbol 138 MovieClip Frame 12
stop();
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 12
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 13
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 14
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 15
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Symbol 138 MovieClip Frame 25
stop();
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 26
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 27
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 28
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Symbol 138 MovieClip Frame 29
stop();
Instance of Symbol 103 MovieClip in Symbol 138 MovieClip Frame 29
onClipEvent (load) {
ca = ["0xCC0000", "0x0000CC", "0x809F28", "0xCCCC00", "0x9900CC"];
my_color = new Color(this);
my_color.setRGB(ca[_root.col]);
}
Symbol 155 Button
on (release) {
_root.prevFrame();
}
Symbol 161 Button
on (release) {
getURL ("http://www.burstfilms.com/bbs/index.php?", "_blank");
}
Symbol 165 Button
on (release) {
nextFrame();
}
Symbol 168 Button
on (press) {
_root.song = 2;
}
Symbol 169 Button
on (press) {
_root.song = 1;
}
Symbol 170 Button
on (press) {
_root.song = 3;
}
Symbol 173 Button
on (release) {
_root.col = 0;
}
Symbol 174 Button
on (release) {
if ((_root.highscore >= 500) || (_root.code2 == true)) {
_root.col = 4;
}
}
Symbol 175 Button
on (release) {
if ((((_root.clicks == 1) && (_root.score >= 100)) || (_root.secret2)) || (_root.code2 == true)) {
_root.col = 1;
}
}
Symbol 176 Button
on (release) {
if ((_root.highscore >= 500) || (_root.code2 == true)) {
_root.col = 2;
}
}
Symbol 179 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=1030079", "_blank");
}
Symbol 180 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=1030079", "_blank");
}
Symbol 181 Button
on (release) {
getURL ("http://www.purevolume.com/adamberry", "_blank");
}
Symbol 184 Button
on (release) {
prevFrame();
}