Frame 1
startDrag ("cursor_mc", true);
Mouse.hide();
this.onEnterFrame = function () {
pLoaded = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
preloader_mc.gotoAndStop(pLoaded);
trace(pLoaded);
if (pLoaded >= 100) {
preloader_mc.gotoAndPlay("done");
delete this.onEnterFrame;
}
};
stop();
Instance of Symbol 57 MovieClip "HS_mc" in Frame 1
//component parameters
onClipEvent (construct) {
pPingLoc = "ping/highscore.php";
pChartLoc = "hs";
pDoneFrame = "menu2";
}
Frame 2
var enginesound1 = this.createEmptyMovieClip("enginesound1_mc", 525);
var enginesound2 = this.createEmptyMovieClip("enginesound2_mc", 526);
engineloop1 = new Sound(enginesound1);
engineloop1.attachSound("engineloop1");
engineloop2 = new Sound(enginesound2);
engineloop2.attachSound("engineloop2");
startDrag ("cursor_mc", true);
Mouse.hide();
altitude = 0;
stop();
Frame 3
startDrag ("cursor_mc", true);
Mouse.hide();
stop();
Instance of Symbol 166 MovieClip in Frame 3
/* no clip actions */
Frame 4
startDrag ("cursor_mc", true);
Mouse.hide();
stop();
Frame 7
landing = true;
cityholder_mc.swapDepths(250455);
this.onEnterFrame = function () {
tFrame = Math.round(88 + (-0.18 * plane_mc._y));
if (tFrame < 1) {
tFrame = 1;
}
trace(tFrame);
plane_mc.planetilt_mc.gotoAndStop(tFrame);
plane_mc._xscale = plane_mc._y - 110;
plane_mc._yscale = plane_mc._y - 110;
if (plane_mc._xscale <= 100) {
plane_mc._xscale = 100;
plane_mc._yscale = 100;
}
yMove = yMove + 0.2;
plane_mc._y = plane_mc._y - yMove;
if (yMove >= 2) {
yMove = 2;
}
altitude = altitude + 84;
altitude_txt.text = altitude + "m";
if (plane_mc._y <= 210) {
delete this.onEnterFrame;
play();
}
};
stop();
engineloop1.setVolume(50);
engineloop1.start(0, 99999);
engineloop2.setVolume(50);
engineloop2.start(0, 999999);
Frame 8
debug_mc._visible = false;
comfortlevel_mc._xscale = 100;
tID = 0;
cloudTimer = 0;
powersTimer = 0;
Mouse.hide();
textPowerUp = "";
textPowerDown = "";
distance = 0;
altitude = 10000;
pXmouse = 220;
pYmouse = 220;
landing = false;
tCity = "UK";
speed = 4;
watchKeyboard = new Object();
watchKeyboard.onKeyDown = function () {
if (Key.isToggled(16)) {
if (debug_mc._visible) {
debug_mc._visible = false;
} else {
debug_mc._visible = true;
}
}
trace("a key is pressed. the key that is pressed is " + Key.getAscii());
};
Key.addListener(watchKeyboard);
watchMouse = new Object();
watchMouse.onMouseMove = function () {
Mouse.hide();
pXmouse = _xmouse;
pYmouse = _ymouse;
if (pYmouse < 90) {
pYmouse = 90;
}
};
Mouse.addListener(watchMouse);
plane_mc.onEnterFrame = function () {
yChange = pYmouse - this._y;
yMove = yChange / 40;
this._y = this._y + yMove;
this._rotation = yMove;
this._parent.comfortbar_mc.comfortlevel_mc._xscale = this._parent.comfortbar_mc.comfortlevel_mc._xscale - (0.07 + ((Math.floor(Math.abs(yMove)) / 5) * 1));
if (this._parent.comfortbar_mc.comfortlevel_mc._xscale < 25) {
this._parent.comfortbar_mc.comfortlevel_mc.gotoAndPlay(2);
this._parent.comfortbar_mc.comfortwarning_mc.gotoAndStop(2);
} else {
this._parent.comfortbar_mc.comfortwarning_mc.gotoAndStop(1);
this._parent.comfortbar_mc.comfortlevel_mc.gotoAndStop(1);
}
if (this._parent.comfortbar_mc.comfortlevel_mc._xscale <= 0) {
this._parent.comfortbar_mc.comfortlevel_mc._xscale = 0;
this._parent.comfortbar_mc.comfortwarning_mc.gotoAndStop(1);
delete this.onEnterFrame;
this._parent.gotoAndStop("landing");
}
if (this._parent.comfortbar_mc.comfortlevel_mc._xscale >= 100) {
this._parent.comfortbar_mc.comfortlevel_mc._xscale = 100;
}
tInt = Math.ceil(((this._y - 110) / 292) * 115);
if ((yMove < 0) && (yMove > -1)) {
yMove = 0;
}
speed = distance / 1000;
speed = speed * 100;
speed = Math.round(speed);
speed = speed / 100;
if (speed < 1) {
speed = 1;
}
if (speed > 4) {
speed = 4;
}
trace("speed = " + speed);
altitude = Math.round(12500 + ((this._y * -1) * 2));
this.planetilt_mc.gotoAndStop(100 - tInt);
this._parent.icons_mc._y = Math.round(((this._y * -1) + 200) / 1.2);
this._parent.lowerclouds_mc._y = Math.round(((this._y * -1) + 110) / 1.2);
this._parent.skyanimation_mc._y = Math.round((this._y * -1) + 200);
this._parent.middleclouds_mc._y = Math.round(((this._y * -1) + 200) / 0.8);
this._parent.higherclouds_mc._y = Math.round(((this._y * -1) + 200) / 1.4);
tID++;
this._parent.cloudTimer++;
this._parent.powersTimer++;
if (this._parent.powersTimer == (55 - Math.round(4 * speed))) {
this._parent.icons_mc.attachMovie("powerup", "powerup" + tID, 25000 + tID);
this._parent.icons_mc["powerup" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.icons_mc["powerup" + tID]._y = Math.floor(Math.random() * 800);
tID++;
this._parent.icons_mc.attachMovie("powerup", "powerup" + tID, 25000 + tID);
this._parent.icons_mc["powerup" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.icons_mc["powerup" + tID]._y = Math.floor(Math.random() * 800);
tID++;
this._parent.icons_mc.attachMovie("powerdown", "powerdown" + tID, 30000 + tID);
this._parent.icons_mc["powerdown" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.icons_mc["powerdown" + tID]._y = Math.floor(Math.random() * 800);
tID++;
this._parent.icons_mc.attachMovie("powerdown", "powerdown" + tID, 30000 + tID);
this._parent.icons_mc["powerdown" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.icons_mc["powerdown" + tID]._y = Math.floor(Math.random() * 800);
tID++;
this._parent.icons_mc.attachMovie("powerdown", "powerdown" + tID, 30000 + tID);
this._parent.icons_mc["powerdown" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.icons_mc["powerdown" + tID]._y = Math.floor(Math.random() * 800);
this._parent.powersTimer = 0;
}
if (cloudTimer == (65 - Math.round(4 * speed))) {
var _local2 = Math.ceil(Math.random() * 2);
var _local3 = Math.ceil(Math.random() * 5);
this._parent.lowerclouds_mc.attachMovie("lowcloud" + _local2, "lowcloud" + tID, 20000 + tID);
this._parent.lowerclouds_mc["lowcloud" + tID]._y = Math.floor(Math.random() * 30) + 550;
this._parent.lowerclouds_mc["lowcloud" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.middleclouds_mc.attachMovie("midcloud" + _local3, "midcloud" + tID, 5000 + tID);
this._parent.middleclouds_mc["midcloud" + tID]._y = Math.floor(Math.random() * 200) + 200;
this._parent.middleclouds_mc["midcloud" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.higherclouds_mc.attachMovie("highcloud" + _local2, "highcloud" + tID, 10000 + tID);
this._parent.higherclouds_mc["highcloud" + tID]._y = Math.floor(Math.random() * 200) - 20;
this._parent.higherclouds_mc["highcloud" + tID]._x = Math.floor(Math.random() * 60) + 800;
this._parent.higherclouds_mc["highcloud" + tID]._y = Math.floor(Math.random() * 200) - 20;
this._parent.higherclouds_mc["highcloud" + tID]._x = Math.floor(Math.random() * 60) + 800;
cloudTimer = 0;
}
engineloop1.setVolume(tInt);
engineloop2.setVolume(100 - tInt);
distance = distance + (0.5 * speed);
distance_txt.text = Math.round(distance) + "km";
tF = 0;
switch (true) {
case (distance >= 244) && (244 > (distance - (0.5 * speed))) :
tSign = 1;
tCity = "Paris";
tF = 1;
tSign++;
break;
case (distance >= 353) && (353 > (distance - (0.5 * speed))) :
tCity = "Brest";
tF = 1;
tSign++;
break;
case (distance >= 392) && (392 > (distance - (0.5 * speed))) :
tCity = "Nantes";
tF = 1;
tSign++;
break;
case (distance >= 490) && (490 > (distance - (0.5 * speed))) :
tCity = "Strasbourg";
tF = 1;
tSign++;
break;
case (distance >= 531) && (531 > (distance - (0.5 * speed))) :
tCity = "Hanover";
tF = 1;
tSign++;
break;
case (distance >= 603) && (603 > (distance - (0.5 * speed))) :
tCity = "Hamburg";
tF = 1;
tSign++;
break;
case (distance >= 630) && (630 > (distance - (0.5 * speed))) :
tCity = "Geneva";
tF = 1;
tSign++;
break;
case (distance >= 653) && (653 > (distance - (0.5 * speed))) :
tCity = "Bordeaux";
tF = 1;
tSign++;
break;
case (distance >= 675) && (675 > (distance - (0.5 * speed))) :
tCity = "Lyon";
tF = 1;
tSign++;
break;
case (distance >= 725) && (725 > (distance - (0.5 * speed))) :
tCity = "Berlin";
tF = 1;
tSign++;
break;
case (distance >= 782) && (782 > (distance - (0.5 * speed))) :
tCity = "Toulouse";
tF = 1;
tSign++;
break;
case (distance >= 815) && (815 > (distance - (0.5 * speed))) :
tCity = "Munich";
tF = 1;
tSign++;
break;
case (distance >= 830) && (830 > (distance - (0.5 * speed))) :
tCity = "Montpellier";
tF = 1;
tSign++;
break;
case (distance >= 856) && (856 > (distance - (0.5 * speed))) :
tCity = "Copenhagen";
tF = 1;
tSign++;
break;
case (distance >= 885) && (885 > (distance - (0.5 * speed))) :
tCity = "Milan";
tF = 1;
tSign++;
break;
case (distance >= 900) && (900 > (distance - (0.5 * speed))) :
tCity = "Marseille";
tF = 1;
tSign++;
break;
case (distance >= 928) && (928 > (distance - (0.5 * speed))) :
tCity = "Nice";
tF = 1;
tSign++;
break;
case (distance >= 956) && (956 > (distance - (0.5 * speed))) :
tCity = "Gothenburg";
tF = 1;
tSign++;
break;
case (distance >= 1044) && (1044 > (distance - (0.5 * speed))) :
tCity = "Barcelona";
tF = 1;
tSign++;
break;
case (distance >= 1074) && (1074 > (distance - (0.5 * speed))) :
tCity = "Oslo";
tF = 1;
tSign++;
break;
case (distance >= 1145) && (1145 > (distance - (0.5 * speed))) :
tCity = "Vienna";
tF = 1;
tSign++;
break;
case (distance >= 1173) && (1173 > (distance - (0.5 * speed))) :
tCity = "Madrid";
tF = 1;
tSign++;
break;
case (distance >= 1322) && (1322 > (distance - (0.5 * speed))) :
tCity = "Stockholm";
tF = 1;
tSign++;
break;
case (distance >= 1348) && (1348 > (distance - (0.5 * speed))) :
tCity = "Rome";
tF = 1;
tSign++;
break;
case (distance >= 1367) && (1367 > (distance - (0.5 * speed))) :
tCity = "Warsaw";
tF = 1;
tSign++;
break;
case (distance >= 1477) && (1477 > (distance - (0.5 * speed))) :
tCity = "Lisbon";
tF = 1;
tSign++;
break;
case (distance >= 1583) && (1583 > (distance - (0.5 * speed))) :
tCity = "Malaga";
tF = 1;
tSign++;
break;
case (distance >= 1715) && (1715 > (distance - (0.5 * speed))) :
tCity = "Helsinki";
tF = 1;
tSign++;
break;
case (distance >= 1899) && (1899 > (distance - (0.5 * speed))) :
tCity = "Bucharest";
tF = 1;
tSign++;
break;
case (distance >= 1982) && (1982 > (distance - (0.5 * speed))) :
tCity = "Saint Petersburg";
tF = 1;
tSign++;
break;
case (distance >= 2037) && (2037 > (distance - (0.5 * speed))) :
tCity = "Kiev";
tF = 1;
tSign++;
break;
case (distance >= 2304) && (2304 > (distance - (0.5 * speed))) :
tCity = "Athens";
tF = 1;
tSign++;
break;
case (distance >= 2368) && (2368 > (distance - (0.5 * speed))) :
tCity = "Istanbul";
tF = 1;
tSign++;
break;
case (distance >= 2424) && (2424 > (distance - (0.5 * speed))) :
tCity = "Moscow";
tF = 1;
tSign++;
break;
case (distance >= 3355) && (3355 > (distance - (0.5 * speed))) :
tCity = "Beirut";
tF = 1;
tSign++;
break;
case (distance >= 3410) && (3410 > (distance - (0.5 * speed))) :
tCity = "Cairo";
tF = 1;
tSign++;
break;
case (distance >= 3455) && (3455 > (distance - (0.5 * speed))) :
tCity = "Damascus";
tF = 1;
tSign++;
break;
case (distance >= 3559) && (3559 > (distance - (0.5 * speed))) :
tCity = "Amman";
tF = 1;
tSign++;
break;
case (distance >= 4285) && (4285 > (distance - (0.5 * speed))) :
tCity = "Tehran";
tF = 1;
tSign++;
break;
case (distance >= 4646) && (4646 > (distance - (0.5 * speed))) :
tCity = "Jeddah";
tF = 1;
tSign++;
break;
case (distance >= 4815) && (4815 > (distance - (0.5 * speed))) :
tCity = "Riyadh";
tF = 1;
tSign++;
break;
case (distance >= 4903) && (4903 > (distance - (0.5 * speed))) :
tCity = "Lagos";
tF = 1;
tSign++;
break;
case (distance >= 5104) && (5104 > (distance - (0.5 * speed))) :
tCity = "Montreal";
tF = 1;
tSign++;
break;
case (distance >= 5128) && (5128 > (distance - (0.5 * speed))) :
tCity = "Port Harcourt";
tF = 1;
tSign++;
break;
case (distance >= 5148) && (5148 > (distance - (0.5 * speed))) :
tCity = "Tashkent";
tF = 1;
tSign++;
break;
case (distance >= 5178) && (5178 > (distance - (0.5 * speed))) :
tCity = "Boston";
tF = 1;
tSign++;
break;
case (distance >= 5280) && (5280 > (distance - (0.5 * speed))) :
tCity = "Douala";
tF = 1;
tSign++;
break;
case (distance >= 5367) && (5367 > (distance - (0.5 * speed))) :
tCity = "Dubai";
tF = 1;
tSign++;
break;
case (distance >= 5455) && (5455 > (distance - (0.5 * speed))) :
tCity = "New York";
tF = 1;
tSign++;
break;
case (distance >= 5597) && (5597 > (distance - (0.5 * speed))) :
tCity = "Philadelphia";
tF = 1;
tSign++;
break;
case (distance >= 5708) && (5708 > (distance - (0.5 * speed))) :
tCity = "Toronto";
tF = 1;
tSign++;
break;
case (distance >= 5800) && (5800 > (distance - (0.5 * speed))) :
tCity = "Washington";
tF = 1;
tSign++;
break;
case (distance >= 5933) && (5933 > (distance - (0.5 * speed))) :
tCity = "Detroit";
tF = 1;
tSign++;
break;
case (distance >= 6247) && (6247 > (distance - (0.5 * speed))) :
tCity = "Chicago";
tF = 1;
tSign++;
break;
case (distance >= 6599) && (6599 > (distance - (0.5 * speed))) :
tCity = "Delhi";
tF = 1;
tSign++;
break;
case (distance >= 6670) && (6670 > (distance - (0.5 * speed))) :
tCity = "Atlanta";
tF = 1;
tSign++;
break;
case (distance >= 7019) && (7019 > (distance - (0.5 * speed))) :
tCity = "Miami";
tF = 1;
tSign++;
break;
case (distance >= 7082) && (7082 > (distance - (0.5 * speed))) :
tCity = "Munbai";
tF = 1;
tSign++;
break;
case (distance >= 7385) && (7385 > (distance - (0.5 * speed))) :
tCity = "Caracas";
tF = 1;
tSign++;
break;
case (distance >= 7453) && (7453 > (distance - (0.5 * speed))) :
tCity = "Havana";
tF = 1;
tSign++;
break;
case (distance >= 7682) && (7682 > (distance - (0.5 * speed))) :
tCity = "Houston";
tF = 1;
tSign++;
break;
case (distance >= 7935) && (7935 > (distance - (0.5 * speed))) :
tCity = "Bangalore";
tF = 1;
tSign++;
break;
case (distance >= 8022) && (8022 > (distance - (0.5 * speed))) :
tCity = "Beijing";
tF = 1;
tSign++;
break;
case (distance >= 8043) && (8043 > (distance - (0.5 * speed))) :
tCity = "Seychelles";
tF = 1;
tSign++;
break;
case (distance >= 8106) && (8106 > (distance - (0.5 * speed))) :
tCity = "Chennai";
tF = 1;
tSign++;
break;
case (distance >= 8411) && (8411 > (distance - (0.5 * speed))) :
tCity = "Bogota";
tF = 1;
tSign++;
break;
case (distance >= 8513) && (8513 > (distance - (0.5 * speed))) :
tCity = "San Fransisco";
tF = 1;
tSign++;
break;
case (distance >= 8648) && (8648 > (distance - (0.5 * speed))) :
tCity = "Los Angeles";
tF = 1;
tSign++;
break;
case (distance >= 8811) && (8811 > (distance - (0.5 * speed))) :
tCity = "Mexico City";
tF = 1;
tSign++;
break;
case (distance >= 8967) && (8967 > (distance - (0.5 * speed))) :
tCity = "Johannesburg";
tF = 1;
tSign++;
break;
case (distance >= 9006) && (9006 > (distance - (0.5 * speed))) :
tCity = "Seoul";
tF = 1;
tSign++;
break;
case (distance >= 9094) && (9094 > (distance - (0.5 * speed))) :
tCity = "Shanghai";
tF = 1;
tSign++;
break;
case (distance >= 9195) && (9195 > (distance - (0.5 * speed))) :
tCity = "Rio de Janeiro";
tF = 1;
tSign++;
break;
case (distance >= 9377) && (9377 > (distance - (0.5 * speed))) :
tCity = "Sao Paulo";
tF = 1;
tSign++;
break;
case (distance >= 9416) && (9416 > (distance - (0.5 * speed))) :
tCity = "Bangkok";
tF = 1;
tSign++;
break;
case (distance >= 9498) && (9498 > (distance - (0.5 * speed))) :
tCity = "Hong Kong";
tF = 1;
tSign++;
break;
case (distance >= 9577) && (9577 > (distance - (0.5 * speed))) :
tCity = "Cape Town";
tF = 1;
tSign++;
break;
case (distance >= 9665) && (9665 > (distance - (0.5 * speed))) :
tCity = "Mauritius";
tF = 1;
tSign++;
break;
case (distance >= 9734) && (9734 > (distance - (0.5 * speed))) :
tCity = "Osaka";
tF = 1;
tSign++;
break;
case (distance >= 9900) && (9900 > (distance - (0.5 * speed))) :
tCity = "Tokyo";
tF = 1;
tSign++;
break;
case (distance >= 10750) && (10750 > (distance - (0.5 * speed))) :
tCity = "Singapore";
tF = 1;
tSign++;
break;
case (distance >= 11078) && (11078 > (distance - (0.5 * speed))) :
tCity = "Buenos Aires";
tF = 1;
tSign++;
}
if (tF == 1) {
this._parent.cityholder_mc.attachMovie("citysign", [("citysign" + tSign) + "_mc"], this._parent.cityholder_mc.getNextHighestDepth());
this._parent.cityholder_mc[("citysign" + tSign) + "_mc"]._x = 615;
this._parent.cityholder_mc[("citysign" + tSign) + "_mc"]._y = 389;
this._parent.cityholder_mc[("citysign" + tSign) + "_mc"].cityname_txt.text = tCity;
}
altitude_txt.text = altitude + "m";
};
stop();
Frame 10
landing = true;
cityholder_mc.removeMovieClip();
bottomshade_mc.play();
startDrag ("cursor_mc", true);
this.onEnterFrame = function () {
trace("landing");
yMove = yMove + 0.2;
plane_mc._y = plane_mc._y + yMove;
if (yMove >= 3.2) {
yMove = 3.2;
}
altitude = altitude - 77;
altitude_txt.text = altitude + "m";
if (altitude <= 0) {
altitude = 0;
altitude_txt.text = altitude + "m";
delete this.onEnterFrame;
}
};
Frame 11
pPercentFrame = Math.round((distance / 11188) * 100) + 10;
if (pPercentFrame >= 100) {
pPercentFrame = 100;
}
trace(pPercentFrame);
this.map_mc.onEnterFrame = function () {
trace(this._parent.pPercentFrame);
if (this._currentframe == this._parent.pPercentFrame) {
this.gotoAndStop(this._parent.pPercentFrame);
delete this.onEnterFrame;
}
};
congratulations_txt.text = ((("Congratulations! You flew a distance of " + distance) + "km and finally arrived at ") + tCity) + ".";
HS_mc.submitHS(distance);
stop();
Symbol 3 MovieClip [trailsblob] Frame 7
stop();
Symbol 7 MovieClip [citysign] Frame 1
this.onEnterFrame = function () {
if (!_parent._parent.landing) {
this._x = this._x - (2 * _parent._parent.speed);
}
if (this._x <= -300) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 121
stop();
_parent.play();
Symbol 32 Button
on (release) {
pingHighScore("add");
_parent.gotoAndStop("scores");
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 35 Button
on (release) {
pingHighScore("get");
_parent.gotoAndStop("scores");
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 45 Button
on (release) {
getURL ("tandc.html", "_blank");
}
Symbol 47 Button
on (release) {
if (pOptin == "0") {
tickbox_mc.gotoAndStop(2);
pOptin = "1";
} else if (pOptin == "1") {
tickbox_mc.gotoAndStop(1);
pOptin = "0";
}
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
on (rollOut, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
Symbol 56 Button
on (release) {
_parent.gotoAndStop("menu2");
clearHS();
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 57 MovieClip Frame 1
function bitOR(a, b) {
var _local1 = (a & 1) | (b & 1);
var _local2 = (a >>> 1) | (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitXOR(a, b) {
var _local1 = (a & 1) ^ (b & 1);
var _local2 = (a >>> 1) ^ (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitAND(a, b) {
var _local1 = (a & 1) & (b & 1);
var _local2 = (a >>> 1) & (b >>> 1);
return((_local2 << 1) | _local1);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((num >> ((j * 8) + 4)) & 15) + hex_chr.charAt((num >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((((str.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((str.length * 8) + i) % 4) * 8));
var _local2 = str.length * 8;
blks[(nblk * 16) - 2] = _local2 & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, c), bitAND(~b, d)), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var _local1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
_local1 = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
var pScore = 0;
this.submitHS = function (tSC) {
this.pScore = tSC;
this.gotoAndPlay("enter");
this._parent.gotoAndPlay(pChartLoc);
};
this.displayHS = function () {
this.pingHighScore("get");
this._parent.gotoAndPlay(pChartLoc);
};
this.clearHS = function () {
this.gotoAndPlay("empty");
this._parent.gotoAndPlay(pDoneFrame);
};
this.pingHighScore = function (tFunc) {
if (tVarHS_lv != undefined) {
delete tVarHS_lv;
}
tVarHS_lv = new LoadVars();
tVarHS_lv.f = tFunc;
switch (tFunc) {
case "add" :
tVarHS_lv.o = pOptin;
tVarHS_lv.s = pScore;
tVarHS_lv.n = usrname_txt.text;
tVarHS_lv.e = usremail_txt.text;
if (tVarHS_lv.n.length < 1) {
emailalert_txt.text = "Please enter your name";
return(undefined);
}
if (tVarHS_lv.e.length < 5) {
emailalert_txt.text = "Please enter your email address";
return(undefined);
}
if (((tVarHS_lv.e.indexOf("@") == -1) || (tVarHS_lv.e.lastIndexOf(".") == -1)) || (tVarHS_lv.e.indexOf("@") > tVarHS_lv.e.lastIndexOf("."))) {
emailalert_txt.text = "Please enter your email address";
return(undefined);
}
p3_so.data.usrname = tVarHS_lv.n;
p3_so.data.usremail = tVarHS_lv.e;
p3_so.flush();
var _local2 = (tVarHS_lv.n + tVarHS_lv.e) + tVarHS_lv.s;
tVarHS_lv.m = calcMD5(_local2);
case "get" :
tVarHS_lv.onData = function (src) {
trace("src = " + src);
this.decode(src);
gotoAndPlay ("display");
};
tVarHS_lv.sendAndLoad(pPingLoc, tVarHS_lv, "GET");
this.gotoAndPlay("pingwait");
}
};
this.HSalert = function (txt) {
};
var hex_chr = "0123456789abcdef";
stop();
Symbol 57 MovieClip Frame 3
stop();
Symbol 57 MovieClip Frame 8
usrname_txt.restrict = "a-z A-Z 0-9";
usremail_txt.restrict = "a-zA-Z0-9@.\\";
pOptin = "0";
usrname_txt.tabIndex = 1;
usremail_txt.tabIndex = 2;
submit_mc.tabIndex = 3;
skip_mc.tabIndex = 4;
submit_mc.onRelease = function () {
};
skip_mc.onRelease = function () {
};
stop();
Symbol 57 MovieClip Frame 13
stop();
Symbol 57 MovieClip Frame 20
var tnames = tVarHS_lv.HSnames.split(",");
var tscores = tVarHS_lv.HSscores.split(",");
var tengland = tVarHS_lv.EPscores.split(",");
this.addCommas = function (tSC) {
var _local1 = "";
var _local5 = String(tSC);
var _local3 = _local5.split("");
var _local4 = 0;
var _local2 = _local3.length;
while (_local2 > 0) {
_local1 = String(_local3.pop()) + _local1;
_local4++;
if ((_local4 == 3) && (_local3.length > 1)) {
_local1 = "," + _local1;
_local4 = 0;
}
_local2--;
}
return(_local1);
};
i = 1;
while (i < 11) {
this["HSline" + i].HSpos.text = i;
this["HSline" + i].HSname.text = tnames[i - 1];
this["HSline" + i].HSscore.text = addCommas(tscores[i - 1]);
i++;
}
if (tengland[1] != undefined) {
this.HSlineX.HSpos.text = tengland[0];
this.HSlineX.HSname.text = tengland[1];
this.HSlineX.HSscore.text = addCommas(tengland[2]);
} else {
this.HSlineX.HSpos.text = "";
this.HSlineX.HSname.text = "";
this.HSlineX.HSscore.text = "";
}
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 430
gotoAndPlay ("loop");
Symbol 78 Button
on (rollOver) {
cursor_mc.gotoAndStop("hand");
}
on (rollOut) {
cursor_mc.gotoAndStop("arrow");
}
on (release) {
play();
}
Symbol 79 Button
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (release) {
_parent.play();
}
Symbol 80 MovieClip Frame 54
stop();
Symbol 83 MovieClip [midcloud4] Frame 1
var moveAmount = ((Math.random() * 3) + 3);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -350) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 85 MovieClip [midcloud3] Frame 1
var moveAmount = ((Math.random() * 4) + 2);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -350) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 87 MovieClip [highcloud1] Frame 1
var moveAmount = (Math.random() * 2);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -350) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 89 MovieClip [highcloud2] Frame 1
var moveAmount = (Math.random() * 2);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -350) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 92 MovieClip [midcloud5] Frame 1
var moveAmount = ((Math.random() * 5) + 2);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -350) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 94 MovieClip [midcloud2] Frame 1
var moveAmount = ((Math.random() * 3) + 4);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -450) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 97 MovieClip [midcloud1] Frame 1
var moveAmount = ((Math.random() * 3) + 3);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -450) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 99 MovieClip [lowcloud2] Frame 1
var moveAmount = ((Math.random() * 12) + 4);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -450) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 101 MovieClip [lowcloud1] Frame 1
var moveAmount = ((Math.random() * 12) + 6);
this.onEnterFrame = function () {
this._x = this._x - (moveAmount * _parent._parent.speed);
if (this._x < -450) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
Symbol 111 MovieClip Frame 1
pPowerText = "Refreshments";
gotoAndStop(Math.ceil(Math.random() * 8));
Symbol 111 MovieClip Frame 2
pPowerText = "Reading";
Symbol 111 MovieClip Frame 3
pPowerText = "Music";
Symbol 111 MovieClip Frame 4
pPowerText = "Food";
Symbol 111 MovieClip Frame 5
pPowerText = "Movies";
Symbol 111 MovieClip Frame 6
pPowerText = "Television";
Symbol 111 MovieClip Frame 7
pPowerText = "Radio";
Symbol 111 MovieClip Frame 8
pPowerText = "Tail Wind";
Symbol 114 MovieClip [powerup] Frame 1
movespeed = (Math.random() * 4) + 3;
this.onEnterFrame = function () {
this._x = this._x - (movespeed * _parent._parent.speed);
if ((!this._parent._parent.landing) && (this.hitTest(_parent._parent.plane_mc.planetilt_mc.planehit_mc))) {
this._parent._parent.textPowerUp = this.powerup_mc.pPowerText;
trace("you got a powerup! w00t");
this._parent._parent.plane_mc.poweruptext_mc.gotoAndPlay(2);
play();
}
if (this._x < -200) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
stop();
Symbol 114 MovieClip [powerup] Frame 2
this.onEnterFrame = function () {
this._parent._parent.comfortbar_mc.comfortlevel_mc._xscale = this._parent._parent.comfortbar_mc.comfortlevel_mc._xscale + 1;
};
Symbol 114 MovieClip [powerup] Frame 10
delete this.onEnterFrame;
stop();
Symbol 120 MovieClip Frame 1
pPowerText = "Head Wind";
gotoAndStop(Math.ceil(Math.random() * 4));
Symbol 120 MovieClip Frame 2
pPowerText = "Thunderstorm";
Symbol 120 MovieClip Frame 3
pPowerText = "Turbulence";
Symbol 120 MovieClip Frame 4
pPowerText = "Bad Weather";
Symbol 123 MovieClip [powerdown] Frame 1
movespeed = (Math.random() * 5) + 4;
this.onEnterFrame = function () {
this._x = this._x - (movespeed * _parent._parent.speed);
if ((!this._parent._parent.landing) && (this.hitTest(this._parent._parent.plane_mc.planetilt_mc.planehit_mc))) {
this._parent._parent.textPowerDown = this.powerdown_mc.pPowerText;
trace("you got a powerdown! oh no!");
this._parent._parent.plane_mc.powerdowntext_mc.gotoAndPlay(2);
play();
}
if (this._x < -200) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
stop();
Symbol 123 MovieClip [powerdown] Frame 2
this.onEnterFrame = function () {
this._parent._parent.comfortbar_mc.comfortlevel_mc._xscale = this._parent._parent.comfortbar_mc.comfortlevel_mc._xscale - 1;
};
Symbol 123 MovieClip [powerdown] Frame 10
delete this.onEnterFrame;
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 139 Button
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
on (rollOut) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (release) {
_parent.cursor_mc.gotoAndStop("arrow");
getURL ("http://www.playerthree.net", "_blank");
}
Symbol 149 MovieClip Frame 44
stop();
Symbol 152 Button
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
on (rollOut) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (release) {
_parent.cursor_mc.gotoAndStop("arrow");
_parent.play();
}
Symbol 155 Button
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
on (rollOut) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (release) {
_parent.cursor_mc.gotoAndStop("arrow");
_parent.gotoAndStop("intro");
}
Symbol 158 Button
on (release) {
if (sounds) {
gSound.setVolume(0);
sounds = false;
soundsquare_mc.gotoAndPlay("off");
} else {
gSound.setVolume(80);
sounds = true;
soundsquare_mc.gotoAndPlay("on");
}
}
on (rollOut, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 161 Button
on (release) {
_parent.HS_mc.displayHS();
_parent.gotoAndStop("scores");
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 162 Button
on (release) {
_parent.gotoAndStop("sendtofriend");
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 7
stop();
Symbol 166 MovieClip Frame 1
gSound = new Sound();
gSound.setVolume(80);
sounds = true;
Symbol 166 MovieClip Frame 20
stop();
Symbol 182 Button
on (release) {
sendMail();
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 185 Button
on (release) {
_parent.gotoAndStop("menu2");
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 188 MovieClip Frame 1
this.name1.text = "";
this.email1.text = "";
this.email2.text = "";
this.email3.text = "";
this.email4.text = "";
this.name1.tabIndex = 1;
this.email1.tabIndex = 2;
this.email2.tabIndex = 3;
this.email3.tabIndex = 4;
this.email4.tabIndex = 5;
this.sendMail = function () {
var _local3 = new LoadVars();
_local3.n = this.name1.text;
_local3.e = this.email1.text;
_local3.f1 = this.email2.text;
_local3.f2 = this.email3.text;
_local3.f3 = this.email4.text;
if (_local3.n.length < 1) {
this.alert_txt.text = "Please enter your name";
return(undefined);
}
if (!this.validEmail(_local3.e)) {
this.alert_txt.text = "Please enter your email address";
return(undefined);
}
if (_local3.fn.length < 1) {
this.alert_txt.text = "Please enter their name";
return(undefined);
}
if (!this.validEmail(_local3.f1)) {
this.alert_txt.text = "Please enter their email address";
return(undefined);
}
_local3.onData = function (src) {
trace("src = " + src);
this.decode(src);
_parent.gotoAndPlay("menu");
};
_local3.sendAndLoad("http://www.playerthree.net/ping/sendtoafriend.php", _local3, "GET");
};
this.validEmail = function (str) {
if (((str.indexOf("@") == -1) || (str.lastIndexOf(".") == -1)) || (str.indexOf("@") > str.lastIndexOf("."))) {
return(false);
}
return(true);
};
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
poweruptextbox_mc.powertext_txt.text = _parent._parent.textPowerUp;
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
poweruptextbox_mc.powertext_txt.text = _parent._parent.textPowerUp;
Symbol 231 MovieClip Frame 1
this.planehit_mc._alpha = 0;
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 25
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x - 2;
};
Symbol 285 MovieClip Frame 28
stop();
airstripicon_mc.airstriplines_mc.stop();
Symbol 293 MovieClip Frame 35
stop();
Symbol 299 MovieClip Frame 29
stop();
Symbol 300 MovieClip Frame 80
stop();
Symbol 301 MovieClip Frame 10
stop();
Symbol 307 MovieClip Frame 27
stop();
Symbol 307 MovieClip Frame 40
stop();
Symbol 311 MovieClip Frame 29
stop();
Symbol 312 MovieClip Frame 35
stop();
Symbol 313 MovieClip Frame 28
stop();
airstripicon_mc.airstriplines_mc.stop();
Symbol 314 MovieClip Frame 50
stop();
Symbol 319 Button
on (release) {
_parent.engineloop1.stop();
_parent.engineloop2.stop();
stopAllSounds();
_parent.play();
}
on (rollOut, release, releaseOutside) {
_parent.cursor_mc.gotoAndStop("arrow");
}
on (rollOver) {
_parent.cursor_mc.gotoAndStop("hand");
}
Symbol 320 MovieClip Frame 25
stop();