Frame 1
Stage.showMenu = false;
_root.globalSound = new Sound();
var_so = SharedObject.getLocal("learntofly");
Frame 2
function preload() {
var _local2 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local4 = Math.round((_local2 / _local3) * 100);
dtxt.text = _local4;
loadanim.gotoAndStop(_local4);
if (_local2 == _local3) {
loadanim.gotoAndPlay(101);
clearInterval(myInterval);
delete preload;
}
}
stop();
myInterval = setInterval(preload, 50);
Frame 3
stop();
Frame 4
function resetVars() {
cday = 0;
cash = 0;
lvlramp = 1;
lvlrh = 1;
lvlrf = 1;
lvlre = 1;
lvlgl = 1;
lvlro = 1;
lvlrp = 1;
stagedis13 = 0;
stagealt13 = 0;
stagespe13 = 0;
stagedur13 = 0;
stagedis23 = 0;
stagealt23 = 0;
stagespe23 = 0;
stagedur23 = 0;
stagedis33 = 0;
stagealt33 = 0;
stagespe33 = 0;
stagedur33 = 0;
stagedis43 = 0;
stagealt43 = 0;
stagespe43 = 0;
stagedur43 = 0;
stagedis53 = 0;
stagealt53 = 0;
stagespe53 = 0;
stagedur53 = 0;
delete gamefinished;
delete keepplaying;
delete infoboard1;
delete infoboard2;
delete infoboard3;
saveSO();
}
function flashfade(fadeto) {
_root.flashfader.fadeto = fadeto;
_root.flashfader.gotoAndPlay(2);
}
function fade(fout, fin, fadeto) {
if (fout == true) {
_root.fadeoutc.fadeto = fadeto;
_root.fadeoutc.fin = fin;
_root.fadeoutc.gotoAndPlay(2);
} else if (fin == true) {
_root.fadeinc.gotoAndPlay(2);
if ((((_root.achdis == 1) || (_root.achalt == 1)) || (_root.achspe == 1)) || (_root.achdur == 1)) {
_root.gotoAndPlay("achievements");
} else {
_root.gotoAndPlay(fadeto);
}
} else {
_root.fadeinc.gotoAndPlay(2);
if ((((_root.achdis == 1) || (_root.achalt == 1)) || (_root.achspe == 1)) || (_root.achdur == 1)) {
_root.gotoAndPlay("achievements");
} else {
_root.gotoAndPlay(fadeto);
}
}
}
function getCloud() {
tangle = (Math.atan2(player._y - oldy, player._x - oldx) / (Math.PI/180)) - 90;
if (Math.sqrt(Math.pow(_root["cloud" + cloudcount]._x - _root.player._x, 2) + Math.pow(_root["cloud" + cloudcount]._y - _root.player._y, 2)) > 1000) {
_root["cloud" + cloudcount]._x = 320 + (700 * Math.sin((-1 * ((_root.tangle + (Math.random() * 90)) - 45)) * (Math.PI/180)));
_root["cloud" + cloudcount]._y = 240 + (700 * Math.cos(((_root.tangle + (Math.random() * 90)) - 45) * (Math.PI/180)));
trnd = Math.random();
_root["cloud" + cloudcount]._alpha = 40 + (trnd * 70);
_root["cloud" + cloudcount]._xscale = 90 + (trnd * 45);
_root["cloud" + cloudcount]._yscale = 90 + (trnd * 45);
delete trnd;
if ((_root["cloud" + cloudcount]._y + 100) > _root.sea._y) {
_root["cloud" + cloudcount]._y = (_root.sea._y + (Math.random() * 380)) + 100;
}
}
if (cloudcount < 6) {
cloudcount++;
} else {
cloudcount = 1;
}
}
function movecam(left, right, buffer, speed, friction) {
camvx = camvx * friction;
camvy = camvy * friction;
if (player._x > right) {
camfactor = (player._x - right) / buffer;
camvx = camvx - (speed * camfactor);
} else if ((camvx > -0.1) && (camvx < 0.1)) {
camvx = 0;
}
if ((player._y > 250) && (sea._y > 400)) {
camfactor = (player._y - 250) / buffer;
camvy = camvy - (speed * camfactor);
} else if (player._y < 150) {
camfactor = (150 - player._y) / buffer;
camvy = camvy + (speed * camfactor);
} else if ((camvy > -0.1) && (camvy < 0.1)) {
camvy = 0;
}
player._x = player._x + camvx;
player._y = player._y + camvy;
ramp1._x = ramp1._x + camvx;
ramp1._y = ramp1._y + camvy;
ramp2._x = (ramp1._x + ramp1._width) - 1.5;
ramp2._y = ramp1._y;
ramp3._x = (ramp2._x + ramp2._width) - 1.5;
ramp3._y = (ramp2._y + ramp2._width) - 1.5;
ramp4._x = (ramp3._x + ramp3._width) - 1.5;
ramp4._y = ramp3._y;
gfxramp1._x = ramp1._x;
gfxramp1._y = ramp1._y - 4020;
gfxramp2._x = ramp2._x;
gfxramp2._y = ramp2._y - 4020;
gfxramp3._x = ramp3._x;
gfxramp3._y = ramp3._y - 4020;
gfxramp4._x = ramp4._x;
gfxramp4._y = ramp4._y - 4020;
sea._x = sea._x + camvx;
sea._y = sea._y + camvy;
if (sea._x < -2000) {
sea._x = sea._x + 2000;
}
skybg._x = skybg._x + camvx;
skybg._y = player._y;
if (skybg._x < -2000) {
skybg._x = skybg._x + 2000;
}
seagfx._x = sea._x;
seagfx._y = sea._y;
j = 1;
while (j < 7) {
_root["cloud" + j]._x = _root["cloud" + j]._x + (camvx - 1);
_root["cloud" + j]._y = _root["cloud" + j]._y + camvy;
j++;
}
splash._x = splash._x + camvx;
splash._y = splash._y + camvy;
}
function getRamp() {
tempvolume = (speed / 2) + 40;
if (tempvolume > 100) {
tempvolume = 100;
}
player.slidesfx.setVolume(tempvolume);
delete tempvolume;
player._x = player._x + (Math.cos(vdir) * vmag);
if ((player._x > ramp1._x) && (player._x < ((ramp1._x + ramp1._width) - 1))) {
overramp = _root.ramp1;
} else if ((player._x > ramp2._x) && (player._x < ((ramp2._x + ramp2._width) - 1))) {
overramp = _root.ramp2;
} else if ((player._x > ramp3._x) && (player._x < ((ramp3._x + ramp3._width) - 1))) {
overramp = _root.ramp3;
} else if ((player._x > ramp4._x) && (player._x < ((ramp4._x + ramp4._width) - 1))) {
overramp = _root.ramp4;
} else if (player._x > ((ramp4._x + ramp4._width) - 1)) {
overramp = "jump";
} else {
overramp = "";
}
if (overramp == _root.ramp2) {
player._y = (ramp2._y - ramp2._height) + (((player._x - ramp2._x) / ramp2._width) * ramp2._width);
} else {
objy = player._y;
j = 0;
if (overramp.hitTest(player._x, objy, true)) {
do {
if (!overramp.hitTest(player._x, objy, true)) {
break;
}
objy = objy - 0.5;
j++;
} while (j <= 250);
} else {
do {
if (overramp.hitTest(player._x, objy, true) != false) {
break;
}
objy = objy + 0.5;
j++;
} while (j <= 250);
}
player._y = objy;
}
farx = player._x + fardistance;
fary = player._y;
if ((farx > ramp1._x) && (farx < ((ramp1._x + ramp1._width) - 1))) {
nextramp = _root.ramp1;
} else if ((farx > ramp2._x) && (farx < ((ramp2._x + ramp2._width) - 1))) {
nextramp = _root.ramp2;
} else if ((farx > ramp3._x) && (farx < ((ramp3._x + ramp3._width) - 1))) {
nextramp = _root.ramp3;
} else if ((farx > ramp4._x) && (farx < ((ramp4._x + ramp4._width) - 1))) {
nextramp = _root.ramp4;
} else if (farx > ((ramp4._x + ramp4._width) - 1)) {
nextramp = "jump";
} else {
nextramp = "";
}
j = 0;
if (nextramp.hitTest(farx, fary, true)) {
do {
if (!nextramp.hitTest(farx, fary, true)) {
break;
}
fary = fary - 0.5;
j++;
} while (j <= 250);
} else {
do {
if (nextramp.hitTest(farx, fary, true) != false) {
break;
}
fary = fary + 0.5;
j++;
} while (j <= 250);
}
if (nextramp != "jump") {
farratio = fary - player._y;
vdir = Math.atan(farratio / fardistance);
if (farratio > 0) {
vmag = vmag + (farratio * slide);
} else {
vmag = vmag + (20 * slide);
}
player._rotation = (vdir / (Math.PI/180)) + 90;
} else if (player.jumped != true) {
vx = Math.cos(vdir) * vmag;
vy = Math.sin(vdir) * vmag;
vdir = vdir / (Math.PI/180);
vdir = vdir + sink;
player.jumped = true;
if (showcontrols == true) {
hint._visible = true;
if (lvlgl == 1) {
hint.gotoAndPlay("hint1");
} else {
hint.gotoAndPlay("hint2");
}
}
delete loopslide;
player.slidesfx.stop();
delete player.slidesfx;
_root.bgm.theme.start(0, 0);
tempvolume = (speed / 2) - 15;
if (tempvolume > 65) {
tempvolume = 65;
}
player.jumpsfx.setVolume(tempvolume);
delete tempvolume;
player.jumpsfx.start(0, 0);
}
}
function getSea() {
vx = vx * seafriction;
vy = vy * seafriction;
vy = vy + seagravity;
player._x = player._x + vx;
player._y = player._y + vy;
player._rotation = (Math.atan2(vy, vx) / (Math.PI/180)) + 90;
}
function getAir() {
if (((distance >= 6000) && (_root.gamefinished != true)) && (_root.keepplaying != true)) {
_root.cash = _root.cash + 10000;
_root.flashfade("outro");
_root.gamefinished = true;
_root.bgm.theme.stop();
delete _root.bgm.theme;
_root.bgm.removeMovieClip();
player._x = player._x + ((Math.cos(vdir * (Math.PI/180)) * vmag) * glideratio);
player._y = player._y + ((Math.sin(vdir * (Math.PI/180)) * vmag) * glideratio);
player._x = player._x + (vx * (1 - glideratio));
player._y = player._y + vy;
} else if ((gamefinished == true) && (_root.keepplaying != true)) {
player._x = player._x + ((Math.cos(vdir * (Math.PI/180)) * vmag) * glideratio);
player._y = player._y + ((Math.sin(vdir * (Math.PI/180)) * vmag) * glideratio);
player._x = player._x + (vx * (1 - glideratio));
player._y = player._y + vy;
} else {
duration = duration + 0.02;
if (kickthrust > 0) {
player._x = player._x + vx;
player._y = player._y + vy;
kickthrust--;
} else {
if (Key.isDown(37) && (vdir > -85)) {
tspin = 1.5 - ((3 * vmag) / sgl3[lvlgl - 1]);
if (tspin < 0) {
tspin = 0;
}
player._rotation = player._rotation - (spin + tspin);
vdir = vdir - (spin + tspin);
delete tspin;
}
if (Key.isDown(39) && (vdir < 85)) {
tspin = 1.5 - ((3 * vmag) / sgl3[lvlgl - 1]);
if (tspin < 0) {
tspin = 0;
}
player._rotation = player._rotation + (spin + tspin);
vdir = vdir + (spin + tspin);
delete tspin;
}
if (Key.isDown(32) && (rocketfuel > 0)) {
player.fuel.gotoAndStop(50 - Math.round(((rocketfuel / _root.srp[_root.lvlrp - 1]) * 50) - 0.5));
if (_root.rocketsfx._name != "rocketsfx") {
_root.attachMovie("BGM", "rocketsfx", _root.getNextHighestDepth());
_root.rocketsfx._x = -150;
_root.rocketsfx.jet = new Sound(rocketsfx);
_root.rocketsfx.jet.attachSound("jet.wav", false);
_root.rocketsfx.jet.setVolume(40 + (lvlro * 15));
_root.rocketsfx.jet.start(0, 0);
_root.rocketsfx.jet.onSoundComplete = function () {
_root.rocketsfx.jet.start(0, 0);
};
}
player.rocketflare._visible = true;
vmag = vmag + rocketpower;
vx = vx + (Math.cos(vdir * (Math.PI/180)) * rocketpower);
vy = vy + (Math.sin(vdir * (Math.PI/180)) * rocketpower);
rocketfuel--;
} else {
if (_root.rocketsfx._name != "") {
_root.rocketsfx.jet.stop();
delete _root.rocketsfx.jet;
_root.rocketsfx.removeMovieClip();
}
player.rocketflare._visible = false;
}
drag = (sink - vdir) / 90;
if (_root.speed > _root.sgl3[_root.lvlgl - 1]) {
drag = drag + (((_root.speed - _root.sgl3[_root.lvlgl - 1]) / _root.sgl3[_root.lvlgl - 1]) * 1.5);
}
vmag = vmag * (1 - ((airfriction * drag) * glideratio));
vmag = vmag - (gravity * drag);
glidetarget = ((vmag - fallspeed) / (glidespeed - fallspeed)) - glideratio;
if (glidetarget > glideadjust) {
glidetarget = glideadjust;
} else if (glidetarget < (-glideadjust)) {
glidetarget = -glideadjust;
}
glideratio = glideratio + glidetarget;
if (glideratio > 1) {
glideratio = 1;
} else if (glideratio < minglide) {
glideratio = minglide;
}
vy = vy + gravity;
vy = vy * (1 - (0.1 * glideratio));
vy = vy * (1 - (airfriction / 15));
if (vx > vmag) {
vx = vx * (1 - airfriction);
} else {
vx = vx * (1 - (airfriction / 10));
}
player._x = player._x + ((Math.cos(vdir * (Math.PI/180)) * vmag) * glideratio);
player._y = player._y + ((Math.sin(vdir * (Math.PI/180)) * vmag) * glideratio);
player._x = player._x + (vx * (1 - glideratio));
player._y = player._y + vy;
}
curheight = (sea._y - player._y) / 50;
if (curheight <= 0) {
if (((speed >= seabouncespeed) && (player._rotation >= seabounceminangle)) && (player._rotation <= seabouncemaxangle)) {
player._y = sea._y;
vx = vx * seabouncefriction;
vmag = vmag * seabouncefriction;
vy = ((vx + vmag) / 2) * seabouncepower;
splash._x = player._x;
splash._y = player._y;
splash._xscale = 100 + (speed / 3);
splash._yscale = 100 + (speed / 3);
splash.gotoAndPlay(1);
if (vy < maxseabounce) {
vy = maxseabounce;
}
player._rotation = 70;
vdir = player._rotation - 90;
} else {
splash._x = player._x;
splash._y = sea._y;
splash._xscale = 100 + (speed / 3);
splash._yscale = speed;
splash.gotoAndPlay(1);
_root.rocketsfx.jet.stop();
delete _root.rocketsfx.jet;
_root.rocketsfx.removeMovieClip();
duration = Math.round(duration - 0.5);
tmod = 1 + (distance / 1000);
if (tmod > 2) {
tmod = 2 - ((distance - 1000) / 1500);
}
if (tmod < 0.5) {
tmod = 0.5;
}
distance = distance * (0.4 * tmod);
tmod = 1 + (maxaltitude / 50);
if (tmod > 2) {
tmod = 2;
}
maxaltitude = maxaltitude * (2 * tmod);
vmag = vmag * 0.7;
vx = (vx * (1 - glideratio)) + ((Math.cos(vdir * (Math.PI/180)) * vmag) * glideratio);
vy = (vy * (1 - glideratio)) + ((Math.sin(vdir * (Math.PI/180)) * vmag) * glideratio);
player.landed = true;
player.rocketflare._visible = false;
}
}
}
}
function saveSO() {
var_so.data.cday = cday;
var_so.data.cash = cash;
var_so.data.lvlramp = lvlramp;
var_so.data.lvlrh = lvlrh;
var_so.data.lvlrf = lvlrf;
var_so.data.lvlre = lvlre;
var_so.data.lvlgl = lvlgl;
var_so.data.lvlro = lvlro;
var_so.data.lvlrp = lvlrp;
var_so.data.stagedis13 = stagedis13;
var_so.data.stagealt13 = stagealt13;
var_so.data.stagespe13 = stagespe13;
var_so.data.stagedur13 = stagedur13;
var_so.data.stagedis23 = stagedis23;
var_so.data.stagealt23 = stagealt23;
var_so.data.stagespe23 = stagespe23;
var_so.data.stagedur23 = stagedur23;
var_so.data.stagedis33 = stagedis33;
var_so.data.stagealt33 = stagealt33;
var_so.data.stagespe33 = stagespe33;
var_so.data.stagedur33 = stagedur33;
var_so.data.stagedis43 = stagedis43;
var_so.data.stagealt43 = stagealt43;
var_so.data.stagespe43 = stagespe43;
var_so.data.stagedur43 = stagedur43;
var_so.data.stagedis53 = stagedis53;
var_so.data.stagealt53 = stagealt53;
var_so.data.stagespe53 = stagespe53;
var_so.data.stagedur53 = stagedur53;
var_so.data.gamefinished = gamefinished;
var_so.data.keepplaying = keepplaying;
var_so.data.infoboard1 = infoboard1;
var_so.data.infoboard2 = infoboard2;
var_so.data.infoboard3 = infoboard3;
var_so.flush();
}
function loadSO() {
cday = var_so.data.cday;
cash = var_so.data.cash;
lvlramp = var_so.data.lvlramp;
lvlrh = var_so.data.lvlrh;
lvlrf = var_so.data.lvlrf;
lvlre = var_so.data.lvlre;
lvlgl = var_so.data.lvlgl;
lvlro = var_so.data.lvlro;
lvlrp = var_so.data.lvlrp;
stagedis13 = var_so.data.stagedis13;
stagealt13 = var_so.data.stagealt13;
stagespe13 = var_so.data.stagespe13;
stagedur13 = var_so.data.stagedur13;
stagedis23 = var_so.data.stagedis23;
stagealt23 = var_so.data.stagealt23;
stagespe23 = var_so.data.stagespe23;
stagedur23 = var_so.data.stagedur23;
stagedis33 = var_so.data.stagedis33;
stagealt33 = var_so.data.stagealt33;
stagespe33 = var_so.data.stagespe33;
stagedur33 = var_so.data.stagedur33;
stagedis43 = var_so.data.stagedis43;
stagealt43 = var_so.data.stagealt43;
stagespe43 = var_so.data.stagespe43;
stagedur43 = var_so.data.stagedur43;
stagedis53 = var_so.data.stagedis53;
stagealt53 = var_so.data.stagealt53;
stagespe53 = var_so.data.stagespe53;
stagedur53 = var_so.data.stagedur53;
gamefinished = var_so.data.gamefinished;
keepplaying = var_so.data.keepplaying;
infoboard1 = var_so.data.infoboard1;
infoboard2 = var_so.data.infoboard2;
infoboard3 = var_so.data.infoboard3;
}
cquality = 3;
_quality = "high";
skipcutscenes = false;
showcontrols = true;
mute = false;
var srl = new Array(250, 500, 750, 1250, 2000);
var srh = new Array(25, 75, 125, 175, 250, 350, 500, 700, 1000, 1400, 2000);
var srf = new Array(0.015, 0.025, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12);
var sre = new Array(0.065, 0.061, 0.057, 0.053, 0.049, 0.046, 0.043, 0.04, 0.038, 0.036, 0.034);
var sgl = new Array(0, 0.0833333333333333, 0.0416666666666667, 0.0277777777777778);
var sgl1 = new Array(1000, 0, 0, 0);
var sgl2 = new Array(1000, 5, 6, 7);
var sgl3 = new Array(50, 55, 100, 200);
var sgl4 = new Array(1, 60, 500, 200);
var sro = new Array(0, 0.45, 0.9, 1.5);
var srp = new Array(30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 175);
var crh = new Array(10, 30, 50, 90, 175, 300, 600, 1000, 2000, 4000);
var crf = new Array(15, 45, 80, 150, 400, 750, 1500, 3500, 6000, 10000);
var cre = new Array(10, 30, 50, 100, 175, 375, 800, 2000, 4000, 6500);
var cgl = new Array(50, 1000, 5000);
var cro = new Array(250, 2000, 10000);
var crp = new Array(50, 100, 150, 300, 600, 1000, 2000, 3500, 6000, 10000);
cday = 0;
cash = 0;
lvlramp = 1;
lvlrh = 1;
lvlrf = 1;
lvlre = 1;
lvlgl = 1;
lvlro = 1;
lvlrp = 1;
stageac1 = 0;
stagedis11 = 40;
stagealt11 = 10;
stagespe11 = 45;
stagedur11 = 5;
stagedis12 = 25;
stagealt12 = 25;
stagespe12 = 25;
stagedur12 = 25;
stageac2 = 2;
stagedis21 = 200;
stagealt21 = 25;
stagespe21 = 70;
stagedur21 = 8;
stagedis22 = 100;
stagealt22 = 100;
stagespe22 = 100;
stagedur22 = 100;
stageac3 = 6;
stagedis31 = 650;
stagealt31 = 45;
stagespe31 = 100;
stagedur31 = 15;
stagespe32 = 500;
stagedis32 = 500;
stagealt32 = 500;
stagedur32 = 500;
stageac4 = 10;
stagedis41 = 1500;
stagealt41 = 100;
stagespe41 = 150;
stagedur41 = 25;
stagedis42 = 2000;
stagealt42 = 2000;
stagespe42 = 2000;
stagedur42 = 2000;
stageac5 = 16;
stagedis51 = 4000;
stagealt51 = 225;
stagespe51 = 225;
stagedur51 = 35;
stagedis52 = 5000;
stagealt52 = 5000;
stagespe52 = 5000;
stagedur52 = 5000;
stagedis13 = 0;
stagealt13 = 0;
stagespe13 = 0;
stagedur13 = 0;
stagedis23 = 0;
stagealt23 = 0;
stagespe23 = 0;
stagedur23 = 0;
stagedis33 = 0;
stagealt33 = 0;
stagespe33 = 0;
stagedur33 = 0;
stagedis43 = 0;
stagealt43 = 0;
stagespe43 = 0;
stagedur43 = 0;
stagedis53 = 0;
stagealt53 = 0;
stagespe53 = 0;
stagedur53 = 0;
Instance of Symbol 148 MovieClip "optmenu" in Frame 4
onClipEvent (load) {
this.count = 0;
this.a = "hide";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.a = "show";
} else {
this.a = "hide";
}
if ((this.a == "show") && (this.count < 14)) {
this.count++;
} else if ((this.a == "hide") && (this.count > 0)) {
this.count--;
}
this.gotoAndStop(2 + this.count);
}
Frame 5
stop();
Frame 6
stop();
Frame 8
_root.saveSO();
stop();
_root.attachMovie("BGM", "bgm", _root.getNextHighestDepth());
_root.bgm._x = -100;
_root.bgm.theme = new Sound(bgm);
_root.bgm.theme.attachSound("shop.wav", false);
_root.bgm.theme.start(0, 0);
_root.bgm.theme.onSoundComplete = function () {
_root.bgm.theme.start(0, 0);
};
Frame 9
function getStage(stg) {
stageac = 0;
l = 1;
while (l <= 5) {
if (_root[("stagedis" + l) + 3] != 0) {
stageac++;
}
if (_root[("stagealt" + l) + 3] != 0) {
stageac++;
}
if (_root[("stagespe" + l) + 3] != 0) {
stageac++;
}
if (_root[("stagedur" + l) + 3] != 0) {
stageac++;
}
l++;
}
if (stageac >= 16) {
sbtn2d._visible = false;
sbtn3d._visible = false;
sbtn4d._visible = false;
sbtn5d._visible = false;
} else if (stageac >= 10) {
sbtn2d._visible = false;
sbtn3d._visible = false;
sbtn4d._visible = false;
} else if (stageac >= 6) {
sbtn2d._visible = false;
sbtn3d._visible = false;
} else if (stageac >= 2) {
sbtn2d._visible = false;
}
if (stageac < _root["stageac" + stg]) {
stageac = ("( Complete " + (_root["stageac" + stg] - stageac)) + " achievements to unlock )";
stagehide._alpha = 70;
} else {
stageac = "";
stagehide._alpha = 1;
}
acdisre.gotoAndStop(1);
acaltre.gotoAndStop(2);
acspere.gotoAndStop(3);
acdurre.gotoAndStop(4);
stagemc.gotoAndStop(stg);
acdis.gotoAndStop(_root[("stagedis" + stg) + "3"] + 1);
acalt.gotoAndStop(_root[("stagealt" + stg) + "3"] + 1);
acspe.gotoAndStop(_root[("stagespe" + stg) + "3"] + 1);
acdur.gotoAndStop(_root[("stagedur" + stg) + "3"] + 1);
acdis1 = ("Travel " + _root[("stagedis" + stg) + "1"]) + " feet";
acdis2 = ("( " + _root[("stagedis" + stg) + "2"]) + "$ )";
acalt1 = ("Fly up to " + _root[("stagealt" + stg) + "1"]) + " feet";
acalt2 = ("( " + _root[("stagealt" + stg) + "2"]) + "$ )";
acspe1 = ("Reach " + _root[("stagespe" + stg) + "1"]) + " mph";
acspe2 = ("( " + _root[("stagespe" + stg) + "2"]) + "$ )";
acdur1 = ("Glide for " + _root[("stagedur" + stg) + "1"]) + " seconds";
acdur2 = ("( " + _root[("stagedur" + stg) + "2"]) + "$ )";
account = 0;
if (_root[("stagedis" + stg) + "3"] != 0) {
acdisre.gotoAndStop(5);
account++;
}
if (_root[("stagealt" + stg) + "3"] != 0) {
acaltre.gotoAndStop(5);
account++;
}
if (_root[("stagespe" + stg) + "3"] != 0) {
acspere.gotoAndStop(5);
account++;
}
if (_root[("stagedur" + stg) + "3"] != 0) {
acdurre.gotoAndStop(5);
account++;
}
account = ("( " + account) + " / 4 )";
}
stop();
stagelvl = 1;
stageshow = 2;
btndown = 0;
exitmenu = 0;
stageac = 0;
stageblock._alpha = 100;
sbtn1c.gotoAndStop(17);
sbtn2c.gotoAndStop(17);
sbtn3c.gotoAndStop(17);
sbtn4c.gotoAndStop(17);
sbtn5c.gotoAndStop(17);
j = 1;
while (j <= 5) {
this[("sbtn" + j) + "b"]._alpha = 1 * (120 - Math.abs(this[("sbtn" + j) + "a"]._x - 220));
j++;
}
if ((_root._ymouse < 100) && (exitmenu != 1)) {
j = 1;
while (j <= 5) {
this[("sbtn" + j) + "b"]._alpha = 1 * (120 - Math.abs(this[("sbtn" + j) + "a"]._x - _root._xmouse));
if (this[("sbtn" + j) + "a"].hitTest(_root._xmouse, _root._ymouse)) {
if (j != stagelvl) {
this[("sbtn" + j) + "c"].gotoAndPlay(2);
stagelvl = j;
stageshow = 1;
}
}
j++;
}
}
getStage(1);
this.onEnterFrame = function () {
if ((stageshow == 1) && (stageblock._alpha < 100)) {
stageblock._alpha = stageblock._alpha + 50;
} else if ((stageshow == 1) && (stageblock._alpha >= 100)) {
getStage(stagelvl);
stageblock._alpha = 80;
stageshow = 2;
} else if ((stageshow == 2) && (stageblock._alpha > 0)) {
stageblock._alpha = stageblock._alpha - 10;
} else if ((stageshow == 2) && (stageblock._alpha <= 0)) {
stageshow = 0;
}
};
this.onMouseMove = function () {
if ((_root._ymouse < 100) && (exitmenu != 1)) {
j = 1;
while (j <= 5) {
this[("sbtn" + j) + "b"]._alpha = 1 * (120 - Math.abs(this[("sbtn" + j) + "a"]._x - _root._xmouse));
if (this[("sbtn" + j) + "a"].hitTest(_root._xmouse, _root._ymouse)) {
if (j != stagelvl) {
this[("sbtn" + j) + "c"].gotoAndPlay(2);
stagelvl = j;
stageshow = 1;
}
}
j++;
}
}
};
this.onMouseDown = function () {
if ((stagehide._alpha <= 1) && (exitmenu != 1)) {
btndown = 0;
k = 1;
while (k <= 5) {
if (this[("sbtn" + k) + "b"].hitTest(_root._xmouse, _root._ymouse, true)) {
btndown = k;
}
k++;
}
this[("sbtn" + btndown) + "b"]._visible = false;
this[("sbtn" + btndown) + "c"].gotoAndStop(3);
}
};
this.onMouseUp = function () {
if ((stagehide._alpha <= 1) && (exitmenu != 1)) {
if (btndown != 0) {
this[("sbtn" + btndown) + "b"]._visible = true;
this[("sbtn" + btndown) + "c"].gotoAndPlay(4);
}
if (this[("sbtn" + btndown) + "b"].hitTest(_root._xmouse, _root._ymouse, true)) {
exitmenu = 1;
_root.lvlramp = btndown;
if (_root.menuexit == true) {
delete_root.menuexit;
}
_root.bgm.theme.stop();
delete _root.bgm.theme;
_root.bgm.removeMovieClip();
_root.fade(true, true, "dayintro");
}
}
};
Frame 10
_root.stopAllSounds();
_root.cday++;
stop();
Frame 11
function loopslide() {
if (player.slidesfx.position > 3150) {
player.slidesfx.stop();
player.slidesfx.start(0.65, 0);
}
}
stop();
cloudcount = 1;
camvx = 0;
camvy = 0;
rdis = "$0";
rdis2 = 0;
rdur = "0.00";
rdur2 = 0;
rdur3 = 0;
ralt = "$0";
ralt2 = 0;
rtotal = "$0";
rtotal2 = 0;
rtotal3 = 0;
boardstate = 0;
duration = 9.5;
maxaltitude = 0;
maxspeed = 0;
finishclick = false;
oldx = 0;
oldy = 0;
distance = 0;
spehud = 0;
reshud = 0;
althud = 0;
dishud = 0;
speboard = 0;
altboard = 0;
disboard = 0;
durboard = 0;
_root.achdis = 0;
_root.achalt = 0;
_root.achspe = 0;
_root.achdur = 0;
rampheight = _root.srh[_root.lvlrh - 1];
fardistance = 40;
farratio = 0;
farx = 0;
fary = 0;
overramp = "";
nextramp = "";
kickangle = 1;
slide = _root.srf[_root.lvlrf - 1];
kickthrust = 0;
gravity = 0.4;
sink = Math.atan(_root.sgl[_root.lvlgl - 1]) / (Math.PI/180);
drag = 0;
airfriction = _root.sre[_root.lvlre - 1];
glidespeed = _root.sgl2[_root.lvlgl - 1];
fallspeed = _root.sgl1[_root.lvlgl - 1];
minglide = 0;
glideratio = 0;
glidetarget = 0;
glideadjust = 0.05;
rocketfuel = _root.srp[_root.lvlrp - 1];
rocketpower = _root.sro[_root.lvlro - 1];
spin = 1;
seabouncespeed = 20;
seabounceminangle = 75;
seabouncemaxangle = 105;
seabouncefriction = 0.8;
seabouncepower = -0.18;
maxseabounce = -18;
seafriction = 0.91;
seagravity = -0.9;
player._x = 0;
player._y = 200;
vx = 0;
vy = 0;
vdir = 0;
vmag = 5;
player.jumped = false;
player.landed = false;
player.finished = false;
j = 1;
while (j < 7) {
_root["cloud" + j]._x = (Math.random() * 900) - 300;
_root["cloud" + j]._y = (Math.random() * 1000) - 600;
_root["cloud" + j]._alpha = 40 + (Math.random() * 70);
if (_root["cloud" + j]._y > _root.sea._y) {
_root["cloud" + j]._y = (_root.sea._y + (Math.random() * 600)) + 50;
}
j++;
}
ramp2.gotoAndStop(_root.lvlramp);
gfxramp2.gotoAndStop(_root.lvlramp);
ramp1._x = player._x - 300;
ramp1._y = player._y + 4525;
ramp2._x = (ramp1._x + ramp1._width) - 1.5;
ramp2._y = ramp1._y;
ramp3._x = (ramp2._x + ramp2._width) - 1.5;
ramp3._y = (ramp2._y + ramp2._width) - 1.5;
ramp4._x = (ramp3._x + ramp3._width) - 1.5;
ramp4._y = ramp3._y;
sea._x = ramp1._x;
sea._y = ((ramp3._y - ramp3._height) + 150) + rampheight;
fboard.gotoAndStop(1);
hudc.hud.gotoAndStop(lvlgl + 1);
splash.stop();
sky.stop();
player.slidesfx = new Sound(player);
player.jumpsfx = new Sound(player);
player.slidesfx.attachSound("slide3.wav", false);
player.jumpsfx.attachSound("jump.wav", false);
player.jumpsfx.onSoundComplete = function () {
delete player.jumpsfx;
};
player.slidesfx.start(0, 0);
hint._visible = false;
this.onEnterFrame = function () {
loopslide();
skybg._alpha = (100 * speed) / 200;
oldx = player._x;
oldy = player._y;
curheight = (sea._y - player._y) / 50;
sky.gotoAndStop(Math.round(curheight * 0.75) - 50);
if (speed > maxspeed) {
maxspeed = speed;
}
if (player.jumped != true) {
getRamp();
} else if (player.landed != true) {
getAir();
distance = (player._x - (ramp4._x + ramp4._width)) / 50;
if (curheight > maxaltitude) {
maxaltitude = curheight;
}
} else if (player.finished != true) {
getSea();
distance = (player._x - (ramp4._x + ramp4._width)) / 50;
if (curheight >= 0) {
player._y = sea._y;
if (vx <= 0.7) {
player.finished = true;
hudc.gotoAndPlay("hide");
fboard.gotoAndPlay(1);
if ((_root[("stagedis" + _root.lvlramp) + "3"] == 0) && (distance >= _root[("stagedis" + _root.lvlramp) + "1"])) {
_root.achdis = 1;
_root[("stagedis" + _root.lvlramp) + "3"] = 1;
}
if ((_root[("stagealt" + _root.lvlramp) + "3"] == 0) && ((maxaltitude / 2) >= _root[("stagealt" + _root.lvlramp) + "1"])) {
_root.achalt = 1;
_root[("stagealt" + _root.lvlramp) + "3"] = 1;
}
if ((_root[("stagespe" + _root.lvlramp) + "3"] == 0) && (maxspeed >= _root[("stagespe" + _root.lvlramp) + "1"])) {
_root.achspe = 1;
_root[("stagespe" + _root.lvlramp) + "3"] = 1;
}
if ((_root[("stagedur" + _root.lvlramp) + "3"] == 0) && (((duration - 9.5) / 0.6) >= _root[("stagedur" + _root.lvlramp) + "1"])) {
_root.achdur = 1;
_root[("stagedur" + _root.lvlramp) + "3"] = 1;
}
distance = distance * 0.4;
}
}
} else if (_root.boarddone == true) {
}
getCloud();
if (player.finished != true) {
speed = Math.sqrt(Math.pow(player._x - oldx, 2) + Math.pow(player._y - oldy, 2));
spehud = Math.round(speed);
althud = Math.round(curheight * 10) / 10;
if (String(althud).indexOf(".") < 0) {
althud = althud + ".0";
}
dishud = Math.round(distance);
}
if (drag >= 0) {
reshud = Math.round(drag * 99.5) + "%";
} else {
reshud = "0%";
}
movecam(150, 220, 2.5, 0.7, 0.6);
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if ((player.finished == true) && (finishclick != true)) {
_root.cash = _root.cash + Math.round(((Math.round(distance) + Math.round(maxaltitude)) * Math.round(duration)) / 10);
finishclick = true;
_root.fade(true, true, "shop");
}
};
Key.addListener(keyListener);
this.onMouseDown = function () {
if ((player.finished == true) && (finishclick != true)) {
_root.cash = _root.cash + Math.round(((Math.round(distance) + Math.round(maxaltitude)) * Math.round(duration)) / 10);
finishclick = true;
_root.fade(true, true, "shop");
}
};
_root.attachMovie("BGM", "bgm", _root.getNextHighestDepth());
_root.bgm._x = -100;
_root.bgm.theme = new Sound(bgm);
_root.bgm.theme.attachSound("beat", false);
_root.bgm.theme.onSoundComplete = function () {
_root.bgm.theme.start(0, 0);
};
Frame 12
stop();
timer = 40;
idle = true;
fading = false;
cashchg = 0;
_root.casha = "0 $";
_root.cashb = 0;
cashc = 0;
cashvy = 0;
achcash1.gotoAndStop(1);
achcash1._y = -50;
achdis1.gotoAndStop(1);
achdis1._visible = false;
achalt1.gotoAndStop(1);
achalt1._visible = false;
achspe1.gotoAndStop(1);
achspe1._visible = false;
achdur1.gotoAndStop(1);
achdur1._visible = false;
this.onEnterFrame = function () {
if (cashchg == 1) {
cashvy = 0;
_root.cashb = _root.cash - _root.rewarda;
_root.casha = Math.round(_root.cashb) + " $";
achcash1._y = 6;
achcash1.gotoAndPlay(2);
cashchg = 2;
cashc = (_root.cash - _root.cashb) / 25;
} else if (cashchg == 2) {
_root.cashb = _root.cashb + cashc;
if (_root.cash <= _root.cashb) {
_root.cashb = _root.cash;
idle = true;
cashchg = 3;
ttimer = 40;
}
_root.casha = Math.round(_root.cashb) + " $";
} else if (cashchg == 3) {
ttimer--;
if (ttimer <= 0) {
cashchg = 4;
}
} else if (cashchg == 4) {
cashvy = cashvy + 0.4;
achcash1._y = achcash1._y - cashvy;
if (achcash1._y <= -50) {
achcash1.gotoAndStop(1);
achcash1._y = -50;
cashchg = 0;
}
}
if (fading != true) {
if (timer > 0) {
timer--;
} else if (idle == true) {
if (_root.achdis == 1) {
_root.reward = _root[("stagedis" + _root.lvlramp) + "2"] + " $";
_root.rewarda = _root[("stagedis" + _root.lvlramp) + "2"];
achdis1._visible = true;
achdis1.gotoAndPlay(1);
idle = false;
} else if (_root.achalt == 1) {
_root.reward = _root[("stagealt" + _root.lvlramp) + "2"] + " $";
_root.rewarda = _root[("stagealt" + _root.lvlramp) + "2"];
achalt1._visible = true;
achalt1.gotoAndPlay(1);
idle = false;
} else if (_root.achspe == 1) {
_root.reward = _root[("stagespe" + _root.lvlramp) + "2"] + " $";
_root.rewarda = _root[("stagespe" + _root.lvlramp) + "2"];
achspe1._visible = true;
achspe1.gotoAndPlay(1);
idle = false;
} else if (_root.achdur == 1) {
_root.reward = _root[("stagedur" + _root.lvlramp) + "2"] + " $";
_root.rewarda = _root[("stagedur" + _root.lvlramp) + "2"];
achdur1._visible = true;
achdur1.gotoAndPlay(1);
idle = false;
} else if (fading != true) {
fading = true;
_root.fade(true, true, "shop");
delete timer;
delete idle;
delete cashchg;
delete _root.casha;
delete _root.cashb;
delete cashc;
delete cashvy;
}
}
}
};
achalt1.stop();
achspe1.stop();
achdur1.stop();
achdis1.stop();
Frame 13
stop();
Frame 15
stop();
Symbol 29 Button
on (release) {
_root.gotoAndPlay("sponsor");
}
Symbol 31 MovieClip Frame 1
stop();
playbtn.enabled = false;
Symbol 31 MovieClip Frame 117
playbtn.enabled = true;
Symbol 31 MovieClip Frame 135
stop();
Symbol 38 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 47 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 50 MovieClip Frame 60
stop();
Symbol 64 MovieClip Frame 14
stop();
Symbol 65 MovieClip Frame 241
stop();
Instance of Symbol 74 MovieClip in Symbol 78 MovieClip Frame 3
onClipEvent (enterFrame) {
this._xscale = 90 + (20 * Math.random());
this._yscale = 200 + (70 * Math.random());
}
Instance of Symbol 74 MovieClip in Symbol 78 MovieClip Frame 4
onClipEvent (enterFrame) {
this._xscale = 70 + (20 * Math.random());
this._yscale = 200 + (70 * Math.random());
}
Instance of Symbol 74 MovieClip in Symbol 78 MovieClip Frame 4
onClipEvent (enterFrame) {
this._xscale = 70 + (20 * Math.random());
this._yscale = 200 + (70 * Math.random());
}
Instance of Symbol 77 MovieClip in Symbol 78 MovieClip Frame 5
onClipEvent (enterFrame) {
this._xscale = 110 + (30 * Math.random());
this._yscale = 220 + (50 * Math.random());
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Instance of Symbol 70 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.lvlgl + 1);
}
Instance of Symbol 78 MovieClip "rocketflare" in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.lvlro + 1);
this._visible = false;
}
Instance of Symbol 82 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.lvlro + 1);
}
Instance of Symbol 88 MovieClip "fuel" in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
if (_root.lvlro == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 93 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.lvlgl + 1);
}
Symbol 103 MovieClip Frame 1
_root.lvlgl = 3;
_root.lvlro = 3;
player.rocketflare._visible = true;
Symbol 103 MovieClip Frame 174
tcount = 0;
tx = max._x;
this.onEnterFrame = function () {
tcount = tcount + 1.8;
max._x = tx + ((Math.random() - 0.5) * tcount);
};
Symbol 103 MovieClip Frame 198
this.onEnterFrame = function () {
tcount = tcount - 2;
if (tcount < 0) {
tcount = 0;
delete this.onEnterFrame;
}
max._x = tx + ((Math.random() - 0.5) * tcount);
};
Symbol 103 MovieClip Frame 276
stop();
_root.gotoAndPlay("init");
Symbol 108 MovieClip Frame 1
this.stop();
Symbol 108 MovieClip Frame 2
this.play();
scount = 0;
this.onEnterFrame = function () {
j = 0;
while (j <= ((2 * (scount / 40)) + 1)) {
if (scount < 150) {
snow.duplicateMovieClip("snow" + scount, _root.getNextHighestDepth() + scount);
this["snow" + scount]._x = 640 + (Math.random() * 100);
this["snow" + scount]._y = 480 - (Math.random() * ((480 * scount) / 80));
this["snow" + scount].vx = -40 - (Math.random() * 20);
this["snow" + scount].vy = -1 * ((Math.random() - 0.5) * 5);
scount++;
}
j++;
}
};
Instance of Symbol 105 MovieClip "snow" in Symbol 108 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._name != "snow") {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (((this._x < -10) || (this._y < -10)) || (this._y > 450)) {
this.removeMovieClip();
}
}
}
Symbol 108 MovieClip Frame 41
this.gotoAndStop(1);
if ((((_root.achdis == 1) || (_root.achalt == 1)) || (_root.achspe == 1)) || (_root.achdur == 1)) {
_root.gotoAndPlay("achievements");
} else {
_root.gotoAndPlay(this.fadeto);
}
if (this.fin == true) {
_root.fadeinc.gotoAndPlay(2);
}
delete this.onEnterFrame;
Symbol 109 MovieClip Frame 1
this.stop();
Symbol 109 MovieClip Frame 2
this.play();
scount = 0;
this.onEnterFrame = function () {
j = 0;
while (j <= (3 - (2.5 * (scount / 30)))) {
if (scount < 60) {
snow.duplicateMovieClip("snow" + scount, _root.getNextHighestDepth() + scount);
this["snow" + scount]._x = 640 + (Math.random() * 100);
this["snow" + scount]._y = Math.random() * 480;
this["snow" + scount].vx = -40 - (Math.random() * 20);
this["snow" + scount].vy = -1 * ((Math.random() - 0.5) * 5);
scount++;
}
j++;
}
};
Instance of Symbol 105 MovieClip "snow" in Symbol 109 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._name != "snow") {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (((this._x < -10) || (this._y < -10)) || (this._y > 450)) {
this.removeMovieClip();
}
}
}
Symbol 109 MovieClip Frame 45
this.gotoAndStop(1);
delete this.onEnterFrame;
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 372
_root.gotoAndPlay(this.fadeto);
Symbol 129 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 10
stop();
Symbol 136 MovieClip Frame 5
stop();
Symbol 138 Button
on (release) {
_root.cquality++;
if (_root.cquality > 3) {
_root.cquality = 1;
}
if (_root.cquality == 1) {
_root._quality = "low";
} else if (_root.cquality == 2) {
_root._quality = "medium";
} else if (_root.cquality == 3) {
_root._quality = "high";
} else {
_root.cquality = 3;
_root._quality = "high";
}
_root.optmenu.menu.qualitymc.gotoAndStop(_root.cquality);
}
Symbol 140 Button
on (release) {
if (_root.skipcutscenes == true) {
_root.skipcutscenes = false;
_root.optmenu.menu.skipmc.gotoAndStop(2);
} else {
_root.skipcutscenes = true;
_root.optmenu.menu.skipmc.gotoAndStop(1);
}
}
Symbol 142 Button
on (release) {
if (_root.showcontrols == true) {
_root.showcontrols = false;
_root.optmenu.menu.showctrl.gotoAndStop(1);
} else {
_root.showcontrols = true;
_root.optmenu.menu.showctrl.gotoAndStop(2);
}
}
Symbol 144 Button
on (release) {
if (_root.mute == true) {
_root.mute = false;
_root.optmenu.menu.mutemc.gotoAndStop(1);
_root.globalSound.setVolume(100);
} else {
_root.mute = true;
_root.optmenu.menu.mutemc.gotoAndStop(2);
_root.globalSound.setVolume(0);
}
}
Symbol 147 MovieClip Frame 1
_root.optmenu.menu.skipmc.gotoAndStop(2);
_root.optmenu.menu.showctrl.gotoAndStop(2);
_root.optmenu.menu.mutemc.gotoAndStop(1);
Instance of Symbol 126 MovieClip "qualitymc" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
}
Symbol 148 MovieClip Frame 1
this.gotoAndStop(2);
Symbol 163 Button
on (release) {
this._parent.stopAllSounds();
_root.fade(false, true, "mainmenu");
}
Symbol 170 MovieClip Frame 68
stop();
Symbol 234 MovieClip Frame 36
stop();
Symbol 259 MovieClip Frame 1331
stop();
_root.fade(true, ture, "mainmenu");
Symbol 298 MovieClip Frame 40
stop();
Symbol 310 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 315 Button
on (release) {
if (menuexit != true) {
_root.loadSO();
this._parent.bgm.theme.stop();
delete this._parent.bgm.theme;
this._parent.bgm.removeMovieClip();
if (_root.infoboard1 == 1) {
_root.fade(true, true, "shop");
} else {
_root.resetVars();
_root.fade(true, true, "dayintro");
}
menuexit = true;
}
}
Symbol 316 Button
on (release) {
if (menuexit != true) {
this._parent.bgm.theme.stop();
delete this._parent.bgm.theme;
this._parent.bgm.removeMovieClip();
_root.fade(true, true, "cleardata");
menuexit = true;
}
}
Symbol 317 MovieClip Frame 62
_root.attachMovie("BGM", "bgm", _root.getNextHighestDepth());
_root.bgm._x = -100;
_root.bgm.theme = new Sound(bgm);
_root.bgm.theme.attachSound("shop.wav", false);
_root.bgm.theme.start(0, 0);
_root.bgm.theme.onSoundComplete = function () {
_root.bgm.theme.start(0, 0);
};
Symbol 317 MovieClip Frame 119
clearbtn.enabled = false;
Symbol 317 MovieClip Frame 150
stop();
clearbtn.enabled = true;
Symbol 328 Button
on (release) {
this.flybtn._visible = false;
this.flymc._visible = true;
this.flymc.gotoAndStop(3);
exitshop = true;
_root.fade(true, true, "stage");
}
Symbol 421 MovieClip Frame 1
function getCash() {
cashb = (_root.casha - _root.cash) / 18;
sfx.cashsfx = new Sound(sfx);
sfx.cashsfx.attachSound("Cash.wav", false);
sfx.cashsfx.start(0, 0);
this.sfx.cashsfx.onSoundComplete = function () {
delete sfx.cashsfx;
};
}
function getPrice() {
rh4.gotoAndStop(1);
rf4.gotoAndStop(1);
re4.gotoAndStop(1);
rp4.gotoAndStop(1);
k = 0;
while (k < 10) {
if (_root.crh[k] <= _root.cash) {
rh4.gotoAndStop(k + 2);
}
if (_root.crf[k] <= _root.cash) {
rf4.gotoAndStop(k + 2);
}
if (_root.cre[k] <= _root.cash) {
re4.gotoAndStop(k + 2);
}
if (_root.crp[k] <= _root.cash) {
rp4.gotoAndStop(k + 2);
}
k++;
}
}
hint.gotoAndStop(11);
rh1.gotoAndStop(11);
rh2.gotoAndStop(1);
rh3.gotoAndStop(_root.lvlrh);
rh4.gotoAndStop(1);
rf1.gotoAndStop(11);
rf2.gotoAndStop(1);
rf3.gotoAndStop(_root.lvlrf);
rf4.gotoAndStop(1);
re1.gotoAndStop(11);
re2.gotoAndStop(1);
re3.gotoAndStop(_root.lvlre);
re4.gotoAndStop(1);
rp1.gotoAndStop(11);
rp2.gotoAndStop(1);
rp3.gotoAndStop(_root.lvlrp);
rp4.gotoAndStop(1);
gl1.gotoAndStop(1);
gl2.gotoAndStop(1);
gl3.gotoAndStop(_root.lvlgl);
if (_root.lvlro > 1) {
rpblock._visible = false;
}
ro1.gotoAndStop(1);
ro2.gotoAndStop(1);
ro3.gotoAndStop(_root.lvlro);
_root.rcost = 0;
rh = 0;
rf = 0;
re = 0;
gl = 0;
rp = 0;
ro = 0;
exitshop = false;
_root.casha = _root.cash;
cashb = 0;
this.flymc._visible = false;
this.onEnterFrame = function () {
if (_root.casha != _root.cash) {
_root.casha = _root.casha - cashb;
if (_root.casha < _root.cash) {
_root.casha = _root.cash;
}
_root.casha = Math.round(_root.casha);
}
};
getPrice();
this.onMouseDown = function () {
if (exitshop != true) {
if ((rh > (_root.lvlrh - 1)) && (_root.rcost <= _root.cash)) {
_root.lvlrh = rh + 1;
rh3.gotoAndStop(_root.lvlrh);
_root.cash = _root.cash - _root.rcost;
_root.rcost = 0;
getCash();
}
if ((rf > (_root.lvlrf - 1)) && (_root.rcost <= _root.cash)) {
_root.lvlrf = rf + 1;
rf3.gotoAndStop(_root.lvlrf);
_root.cash = _root.cash - _root.rcost;
_root.rcost = 0;
getCash();
}
if ((re > (_root.lvlre - 1)) && (_root.rcost <= _root.cash)) {
_root.lvlre = re + 1;
re3.gotoAndStop(_root.lvlre);
_root.cash = _root.cash - _root.rcost;
_root.rcost = 0;
getCash();
}
if ((gl > (_root.lvlgl - 1)) && (_root.rcost <= _root.cash)) {
_root.lvlgl = gl + 1;
gl3.gotoAndStop(_root.lvlgl);
_root.cash = _root.cash - _root.rcost;
_root.rcost = 0;
getCash();
}
if ((rp > (_root.lvlrp - 1)) && (_root.rcost <= _root.cash)) {
_root.lvlrp = rp + 1;
rp3.gotoAndStop(_root.lvlrp);
_root.cash = _root.cash - _root.rcost;
_root.rcost = 0;
getCash();
}
if ((ro > (_root.lvlro - 1)) && (_root.rcost <= _root.cash)) {
_root.lvlro = ro + 1;
ro3.gotoAndStop(_root.lvlro);
_root.cash = _root.cash - _root.rcost;
_root.rcost = 0;
getCash();
}
if (_root.lvlro > 1) {
rpblock._visible = false;
}
getPrice();
}
};
this.onMouseMove = function () {
if (exitshop != true) {
rh = 0;
rf = 0;
re = 0;
gl = 0;
ro = 0;
rp = 0;
hint.gotoAndStop(11);
_root.rcost = 0;
if (rh1.hitTest(_root._xmouse, this._ymouse)) {
rh = Math.round((rh1._xmouse / 25) + 0.5);
if (rh > (_root.lvlrh - 1)) {
hint.gotoAndStop(1);
_root.rcost = _root.crh[rh - 1];
} else {
rh = 0;
}
} else if (rf1.hitTest(_root._xmouse, this._ymouse)) {
rf = Math.round((rf1._xmouse / 25) + 0.5);
if (rf > (_root.lvlrf - 1)) {
hint.gotoAndStop(2);
_root.rcost = _root.crf[rf - 1];
} else {
rf = 0;
}
} else if (re1.hitTest(_root._xmouse, this._ymouse)) {
re = Math.round((re1._xmouse / 25) + 0.5);
if (re > (_root.lvlre - 1)) {
hint.gotoAndStop(3);
_root.rcost = _root.cre[re - 1];
} else {
re = 0;
}
} else if (rp1.hitTest(_root._xmouse, this._ymouse) && (_root.lvlro > 1)) {
rp = Math.round((rp1._xmouse / 25) + 0.5);
if (rp > (_root.lvlrp - 1)) {
hint.gotoAndStop(10);
_root.rcost = _root.crp[rp - 1];
} else {
rp = 0;
}
} else if (gl1.hitTest(_root._xmouse, this._ymouse)) {
gl = Math.round((gl1._xmouse / 90) + 0.5);
if (gl > (_root.lvlgl - 1)) {
hint.gotoAndStop(3 + gl);
_root.rcost = _root.cgl[gl - 1];
} else {
gl = 0;
}
} else if (ro1.hitTest(_root._xmouse, this._ymouse)) {
ro = Math.round((ro1._xmouse / 90) + 0.5);
if (ro > (_root.lvlro - 1)) {
hint.gotoAndStop(6 + ro);
_root.rcost = _root.cro[ro - 1];
} else {
ro = 0;
}
}
rh2.gotoAndStop(rh + 1);
rf2.gotoAndStop(rf + 1);
re2.gotoAndStop(re + 1);
rp2.gotoAndStop(rp + 1);
if (gl1.hitTest(_root._xmouse, this._ymouse, true)) {
gl1.gotoAndStop(gl + 1);
} else {
gl1.gotoAndStop(1);
}
gl2.gotoAndStop(gl + 1);
if (ro1.hitTest(_root._xmouse, this._ymouse, true)) {
ro1.gotoAndStop(ro + 1);
} else {
ro1.gotoAndStop(1);
}
ro2.gotoAndStop(ro + 1);
}
};
Symbol 422 MovieClip Frame 44
stop();
Symbol 456 MovieClip Frame 1
acend.gotoAndStop(1);
Symbol 456 MovieClip Frame 2
acend.gotoAndStop(2);
Symbol 457 MovieClip Frame 1
i = 1;
while (i <= 6) {
temprd = 70 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = Math.random() * 1000;
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
i++;
}
this.onEnterFrame = function () {
i = 1;
while (i <= 6) {
if ((this["cloud" + i]._x + this["cloud" + i]._width) < 0) {
temprd = 70 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = (800 + this["cloud" + i]._width) + (Math.random() * 100);
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
}
this["cloud" + i]._x = this["cloud" + i]._x - this["cloud" + i].speed;
i++;
}
};
Symbol 457 MovieClip Frame 2
i = 1;
while (i <= 6) {
temprd = 70 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = Math.random() * 1000;
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
i++;
}
this.onEnterFrame = function () {
i = 1;
while (i <= 6) {
if ((this["cloud" + i]._x + this["cloud" + i]._width) < 0) {
temprd = 70 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = (800 + this["cloud" + i]._width) + (Math.random() * 100);
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
}
this["cloud" + i]._x = this["cloud" + i]._x - this["cloud" + i].speed;
i++;
}
};
Symbol 457 MovieClip Frame 3
i = 1;
while (i <= 6) {
temprd = 60 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = Math.random() * 1000;
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
i++;
}
this.onEnterFrame = function () {
i = 1;
while (i <= 6) {
if ((this["cloud" + i]._x + this["cloud" + i]._width) < 0) {
temprd = 60 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = (800 + this["cloud" + i]._width) + (Math.random() * 100);
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
}
this["cloud" + i]._x = this["cloud" + i]._x - this["cloud" + i].speed;
i++;
}
};
Symbol 457 MovieClip Frame 4
i = 1;
while (i <= 6) {
temprd = 50 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = Math.random() * 1000;
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
i++;
}
this.onEnterFrame = function () {
i = 1;
while (i <= 6) {
if ((this["cloud" + i]._x + this["cloud" + i]._width) < 0) {
temprd = 50 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = (800 + this["cloud" + i]._width) + (Math.random() * 100);
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
}
this["cloud" + i]._x = this["cloud" + i]._x - this["cloud" + i].speed;
i++;
}
};
Symbol 457 MovieClip Frame 5
if (_root.gamefinished != true) {
acend.gotoAndStop(1);
} else {
acend.gotoAndStop(2);
}
i = 1;
while (i <= 6) {
temprd = 40 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = Math.random() * 1000;
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
i++;
}
this.onEnterFrame = function () {
i = 1;
while (i <= 6) {
if ((this["cloud" + i]._x + this["cloud" + i]._width) < 0) {
temprd = 40 + (Math.random() * 40);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 250;
this["cloud" + i]._x = (800 + this["cloud" + i]._width) + (Math.random() * 100);
this["cloud" + i].speed = 0.4 + (Math.random() * 1.4);
}
this["cloud" + i]._x = this["cloud" + i]._x - this["cloud" + i].speed;
i++;
}
};
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 17
stop();
Symbol 505 MovieClip Frame 1
tempskip = 0;
c1.speed = 1;
c2.speed = 0.8;
c3.speed = 0.5;
c4.speed = 1.2;
c5.speed = 1;
c6.speed = 0.95;
this.onEnterFrame = function () {
ii = 1;
while (ii <= 6) {
this["c" + ii]._x = this["c" + ii]._x - this["c" + ii].speed;
if (this["c" + ii]._x < -200) {
this["c" + ii]._x = 700;
}
ii++;
}
};
Symbol 505 MovieClip Frame 49
stop();
this.onEnterFrame = function () {
if (_root.infoboardisdown == false) {
this.gotoAndPlay("begin");
delete this.onEnterFrame;
}
ii = 1;
while (ii <= 6) {
this["c" + ii]._x = this["c" + ii]._x - this["c" + ii].speed;
if (this["c" + ii]._x < -200) {
this["c" + ii]._x = 700;
}
ii++;
}
};
Symbol 505 MovieClip Frame 50
this.onEnterFrame = function () {
ii = 1;
while (ii <= 6) {
this["c" + ii]._x = this["c" + ii]._x - this["c" + ii].speed;
if (this["c" + ii]._x < -200) {
this["c" + ii]._x = 700;
}
ii++;
}
};
Symbol 505 MovieClip Frame 87
stop();
k = 10;
this.onEnterFrame = function () {
k--;
if ((k <= 0) && (tbool != true)) {
this.gotoAndPlay("begin2");
tbool = true;
}
ii = 1;
while (ii <= 6) {
this["c" + ii]._x = this["c" + ii]._x - this["c" + ii].speed;
if (this["c" + ii]._x < -200) {
this["c" + ii]._x = 700;
}
ii++;
}
};
Symbol 505 MovieClip Frame 98
if (tempskip != 1) {
_root.fade(true, true, "game");
}
Symbol 505 MovieClip Frame 147
stop();
delete this.onEnterFrame;
Symbol 516 MovieClip Frame 1
_root.infoboardisdown = true;
if (_root.infoboard1 == 1) {
if ((_root.lvlgl == 1) || (_root.infoboard2 == 1)) {
if ((_root.lvlro == 1) || (_root.infoboard3 == 1)) {
if (_root.skipcutscenes == true) {
_root.gotoAndPlay("game");
}
stop();
_root.infoboardisdown = false;
} else {
this.gotoAndPlay("ib3a");
}
} else {
this.gotoAndPlay("ib2a");
}
}
Symbol 516 MovieClip Frame 35
stop();
this.onMouseDown = function () {
this.gotoAndPlay("ib1b");
_root.infoboard1 = 1;
delete this.onMouseDown;
};
Instance of Symbol 8 MovieClip [BGM] in Symbol 516 MovieClip Frame 35
onClipEvent (keyDown) {
this._parent.gotoAndPlay("ib1b");
_root.infoboard1 = 1;
this.removeMovieClip();
}
Symbol 516 MovieClip Frame 48
_root.infoboardisdown = true;
if ((_root.lvlgl == 1) || (_root.infoboard2 == 1)) {
stop();
_root.infoboardisdown = false;
}
Symbol 516 MovieClip Frame 81
stop();
this.onMouseDown = function () {
this.gotoAndPlay("ib2b");
_root.infoboard2 = 1;
delete this.onMouseDown;
};
Instance of Symbol 8 MovieClip [BGM] in Symbol 516 MovieClip Frame 81
onClipEvent (keyDown) {
this._parent.gotoAndPlay("ib2b");
_root.infoboard1 = 1;
this.removeMovieClip();
}
Symbol 516 MovieClip Frame 95
_root.infoboardisdown = true;
if ((_root.lvlro == 1) || (_root.infoboard3 == 1)) {
stop();
_root.infoboardisdown = false;
}
Symbol 516 MovieClip Frame 128
stop();
this.onMouseDown = function () {
this.gotoAndPlay("ib3b");
_root.infoboard3 = 1;
delete this.onMouseDown;
};
Instance of Symbol 8 MovieClip [BGM] in Symbol 516 MovieClip Frame 128
onClipEvent (keyDown) {
this._parent.gotoAndPlay("ib3b");
_root.infoboard1 = 1;
this.removeMovieClip();
}
Symbol 516 MovieClip Frame 142
_root.infoboardisdown = false;
stop();
Symbol 528 MovieClip Frame 25
stop();
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 138
if (_root.lvlro > 1) {
this.gotoAndPlay("hint3");
} else {
stop();
}
Symbol 569 MovieClip Frame 275
if (_root.lvlro > 1) {
this.gotoAndPlay("hint3");
} else {
stop();
}
Symbol 569 MovieClip Frame 441
stop();
Symbol 579 MovieClip Frame 2
_root.bgm.theme.stop();
delete _root.bgm.theme;
_root.bgm.removeMovieClip();
Symbol 579 MovieClip Frame 19
_root.boarddone = true;
Symbol 579 MovieClip Frame 20
this.onEnterFrame = function () {
tvar2 = 19;
tvar = _parent.distance / tvar2;
_parent.rdis2 = _parent.rdis2 + tvar;
if (_parent.rdis2 >= _parent.distance) {
_parent.rdis2 = _parent.distance;
}
_parent.rdis = ["$" + String(Math.round(_parent.rdis2))];
};
Symbol 579 MovieClip Frame 41
this.onEnterFrame = function () {
tvar2 = 19;
tvar = _parent.maxaltitude / tvar2;
_parent.ralt2 = _parent.ralt2 + tvar;
if (_parent.ralt2 >= _parent.maxaltitude) {
_parent.ralt2 = _parent.maxaltitude;
}
_parent.ralt = ["$" + String(Math.round(_parent.ralt2))];
};
Symbol 579 MovieClip Frame 61
localdur = _parent.duration;
if (localdur > 30) {
localdur = 30;
}
this.onEnterFrame = function () {
tvar2 = 19;
tvar = localdur / tvar2;
rdur2 = rdur2 + tvar;
if (rdur2 >= localdur) {
_parent.rdur3 = Math.round(localdur) / 10;
} else {
_parent.rdur3 = Math.round(_parent.rdur2) / 10;
}
_parent.rdur = String(_parent.rdur3);
if (_parent.rdur.indexOf(".", 0) <= 0) {
_parent.rdur = [_parent.rdur + ".0"];
}
_parent.rdur = ["X" + _parent.rdur];
};
Symbol 579 MovieClip Frame 84
_parent.rtotal3 = (Math.round(_parent.rdis2) + Math.round(_parent.ralt2)) * _parent.rdur3;
_parent.rtotal = ["$" + String(Math.round(_parent.rtotal3))];
Symbol 579 MovieClip Frame 161
stop();
Instance of Symbol 583 MovieClip "hudalt" in Symbol 596 MovieClip Frame 1
onClipEvent (enterFrame) {
temp = Math.round((200 * _root.curheight) / _root.sgl4[_root.lvlgl - 1]);
if (temp > 200) {
temp = 200;
}
this.gotoAndStop(temp);
delete temp;
}
Instance of Symbol 594 MovieClip "hudspe" in Symbol 596 MovieClip Frame 1
onClipEvent (enterFrame) {
temp = (200 * _root.speed) / _root.sgl3[_root.lvlgl - 1];
if (temp > 200) {
temp = 200 + (Math.random() * 3);
}
temp = Math.round(temp);
this.gotoAndStop(temp);
delete temp;
}
Instance of Symbol 600 MovieClip "hudalt" in Symbol 618 MovieClip Frame 1
onClipEvent (enterFrame) {
temp = Math.round((600 * _root.curheight) / _root.sgl4[_root.lvlgl - 1]);
if (temp > 600) {
temp = 600;
}
this.gotoAndStop(temp);
delete temp;
}
Instance of Symbol 617 MovieClip "hudspe" in Symbol 618 MovieClip Frame 1
onClipEvent (enterFrame) {
temp = (200 * _root.speed) / _root.sgl3[_root.lvlgl - 1];
if (temp > 208) {
temp = 208;
}
temp = Math.round(temp);
this.gotoAndStop(temp);
delete temp;
}
Instance of Symbol 632 MovieClip "hudspe" in Symbol 642 MovieClip Frame 1
onClipEvent (enterFrame) {
temp = (200 * _root.speed) / _root.sgl3[_root.lvlgl - 1];
if (temp > 225) {
temp = 225;
}
temp = Math.round(temp);
this.gotoAndStop(temp);
delete temp;
}
Symbol 644 MovieClip Frame 36
stop();
Symbol 644 MovieClip Frame 60
stop();
Symbol 650 MovieClip Frame 13
this.stop();
Symbol 662 MovieClip Frame 1
ac.gotoAndStop(1);
Symbol 662 MovieClip Frame 10
ac.gotoAndStop(2);
Symbol 662 MovieClip Frame 30
this.stop();
Symbol 664 MovieClip Frame 1
ac1.stop();
Symbol 664 MovieClip Frame 15
stop();
ac1.gotoAndPlay(1);
this.onMouseDown = function () {
if (_root.achdur == 1) {
this.gotoAndPlay(16);
this._parent.timer = 4;
ac1.gotoAndStop(1);
_root.cash = _root.cash + _root.rewarda;
this._parent.cashchg = 1;
_root.achdur = 0;
}
};
Symbol 664 MovieClip Frame 30
this._visible = false;
ac1.gotoAndStop(1);
this.gotoAndStop(1);
Symbol 667 MovieClip Frame 1
ac.gotoAndStop(1);
Symbol 667 MovieClip Frame 10
ac.gotoAndStop(2);
Symbol 667 MovieClip Frame 30
this.stop();
Symbol 668 MovieClip Frame 1
ac1.stop();
Symbol 668 MovieClip Frame 15
stop();
ac1.gotoAndPlay(1);
this.onMouseDown = function () {
if (_root.achdis == 1) {
this.gotoAndPlay(16);
this._parent.timer = 4;
ac1.gotoAndStop(1);
_root.cash = _root.cash + _root.rewarda;
this._parent.cashchg = 1;
_root.achdis = 0;
}
};
Symbol 668 MovieClip Frame 30
this._visible = false;
ac1.gotoAndStop(1);
this.gotoAndStop(1);
Symbol 671 MovieClip Frame 1
ac.gotoAndStop(1);
Symbol 671 MovieClip Frame 10
ac.gotoAndStop(2);
Symbol 671 MovieClip Frame 30
this.stop();
Symbol 672 MovieClip Frame 1
ac1.stop();
Symbol 672 MovieClip Frame 15
stop();
ac1.gotoAndPlay(1);
this.onMouseDown = function () {
if (_root.achspe == 1) {
this.gotoAndPlay(16);
this._parent.timer = 4;
ac1.gotoAndStop(1);
_root.cash = _root.cash + _root.rewarda;
this._parent.cashchg = 1;
_root.achspe = 0;
}
};
Symbol 672 MovieClip Frame 30
this._visible = false;
ac1.gotoAndStop(1);
this.gotoAndStop(1);
Symbol 675 MovieClip Frame 1
ac.gotoAndStop(1);
Symbol 675 MovieClip Frame 10
ac.gotoAndStop(2);
Symbol 675 MovieClip Frame 30
this.stop();
Symbol 676 MovieClip Frame 1
ac1.stop();
Symbol 676 MovieClip Frame 15
stop();
ac1.gotoAndPlay(1);
this.onMouseDown = function () {
if (_root.achalt == 1) {
this.gotoAndPlay(16);
this._parent.timer = 4;
ac1.gotoAndStop(1);
_root.cash = _root.cash + _root.rewarda;
this._parent.cashchg = 1;
_root.achalt = 0;
}
};
Symbol 676 MovieClip Frame 30
this._visible = false;
ac1.gotoAndStop(1);
this.gotoAndStop(1);
Instance of Symbol 426 MovieClip "cloud1" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
}
Instance of Symbol 428 MovieClip "cloud5" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.6;
}
Instance of Symbol 430 MovieClip "cloud6" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.4;
}
Instance of Symbol 426 MovieClip "cloud2" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.85;
}
Instance of Symbol 426 MovieClip "cloud3" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.4;
}
Instance of Symbol 428 MovieClip "cloud4" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.9;
}
Instance of Symbol 524 MovieClip "sea" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x--;
}
Instance of Symbol 524 MovieClip "sea2" in Symbol 705 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x--;
}
Symbol 705 MovieClip Frame 61
debris._visible = false;
debriscount = 0;
sea2.swapDepths(2000);
this.onEnterFrame = function () {
i = 0;
while (i < 3) {
duplicateMovieClip (debris, "debris" + debriscount, 1000 + debriscount);
this["debris" + debriscount].gotoAndStop(Math.round(Math.random() * 5));
this["debris" + debriscount]._x = debris._x;
this["debris" + debriscount]._y = debris._y;
this["debris" + debriscount]._xscale = 30 + (Math.random() * 80);
this["debris" + debriscount]._yscale = 30 + (Math.random() * 80);
this["debris" + debriscount].vx = -10 - (Math.random() * 50);
this["debris" + debriscount].vy = (Math.random() - 0.8) * 40;
this["debris" + debriscount].vr = (Math.random() - 0.2) * 50;
this["debris" + debriscount].onEnterFrame = function () {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._y > 500) {
this.removeMovieClip();
}
this._rotation = this._rotation + this.vr;
this.vx = this.vx * 0.99;
this.vy++;
};
debriscount++;
i++;
}
};
Symbol 705 MovieClip Frame 77
delete this.onEnterFrame;
Symbol 705 MovieClip Frame 251
stop();
Symbol 730 Button
on (release) {
_root.keepplaying = true;
_root.fade(true, true, "mainmenu");
}
Symbol 734 Button
on (release) {
_root.keepplaying = true;
_root.fade(true, true, "shop");
}
Symbol 737 MovieClip Frame 1
_root.enddays = _root.cday + " Days";
if (_root.cday > 50) {
txt.comment.gotoAndStop(1);
} else if (_root.cday > 40) {
txt.comment.gotoAndStop(2);
} else if (_root.cday > 30) {
txt.comment.gotoAndStop(3);
} else if (_root.cday > 20) {
txt.comment.gotoAndStop(4);
} else {
txt.comment.gotoAndStop(5);
}
Symbol 737 MovieClip Frame 23
stop();
if (_root.cday > 50) {
txt.comment.gotoAndStop(1);
} else if (_root.cday > 25) {
txt.comment.gotoAndStop(2);
} else if (_root.cday > 20) {
txt.comment.gotoAndStop(3);
} else if (_root.cday > 15) {
txt.comment.gotoAndStop(4);
} else {
txt.comment.gotoAndStop(5);
}
Symbol 738 MovieClip Frame 801
stop();
Symbol 738 MovieClip Frame 818
stop();
Symbol 745 MovieClip Frame 1
i = 1;
while (i <= 6) {
temprd = 40 + (Math.random() * 70);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 480;
this["cloud" + i]._x = Math.random() * 1000;
this["cloud" + i].speed = 75 + (Math.random() * 50);
i++;
}
this.onEnterFrame = function () {
player.rocketflare._visible = true;
i = 1;
while (i <= 6) {
if ((this["cloud" + i]._x + this["cloud" + i]._width) < 0) {
temprd = 40 + (Math.random() * 70);
this["cloud" + i]._xscale = temprd;
this["cloud" + i]._yscale = temprd;
this["cloud" + i]._y = Math.random() * 480;
this["cloud" + i]._x = (800 + this["cloud" + i]._width) + (Math.random() * 100);
this["cloud" + i].speed = 75 + (Math.random() * 50);
}
this["cloud" + i]._x = this["cloud" + i]._x - this["cloud" + i].speed;
i++;
}
};
Symbol 745 MovieClip Frame 113
stop();
this._parent.outro3.play();
this._parent.outro3.anim.play();
this._visible = false;
Symbol 788 MovieClip Frame 100
tempshake = 0;
increase = 0;
this.onEnterFrame = function () {
if (increase == 0) {
tempshake = tempshake + 0.5;
if (tempshake > 15) {
increase = 1;
}
} else if (increase == 1) {
tempshake = tempshake - 0.6;
if (tempshake < 0) {
tempshake = 0;
increase = 2;
}
}
bg._x = -20 + ((Math.random() - 0.5) * tempshake);
bg._y = -20 + ((Math.random() - 0.5) * tempshake);
};
Symbol 788 MovieClip Frame 265
stop();
this._parent.outro2.play();
this._visible = false;
Symbol 789 MovieClip Frame 1
delete this._parent.onEnterFrame;
stop();
outro2.stop();
outro3.stop();
outro3.anim.stop();
Symbol 794 Button
on (release) {
btnno.enabled = false;
btnyes.enabled = false;
_root.resetVars();
_root.fade(true, true, "mainmenu");
}
Symbol 796 Button
on (release) {
btnno.enabled = false;
btnyes.enabled = false;
_root.fade(true, true, "mainmenu");
}