Frame 1
MochiAd.showPreGameAd({id:"f81936155548ff1c", res:"640x480"});
Frame 2
onEnterFrame = function () {
};
_root.lvl1Music = new Sound();
_root.lvl1Music.attachSound("Lvl1Music");
_root.lvl1Music.setVolume(0);
_root.lvl2Music = new Sound();
_root.lvl2Music.attachSound("Lvl2Music");
_root.lvl2Music.setVolume(0);
_root.lvl3Music = new Sound();
_root.lvl3Music.attachSound("Lvl3Music");
_root.lvl3Music.setVolume(0);
_root.introMusic = new Sound();
_root.introMusic.attachSound("IntroMusic");
_root.introMusic.setVolume(100);
_root.fire = new Sound();
_root.fire.attachSound("Fire");
Frame 3
stop();
Frame 4
stop();
_root.introMusic.start();
Frame 5
stop();
Frame 6
stop();
Instance of Symbol 106 MovieClip [Background] in Frame 6
onClipEvent (load) {
this._alpha = 90;
}
onClipEvent (enterFrame) {
this._y--;
if (this._x <= -480) {
this._x = 480;
}
}
Instance of Symbol 106 MovieClip [Background] in Frame 6
onClipEvent (load) {
this._alpha = 90;
}
onClipEvent (enterFrame) {
this._y--;
if (this._x <= -480) {
this._x = 480;
}
}
Frame 7
_root.currentLevel = 1;
Instance of Symbol 154 MovieClip in Frame 7
onClipEvent (enterFrame) {
_root.levelText.text = "Level " + _root.currentLevel;
}
Instance of Symbol 156 MovieClip in Frame 7
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._rotation = 90 + (Math.atan2(_root.rocket._y - this._y, _root.rocket._x - this._x) * 57.2957795);
if (_root.rocket._y > 480) {
this._visible = true;
this._y = 470;
this._x = _root.rocket._x;
if (this._x < 10) {
this._x = 10;
}
if (this._x > 630) {
this._x = 630;
}
} else if (_root.rocket._y < 0) {
this._visible = true;
this._y = 10;
this._x = _root.rocket._x;
if (this._x < 10) {
this._x = 10;
}
if (this._x > 630) {
this._x = 630;
}
} else if (_root.rocket._x < 0) {
this._visible = true;
this._x = 10;
this._y = _root.rocket._y;
if (this._y < 10) {
this._y = 10;
}
if (this._y > 470) {
this._y = 470;
}
} else if (_root.rocket._x > 640) {
this._visible = true;
this._x = 630;
this._y = _root.rocket._y;
if (this._y < 10) {
this._y = 10;
}
if (this._y > 470) {
this._y = 470;
}
} else {
this._visible = false;
}
}
Frame 8
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = false;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
if (_root.boxDisplayed == true) {
_root.ready = true;
}
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 8
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 8
onClipEvent (load) {
this._alpha = 0;
}
Frame 9
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 11
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = false;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
if (_root.boxDisplayed == true) {
_root.ready = true;
}
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "The gravitational pull of planets affects the course of your ship. The larger the planet, the greater the pull.\n\n Press SPACE to continue...";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 11
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 11
onClipEvent (load) {
this._alpha = 0;
}
Frame 12
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 14
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = false;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
if (_root.boxDisplayed == true) {
_root.ready = true;
}
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "The green boost pods double the speed of your ship, lowering the amount of gravitational pull by planets.\n\nPress SPACE to continue...";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 14
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 14
onClipEvent (load) {
this._alpha = 0;
}
Frame 15
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 17
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = false;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
if (_root.boxDisplayed == true) {
_root.ready = true;
}
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "The yellow pods will cut the speed of your ship in half, increasing the affect of gravitational pull.\n\nAsteroid belts have no pull, but will destroy your ship if hit.\n\nPress SPACE to continue...";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 17
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 17
onClipEvent (load) {
this._alpha = 0;
}
Frame 18
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 20
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = false;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
if (_root.boxDisplayed == true) {
_root.ready = true;
}
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "From now on you will be able to control the amount of thrust that your ship takes off with via the slider in the corner.\n\nPress SPACE to continue...";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 20
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 20
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 20
onClipEvent (load) {
this._alpha = 0;
}
Frame 21
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 23
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = false;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
if (_root.boxDisplayed == true) {
_root.ready = true;
}
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "Avoid black holes, as they will draw you in if you get too close to them.\n\nPress SPACE to continue...";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 23
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 23
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 23
onClipEvent (load) {
this._alpha = 0;
}
Frame 24
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 26
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = false;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
if (_root.boxDisplayed == true) {
_root.ready = true;
}
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "From here on out, you're on your own. Good luck.\n\nPress SPACE to continue...";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 26
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 26
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 26
onClipEvent (load) {
this._alpha = 0;
}
Frame 27
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 29
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 29
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 29
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 29
onClipEvent (load) {
this._alpha = 0;
}
Frame 30
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 32
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 32
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 32
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 32
onClipEvent (load) {
this._alpha = 0;
}
Frame 33
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 35
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 35
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 35
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 35
onClipEvent (load) {
this._alpha = 0;
}
Frame 36
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 38
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 38
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 38
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 38
onClipEvent (load) {
this._alpha = 0;
}
Frame 39
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 41
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 41
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 41
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 41
onClipEvent (load) {
this._alpha = 0;
}
Frame 42
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 44
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 44
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 44
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 44
onClipEvent (load) {
this._alpha = 0;
}
Frame 45
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 47
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 47
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 47
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 47
onClipEvent (load) {
this._alpha = 0;
}
Frame 48
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 50
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 50
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 50
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 50
onClipEvent (load) {
this._alpha = 0;
}
Frame 51
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 53
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 53
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 53
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 53
onClipEvent (load) {
this._alpha = 0;
}
Frame 54
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 56
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 56
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 56
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 56
onClipEvent (load) {
this._alpha = 0;
}
Frame 57
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 59
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 59
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 59
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 59
onClipEvent (load) {
this._alpha = 0;
}
Frame 60
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 62
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 62
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 62
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 62
onClipEvent (load) {
this._alpha = 0;
}
Frame 63
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Frame 65
stop();
_root.launch = false;
_root.engineOn = false;
_root.ready = true;
_root.goalReached = false;
_root.bgMusicLvl = 0;
_root.levelText._visible = true;
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
if (_root.bgMusicNum == undefined) {
_root.bgMusicNum = 1;
}
_root.displayBox.box.textBox.text = "In order to proceed to the next level, you must guide your ship to the center of the wormhole.\n\nPress SPACE to launch your ship.";
_root[("lvl" + _root.bgMusicNum) + "Music"].start(0, 999);
onEnterFrame = function () {
if (_root.bgMusicLvl < 30) {
_root.bgMusicLvl = _root.bgMusicLvl + 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if ((Key.isDown(32) && (_root.ready == true)) && (_root.engineOn == false)) {
_root.fire.start();
_root.engineOn = true;
_root.rocket.aimLine._visible = false;
}
if ((_root.engineOn == true) && (_root.launch == false)) {
_root.homeWorld.rocket.removeMovieClip();
_root.launch = true;
}
if (_root.goalReached == true) {
if (_root.rocket._yscale != 0) {
_root.rocket._xscale = _root.rocket._xscale - 4;
_root.rocket._yscale = _root.rocket._yscale - 4;
_root.rocket.xSpd = _root.rocket.xSpd + ((_root.goal._x - _root.rocket._x) / 30);
_root.rocket.ySpd = _root.rocket.ySpd + ((_root.goal._y - _root.rocket._y) / 30);
_root.rocket.xSpd = _root.rocket.xSpd * 0.75;
_root.rocket.ySpd = _root.rocket.ySpd * 0.75;
}
if (_root.whiteWash._alpha < 100) {
_root.whiteWash._alpha = _root.whiteWash._alpha + 4;
} else {
_root.play();
}
}
};
Instance of Symbol 160 MovieClip "goal" in Frame 65
onClipEvent (load) {
this.timer = 60;
this.timerAmount = 60;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer > (this.timerAmount / 2)) {
this._alpha = this._alpha - 0.4;
} else {
this._alpha = this._alpha + 0.4;
}
if (this.timer == 0) {
this._alpha = 80;
this.timerAmount = random(20) + 40;
this.timer = this.timerAmount;
}
}
Instance of Symbol 236 MovieClip [Slider] "slider" in Frame 65
onClipEvent (load) {
this.pointer.control = false;
this.maxDist = this.rightEnd._x - this.leftEnd._x;
this.pointer._x = _root.powerLoc;
}
onClipEvent (enterFrame) {
if (this.pointer.control == true) {
this.pointer._x = _root._xmouse - this._x;
}
if (this.pointer._x < this.leftEnd._x) {
this.pointer._x = this.leftEnd._x;
}
if (this.pointer._x > this.rightEnd._x) {
this.pointer._x = this.rightEnd._x;
}
onMouseUp = function () {
_root.powerLoc = this.pointer._x;
this.pointer.control = false;
};
this.pointerLeftDist = this.pointer._x - this.leftEnd._x;
this.pointerRightDist = this.rightEnd._x - this.pointer._x;
this.percentage = int(((this.pointerLeftDist / this.maxDist) * 90) + 10);
this.power = int((this.pointerRightDist / this.maxDist) * 100);
this.displayText.text = ("Power - " + this.percentage) + "%";
_root.rocket.blastPwr = ((this.power / 100) * 30) + 20;
}
Instance of Symbol 204 MovieClip [WhiteWash] "whiteWash" in Frame 65
onClipEvent (load) {
this._alpha = 0;
}
Frame 66
stop();
_root.boxDisplayed = false;
_root.levelText._visible = false;
_root.currentLevel++;
_root.setVolume(100);
i = 1;
while (i <= 50) {
_root["smoke" + i].removeMovieClip();
i++;
}
onEnterFrame = function () {
};
Symbol 244 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 245 MovieClip [__Packages.Smoke] Frame 0
class Smoke extends MovieClip
{
var _xscale, _yscale, _alpha;
function Smoke () {
super();
}
function updateStatus() {
_xscale = _xscale + 1.5;
_yscale = _yscale + 1;
_alpha--;
}
}
Symbol 246 MovieClip [__Packages.Rocket] Frame 0
class Rocket extends MovieClip
{
var hit, _rotation, _y, _x, xSpd, ySpd, orgXSpd, orgYSpd, angle, i, collision, gotoAndStop, _yscale, _xscale, _alpha;
function Rocket () {
super();
}
function updateStatus() {
if (_root.launch == false) {
hit = false;
_rotation = 90 + (Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 57.2957795);
if ((_rotation >= 0) && (_rotation <= 90)) {
xSpd = _rotation / blastPwr;
ySpd = (_rotation - 90) / blastPwr;
} else if ((_rotation > 90) && (_rotation <= 180)) {
xSpd = ((_rotation - 180) * -1) / blastPwr;
ySpd = (_rotation - 90) / blastPwr;
} else if ((_rotation < -90) && (_rotation >= -180)) {
xSpd = ((_rotation + 180) * -1) / blastPwr;
ySpd = ((_rotation + 90) * -1) / blastPwr;
} else if ((_rotation < 0) && (_rotation >= -90)) {
xSpd = _rotation / blastPwr;
ySpd = ((_rotation + 90) * -1) / blastPwr;
}
orgXSpd = xSpd;
orgYSpd = ySpd;
}
if (_root.launch == true) {
if (smokeOut > 0) {
smokeTimer--;
if (smokeTimer == 0) {
_root.attachMovie("Smoke" + (random(3) + 1), "smoke" + smokeNum, _root.getNextHighestDepth(), {_x:_x, _y:_y, _rotation:_rotation, onEnterFrame:function () {
this.updateStatus();
}});
smokeTimer = 2;
smokeOut--;
smokeNum++;
}
}
angle = Math.atan2(xSpd, ySpd) * -1;
_rotation = (57.2957795130823 * angle) - 180;
_x = _x + xSpd;
_y = _y + ySpd;
i = 1;
while (i <= 5) {
if (collision.hitTest(_root["planet" + i].collision)) {
gotoAndStop("Explode");
}
if (smokeOut == 0) {
if (collision.hitTest(_root.homeWorld)) {
gotoAndStop("Explode");
}
}
if (collision.hitTest(_root["boost" + i])) {
_root["boost" + i]._x = -500;
_root.fire.start();
smokeOut = 6;
xSpd = xSpd * 2;
ySpd = ySpd * 2;
}
if (collision.hitTest(_root["slowDown" + i])) {
_root["slowDown" + i]._x = -500;
xSpd = xSpd * 0.5;
ySpd = ySpd * 0.5;
}
if (collision.hitTest(_root["asteroids" + i].collision)) {
gotoAndStop("Explode");
}
if (collision.hitTest(_root["blackHole" + i])) {
dead = true;
if (_yscale != 0) {
_xscale = _xscale - 4;
_yscale = _yscale - 4;
_alpha = _alpha - 4;
xSpd = xSpd + ((_root["blackHole" + i]._x - _x) / 30);
ySpd = ySpd + ((_root["blackHole" + i]._y - _y) / 30);
xSpd = xSpd * 0.75;
ySpd = ySpd * 0.75;
}
}
i++;
}
if (collision.hitTest(_root.aimTarget)) {
_root.aimTarget._x = -500;
}
if (collision.hitTest(_root.goal.collision)) {
_root.goalReached = true;
}
if ((((_x < -40) || (_y < -40)) || (_x > 680)) || (_y > 520)) {
dead = true;
}
if (dead == true) {
dieTimer--;
if (_root.bgMusicLvl > 0) {
_root.bgMusicLvl = _root.bgMusicLvl - 1;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if (dieTimer == 0) {
_root[("lvl" + _root.bgMusicNum) + "Music"].stop();
_root.gotoAndPlay("Level" + _root.currentLevel);
}
}
}
}
var smokeNum = 1;
var smokeOut = 12;
var smokeTimer = 3;
var dead = false;
var dieTimer = 60;
var blastPwr = 40;
}
Symbol 247 MovieClip [__Packages.Planet] Frame 0
class Planet extends MovieClip
{
var mass, _width, xDist, _x, yDist, _y, dist, force;
function Planet () {
super();
mass = _width / 40;
}
function updateStatus() {
xDist = _root.rocket._x - _x;
yDist = _root.rocket._y - _y;
dist = Math.sqrt((xDist * xDist) + (yDist * yDist));
force = mass / dist;
if (_x > _root.rocket._x) {
_root.rocket.xSpd = _root.rocket.xSpd + force;
} else {
_root.rocket.xSpd = _root.rocket.xSpd - force;
}
if (_y > _root.rocket._y) {
_root.rocket.ySpd = _root.rocket.ySpd + force;
} else {
_root.rocket.ySpd = _root.rocket.ySpd - force;
}
}
var grav = 0.1;
}
Symbol 16 MovieClip [Smoke3] Frame 1
#initclip 7
Object.registerClass("Smoke3", Smoke);
#endinitclip
Symbol 18 MovieClip [Smoke2] Frame 1
#initclip 5
Object.registerClass("Smoke2", Smoke);
#endinitclip
Symbol 20 MovieClip [Smoke1] Frame 1
#initclip 6
Object.registerClass("Smoke1", Smoke);
#endinitclip
Symbol 32 MovieClip Frame 851
onEnterFrame = function () {
this._alpha = this._alpha - 2;
};
Symbol 32 MovieClip Frame 902
_root.play();
Symbol 35 Button
on (release) {
_root.gotoAndPlay(5);
}
Symbol 89 MovieClip Frame 1
this.sponsorText._alpha = 0;
onEnterFrame = function () {
this.sponsorText._alpha = this.sponsorText._alpha + 2;
};
Symbol 89 MovieClip Frame 100
onEnterFrame = function () {
this.sponsorText._alpha = this.sponsorText._alpha - 2;
};
Symbol 89 MovieClip Frame 300
this.grannyText._alpha = 0;
onEnterFrame = function () {
this.grannyText._alpha = this.grannyText._alpha + 2;
};
Symbol 89 MovieClip Frame 400
onEnterFrame = function () {
this.grannyText._alpha = this.grannyText._alpha - 2;
};
Symbol 89 MovieClip Frame 540
_root.play();
Symbol 97 MovieClip Frame 15
stop();
Symbol 101 Button
on (release) {
_root.introMusic.stop();
_root.gotoAndPlay("Level1");
}
Symbol 103 Button
on (release) {
_root.introMusic.stop();
_root.gotoAndStop("Levels");
}
Symbol 108 MovieClip Frame 180
this.startButton._alpha = 0;
this.selectLevel._alpha = 0;
onEnterFrame = function () {
if (this.startButton._alpha < 60) {
this.startButton._alpha = this.startButton._alpha + 2;
this.selectLevel._alpha = this.selectLevel._alpha + 2;
}
};
Instance of Symbol 106 MovieClip [Background] in Symbol 108 MovieClip Frame 210
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 90) {
this._alpha++;
}
this._x--;
if (this._x <= -960) {
this._x = 320;
}
}
Instance of Symbol 106 MovieClip [Background] in Symbol 108 MovieClip Frame 210
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 90) {
this._alpha++;
}
this._x--;
if (this._x <= -960) {
this._x = 320;
}
}
Symbol 108 MovieClip Frame 270
stop();
_root.creditTimer = 150;
_root.creditPlace = 0;
onEnterFrame = function () {
_root.creditTimer--;
if (_root.creditTimer == 0) {
_root.creditPlace++;
switch (_root.creditPlace) {
case 1 :
this.credits.text = "Art Direction and Animation\nNick Wozniak";
break;
case 2 :
this.credits.text = "Testing\nAdam Symmonds";
break;
case 3 :
this.credits.text = "Testing\nErica Mariano";
break;
case 4 :
this.credits.text = "Testing\nh20wlkr";
break;
case 5 :
this.credits.text = "Special Thanks\nVoldi Way";
break;
case 6 :
this.credits.text = "Special Thanks\nAlbino Black Sheep Members";
break;
case 7 :
this.credits.text = "";
}
_root.creditTimer = 150;
}
};
Symbol 132 Button
on (release) {
_root.currentLevel = 1;
_root.gotoAndPlay("Level1");
}
Symbol 133 Button
on (release) {
_root.currentLevel = 2;
_root.gotoAndPlay("Level2");
}
Symbol 134 Button
on (release) {
_root.currentLevel = 3;
_root.gotoAndPlay("Level3");
}
Symbol 135 Button
on (release) {
_root.currentLevel = 4;
_root.gotoAndPlay("Level4");
}
Symbol 136 Button
on (release) {
_root.currentLevel = 5;
_root.gotoAndPlay("Level5");
}
Symbol 137 Button
on (release) {
_root.currentLevel = 6;
_root.gotoAndPlay("Level6");
}
Symbol 138 Button
on (release) {
_root.currentLevel = 7;
_root.gotoAndPlay("Level7");
}
Symbol 139 Button
on (release) {
_root.currentLevel = 8;
_root.gotoAndPlay("Level8");
}
Symbol 140 Button
on (release) {
_root.currentLevel = 9;
_root.gotoAndPlay("Level9");
}
Symbol 141 Button
on (release) {
_root.currentLevel = 10;
_root.gotoAndPlay("Level10");
}
Symbol 142 Button
on (release) {
_root.currentLevel = 11;
_root.gotoAndPlay("Level11");
}
Symbol 143 Button
on (release) {
_root.currentLevel = 12;
_root.gotoAndPlay("Level12");
}
Symbol 144 Button
on (release) {
_root.currentLevel = 13;
_root.gotoAndPlay("Level13");
}
Symbol 145 Button
on (release) {
_root.currentLevel = 14;
_root.gotoAndPlay("Level14");
}
Symbol 146 Button
on (release) {
_root.currentLevel = 15;
_root.gotoAndPlay("Level15");
}
Symbol 147 Button
on (release) {
_root.currentLevel = 16;
_root.gotoAndPlay("Level16");
}
Symbol 148 Button
on (release) {
_root.currentLevel = 17;
_root.gotoAndPlay("Level17");
}
Symbol 149 Button
on (release) {
_root.currentLevel = 19;
_root.gotoAndPlay("Level19");
}
Symbol 150 Button
on (release) {
_root.currentLevel = 20;
_root.gotoAndPlay("Level20");
}
Symbol 151 Button
on (release) {
_root.currentLevel = 18;
_root.gotoAndPlay("Level18");
}
Symbol 160 MovieClip Frame 1
this._alpha = 80;
Instance of Symbol 159 MovieClip "collision" in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 164 Button
on (release) {
_root[("lvl" + _root.bgMusicNum) + "Music"].stop();
_root.gotoAndPlay("Level" + _root.currentLevel);
}
Symbol 193 MovieClip [Explosion] Frame 20
stop();
_root.rocket.dead = true;
Symbol 194 MovieClip [Rocket] Frame 1
#initclip 8
Object.registerClass("Rocket", Rocket);
#endinitclip
stop();
onEnterFrame = function () {
this.updateStatus();
};
Instance of Symbol 172 MovieClip [ShipCollision] "collision" in Symbol 194 MovieClip [Rocket] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 194 MovieClip [Rocket] Frame 2
stop();
this.dead = true;
Symbol 202 Button
on (release) {
this.closeButton._visible = false;
this.play();
}
Symbol 203 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.boxDisplayed != true) {
play();
}
};
Symbol 203 MovieClip Frame 2
_root.boxDisplayed = true;
onEnterFrame = function () {
};
Symbol 203 MovieClip Frame 15
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
this.closeButton._visible = false;
this.play();
}
};
Symbol 203 MovieClip Frame 16
onEnterFrame = function () {
};
Symbol 203 MovieClip Frame 30
stop();
_root.ready = true;
Instance of Symbol 207 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 50;
this.zoomTimes = 0;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
if (_root.bgMusicLvl > 0) {
_root.bgMusicLvl = _root.bgMusicLvl - 0.3;
_root[("lvl" + _root.bgMusicNum) + "Music"].setVolume(_root.bgMusicLvl);
}
if (this._xscale == 800) {
this._xscale = 100;
this._yscale = 100;
this.zoomTimes++;
}
if (this.zoomTimes >= 3) {
this._alpha--;
_root.wormHole.hole.alpha--;
}
if (this._alpha == 0) {
_root[("lvl" + _root.bgMusicNum) + "Music"].stop();
_root.bgMusicNum++;
if (_root.bgMusicNum > 3) {
_root.bgMusicNum = 1;
}
_root.play();
}
}
Symbol 215 MovieClip Frame 1
this._visible = false;
Symbol 216 MovieClip [Jupiter] Frame 1
#initclip 10
Object.registerClass("Jupiter", Planet);
#endinitclip
onEnterFrame = function () {
this.updateStatus();
};
Symbol 218 MovieClip [Venus] Frame 1
#initclip 9
Object.registerClass("Venus", Planet);
#endinitclip
onEnterFrame = function () {
this.updateStatus();
};
Symbol 220 MovieClip [GrayPlanet] Frame 1
#initclip 12
Object.registerClass("GrayPlanet", Planet);
#endinitclip
onEnterFrame = function () {
this.updateStatus();
};
Symbol 221 MovieClip [LightBluePlanet] Frame 1
#initclip 11
Object.registerClass("LightBluePlanet", Planet);
#endinitclip
onEnterFrame = function () {
this.updateStatus();
};
Symbol 223 MovieClip [Fuel] Frame 1
if (this.loadItem != true) {
this.loadItem = true;
this.gotoAndPlay(random(30) + 1);
}
Symbol 224 MovieClip [RedPlanet] Frame 1
#initclip 13
Object.registerClass("RedPlanet", Planet);
#endinitclip
onEnterFrame = function () {
this.updateStatus();
};
Instance of Symbol 225 MovieClip [AsteroidCollision] "collision" in Symbol 227 MovieClip [Asteroids] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 236 MovieClip [Slider] Frame 1
stop();
this.pointer._x = _root.powerLoc;
Instance of Symbol 234 MovieClip "pointer" in Symbol 236 MovieClip [Slider] Frame 1
on (press) {
this.control = true;
}
Symbol 242 Button
on (release) {
_root.gotoAndPlay(4);
}
Symbol 243 MovieClip Frame 507
stop();
this.newGame._alpha = 0;
onEnterFrame = function () {
this.newGame._alpha = this.newGame._alpha + 2;
};