Frame 1
function breifingDelay(screenPause, whichBrief) {
var cancel = false;
var skipWatch = whichBrief._currentframe;
briefingPause = setInterval(function () {
if (skipWatch != whichBrief._currentframe) {
clearInterval(briefingPause);
cancel = true;
briefingTimer = false;
}
if (!cancel) {
if (briefingTimer) {
if (((getTimer() - briefingTimer) / 1000) >= screenPause) {
briefingTimer = false;
clearInterval(briefingPause);
whichBrief.play();
}
} else {
briefingTimer = getTimer();
}
}
}, 250);
}
function GetUrlParam(strUrl, strParam) {
var strUrlLC = strUrl.toLowerCase();
var nPos = strUrlLC.indexOf(strParam);
var nParamLen = strParam.length;
if (nPos > 0) {
var nNumChars;
var nPosEnd = strUrlLC.indexOf("&", nPos + nParamLen);
if (nPosEnd > 0) {
nNumChars = nPosEnd - nPos;
} else {
nNumChars = strUrl.length - nPos;
}
return(strUrl.substr(nPos + nParamLen, nNumChars));
}
return("");
}
function GetBaseUrl(strUrl) {
var nNumChars = strUrl.length;
var nPos = strUrl.indexOf("?", 0);
if (nPos > 0) {
nNumChars = nPos;
}
return(strUrl.substr(0, nNumChars));
}
stop();
Instance of Symbol 6 MovieClip "loadbar" in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.play();
} else {
_parent.stop();
this._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_root.howMuch = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
}
}
Frame 2
stop();
Instance of Symbol 18 MovieClip "noisecube" in Frame 2
onClipEvent (load) {
onOrOff = "on";
}
onClipEvent (enterFrame) {
if (onOrOff == "on") {
if ((_parent.lander.myLanded == "go") && (key.isDown(38))) {
gotoAndStop (2);
dying = false;
} else if ((_parent.lander.exploding == "true") && (!dying)) {
gotoAndStop (1);
gotoAndStop (3);
dying = true;
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 26 MovieClip "musicSphere" in Frame 2
onClipEvent (load) {
}
Frame 3
function randSong() {
if (_root.onOrOff == "on") {
rand = random(3);
_root.musicSphere.gotoAndStop(soundArray[rand]);
} else {
_root.musicSphere.gotoAndStop("noSound");
}
}
stop();
_root.musicSphere.gotoAndStop("intro2");
soundArray = new Array("level1", "level3", "level4");
_root.onOrOff = "on";
Instance of Symbol 138 MovieClip "wtf" in Frame 3
/* no clip actions */
Frame 4
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 5
stopAllSounds();
stop();
_root.randSong();
Instance of Symbol 58 MovieClip "lander" in Frame 5
onClipEvent (load) {
myGrav = 0.06;
i = 0;
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 480) || ((this._x + myXMomentum) <= 120)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 280) || ((this._y + myYMomentum) <= 120)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function arrowcolour() {
myDistance = Math.sqrt(Math.pow(_this._x - _parent.foreground._x, 2) + Math.pow(_this._y - _parent.foreground._y, 2));
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
_parent.popup.gotoAndStop("winner");
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 5
onClipEvent (load) {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 5
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 223 MovieClip "Angry" in Frame 5
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 0;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -10) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 6
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 7
stopAllSounds();
stop();
randSong();
Instance of Symbol 58 MovieClip "lander" in Frame 7
onClipEvent (load) {
myGrav = 0.06;
i = 0;
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 425) || ((this._x + myXMomentum) <= 175)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 225) || ((this._y + myYMomentum) <= 175)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function arrowcolour() {
myDistance = Math.sqrt(Math.pow(_this._x - _parent.foreground._x, 2) + Math.pow(_this._y - _parent.foreground._y, 2));
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
_parent.popup.gotoAndStop("winner");
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 7
onClipEvent (load) {
if (myGoCommand == "blow") {
this._x = _parent.lander._x + (random(20) - 10);
this._y = _parent.lander._y + (random(20) - 10);
gotoAndStop(random(5) + 5);
grow = random(12);
}
if (myGoCommand == "go") {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
}
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if (myGoCommand == "blow") {
this._xscale = this._xscale + grow;
this._yscale = this._yscale + grow;
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 7
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 220 MovieClip in Frame 7
/* no clip actions */
Instance of Symbol 223 MovieClip "Angry" in Frame 7
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 0;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -10) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 8
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 9
stopAllSounds();
stop();
randSong();
Instance of Symbol 254 MovieClip "battery" in Frame 9
onClipEvent (enterFrame) {
if (_parent.lander.bat == "attached") {
_parent.foreground.batt._visible = false;
_parent.lander.myGrav = 0.12;
this._x = _parent.lander._x;
this._y = _parent.lander._y;
this._rotation = _parent.lander._rotation;
}
}
Instance of Symbol 58 MovieClip "lander" in Frame 9
onClipEvent (load) {
myGrav = 0.06;
i = 0;
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 480) || ((this._x + myXMomentum) <= 120)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 280) || ((this._y + myYMomentum) <= 120)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function arrowcolour() {
myDistance = Math.sqrt(Math.pow(_this._x - _parent.foreground._x, 2) + Math.pow(_this._y - _parent.foreground._y, 2));
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
_parent.popup.gotoAndStop("winner");
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 9
onClipEvent (load) {
if (myGoCommand == "blow") {
this._x = _parent.lander._x + (random(20) - 10);
this._y = _parent.lander._y + (random(20) - 10);
gotoAndStop(random(5) + 5);
grow = random(12);
}
if (myGoCommand == "go") {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
}
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if (myGoCommand == "blow") {
this._xscale = this._xscale + grow;
this._yscale = this._yscale + grow;
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 9
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 223 MovieClip "Angry" in Frame 9
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 80;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -10) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 10
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 11
stopAllSounds();
stop();
randSong();
Instance of Symbol 271 MovieClip "bomb" in Frame 11
onClipEvent (enterFrame) {
function bombgrav() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * 6;
myXGravity = Math.cos((Math.PI/180) * direction) * 6;
}
if (activate == "yes") {
bombOn = getTimer();
_parent.lander.myGrav = 0.13;
_x = _parent.lander._x;
_y = _parent.lander._y;
_rotation = _parent.lander._rotation;
if (key.isDown(32)) {
activate = "drop";
_parent.lander.myGrav = 0.06;
this.myGrav = 0.07;
myYMovement = _parent.lander.myYMovement;
myXMovement = _parent.lander.myXMovement;
}
} else if (activate == "drop") {
this._y = this._y - ((myYGravity + _parent.lander.Yparticleshift) - myYMovement);
this._x = this._x - ((myXGravity + _parent.lander.Xparticleshift) - myXMovement);
bombgrav();
} else if (activate == "stop") {
this._y = this._y - _parent.lander.Yparticleshift;
this._x = this._x - _parent.lander.Xparticleshift;
}
}
Instance of Symbol 58 MovieClip "lander" in Frame 11
onClipEvent (load) {
myGrav = 0.06;
i = 0;
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 480) || ((this._x + myXMomentum) <= 120)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 280) || ((this._y + myYMomentum) <= 120)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function arrowcolour() {
myDistance = Math.sqrt(Math.pow(_this._x - _parent.foreground._x, 2) + Math.pow(_this._y - _parent.foreground._y, 2));
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
_parent.popup.gotoAndStop("winner");
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 11
onClipEvent (load) {
if (myGoCommand == "blow") {
this._x = _parent.lander._x + (random(20) - 10);
this._y = _parent.lander._y + (random(20) - 10);
gotoAndStop(random(5) + 5);
grow = random(12);
}
if (myGoCommand == "go") {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
}
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if (myGoCommand == "blow") {
this._xscale = this._xscale + grow;
this._yscale = this._yscale + grow;
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 11
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 223 MovieClip "Angry" in Frame 11
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 90;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -10) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 12
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 13
stopAllSounds();
stop();
randSong();
Instance of Symbol 300 MovieClip "target1" in Frame 13
onClipEvent (load) {
this._x = 543;
this._y = -591.2;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = true;
}
onClipEvent (enterFrame) {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "target1")) {
this._visible = false;
_parent.lander.target = "target2";
_parent.target2._visible = true;
}
}
Instance of Symbol 300 MovieClip "target2" in Frame 13
onClipEvent (load) {
this._x = 1800;
this._y = -660;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "target2")) {
this._visible = false;
_parent.lander.target = "target3";
_parent.target3._visible = true;
}
}
Instance of Symbol 300 MovieClip "target5" in Frame 13
onClipEvent (load) {
this._x = -300;
this._y = 200;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "target5")) {
this._visible = false;
_parent.lander.target = "done";
_parent.sputnikfinder._visible = false;
_parent.lander.WinLose = "win";
}
}
Instance of Symbol 300 MovieClip "target3" in Frame 13
onClipEvent (load) {
this._x = 850;
this._y = 810;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = true;
}
onClipEvent (enterFrame) {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "target3")) {
this._visible = false;
_parent.lander.target = "target4";
_parent.target4._visible = true;
}
}
Instance of Symbol 300 MovieClip "target4" in Frame 13
onClipEvent (load) {
this._x = 1600;
this._y = -500;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "target4")) {
this._visible = false;
_parent.lander.target = "target5";
_parent.target5._visible = true;
}
}
Instance of Symbol 58 MovieClip "lander" in Frame 13
onClipEvent (load) {
myGrav = 0.06;
i = 0;
target = "target1";
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 380) || ((this._x + myXMomentum) <= 220)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 220) || ((this._y + myYMomentum) <= 180)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function sputDirection() {
origin_x2 = _parent[target]._x;
origin_y2 = _parent[target]._y;
mouse_x2 = this._x;
mouse_y2 = this._y;
dist_x2 = mouse_x2 - origin_x2;
dist_y2 = mouse_y2 - origin_y2;
if (Number(dist_x2) < 0) {
normalise2 = -1 * dist_x2;
} else {
normalise2 = dist_x2;
}
if (Number(dist_y2) < 0) {
normalise2 = Number(normalise2) + Number(-1 * dist_y2);
} else {
normalise2 = Number(normalise2) + Number(dist_y2);
}
if ((Number(dist_x2) >= 0) and (Number(dist_y2) >= 0)) {
direction2 = 90 * (dist_y2 / normalise2);
} else if ((Number(dist_x2) <= 0) and (Number(dist_y2) >= 0)) {
direction2 = Number(-90 * (dist_x2 / normalise2)) + 90;
} else if ((Number(dist_x2) <= 0) and (Number(dist_y2) <= 0)) {
direction2 = Number(-90 * (dist_y2 / normalise2)) + 180;
} else {
direction2 = Number(90 * (dist_x2 / normalise2)) + 270;
}
_root.sputnikfinder._rotation = direction2;
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
_parent.popup.gotoAndStop("winner");
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
sputDirection();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 13
onClipEvent (load) {
if (myGoCommand == "blow") {
this._x = _parent.lander._x + (random(20) - 10);
this._y = _parent.lander._y + (random(20) - 10);
gotoAndStop(random(5) + 5);
grow = random(12);
}
if (myGoCommand == "go") {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
}
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if (myGoCommand == "blow") {
this._xscale = this._xscale + grow;
this._yscale = this._yscale + grow;
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 13
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 295 MovieClip "sputnikfinder" in Frame 13
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 223 MovieClip "Angry" in Frame 13
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 125;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -10) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 14
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 15
stopAllSounds();
stop();
randSong();
Instance of Symbol 315 MovieClip "sput1" in Frame 15
onClipEvent (load) {
this._x = -380;
this._y = -200;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = true;
}
onClipEvent (enterFrame) {
if (dead != "dead") {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (docked != "dockme") {
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "sput1")) {
docked = "dockme";
_parent.lander.myGrav = 0.09;
_parent.sputnikfinder._visible = false;
} else {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
}
} else {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
this._rotation = _parent.lander._rotation;
if (_parent.lander.myLanded == "stop") {
_parent.sput2._visible = true;
_parent.lander.target = "sput2";
_parent.sputnikfinder._visible = true;
dead = "dead";
_parent.lander.myGrav = 0.06;
nextFrame();
}
}
}
}
Instance of Symbol 315 MovieClip "sput2" in Frame 15
onClipEvent (load) {
this._x = 300;
this._y = 1900;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = false;
}
onClipEvent (enterFrame) {
if (dead != "dead") {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (docked != "dockme") {
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "sput2")) {
docked = "dockme";
_parent.sputnikfinder._visible = false;
_parent.lander.myGrav = 0.09;
} else {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
}
} else {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
this._rotation = _parent.lander._rotation;
if (_parent.lander.myLanded == "stop") {
_parent.sput3._visible = true;
_parent.lander.target = "sput3";
_parent.sputnikfinder._visible = true;
dead = "dead";
_parent.lander.myGrav = 0.06;
nextFrame();
}
}
}
}
Instance of Symbol 315 MovieClip "sput3" in Frame 15
onClipEvent (load) {
this._x = 1300;
this._y = 1337;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
this._visible = false;
}
onClipEvent (enterFrame) {
if (dead != "dead") {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (docked != "dockme") {
if (this.hitTest(_parent.lander._x, _parent.lander._y, true) && (_parent.lander.target == "sput3")) {
docked = "dockme";
_parent.lander.myGrav = 0.135;
_parent.sputnikfinder._visible = false;
} else {
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
}
} else {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
this._rotation = _parent.lander._rotation;
}
}
}
Instance of Symbol 58 MovieClip "lander" in Frame 15
onClipEvent (load) {
myGrav = 0.06;
i = 0;
target = "sput1";
_parent.sputnikfinder._visible = true;
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 425) || ((this._x + myXMomentum) <= 175)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 225) || ((this._y + myYMomentum) <= 175)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function sputDirection() {
origin_x2 = _parent[target]._x;
origin_y2 = _parent[target]._y;
mouse_x2 = this._x;
mouse_y2 = this._y;
dist_x2 = mouse_x2 - origin_x2;
dist_y2 = mouse_y2 - origin_y2;
if (Number(dist_x2) < 0) {
normalise2 = -1 * dist_x2;
} else {
normalise2 = dist_x2;
}
if (Number(dist_y2) < 0) {
normalise2 = Number(normalise2) + Number(-1 * dist_y2);
} else {
normalise2 = Number(normalise2) + Number(dist_y2);
}
if ((Number(dist_x2) >= 0) and (Number(dist_y2) >= 0)) {
direction2 = 90 * (dist_y2 / normalise2);
} else if ((Number(dist_x2) <= 0) and (Number(dist_y2) >= 0)) {
direction2 = Number(-90 * (dist_x2 / normalise2)) + 90;
} else if ((Number(dist_x2) <= 0) and (Number(dist_y2) <= 0)) {
direction2 = Number(-90 * (dist_y2 / normalise2)) + 180;
} else {
direction2 = Number(90 * (dist_x2 / normalise2)) + 270;
}
_root.sputnikfinder._rotation = direction2;
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
_parent.popup.gotoAndStop("winner");
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
sputDirection();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 15
onClipEvent (load) {
if (myGoCommand == "blow") {
this._x = _parent.lander._x + (random(20) - 10);
this._y = _parent.lander._y + (random(20) - 10);
gotoAndStop(random(5) + 5);
grow = random(12);
}
if (myGoCommand == "go") {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
}
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if (myGoCommand == "blow") {
this._xscale = this._xscale + grow;
this._yscale = this._yscale + grow;
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 15
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 295 MovieClip "sputnikfinder" in Frame 15
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 223 MovieClip "Angry" in Frame 15
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 120;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -17) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 16
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 17
stopAllSounds();
stop();
randSong();
Instance of Symbol 58 MovieClip "lander" in Frame 17
onClipEvent (load) {
myGrav = 0.06;
i = 0;
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 425) || ((this._x + myXMomentum) <= 175)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 225) || ((this._y + myYMomentum) <= 175)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function arrowcolour() {
myDistance = Math.sqrt(Math.pow(_this._x - _parent.foreground._x, 2) + Math.pow(_this._y - _parent.foreground._y, 2));
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
stopAllSounds();
_root.nextFrame();
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 17
onClipEvent (load) {
if (myGoCommand == "blow") {
this._x = _parent.lander._x + (random(20) - 10);
this._y = _parent.lander._y + (random(20) - 10);
gotoAndStop(random(5) + 5);
grow = random(12);
}
if (myGoCommand == "go") {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
}
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if (myGoCommand == "blow") {
this._xscale = this._xscale + grow;
this._yscale = this._yscale + grow;
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 17
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 223 MovieClip "Angry" in Frame 17
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 120;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -10) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 18
stopAllSounds();
stop();
if (_root.onOrOff == "on") {
_root.musicSphere.gotoAndStop("level2");
}
Frame 19
stopAllSounds();
stop();
randSong();
Instance of Symbol 271 MovieClip "bomb" in Frame 19
onClipEvent (enterFrame) {
function bombgrav() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * 6;
myXGravity = Math.cos((Math.PI/180) * direction) * 6;
}
if (!exploding) {
if (activate == "yes") {
gotoAndStop (1);
bombOn = getTimer();
_parent.lander.myGrav = 0.1;
_x = _parent.lander._x;
_y = _parent.lander._y;
_rotation = _parent.lander._rotation;
if (key.isDown(32)) {
activate = "drop";
_parent.lander.myGrav = 0.06;
this.myGrav = 0.07;
myYMovement = _parent.lander.myYMovement;
myXMovement = _parent.lander.myXMovement;
}
} else if (activate == "drop") {
this._y = this._y - ((myYGravity + _parent.lander.Yparticleshift) - myYMovement);
this._x = this._x - ((myXGravity + _parent.lander.Xparticleshift) - myXMovement);
bombgrav();
} else if (activate == "stop") {
play();
activate = false;
this._y = this._y - _parent.lander.Yparticleshift;
this._x = this._x - _parent.lander.Xparticleshift;
}
}
}
Instance of Symbol 362 MovieClip "megaCreature" in Frame 19
onClipEvent (load) {
creatureSpeed = 0.2;
misMax = 1;
fireDistance = 320;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
}
onClipEvent (enterFrame) {
misslePos = creatureCorrected - 90;
misslePos = misslePos - 3;
if (misslePos < 0) {
misslePos = misslePos + 360;
}
myXpos = Math.cos((Math.PI/180) * misslePos) * 763;
myYpos = Math.sin((Math.PI/180) * misslePos) * 763;
_parent.misslePlace._x = myXpos + _x;
_parent.misslePlace._y = myYpos + _y;
if ((!missleLaunch) && (firstFrame)) {
xDiff = Math.abs(_parent.misslePlace._x - _parent.lander._x);
yDiff = Math.abs(_parent.misslePlace._y - _parent.lander._y);
totalDiff = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2));
if (totalDiff < fireDistance) {
missleLaunch = true;
duplicateMovieClip (_parent.missle, "missle1", 80);
_parent.missle1._x = _parent.misslePlace._x;
_parent.missle1._y = _parent.misslePlace._y;
_parent.missle1.firePermission = true;
}
}
if ((_parent.bomb.activate != "yes") && (_parent.bomb.activate != "drop")) {
if (_parent.lander.direction < 0) {
corrected = _parent.lander.direction * -1;
} else {
corrected = _parent.lander.direction;
}
corrected = _parent.lander.direction + 90;
running = false;
} else if (!running) {
corrected = random(360);
running = true;
}
if (corrected >= 360) {
corrected = corrected - 360;
}
if (_rotation < 0) {
creatureCorrected = _rotation + 360;
} else {
creatureCorrected = _rotation;
}
if ((creatureCorrected < (corrected + 2)) && (creatureCorrected > (corrected - 2))) {
running = false;
} else {
myTurn = creatureCorrected - corrected;
if (myTurn > 180) {
myTurn = myTurn - 360;
} else if (myTurn < -180) {
myTurn = myTurn + 360;
}
if (myTurn > 0) {
this._rotation = this._rotation - creatureSpeed;
} else {
this._rotation = this._rotation + creatureSpeed;
}
}
this._x = _parent.foreground._x + Xdist;
this._y = _parent.foreground._y + Ydist;
if (this.hitTest(_parent.lander._x, _parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent.lander.myXMomentum = (_parent.lander.myXMomentum * -1) / 2.5;
_parent.lander.myYMomentum = (_parent.lander.myYMomentum * -1) / 2.5;
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
if (this.hitTest(_parent.bomb._x, _parent.bomb._y, true)) {
if (_parent.bomb.activate == "yes") {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
_parent.bomb.activate = "stop";
_parent._parent.bomb.exploding = true;
} else if (_parent.bomb.activate == "drop") {
_parent.bomb.activate = "stop";
nextFrame();
}
}
firstFrame = true;
}
Instance of Symbol 58 MovieClip "lander" in Frame 19
onClipEvent (load) {
myGrav = 0.06;
i = 0;
if (_quality == "LOW") {
myPartAmount = 5;
} else if (_quality == "MEDIUM") {
myPartAmount = 12;
} else {
myPartAmount = 25;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
onClipEvent (enterFrame) {
function rotate(rvar) {
_rotation = (_rotation + (3 * rvar));
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
}
function constant() {
myXMomentum = myXMomentum + (myXMovement - myXGravity);
myYMomentum = myYMomentum + (myYMovement - myYGravity);
if (((this._x + myXMomentum) >= 380) || ((this._x + myXMomentum) <= 220)) {
_parent.foreground._x = _parent.foreground._x - myXMomentum;
Xparticleshift = myXMomentum;
} else {
this._x = this._x + myXMomentum;
Xparticleshift = 0;
}
if (((this._y + myYMomentum) >= 220) || ((this._y + myYMomentum) <= 180)) {
_parent.foreground._y = _parent.foreground._y - myYMomentum;
Yparticleshift = myYMomentum;
} else {
this._y = this._y + myYMomentum;
Yparticleshift = 0;
}
}
function arrowcolour() {
myDistance = Math.sqrt(Math.pow(_this._x - _parent.foreground._x, 2) + Math.pow(_this._y - _parent.foreground._y, 2));
}
function explode() {
if (i <= 60) {
duplicateMovieClip (_parent.particle, "mcc" + i, i);
_parent["mcc" + i].myGocommand = "blow";
i++;
blowdelay++;
if (i >= 20) {
this.gotoAndStop(2);
}
}
}
function engineburn() {
if (i <= myPartAmount) {
duplicateMovieClip (_parent.particle, "mc" + i, i);
_parent["mc" + i].myGocommand = "go";
_parent["mc" + i]._x = _x;
_parent["mc" + i]._y = _y;
i++;
} else {
i = 0;
}
}
function gravity() {
origin_x = _root.foreground._x;
origin_y = _root.foreground._y;
mouse_x = this._x;
mouse_y = this._y;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
myYGravity = Math.sin((Math.PI/180) * direction) * myGrav;
myXGravity = Math.cos((Math.PI/180) * direction) * myGrav;
_parent.planetfinder._rotation = direction;
}
if (WinLose == "lose") {
if (myFailTime) {
if ((getTimer() - myFailtime) >= 5000) {
myLanded = "stop";
_parent.popup.gotoAndStop("loser");
}
} else {
myFailtime = getTimer();
_root.Angry.go = "stop";
}
} else if (WinLose == "win") {
if (myWinTime) {
if ((getTimer() - myWinTime) >= 2000) {
myLanded = "stop";
_parent.popup.gotoAndStop("winner");
}
} else {
myWinTime = getTimer();
_root.Angry.go = "stop";
}
}
if (exploding == "true") {
explode();
gravity();
constant();
myXMovement = 0;
myYMovement = 0;
WinLose = "lose";
}
if (myLanded == "go") {
gravity();
constant();
if (key.isDown(38)) {
myVelocity = 0.2;
engineburn();
myXMovement = Math.cos((Math.PI/180) * myRotation) * myVelocity;
myYMovement = Math.sin((Math.PI/180) * myRotation) * myVelocity;
} else {
myXmovement = 0;
myYmovement = 0;
}
if (key.isDown(37)) {
rotate(-1);
}
if (key.isDown(39)) {
rotate(1);
}
} else if (myLanded == "stop") {
myXmovement = 0;
myYmovement = 0;
myXMomentum = 0;
myYMomentum = 0;
}
}
Instance of Symbol 177 MovieClip "particle" in Frame 19
onClipEvent (load) {
if (myGoCommand == "blow") {
this._x = _parent.lander._x + (random(20) - 10);
this._y = _parent.lander._y + (random(20) - 10);
gotoAndStop(random(5) + 5);
grow = random(12);
}
if (myGoCommand == "go") {
xDirect = ((random(15) - 7) / 10) + Math.cos((Math.PI/180) * _parent.lander.myRotation);
yDirect = ((random(15) - 7) / 10) + Math.sin((Math.PI/180) * _parent.lander.myRotation);
gotoAndStop(random(2) + 1);
}
myTTL = getTimer();
}
onClipEvent (enterFrame) {
if (myGocommand == "go") {
this._x = this._x - (xDirect + _parent.lander.Xparticleshift);
this._y = this._y - (yDirect + _parent.lander.Yparticleshift);
}
if (myGoCommand == "blow") {
this._xscale = this._xscale + grow;
this._yscale = this._yscale + grow;
}
if ((getTimer() - myTTL) >= 2500) {
removeMovieClip(this);
}
}
Instance of Symbol 364 MovieClip "misslePlace" in Frame 19
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 111 MovieClip "planetfinder" in Frame 19
onClipEvent (enterFrame) {
this._x = _parent.lander._x;
this._y = _parent.lander._y;
}
Instance of Symbol 223 MovieClip "Angry" in Frame 19
onClipEvent (load) {
myTimerStart = getTimer();
myTime = 0;
}
onClipEvent (enterFrame) {
function trim(theNumber, decPlaces) {
if (decPlaces >= 0) {
var temp = Math.pow(10, decPlaces);
return(Math.round(theNumber * temp) / temp);
}
}
distance = int(Math.sqrt(Math.pow(_parent.lander._x - _parent.foreground._x, 2) + Math.pow(_parent.lander._y - _parent.foreground._y, 2)) - 709);
if ((go != "stop") && (myTime != 0)) {
timer = myTime - trim((getTimer() - myTimerStart) / 1000, 2);
if (timer <= 0) {
_parent.popup.gotoAndStop("notime");
_parent.lander.myLanded = "stop";
go = "stop";
}
}
if (_parent.Angry.distance <= -10) {
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
}
}
Frame 20
stop();
stopAllSounds();
stop();
Symbol 13 Button
on (release) {
var strUrl = ((("http://www.arcadetown.com/index.asp?gameid=thelander&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url));
getURL (strUrl, "_blank");
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 2
stop();
Symbol 18 MovieClip Frame 3
nextFrame();
Symbol 18 MovieClip Frame 4
stop();
Symbol 18 MovieClip Frame 5
nextFrame();
Symbol 18 MovieClip Frame 6
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stopAllSounds();
stop();
Symbol 26 MovieClip Frame 3
stop();
Symbol 26 MovieClip Frame 4
stop();
Symbol 26 MovieClip Frame 5
stop();
Symbol 26 MovieClip Frame 6
stop();
Symbol 26 MovieClip Frame 7
stop();
Symbol 26 MovieClip Frame 8
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
play();
Symbol 42 MovieClip Frame 1
stop();
Instance of Symbol 35 MovieClip "eye" in Symbol 42 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(100) == 50) {
this.play();
}
}
Symbol 42 MovieClip Frame 60
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 646
stop();
_root.nextFrame();
Symbol 65 Button
on (release) {
_root.nextFrame();
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 78 Button
on (release) {
_parent.gotoAndStop("b1");
}
Symbol 83 Button
on (release) {
gotoAndStop (3);
}
Symbol 88 Button
on (release) {
gotoAndStop (2);
}
Symbol 92 Button
on (release) {
var strUrl = ((("http://www.arcadetown.com/index.asp?gameid=thelander&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url));
getURL (strUrl, "_blank");
}
Symbol 95 Button
on (release) {
var strUrl = ((("http://www.arcadetown.com/index.asp?gameid=thelander&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url));
getURL (strUrl, "_blank");
}
Symbol 99 Button
on (release) {
gotoAndStop (1);
}
Symbol 128 Button
on (release) {
getURL ("http://www.organa.ca", "_blank");
}
Symbol 133 Button
on (release) {
getURL ("mailto:peter@organa.ca");
}
Symbol 137 Button
on (release) {
var strUrl = ((("http://www.arcadetown.com/index.asp?gameid=thelander&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url));
getURL (strUrl, "_blank");
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 3
stop();
Symbol 144 MovieClip Frame 41
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad2" in Symbol 146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 500)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
_parent._parent.lander.WinLose = "win";
}
}
}
Instance of Symbol 145 MovieClip "landingpad" in Symbol 146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
}
if (key.isDown(38) && ((getTimer() - myLandTime) > 1000)) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 146 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
}
Symbol 150 Button
on (release) {
gotoAndStop(_totalframes);
_root.nextFrame();
}
Symbol 162 Button
on (release) {
_root.nextFrame();
}
Symbol 165 Button
on (release) {
_parent.gotoAndPlay(1);
}
Symbol 170 MovieClip Frame 1
stop();
_root.breifingDelay(3, this);
Symbol 170 MovieClip Frame 2
stop();
_root.breifingDelay(6, this);
Symbol 170 MovieClip Frame 3
stop();
_root.breifingDelay(5, this);
Symbol 170 MovieClip Frame 27
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 6
stop();
Symbol 183 Button
on (rollOver) {
play();
}
Symbol 188 Button
on (release) {
gotoAndStop(_parent._parent.prevFrame());
}
Symbol 191 Button
on (release) {
_quality = "HIGH";
_parent._parent.lander.myPartAmount = 25;
_parent._parent.lander.myLandTime = getTimer();
}
Symbol 195 Button
on (release) {
_quality = "LOW";
_parent._parent.lander.myPartAmount = 5;
_parent._parent.lander.myLandTime = getTimer();
}
Symbol 199 Button
on (release) {
_quality = "MEDIUM";
_parent._parent.lander.myPartAmount = 12;
_parent._parent.lander.myLandTime = getTimer();
}
Symbol 203 Button
on (release) {
_parent._parent.popup.gotoAndStop(2);
}
Symbol 207 Button
on (release) {
if (_root.onOrOff == "on") {
_root.onOrOff = "off";
_root.randSong();
} else {
_root.onOrOff = "on";
_root.randSong();
}
}
Symbol 210 Button
on (release) {
if (_parent._parent.noisecube.onOrOff == "on") {
_parent._parent.noisecube.onOrOff = "off";
} else {
_parent._parent.noisecube.onOrOff = "on";
}
}
Symbol 214 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Symbol 218 Button
on (release) {
var strUrl = ((("http://www.arcadetown.com/index.asp?gameid=thelander&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url));
getURL (strUrl, "_blank");
}
Symbol 220 MovieClip Frame 1
stop();
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
} else {
_parent.play();
}
}
Symbol 220 MovieClip Frame 10
stop();
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
} else {
_parent.play();
}
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 231 Button
on (release) {
gotoAndStop (1);
}
Symbol 238 Button
on (release) {
_parent.nextFrame();
}
Symbol 241 Button
on (release) {
_parent.prevFrame();
}
Symbol 243 MovieClip Frame 1
stop();
_parent.lander.myLanded = "go";
Symbol 243 MovieClip Frame 2
_parent.lander.myLanded = "pause";
Symbol 243 MovieClip Frame 3
stop();
Symbol 243 MovieClip Frame 4
stop();
if (_root.onOrOff == "on") {
stopAllSounds();
_root.musicSphere.gotoAndStop("gameover");
}
Symbol 243 MovieClip Frame 5
stop();
_root.musiccube.mysound("gameOver");
Symbol 250 MovieClip Frame 1
stop();
_root.breifingDelay(3, this);
Instance of Symbol 145 MovieClip "landingpad2" in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 500)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
}
if (key.isDown(38) && ((getTimer() - myLandTime) > 1000)) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 145 MovieClip "landingpad" in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
}
if (key.isDown(38) && ((getTimer() - myLandTime) > 1000)) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
}
Symbol 250 MovieClip Frame 91
stop();
_root.breifingDelay(1, this);
Symbol 250 MovieClip Frame 171
stop();
_root.breifingDelay(1, this);
Symbol 250 MovieClip Frame 262
stop();
_root.breifingDelay(1, this);
Symbol 250 MovieClip Frame 286
stop();
Symbol 251 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad2" in Symbol 251 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 500)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
_parent._parent.lander.goal = "complete";
this.gotoAndStop(2);
}
if (key.isDown(38) && ((getTimer() - myLandTime) > 1000)) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 145 MovieClip "landingpad" in Symbol 251 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
if (_parent._parent.lander.goal == "complete") {
_parent._parent.lander.WinLose = "win";
}
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (_parent._parent.lander.i >= 40) {
_parent._parent.lander.exploding = "stop";
_parent._parent.lander.myLanded = "stop";
} else if (_parent._parent.lander.exploding == "true") {
_parent._parent.lander.myXMomentum = 0;
_parent._parent.lander.myYMomentum = 0;
} else if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
}
Instance of Symbol 44 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Symbol 255 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad1" in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
if (_parent._parent.sput3.docked == "dockme") {
_parent._parent.lander.WinLose = "win";
}
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 145 MovieClip "landingpad3" in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
if (_parent._parent.lander.bat == "attached") {
_parent._parent.lander.WinLose = "win";
}
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (_parent._parent.lander.i >= 40) {
_parent._parent.lander.exploding = "stop";
_parent._parent.lander.myLanded = "stop";
} else if (_parent._parent.lander.exploding == "true") {
_parent._parent.lander.myXMomentum = 0;
_parent._parent.lander.myYMomentum = 0;
} else if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
if (this.hitTest(_parent._parent.bomb._x, _parent._parent.bomb._y, true)) {
if (_parent._parent.bomb.activate == "yes") {
_parent._parent.bomb.play();
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
_parent._parent.bomb.activate = "stop";
} else if (_parent._parent.bomb.activate == "drop") {
_parent._parent.bomb.play();
_parent._parent.bomb.activate = "stop";
}
}
}
Instance of Symbol 252 MovieClip "rocket" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 42 MovieClip "creat2" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 42 MovieClip "creat1" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 145 MovieClip "landingpad2" in Symbol 255 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
_parent._parent.lander.bat = "attached";
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 254 MovieClip "batt" in Symbol 255 MovieClip Frame 1
/* no clip actions */
Symbol 262 MovieClip Frame 1
stop();
_root.breifingDelay(3, this);
Symbol 262 MovieClip Frame 2
stop();
_root.breifingDelay(5, this);
Symbol 262 MovieClip Frame 3
stop();
_root.breifingDelay(6, this);
Symbol 262 MovieClip Frame 4
stop();
_root.breifingDelay(5, this);
Symbol 262 MovieClip Frame 5
play();
Symbol 262 MovieClip Frame 28
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 2
Symbol 271 MovieClip Frame 33
gotoAndStop (1);
this._x = -300;
this._y = -300;
Symbol 272 MovieClip Frame 1000
gotoAndPlay (1);
Symbol 272 MovieClip Frame 1002
stop();
Symbol 273 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad" in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 265 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
if (this.hitTest(_parent._parent.bomb._x, _parent._parent.bomb._y, true)) {
if (_parent._parent.bomb.activate == "yes") {
_parent._parent.bomb.play();
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
_parent._parent.bomb.activate = "stop";
} else if (_parent._parent.bomb.activate == "drop") {
_parent._parent.bomb.play();
_parent._parent.bomb.activate = "stop";
_parent._parent.lander.WinLose = "lose";
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (_parent._parent.lander.i >= 40) {
_parent._parent.lander.exploding = "stop";
_parent._parent.lander.myLanded = "stop";
} else if (_parent._parent.lander.exploding == "true") {
_parent._parent.lander.myXMomentum = 0;
_parent._parent.lander.myYMomentum = 0;
} else if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
if (this.hitTest(_parent._parent.bomb._x, _parent._parent.bomb._y, true) && (_parent._parent.bomb.bombOn >= 500)) {
if (_parent._parent.bomb.activate == "yes") {
_parent._parent.bomb.play();
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
_parent._parent.bomb.activate = "stop";
_parent._parent.lander.WinLose = "lose";
} else if (_parent._parent.bomb.activate == "drop") {
_parent._parent.bomb.play();
_parent._parent.bomb.activate = "stop";
_parent._parent.lander.WinLose = "lose";
}
}
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
_parent._parent.bomb.activate = "yes";
this.gotoAndStop("FloatBomb");
}
}
Instance of Symbol 42 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && (_parent._parent.bomb.activate != "stop")) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
if (this.hitTest(_parent._parent.bomb._x, _parent._parent.bomb._y, true)) {
if (_parent._parent.bomb.activate == "yes") {
_parent._parent.bomb.play();
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
_parent._parent.bomb.activate = "stop";
} else if (_parent._parent.bomb.activate == "drop") {
_parent._parent.bomb.play();
this.play();
_parent._parent.lander.WinLose = "win";
_parent._parent.bomb.activate = "stop";
}
}
}
Symbol 280 MovieClip Frame 1
stop();
_root.breifingDelay(3, this);
Symbol 280 MovieClip Frame 2
stop();
_root.breifingDelay(5, this);
Symbol 280 MovieClip Frame 3
stop();
_root.breifingDelay(6, this);
Symbol 280 MovieClip Frame 4
stop();
_root.breifingDelay(8, this);
Symbol 280 MovieClip Frame 28
stop();
Symbol 285 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad3" in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 285 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (_parent._parent.lander.i >= 40) {
_parent._parent.lander.exploding = "stop";
_parent._parent.lander.myLanded = "stop";
} else if (_parent._parent.lander.exploding == "true") {
_parent._parent.lander.myXMomentum = 0;
_parent._parent.lander.myYMomentum = 0;
} else if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
if (this.hitTest(_parent._parent.bomb._x, _parent._parent.bomb._y, true)) {
if (_parent._parent.bomb.activate == "yes") {
_parent._parent.bomb.play();
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
_parent._parent.bomb.activate = "stop";
} else if (_parent._parent.bomb.activate == "drop") {
_parent._parent.bomb.play();
_parent._parent.bomb.activate = "stop";
}
}
}
Instance of Symbol 42 MovieClip "creat1" in Symbol 285 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 283 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 284 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Symbol 298 MovieClip Frame 1
stop();
_root.breifingDelay(3, this);
Symbol 298 MovieClip Frame 2
stop();
_root.breifingDelay(5, this);
Symbol 298 MovieClip Frame 3
stop();
_root.breifingDelay(8, this);
Symbol 298 MovieClip Frame 4
stop();
_root.breifingDelay(6, this);
Symbol 298 MovieClip Frame 28
stop();
Symbol 304 Button
on (release) {
gotoAndStop(_totalframes);
_root.nextFrame();
}
Symbol 311 MovieClip Frame 625
gotoAndPlay (1);
Symbol 312 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad2" in Symbol 312 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
if (_parent._parent.sput3.docked == "dockme") {
_parent._parent.lander.WinLose = "win";
}
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 311 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (_parent._parent.lander.i >= 40) {
_parent._parent.lander.exploding = "stop";
_parent._parent.lander.myLanded = "stop";
} else if (_parent._parent.lander.exploding == "true") {
_parent._parent.lander.myXMomentum = 0;
_parent._parent.lander.myYMomentum = 0;
} else if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
}
Instance of Symbol 252 MovieClip "rocket" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Symbol 314 MovieClip Frame 1
stop();
_root.breifingDelay(3, this);
Symbol 314 MovieClip Frame 2
stop();
_root.breifingDelay(5, this);
Symbol 314 MovieClip Frame 3
stop();
_root.breifingDelay(4, this);
Symbol 314 MovieClip Frame 4
stop();
_root.breifingDelay(7, this);
Symbol 314 MovieClip Frame 28
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad" in Symbol 325 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
if ((_parent._parent.lander.pad1 == "done") && (_parent._parent.lander.pad2 == "done")) {
_parent._parent.lander.WinLose = "win";
}
}
if (key.isDown(38) && ((getTimer() - myLandTime) > 1000)) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 145 MovieClip "landingpad2" in Symbol 325 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
_parent._parent.lander.pad1 = "done";
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 145 MovieClip "landingpad3" in Symbol 325 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
_parent._parent.lander.pad2 = "done";
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 311 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 44 MovieClip "brick" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 323 MovieClip "bioooze" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (_parent._parent.lander.i >= 40) {
_parent._parent.lander.exploding = "stop";
_parent._parent.lander.myLanded = "stop";
} else if (_parent._parent.lander.exploding == "true") {
_parent._parent.lander.myXMomentum = 0;
_parent._parent.lander.myYMomentum = 0;
} else if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
}
Instance of Symbol 42 MovieClip "creature1 " in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 252 MovieClip "rocketwooohh" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 42 MovieClip " creature2" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Symbol 330 MovieClip Frame 1
stop();
_root.breifingDelay(2, this);
Symbol 330 MovieClip Frame 2
stop();
_root.breifingDelay(4, this);
Symbol 330 MovieClip Frame 3
stop();
_root.breifingDelay(6, this);
Symbol 330 MovieClip Frame 4
stop();
_root.breifingDelay(4, this);
Symbol 330 MovieClip Frame 28
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 2
play();
Instance of Symbol 335 MovieClip "eye" in Symbol 337 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(100) == 50) {
this.play();
}
}
Symbol 343 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "landingpad" in Symbol 343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
this.gotoAndStop(2);
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 145 MovieClip "landingpad2" in Symbol 343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true) && ((getTimer() - myTakeoff) > 700)) {
if (_parent._parent.lander.myLanded != "stop") {
myLandTime = getTimer();
}
if ((_parent._parent.lander._rotation > (this._rotation - 10)) && (_parent._parent.lander._rotation < (this._rotation + 20))) {
_parent._parent.lander.myLanded = "stop";
if (_parent._parent.bomb.activate != "yes") {
_parent._parent.bomb.activate = "yes";
}
this.gotoAndStop(2);
}
if ((key.isDown(38) && ((getTimer() - myLandTime) > 1000)) && (_parent._parent.lander.goal != "complete")) {
_parent._parent.lander.myLanded = "go";
this.gotoAndStop(1);
myTakeoff = getTimer();
}
}
}
Instance of Symbol 341 MovieClip in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 2.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 2.5;
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
myDelay = getTimer();
}
}
}
Instance of Symbol 28 MovieClip "theorb" in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
myDelay = -300;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.lander._x, _parent._parent.lander._y, true)) {
if (_parent._parent.lander.i >= 40) {
_parent._parent.lander.exploding = "stop";
_parent._parent.lander.myLanded = "stop";
} else if (_parent._parent.lander.exploding == "true") {
_parent._parent.lander.myXMomentum = 0;
_parent._parent.lander.myYMomentum = 0;
} else if (getTimer() > (myDelay + 300)) {
_parent._parent.lander.myXMomentum = (_parent._parent.lander.myXMomentum * -1) / 1.5;
_parent._parent.lander.myYMomentum = (_parent._parent.lander.myYMomentum * -1) / 1.5;
myDelay = getTimer();
}
}
if (this.hitTest(_parent._parent.bomb._x, _parent._parent.bomb._y, true) && (_parent._parent.bomb.bombOn >= 500)) {
if (_parent._parent.bomb.activate == "yes") {
_parent._parent.lander.exploding = "true";
_parent._parent.lander.myLanded = "blow";
_parent._parent.bomb.activate = "stop";
_parent._parent.lander.WinLose = "lose";
_parent._parent.bomb.exploding = true;
} else if (_parent._parent.bomb.activate == "drop") {
_parent._parent.bomb.activate = "stop";
}
}
}
Symbol 350 MovieClip Frame 1
stop();
if (firePermission) {
noMore = false;
rotTotal = 0;
stopCount = 1;
initFrame = _root._currentframe;
rotSelfDestruct = 400;
distSelfDestruct = 650;
reTargetRate = 20;
rspeed = 5;
myVelocity = 5;
Xdist = this._x - _parent.foreground._x;
Ydist = this._y - _parent.foreground._y;
onEnterFrame = function () {
if (_parent.popup._currentframe != 2) {
if (_parent.popup._currentframe != 1) {
removeMovieClip(this);
}
xDiff = Math.abs(_x - _parent.lander._x);
yDiff = Math.abs(_y - _parent.lander._y);
totalDiff = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2));
if ((totalDiff > distSelfDestruct) || (rotTotal >= rotSelfDestruct)) {
play();
}
if (initFrame != _root._currentframe) {
removeMovieClip(this);
}
if (_parent.lander.hitTest(_x, _y, true)) {
_parent.lander.myXMomentum = (_parent.lander.myXMomentum * -1) / 2.5;
_parent.lander.myYMomentum = (_parent.lander.myYMomentum * -1) / 2.5;
_parent.lander.exploding = "true";
_parent.lander.myLanded = "blow";
noMore = true;
play();
}
if (delay < stopCount) {
xDest = _parent.lander._x;
yDest = _parent.lander._y;
delay = reTargetRate;
} else {
delay--;
}
if (_rotation < 0) {
myRotation = 360 + _rotation;
} else {
myRotation = _rotation;
}
origin_x = _x;
origin_y = _y;
mouse_x = xDest;
mouse_y = yDest;
dist_x = mouse_x - origin_x;
dist_y = mouse_y - origin_y;
if (Number(dist_x) < 0) {
normalise = -1 * dist_x;
} else {
normalise = dist_x;
}
if (Number(dist_y) < 0) {
normalise = Number(normalise) + Number(-1 * dist_y);
} else {
normalise = Number(normalise) + Number(dist_y);
}
if ((Number(dist_x) >= 0) and (Number(dist_y) >= 0)) {
direction = 90 * (dist_y / normalise);
} else if ((Number(dist_x) <= 0) and (Number(dist_y) >= 0)) {
direction = Number(-90 * (dist_x / normalise)) + 90;
} else if ((Number(dist_x) <= 0) and (Number(dist_y) <= 0)) {
direction = Number(-90 * (dist_y / normalise)) + 180;
} else {
direction = Number(90 * (dist_x / normalise)) + 270;
}
if ((myRotation < (direction + 4)) && (myRotation > (direction - 4))) {
_rotation = direction;
} else {
myTurn = myRotation - direction;
if (myTurn > 180) {
myTurn = myTurn - 360;
} else if (myTurn < -180) {
myTurn = myTurn + 360;
}
if (myTurn > 0) {
rotate(-1);
_rotation = (_rotation - rspeed);
rotTotal = rotTotal + rspeed;
} else {
_rotation = (_rotation + rspeed);
rotTotal = rotTotal + rspeed;
}
}
xMovement = xMovement + (Math.cos((Math.PI/180) * myRotation) * myVelocity);
yMovement = yMovement + (Math.sin((Math.PI/180) * myRotation) * myVelocity);
this._x = (_parent.foreground._x + Xdist) + xMovement;
this._y = (_parent.foreground._y + Ydist) + yMovement;
}
};
}
Symbol 350 MovieClip Frame 2
onEnterFrame = function () {
this._x = (_parent.foreground._x + Xdist) + xMovement;
this._y = (_parent.foreground._y + Ydist) + yMovement;
};
Symbol 350 MovieClip Frame 32
onEnterFrame = function () {
};
if (!noMore) {
_parent.megaCreature.missleLaunch = false;
}
removeMovieClip(this);
Symbol 352 MovieClip Frame 1
stop();
_root.breifingDelay(3, this);
Symbol 352 MovieClip Frame 2
stop();
_root.breifingDelay(7, this);
Symbol 352 MovieClip Frame 3
stop();
_root.breifingDelay(8, this);
Symbol 352 MovieClip Frame 4
stop();
_root.breifingDelay(7, this);
Symbol 352 MovieClip Frame 28
stop();
Symbol 362 MovieClip Frame 1
stop();
Instance of Symbol 335 MovieClip "eye" in Symbol 362 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(100) == 50) {
this.play();
}
}
Symbol 362 MovieClip Frame 2
creatureSpeed = 0.26;
misMax = 1;
Symbol 362 MovieClip Frame 3
creatureSpeed = 0.31;
misMax = 1;
Symbol 362 MovieClip Frame 4
creatureSpeed = 0;
misMax = 0;
_parent.lander.WinLose = "win";
Symbol 367 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
if (_root.onOrOff == "off") {
stopAllSounds();
}
Symbol 378 MovieClip Frame 90
robot.playme = "go";
Symbol 378 MovieClip Frame 200
robot.playme == "stop";
Symbol 378 MovieClip Frame 608
stop();