Section 1
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 3
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 4
//bgProp_3 (spaceRescue_fla.bgProp_3)
package spaceRescue_fla {
import flash.display.*;
public dynamic class bgProp_3 extends MovieClip {
public function bgProp_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 5
//btnIlli_52 (spaceRescue_fla.btnIlli_52)
package spaceRescue_fla {
import flash.display.*;
public dynamic class btnIlli_52 extends MovieClip {
public function btnIlli_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 6
//btnKel_51 (spaceRescue_fla.btnKel_51)
package spaceRescue_fla {
import flash.display.*;
public dynamic class btnKel_51 extends MovieClip {
public function btnKel_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 7
//char1_24 (spaceRescue_fla.char1_24)
package spaceRescue_fla {
import flash.display.*;
public dynamic class char1_24 extends MovieClip {
public function char1_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 8
//explosion_26 (spaceRescue_fla.explosion_26)
package spaceRescue_fla {
import flash.display.*;
public dynamic class explosion_26 extends MovieClip {
public function explosion_26(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package spaceRescue_fla
Section 9
//kelseyArm_10 (spaceRescue_fla.kelseyArm_10)
package spaceRescue_fla {
import flash.display.*;
public dynamic class kelseyArm_10 extends MovieClip {
public function kelseyArm_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 10
//kelseyFoot_9 (spaceRescue_fla.kelseyFoot_9)
package spaceRescue_fla {
import flash.display.*;
public dynamic class kelseyFoot_9 extends MovieClip {
public function kelseyFoot_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 11
//kelseySprite_11 (spaceRescue_fla.kelseySprite_11)
package spaceRescue_fla {
import flash.display.*;
public dynamic class kelseySprite_11 extends MovieClip {
public function kelseySprite_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 12
//MainTimeline (spaceRescue_fla.MainTimeline)
package spaceRescue_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var winIlli:MovieClip;
public var lvlComplete:MovieClip;
public var barDmg:MovieClip;
public var fadeBlack:MovieClip;
public var btnIntroStart:introStartButton;
public var scene1:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var coverIlli:MovieClip;
public var scene2:MovieClip;
public var barFuel:MovieClip;
public var scene3:MovieClip;
public var btnQ:MovieClip;
public var scene4:MovieClip;
public var hoover:MovieClip;
public var bgProp:MovieClip;
public var missionText:MovieClip;
public var btnR:MovieClip;
public var btnA:MovieClip;
public var scene5:MovieClip;
public var wndStart:MovieClip;
public var btnS:MovieClip;
public var winText:MovieClip;
public var explosion:MovieClip;
public var btnD:MovieClip;
public var wndStartOver:MovieClip;
public var btnE:MovieClip;
public var coverKelsey:MovieClip;
public var winKelsey:MovieClip;
public var btnF:MovieClip;
public var btnW:MovieClip;
public var kelSilhouette;
public var illiSilhouette;
public var kelPic;
public var illiPic;
public var bWin;
public var iLevel;
public var currentChar;
public var gameMode;
public var bPaused;
public var bLightsOn;
public var bPlatform;
public var bTankStation;
public var damage;
public var fuel;
public var tweenFrontBurner:Tween;
public var tweenRearBurner:Tween;
public var tweenBackBurner:Tween;
public var tweenMainBurner:Tween;
public var tweenMissionText:Tween;
public var tweenFadeBlack:Tween;
public var tweenCover:Tween;
public var xThrust;
public var yThrust;
public var myInterval;
public var keyArray:Array;
public var bLanded;
public var sceneArr:Array;
public var xDelta;
public var iTimeTillGameOver;
public var iPhase;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
var _local2:* = this.loaderInfo.url;
var _local3:* = false;
if (_local2.search("file:") != -1){
_local3 = true;
};
if (_local2.search("deviantart.net") != -1){
_local3 = true;
};
if (_local3 == true){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
};
}
public function startGame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function initCover(_arg1):void{
var _local2:BlurFilter = new BlurFilter();
hoover.flashlight.filters = [_local2];
var _local3:GlowFilter = new GlowFilter();
_local3.quality = 2;
_local3.color = _arg1;
_local3.knockout = true;
_local3.blurX = 15;
_local3.blurY = 15;
hoover.cover.alpha = 0.8;
hoover.cover.filters = [_local3];
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:*;
if (_arg1.target.name == "btnA"){
keyArray[0] = 1;
} else {
if (_arg1.target.name == "btnS"){
keyArray[4] = 1;
} else {
if (_arg1.target.name == "btnZ"){
keyArray[5] = 1;
} else {
if (_arg1.target.name == "btnW"){
keyArray[3] = 1;
} else {
if (_arg1.target.name == "btnS"){
keyArray[4] = 1;
} else {
if (_arg1.target.name == "btnD"){
keyArray[6] = 1;
} else {
if (_arg1.target.name == "btnR"){
keyArray[9] = 1;
} else {
if (_arg1.target.name == "btnF"){
keyArray[10] = 1;
} else {
if (_arg1.target.name == "btnV"){
keyArray[11] = 1;
} else {
if (_arg1.target.name == "btnQ"){
keyArray[12] = 1;
} else {
if (_arg1.target.name == "btnE"){
keyArray[13] = 1;
} else {
if (_arg1.target.name == "btnPrevious"){
_local2 = (wndStart.selectedVehicle.currentFrame - 1);
if (_local2 < 1){
_local2 = 7;
};
wndStart.selectedVehicle.gotoAndStop(_local2);
} else {
if (_arg1.target.name == "btnNext"){
_local2 = (wndStart.selectedVehicle.currentFrame + 1);
if (_local2 > 7){
_local2 = 1;
};
wndStart.selectedVehicle.gotoAndStop(_local2);
} else {
if (_arg1.target.name == "btnIlli"){
wndStart.btnIlli.gotoAndStop(2);
wndStart.btnKel.gotoAndStop(1);
wndStart.btnStart.alpha = 1;
gameMode = 2;
wndStart.selText.gotoAndStop(3);
hoover.kelseySprite.gotoAndStop(2);
hoover.kelseyArm.gotoAndStop(2);
hoover.kelseyFoot.gotoAndStop(2);
hoover.visitor.alpha = 0;
hoover.web.alpha = 0;
missionText.gotoAndStop(3);
sceneArr[0].cocoon.alpha = 1;
} else {
if (_arg1.target.name == "btnStartOver"){
clearInterval(myInterval);
stage.removeEventListener(MouseEvent.CLICK, mouseClicked);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
gotoAndStop(2);
} else {
if (_arg1.target.name == "btnKel"){
wndStart.btnKel.gotoAndStop(2);
wndStart.btnIlli.gotoAndStop(1);
wndStart.btnStart.alpha = 1;
gameMode = 1;
wndStart.selText.gotoAndStop(2);
hoover.kelseySprite.gotoAndStop(1);
hoover.kelseyArm.gotoAndStop(1);
hoover.kelseyFoot.gotoAndStop(1);
hoover.visitor.alpha = 1;
hoover.web.alpha = 0.8;
missionText.gotoAndStop(1);
sceneArr[0].cocoon.alpha = 0;
} else {
if ((((_arg1.target.name == "btnStart")) && ((wndStart.btnStart.alpha == 1)))){
setVehicle(wndStart.selectedVehicle.currentFrame);
hoover.cover.alpha = 0;
wndStart.alpha = 0;
wndStart.y = 1000;
hoover.alpha = 1;
tweenMissionText = new Tween(missionText, "alpha", Strong.easeIn, 1, 0, 5, true);
tweenMissionText.FPS = 40;
tweenFadeBlack = new Tween(fadeBlack, "alpha", Strong.easeIn, 1, 0, 0.2, true);
tweenFadeBlack.FPS = 40;
} else {
if (_arg1.target.name == "btnBegin"){
lvlComplete.y = -1000;
lvlComplete.alpha = 0;
tweenFadeBlack = new Tween(fadeBlack, "alpha", Strong.easeIn, 1, 0, 0.2, true);
tweenFadeBlack.FPS = 40;
damage = 0;
fuel = 400;
xThrust = 0;
yThrust = 0;
bLightsOn = false;
bPlatform = false;
bTankStation = false;
bLanded = true;
iPhase = 0;
hoover.stayBurner.alpha = 0;
hoover.flashlight.alpha = 0;
hoover.cover.alpha = 0;
bPaused = false;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function keyPressed(_arg1:KeyboardEvent):void{
var _local2:* = _arg1.keyCode;
if (_local2 == 65){
keyArray[0] = 1;
} else {
if (_local2 == 83){
keyArray[4] = 1;
} else {
if (_local2 == 90){
keyArray[5] = 1;
} else {
if (_local2 == 87){
keyArray[3] = 1;
} else {
if (_local2 == 88){
keyArray[5] = 1;
} else {
if (_local2 == 68){
keyArray[6] = 1;
} else {
if (_local2 == 67){
keyArray[5] = 1;
} else {
if (_local2 == 82){
keyArray[9] = 1;
} else {
if ((((_local2 == 70)) || ((_local2 == 32)))){
keyArray[10] = 1;
} else {
if (_local2 == 86){
keyArray[11] = 1;
} else {
if (_local2 == 81){
keyArray[12] = 1;
} else {
if (_local2 == 69){
keyArray[13] = 1;
};
};
};
};
};
};
};
};
};
};
};
};
}
public function myTimer():void{
if (bPaused == false){
moveScenery(xThrust);
hoover.y = (hoover.y + yThrust);
if (yThrust > 20){
yThrust = 20;
};
if (yThrust < -20){
yThrust = -20;
};
if (xThrust > 20){
xThrust = 20;
};
if (xThrust < -40){
xThrust = -40;
};
if (bLightsOn == true){
hoover.flashlight.alpha = ((Math.floor((Math.random() * 5)) + 75) / 100);
};
handleKeyPresses();
if (yThrust < 0){
yThrust++;
};
if (bLanded == false){
if (hoover.stayBurner.alpha == 0){
yThrust = (yThrust + 1);
} else {
if (yThrust > 0){
yThrust--;
};
};
if (xThrust > 0){
xThrust--;
} else {
if (xThrust < 0){
xThrust++;
};
};
};
if (hoover.rotation > 0){
hoover.rotation--;
} else {
if (hoover.rotation < 0){
hoover.rotation++;
};
};
if (bLanded == false){
checkCollision();
};
if (hoover.stayBurner.alpha > 0.7){
fuel = (fuel - 0.1);
};
if (fuel < 1){
fuel = 0;
hoover.stayBurner.alpha = 0;
iTimeTillGameOver++;
if (iTimeTillGameOver > 20){
gameOver();
};
};
if ((((((bTankStation == true)) && ((hoover.cover.alpha == 0)))) && ((fuel < 400)))){
fuel = (fuel + 4);
if (fuel > 400){
fuel = 400;
};
};
if (hoover.y > 750){
hoover.y = 750;
};
if (hoover.y < 0){
hoover.y = 0;
};
updateGauges();
if (damage >= 100){
gameOver();
};
if ((((((((bLanded == true)) && ((bPlatform == true)))) && ((hoover.cover.alpha == 0)))) && ((iPhase == 0)))){
iPhase = 1;
if (gameMode == 1){
missionText.gotoAndStop(2);
tweenMissionText = new Tween(missionText, "alpha", Strong.easeIn, 1, 0, 5, true);
tweenMissionText.FPS = 40;
hoover.web.alpha = 0;
hoover.visitor.alpha = 0;
sceneArr[0].cocoon.alpha = 1;
} else {
missionText.gotoAndStop(4);
tweenMissionText = new Tween(missionText, "alpha", Strong.easeIn, 1, 0, 5, true);
tweenMissionText.FPS = 40;
hoover.visitor.alpha = 1;
sceneArr[0].cocoon.alpha = 0;
};
};
};
}
public function handleKeyPresses():void{
if ((((((keyArray[0] == 0)) && ((keyArray[3] == 0)))) && ((keyArray[6] == 0)))){
hoover.kelseyArm.rotation = 0;
};
if ((((((keyArray[0] == 1)) && ((hoover.cover.alpha > 0.7)))) && ((fuel > 0)))){
bLanded = false;
bPlatform = false;
bTankStation = false;
if (hoover.frontBurner.currentFrame > 9){
hoover.frontBurner.gotoAndPlay(1);
};
tweenFrontBurner.stop();
tweenFrontBurner = new Tween(hoover.frontBurner, "alpha", Strong.easeIn, 1, 0, 0.5, true);
tweenFrontBurner.FPS = 40;
keyArray[0] = 0;
if (keyArray[4] == 1){
tweenRearBurner.stop();
tweenRearBurner = new Tween(hoover.rearBurner, "alpha", Strong.easeIn, hoover.rearBurner.alpha, 0, 0.5, true);
tweenRearBurner.FPS = 40;
};
if (hoover.rotation < 20){
hoover.rotation = (hoover.rotation + 3);
};
xThrust = (xThrust + 2);
yThrust = (yThrust - 2);
hoover.kelseyArm.rotation = -5;
fuel--;
};
if ((((((keyArray[6] == 1)) && ((hoover.cover.alpha > 0.7)))) && ((fuel > 0)))){
bLanded = false;
bPlatform = false;
bTankStation = false;
if (hoover.rearBurner.currentFrame > 9){
hoover.rearBurner.gotoAndPlay(1);
};
tweenRearBurner.stop();
tweenRearBurner = new Tween(hoover.rearBurner, "alpha", Strong.easeIn, 1, 0, 0.5, true);
tweenRearBurner.FPS = 40;
keyArray[6] = 0;
if (keyArray[4] == 1){
tweenFrontBurner.stop();
tweenFrontBurner = new Tween(hoover.frontBurner, "alpha", Strong.easeIn, hoover.frontBurner.alpha, 0, 0.5, true);
tweenFrontBurner.FPS = 40;
};
if (hoover.rotation > -20){
hoover.rotation = (hoover.rotation - 3);
};
xThrust = (xThrust - 2);
yThrust = (yThrust - 2);
hoover.kelseyArm.rotation = -5;
fuel--;
};
if ((((((keyArray[3] == 1)) && ((hoover.cover.alpha > 0.7)))) && ((fuel > 0)))){
bLanded = false;
bPlatform = false;
bTankStation = false;
if (hoover.frontBurner.currentFrame > 9){
hoover.frontBurner.gotoAndPlay(1);
};
if (hoover.rearBurner.currentFrame > 9){
hoover.rearBurner.gotoAndPlay(1);
};
tweenRearBurner.stop();
tweenRearBurner = new Tween(hoover.rearBurner, "alpha", Strong.easeIn, 1, 0, 0.5, true);
tweenRearBurner.FPS = 40;
tweenFrontBurner.stop();
tweenFrontBurner = new Tween(hoover.frontBurner, "alpha", Strong.easeIn, 1, 0, 0.5, true);
tweenFrontBurner.FPS = 40;
keyArray[3] = 0;
yThrust = (yThrust - 5);
hoover.kelseyArm.rotation = -10;
if (hoover.rotation < -9){
xThrust = (xThrust - 2);
} else {
if (hoover.rotation < 0){
xThrust = (xThrust - 1);
} else {
if (hoover.rotation > 0){
xThrust = (xThrust + 1);
} else {
if (hoover.rotation > 9){
xThrust = (xThrust + 2);
};
};
};
};
fuel = (fuel - 2);
};
if ((((keyArray[9] == 0)) && ((keyArray[10] == 0)))){
hoover.kelseyFoot.rotation = 5;
};
if (keyArray[9] == 1){
if ((((hoover.cover.alpha > 0.7)) && ((fuel > 0)))){
bLanded = false;
keyArray[9] = 0;
tweenBackBurner.stop();
tweenBackBurner = new Tween(hoover.backBurner, "alpha", Strong.easeIn, 1, 0, 0.5, true);
tweenBackBurner.FPS = 40;
tweenMainBurner.stop();
tweenMainBurner = new Tween(hoover.mainBurner, "alpha", Strong.easeIn, 1, 0, 0.5, true);
tweenMainBurner.FPS = 40;
xThrust = (xThrust - 40);
fuel = (fuel - 2);
hoover.kelseyFoot.rotation = -10;
};
};
if (keyArray[10] == 1){
if ((((hoover.cover.alpha > 0.7)) && ((fuel > 0)))){
bLanded = false;
keyArray[10] = 0;
tweenMainBurner.stop();
tweenMainBurner = new Tween(hoover.mainBurner, "alpha", Strong.easeIn, 1, 0, 0.5, true);
tweenMainBurner.FPS = 40;
xThrust = (xThrust - 10);
fuel = (fuel - 1);
hoover.kelseyFoot.rotation = -5;
};
};
if ((((keyArray[4] == 1)) || ((keyArray[5] == 1)))){
if ((((hoover.cover.alpha > 0.7)) && ((fuel > 0)))){
if (hoover.stayBurner.alpha == 1){
hoover.stayBurner.alpha = 0;
} else {
hoover.stayBurner.alpha = 1;
};
};
keyArray[4] = 0;
keyArray[5] = 0;
};
if (keyArray[12] == 1){
keyArray[12] = 0;
if (hoover.flashlight.alpha > 0.5){
bLightsOn = false;
hoover.flashlight.alpha = 0;
} else {
hoover.flashlight.alpha = 0.75;
bLightsOn = true;
};
};
if (keyArray[13] == 1){
keyArray[13] = 0;
if (bLanded == true){
keyArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
if (hoover.cover.alpha > 0.5){
tweenCover.stop();
tweenCover = new Tween(hoover.cover, "alpha", Strong.easeOut, hoover.cover.alpha, 0, 2, true);
tweenCover.FPS = 40;
} else {
tweenCover.stop();
tweenCover = new Tween(hoover.cover, "alpha", Strong.easeOut, hoover.cover.alpha, 0.8, 2, true);
tweenCover.FPS = 40;
};
};
};
}
public function checkCollision():void{
var _local1:* = 0;
var _local2:* = false;
if (sceneArr[0].cave.hitTestPoint((hoover.x + 12), (hoover.y - 87), true)){
explosion.x = (hoover.x + 12);
explosion.y = (hoover.y - 87);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust + 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x + 49), (hoover.y - 84), true)){
explosion.x = (hoover.x + 49);
explosion.y = (hoover.y - 84);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust + 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x + 97), (hoover.y - 45), true)){
explosion.x = (hoover.x + 97);
explosion.y = (hoover.y - 45);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust + 10));
xThrust = -(xThrust);
moveScenery((xThrust - 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x + 100), (hoover.y - 14), true)){
explosion.x = (hoover.x + 100);
explosion.y = (hoover.y - 14);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
xThrust = -(xThrust);
moveScenery((xThrust - 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x + 97), (hoover.y + 15), true)){
explosion.x = (hoover.x + 97);
explosion.y = (hoover.y + 15);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust - 10));
xThrust = -(xThrust);
moveScenery((xThrust - 10));
} else {
if (((sceneArr[0].cave.hitTestPoint((hoover.x - 63), (hoover.y + 31), true)) && (sceneArr[0].cave.hitTestPoint((hoover.x + 53), (hoover.y + 31), true)))){
if ((Math.abs(yThrust) + Math.abs(xThrust)) > 9){
explosion.x = (hoover.x - 63);
explosion.y = (hoover.y + 31);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust - 10));
} else {
if (yThrust > 0){
_local2 = false;
_local1 = 0;
while (_local1 < 20) {
if (_local2 == false){
if (((sceneArr[0].cave.hitTestPoint((hoover.x - 63), (hoover.y + 31), false)) && (sceneArr[0].cave.hitTestPoint((hoover.x + 53), ((hoover.y + 30) - _local1), false)))){
_local2 = true;
bLanded = true;
hoover.y = (hoover.y - _local1);
yThrust = 0;
xThrust = 0;
};
};
_local1++;
};
};
};
} else {
if (((sceneArr[0].platform.hitTestPoint((hoover.x - 63), (hoover.y + 31), true)) && (sceneArr[0].platform.hitTestPoint((hoover.x + 53), (hoover.y + 31), true)))){
if ((Math.abs(yThrust) + Math.abs(xThrust)) > 9){
explosion.x = (hoover.x - 63);
explosion.y = (hoover.y + 31);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust - 10));
} else {
if (yThrust > 0){
_local2 = false;
_local1 = 0;
while (_local1 < 20) {
if (_local2 == false){
if (((sceneArr[0].platform.hitTestPoint((hoover.x - 63), (hoover.y + 31), false)) && (sceneArr[0].platform.hitTestPoint((hoover.x + 53), ((hoover.y + 30) - _local1), false)))){
_local2 = true;
bLanded = true;
hoover.y = (hoover.y - _local1);
yThrust = 0;
xThrust = 0;
bPlatform = true;
};
};
_local1++;
};
};
};
} else {
if (((sceneArr[0].tankStation.hitTestPoint((hoover.x - 63), (hoover.y + 31), true)) && (sceneArr[0].tankStation.hitTestPoint((hoover.x + 53), (hoover.y + 31), true)))){
if ((Math.abs(yThrust) + Math.abs(xThrust)) > 9){
explosion.x = (hoover.x - 63);
explosion.y = (hoover.y + 31);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust - 10));
} else {
if (yThrust > 0){
_local2 = false;
_local1 = 0;
while (_local1 < 20) {
if (_local2 == false){
if (((sceneArr[0].tankStation.hitTestPoint((hoover.x - 63), (hoover.y + 31), false)) && (sceneArr[0].tankStation.hitTestPoint((hoover.x + 53), ((hoover.y + 30) - _local1), false)))){
_local2 = true;
bLanded = true;
hoover.y = (hoover.y - _local1);
yThrust = 0;
xThrust = 0;
bTankStation = true;
};
};
_local1++;
};
};
};
} else {
if (sceneArr[0].cave.hitTestPoint(hoover.x, (hoover.y + 24), true)){
explosion.x = hoover.x;
explosion.y = (hoover.y + 24);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust - 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x + 77), (hoover.y + 22), true)){
explosion.x = (hoover.x + 77);
explosion.y = (hoover.y + 22);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust - 10));
xThrust = -(xThrust);
moveScenery((xThrust - 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x - 90), (hoover.y + 22), true)){
explosion.x = (hoover.x - 90);
explosion.y = (hoover.y + 22);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust - 10));
xThrust = -(xThrust);
moveScenery((xThrust + 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x - 95), (hoover.y + 2), true)){
explosion.x = (hoover.x - 95);
explosion.y = (hoover.y + 2);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
xThrust = -(xThrust);
moveScenery((xThrust + 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x - 71), (hoover.y - 21), true)){
explosion.x = (hoover.x - 71);
explosion.y = (hoover.y - 21);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust + 10));
xThrust = -(xThrust);
moveScenery((xThrust + 10));
} else {
if (sceneArr[0].cave.hitTestPoint((hoover.x - 31), (hoover.y - 68), true)){
explosion.x = (hoover.x - 31);
explosion.y = (hoover.y - 68);
explosion.gotoAndPlay(1);
damage = ((damage + Math.abs(yThrust)) + Math.abs(xThrust));
yThrust = -(yThrust);
hoover.y = (hoover.y + (yThrust + 10));
xThrust = -(xThrust);
moveScenery((xThrust + 10));
} else {
if (sceneArr[0].exitLine.hitTestPoint((hoover.x - 95), (hoover.y + 2), true)){
if ((((bPaused == false)) && ((iPhase == 1)))){
bPaused = true;
tweenFadeBlack = new Tween(fadeBlack, "alpha", Strong.easeIn, 0, 1, 0.5, true);
tweenFadeBlack.FPS = 40;
keyArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
introLevel();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function moveScenery(_arg1):void{
sceneArr[0].x = (sceneArr[0].x - _arg1);
xDelta = (xDelta - _arg1);
}
public function updateGauges():void{
if (damage > 100){
damage = 100;
};
if (fuel < 0){
fuel = 0;
};
barDmg.bar.scaleX = (damage / 100);
barDmg.txtPercent.text = (damage + "%");
barFuel.bar.scaleX = (fuel / 400);
barFuel.txtPercent.text = (Math.floor((fuel / 4)) + "%");
}
public function gameOver():void{
bPaused = true;
if (gameMode == 1){
kelSilhouette = 0;
illiSilhouette = 1;
kelPic = 0;
illiPic = 1;
} else {
kelSilhouette = 1;
illiSilhouette = 0;
kelPic = 1;
illiPic = 0;
};
gotoAndStop(3);
}
public function setVehicle(_arg1):void{
if (_arg1 == 1){
hoover.vehicle.gotoAndStop(1);
initCover(16755455);
} else {
if (_arg1 == 2){
hoover.vehicle.gotoAndStop(2);
initCover(11184895);
} else {
if (_arg1 == 3){
hoover.vehicle.gotoAndStop(3);
initCover(16755370);
} else {
if (_arg1 == 4){
hoover.vehicle.gotoAndStop(4);
initCover(11206570);
} else {
if (_arg1 == 5){
hoover.vehicle.gotoAndStop(5);
initCover(16777130);
} else {
if (_arg1 == 6){
hoover.vehicle.gotoAndStop(6);
initCover(0xFFFFFF);
} else {
if (_arg1 == 7){
hoover.vehicle.gotoAndStop(7);
initCover(0xFFFFFF);
};
};
};
};
};
};
};
}
public function selectChar(_arg1):void{
currentChar = _arg1;
sceneArr[0].cocoon.char.gotoAndStop(currentChar);
hoover.visitor.gotoAndStop(currentChar);
}
public function introLevel():void{
var _local1:* = ["Archetla Alpha", "Archetla Beta", "Norr", "Marchek", "Mebuma", "Nop"];
var _local2:* = ["", "Jen", "Amanda", "Jen", "Amanda", "Jen", ""];
var _local3:* = [1, 2, 3, 4, 5, 5];
if (iLevel == 5){
bPaused = true;
if (gameMode == 1){
kelSilhouette = 0;
illiSilhouette = 0;
kelPic = 1;
illiPic = 0;
bWin = true;
} else {
kelSilhouette = 0;
illiSilhouette = 0;
kelPic = 0;
illiPic = 1;
bWin = true;
};
gotoAndStop(3);
} else {
iLevel++;
lvlComplete.stars.gotoAndStop(_local3[iLevel]);
lvlComplete.txtPlanet.text = _local1[iLevel];
if (gameMode == 1){
if (iLevel == 1){
lvlComplete.txt.text = "Awesome! You have stored Jen away, hopefully far enough out of Illionore's reach. Now, Let's go to another place to hide away Amanda...";
} else {
if (iLevel == 2){
lvlComplete.txt.text = "Yay, Amanda is in a safe location... or at least, HOPEFULLY, because upon arrival back home you notice that Illionore has rescued Jen while you were flying around with Amanda... time to go find a BETTER place to hide Jen!";
} else {
if (iLevel == 3){
lvlComplete.txt.text = "Jen is hidden again... but guess what?! Illionore has freed Amanda again! This isn't going anywhere! Really, this time, you will bring Amanda away to a place Illionore can't possibly get her out from again! She'll see!";
} else {
if (iLevel == 4){
lvlComplete.txt.text = "I am unstoppable! I know it! I am going to bring Jen to a place where Illionore won't find her. This time for real! I'm going to win! Kelsey ALWAYS wins! Teeheehee!";
};
};
};
};
} else {
if (iLevel == 1){
lvlComplete.txt.text = "Great! You have found Jen and brought her back home... however... upon arriving back home Amanda has gone missing...";
} else {
if (iLevel == 2){
lvlComplete.txt.text = "Amanda is back home again.... but... maybe you should have guessed it already... while you were retrieving Amanda, Kelsey ran off with Jen again. Time to go get her back!";
} else {
if (iLevel == 3){
lvlComplete.txt.text = "It was a bit trickier to save Jen from here, but you succeeded! As you fly back home, you can't keep a certain thought out of your head... 'What will she do this time?' - and indeed, when you arrive home, you find out that Amanda is gone again. You're going nowhere with this!";
} else {
if (iLevel == 4){
lvlComplete.txt.text = "AArgh! That was the last straw! I just brought Amanda back and now Jen is gone AGAIN! This time I am hiding Jen myself, so Kelsey can't abduct her again. I swear I will bring Jen back, too! And make Kelsey pay for it afterwards!";
};
};
};
};
};
hoover.rotation = 0;
if (iLevel == 1){
sceneArr[0].y = 1500;
sceneArr[0] = scene2;
sceneArr[0].y = -20;
hoover.y = 718;
} else {
if (iLevel == 2){
sceneArr[0].y = 1500;
sceneArr[0] = scene3;
sceneArr[0].y = -20;
hoover.y = 718;
} else {
if (iLevel == 3){
sceneArr[0].y = 1500;
sceneArr[0] = scene4;
sceneArr[0].y = -20;
hoover.y = 718;
} else {
if (iLevel == 4){
sceneArr[0].y = 1500;
sceneArr[0] = scene5;
sceneArr[0].y = -20;
hoover.y = 718;
};
};
};
};
bgProp.gotoAndStop((iLevel + 1));
if (currentChar == 1){
currentChar = 2;
} else {
currentChar = 1;
};
selectChar(currentChar);
if (gameMode == 1){
hoover.visitor.alpha = 1;
hoover.web.alpha = 0.8;
sceneArr[0].cocoon.alpha = 0;
} else {
hoover.visitor.alpha = 0;
hoover.web.alpha = 0;
sceneArr[0].cocoon.alpha = 1;
};
lvlComplete.y = 225;
lvlComplete.alpha = 1;
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
kelSilhouette = 1;
illiSilhouette = 1;
kelPic = 1;
illiPic = 1;
bWin = false;
iLevel = 0;
currentChar = 1;
gameMode = 1;
bPaused = false;
bLightsOn = false;
bPlatform = false;
bTankStation = false;
damage = 0;
fuel = 400;
xThrust = 0;
yThrust = 0;
myInterval = setInterval(myTimer, 150);
keyArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
bLanded = true;
sceneArr = [scene1];
xDelta = 0;
iTimeTillGameOver = 0;
iPhase = 0;
hoover.flashlight.alpha = 0;
hoover.stayBurner.alpha = 0;
hoover.vehicle.gotoAndStop(1);
hoover.alpha = 0;
missionText.alpha = 0;
lvlComplete.stars.gotoAndStop(1);
barDmg.bar.scaleX = 0;
hoover.kelseyFoot.rotation = 5;
wndStart.selectedVehicle.gotoAndStop(Math.ceil((Math.random() * 7)));
wndStart.y = 390;
selectChar(1);
tweenFrontBurner = new Tween(hoover.frontBurner, "alpha", Strong.easeIn, 0.1, 0, 0.2, true);
tweenFrontBurner.FPS = 40;
tweenRearBurner = new Tween(hoover.rearBurner, "alpha", Strong.easeIn, 0.1, 0, 0.2, true);
tweenRearBurner.FPS = 40;
tweenMainBurner = new Tween(hoover.mainBurner, "alpha", Strong.easeIn, 0.1, 0, 0.2, true);
tweenMainBurner.FPS = 40;
tweenBackBurner = new Tween(hoover.backBurner, "alpha", Strong.easeIn, 0.1, 0, 0.2, true);
tweenBackBurner.FPS = 40;
tweenCover = new Tween(hoover.cover, "alpha", Strong.easeIn, 0.1, 0, 0.2, true);
tweenCover.FPS = 40;
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
}
function frame3(){
stop();
winKelsey.alpha = kelPic;
winIlli.alpha = illiPic;
coverKelsey.alpha = kelSilhouette;
coverIlli.alpha = illiSilhouette;
if (bWin == false){
winText.gotoAndStop(2);
} else {
wndStartOver.alpha = 0;
wndStartOver.y = 1000;
};
}
}
}//package spaceRescue_fla
Section 13
//missionText_56 (spaceRescue_fla.missionText_56)
package spaceRescue_fla {
import flash.display.*;
public dynamic class missionText_56 extends MovieClip {
public function missionText_56(){
addFrameScript(0, frame1, 2, frame3);
}
function frame1(){
stop();
}
function frame3(){
stop();
}
}
}//package spaceRescue_fla
Section 14
//selText_53 (spaceRescue_fla.selText_53)
package spaceRescue_fla {
import flash.display.*;
public dynamic class selText_53 extends MovieClip {
public function selText_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 15
//vehicle_8 (spaceRescue_fla.vehicle_8)
package spaceRescue_fla {
import flash.display.*;
public dynamic class vehicle_8 extends MovieClip {
public function vehicle_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 16
//winText_66 (spaceRescue_fla.winText_66)
package spaceRescue_fla {
import flash.display.*;
public dynamic class winText_66 extends MovieClip {
public function winText_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 17
//visitor_14 (spaceRescue_fla.visitor_14)
package spaceRescue_fla {
import flash.display.*;
public dynamic class visitor_14 extends MovieClip {
public function visitor_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spaceRescue_fla
Section 18
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 19
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package