Section 1
//alien_284 (Aether_fla.alien_284)
package Aether_fla {
import flash.display.*;
public dynamic class alien_284 extends MovieClip {
public function alien_284(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package Aether_fla
Section 2
//alien_285 (Aether_fla.alien_285)
package Aether_fla {
import flash.display.*;
public dynamic class alien_285 extends MovieClip {
public function alien_285(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package Aether_fla
Section 3
//alien_288 (Aether_fla.alien_288)
package Aether_fla {
import flash.display.*;
public dynamic class alien_288 extends MovieClip {
public function alien_288(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package Aether_fla
Section 4
//alien_289 (Aether_fla.alien_289)
package Aether_fla {
import flash.display.*;
public dynamic class alien_289 extends MovieClip {
public function alien_289(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package Aether_fla
Section 5
//Bobber0gfly_23 (Aether_fla.Bobber0gfly_23)
package Aether_fla {
import flash.display.*;
public dynamic class Bobber0gfly_23 extends MovieClip {
public function Bobber0gfly_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Aether_fla
Section 6
//Bobberjump_34 (Aether_fla.Bobberjump_34)
package Aether_fla {
import flash.display.*;
public dynamic class Bobberjump_34 extends MovieClip {
public function Bobberjump_34(){
addFrameScript(3, frame4);
}
function frame4(){
stop();
}
}
}//package Aether_fla
Section 7
//Bobberrope_29 (Aether_fla.Bobberrope_29)
package Aether_fla {
import flash.display.*;
public dynamic class Bobberrope_29 extends MovieClip {
public function Bobberrope_29(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package Aether_fla
Section 8
//CUTSCENE_302 (Aether_fla.CUTSCENE_302)
package Aether_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class CUTSCENE_302 extends MovieClip {
public function CUTSCENE_302(){
addFrameScript(0, frame1, 1, frame2, 21, frame22, 22, frame23, 41, frame42, 42, frame43, 62, frame63, 63, frame64, 82, frame83, 83, frame84, 84, frame85, 92, frame93);
}
function frame64(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
MovieClip(parent).updo2();
}
function frame93(){
stop();
}
function frame1(){
stop();
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame83(){
stop();
}
function frame2(){
stop();
}
function frame43(){
stop();
}
function frame42(){
stop();
}
function frame63(){
stop();
}
}
}//package Aether_fla
Section 9
//fader_6 (Aether_fla.fader_6)
package Aether_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class fader_6 extends MovieClip {
public function fader_6(){
addFrameScript(30, frame31, 60, frame61);
}
function frame31(){
stop();
}
function frame61(){
MovieClip(parent).updo();
}
}
}//package Aether_fla
Section 10
//gemastriod1_114 (Aether_fla.gemastriod1_114)
package Aether_fla {
import flash.display.*;
public dynamic class gemastriod1_114 extends MovieClip {
public function gemastriod1_114(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Aether_fla
Section 11
//gemastriod2_125 (Aether_fla.gemastriod2_125)
package Aether_fla {
import flash.display.*;
public dynamic class gemastriod2_125 extends MovieClip {
public function gemastriod2_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Aether_fla
Section 12
//gemastriod3_123 (Aether_fla.gemastriod3_123)
package Aether_fla {
import flash.display.*;
public dynamic class gemastriod3_123 extends MovieClip {
public function gemastriod3_123(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Aether_fla
Section 13
//MainTimeline (Aether_fla.MainTimeline)
package Aether_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var durrr:int;
public var floating:Boolean;
public var starsC:MovieClip;
public var planet1mass;
public var back2:MovieClip;
public var gemed:Boolean;
public var currentCloud:MovieClip;
public var strength:Number;
public var bg:MovieClip;
public var speed:Vector;
public var center:Vector;
public var cc:int;
public var stars:Array;
public var bn:Number;
public var SFX:Array;
public var paus:Boolean;
public var i:int;
public var j:int;
public var cn:Number;
public var pos2:Vector;
public var n;
public var currentPlanet;
public var f:int;
public var speedFactor:Number;
public var grounded:Boolean;
public var kRight:Boolean;
public var k:int;
public var kUp:Boolean;
public var abs;
public var sfx:SoundChannel;
public var dir:Dir;
public var won:Array;
public var momentum:Number;
public var beatgame:Boolean;
public var framey:String;
public var area;
public var srange:Number;
public var flasher:Flasher;
public var talk:Talk;
public var ff:int;
public var background5:Background5;
public var speedC:Vector;
public var clouds:Array;
public var gg:int;
public var explode:Boolean;
public var back:MovieClip;
public var density;
public var speedP:Number;
public var loadPerc:Number;
public var i8:int;
public var crazies:Array;
public var fished:int;
public var rope:MovieClip;
public var GR:Vector;
public var effects:MovieClip;
public var j8:int;
public var sdensity;
public var pollupy:Number;
public var sqrt;
public var kA:Boolean;
public var kD:Boolean;
public var range:Number;
public var kM:Boolean;
public var kS:Boolean;
public var kW:Boolean;
public var btn1:SimpleButton;
public var btn3:SimpleButton;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var splashes:Array;
public var earths:Array;
public var bubbles:Array;
public var planet1r2;
public var gemSounds:Array;
public var fader:Number;
public var transformSFX:SoundTransform;
public var n2;
public var bmp:Bitmap;
public var n8:int;
public var mc:MovieClip;
public var planet:MovieClip;
public var planet2:MovieClip;
public var linkAG:SimpleButton;
public var mp:int;
public var fadery:MovieClip;
public var planet1mass2;
public var mus2:T2;
public var mus3:T3;
public var mus4:T4;
public var mus5:T5;
public var mus1:T1;
public var box:MovieClip;
public var musB:TB;
public var planets:Array;
public var talph:Number;
public var planet1r;
public var ttt:int;
public var timerGGG:int;
public var shrink:Boolean;
public var namesT:int;
public var len:Number;
public var brange:Number;
public var linkED:SimpleButton;
public var anchored:Boolean;
public var wholegame:MovieClip;
public var Gravity:Vector;
public var str:Number;
public var transform1:SoundTransform;
public var transform2:SoundTransform;
public var transform4:SoundTransform;
public var cut:MovieClip;
public var transform5:SoundTransform;
public var bdensity;
public var transformB:SoundTransform;
public var fish:Array;
public var sn:Number;
public var stag:BitmapData;
public var grav:Vector;
public var linkGG:SimpleButton;
public var pos:Vector;
public var arr:Array;
public var transform3:SoundTransform;
public var transformW:SoundTransform;
public var aliens:Array;
public var linkAG2:SimpleButton;
public var particles:Array;
public var controls:int;
public var ended:Boolean;
public var bobber:Bobber;
public var base:BitmapData;
public var elastic:Number;
public var gassed:int;
public var pauzz:Paus;
public var mass:Number;
public var friction:Number;
public var kLeft:Boolean;
public var rspeed:Number;
public var latching:Boolean;
public var timeE:int;
public var faderTIM:int;
public var log:logo;
public var names:Names;
public var hi1:Number;
public var hi2:Number;
public var kSpace:Boolean;
public var mooned:int;
public var Vecg:Vector;
public var Vec:Vector;
public var Vecp:Vector;
public var sarea;
public var ggg;
public var channel2:SoundChannel;
public var channel4:SoundChannel;
public var channel1:SoundChannel;
public var channel3:SoundChannel;
public var channel5:SoundChannel;
public var wi1:Number;
public var wi2:Number;
public var foregrounds:Array;
public var gemCounter:int;
public var charH:Number;
public var channelW:SoundChannel;
public var channelB:SoundChannel;
public var loadBX:TextField;
public var bubblesC:MovieClip;
public var kDown:Boolean;
public var cam:Cam;
public var container1:MovieClip;
public var container2:MovieClip;
public var container3:MovieClip;
public var container4:MovieClip;
public var win1:Win1;
public var win2:Win2;
public var win3:Win3;
public var win4:Win4;
public var barea;
public var inside:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
public function backBTN(_arg1:Event){
framey = "game";
fadery.play();
}
public function ag_btnclick2(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.armorgames.com"), "_blank");
}
public function ed_btnclick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.thisisacryforhelp.com"), "_blank");
}
public function goBTN(_arg1:Event){
cut.play();
}
public function updo(){
gotoAndStop(framey);
}
function frame5(){
stop();
btn1.addEventListener(MouseEvent.CLICK, backBTN, false, 0, true);
}
function frame9(){
stop();
btn1.addEventListener(MouseEvent.CLICK, backBTN2, false, 0, true);
}
function frame6(){
stop();
framey = "inst";
btn1.addEventListener(MouseEvent.CLICK, goBTN, false, 0, true);
}
function frame1(){
linkAG.addEventListener(MouseEvent.CLICK, ag_btnclick, false, 0, true);
linkGG.addEventListener(MouseEvent.CLICK, gg_btnclick, false, 0, true);
linkED.addEventListener(MouseEvent.CLICK, ed_btnclick, false, 0, true);
stop();
base = new BitmapData(100, 100, true, 0);
stag = new BitmapData(stage.stageWidth, stage.stageHeight, true, 2434861);
bmp = new Bitmap(stag);
box.addChild(bmp);
log = new logo();
base.draw(log);
abs = Math.abs;
sqrt = Math.sqrt;
arr = new Array();
loadPerc = new Number(0);
shrink = false;
wi1 = ((stage.stageWidth - 400) / 2);
hi1 = ((stage.stageHeight - 400) / 2);
wi2 = ((stage.stageWidth - 200) / 2);
hi2 = ((stage.stageHeight - 200) / 2);
timerGGG = 30;
i8 = 0;
while (i8 < 100) {
j8 = 0;
while (j8 < 100) {
arr.push(new Array(0, 0, 0, 0, 0));
n8 = (arr.length - 1);
arr[n8][0] = base.getPixel32(i8, j8);
arr[n8][1] = new Number(((i8 * 4) + wi1));
arr[n8][2] = new Number(((j8 * 4) + hi1));
arr[n8][3] = (Math.random() * 700);
arr[n8][4] = (Math.random() * 700);
arr[n8][5] = ((Math.random() * 10) - 5);
arr[n8][6] = ((Math.random() * 10) - 5);
arr[n8][7] = i8;
arr[n8][8] = j8;
j8++;
};
i8++;
};
explode = false;
loaderInfo.addEventListener(ProgressEvent.PROGRESS, calculatepcent, false, 0, true);
addEventListener(Event.ENTER_FRAME, update2, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, expl, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, uexpl, false, 0, true);
stage.showDefaultContextMenu = false;
stage.quality = "MEDIUM";
framey = "title";
try {
MochiBot.track(this, "c0587ff8");
} catch(e:Error) {
};
}
public function advance(){
framey = "title";
fadery.play();
}
public function update2(_arg1:Event){
var _local2:Boolean;
var _local3:int;
var _local4:Number;
if (loadPerc >= 1){
loadPerc = 1;
shrink = true;
};
loadBX.text = (String(Math.round((loadPerc * 100))) + "% Loaded");
log.gotoAndStop((Math.floor((loadPerc * 100)) + 1));
base.draw(log);
_local2 = false;
if (shrink == true){
if ((((abs((mouseX - (stage.stageWidth / 2))) <= 50)) && ((abs((mouseY - (stage.stageHeight / 2))) < 50)))){
_local2 = true;
};
};
stag.colorTransform(new Rectangle(0, 0, stage.stageWidth, stage.stageHeight), new ColorTransform(1, 1, 1, 0.9, 0, 0, 0, 0));
if (timerGGG > 0){
_local3 = 0;
while (_local3 < arr.length) {
if (timerGGG <= 0){
arr[_local3][0] = 0;
} else {
arr[_local3][0] = base.getPixel32(arr[_local3][7], arr[_local3][8]);
};
if (!shrink){
arr[_local3][5] = (arr[_local3][5] + ((arr[_local3][1] - arr[_local3][3]) / 50));
arr[_local3][6] = (arr[_local3][6] + ((arr[_local3][2] - arr[_local3][4]) / 50));
_local4 = sqrt((((arr[_local3][3] - mouseX) * (arr[_local3][3] - mouseX)) + ((arr[_local3][4] - mouseY) * (arr[_local3][4] - mouseY))));
if (explode){
arr[_local3][5] = (arr[_local3][5] + ((450 * (arr[_local3][3] - mouseX)) / ((_local4 * _local4) + 30)));
arr[_local3][6] = (arr[_local3][6] + ((450 * (arr[_local3][4] - mouseY)) / ((_local4 * _local4) + 30)));
} else {
arr[_local3][5] = (arr[_local3][5] + ((90 * (arr[_local3][3] - mouseX)) / ((_local4 * _local4) + 30)));
arr[_local3][6] = (arr[_local3][6] + ((90 * (arr[_local3][4] - mouseY)) / ((_local4 * _local4) + 30)));
};
} else {
arr[_local3][3] = (arr[_local3][3] + (((((arr[_local3][1] - wi1) / 2) + wi2) - arr[_local3][3]) / 5));
arr[_local3][4] = (arr[_local3][4] + (((((arr[_local3][2] - hi1) / 2) + hi2) - arr[_local3][4]) / 5));
arr[_local3][5] = 0;
arr[_local3][6] = 0;
};
arr[_local3][5] = (arr[_local3][5] * 0.95);
arr[_local3][6] = (arr[_local3][6] * 0.95);
if (arr[_local3][5] > 50){
arr[_local3][5] = 50;
};
if (arr[_local3][5] < -50){
arr[_local3][5] = -50;
};
if (arr[_local3][6] > 50){
arr[_local3][6] = 50;
};
if (arr[_local3][6] < -50){
arr[_local3][6] = -50;
};
arr[_local3][3] = (arr[_local3][3] + arr[_local3][5]);
arr[_local3][4] = (arr[_local3][4] + arr[_local3][6]);
stag.fillRect(new Rectangle(arr[_local3][3], arr[_local3][4], 2, 2), arr[_local3][0]);
_local3++;
};
};
bmp.bitmapData = stag;
if (shrink == true){
timerGGG = (timerGGG - 1);
if (timerGGG == 0){
box.addChild(log);
log.scaleX = 2;
log.scaleY = 2;
log.x = wi2;
log.y = hi2;
};
if (timerGGG <= 0){
if ((((abs((mouseX - (stage.stageWidth / 2))) <= 100)) && ((abs((mouseY - (stage.stageHeight / 2))) < 100)))){
log.gotoAndStop(101);
} else {
log.gotoAndStop(100);
};
if (((((explode) && ((abs((mouseX - (stage.stageWidth / 2))) <= 100)))) && ((abs((mouseY - (stage.stageHeight / 2))) < 100)))){
framey = "logos";
fadery.play();
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, calculatepcent);
removeEventListener(Event.ENTER_FRAME, update2);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, expl);
stage.removeEventListener(MouseEvent.MOUSE_UP, uexpl);
};
};
explode = false;
};
}
function frame7(){
stop();
paus = false;
pauzz = new Paus();
clouds = new Array();
crazies = new Array();
back = new MovieClip();
back2 = new MovieClip();
mc = new MovieClip();
mc2 = new MovieClip();
mc3 = new MovieClip();
starsC = new MovieClip();
container1 = new MovieClip();
mc.addChild(back2);
mc.addChild(starsC);
mc.addChild(back);
container2 = new MovieClip();
container3 = new MovieClip();
container4 = new MovieClip();
bg = new BG();
bubblesC = new MovieClip();
effects = new MovieClip();
bubbles = new Array();
aliens = new Array();
ttt = 0;
Gravity = new Vector(0, 0);
mc.addChild(bg);
wholegame.addChild(mc3);
names = new Names();
wholegame.addChild(names);
wholegame.addChild(pauzz);
pauzz.visible = false;
names.gotoAndStop(2);
names.alpha = 0;
timeE = 90;
namesT = 0;
mc3.addChild(mc2);
mc2.addChild(mc);
mc.addChild(container1);
mc.addChild(container2);
mc.addChild(container3);
mc.addChild(container4);
fader = 1;
faderTIM = 0;
dir = new Dir();
dir.alpha = 0;
dir.d1.gotoAndStop(1);
dir.d2.gotoAndStop(2);
dir.d3.gotoAndStop(3);
dir.d4.gotoAndStop(4);
dir.d5.gotoAndStop(5);
ended = false;
durrr = 300;
dir.visible = false;
container4.addChild(dir);
range = 1900;
srange = 1300;
cam = new Cam(700, 700, mc);
cam.x = (range / 2);
cam.y = (range / 2);
speedC = new Vector(0, 4);
density = (1 / 90000);
area = (range * range);
cn = (density * area);
sdensity = (1 / 16000);
sarea = (srange * srange);
sn = (sdensity * sarea);
brange = 2800;
bdensity = (1 / 5000000);
barea = (brange * brange);
bn = (bdensity * barea);
momentum = 0;
mass = 20;
friction = 1;
strength = 1;
speed = new Vector(0, 0);
pos = new Vector(0, 0);
len = 180;
pos2 = new Vector(0, 0);
rope = new MovieClip();
bobber = new Bobber();
center = new Vector(0, 500);
anchored = false;
rspeed = 0;
speedFactor = 0.5;
controls = 1;
inside = false;
currentCloud = null;
elastic = 10;
speedP = 0;
charH = 30;
stars = new Array();
fish = new Array();
splashes = new Array();
floating = false;
pollupy = 0;
fished = 0;
won = new Array(false, false, false, false);
particles = new Array();
f = 0;
while (f < 10) {
fish.push(new Array(new Fish(), new Vector(3, 0), 3, 1));
fished = (fished + 1);
f++;
};
ff = 0;
while (ff < 30) {
fish.push(new Array(new Fish2(), new Vector(1, 0), 3, 2));
ff++;
};
k = 0;
while (k < fish.length) {
bubblesC.addChild(fish[k][0]);
fish[k][0].x = ((4000 + (Math.random() * 500)) - 250);
fish[k][0].y = ((29000 + (Math.random() * 500)) - 250);
k++;
};
background5 = new Background5();
container1.addChild(background5);
planets = new Array();
planets.push(new Array(new Planet1(), 0x7A1200, 0));
planets.push(new Array(new Planet2(), 0x7A1200, 0, 0));
planets.push(new Array(new Planet3(), 0x7A1200, 0, 0));
planets.push(new Array(new Planet4(), 0x7A1200, 0, 0));
planets.push(new Array(new Planet5(), 0x7A1200, 0));
planets.push(new Array(new Moon(), 0, (138 / 2), new Vector(0, 0), 1));
planets.push(new Array(new Moon(), 0, (138 / 2), new Vector(0, 0), 1));
planets.push(new Array(new Moon(), 0, (138 / 2), new Vector(0, 0), 1));
planets.push(new Array(new Moon(), 0, (138 / 2), new Vector(0, 0), 1));
container1.addChild(planets[5][0]);
container1.addChild(planets[6][0]);
container1.addChild(planets[7][0]);
container1.addChild(planets[8][0]);
container1.addChild(planets[0][0]);
container1.addChild(planets[1][0]);
container1.addChild(planets[2][0]);
container1.addChild(planets[3][0]);
container1.addChild(planets[4][0]);
foregrounds = new Array();
foregrounds.push(new Foreground2());
foregrounds.push(new Foreground3());
foregrounds.push(new Foreground4());
container3.addChild(foregrounds[0]);
container3.addChild(foregrounds[1]);
container3.addChild(foregrounds[2]);
planets[0][0].x = 0;
planets[0][0].y = 1000;
planets[1][0].x = 0;
planets[1][0].y = -20000;
foregrounds[0].x = 0;
foregrounds[0].y = -20000;
planets[2][0].x = 25000;
planets[2][0].y = 3000;
foregrounds[1].x = 25000;
foregrounds[1].y = 3000;
foregrounds[1].planet.visible = false;
planets[3][0].x = 4000;
planets[3][0].y = 29000;
foregrounds[2].x = 4000;
foregrounds[2].y = 29000;
planets[4][0].x = -30000;
planets[4][0].y = -10000;
background5.x = -30000;
background5.y = -10000;
planets[5][0].x = -30000;
planets[5][0].y = -11000;
planets[6][0].x = -31000;
planets[6][0].y = -10300;
planets[7][0].x = -29100;
planets[7][0].y = -10100;
planets[8][0].x = -29800;
planets[8][0].y = -8700;
planets[5][0].gotoAndStop(1);
planets[6][0].gotoAndStop(2);
planets[7][0].gotoAndStop(3);
planets[8][0].gotoAndStop(4);
planets.push(new Array(new Island(), 0, (157 / 2)));
container1.addChild(planets[9][0]);
planets[9][0].x = 4000;
planets[9][0].y = 28600;
planets.push(new Array(new MoonE(), 80000, (187 / 2)));
container1.addChild(planets[10][0]);
planets[10][0].x = 200;
planets[10][0].y = -700;
planets[10][0].rotation = Vector.angle2(new Vector(0, -1), new Vector((planets[10][0].x - planets[0][0].x), (planets[10][0].y - planets[0][0].y)));
planets.push(new Array(new MoonG(), 80000, (187 / 2)));
container1.addChild(planets[11][0]);
planets[11][0].x = -200;
planets[11][0].y = -18000;
planets[11][0].rotation = Vector.angle2(new Vector(0, -1), new Vector((planets[11][0].x - planets[1][0].x), (planets[11][0].y - planets[1][0].y)));
planets.push(new Array(new MoonH(), 80000, (187 / 2)));
container1.addChild(planets[12][0]);
planets[12][0].x = 23000;
planets[12][0].y = 3100;
planets[12][0].rotation = Vector.angle2(new Vector(0, -1), new Vector((planets[12][0].x - planets[2][0].x), (planets[12][0].y - planets[2][0].y)));
planets.push(new Array(new MoonB(), 80000, (187 / 2)));
container1.addChild(planets[13][0]);
planets[13][0].x = -28000;
planets[13][0].y = -9500;
planets[13][0].rotation = Vector.angle2(new Vector(0, -1), new Vector((planets[13][0].x - planets[4][0].x), (planets[13][0].y - planets[4][0].y)));
planets.push(new Array(new MoonL(), 80000, 45));
container1.addChild(planets[14][0]);
planets[14][0].x = -27700;
planets[14][0].y = -9500;
planets[14][0].rotation = Vector.angle2(new Vector(0, -1), new Vector((planets[14][0].x - planets[4][0].x), (planets[14][0].y - planets[4][0].y)));
mp = 5;
while (mp < 9) {
Vecp = new Vector((planets[mp][0].x - planets[4][0].x), (planets[mp][0].y - planets[4][0].y));
planets[mp][0].rotation = Vector.angle2(new Vector(0, -1), Vecp);
mp++;
};
mooned = 0;
gassed = 4;
gemCounter = 0;
planets[0][2] = (774 / 2);
planets[1][2] = (445.8 / 2);
planets[1][3] = (1616.4 / 2);
planets[2][2] = (1344.7 / 2);
planets[2][3] = (330.7 / 2);
planets[3][2] = (187 / 2);
planets[3][3] = 415;
planets[4][2] = 672;
earths = new Array((648 / 2), (478 / 2), (305 / 2), 50);
talk = new Talk();
aliem();
container1.addChild(bubblesC);
container4.addChild(talk);
talk.alpha = 0;
talk.txt.text = "";
talk.visible = false;
container1.addChild(rope);
cc = 0;
while (cc < 8) {
clouds.push(new Array(new Gem(), 2));
container1.addChild(clouds[cc][0]);
clouds[cc][0].gotoAndStop((Math.floor((Math.random() * 3)) + 1));
clouds[cc][0].rotation = (Math.random() * 360);
Vec = new Vector(500, 0);
Vec.rotate((cc * (360 / 8)));
clouds[cc][0].x = (planets[2][0].x + Vec.x);
clouds[cc][0].y = (planets[2][0].y + Vec.y);
cc++;
};
gg = 0;
while (gg < 4) {
ggg = (clouds.push(new Array(new Gasteroid(), 3)) - 1);
container4.addChild(clouds[ggg][0]);
Vecg = new Vector(0, 1300);
Vecg.rotate((gg * (360 / 4)));
clouds[ggg][0].rotation = Vector.angle2(new Vector(0, -1), Vecg);
clouds[ggg][0].x = (planets[1][0].x + Vecg.x);
clouds[ggg][0].y = (planets[1][0].y + Vecg.y);
gg++;
};
gemed = false;
grounded = false;
currentPlanet = 2;
container1.addChild(bobber);
container1.addChild(effects);
bobber.x = center.x;
bobber.y = center.y;
flasher = new Flasher();
wholegame.addChild(flasher);
latching = false;
while (Math.random() < cn) {
cn--;
n = (clouds.push(new Array(new Cloud(), 0)) - 1);
container2.addChild(clouds[n][0]);
clouds[n][0].x = (Math.random() * range);
clouds[n][0].y = (Math.random() * range);
grav = new Vector(0, 0);
i = 0;
while (i < 5) {
planet = planets[i][0];
planet1mass = planets[i][1];
planet1r = planets[i][2];
GR = new Vector((planet.x - clouds[n][0].x), (planet.y - clouds[n][0].y));
str = GR.length;
GR.length = (planet1mass / (str * str));
grav.x = (grav.x + GR.x);
grav.y = (grav.y + GR.y);
i++;
};
clouds[n][0].rotation = Vector.angle2(new Vector(0, 1), grav);
clouds[n][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
clouds[n][0].scaleX = ((Math.round(Math.random()) - 0.5) * 2);
j = 0;
while (j < planets.length) {
planet2 = planets[j][0];
planet1mass2 = planets[j][1];
planet1r2 = planets[j][2];
if (j == 1){
if ((((clouds[n][0].x - planet2.x) * (clouds[n][0].x - planet2.x)) + ((clouds[n][0].y - planet2.y) * (clouds[n][0].y - planet2.y))) < ((planet1r + 100) * (planet1r2 + 100))){
container2.removeChild(clouds[n][0]);
clouds.splice(n, 1);
break;
};
} else {
if (j >= 5){
if ((((clouds[n][0].x - planet2.x) * (clouds[n][0].x - planet2.x)) + ((clouds[n][0].y - planet2.y) * (clouds[n][0].y - planet2.y))) < ((planet1r2 + 25) * (planet1r2 + 25))){
container2.removeChild(clouds[n][0]);
clouds.splice(n, 1);
break;
};
} else {
if ((((clouds[n][0].x - planet2.x) * (clouds[n][0].x - planet2.x)) + ((clouds[n][0].y - planet2.y) * (clouds[n][0].y - planet2.y))) < ((planet1r2 + 200) * (planet1r2 + 200))){
container2.removeChild(clouds[n][0]);
clouds.splice(n, 1);
break;
};
};
};
j++;
};
};
while (Math.random() < sn) {
sn--;
n2 = (stars.push(new Star()) - 1);
starsC.addChild(stars[n2]);
stars[n2].x = (Math.random() * srange);
stars[n2].y = (Math.random() * srange);
stars[n2].rotation = (Math.random() * 360);
stars[n2].gotoAndStop((Math.floor((Math.random() * 9)) + 1));
};
stage.addEventListener(Event.RENDER, shake);
addEventListener(Event.ENTER_FRAME, update, false, 0, true);
talph = 0;
kUp = false;
kDown = false;
kLeft = false;
kRight = false;
kSpace = false;
kW = false;
kA = false;
kS = false;
kD = false;
kM = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandelerD, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyHandelerU, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseHandelerD, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseHandelerU, false, 0, true);
}
public function keyHandelerD(_arg1:KeyboardEvent){
var _local2:*;
if (!paus){
if (_arg1.keyCode == 87){
kW = true;
};
if (_arg1.keyCode == 65){
kA = true;
};
if (_arg1.keyCode == 83){
kS = true;
};
if (_arg1.keyCode == 68){
kD = true;
};
if (_arg1.keyCode == 38){
kUp = true;
};
if (_arg1.keyCode == 40){
kDown = true;
};
if (_arg1.keyCode == 37){
kLeft = true;
};
if (_arg1.keyCode == 39){
kRight = true;
};
if (_arg1.keyCode == 32){
kSpace = true;
};
};
if ((((_arg1.keyCode == 27)) || ((_arg1.keyCode == 80)))){
if (paus == false){
paus = true;
stage.frameRate = 0;
pauzz.visible = true;
} else {
paus = false;
stage.frameRate = 30;
pauzz.visible = false;
};
};
if (_arg1.keyCode == 81){
_local2 = stage.quality;
if (_local2 == "LOW"){
stage.quality = "HIGH";
};
if (_local2 == "MEDIUM"){
stage.quality = "LOW";
};
if (_local2 == "HIGH"){
stage.quality = "MEDIUM";
};
};
}
public function updo2(){
framey = "inst";
fadery.play();
}
public function ag_btnclick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.armorgames.com"), "_blank");
}
public function keyHandelerU(_arg1:KeyboardEvent){
if (_arg1.keyCode == 87){
kW = false;
};
if (_arg1.keyCode == 65){
kA = false;
};
if (_arg1.keyCode == 83){
kS = false;
};
if (_arg1.keyCode == 68){
kD = false;
};
if (_arg1.keyCode == 38){
kUp = false;
};
if (_arg1.keyCode == 40){
kDown = false;
};
if (_arg1.keyCode == 37){
kLeft = false;
};
if (_arg1.keyCode == 39){
kRight = false;
};
if (_arg1.keyCode == 32){
kSpace = false;
};
}
function frame3(){
if (gemSounds == undefined){
beatgame = false;
mus1 = new T1();
mus2 = new T2();
mus3 = new T3();
mus4 = new T4();
mus5 = new T5();
musB = new TB();
gemSounds = new Array(new G1(), new G2(), new G3(), new G4(), new G5(), new G6(), new G7(), new G8());
SFX = new Array(new SFX1(), new SFX2(), new SFX3(), new SFX4(), new SFX5(), new SFX6(), new SFX7());
win1 = new Win1();
win2 = new Win2();
win3 = new Win3();
win4 = new Win4();
channel1 = new SoundChannel();
channel2 = new SoundChannel();
channel3 = new SoundChannel();
channel4 = new SoundChannel();
channel5 = new SoundChannel();
channelW = new SoundChannel();
channelB = new SoundChannel();
sfx = new SoundChannel();
transform1 = new SoundTransform(0, 0);
transform2 = new SoundTransform(0, 0);
transform3 = new SoundTransform(0, 0);
transform4 = new SoundTransform(0, 0);
transform5 = new SoundTransform(0, 0);
transformW = new SoundTransform(1.5, 0);
transformB = new SoundTransform(1, 0);
transformSFX = new SoundTransform(1, 0);
channel2 = mus2.play(0, 0xFFFF);
channel5 = mus5.play(channel2.position, 0xFFFF);
channel1 = mus1.play(channel2.position, 0xFFFF);
channelB = musB.play(channel2.position, 0xFFFF);
channel3 = mus4.play(channel2.position, 0xFFFF);
channel4 = mus3.play(channel2.position, 0xFFFF);
channel1.soundTransform = transform1;
channel2.soundTransform = transform2;
channel3.soundTransform = transform3;
channel4.soundTransform = transform4;
channel5.soundTransform = transform5;
channelB.soundTransform = transformB;
channelW.soundTransform = transformW;
sfx.soundTransform = transformSFX;
};
}
function frame8(){
stop();
beatgame = true;
removeEventListener(Event.ENTER_FRAME, update);
removeEventListener(KeyboardEvent.KEY_DOWN, keyHandelerD);
removeEventListener(KeyboardEvent.KEY_UP, keyHandelerU);
removeEventListener(MouseEvent.MOUSE_DOWN, mouseHandelerD);
removeEventListener(MouseEvent.MOUSE_UP, mouseHandelerU);
btn1.addEventListener(MouseEvent.CLICK, goBTN, false, 0, true);
}
public function update(_arg1:Event){
var i:int;
var vSPEED:Number;
var force:Vector;
var rad2:Vector;
var pFl:*;
var netForce:Vector;
var busty:Boolean;
var numcg:Boolean;
var bbbbbbb:Boolean;
var strn:*;
var winned:int;
var planet:MovieClip;
var planet1mass:*;
var planet1r:*;
var GR:Vector;
var str:Number;
var aaaaaa:Vector;
var nnn:*;
var rVAL:Vector;
var bobbery:Vector;
var n:Vector;
var C:Number;
var Y:Number;
var X:Number;
var xp1:Vector;
var xp2:Vector;
var rad:Vector;
var j:int;
var pp:int;
var ang:Vector;
var disss:Vector;
var dissst:Vector;
var disst:Vector;
var nnnn:Vector;
var aaan:Vector;
var shortestC:int;
var distC:Number;
var ass:Boolean;
var grav:Vector;
var planet2:MovieClip;
var planet1mass2:*;
var planet1r2:*;
var CFF:int;
var rrr:Vector;
var rr:Vector;
var targSiz:Number;
var e = _arg1;
try {
if (ended){
lockControls();
};
i = 0;
while (i < clouds.length) {
if ((((((((((((((clouds[i] == null)) || ((clouds[i] == undefined)))) || ((clouds[i][0] == null)))) || ((clouds[i][0] == undefined)))) || ((clouds[i][1] == null)))) || ((clouds[i][1] == undefined)))) || (isNaN(clouds[i][1])))){
clouds.splice(i, 1);
i = (i - 1);
};
i = (i + 1);
};
vSPEED = 0;
foregrounds[0].alpha = (gassed / 4);
if (((!(inside)) && ((planets[2][0].planet.currentFrame == 1)))){
foregrounds[1].planet.visible = false;
planets[2][0].planet.visible = true;
};
if (((inside) && ((planets[2][0].planet.currentFrame == 1)))){
planets[2][0].planet.play();
foregrounds[1].planet.play();
foregrounds[1].planet.visible = true;
planets[2][0].planet.visible = false;
};
if (((!(inside)) && (!((planets[2][0].planet.currentFrame == 1))))){
planets[2][0].planet.play();
foregrounds[1].planet.play();
};
if (planets[0][0].currentFrame == 6){
if ((((currentPlanet == 10)) || (grounded))){
timeE = (timeE - 1);
if (timeE <= 0){
framey = "ending";
fadery.play();
};
};
};
Gravity = new Vector(0, 0);
i = 0;
while (i < planets.length) {
planet = planets[i][0];
planet1mass = planets[i][1];
planet1r = planets[i][2];
GR = new Vector((planet.x - bobber.x), (planet.y - bobber.y));
str = GR.length;
GR.length = (planet1mass / (str * str));
Gravity.x = (Gravity.x + GR.x);
Gravity.y = (Gravity.y + GR.y);
i = (i + 1);
};
if (Gravity.length > 2){
Gravity.length = 2;
};
if ((((Gravity.length < 0.2)) && (!((planets[0][0].currentFrame == 6))))){
names.gotoAndStop(6);
};
force = new Vector(((Number(kD) - Number(kA)) * strength), ((Number(kS) - Number(kW)) * strength));
if (((((grounded) && (kW))) && ((controls == 2)))){
bobber.gotoAndStop(6);
force.y = (force.y * 25);
controls = 1;
};
if (((grounded) && ((currentPlanet >= 5)))){
aaaaaa = new Vector((bobber.x - planets[currentPlanet][0].x), (bobber.y - planets[currentPlanet][0].y));
force.rotate(Vector.angle2(new Vector(0, -1), aaaaaa));
} else {
force.rotate(Vector.angle2(new Vector(0, 1), Gravity));
};
if ((((((((((force.length > 0)) && (!(anchored)))) && (!(latching)))) && ((bobber.currentFrame == 1)))) && ((controls == 1)))){
bobber.ani.play();
rspeed = (Vector.angle2(new Vector(0, -1).rotateNew(bobber.rotation), force) / 5);
};
if ((((bobber.currentFrame == 7)) && ((bobber.ani.currentFrame == 8)))){
bobber.gotoAndStop(1);
};
friction = (1 - (Gravity.length / 100));
if (anchored){
friction = 1;
};
if (planets[0][0].currentFrame == 5){
aaaaaa = new Vector((bobber.x - planets[0][0].x), (bobber.y - planets[0][0].y));
if (aaaaaa.length < 700){
namesT = 200;
names.gotoAndStop(1);
friction = 0.95;
force.x = 0;
force.y = 0;
lockControls();
if (speed.length > 10){
speed.length = (speed.length - ((speed.length - 10) / 10));
};
};
};
rad2 = new Vector((planets[1][0].x - bobber.x), (planets[1][0].y - bobber.y));
if (rad2.length < planets[1][3]){
if (names.currentFrame != 2){
namesT = 200;
names.gotoAndStop(2);
};
friction = (friction - (gassed * 0.05));
if (anchored){
friction = (1 - (gassed * 0.007));
} else {
if (!grounded){
force.scale(10);
};
};
};
rad2 = new Vector((planets[3][0].x - bobber.x), (planets[3][0].y - bobber.y));
pFl = floating;
floating = false;
if (rad2.length < planets[3][3]){
Gravity.scale(-1);
floating = true;
if (names.currentFrame != 4){
namesT = 200;
names.gotoAndStop(4);
};
if (anchored){
friction = 0.99;
} else {
friction = 0.94;
};
};
if ((((floating == !(pFl))) && ((speed.length > 25)))){
sfx = SFX[4].play();
transformSFX.volume = 3;
nnn = (splashes.push(new Splash()) - 1);
effects.addChild(splashes[nnn]);
GR = new Vector((planets[3][0].x - (bobber.x + speed.x)), (planets[3][0].y - (bobber.y + speed.y)));
GR.length = planets[3][3];
splashes[nnn].x = (planets[3][0].x - GR.x);
splashes[nnn].y = (planets[3][0].y - GR.y);
splashes[nnn].rotation = Vector.angle2(new Vector(0, 1), GR);
};
if (rad2.length < (planets[3][3] - 30)){
if (foregrounds[2].alpha > 0.2){
foregrounds[2].alpha = (foregrounds[2].alpha - 0.02);
};
} else {
if (foregrounds[2].alpha < 1){
foregrounds[2].alpha = (foregrounds[2].alpha + 0.1);
};
};
if (((!(anchored)) && (!(grounded)))){
if (!floating){
force.scale(0.1);
} else {
force.scale(3);
};
};
if (anchored){
force.scale(1.5);
};
netForce = new Vector(0, 0);
netForce = Vector.add(Gravity, netForce);
netForce = Vector.add(force, netForce);
speed.x = (speed.x + netForce.x);
speed.y = (speed.y + netForce.y);
speed.scale(friction);
busty = false;
if (anchored){
center.x = currentCloud.x;
center.y = currentCloud.y;
controls = 1;
grounded = false;
rVAL = new Vector(pos.x, pos.y);
pos.x = (pos.x + (speed.x * speedFactor));
pos.y = (pos.y + (speed.y * speedFactor));
if (pos.length > len){
n = new Vector((pos.length - len), 0);
n.rotate(Vector.angle2(new Vector(1, 0), pos));
speed.x = (speed.x + (n.x / -(elastic)));
speed.y = (speed.y + (n.y / -(elastic)));
pos.length = (pos.length - (n.length / elastic));
};
rope.graphics.clear();
if (pos.length < len){
C = (len / 2);
Y = (pos.length / 2);
X = Math.sqrt(((C * C) - (Y * Y)));
xp1 = new Vector(pos.x, pos.y);
xp1 = xp1.perpendicular(-1);
xp2 = new Vector(pos.x, pos.y);
xp2 = xp2.perpendicular(1);
xp1.length = X;
xp2.length = X;
xp1.x = (xp1.x + (pos.x / 2));
xp1.y = (xp1.y + (pos.y / 2));
xp2.x = (xp2.x + (pos.x / 2));
xp2.y = (xp2.y + (pos.y / 2));
if ((((xp1.x - pos2.x) * (xp1.x - pos2.x)) + ((xp1.y - pos2.y) * (xp1.y - pos2.y))) < (((xp2.x - pos2.x) * (xp2.x - pos2.x)) + ((xp2.y - pos2.y) * (xp2.y - pos2.y)))){
pos2.x = xp1.x;
pos2.y = xp1.y;
} else {
pos2.x = xp2.x;
pos2.y = xp2.y;
};
} else {
pos2.x = (pos.x / 2);
pos2.y = (pos.y / 2);
};
if (!floating){
rspeed = (rspeed + (Vector.angle2(new Vector(0, 1).rotateNew(bobber.rotation), Vector.add(Vector.subtract(pos, pos2), Gravity)) / 30));
} else {
rspeed = (rspeed + (Vector.angle2(new Vector(0, 1).rotateNew(bobber.rotation), Vector.add(Gravity, Vector.subtract(pos, pos2))) / 30));
};
vSPEED = Vector.angle2(rVAL, pos);
rspeed = (rspeed * 0.95);
bobbery = new Vector(0, -(charH)).rotateNew((bobber.rotation + (rspeed * speedFactor)));
bobber.x = ((pos.x + center.x) + bobbery.x);
bobber.y = ((pos.y + center.y) + bobbery.y);
i = 0;
while (i < planets.length) {
if (!(((i == 0)) && ((planets[0][0].currentFrame == 6)))){
if (!(((((i >= 5)) && ((i <= 8)))) && ((planets[i][4] == 0)))){
planet = planets[i][0];
planet1mass = planets[i][1];
planet1r = planets[i][2];
rad = new Vector((planet.x - bobber.x), (planet.y - bobber.y));
if (((inside) && ((i == 2)))){
if (rad.length > (planet1r + 30)){
inside = false;
j = 0;
while (j < 10) {
pp = (particles.push(new Array(new Particle2(), new Vector(0, ((Math.random() * 3) + 10)), new Vector((Gravity.x / 3), (Gravity.y / 3)), 0.99, ((Math.random() * 100) - 50), 20)) - 1);
particles[pp][1].rotate(((Vector.angle2(new Vector(0, -1), Gravity) + (Math.random() * 30)) - 15));
particles[pp][0].x = (planets[2][0].x - ((rad.x / rad.length) * planets[2][2]));
particles[pp][0].y = (planets[2][0].y - ((rad.y / rad.length) * planets[2][2]));
particles[pp][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
particles[pp][0].rotation = (Math.random() * 360);
effects.addChild(particles[pp][0]);
j = (j + 1);
};
nnn = (splashes.push(new Poof()) - 1);
effects.addChild(splashes[nnn]);
splashes[nnn].x = (planets[currentPlanet][0].x - ((rad.x / rad.length) * planets[2][2]));
splashes[nnn].y = (planets[currentPlanet][0].y - ((rad.y / rad.length) * planets[2][2]));
splashes[nnn].rotation = Vector.angle2(new Vector(0, 1), rad);
} else {
planet1r = planets[i][3];
};
};
if (rad.length < (planet1r + charH)){
busty = true;
rad.length = (planet1r + charH);
bobber.x = (planet.x - rad.x);
bobber.y = (planet.y - rad.y);
rad.length = (Vector.dot(rad, speed) / rad.length);
speed.x = (speed.x - (rad.x * 1.4));
speed.y = (speed.y - (rad.y * 1.4));
if (i >= 5){
speed.rotate(Vector.angle2(new Vector(0, 1), rad));
speed.y = 0;
speed.rotate(-(Vector.angle2(new Vector(0, 1), rad)));
};
};
};
};
i = (i + 1);
};
rope.graphics.lineStyle(4, 0xD9D9D9);
rope.graphics.moveTo(center.x, center.y);
rope.graphics.curveTo((pos2.x + center.x), (pos2.y + center.y), (bobber.x + bobbery.x), (bobber.y + bobbery.y));
rope.graphics.lineStyle(1, 0xFFFFFF);
rope.graphics.moveTo(center.x, center.y);
rope.graphics.curveTo((pos2.x + center.x), (pos2.y + center.y), (bobber.x + bobbery.x), (bobber.y + bobbery.y));
} else {
rspeed = (rspeed * 0.99);
rope.graphics.clear();
ang = new Vector((bobber.x - planets[currentPlanet][0].x), (bobber.y - planets[currentPlanet][0].y));
if ((((((((currentPlanet == 2)) && (!(inside)))) && (planets[2][0].box.hitTestObject(bobber.box)))) && ((ang.length < ((planets[currentPlanet][2] + charH) + 5))))){
inside = true;
if (controls == 2){
speed = new Vector(((speedP * planets[2][2]) * (Math.PI / 180)), 0);
speed.rotate(Vector.angle2(new Vector(0, -1), ang));
};
controls = 1;
grounded = false;
};
if (controls == 1){
bobber.x = (bobber.x + (speed.x * speedFactor));
bobber.y = (bobber.y + (speed.y * speedFactor));
} else {
if (controls == 2){
if (kD){
speedP = (speedP + 0.2);
if (inside){
speedP = (speedP + 0.4);
};
if (currentPlanet == 0){
speedP = (speedP + 0.16);
};
if (currentPlanet == 1){
speedP = (speedP + (0.2 - (gassed * 0.05)));
};
if (currentPlanet >= 5){
speedP = (speedP + 1);
};
if (currentPlanet == 0){
speedP = (speedP + ((planets[0][0].currentFrame - 1) / 10));
};
};
if (kA){
speedP = (speedP - 0.2);
if (inside){
speedP = (speedP - 0.4);
};
if (currentPlanet == 1){
speedP = (speedP - (0.2 - (gassed * 0.05)));
};
if (currentPlanet == 0){
speedP = (speedP - 0.16);
};
if (currentPlanet >= 5){
speedP = (speedP - 1);
};
if (currentPlanet == 0){
speedP = (speedP - ((planets[0][0].currentFrame - 1) / 10));
};
};
speedP = (speedP * 0.92);
ang.rotate((speedP * speedFactor));
speed = new Vector(((speedP * ang.length) * (Math.PI / 180)), 0);
speed.rotate(Vector.angle2(new Vector(0, -1), ang));
ang.length = planets[currentPlanet][2];
if (inside){
ang.length = planets[currentPlanet][3];
};
if (!floating){
bobber.x = (ang.x + planets[currentPlanet][0].x);
bobber.y = (ang.y + planets[currentPlanet][0].y);
};
};
};
grounded = false;
i = (planets.length - 1);
while (i >= 0) {
if (!(((i == 0)) && ((planets[0][0].currentFrame == 6)))){
if (!(((((i >= 5)) && ((i <= 8)))) && ((planets[i][4] == 0)))){
planet = planets[i][0];
planet1mass = planets[i][1];
planet1r = planets[i][2];
rad = new Vector((planet.x - bobber.x), (planet.y - bobber.y));
if ((((((((((rad.length < ((planet1r + charH) + 50))) && (!(floating)))) && ((i <= 4)))) || ((((((((bobber.currentFrame == 6)) && ((rad.length < (planet1r + 180))))) && (!(floating)))) && ((i <= 4)))))) || ((((((rad.length < (planet1r + charH))) && (!(floating)))) && ((i > 4)))))){
bobber.rotation = (bobber.rotation + (Vector.angle2(new Vector(0, 1).rotateNew(bobber.rotation), rad) / 4));
};
if (((inside) && ((i == 2)))){
if (rad.length > ((planet1r + charH) + 6)){
inside = false;
j = 0;
while (j < 10) {
pp = (particles.push(new Array(new Particle2(), new Vector(0, ((Math.random() * 3) + 10)), new Vector((Gravity.x / 3), (Gravity.y / 3)), 0.99, ((Math.random() * 100) - 50), 20)) - 1);
particles[pp][1].rotate(((Vector.angle2(new Vector(0, -1), Gravity) + (Math.random() * 30)) - 15));
particles[pp][0].x = (planets[2][0].x - ((rad.x / rad.length) * planets[2][2]));
particles[pp][0].y = (planets[2][0].y - ((rad.y / rad.length) * planets[2][2]));
particles[pp][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
particles[pp][0].rotation = (Math.random() * 360);
effects.addChild(particles[pp][0]);
j = (j + 1);
};
nnn = (splashes.push(new Poof()) - 1);
effects.addChild(splashes[nnn]);
splashes[nnn].x = (planets[currentPlanet][0].x - ((rad.x / rad.length) * planets[2][2]));
splashes[nnn].y = (planets[currentPlanet][0].y - ((rad.y / rad.length) * planets[2][2]));
splashes[nnn].rotation = Vector.angle2(new Vector(0, 1), rad);
} else {
planet1r = planets[i][3];
};
};
if (rad.length < (planet1r + charH)){
if ((((i == 0)) && ((planets[0][0].currentFrame == 5)))){
planets[0][0].gotoAndStop(6);
ended = true;
sfx = SFX[5].play();
transformSFX.volume = 3;
speed.scale(0.5);
if (speed.length > 5){
speed.length = 5;
};
planets[0][1] = 0;
j = 0;
while (j < 40) {
pp = (particles.push(new Array(new Particle1(), new Vector(((Math.random() * 10) + 5), 0), new Vector(0, 0), 0.95, ((Math.random() * 100) - 50), 40)) - 1);
particles[pp][1].rotate((Math.random() * 360));
particles[pp][0].x = planets[0][0].x;
particles[pp][0].y = planets[0][0].y;
particles[pp][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
particles[pp][0].rotation = (Math.random() * 360);
effects.addChild(particles[pp][0]);
j = (j + 1);
};
} else {
rad.length = (planet1r + charH);
bobber.x = (planet.x - rad.x);
bobber.y = (planet.y - rad.y);
rad.length = (Vector.dot(rad, speed) / rad.length);
speed.x = (speed.x - (rad.x * 1.2));
speed.y = (speed.y - (rad.y * 1.2));
rspeed = 0;
grounded = true;
if ((((Math.abs((Vector.dot(speed, rad) / rad.length)) < 25)) && (!(floating)))){
if (controls == 1){
speedP = ((Vector.dot(speed.perpendicular(), rad) / (rad.length * planet1r)) * (180 / Math.PI));
speed = new Vector(((speedP * planet1r) * (Math.PI / 180)), 0);
speed.rotate(Vector.angle2(new Vector(0, 1), rad));
};
controls = 2;
if (currentPlanet != i){
currentPlanet = i;
};
if ((((i <= 4)) && (!((names.currentFrame == (i + 1)))))){
namesT = 200;
names.gotoAndStop((i + 1));
};
};
};
};
};
};
i = (i - 1);
};
};
if (((((((!((bobber.currentFrame == 1))) && (!((bobber.currentFrame == 2))))) && (!((bobber.currentFrame == 7))))) && (((floating) || ((Gravity.length < 1)))))){
bobber.gotoAndStop(1);
};
if ((((((currentPlanet == 9)) && (floating))) && ((controls == 2)))){
controls = 1;
grounded = false;
};
if (mooned != 4){
i = 0;
while (i < 4) {
disss = new Vector((planets[4][0].x - planets[(5 + i)][0].x), (planets[4][0].y - planets[(5 + i)][0].y));
if (disss.length < ((planets[4][2] + planets[(5 + i)][2]) + 100)){
planets[(5 + i)][4] = 0;
if ((((controls == 2)) && ((currentPlanet == (5 + i))))){
controls = 1;
grounded = false;
};
};
if ((((disss.length < (planets[4][2] + planets[(5 + i)][2]))) && (planets[(5 + i)][0].visible))){
j = 0;
while (j < 3) {
pp = (particles.push(new Array(new Particle2(), new Vector(0, ((Math.random() * 3) + 10)), new Vector((Gravity.x / 3), (Gravity.y / 3)), 0.99, ((Math.random() * 100) - 50), 20)) - 1);
particles[pp][1].rotate(((Vector.angle2(new Vector(0, -1), Gravity) + (Math.random() * 60)) - 30));
disst = new Vector(disss.x, disss.y);
disst.norm();
disst.rotate(((Math.random() * 6) - 3));
particles[pp][0].x = (planets[4][0].x - (disst.x * planets[4][2]));
particles[pp][0].y = (planets[4][0].y - (disst.y * planets[4][2]));
particles[pp][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
particles[pp][0].rotation = (Math.random() * 360);
effects.addChild(particles[pp][0]);
j = (j + 1);
};
nnn = (splashes.push(new Smoke()) - 1);
effects.addChild(splashes[nnn]);
dissst = new Vector(disss.x, disss.y);
dissst.norm();
dissst.rotate(((Math.random() * 6) - 3));
splashes[nnn].x = (((planets[4][0].x - (dissst.x * planets[4][2])) + (Math.random() * 40)) - 20);
splashes[nnn].y = (((planets[4][0].y - (dissst.y * planets[4][2])) + (Math.random() * 40)) - 20);
splashes[nnn].rotation = (Math.random() * 360);
if (planets[4][0].currentFrame == 1){
planets[4][0].gotoAndStop(2);
sfx = SFX[6].play();
transformSFX.volume = 1.5;
};
};
if (disss.length < ((planets[4][2] - planets[(5 + i)][2]) - 50)){
planets[(5 + i)][3].scale(0);
if ((((planets[4][0].currentFrame == 2)) && (planets[(5 + i)][0].visible))){
planets[4][0].gotoAndStop(1);
mooned = (mooned + 1);
sfx.stop();
sfx = SFX[2].play();
transformSFX.volume = 2;
};
planets[(5 + i)][0].visible = false;
};
if ((((((currentPlanet == (5 + i))) && ((controls == 2)))) && (grounded))){
if ((((planets[(5 + i)][0].ani.currentFrame == 1)) && ((talph == 0)))){
planets[(5 + i)][0].ani.gotoAndStop(2);
talph = 1;
};
if (talph == 1){
talk.visible = true;
if (i == 0){
talk.txt.text = "\nI'll never go back home.";
};
if (i == 1){
talk.txt.text = "\nI'll go home when he leaves!";
};
if (i == 2){
talk.txt.text = "\nPersonally, I think hes pretty cool";
};
if (i == 3){
talk.txt.text = "\nI hate him so much...";
};
talk.bubb.scaleX = -1;
nnnn = new Vector(((talk.bubb.scaleX * -130) * talk.scaleX), (-100 * talk.scaleY));
nnnn.rotate(Vector.angle2(new Vector(0, -1), new Vector(0, -1).rotateNew(planets[(5 + i)][0].rotation)));
talk.x = (planets[(5 + i)][0].x + nnnn.x);
talk.y = (planets[(5 + i)][0].y + nnnn.y);
talk.rotation = planets[(5 + i)][0].rotation;
};
} else {
if (planets[(5 + i)][0].ani.currentFrame == 2){
planets[(5 + i)][0].ani.gotoAndStop(1);
talph = 0;
};
};
if ((((((currentPlanet == (5 + i))) && ((controls == 2)))) && (grounded))){
aaan = new Vector((planets[(5 + i)][0].x - bobber.x), (planets[(5 + i)][0].y - bobber.y));
if (Vector.angle(aaan, Gravity) < 30){
aaan.norm();
planets[(5 + i)][3].x = (planets[(5 + i)][3].x + (aaan.x / 7));
planets[(5 + i)][3].y = (planets[(5 + i)][3].y + (aaan.y / 7));
};
};
if (planets[(5 + i)][4] != 0){
planets[(5 + i)][3].scale(0.95);
} else {
if (planets[(5 + i)][3].length < 1){
planets[(5 + i)][3].length = 1;
};
};
planets[(5 + i)][0].x = (planets[(5 + i)][0].x + planets[(5 + i)][3].x);
planets[(5 + i)][0].y = (planets[(5 + i)][0].y + planets[(5 + i)][3].y);
i = (i + 1);
};
};
if ((((mooned == 4)) && ((planets[4][0].currentFrame == 1)))){
planets[4][0].gotoAndStop(3);
};
bobber.rotation = (bobber.rotation + (rspeed * speedFactor));
if (((latching) && (!(anchored)))){
latching = false;
anchored = true;
bobbery = new Vector(0, -(charH)).rotateNew(bobber.rotation);
center.x = currentCloud.x;
center.y = currentCloud.y;
pos.x = ((bobber.x - bobbery.x) - center.x);
pos.y = ((bobber.y - bobbery.y) - center.y);
len = pos.length;
if (len < (100 + (Gravity.length * 20))){
len = (100 + (Gravity.length * 20));
};
if (len > 600){
len = 600;
};
rope.graphics.lineStyle(4, 0xD9D9D9);
rope.graphics.moveTo((bobber.x + bobbery.x), (bobber.y + bobbery.y));
rope.graphics.lineTo(((bobber.x + bobbery.x) - ((2 * ((bobber.x + bobbery.x) - center.x)) / 3)), ((bobber.y + bobbery.y) - ((2 * ((bobber.y + bobbery.y) - center.y)) / 3)));
rope.graphics.lineStyle(1, 0xFFFFFF);
rope.graphics.moveTo((bobber.x + bobbery.x), (bobber.y + bobbery.y));
rope.graphics.lineTo(((bobber.x + bobbery.x) - ((2 * ((bobber.x + bobbery.x) - center.x)) / 3)), ((bobber.y + bobbery.y) - ((2 * ((bobber.y + bobbery.y) - center.y)) / 3)));
};
if (((((((kM) && (!(anchored)))) && (!(latching)))) && (!((bobber.currentFrame == 2))))){
shortestC = -1;
distC = (150 * 150);
i = 0;
while (i < clouds.length) {
if ((((((((clouds[i][1] == 0)) || ((clouds[i][1] == 3)))) && (!(inside)))) || ((((clouds[i][1] == 2)) && (inside))))){
if ((((clouds[i][0].x - mc.mouseX) * (clouds[i][0].x - mc.mouseX)) + ((clouds[i][0].y - mc.mouseY) * (clouds[i][0].y - mc.mouseY))) < distC){
if ((((clouds[i][0].x - bobber.x) * (clouds[i][0].x - bobber.x)) + ((clouds[i][0].y - bobber.y) * (clouds[i][0].y - bobber.y))) < (600 * 600)){
distC = (((clouds[i][0].x - mc.mouseX) * (clouds[i][0].x - mc.mouseX)) + ((clouds[i][0].y - mc.mouseY) * (clouds[i][0].y - mc.mouseY)));
shortestC = i;
};
};
};
i = (i + 1);
};
if (shortestC != -1){
center.x = clouds[shortestC][0].x;
center.y = clouds[shortestC][0].y;
currentCloud = clouds[shortestC][0];
bobber.gotoAndStop(2);
};
};
if ((((((((bobber.currentFrame == 2)) && (!((bobber.ani == undefined))))) && ((bobber.ani.currentFrame == 3)))) && (!(latching)))){
latching = true;
bobbery = new Vector(0, -(charH)).rotateNew(bobber.rotation);
rope.graphics.lineStyle(4, 0xD9D9D9);
rope.graphics.moveTo((bobber.x + bobbery.x), (bobber.y + bobbery.y));
rope.graphics.lineTo(((bobber.x + bobbery.x) - (((bobber.x + bobbery.x) - center.x) / 3)), ((bobber.y + bobbery.y) - (((bobber.y + bobbery.y) - center.y) / 3)));
rope.graphics.lineStyle(1, 0xFFFFFF);
rope.graphics.moveTo((bobber.x + bobbery.x), (bobber.y + bobbery.y));
rope.graphics.lineTo(((bobber.x + bobbery.x) - (((bobber.x + bobbery.x) - center.x) / 3)), ((bobber.y + bobbery.y) - (((bobber.y + bobbery.y) - center.y) / 3)));
};
if (((((((((((!(anchored)) && (!(latching)))) && ((bobber.currentFrame == 2)))) && (!((bobber.ani == undefined))))) && ((bobber.ani.currentFrame == 6)))) && ((controls == 1)))){
bobber.gotoAndStop(1);
};
if ((((bobber.currentFrame == 2)) && (!(anchored)))){
rspeed = 0;
bobber.rotation = (bobber.rotation + (Vector.angle2(new Vector(0, -1).rotateNew(bobber.rotation), new Vector((currentCloud.x - bobber.x), (currentCloud.y - bobber.y))) / 3));
};
if (!kM){
anchored = false;
latching = false;
currentCloud = null;
if (bobber.currentFrame == 2){
bobber.gotoAndStop(1);
};
};
speedC.x = -(cam.x);
speedC.y = -(cam.y);
cam.x = (cam.x + ((cam.x - bobber.x) / -4));
cam.y = (cam.y + ((cam.y - bobber.y) / -4));
speedC.x = (speedC.x + cam.x);
speedC.y = (speedC.y + cam.y);
area = ((range * Math.abs(speedC.x)) + ((range - Math.abs(speedC.x)) * Math.abs(speedC.y)));
cn = (area * density);
while (Math.random() < cn) {
ass = false;
if (Math.random() > (Gravity.length - 0.3)){
ass = true;
};
cn--;
if (((((ass) && ((Math.random() > 0.5)))) || (!(ass)))){
nnn = (clouds.push(new Array(new Cloud(), 0)) - 1);
container2.addChild(clouds[nnn][0]);
if (Math.random() < (Math.abs((range * speedC.x)) / area)){
clouds[nnn][0].x = (((cam.x + (Math.random() * speedC.x)) + ((range / 2) * (Math.abs(speedC.x) / speedC.x))) - speedC.x);
clouds[nnn][0].y = ((cam.y + (Math.random() * range)) - (range / 2));
} else {
clouds[nnn][0].x = ((cam.x + (Math.random() * range)) - (range / 2));
clouds[nnn][0].y = (((cam.y + (Math.random() * speedC.y)) + ((range / 2) * (Math.abs(speedC.y) / speedC.y))) - speedC.y);
};
if (!ass){
grav = new Vector(0, 0);
i = 0;
while (i < 5) {
planet = planets[i][0];
planet1mass = planets[i][1];
planet1r = planets[i][2];
GR = new Vector((planet.x - clouds[nnn][0].x), (planet.y - clouds[nnn][0].y));
str = GR.length;
GR.length = (planet1mass / (str * str));
grav.x = (grav.x + GR.x);
grav.y = (grav.y + GR.y);
i = (i + 1);
};
clouds[nnn][0].rotation = Vector.angle2(new Vector(0, 1), grav);
clouds[nnn][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
} else {
clouds[nnn][0].rotation = (Math.random() * 360);
clouds[nnn][0].gotoAndStop((Math.floor((Math.random() * 6)) + 5));
};
clouds[nnn][0].scaleX = ((Math.round(Math.random()) - 0.5) * 2);
j = 0;
while (j < planets.length) {
planet2 = planets[j][0];
planet1mass2 = planets[j][1];
planet1r2 = planets[j][2];
if (j == 3){
planet1r2 = planets[3][3];
};
if (j == 1){
if ((((clouds[nnn][0].x - planet2.x) * (clouds[nnn][0].x - planet2.x)) + ((clouds[nnn][0].y - planet2.y) * (clouds[nnn][0].y - planet2.y))) < ((planet1r2 + 100) * (planet1r2 + 100))){
container2.removeChild(clouds[nnn][0]);
clouds.splice(nnn, 1);
break;
};
} else {
if (j >= 5){
if ((((clouds[nnn][0].x - planet2.x) * (clouds[nnn][0].x - planet2.x)) + ((clouds[nnn][0].y - planet2.y) * (clouds[nnn][0].y - planet2.y))) < ((planet1r2 + 25) * (planet1r2 + 25))){
container2.removeChild(clouds[nnn][0]);
clouds.splice(nnn, 1);
break;
};
} else {
if ((((clouds[nnn][0].x - planet2.x) * (clouds[nnn][0].x - planet2.x)) + ((clouds[nnn][0].y - planet2.y) * (clouds[nnn][0].y - planet2.y))) < ((planet1r2 + 200) * (planet1r2 + 200))){
container2.removeChild(clouds[nnn][0]);
clouds.splice(nnn, 1);
break;
};
};
};
j = (j + 1);
};
};
};
numcg = true;
bbbbbbb = false;
i = 0;
while (i < clouds.length) {
if (clouds[i][1] == 0){
if ((((Math.abs((cam.x - clouds[i][0].x)) > (range / 2))) || ((Math.abs((cam.y - clouds[i][0].y)) > (range / 2))))){
container2.removeChild(clouds[i][0]);
clouds.splice(i, 1);
i = (i - 1);
};
if (((inside) && ((currentCloud == clouds[i][0])))){
anchored = false;
latching = false;
currentCloud = null;
if (bobber.currentFrame == 2){
bobber.gotoAndStop(1);
};
};
};
if (clouds[i][1] == 2){
clouds[i][0].visible = foregrounds[1].planet.visible;
if ((((((((currentCloud == clouds[i][0])) && ((clouds[i][0].ani.currentFrame == 1)))) && (anchored))) && (!(((((((((grounded) || ((controls == 2)))) || (busty))) || (!(inside)))) && (!(gemed))))))){
if (gemCounter != -1){
clouds[i][0].ani.gotoAndStop(2);
sfx = gemSounds[gemCounter].play();
transformSFX.volume = 1;
gemCounter = (gemCounter + 1);
};
};
if (((((((((((grounded) || ((controls == 2)))) || (busty))) || (!(inside)))) && ((clouds[i][0].ani.currentFrame == 2)))) && (!(gemed)))){
clouds[i][0].ani.gotoAndStop(1);
if (gemCounter != -1){
sfx = SFX[3].play();
transformSFX.volume = 2;
};
gemCounter = -1;
};
if (((!(inside)) && ((currentCloud == clouds[i][0])))){
anchored = false;
latching = false;
currentCloud = null;
if (bobber.currentFrame == 2){
bobber.gotoAndStop(1);
};
};
if (clouds[i][0].ani.currentFrame == 1){
numcg = false;
};
};
if (clouds[i][1] == 3){
if (currentCloud == clouds[i][0]){
bbbbbbb = true;
pollupy = (pollupy + vSPEED);
CFF = (Math.abs(pollupy) / 3);
if (CFF <= 1){
CFF = 2;
};
if (CFF >= 201){
clouds[i][0].gaser.gotoAndPlay(201);
j = 0;
while (j < 20) {
pp = (particles.push(new Array(new Particle1(), new Vector(((Math.random() * 10) + 5), 0), new Vector(0, 0), 0.97, ((Math.random() * 100) - 50), 40)) - 1);
particles[pp][1].rotate((Math.random() * 360));
particles[pp][0].x = clouds[i][0].x;
particles[pp][0].y = clouds[i][0].y;
particles[pp][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
particles[pp][0].rotation = (Math.random() * 360);
effects.addChild(particles[pp][0]);
j = (j + 1);
};
sfx = SFX[1].play();
transformSFX.volume = 1;
clouds[i][0].gas.play();
gassed = (gassed - 1);
clouds[i][1] = -1;
anchored = false;
latching = false;
currentCloud = null;
if (bobber.currentFrame == 2){
bobber.gotoAndStop(1);
};
} else {
if (clouds[i][0].gaser.currentFrame != CFF){
clouds[i][0].gaser.gotoAndStop(CFF);
stage.invalidate();
};
};
} else {
if (((!((clouds[i][0].gaser.currentFrame == 1))) && ((clouds[i][1] == 3)))){
CFF = (Math.abs(pollupy) / 3);
if (CFF <= 0){
CFF = 1;
};
if (CFF >= 201){
clouds[i][0].gaser.gotoAndPlay(201);
j = 0;
while (j < 20) {
pp = (particles.push(new Array(new Particle1(), new Vector(((Math.random() * 10) + 5), 0), new Vector(0, 0), 0.97, ((Math.random() * 100) - 50), 40)) - 1);
particles[pp][1].rotate((Math.random() * 360));
particles[pp][0].x = clouds[i][0].x;
particles[pp][0].y = clouds[i][0].y;
particles[pp][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
particles[pp][0].rotation = (Math.random() * 360);
effects.addChild(particles[pp][0]);
j = (j + 1);
};
sfx = SFX[1].play();
transformSFX.volume = 1;
gassed = (gassed - 1);
clouds[i][1] = -1;
anchored = false;
latching = false;
currentCloud = null;
if (bobber.currentFrame == 2){
bobber.gotoAndStop(1);
};
} else {
if (clouds[i][0].gaser.currentFrame != CFF){
clouds[i][0].gaser.gotoAndStop(CFF);
stage.invalidate();
};
};
};
};
};
i = (i + 1);
};
if ((((gemCounter == -1)) && (!(anchored)))){
gemCounter = 0;
};
if (pollupy != 0){
if (pollupy > 0){
pollupy = (pollupy - 3);
if (pollupy < 0){
pollupy = 0;
};
} else {
pollupy = (pollupy + 3);
if (pollupy > 0){
pollupy = 0;
};
};
};
if (((!(bbbbbbb)) && (!((pollupy == 0))))){
pollupy = Math.abs(pollupy);
pollupy = (pollupy - 15);
if (pollupy < 0){
pollupy = 0;
};
};
if (numcg){
gemed = true;
};
alien();
speedC.scale(2);
sarea = ((srange * Math.abs(speedC.x)) + ((srange - Math.abs(speedC.x)) * Math.abs(speedC.y)));
sn = (sarea * sdensity);
while (Math.random() < sn) {
sn--;
nnn = (stars.push(new Star()) - 1);
starsC.addChild(stars[nnn]);
if (Math.random() < (Math.abs((srange * speedC.x)) / sarea)){
stars[nnn].x = (((cam.x + (Math.random() * speedC.x)) + ((srange / 2) * (Math.abs(speedC.x) / speedC.x))) - speedC.x);
stars[nnn].y = ((cam.y + (Math.random() * srange)) - (srange / 2));
} else {
stars[nnn].x = ((cam.x + (Math.random() * srange)) - (srange / 2));
stars[nnn].y = (((cam.y + (Math.random() * speedC.y)) + ((srange / 2) * (Math.abs(speedC.y) / speedC.y))) - speedC.y);
};
stars[nnn].rotation = (Math.random() * 360);
stars[nnn].gotoAndStop((Math.floor((Math.random() * 9)) + 1));
};
i = 0;
while (i < stars.length) {
stars[i].x = (stars[i].x + (speedC.x / 3));
stars[i].y = (stars[i].y + (speedC.y / 3));
if (stars[i].visible){
if ((((stars[i].currentFrame >= 4)) && ((Math.random() < 0.1)))){
stars[i].visible = !(stars[i].visible);
};
} else {
if ((((stars[i].currentFrame >= 4)) && ((Math.random() < 0.5)))){
stars[i].visible = !(stars[i].visible);
};
};
if ((((Math.abs((cam.x - stars[i].x)) > (srange / 2))) || ((Math.abs((cam.y - stars[i].y)) > (srange / 2))))){
starsC.removeChild(stars[i]);
stars.splice(i, 1);
i = (i - 1);
};
i = (i + 1);
};
barea = ((brange * Math.abs(speedC.x)) + ((brange - Math.abs(speedC.x)) * Math.abs(speedC.y)));
bn = (bn + (barea * bdensity));
while (Math.random() < bn) {
bn--;
if (crazies.length <= 5){
if (Math.random() < 0.3){
nnn = (crazies.push(new Array(new Crazy(), 1)) - 1);
back.addChild(crazies[nnn][0]);
if (Math.random() < (Math.abs((brange * speedC.x)) / barea)){
crazies[nnn][0].x = (((cam.x + (Math.random() * speedC.x)) + ((brange / 2) * (Math.abs(speedC.x) / speedC.x))) - speedC.x);
crazies[nnn][0].y = ((cam.y + (Math.random() * brange)) - (brange / 2));
} else {
crazies[nnn][0].x = ((cam.x + (Math.random() * brange)) - (brange / 2));
crazies[nnn][0].y = (((cam.y + (Math.random() * speedC.y)) + ((brange / 2) * (Math.abs(speedC.y) / speedC.y))) - speedC.y);
};
crazies[nnn][0].rotation = (Math.random() * 360);
crazies[nnn][0].scaleX = ((Math.round(Math.random()) - 0.5) * 2);
crazies[nnn][0].gotoAndStop((Math.floor((Math.random() * 4)) + 1));
if (won[(crazies[nnn][0].currentFrame - 1)] == false){
crazies[nnn][0].gotoAndStop(5);
};
} else {
nnn = (crazies.push(new Array(new Planets(), 2)) - 1);
back2.addChild(crazies[nnn][0]);
if (Math.random() < (Math.abs((brange * speedC.x)) / barea)){
crazies[nnn][0].x = (((cam.x + (Math.random() * speedC.x)) + ((brange / 2) * (Math.abs(speedC.x) / speedC.x))) - speedC.x);
crazies[nnn][0].y = ((cam.y + (Math.random() * brange)) - (brange / 2));
} else {
crazies[nnn][0].x = ((cam.x + (Math.random() * brange)) - (brange / 2));
crazies[nnn][0].y = (((cam.y + (Math.random() * speedC.y)) + ((brange / 2) * (Math.abs(speedC.y) / speedC.y))) - speedC.y);
};
crazies[nnn][0].rotation = (Math.random() * 360);
crazies[nnn][0].scaleX = ((Math.round(Math.random()) - 0.5) * 2);
crazies[nnn][0].gotoAndStop((Math.floor((Math.random() * 11)) + 1));
};
};
};
i = 0;
while (i < crazies.length) {
if (crazies[i][1] == 1){
crazies[i][0].x = (crazies[i][0].x + (speedC.x / 4));
crazies[i][0].y = (crazies[i][0].y + (speedC.y / 4));
if ((((Math.abs((cam.x - crazies[i][0].x)) > (brange / 2))) || ((Math.abs((cam.y - crazies[i][0].y)) > (brange / 2))))){
back.removeChild(crazies[i][0]);
crazies.splice(i, 1);
i = (i - 1);
};
} else {
crazies[i][0].x = (crazies[i][0].x + (speedC.x / 2.5));
crazies[i][0].y = (crazies[i][0].y + (speedC.y / 2.5));
if ((((Math.abs((cam.x - crazies[i][0].x)) > (brange / 2))) || ((Math.abs((cam.y - crazies[i][0].y)) > (brange / 2))))){
back2.removeChild(crazies[i][0]);
crazies.splice(i, 1);
i = (i - 1);
};
};
i = (i + 1);
};
if (bg.b1.alpha <= 0){
bg.b1.alpha = 0;
bg.b1.visible = false;
} else {
bg.b1.visible = true;
};
if (bg.b2.alpha <= 0){
bg.b2.alpha = 0;
bg.b2.visible = false;
} else {
bg.b2.visible = true;
};
if (bg.b3.alpha <= 0){
bg.b3.alpha = 0;
bg.b3.visible = false;
} else {
bg.b3.visible = true;
};
if (bg.b4.alpha <= 0){
bg.b4.alpha = 0;
bg.b4.visible = false;
} else {
bg.b4.visible = true;
};
if (bg.b5.alpha <= 0){
bg.b5.alpha = 0;
bg.b5.visible = false;
} else {
bg.b5.visible = true;
};
dir.alpha = ((1 - ((((bg.b1.alpha + bg.b2.alpha) + bg.b3.alpha) + bg.b4.alpha) + bg.b5.alpha)) * 3);
if (dir.alpha <= 0){
dir.visible = false;
} else {
dir.visible = true;
};
if (((floating) && ((Math.random() < 0.2)))){
nnn = (bubbles.push(new Bubble()) - 1);
bubblesC.addChild(bubbles[nnn]);
bobbery = new Vector(0, -(charH)).rotateNew(bobber.rotation);
bubbles[nnn].x = (bobber.x + bobbery.x);
bubbles[nnn].y = (bobber.y + bobbery.y);
bubbles[nnn].gotoAndStop((Math.floor((Math.random() * 3)) + 1));
};
i = 0;
while (i < bubbles.length) {
rrr = new Vector((bubbles[i].x - planets[3][0].x), (bubbles[i].y - planets[3][0].y));
if (rrr.length > planets[3][3]){
bubblesC.removeChild(bubbles[i]);
bubbles.splice(i, 1);
i = (i - 1);
} else {
rrr.norm();
rrr.scale(2);
bubbles[i].x = (bubbles[i].x + ((rrr.x + Math.random()) - 0.5));
bubbles[i].y = (bubbles[i].y + ((rrr.y + Math.random()) - 0.5));
};
i = (i + 1);
};
if (planets[3][0].visible){
i = 0;
while (i < fish.length) {
fish[i][0].visible = true;
rr = new Vector((fish[i][0].x - planets[3][0].x), (fish[i][0].y - planets[3][0].y));
if (rr.length == 0){
rr.x = 0.1;
};
fish[i][0].rotation = Vector.angle2(new Vector(0, -1), rr);
fish[i][1].rotate(fish[i][2]);
if (Math.random() < 0.05){
fish[i][2] = ((Math.random() * 10) - 5);
};
if (rr.length > (planets[3][3] - 50)){
fish[i][1].x = (fish[i][1].x - (rr.x / rr.length));
fish[i][1].y = (fish[i][1].y - (rr.y / rr.length));
};
if (rr.length < (planets[3][2] + 30)){
fish[i][1].x = (fish[i][1].x + (rr.x / rr.length));
fish[i][1].y = (fish[i][1].y + (rr.y / rr.length));
};
if (Vector.dot(rr.perpendicular(), fish[i][1]) < 0){
fish[i][0].scaleX = -1;
} else {
fish[i][0].scaleX = 1;
};
if (fish[i][3] == 1){
if (fish[i][1].length < 1){
fish[i][1].length = 1;
};
if (fish[i][1].length > 4){
fish[i][1].length = 4;
};
} else {
if (fish[i][1].length < 0.3){
fish[i][1].length = 0.3;
};
if (fish[i][1].length > 2){
fish[i][1].length = 2;
};
};
fish[i][0].x = (fish[i][0].x + fish[i][1].x);
fish[i][0].y = (fish[i][0].y + fish[i][1].y);
if (((fish[i][0].box.hitTestObject(bobber.mouth)) && ((fish[i][3] == 1)))){
if (bobber.currentFrame != 7){
bobber.gotoAndStop(7);
sfx = SFX[0].play();
transformSFX.volume = 1;
};
if (fish[i][3] == 1){
fished = (fished - 1);
};
bubblesC.removeChild(fish[i][0]);
fish.splice(i, 0);
i = (i - 1);
};
i = (i + 1);
};
} else {
i = 0;
while (i < fish.length) {
fish[i][0].visible = false;
i = (i + 1);
};
};
i = 0;
while (i < splashes.length) {
if (splashes[i].currentFrame == 20){
effects.removeChild(splashes[i]);
splashes.splice(i, 1);
i = (i - 1);
};
i = (i + 1);
};
i = 0;
while (i < particles.length) {
particles[i][1].x = (particles[i][1].x + particles[i][2].x);
particles[i][1].y = (particles[i][1].y + particles[i][2].y);
particles[i][1].scale(particles[i][3]);
particles[i][0].x = (particles[i][0].x + particles[i][1].x);
particles[i][0].y = (particles[i][0].y + particles[i][1].y);
particles[i][0].rotation = (particles[i][0].rotation + particles[i][4]);
var _local3 = particles[i];
var _local4 = 5;
var _local5 = (_local3[_local4] - 1);
_local3[_local4] = _local5;
if (particles[i][5] < 0){
particles[i][0].alpha = (particles[i][0].alpha - 0.08);
};
if (particles[i][0].alpha <= 0){
effects.removeChild(particles[i][0]);
particles.splice(i, 1);
i = (i - 1);
};
i = (i + 1);
};
if (controls == 2){
if (kA){
bobber.scaleX = 1;
};
if (kD){
bobber.scaleX = -1;
};
};
if ((((bobber.currentFrame == 5)) && ((bobber.ani.currentFrame == 3)))){
bobber.gotoAndStop(3);
};
ttt++;
if (ttt > 4){
ttt = 0;
};
if ((((bobber.currentFrame == 4)) && ((ttt == 0)))){
nnn = (splashes.push(new Dust()) - 1);
effects.addChild(splashes[nnn]);
GR = new Vector((planets[currentPlanet][0].x - bobber.x), (planets[currentPlanet][0].y - bobber.y));
GR.length = (GR.length - charH);
splashes[nnn].x = (planets[currentPlanet][0].x - GR.x);
splashes[nnn].scaleX = bobber.scaleX;
splashes[nnn].y = (planets[currentPlanet][0].y - GR.y);
splashes[nnn].rotation = Vector.angle2(new Vector(0, 1), GR);
};
if ((((((((controls == 2)) && (!((bobber.currentFrame == 3))))) && (!((bobber.currentFrame == 2))))) && (!((bobber.currentFrame == 5))))){
if (bobber.currentFrame == 4){
if (((!(kA)) && (!(kD)))){
bobber.gotoAndStop(3);
};
} else {
bobber.gotoAndStop(5);
nnn = (splashes.push(new Poof()) - 1);
effects.addChild(splashes[nnn]);
GR = new Vector((planets[currentPlanet][0].x - (bobber.x + speed.x)), (planets[currentPlanet][0].y - (bobber.y + speed.y)));
GR.length = (GR.length - charH);
splashes[nnn].x = (planets[currentPlanet][0].x - GR.x);
splashes[nnn].y = (planets[currentPlanet][0].y - GR.y);
splashes[nnn].rotation = Vector.angle2(new Vector(0, 1), GR);
};
};
if ((((((((((controls == 2)) && (((kA) || (kD))))) && (!((bobber.currentFrame == 4))))) && (!((bobber.currentFrame == 2))))) && (!((bobber.currentFrame == 5))))){
bobber.gotoAndStop(4);
ttt = 4;
};
if (faderTIM > 0){
fader = 3;
faderTIM = (faderTIM - 1);
} else {
fader = 1;
};
Gravity = new Vector((planets[0][0].x - bobber.x), (planets[0][0].y - bobber.y));
strn = Gravity.length;
Gravity.length = ((672.35 / strn) * 2);
if (Gravity.length > 1){
Gravity.length = 1;
};
dir.d1.rotation = Vector.angle2(new Vector(0, -1), Gravity);
transform1.volume = ((Gravity.length * 1.5) / fader);
bg.b1.alpha = ((Gravity.length * 1.2) - 0.2);
Gravity = new Vector((planets[1][0].x - bobber.x), (planets[1][0].y - bobber.y));
strn = Gravity.length;
Gravity.length = ((672.35 / strn) * 2);
if (Gravity.length > 1){
Gravity.length = 1;
};
dir.d2.rotation = Vector.angle2(new Vector(0, -1), Gravity);
if (gassed == 0){
transform2.volume = (0.65 / fader);
if (won[0] == false){
flasher.play();
planets[1][0].gotoAndStop(2);
won[0] = true;
transformW.volume = 1.5;
channelW.soundTransform = transformW;
channelW = win1.play();
faderTIM = 120;
};
} else {
transform2.volume = (Gravity.length / fader);
};
bg.b2.alpha = ((Gravity.length * 1.2) - 0.2);
Gravity = new Vector((planets[2][0].x - bobber.x), (planets[2][0].y - bobber.y));
strn = Gravity.length;
Gravity.length = ((672.35 / strn) * 2);
if (Gravity.length > 1){
Gravity.length = 1;
};
dir.d3.rotation = Vector.angle2(new Vector(0, -1), Gravity);
if (gemed){
transform3.volume = (1 / fader);
if (won[1] == false){
flasher.play();
planets[2][0].gotoAndStop(2);
foregrounds[1].gotoAndStop(2);
stage.invalidate();
won[1] = true;
transformW.volume = 1.75;
channelW.soundTransform = transformW;
channelW = win2.play();
faderTIM = 120;
};
} else {
transform3.volume = ((Gravity.length * 1.3) / fader);
};
bg.b3.alpha = ((Gravity.length * 1.2) - 0.2);
Gravity = new Vector((planets[3][0].x - bobber.x), (planets[3][0].y - bobber.y));
strn = Gravity.length;
Gravity.length = ((672.35 / strn) * 2);
if (Gravity.length > 1){
Gravity.length = 1;
};
dir.d4.rotation = Vector.angle2(new Vector(0, -1), Gravity);
if (fished == 0){
transform4.volume = (0.8 / fader);
if (won[2] == false){
flasher.play();
planets[3][0].gotoAndStop(2);
foregrounds[2].gotoAndStop(2);
planets[9][0].gotoAndStop(2);
won[2] = true;
transformW.volume = 1.5;
channelW.soundTransform = transformW;
channelW = win3.play();
faderTIM = 120;
};
} else {
transform4.volume = ((Gravity.length * 1.3) / fader);
};
bg.b4.alpha = ((Gravity.length * 1.2) - 0.2);
Gravity = new Vector((planets[4][0].x - bobber.x), (planets[4][0].y - bobber.y));
strn = Gravity.length;
Gravity.length = ((672.35 / strn) * 2);
if (Gravity.length > 1){
Gravity.length = 1;
};
dir.d5.rotation = Vector.angle2(new Vector(0, -1), Gravity);
if (mooned == 4){
transform5.volume = (1 / fader);
if (won[3] == false){
flasher.play();
won[3] = true;
transformW.volume = 2;
channelW.soundTransform = transformW;
channelW = win4.play();
faderTIM = 120;
};
} else {
transform5.volume = ((Gravity.length * 2) / fader);
};
bg.b5.alpha = ((Gravity.length * 1.2) - 0.2);
sfx.soundTransform = transformSFX;
channel1.soundTransform = transform1;
channel2.soundTransform = transform2;
channel3.soundTransform = transform3;
channel4.soundTransform = transform4;
channel5.soundTransform = transform5;
channelB.soundTransform = transformB;
Gravity = new Vector(0, 0);
i = 0;
while (i < 5) {
planet = planets[i][0];
planet1mass = planets[i][1];
planet1r = planets[i][2];
GR = new Vector((planet.x - bobber.x), (planet.y - bobber.y));
str = GR.length;
GR.length = (planet1mass / (str * str));
Gravity.x = (Gravity.x + GR.x);
Gravity.y = (Gravity.y + GR.y);
i = (i + 1);
};
if (Gravity.length > 5){
targSiz = (900 - (5 * 70));
} else {
targSiz = (900 - (Gravity.length * 70));
};
i = 5;
while (i < planets.length) {
planet = planets[i][0];
planet1mass = planets[i][1];
planet1r = planets[i][2];
GR = new Vector((planet.x - bobber.x), (planet.y - bobber.y));
str = GR.length;
GR.length = (planet1mass / (str * str));
Gravity.x = (Gravity.x + GR.x);
Gravity.y = (Gravity.y + GR.y);
i = (i + 1);
};
if (Gravity.length > 5){
Gravity.length = 5;
};
if (!ended){
cam.w = (cam.w + ((cam.w - targSiz) / -4));
cam.h = (cam.h + ((cam.h - targSiz) / -4));
cam.r = (cam.r + (Vector.angle2(new Vector(0, 1).rotateNew(cam.r), Gravity) / 8));
};
dir.x = cam.x;
dir.y = cam.y;
bg.x = cam.x;
bg.y = cam.y;
bg.rotation = cam.r;
i = 0;
while (i < 5) {
planet = planets[i][0];
GR = new Vector((planet.x - cam.x), (planet.y - cam.y));
if (GR.length > 2000){
planet.visible = false;
} else {
planet.visible = true;
};
i = (i + 1);
};
i = 0;
while (i < foregrounds.length) {
planet = foregrounds[i];
GR = new Vector((planet.x - cam.x), (planet.y - cam.y));
if (GR.length > 2000){
planet.visible = false;
} else {
planet.visible = true;
};
i = (i + 1);
};
if (((isNaN(bobber.rotation)) || ((bobber.rotation == undefined)))){
bobber.rotation = 0;
};
if ((((((((speed.x == undefined)) || (isNaN(speed.x)))) || ((speed.y == undefined)))) || (isNaN(speed.y)))){
speed.x = 0;
speed.y = 0;
};
if (namesT != 0){
namesT = (namesT - 1);
names.visible = true;
if (names.alpha < 1){
names.alpha = (names.alpha + 0.03);
};
} else {
if (names.alpha > 0){
names.alpha = (names.alpha - 0.03);
} else {
names.visible = false;
};
};
dir.d2.visible = !(won[0]);
dir.d3.visible = !(won[1]);
dir.d4.visible = !(won[2]);
dir.d5.visible = !(won[3]);
if (planets[0][0].currentFrame == 6){
dir.d1.visible = false;
};
winned = (((int(won[0]) + int(won[1])) + int(won[2])) + int(won[3]));
if (((!((planets[0][0].currentFrame == (winned + 1)))) && (!((planets[0][0].currentFrame == 6))))){
planets[0][0].gotoAndStop((winned + 1));
planets[0][2] = earths[(winned - 1)];
};
talk.scaleX = (cam.sx + 0.3);
talk.scaleY = (cam.sy + 0.3);
dir.scaleX = cam.sx;
dir.scaleY = cam.sy;
bg.scaleX = cam.sy;
bg.scaleY = cam.sy;
cam.update();
} catch(e:Error) {
};
}
function frame4(){
stop();
linkAG.addEventListener(MouseEvent.CLICK, ag_btnclick, false, 0, true);
linkAG2.addEventListener(MouseEvent.CLICK, ag_btnclick2, false, 0, true);
linkGG.addEventListener(MouseEvent.CLICK, gg_btnclick, false, 0, true);
linkED.addEventListener(MouseEvent.CLICK, ed_btnclick, false, 0, true);
btn1.addEventListener(MouseEvent.CLICK, playBTN, false, 0, true);
btn3.addEventListener(MouseEvent.CLICK, downloadable, false, 0, true);
}
public function mouseHandelerD(_arg1:MouseEvent){
if (!paus){
kM = true;
};
}
public function lockControls(){
kW = false;
kS = false;
kA = false;
kD = false;
kUp = false;
kDown = false;
kLeft = false;
kRight = false;
kM = false;
kSpace = false;
}
public function mouseHandelerU(_arg1:MouseEvent){
if (!paus){
kM = false;
};
}
public function gg_btnclick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.glaielgames.com"), "_blank");
}
public function credy(){
framey = "credits";
fadery.play();
}
public function downloadable(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.armorgames.com/misc/downloads/aether.zip"), "_blank");
}
public function expl(_arg1:MouseEvent){
explode = true;
}
public function goBTN2(_arg1:Event){
cut.play();
}
public function calculatepcent(_arg1:ProgressEvent){
loadPerc = (_arg1.bytesLoaded / _arg1.bytesTotal);
}
public function playBTN(_arg1:Event){
framey = "cutscene";
fadery.play();
}
public function aliem(){
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Vector;
var _local9:Vector;
var _local10:int;
var _local11:MovieClip;
var _local12:*;
var _local13:*;
var _local14:Vector;
var _local15:Number;
aliens.push(new Array(new Hippo(), 1, 2, 0, 0.4, new Array("\nSometimes my stomach hurts...", "\nI'll be happy when I'm dead."), new Vector(100, -90)));
aliens.push(new Array(new Bird(), 1, 100, 0, 3, new Array("\nIt's sad to be alone.", "\nAt least no one can hurt me here."), new Vector(50, -50)));
_local1 = 0;
while (_local1 < 15) {
aliens.push(new Array(new Bird(), 1.1, 2, 0, 0.8, new Array(""), new Vector(0, 0)));
_local1++;
};
aliens.push(new Array(new Boy1(), 1, 1, 0, 1, new Array("\nI'm stuck \nhere because I'm bad.", "I'm going to blow this place up one day."), new Vector(70, -80)));
aliens.push(new Array(new Boy2(), 1.2, 1, 0, 1, new Array("...\nWhy do you look like me?\n..."), new Vector(0, -170)));
aliens.push(new Array(new Dead(), 1.2, 12, 0, 1, new Array("\nI'm cool cause I'm dead.", "\n\nMy feet itch..."), new Vector(50, -70)));
aliens.push(new Array(new Screamo2(), 1, 11, 0, 1, new Array("\n\nAAAAHHHHH!!", "\n\nDon't Hurt Me!"), new Vector(70, -90)));
_local2 = 0;
while (_local2 < 4) {
aliens.push(new Array(new Screamo1(), 1.1, 11, 0, 1.5, new Array(""), new Vector(60, -70)));
_local2++;
};
aliens.push(new Array(new Slug(), 1.3, 4, 0, 0.2, new Array("I'll never amount to anything, they all think I'm dumb.", "\nOne day I'll be great and show them all!"), new Vector(140, -130)));
aliens.push(new Array(new Sunfish(), 2, 3, new Vector(3, 0), 3, new Array("\nYou're nothing special.", "\nLeave me alone."), new Vector(90, -70), planets[3][2], (planets[3][3] - 100), 0));
_local3 = 0;
while (_local3 < 70) {
_local7 = aliens.push(new Array(new Wiggle(), 2.1, 4, new Vector(((Math.random() * 4) - 2), ((Math.random() * 4) - 2)), 2, new Array(""), new Vector(0, 0), (planets[4][2] + 20), (planets[4][2] + 200), 0));
aliens[(_local7 - 1)][0].ani.gotoAndPlay((Math.floor((Math.random() * 16)) + 1));
_local3++;
};
_local4 = 0;
while (_local4 < 25) {
aliens.push(new Array(new Birdy(), 2.2, 0, new Vector(0, -5), 6, new Array(""), new Vector(0, 0), planets[0][2], (planets[0][2] + 300), 0));
_local4++;
};
aliens.push(new Array(new Tube1(), 3, 14, 0, 0.4, new Array("\n\nI'm glad I left.", "\nI wonder if they think about me."), new Vector(70, -70)));
aliens.push(new Array(new Tube2(), 3.2, 13, 0, 0.4, new Array("\nWe are glad he's gone."), new Vector(70, -70)));
aliens.push(new Array(new Tube2(), 3.1, 13, 0, 0.4, new Array(""), new Vector(70, -70)));
aliens.push(new Array(new Tube2(), 3.1, 13, 0, 0.4, new Array(""), new Vector(70, -70)));
_local5 = (aliens.push(new Array(new Runaway(), 4, -1, 0, 0.4, new Array("\nI'm so outta here!", "\nWhere's the bathroom?"), new Vector(100, -80))) - 1);
aliens[_local5][0].x = 0;
aliens[_local5][0].y = 10000;
_local5 = (aliens.push(new Array(new Spaceman(), 4, -1, 0, 0.4, new Array("\nYou really shouldn't be out here.", "\nIt's not safe out here alone."), new Vector(100, -80))) - 1);
aliens[_local5][0].x = 10000;
aliens[_local5][0].y = -1000;
_local5 = (aliens.push(new Array(new Lost(), 4, -1, 0, 0.4, new Array("\nAm I going to die?"), new Vector(60, -50))) - 1);
aliens[_local5][0].x = -12000;
aliens[_local5][0].y = 1000;
_local6 = 0;
while (_local6 < aliens.length) {
container1.addChild(aliens[_local6][0]);
if (aliens[_local6][1] != 4){
if (aliens[_local6][2] != 100){
if (aliens[_local6][1] != 1.2){
_local8 = new Vector(planets[aliens[_local6][2]][2], 0);
_local8.rotate((Math.random() * 360));
aliens[_local6][0].x = (planets[aliens[_local6][2]][0].x + _local8.x);
aliens[_local6][0].y = (planets[aliens[_local6][2]][0].y + _local8.y);
aliens[_local6][0].rotation = Vector.angle2(new Vector(0, -1), _local8);
} else {
_local8 = new Vector(0, -(planets[aliens[_local6][2]][2]));
aliens[_local6][0].x = (planets[aliens[_local6][2]][0].x + _local8.x);
aliens[_local6][0].y = (planets[aliens[_local6][2]][0].y + _local8.y);
aliens[_local6][0].rotation = Vector.angle2(new Vector(0, -1), _local8);
};
} else {
_local8 = new Vector(planets[2][3], 0);
_local8.rotate((Math.random() * 360));
aliens[_local6][0].x = (planets[2][0].x + _local8.x);
aliens[_local6][0].y = (planets[2][0].y + _local8.y);
aliens[_local6][0].rotation = Vector.angle2(new Vector(0, -1), _local8);
};
} else {
_local9 = new Vector(0, 0);
_local10 = 0;
while (_local10 < 5) {
_local11 = planets[_local10][0];
_local12 = planets[_local10][1];
_local13 = planets[_local10][2];
_local14 = new Vector((_local11.x - aliens[_local6][0].x), (_local11.y - aliens[_local6][0].y));
_local15 = _local14.length;
_local14.length = (_local12 / (_local15 * _local15));
_local9.x = (_local9.x + _local14.x);
_local9.y = (_local9.y + _local14.y);
_local10++;
};
aliens[_local6][0].rotation = Vector.angle2(new Vector(0, 1), _local9);
};
_local6++;
};
}
public function alien(){
var _local1:int;
var _local2:Number;
var _local3:MovieClip;
var _local4:Number;
var _local5:Vector;
var _local6:Vector;
var _local7:Vector;
var _local8:Number;
var _local9:Number;
var _local10:Vector;
_local1 = 0;
while (_local1 < aliens.length) {
if (((!((aliens[_local1][2] == 100))) && (!((aliens[_local1][2] == -1))))){
aliens[_local1][0].visible = planets[aliens[_local1][2]][0].visible;
};
if (aliens[_local1][0].visible){
if ((((((((aliens[_local1][1] == 1)) || ((aliens[_local1][1] == 1.1)))) || ((aliens[_local1][1] == 1.2)))) || ((aliens[_local1][1] == 1.3)))){
if (Math.random() < 0.05){
aliens[_local1][3] = ((Math.floor((Math.random() * 3)) - 1) * aliens[_local1][4]);
};
if ((((((((aliens[_local1][2] == 2)) && ((aliens[_local1][0].y < planets[2][0].y)))) && (((aliens[_local1][0].x - planets[2][0].x) < 100)))) && (((aliens[_local1][0].x - planets[2][0].x) >= 0)))){
aliens[_local1][3] = aliens[_local1][4];
};
if ((((((((aliens[_local1][2] == 2)) && ((aliens[_local1][0].y < planets[2][0].y)))) && (((aliens[_local1][0].x - planets[2][0].x) > -100)))) && (((aliens[_local1][0].x - planets[2][0].x) < 0)))){
aliens[_local1][3] = -(aliens[_local1][4]);
};
if (aliens[_local1][1] == 1.2){
aliens[_local1][3] = 0;
};
if (aliens[_local1][2] == 100){
_local2 = planets[2][3];
_local3 = planets[2][0];
} else {
_local2 = planets[aliens[_local1][2]][2];
_local3 = planets[aliens[_local1][2]][0];
};
_local4 = (((aliens[_local1][0].x - bobber.x) * (aliens[_local1][0].x - bobber.x)) + ((aliens[_local1][0].y - bobber.y) * (aliens[_local1][0].y - bobber.y)));
if (aliens[_local1][1] != 1.1){
if ((((_local4 < (100 * 100))) || ((((_local4 < (150 * 150))) && ((aliens[_local1][1] == 1.3)))))){
if (talph == 0){
if (((!((aliens[_local1][0].currentFrame == 3))) && (!((aliens[_local1][0].currentFrame == 4))))){
if (aliens[_local1][1] == 1.3){
_local5 = new Vector((aliens[_local1][0].y - bobber.y), (-(aliens[_local1][0].x) + bobber.x));
if (Vector.dot(_local5, Gravity) < 0){
aliens[_local1][0].gotoAndStop(4);
talk.visible = true;
talk.txt.text = aliens[_local1][5][0];
talph = 1;
talk.bubb.scaleX = 1;
} else {
aliens[_local1][0].gotoAndStop(3);
talk.visible = true;
talk.txt.text = aliens[_local1][5][1];
talph = 1;
talk.bubb.scaleX = -1;
};
_local6 = new Vector(((talk.bubb.scaleX * -(aliens[_local1][6].x)) * talk.scaleX), (aliens[_local1][6].y * talk.scaleY));
if (talk.bubb.scaleX == 1){
_local6.y = -90;
};
_local6.rotate(Vector.angle2(new Vector(0, -1), new Vector(0, -1).rotateNew(aliens[_local1][0].rotation)));
talk.x = (aliens[_local1][0].x + _local6.x);
talk.y = (aliens[_local1][0].y + _local6.y);
talk.rotation = aliens[_local1][0].rotation;
} else {
aliens[_local1][0].gotoAndStop(3);
talk.visible = true;
talk.txt.text = aliens[_local1][5][Math.floor((Math.random() * aliens[_local1][5].length))];
talph = 1;
};
};
};
if ((((talph == 1)) && ((((aliens[_local1][0].currentFrame == 3)) || ((aliens[_local1][0].currentFrame == 4)))))){
if (((!((aliens[_local1][1] == 1.2))) && (!((aliens[_local1][1] == 1.3))))){
_local5 = new Vector((aliens[_local1][0].y - bobber.y), (-(aliens[_local1][0].x) + bobber.x));
if (Vector.dot(_local5, Gravity) < 0){
aliens[_local1][0].scaleX = 1;
} else {
aliens[_local1][0].scaleX = -1;
};
};
if (aliens[_local1][1] != 1.3){
_local6 = new Vector(((aliens[_local1][0].scaleX * -(aliens[_local1][6].x)) * talk.scaleX), (aliens[_local1][6].y * talk.scaleY));
_local6.rotate(Vector.angle2(new Vector(0, -1), new Vector(0, -1).rotateNew(aliens[_local1][0].rotation)));
talk.x = (aliens[_local1][0].x + _local6.x);
talk.y = (aliens[_local1][0].y + _local6.y);
talk.rotation = aliens[_local1][0].rotation;
talk.bubb.scaleX = aliens[_local1][0].scaleX;
};
};
} else {
if ((((((aliens[_local1][0].currentFrame == 3)) || ((aliens[_local1][0].currentFrame == 4)))) && ((((((_local4 > (150 * 150))) && (!((aliens[_local1][1] == 1.3))))) || ((((_local4 > (200 * 200))) && ((aliens[_local1][1] == 1.3)))))))){
if ((((aliens[_local1][0].currentFrame == 3)) || ((aliens[_local1][0].currentFrame == 4)))){
aliens[_local1][0].gotoAndStop(1);
talph = 0;
};
};
};
};
if (((((!((aliens[_local1][3] == 0))) && (!((aliens[_local1][0].currentFrame == 3))))) && (!((aliens[_local1][0].currentFrame == 4))))){
_local7 = new Vector((aliens[_local1][0].x - _local3.x), (aliens[_local1][0].y - _local3.y));
_local7.rotate(aliens[_local1][3]);
_local7.length = _local2;
if (aliens[_local1][1] != 1.3){
if (aliens[_local1][3] > 0){
aliens[_local1][0].scaleX = -1;
} else {
aliens[_local1][0].scaleX = 1;
};
};
if (aliens[_local1][0].currentFrame == 1){
aliens[_local1][0].gotoAndStop(2);
};
aliens[_local1][0].x = (_local3.x + _local7.x);
aliens[_local1][0].y = (_local3.y + _local7.y);
aliens[_local1][0].rotation = Vector.angle2(new Vector(0, -1), _local7);
} else {
if (aliens[_local1][0].currentFrame == 2){
aliens[_local1][0].gotoAndStop(1);
};
};
if ((((aliens[_local1][2] == 1)) && ((gassed == 0)))){
container1.removeChild(aliens[_local1][0]);
aliens.splice(_local1, 1);
_local1--;
};
};
};
if (aliens[_local1][1] == 2.2){
aliens[_local1][7] = planets[0][2];
if (planets[0][2] < 100){
container1.removeChild(aliens[_local1][0]);
aliens.splice(_local1, 1);
_local1--;
};
};
if ((((((aliens[_local1][1] == 2)) || ((aliens[_local1][1] == 2.1)))) || ((aliens[_local1][1] == 2.2)))){
_local8 = aliens[_local1][7];
_local9 = aliens[_local1][8];
if (aliens[_local1][2] == 100){
_local3 = planets[2][0];
} else {
_local3 = planets[aliens[_local1][2]][0];
};
_local10 = new Vector((aliens[_local1][0].x - _local3.x), (aliens[_local1][0].y - _local3.y));
if (_local10.length2 == 0){
_local10.x = 0.1;
};
aliens[_local1][0].rotation = Vector.angle2(new Vector(0, -1), _local10);
if (aliens[_local1][1] != 2.1){
aliens[_local1][3].rotate(aliens[_local1][9]);
if (Math.random() < 0.05){
aliens[_local1][9] = ((Math.random() * 20) - 10);
};
};
if (_local10.length2 > (_local9 * _local9)){
aliens[_local1][3].x = (aliens[_local1][3].x - (_local10.x / _local10.length));
aliens[_local1][3].y = (aliens[_local1][3].y - (_local10.y / _local10.length));
};
if (_local10.length2 < (_local8 * _local8)){
aliens[_local1][3].x = (aliens[_local1][3].x + (_local10.x / _local10.length));
aliens[_local1][3].y = (aliens[_local1][3].y + (_local10.y / _local10.length));
if ((((aliens[_local1][1] == 2.2)) && ((aliens[_local1][0].currentFrame == 1)))){
aliens[_local1][0].gotoAndStop(4);
};
};
if (aliens[_local1][1] != 2.1){
if (Vector.dot(_local10.perpendicular(), aliens[_local1][3]) < 0){
aliens[_local1][0].scaleX = -1;
} else {
aliens[_local1][0].scaleX = 1;
};
};
if (aliens[_local1][3].length2 < 1){
aliens[_local1][3].length = 1;
};
if (aliens[_local1][3].length2 > (aliens[_local1][4] * aliens[_local1][4])){
aliens[_local1][3].length = aliens[_local1][4];
};
_local4 = (((aliens[_local1][0].x - bobber.x) * (aliens[_local1][0].x - bobber.x)) + ((aliens[_local1][0].y - bobber.y) * (aliens[_local1][0].y - bobber.y)));
if ((((((aliens[_local1][1] == 2.2)) && ((((((_local4 < (100 * 100))) || ((Math.random() < 0.005)))) || ((_local10.length2 > ((_local8 + 10) * (_local8 + 10)))))))) && ((aliens[_local1][0].currentFrame == 4)))){
aliens[_local1][0].gotoAndStop(1);
};
if (aliens[_local1][0].currentFrame != 4){
aliens[_local1][0].x = (aliens[_local1][0].x + aliens[_local1][3].x);
aliens[_local1][0].y = (aliens[_local1][0].y + aliens[_local1][3].y);
};
if (((!((aliens[_local1][1] == 2.1))) && (!((aliens[_local1][1] == 2.2))))){
if (_local4 < (150 * 150)){
if (talph == 0){
if (((!((aliens[_local1][0].currentFrame == 2))) && (!((aliens[_local1][0].currentFrame == 3))))){
aliens[_local1][0].gotoAndStop(2);
talk.visible = true;
talk.txt.text = aliens[_local1][5][Math.floor((Math.random() * aliens[_local1][5].length))];
talph = 1;
};
};
if ((((talph == 1)) && ((((aliens[_local1][0].currentFrame == 2)) || ((aliens[_local1][0].currentFrame == 3)))))){
_local6 = new Vector(((-(aliens[_local1][0].scaleX) * -(aliens[_local1][6].x)) * talk.scaleX), (aliens[_local1][6].y * talk.scaleY));
_local6.rotate(Vector.angle2(new Vector(0, -1), new Vector(0, -1).rotateNew(aliens[_local1][0].rotation)));
talk.x = (aliens[_local1][0].x + _local6.x);
talk.y = (aliens[_local1][0].y + _local6.y);
talk.rotation = aliens[_local1][0].rotation;
talk.bubb.scaleX = -(aliens[_local1][0].scaleX);
};
} else {
if ((((((aliens[_local1][0].currentFrame == 2)) || ((aliens[_local1][0].currentFrame == 3)))) && ((_local4 > (150 * 150))))){
if ((((aliens[_local1][0].currentFrame == 2)) || ((aliens[_local1][0].currentFrame == 3)))){
aliens[_local1][0].gotoAndStop(1);
talph = 0;
};
};
};
};
};
if ((((((aliens[_local1][1] == 3)) || ((aliens[_local1][1] == 3.1)))) || ((aliens[_local1][1] == 3.2)))){
_local4 = (((aliens[_local1][0].x - bobber.x) * (aliens[_local1][0].x - bobber.x)) + ((aliens[_local1][0].y - bobber.y) * (aliens[_local1][0].y - bobber.y)));
if (aliens[_local1][1] == 3){
if ((((_local4 < (150 * 150))) && ((currentPlanet == aliens[_local1][2])))){
if ((((((aliens[_local1][0].currentFrame == 1)) && (!((aliens[_local1][0].ani == null))))) && ((aliens[_local1][0].ani.currentFrame >= 9)))){
aliens[_local1][0].gotoAndStop(2);
};
} else {
if ((((((aliens[_local1][0].currentFrame == 2)) && (!((aliens[_local1][0].ani == null))))) && ((aliens[_local1][0].ani.currentFrame >= 9)))){
aliens[_local1][0].gotoAndStop(1);
};
};
} else {
if ((((Math.random() < 0.03)) && (!((aliens[_local1][0].currentFrame == 3))))){
if ((((((aliens[_local1][0].currentFrame == 1)) && (!((aliens[_local1][0].ani == null))))) && ((aliens[_local1][0].ani.currentFrame >= 9)))){
aliens[_local1][0].gotoAndStop(2);
} else {
if ((((((aliens[_local1][0].currentFrame == 2)) && (!((aliens[_local1][0].ani == null))))) && ((aliens[_local1][0].ani.currentFrame >= 9)))){
aliens[_local1][0].gotoAndStop(1);
};
};
};
};
if ((((_local4 < (50 * 50))) && ((aliens[_local1][0].currentFrame == 2)))){
if ((((talph == 0)) && (!((aliens[_local1][1] == 3.1))))){
if ((((((aliens[_local1][0].currentFrame == 2)) && (!((aliens[_local1][0].ani == null))))) && ((aliens[_local1][0].ani.currentFrame >= 9)))){
aliens[_local1][0].gotoAndStop(3);
talk.visible = true;
talk.txt.text = aliens[_local1][5][Math.floor((Math.random() * aliens[_local1][5].length))];
talph = 1;
talk.bubb.scaleX = 1;
_local6 = new Vector(((aliens[_local1][0].scaleX * -(aliens[_local1][6].x)) * talk.scaleX), (aliens[_local1][6].y * talk.scaleY));
_local6.rotate(Vector.angle2(new Vector(0, -1), new Vector(0, -1).rotateNew(aliens[_local1][0].rotation)));
talk.x = (aliens[_local1][0].x + _local6.x);
talk.y = (aliens[_local1][0].y + _local6.y);
talk.rotation = aliens[_local1][0].rotation;
talk.bubb.scaleX = aliens[_local1][0].scaleX;
};
};
};
if ((((_local4 > (100 * 100))) && ((aliens[_local1][0].currentFrame == 3)))){
talph = 0;
aliens[_local1][0].gotoAndStop(1);
};
};
if (aliens[_local1][1] == 4){
_local4 = (((aliens[_local1][0].x - bobber.x) * (aliens[_local1][0].x - bobber.x)) + ((aliens[_local1][0].y - bobber.y) * (aliens[_local1][0].y - bobber.y)));
if (_local4 < (150 * 150)){
if (talph == 0){
if (aliens[_local1][0].currentFrame == 1){
aliens[_local1][0].gotoAndStop(2);
talk.visible = true;
talk.txt.text = aliens[_local1][5][Math.floor((Math.random() * aliens[_local1][5].length))];
talph = 1;
talk.bubb.scaleX = 1;
_local6 = new Vector(((aliens[_local1][0].scaleX * -(aliens[_local1][6].x)) * talk.scaleX), (aliens[_local1][6].y * talk.scaleY));
_local6.rotate(Vector.angle2(new Vector(0, -1), new Vector(0, -1).rotateNew(aliens[_local1][0].rotation)));
talk.x = (aliens[_local1][0].x + _local6.x);
talk.y = (aliens[_local1][0].y + _local6.y);
talk.rotation = aliens[_local1][0].rotation;
talk.bubb.scaleX = aliens[_local1][0].scaleX;
};
};
};
if ((((_local4 > (200 * 200))) && ((aliens[_local1][0].currentFrame == 2)))){
talph = 0;
aliens[_local1][0].gotoAndStop(1);
};
};
_local1++;
};
talk.alpha = (talk.alpha + ((talph - (talk.alpha - (talph - 0.5))) / 10));
if (talk.alpha < 0.01){
talk.visible = false;
} else {
talk.visible = true;
};
}
public function backBTN2(_arg1:Event){
framey = "title";
fadery.play();
}
public function shake(_arg1:Event){
var e = _arg1;
try {
if (clouds[8][1] != -1){
clouds[8][0].gaser.poppy.gotoAndPlay((Math.floor((Math.random() * 5)) + 1));
};
if (clouds[9][1] != -1){
clouds[9][0].gaser.poppy.gotoAndPlay((Math.floor((Math.random() * 5)) + 1));
};
if (clouds[10][1] != -1){
clouds[10][0].gaser.poppy.gotoAndPlay((Math.floor((Math.random() * 5)) + 1));
};
if (clouds[11][1] != -1){
clouds[11][0].gaser.poppy.gotoAndPlay((Math.floor((Math.random() * 5)) + 1));
};
if (((gemed) && (inside))){
foregrounds[1].planet.gotoAndStop(30);
planets[2][0].planet.gotoAndStop(30);
};
} catch(e:Error) {
};
}
public function uexpl(_arg1:MouseEvent){
explode = false;
}
}
}//package Aether_fla
Section 14
//moonplanetmoon2_142 (Aether_fla.moonplanetmoon2_142)
package Aether_fla {
import flash.display.*;
public dynamic class moonplanetmoon2_142 extends MovieClip {
public function moonplanetmoon2_142(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Aether_fla
Section 15
//Symbol14_220 (Aether_fla.Symbol14_220)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol14_220 extends MovieClip {
public function Symbol14_220(){
addFrameScript(60, frame61);
}
function frame61(){
stop();
}
}
}//package Aether_fla
Section 16
//Symbol25_99 (Aether_fla.Symbol25_99)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol25_99 extends MovieClip {
public var poppy:MovieClip;
public function Symbol25_99(){
addFrameScript(0, frame1, 222, frame223);
}
function frame223(){
stop();
}
function frame1(){
stop();
}
}
}//package Aether_fla
Section 17
//Symbol26_110 (Aether_fla.Symbol26_110)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol26_110 extends MovieClip {
public function Symbol26_110(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
stop();
}
}
}//package Aether_fla
Section 18
//Symbol33_214 (Aether_fla.Symbol33_214)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol33_214 extends MovieClip {
public function Symbol33_214(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Aether_fla
Section 19
//Symbol35_97 (Aether_fla.Symbol35_97)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol35_97 extends MovieClip {
public function Symbol35_97(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Aether_fla
Section 20
//Symbol36_183 (Aether_fla.Symbol36_183)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol36_183 extends MovieClip {
public function Symbol36_183(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Aether_fla
Section 21
//Symbol37_191 (Aether_fla.Symbol37_191)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol37_191 extends MovieClip {
public function Symbol37_191(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Aether_fla
Section 22
//Symbol39_207 (Aether_fla.Symbol39_207)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol39_207 extends MovieClip {
public function Symbol39_207(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Aether_fla
Section 23
//Symbol42_145 (Aether_fla.Symbol42_145)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol42_145 extends MovieClip {
public function Symbol42_145(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Aether_fla
Section 24
//Symbol53_9 (Aether_fla.Symbol53_9)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol53_9 extends MovieClip {
public function Symbol53_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Aether_fla
Section 25
//Symbol55_292 (Aether_fla.Symbol55_292)
package Aether_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Symbol55_292 extends MovieClip {
public var linkED:SimpleButton;
public var linkGG:SimpleButton;
public var linkAG:SimpleButton;
public function Symbol55_292(){
addFrameScript(0, frame1, 74, frame75, 151, frame152);
}
function frame152(){
stop();
MovieClip(parent).advance();
}
function frame75(){
linkGG.addEventListener(MouseEvent.CLICK, gg_btnclick, false, 0, true);
linkED.addEventListener(MouseEvent.CLICK, ed_btnclick, false, 0, true);
}
public function gg_btnclick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.glaielgames.com"), "_blank");
}
public function ed_btnclick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.thisisacryforhelp.com"), "_blank");
}
function frame1(){
linkAG.addEventListener(MouseEvent.CLICK, ag_btnclick, false, 0, true);
}
public function ag_btnclick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.armorgames.com"), "_blank");
}
}
}//package Aether_fla
Section 26
//Symbol56_318 (Aether_fla.Symbol56_318)
package Aether_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Symbol56_318 extends MovieClip {
public function Symbol56_318(){
addFrameScript(0, frame1, 1, frame2, 19, frame20, 20, frame21, 39, frame40, 40, frame41);
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame20(){
stop();
}
function frame2(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
MovieClip(parent).credy();
}
}
}//package Aether_fla
Section 27
//Symbol8_89 (Aether_fla.Symbol8_89)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol8_89 extends MovieClip {
public function Symbol8_89(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package Aether_fla
Section 28
//Symbol8copy_92 (Aether_fla.Symbol8copy_92)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol8copy_92 extends MovieClip {
public function Symbol8copy_92(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package Aether_fla
Section 29
//Symbol9_28 (Aether_fla.Symbol9_28)
package Aether_fla {
import flash.display.*;
public dynamic class Symbol9_28 extends MovieClip {
public function Symbol9_28(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package Aether_fla
Section 30
//Background5 (Background5)
package {
import flash.display.*;
public dynamic class Background5 extends MovieClip {
}
}//package
Section 31
//BG (BG)
package {
import flash.display.*;
public dynamic class BG extends MovieClip {
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
}
}//package
Section 32
//Bird (Bird)
package {
import flash.display.*;
public dynamic class Bird extends MovieClip {
public function Bird(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 33
//Birdy (Birdy)
package {
import flash.display.*;
public dynamic class Birdy extends MovieClip {
}
}//package
Section 34
//Bobber (Bobber)
package {
import flash.display.*;
public dynamic class Bobber extends MovieClip {
public var ani:MovieClip;
public var mouth:MovieClip;
public var box:MovieClip;
public function Bobber(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 35
//Boy1 (Boy1)
package {
import flash.display.*;
public dynamic class Boy1 extends MovieClip {
}
}//package
Section 36
//Boy2 (Boy2)
package {
import flash.display.*;
public dynamic class Boy2 extends MovieClip {
}
}//package
Section 37
//Bubble (Bubble)
package {
import flash.display.*;
public dynamic class Bubble extends MovieClip {
}
}//package
Section 38
//Cam (Cam)
package {
import flash.display.*;
public class Cam {
public var y:Number;
private var container:MovieClip;
public var h:Number;
private var sW:Number;
private var sH:Number;
public var x:Number;
public var r:Number;
public var w:Number;
public function Cam(_arg1:Number, _arg2:Number, _arg3:MovieClip):void{
sW = _arg1;
sH = _arg2;
container = _arg3;
x = (sW / 2);
y = (sH / 2);
w = sW;
h = sH;
r = 0;
}
public function get sx(){
return ((w / sW));
}
public function get sy(){
return ((h / sH));
}
public function update():void{
var _local1:Vector;
if (isNaN(r)){
r = 0;
};
if (isNaN(x)){
x = 0;
};
if (isNaN(y)){
y = 0;
};
if (isNaN(w)){
w = 0;
};
if (isNaN(h)){
h = 0;
};
while (r > 360) {
r = (r - 360);
};
while (r < -360) {
r = (r + 360);
};
container.parent.rotation = -(r);
container.parent.parent.scaleX = (sW / w);
container.parent.parent.scaleY = (sH / h);
_local1 = new Vector((sW / 2), (sH / 2));
_local1.rotate(-(r));
container.parent.parent.x = (sW / 2);
container.parent.parent.y = (sH / 2);
container.x = -(x);
container.y = -(y);
}
}
}//package
Section 39
//Cloud (Cloud)
package {
import flash.display.*;
public dynamic class Cloud extends MovieClip {
}
}//package
Section 40
//Crazy (Crazy)
package {
import flash.display.*;
public dynamic class Crazy extends MovieClip {
}
}//package
Section 41
//Dead (Dead)
package {
import flash.display.*;
public dynamic class Dead extends MovieClip {
}
}//package
Section 42
//Dir (Dir)
package {
import flash.display.*;
public dynamic class Dir extends MovieClip {
public var d4:MovieClip;
public var d2:MovieClip;
public var d5:MovieClip;
public var d3:MovieClip;
public var d1:MovieClip;
}
}//package
Section 43
//Dust (Dust)
package {
import flash.display.*;
public dynamic class Dust extends MovieClip {
}
}//package
Section 44
//Fish (Fish)
package {
import flash.display.*;
public dynamic class Fish extends MovieClip {
public var box:MovieClip;
}
}//package
Section 45
//Fish2 (Fish2)
package {
import flash.display.*;
public dynamic class Fish2 extends MovieClip {
public var box:MovieClip;
}
}//package
Section 46
//Flasher (Flasher)
package {
import flash.display.*;
public dynamic class Flasher extends MovieClip {
public function Flasher(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 47
//Foreground2 (Foreground2)
package {
import flash.display.*;
public dynamic class Foreground2 extends MovieClip {
}
}//package
Section 48
//Foreground3 (Foreground3)
package {
import flash.display.*;
public dynamic class Foreground3 extends MovieClip {
public var planet:MovieClip;
public function Foreground3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 49
//Foreground4 (Foreground4)
package {
import flash.display.*;
public dynamic class Foreground4 extends MovieClip {
public function Foreground4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 50
//G1 (G1)
package {
import flash.media.*;
public dynamic class G1 extends Sound {
}
}//package
Section 51
//G2 (G2)
package {
import flash.media.*;
public dynamic class G2 extends Sound {
}
}//package
Section 52
//G3 (G3)
package {
import flash.media.*;
public dynamic class G3 extends Sound {
}
}//package
Section 53
//G4 (G4)
package {
import flash.media.*;
public dynamic class G4 extends Sound {
}
}//package
Section 54
//G5 (G5)
package {
import flash.media.*;
public dynamic class G5 extends Sound {
}
}//package
Section 55
//G6 (G6)
package {
import flash.media.*;
public dynamic class G6 extends Sound {
}
}//package
Section 56
//G7 (G7)
package {
import flash.media.*;
public dynamic class G7 extends Sound {
}
}//package
Section 57
//G8 (G8)
package {
import flash.media.*;
public dynamic class G8 extends Sound {
}
}//package
Section 58
//Gasteroid (Gasteroid)
package {
import flash.display.*;
public dynamic class Gasteroid extends MovieClip {
public var gaser:MovieClip;
public var gas:MovieClip;
}
}//package
Section 59
//Gem (Gem)
package {
import flash.display.*;
public dynamic class Gem extends MovieClip {
public var ani:MovieClip;
public function Gem(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 60
//Hippo (Hippo)
package {
import flash.display.*;
public dynamic class Hippo extends MovieClip {
public function Hippo(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 61
//Island (Island)
package {
import flash.display.*;
public dynamic class Island extends MovieClip {
public function Island(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 62
//logo (logo)
package {
import flash.display.*;
public dynamic class logo extends MovieClip {
public function logo(){
addFrameScript(0, frame1, 100, frame101);
}
function frame1(){
stop();
}
function frame101(){
stop();
}
}
}//package
Section 63
//Lost (Lost)
package {
import flash.display.*;
public dynamic class Lost extends MovieClip {
}
}//package
Section 64
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 65
//Moon (Moon)
package {
import flash.display.*;
public dynamic class Moon extends MovieClip {
public var ani:MovieClip;
}
}//package
Section 66
//MoonB (MoonB)
package {
import flash.display.*;
public dynamic class MoonB extends MovieClip {
}
}//package
Section 67
//MoonE (MoonE)
package {
import flash.display.*;
public dynamic class MoonE extends MovieClip {
}
}//package
Section 68
//MoonG (MoonG)
package {
import flash.display.*;
public dynamic class MoonG extends MovieClip {
}
}//package
Section 69
//MoonH (MoonH)
package {
import flash.display.*;
public dynamic class MoonH extends MovieClip {
}
}//package
Section 70
//MoonL (MoonL)
package {
import flash.display.*;
public dynamic class MoonL extends MovieClip {
}
}//package
Section 71
//Names (Names)
package {
import flash.display.*;
public dynamic class Names extends MovieClip {
public function Names(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 72
//Particle1 (Particle1)
package {
import flash.display.*;
public dynamic class Particle1 extends MovieClip {
}
}//package
Section 73
//Particle2 (Particle2)
package {
import flash.display.*;
public dynamic class Particle2 extends MovieClip {
}
}//package
Section 74
//Paus (Paus)
package {
import flash.display.*;
public dynamic class Paus extends MovieClip {
}
}//package
Section 75
//Planet1 (Planet1)
package {
import flash.display.*;
public dynamic class Planet1 extends MovieClip {
public function Planet1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 76
//Planet2 (Planet2)
package {
import flash.display.*;
public dynamic class Planet2 extends MovieClip {
public function Planet2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 77
//Planet3 (Planet3)
package {
import flash.display.*;
public dynamic class Planet3 extends MovieClip {
public var planet:MovieClip;
public var box:MovieClip;
public function Planet3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 78
//Planet4 (Planet4)
package {
import flash.display.*;
public dynamic class Planet4 extends MovieClip {
public function Planet4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 79
//Planet5 (Planet5)
package {
import flash.display.*;
public dynamic class Planet5 extends MovieClip {
public function Planet5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 80
//Planets (Planets)
package {
import flash.display.*;
public dynamic class Planets extends MovieClip {
}
}//package
Section 81
//Poof (Poof)
package {
import flash.display.*;
public dynamic class Poof extends MovieClip {
}
}//package
Section 82
//Runaway (Runaway)
package {
import flash.display.*;
public dynamic class Runaway extends MovieClip {
}
}//package
Section 83
//Screamo1 (Screamo1)
package {
import flash.display.*;
public dynamic class Screamo1 extends MovieClip {
}
}//package
Section 84
//Screamo2 (Screamo2)
package {
import flash.display.*;
public dynamic class Screamo2 extends MovieClip {
}
}//package
Section 85
//SFX1 (SFX1)
package {
import flash.media.*;
public dynamic class SFX1 extends Sound {
}
}//package
Section 86
//SFX2 (SFX2)
package {
import flash.media.*;
public dynamic class SFX2 extends Sound {
}
}//package
Section 87
//SFX3 (SFX3)
package {
import flash.media.*;
public dynamic class SFX3 extends Sound {
}
}//package
Section 88
//SFX4 (SFX4)
package {
import flash.media.*;
public dynamic class SFX4 extends Sound {
}
}//package
Section 89
//SFX5 (SFX5)
package {
import flash.media.*;
public dynamic class SFX5 extends Sound {
}
}//package
Section 90
//SFX6 (SFX6)
package {
import flash.media.*;
public dynamic class SFX6 extends Sound {
}
}//package
Section 91
//SFX7 (SFX7)
package {
import flash.media.*;
public dynamic class SFX7 extends Sound {
}
}//package
Section 92
//Slug (Slug)
package {
import flash.display.*;
public dynamic class Slug extends MovieClip {
}
}//package
Section 93
//Smoke (Smoke)
package {
import flash.display.*;
public dynamic class Smoke extends MovieClip {
public function Smoke(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 94
//Spaceman (Spaceman)
package {
import flash.display.*;
public dynamic class Spaceman extends MovieClip {
}
}//package
Section 95
//Splash (Splash)
package {
import flash.display.*;
public dynamic class Splash extends MovieClip {
}
}//package
Section 96
//Star (Star)
package {
import flash.display.*;
public dynamic class Star extends MovieClip {
public function Star(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 97
//Sunfish (Sunfish)
package {
import flash.display.*;
public dynamic class Sunfish extends MovieClip {
}
}//package
Section 98
//T1 (T1)
package {
import flash.media.*;
public dynamic class T1 extends Sound {
}
}//package
Section 99
//T2 (T2)
package {
import flash.media.*;
public dynamic class T2 extends Sound {
}
}//package
Section 100
//T3 (T3)
package {
import flash.media.*;
public dynamic class T3 extends Sound {
}
}//package
Section 101
//T4 (T4)
package {
import flash.media.*;
public dynamic class T4 extends Sound {
}
}//package
Section 102
//T5 (T5)
package {
import flash.media.*;
public dynamic class T5 extends Sound {
}
}//package
Section 103
//Talk (Talk)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Talk extends MovieClip {
public var txt:TextField;
public var bubb:MovieClip;
}
}//package
Section 104
//TB (TB)
package {
import flash.media.*;
public dynamic class TB extends Sound {
}
}//package
Section 105
//Tube1 (Tube1)
package {
import flash.display.*;
public dynamic class Tube1 extends MovieClip {
public var ani:MovieClip;
}
}//package
Section 106
//Tube2 (Tube2)
package {
import flash.display.*;
public dynamic class Tube2 extends MovieClip {
public var ani:MovieClip;
}
}//package
Section 107
//Vector (Vector)
package {
import flash.display.*;
public class Vector {
public var x:Number;
public var y:Number;
private static var convert:Number = (Math.PI / 180);
public function Vector(_arg1:Number, _arg2:Number):void{
x = _arg1;
y = _arg2;
}
public function rotate(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_arg1 = (_arg1 * convert);
_local2 = Math.sin(_arg1);
_local3 = Math.cos(_arg1);
_local4 = ((x * _local3) - (y * _local2));
_local5 = ((x * _local2) + (y * _local3));
x = _local4;
y = _local5;
}
public function rotateNew(_arg1:Number):Vector{
var _local2:Number;
var _local3:Number;
_arg1 = (_arg1 * convert);
_local2 = Math.sin(_arg1);
_local3 = Math.cos(_arg1);
return (new Vector(((x * _local3) - (y * _local2)), ((x * _local2) + (y * _local3))));
}
public function get length():Number{
return (Math.sqrt(((x * x) + (y * y))));
}
public function perpendicular(_arg1:Number=-1):Vector{
return (new Vector((_arg1 * y), (-(_arg1) * x)));
}
public function set length(_arg1:Number):void{
norm();
scale(_arg1);
}
public function scale(_arg1:Number):void{
x = (x * _arg1);
y = (y * _arg1);
}
public function render(_arg1:Vector, _arg2:Number, _arg3:MovieClip):void{
var _local4:Vector;
var _local5:Vector;
_arg3.graphics.lineStyle(3, 0xFFFFFF, 100);
_arg3.graphics.moveTo(_arg1.x, _arg1.y);
_arg3.graphics.lineTo((_arg1.x + (x * _arg2)), (_arg1.y + (y * _arg2)));
_local4 = new Vector(-(x), -(y));
_local4.norm();
_local4.scale(7);
_local4.rotate(-45);
_arg3.graphics.lineTo(((_arg1.x + (x * _arg2)) + _local4.x), ((_arg1.y + (y * _arg2)) + _local4.y));
_arg3.graphics.moveTo((_arg1.x + (x * _arg2)), (_arg1.y + (y * _arg2)));
_local4.rotate(90);
_arg3.graphics.lineTo(((_arg1.x + (x * _arg2)) + _local4.x), ((_arg1.y + (y * _arg2)) + _local4.y));
_arg3.graphics.lineStyle(2, 0, 100);
_arg3.graphics.moveTo(_arg1.x, _arg1.y);
_arg3.graphics.lineTo((_arg1.x + (x * _arg2)), (_arg1.y + (y * _arg2)));
_local5 = new Vector(-(x), -(y));
_local5.norm();
_local5.scale(7);
_local5.rotate(-45);
_arg3.graphics.lineTo(((_arg1.x + (x * _arg2)) + _local5.x), ((_arg1.y + (y * _arg2)) + _local5.y));
_arg3.graphics.moveTo((_arg1.x + (x * _arg2)), (_arg1.y + (y * _arg2)));
_local5.rotate(90);
_arg3.graphics.lineTo(((_arg1.x + (x * _arg2)) + _local5.x), ((_arg1.y + (y * _arg2)) + _local5.y));
}
public function constrain(_arg1:Number, _arg2:String="Greater"){
if (_arg2 == "Greater"){
if (length > _arg1){
norm();
scale(_arg1);
};
};
if (_arg2 == "Always"){
norm();
scale(_arg1);
};
if (_arg2 == "Less"){
if (length < _arg1){
norm();
scale(_arg1);
};
};
}
public function get length2():Number{
return (((x * x) + (y * y)));
}
public function norm():void{
var _local1:Number;
_local1 = length;
if (_local1 != 0){
x = (x / _local1);
y = (y / _local1);
};
}
public function reflect(_arg1:Vector):Vector{
var _local2:Vector;
_local2 = new Vector(_arg1.x, _arg1.y);
_local2.norm();
_local2.scale((2 * dot(this, _local2)));
return (subtract(this, _local2));
}
public static function add(_arg1:Vector, _arg2:Vector):Vector{
return (new Vector((_arg2.x + _arg1.x), (_arg2.y + _arg1.y)));
}
public static function subtract(_arg1:Vector, _arg2:Vector):Vector{
return (new Vector((_arg1.x - _arg2.x), (_arg1.y - _arg2.y)));
}
public static function dot(_arg1:Vector, _arg2:Vector):Number{
return (((_arg2.x * _arg1.x) + (_arg2.y * _arg1.y)));
}
public static function angle(_arg1:Vector, _arg2:Vector):Number{
if ((_arg2.length * _arg1.length) == 0){
return (0);
};
return ((Math.acos((dot(_arg1, _arg2) / (_arg2.length * _arg1.length))) / convert));
}
public static function comp(_arg1:Vector, _arg2:Vector):Number{
if ((_arg1.length * _arg2.length) == 0){
return (0);
};
return ((Math.abs(((_arg1.x / _arg1.length) - (_arg2.x / _arg2.length))) + Math.abs(((_arg1.y / _arg1.length) - (_arg2.y / _arg2.length)))));
}
public static function angle2(_arg1:Vector, _arg2:Vector):Number{
var _local3:Number;
_local3 = angle(_arg1, _arg2);
if (_local3 == 0){
return (0);
};
if (comp(_arg1.rotateNew(_local3), _arg2) < 0.0001){
return (_local3);
};
return (-(_local3));
}
}
}//package
Section 108
//Wiggle (Wiggle)
package {
import flash.display.*;
public dynamic class Wiggle extends MovieClip {
public var ani:MovieClip;
}
}//package
Section 109
//Win1 (Win1)
package {
import flash.media.*;
public dynamic class Win1 extends Sound {
}
}//package
Section 110
//Win2 (Win2)
package {
import flash.media.*;
public dynamic class Win2 extends Sound {
}
}//package
Section 111
//Win3 (Win3)
package {
import flash.media.*;
public dynamic class Win3 extends Sound {
}
}//package
Section 112
//Win4 (Win4)
package {
import flash.media.*;
public dynamic class Win4 extends Sound {
}
}//package