Section 1
//AchievementsInfo (com.funkypear.game.AchievementsInfo)
package com.funkypear.game {
import flash.utils.*;
public class AchievementsInfo {
public var levelMedals:Array;
public var levelLows:Array;
public var :Array;
public var infAmmo:Boolean;// = false
public var achievementDescs;
public var wepsUnlocked:Array;
public var achievementNames;
public var rewardsDisplayed:Array;
public var stats:Array;
public var :int;// = 0
public var secsPlayedStart:int;// = 0
public var aCount:int;// = 0
public var awardQueue:Array;
public var levelsUnlocked:int;// = 1
public var :Array;
public var awarded:Array;
public function AchievementsInfo(){
awardQueue = new Array();
= 0;
infAmmo = false;
aCount = 0;
levelMedals = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelLows = [999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999];
awarded = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false];
achievementNames = ["Sector Specter", "Sector'd", "Bo Sector", "Sector Smasher", "Sectacular", "Going for Gold", "Pieces o' Eight", "Gold Run", "Gold Star", "Alchemist", "Starting Out", "Early Days", "One More Go", "44 Minutes", "War Addict", "Pocket Change", "Second Income", "Big Earner", "Loaded", "Retirement Fund", "Trainee Hitman", "Hitman", "Ninja", "Dr. Death", "Mega Deaths", "Drain", "Health Plan", "Unhealthy Option", "Damage Plan", "Plague", "Outta Here", "Home Run", "Sun Stroke", "Sunburn", "Zapped", "Fried", "Juiced", "20/20", "Locked & Loaded", "Its All Mine!", "Bouncer", "Weapon Master", "Double Bubble", "Triple Pain", "Quadruple Damage", "Meanie", "Old Skool", "Credit Due", "Halfway House", "Full House"];
achievementDescs = ["Won All Battles in Sector 1", "Won All Battles in Sector 2", "Won All Battles in Sector 3", "Won All Battles in Sector 4", "Won All Battles in Sector 5", "Got a Gold Score on 5 Battles", "Got a Gold Score on 10 Battles", "Got a Gold Score on 15 Battles", "Got a Gold Score on 20 Battles", "Got a Gold Score on 25 Battles", "Played for 10 Minutes", "Played for 20 Minutes", "Played for 30 Minutes", "Played for 44 Minutes", "Played for 90 Minutes", "Earned 10,000 Credits", "Earned 50,000 Credits", "Earned 100,000 Credits", "Earned 150,000 Credits", "Earned 250,000 Credits", "Killed 20 Enemy Units", "Killed 50 Enemy Units", "Killed 100 Enemy Units", "Killed 150 Enemy Units", "Killed 200 Enemy Units", "Done 1,000 Total Damage", "Done 2,500 Total Damage", "Done 5,000 Total Damage", "Done 7,500 Total Damage", "Done 10,000 Total Damage", "Killed 1 Enemy by Knocking it Out of Bounds", "Killed 10 Enemies by Knocking them Out of Bounds", "Killed 1 Enemy by Knocking it in a Sun", "Killed 10 Enemies by Knocking them in a Sun", "Killed 1 Enemy by Knocking it in a Shield", "Killed 10 Enemies by Knocking them in a Shield", "Maxed out a Full Team's Health", "Maxed out a Full Team's Accuracy", "Bought Everything You Can from the Weapon Shop", "Upgrade your Team Completely", "Hit an Enemy with a Shot Bounced Off a Shield", "Killed an enemy with every weapon (see stats page)", "Scored a hit with a 2X Multiplier", "Scored a hit with a 3X Multiplier", "Scored a hit with a 4X Multiplier", "You made the units on the title screen cry! ", "Completed a round with the Gravitee 1 graphics", "Viewed the developer credits", "Earned 25 awards", "Earned all other awards"];
= ["highestSectorCompleted", "highestSectorCompleted", "highestSectorCompleted", "highestSectorCompleted", "highestSectorCompleted", "goldsEarned", "goldsEarned", "goldsEarned", "goldsEarned", "goldsEarned", "secsPlayed", "secsPlayed", "secsPlayed", "secsPlayed", "secsPlayed", "moneyEarned", "moneyEarned", "moneyEarned", "moneyEarned", "moneyEarned", "enemyKills", "enemyKills", "enemyKills", "enemyKills", "enemyKills", "damageDone", "damageDone", "damageDone", "damageDone", "damageDone", "enemiesOOB", "enemiesOOB", "enemiesSun", "enemiesSun", "enemiesShield", "enemiesShield", "totalHealth", "totalAccuracy", "totalWeps", "totalMax", "shieldRebounds", "wepsUsedToKill", "highestMulti", "highestMulti", "highestMulti", "botheredUnits", "originalGFX", "creditsViewed", "awardCount", "awardCount"];
= [1, 2, 3, 4, 5, 5, 10, 15, 20, 25, 600, 1200, 1800, 2640, 5400, 10000, 50000, 100000, 150000, 250000, 20, 50, 100, 150, 200, 1000, 2500, 5000, 7500, 10000, 1, 10, 1, 10, 1, 10, 120, 120, 45, 285, 1, 1, 2, 3, 4, 1, 1, 1, 25, 49];
stats = new Array();
rewardsDisplayed = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false];
wepsUnlocked = [null, true, false, false, false, false, false, false, false, false, false];
levelsUnlocked = 1;
secsPlayedStart = 0;
super();
resetStats();
}
public function (_arg1){
((50 + _arg1));
rewardsDisplayed[_arg1] = true;
}
public function checkWepsUnlocked(){
if ((((levelsUnlocked >= 3)) && (!(wepsUnlocked[2])))){
(2);
(0);
};
if ((((levelsUnlocked >= 5)) && (!(wepsUnlocked[4])))){
(4);
(1);
};
if ((((levelsUnlocked >= 6)) && (!(wepsUnlocked[6])))){
(6);
(2);
};
if ((((levelsUnlocked >= 7)) && (!(wepsUnlocked[8])))){
(8);
(7);
};
if ((((levelsUnlocked >= 8)) && (!(wepsUnlocked[9])))){
(9);
(8);
};
if ((((levelsUnlocked >= 9)) && (!(wepsUnlocked[5])))){
(5);
(9);
};
if ((((levelsUnlocked >= 11)) && (!(wepsUnlocked[10])))){
(10);
(14);
};
if ((((levelsUnlocked >= 13)) && (!(wepsUnlocked[7])))){
(7);
(15);
};
if ((((levelsUnlocked >= 15)) && (!(wepsUnlocked[3])))){
(3);
(16);
};
}
public function checkAchievements(){
var _local1:Boolean;
var _local2:*;
var _local3:*;
var _local4:int;
var _local5:Boolean;
_local1 = false;
stats["secsPlayed"] = (Math.floor((getTimer() / 1000)) + secsPlayedStart);
_local2 = Math.floor((stats["secsPlayed"] / 60));
if (_local2 > ){
_local1 = true;
= _local2;
};
if ((((((((((((((((stats["wep1Kills"] > 0)) && ((stats["wep2Kills"] > 0)))) && ((stats["wep3Kills"] > 0)))) && ((stats["wep4Kills"] > 0)))) && ((stats["wep5Kills"] > 0)))) && ((stats["wep6Kills"] > 0)))) && ((stats["wep7Kills"] > 0)))) && ((stats["wep8Kills"] > 0)))){
stats["wepsUsedToKill"] = 1;
};
_local3 = aCount;
aCount = 0;
_local4 = 0;
while (_local4 < 50) {
if (!awarded[_local4]){
if (stats[[_local4]] >= [_local4]){
awarded[_local4] = true;
(_local4);
aCount++;
_local1 = true;
};
} else {
aCount++;
};
_local4++;
};
stats["awardCount"] = aCount;
_local5 = (aCount);
if (_local5){
_local1 = true;
};
if (aCount == 50){
infAmmo = true;
};
if (_local1){
return (true);
};
return (false);
}
public function resetStats(){
stats["highestSectorCompleted"] = 0;
stats["goldsEarned"] = 0;
stats["secsPlayed"] = 0;
stats["moneyEarned"] = 0;
stats["enemyKills"] = 0;
stats["friendlyKills"] = 0;
stats["longestShot"] = 0;
stats["damageDone"] = 0;
stats["enemiesOOB"] = 0;
stats["enemiesSun"] = 0;
stats["enemiesShield"] = 0;
stats["totalMax"] = 0;
stats["totalHealth"] = 0;
stats["totalAccuracy"] = 0;
stats["totalWeps"] = 0;
stats["shieldRebounds"] = 0;
stats["wepsUsedToKill"] = 0;
stats["highestMulti"] = 0;
stats["brokenSpeakers"] = 0;
stats["botheredUnits"] = 0;
stats["creditsViewed"] = 0;
stats["originalGFX"] = 0;
stats["maxedTeam"] = 0;
stats["awardCount"] = 0;
stats["wep1Kills"] = 0;
stats["wep2Kills"] = 0;
stats["wep3Kills"] = 0;
stats["wep4Kills"] = 0;
stats["wep5Kills"] = 0;
stats["wep6Kills"] = 0;
stats["wep7Kills"] = 0;
stats["wep8Kills"] = 0;
}
public function (_arg1){
awardQueue.push(_arg1);
}
public function (_arg1){
wepsUnlocked[_arg1] = true;
}
public function (_arg1){
var _local2:Boolean;
_local2 = false;
if ((((_arg1 >= 4)) && (!(rewardsDisplayed[3])))){
(3);
_local2 = true;
};
if ((((_arg1 >= 8)) && (!(rewardsDisplayed[4])))){
(4);
_local2 = true;
};
if ((((_arg1 >= 12)) && (!(rewardsDisplayed[5])))){
(5);
_local2 = true;
};
if ((((_arg1 >= 16)) && (!(rewardsDisplayed[6])))){
(6);
_local2 = true;
};
if ((((_arg1 >= 20)) && (!(rewardsDisplayed[10])))){
(10);
_local2 = true;
};
if ((((_arg1 >= 24)) && (!(rewardsDisplayed[11])))){
(11);
_local2 = true;
};
if ((((_arg1 >= 28)) && (!(rewardsDisplayed[12])))){
(12);
_local2 = true;
};
if ((((_arg1 >= 32)) && (!(rewardsDisplayed[13])))){
(13);
_local2 = true;
};
if ((((_arg1 >= 36)) && (!(rewardsDisplayed[17])))){
(17);
_local2 = true;
};
if ((((_arg1 >= 40)) && (!(rewardsDisplayed[18])))){
(18);
_local2 = true;
};
if ((((_arg1 >= 30)) && (!(rewardsDisplayed[19])))){
(19);
_local2 = true;
};
if ((((_arg1 >= 50)) && (!(rewardsDisplayed[20])))){
(20);
_local2 = true;
};
return (_local2);
}
}
}//package com.funkypear.game
Section 2
//AIHit (com.funkypear.game.AIHit)
package com.funkypear.game {
public class AIHit {
public var posX:Number;// = 0
public var posY:Number;// = 0
public var momX:Number;// = 0
public var momY:Number;// = 0
public var GFXscale:int;// = 0
public var GFXframe:int;// = 0
public var unitHit:int;// = 0
public var multi:int;// = 0
public var wepToKill:int;// = -1
public function AIHit(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
GFXframe = 0;
GFXscale = 0;
momX = 0;
momY = 0;
posX = 0;
posY = 0;
unitHit = 0;
multi = 0;
wepToKill = -1;
super();
GFXframe = _arg1;
GFXscale = _arg2;
momX = _arg3;
momY = _arg4;
posX = _arg5;
posY = _arg6;
unitHit = _arg7;
multi = _arg8;
}
}
}//package com.funkypear.game
Section 3
//AwardDisplay (com.funkypear.game.AwardDisplay)
package com.funkypear.game {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class AwardDisplay extends MovieClip {
public var toptext:TextField;
public var :Array;
public var shown:Boolean;// = false
public var :int;// = 0
public var awardicon:MovieClip;
public var awardname:TextField;
public function AwardDisplay(){
= 0;
shown = false;
= [["Weapon Unlocked", "Cluster Rocket"], ["Weapon Unlocked", "Sniper Rifle"], ["Weapon Unlocked", "Poisoned Dart"], ["Animation Unlocked", "Gum"], ["Animation Unlocked", "Head Bang"], ["Animation Unlocked", "Phone"], ["Animation Unlocked", "Hands"], ["Weapon Unlocked", "Land Mine"], ["Weapon Unlocked", "Shield"], ["Weapon Unlocked", "Drill Bomb"], ["Animation Unlocked", "Yo Yo"], ["Animation Unlocked", "The Worm"], ["Animation Unlocked", "Juggle"], ["Animation Unlocked", "Moon Walk"], ["Weapon Unlocked", "Teleport"], ["Weapon Unlocked", "Nuke"], ["Weapon Unlocked", "Meteor Shower"], ["Animation Unlocked", "Music"], ["Animation Unlocked", "YeeHaw"], ["Feature Unlocked", "Classic Graphics"], ["Feature Unlocked", "Infinitee"]];
super();
addEventListener(Event.ENTER_FRAME, mainLoop);
}
public function showMe(){
shown = true;
= 0;
}
public function hideMe(){
shown = false;
= 0;
}
public function
(_arg1, _arg2){
var _local3:int;
if (_arg1 > 50){
_local3 = (_arg1 - 51);
awardicon.gotoAndStop(2);
toptext.text = [_local3][0];
awardname.text = [_local3][1];
} else {
toptext.text = "Award Unlocked";
awardname.text = _arg2;
awardicon.awardnumber.text = _arg1.toString();
};
}
public function mainLoop(_arg1:Event){
if (((shown) && ((y > 456)))){
y = (y - 5);
} else {
if (((!(shown)) && ((y < 506)))){
y = (y + 5);
if (y == 506){
awardicon.gotoAndStop(1);
};
} else {
if (((!(shown)) && ((MovieClip(root).achievementsInfo.awardQueue.length > 0)))){
((MovieClip(root).achievementsInfo.awardQueue[0] + 1), MovieClip(root).achievementsInfo.achievementNames[MovieClip(root).achievementsInfo.awardQueue[0]]);
MovieClip(root).achievementsInfo.awardQueue.splice(0, 1);
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_award.gotoAndPlay(2);
};
showMe();
};
++;
if (((shown) && (( > 60)))){
hideMe();
};
};
};
}
}
}//package com.funkypear.game
Section 4
//BlackHole (com.funkypear.game.BlackHole)
package com.funkypear.game {
import flash.display.*;
public class BlackHole extends MovieClip {
public var life:int;// = 100
public var powerX:Number;// = 0
public var powerY:Number;// = 0
public var :int;// = 10
public var timeTilSpit:int;// = 1
public function BlackHole(){
life = 100;
timeTilSpit = 1;
= 10;
powerX = 0;
powerY = 0;
super();
}
public function mainLoop(){
timeTilSpit--;
life--;
if (timeTilSpit < 0){
timeTilSpit = ;
};
}
}
}//package com.funkypear.game
Section 5
//Cam (com.funkypear.game.Cam)
package com.funkypear.game {
public class Cam {
public var posX:Number;// = 0
public var posY:Number;// = 0
public var targetY:Number;// = 0
public var targetX:Number;// = 0
public function Cam(){
posX = 0;
posY = 0;
targetX = 0;
targetY = 0;
super();
}
public function setTarget(_arg1, _arg2, _arg3, _arg4, _arg5){
if (_arg1){
if ((((_arg1.x < _arg2)) || ((_arg1.x > _arg4)))){
if (_arg1.x < _arg2){
targetX = (50 - _arg1.x);
} else {
if (_arg1.x > _arg4){
targetX = (650 - _arg1.x);
};
};
} else {
targetX = (350 - _arg1.x);
if ((_arg1.x - _arg2) < 350){
targetX = (50 - _arg2);
};
if ((_arg4 - _arg1.x) < 350){
targetX = (650 - _arg4);
};
};
if ((((_arg1.y < _arg3)) || ((_arg1.y > _arg5)))){
if (_arg1.y < _arg3){
targetY = (50 - _arg1.y);
} else {
if (_arg1.y > _arg5){
targetY = (450 - _arg1.y);
};
};
} else {
targetY = (250 - _arg1.y);
if ((_arg1.y - _arg3) < 250){
targetY = (50 - _arg3);
};
if ((_arg5 - _arg1.y) < 250){
targetY = (450 - _arg5);
};
};
};
}
public function doMove(){
posX = ((posX + targetX) / 2);
posY = ((posY + targetY) / 2);
}
}
}//package com.funkypear.game
Section 6
//Explosion (com.funkypear.game.Explosion)
package com.funkypear.game {
import flash.display.*;
import flash.events.*;
public class Explosion extends MovieClip {
public var :int;// = -1
public function Explosion(){
= -1;
super();
addEventListener(Event.ENTER_FRAME, mainLoop);
}
public function mainLoop(_arg1:Event){
if (currentFrame == totalFrames){
MovieClip(parent.parent).removeExplosion(this);
removeEventListener(Event.ENTER_FRAME, mainLoop);
};
}
}
}//package com.funkypear.game
Section 7
//Explosion0 (com.funkypear.game.Explosion0)
package com.funkypear.game {
public class Explosion0 extends Explosion {
}
}//package com.funkypear.game
Section 8
//Explosion1 (com.funkypear.game.Explosion1)
package com.funkypear.game {
public class Explosion1 extends Explosion {
public function Explosion1(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package com.funkypear.game
Section 9
//Explosion2 (com.funkypear.game.Explosion2)
package com.funkypear.game {
public class Explosion2 extends Explosion {
}
}//package com.funkypear.game
Section 10
//GameTimer (com.funkypear.game.GameTimer)
package com.funkypear.game {
import flash.display.*;
import flash.text.*;
public class GameTimer extends MovieClip {
public var bottomtext:TextField;
public var toptext:TextField;
public var pauseTime:Boolean;// = false
public var timeLeft:int;// = 1350
public var :int;// = 45
public var :int;// = 3
public var time:TextField;
public function GameTimer(_arg1){
= 45;
= 3;
timeLeft = 1350;
pauseTime = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
= _arg1;
resetTimer();
}
public function showIt(){
alpha = 1;
}
public function updateTimer(){
var _local1:int;
if (!pauseTime){
timeLeft--;
};
if ((((timeLeft <= 0)) && ((alpha > 0)))){
hideIt();
};
if (alpha > 0){
_local1 = Math.ceil((timeLeft / 30));
if (_local1 < 0){
_local1 = 0;
};
time.text = _local1.toString();
};
}
public function hideIt(){
time.text = "";
alpha = 0;
}
public function resetTimer(){
toptext.text = "TIME";
bottomtext.text = "LEFT";
timeLeft = ( * 30);
updateTimer();
showIt();
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
public function resetRetreatTimer(){
toptext.text = "RETREAT";
bottomtext.text = "TIME";
timeLeft = ( * 30);
updateTimer();
showIt();
}
public function changeCol(_arg1){
gotoAndStop((_arg1 + 1));
}
}
}//package com.funkypear.game
Section 11
//GraviteeGame (com.funkypear.game.GraviteeGame)
package com.funkypear.game {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
public class GraviteeGame extends MovieClip {
public var :int;// = 0
public var :int;// = 0
public var setupMines:Array;
public var :String;// = ""
public var :BitmapData;
public var
:int;// = -1
public var
:String;// = "shoot"
public var :MovieClip;
public var :TeamDisplayBar;
public var :Array;
public var :MovieClip;
public var :ShieldNode;
public var :TargetProjectile;
public var :Array;
public var :Number;
public var gameTimer:GameTimer;
public var :int;// = 0
public var :int;// = 0
public var :int;// = 0
public var :Array;
public var :Array;
public var aiming:Boolean;// = false
public var :int;// = 5000
public var :MovieClip;
public var
:Array;
public var :int;// = -1
public var
:Array;
public var teamHealths:Array;
public var :Array;
public var :MovieClip;
public var :MovieClip;
private var :Point;
public var :int;// = 0
public var debugLayer:MovieClip;
public var
:int;// = 1
public var setupPlanets:Array;
public var
:int;// = 1
public var :Array;
public var :int;// = 0
public var :Bitmap;
public var setupShields:Array;
public var :MovieClip;
public var :Array;
public var :int;// = 5000
public var
:Array;
public var shake:Number;// = 0
public var :Boolean;// = false
public var
:Array;
public var
:Array;
public var setupUnits:Array;
public var :Array;
public var :Array;
public var :MovieClip;
public var :int;// = 0
public var :Cam;
public var :int;// = -1
public var :int;// = 0
public var :Array;
public var
:int;// = -1
public var :int;// = 0
public var
:int;// = 0
public var :Boolean;// = false
public var :int;// = 0
public var :int;// = 0
public var :Boolean;// = false
public var :int;// = 0
public var myTeamsTurn:Boolean;// = true
public var :WepIcon;
public var :Number;// = 1
public var :int;// = 0
public var
:String;// = ""
public var :Array;
public var
:Array;
public var :int;// = 0
public var :Array;
public var :int;// = 0
public var
:Array;
public var
:MovieClip;
public var panelWeps:WepPanel;
public var
:TurnDisplay;
public var classicGFX:Boolean;// = false
public var
:MovieClip;
public var
:Array;
private var
:Point;
public var
:WepPos;
public var
:Array;
public var :Array;
public var :int;// = 0
public var :int;// = 4
public var expSize:int;
public var
:Number;// = 5
public var :Arrow;
public var :Rectangle;
public var :Array;
public var :int;// = -1
public var :Array;
public function GraviteeGame(_arg1){
= new Array();
= new Array();
= new Array();
aiming = false;
= new Array();
= new Array();
= new Array();
= new ShieldNode();
= 0;
= [new Particle6(0, 0), new Particle9(0, 0)];
= 0;
= 0;
= 0;
= 1;
= 0;
= [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
= [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
= false;
= -1;
= new Array();
= "";
= -1;
= 0;
classicGFX = false;
= 0;
= new TargetProjectile();
shake = 0;
teamHealths = new Array();
= 0;
= new Array();
= [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
= new TeamDisplayBar();
= new Array();
= [0, 0, 0, 0];
= new Array();
= 5000;
= 5000;
= 0;
= 1;
= 0;
= false;
= -1;
= -1;
= false;
= -1;
= 0;
= 0;
= 0;
= 0;
= "";
= 0;
= 0;
= 0;
= new Array();
= new Array();
= [5, 5, 5, 5];
= new WepPos();
myTeamsTurn = true;
gameTimer = new GameTimer(45);
= new Array();
= new Rectangle(0, 0, 700, 500);
= new Array();
= new Array();
= new Array();
= 0;
panelWeps = new WepPanel();
= 1;
= 5;
= [0xFF0000, 39423, 0x99CC00, 0xFFCC00];
= new Cam();
= new BitmapData(700, 500, true, 0);
= new Bitmap();
= "shoot";
= new WepIcon();
= new TurnDisplay();
= new Arrow();
= 4;
= [25, 15, 0, 0, 0, 0, 0];
= new MovieClip();
= new MovieClip();
= new MovieClip();
= new MovieClip();
= new MovieClip();
debugLayer = new MovieClip();
= new MovieClip();
= new MovieClip();
= new MovieClip();
= new MovieClip();
super();
addChild();
addChild();
addChild();
addChild( );
addChild( );
addChild();
addChild();
addChild();
addChild(
);
addChild(
);
classicGFX = _arg1;
addChild();
.addChild(
);
.addChild(gameTimer);
.addChild(panelWeps);
.addChild( );
gameTimer.x = 8;
gameTimer.y = 8;
panelWeps.x = 532;
panelWeps.y = 121;
.x = 629;
.y = 429;
.x = 554;
.y = 32;
.addEventListener(MouseEvent.MOUSE_DOWN, );
addEventListener(Event.ENTER_FRAME, mainLoop);
addChild(debugLayer);
.addChild();
.mouseEnabled = false;
.mouseChildren = false;
.y = 440;
if (stage){
();
} else {
addEventListener(Event.ADDED_TO_STAGE, );
};
}
public function (_arg1:KeyboardEvent){
var _local2:Boolean;
var _local3:int;
if (_arg1.keyCode == 82){
doRestart();
} else {
if (_arg1.keyCode == 80){
if (){
doUnpause();
} else {
doPause();
};
} else {
_local2 = false;
_local3 = 0;
while (_local3 < .length) {
if ([_local3] == _arg1.keyCode){
_local2 = true;
};
_local3++;
};
if (!_local2){
.push(_arg1.keyCode);
};
};
};
}
public function (){
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
_local1 = [1, 0, 0, 0];
= 1;
_local7 = 6;
while (_local7 < setupUnits.length) {
if (_local1[setupUnits[_local7][2]] == 0){
++;
};
var _local13 = _local1;
var _local14 = setupUnits[_local7][2];
var _local15 = (_local13[_local14] + 1);
_local13[_local14] = _local15;
_local7++;
};
_local2 = 1;
_local3 = _local2;
while (.length < ( - 1)) {
if (_local3 != 0){
.push(_local3);
};
_local3++;
};
_local4 = 0;
while (_local4 < setupPlanets.length) {
(setupPlanets[_local4][0], setupPlanets[_local4][1], setupPlanets[_local4][2], setupPlanets[_local4][3]);
_local4++;
};
_local7 = 0;
while (_local7 < 10) {
[_local7] = MovieClip(root).teamInfo.wepCount[_local7];
_local7++;
};
_local7 = 0;
while (_local7 <= 5) {
if (MovieClip(root).teamInfo.unitHealths[_local7] > 0){
(setupUnits[_local7][0], setupUnits[_local7][1], setupUnits[_local7][2], false);
[(
.length - 1)].unitName = MovieClip(root).teamInfo.unitNames[_local7];
[(
.length - 1)].health = (10 * MovieClip(root).teamInfo.unitHealths[_local7]);
[(
.length - 1)].accuracy = MovieClip(root).teamInfo.unitAccuracy[_local7];
[(
.length - 1)].maxHealth =
[(
.length - 1)].health;
};
_local7++;
};
_local7 = 6;
while (_local7 < setupUnits.length) {
(setupUnits[_local7][0], setupUnits[_local7][1], setupUnits[_local7][2], false);
[(
.length - 1)].health = MovieClip(root).levelSetup.teamHealths[(setupUnits[_local7][2] - 1)];
[(
.length - 1)].accuracy = MovieClip(root).levelSetup.AISkill[(setupUnits[_local7][2] - 1)];
[(
.length - 1)].unitName = setupUnits[_local7][3];
_local7++;
};
_local5 = 0;
while (_local5 < setupMines.length) {
(setupMines[_local5][0], setupMines[_local5][1]);
[(.length - 1)].timeTilPrimed = 0;
[(.length - 1)].gotoAndStop(2);
_local5++;
};
_local6 = 0;
while (_local6 < setupShields.length) {
(setupShields[_local6][0], setupShields[_local6][1], setupShields[_local6][2]);
_local6++;
};
();
= 0;
while ( <
.length) {
.addChild(
[].healthDisplay);
[].healthDisplay.x =
[].x;
[].healthDisplay.y =
[].y;
[].healthDisplay.rotation =
[].rotation;
[].healthDisplay.updateDisplay(
[].health,
[].team);
++;
};
_local7 = 0;
while (_local7 < ) {
if (_local7 == 0){
.push(new TeamDisplayRed());
[( .length - 1)].teamname.text = MovieClip(root).teamInfo.teamName;
} else {
if (_local7 == 1){
.push(new TeamDisplayBlue());
[( .length - 1)].teamname.text = MovieClip(root).levelSetup.teamNames[(_local7 - 1)];
} else {
if (_local7 == 2){
.push(new TeamDisplayGreen());
[( .length - 1)].teamname.text = MovieClip(root).levelSetup.teamNames[(_local7 - 1)];
} else {
if (_local7 == 3){
.push(new TeamDisplayYellow());
[( .length - 1)].teamname.text = MovieClip(root).levelSetup.teamNames[(_local7 - 1)];
};
};
};
};
[( .length - 1)].bar.gotoAndStop(1);
[( .length - 1)].x = ((154 * _local7) + 10);
.addChild( [( .length - 1)]);
_local7++;
};
(true);
_local8 = 0;
while (_local8 < .length) {
if (([_local8].x - ([_local8].diameter / 2)) < ){
= ([_local8].x - ([_local8].diameter / 2));
};
if (([_local8].x + ([_local8].diameter / 2)) > ){
= ([_local8].x + ([_local8].diameter / 2));
};
if (([_local8].y - ([_local8].diameter / 2)) < ){
= ([_local8].y - ([_local8].diameter / 2));
};
if (([_local8].y + ([_local8].diameter / 2)) > ){
= ([_local8].y + ([_local8].diameter / 2));
};
_local8++;
};
= ( - 50);
= ( - 50);
= ( + 50);
= ( + 50);
_local9 = ( - );
_local10 = ( - );
if (_local9 < 700){
= ( - ((700 - _local9) / 2));
= ( + ((700 - _local9) / 2));
};
if (_local10 < 500){
= ( - ((500 - _local10) / 2));
= ( + ((500 - _local10) / 2));
};
_local9 = ( - );
_local10 = ( - );
_local11 = (700 / _local9);
_local12 = (500 / _local10);
if (_local11 < _local12){
= _local11;
} else {
= _local12;
};
MovieClip(root).msg.addMessage((
[ ].unitName + "'s Turn"),
[ ].team);
.setTarget(
[ ], , , , );
}
public function (_arg1:MouseEvent){
MovieClip(root).explain.gotoAndStop(1);
}
public function (_arg1:MouseEvent){
_arg1.currentTarget.healthDisplay.unitname.text = "";
}
public function (_arg1:MouseEvent){
MovieClip(root).explain.gotoAndStop(((_arg1.currentTarget.name.substr(2) * 1) + 1));
}
public function (_arg1:MouseEvent){
_arg1.currentTarget.healthDisplay.x = _arg1.currentTarget.x;
_arg1.currentTarget.healthDisplay.y = _arg1.currentTarget.y;
_arg1.currentTarget.healthDisplay.rotation = _arg1.currentTarget.rotation;
_arg1.currentTarget.healthDisplay.unitname.textColor =
[_arg1.currentTarget.team];
_arg1.currentTarget.healthDisplay.unitname.text = _arg1.currentTarget.unitName;
}
public function (_arg1:MouseEvent=null){
if (panelWeps.currentFrame == 1){
panelWeps.removeEventListener(MouseEvent.MOUSE_UP, );
panelWeps.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.gotoAndPlay(2);
};
}
public function doPause(_arg1:MouseEvent=null){
MovieClip(root).pausePanel.gotoAndStop(2);
= true;
}
public function (){
= 0;
= "pickupFind";
= 1;
= 0;
= 0;
= false;
= -1;
= -1;
= new Array();
= 0;
if (
[ ].animState.substr(0, 6) != "aiming"){
[ ].changeAnim(("aiming" +
));
};
.graphics.clear();
}
public function (_arg1:Event=null){
var _local2:int;
removeEventListener(Event.ADDED_TO_STAGE, );
stage.addEventListener(KeyboardEvent.KEY_DOWN, );
stage.addEventListener(KeyboardEvent.KEY_UP, );
stage.addEventListener(MouseEvent.MOUSE_DOWN,
);
.buttonMode = true;
.useHandCursor = true;
();
_local2 = 1;
while (_local2 < 10) {
[_local2] = MovieClip(root).teamInfo.wepCount[_local2];
_local2++;
};
_local2 = 1;
while (_local2 < 10) {
[_local2] = MovieClip(root).levelSetup.enemyWeps[_local2];
_local2++;
};
panelWeps.panel.wep1.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm1.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm1.addEventListener(MouseEvent.MOUSE_OUT, );
if (MovieClip(root).achievementsInfo.wepsUnlocked[2]){
panelWeps.panel.wep2.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm2.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm2.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[4]){
panelWeps.panel.wep4.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm3.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm3.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[6]){
panelWeps.panel.wep6.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm4.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm4.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[8]){
panelWeps.panel.wep8.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm5.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm5.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[9]){
panelWeps.panel.wep9.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm6.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm6.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[5]){
panelWeps.panel.wep5.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm7.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm7.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[10]){
panelWeps.panel.wep10.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm8.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm8.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[7]){
panelWeps.panel.wep7.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm9.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm9.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[3]){
panelWeps.panel.wep3.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.panel.qm10.addEventListener(MouseEvent.MOUSE_OVER, );
panelWeps.panel.qm10.addEventListener(MouseEvent.MOUSE_OUT, );
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[2]){
panelWeps.panel.wep1lock.gotoAndStop(2);
panelWeps.panel.qm2.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[4]){
panelWeps.panel.wep2lock.gotoAndStop(2);
panelWeps.panel.qm3.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[6]){
panelWeps.panel.wep3lock.gotoAndStop(2);
panelWeps.panel.qm4.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[8]){
panelWeps.panel.wep4lock.gotoAndStop(2);
panelWeps.panel.qm5.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[9]){
panelWeps.panel.wep5lock.gotoAndStop(2);
panelWeps.panel.qm6.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[5]){
panelWeps.panel.wep6lock.gotoAndStop(2);
panelWeps.panel.qm7.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[10]){
panelWeps.panel.wep7lock.gotoAndStop(2);
panelWeps.panel.qm8.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[7]){
panelWeps.panel.wep8lock.gotoAndStop(2);
panelWeps.panel.qm9.alpha = 0;
};
if (!MovieClip(root).achievementsInfo.wepsUnlocked[3]){
panelWeps.panel.wep9lock.gotoAndStop(2);
panelWeps.panel.qm10.alpha = 0;
};
();
if (MovieClip(root).levelSetup.levelID > 2){
.cndtext.alpha = 0;
};
setupPlanets = MovieClip(root).levelSetup.setupPlanets;
setupUnits = MovieClip(root).levelSetup.setupUnits;
setupMines = MovieClip(root).levelSetup.setupMines;
setupShields = MovieClip(root).levelSetup.setupShields;
();
if ((((MovieClip(root).levelSetup.levelID == 1)) && (!(MovieClip(root).tutorialsDone[0])))){
MovieClip(root).tutorialsDone[0] = true;
MovieClip(root).showTutorial(0, 121, 97);
gameTimer.pauseTime = true;
} else {
if ((((MovieClip(root).levelSetup.levelID == 2)) && (!(MovieClip(root).tutorialsDone[1])))){
MovieClip(root).tutorialsDone[1] = true;
MovieClip(root).showTutorial(1, 121, 97);
gameTimer.pauseTime = true;
} else {
if ((((MovieClip(root).levelSetup.levelID == 3)) && (!(MovieClip(root).tutorialsDone[5])))){
MovieClip(root).tutorialsDone[5] = true;
MovieClip(root).showTutorial(5, 121, 97);
gameTimer.pauseTime = true;
} else {
if ((((MovieClip(root).levelSetup.levelID == 7)) && (!(MovieClip(root).tutorialsDone[2])))){
MovieClip(root).tutorialsDone[2] = true;
MovieClip(root).showTutorial(2, 121, 97);
gameTimer.pauseTime = true;
} else {
if ((((MovieClip(root).levelSetup.levelID == 8)) && (!(MovieClip(root).tutorialsDone[3])))){
MovieClip(root).tutorialsDone[3] = true;
MovieClip(root).showTutorial(3, 121, 97);
gameTimer.pauseTime = true;
};
};
};
};
};
}
public function (_arg1){
var _local2:int;
_local2 =
.indexOf(_arg1);
.removeChild(_arg1);
.splice(_local2, 1);
}
public function (_arg1){
var _local2:int;
_local2 =
.indexOf(_arg1);
.removeChild(_arg1);
.splice(_local2, 1);
}
public function mainLoop(_arg1:Event){
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:Rectangle;
var _local13:Boolean;
var _local14:int;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Boolean;
var _local21:*;
var _local22:*;
var _local23:*;
var _local24:int;
var _local25:MovieClip;
var _local26:Matrix;
var _local27:*;
var _local28:*;
var _local29:Number;
var _local30:Number;
var _local31:Number;
var _local32:*;
var _local33:*;
var _local34:*;
var _local35:*;
var _local36:*;
var _local37:*;
var _local38:*;
var _local39:*;
var _local40:*;
var _local41:*;
var _local42:*;
var _local43:*;
var _local44:int;
var _local45:int;
var _local46:Point;
var _local47:Point;
var _local48:Point;
var _local49:Point;
var _local50:*;
var _local51:Point;
var _local52:Point;
var _local53:Point;
var _local54:Point;
var _local55:Point;
var _local56:Array;
var _local57:*;
var _local58:Number;
var _local59:Number;
var _local60:Number;
var _local61:Number;
var _local62:Number;
var _local63:Number;
var _local64:Number;
var _local65:*;
var _local66:*;
var _local67:int;
var _local68:*;
var _local69:int;
var _local70:int;
var _local71:*;
var _local72:*;
var _local73:*;
var _local74:*;
var _local75:*;
var _local76:*;
var _local77:Number;
var _local78:Number;
var _local79:*;
var _local80:Point;
var _local81:*;
var _local82:*;
var _local83:Array;
var _local84:int;
var _local85:*;
var _local86:int;
var _local87:int;
var _local88:int;
var _local89:*;
var _local90:Number;
var _local91:Number;
var _local92:Number;
var _local93:*;
var _local94:*;
var _local95:*;
var _local96:*;
var _local97:*;
var _local98:*;
var _local99:*;
var _local100:*;
var _local101:*;
var _local102:*;
var _local103:*;
var _local104:*;
var _local105:*;
var _local106:*;
var _local107:*;
var _local108:*;
var _local109:Number;
var _local110:int;
var _local111:Boolean;
var _local112:int;
var _local113:*;
var _local114:int;
if (!){
gameTimer.updateTimer();
debugLayer.graphics.clear();
if (((((
[ ]) && ((
== "shoot")))) || ((((
== "sim")) && ((gameTimer.timeLeft > 0)))))){
[ ].isWalking = false;
};
_local2 = false;
_local3 = 0;
while (_local3 < .length) {
if (((((((((((((((([_local3] == 37)) || (([_local3] == 38)))) || (([_local3] == 39)))) || (([_local3] == 40)))) || (([_local3] == 73)))) || (([_local3] == 74)))) || (([_local3] == 75)))) || (([_local3] == 76)))){
_local2 = true;
};
_local3++;
};
if (!_local2){
= "";
};
_local3 = 0;
while (_local3 < .length) {
if ([_local3] == 65){
.targetX = (.targetX + 10);
} else {
if ([_local3] == 68){
.targetX = (.targetX - 10);
} else {
if ([_local3] == 87){
.targetY = (.targetY + 10);
} else {
if ([_local3] == 83){
.targetY = (.targetY - 10);
} else {
if (((((((((( == "")) && (((([_local3] == 37)) || (([_local3] == 74)))))) && (!(aiming)))) && (!((
[ ].animState.substr(0, 8) == "teleport"))))) && ((((
== "shoot")) || ((((
== "sim")) && ((gameTimer.timeLeft > 0)))))))){
if ((((
[ ].rotation >= -90)) && ((
[ ].rotation < 90)))){
= "l";
} else {
= "r";
};
} else {
if (((((((((( == "")) && (((([_local3] == 39)) || (([_local3] == 76)))))) && (!(aiming)))) && (!((
[ ].animState.substr(0, 8) == "teleport"))))) && ((((
== "shoot")) || ((((
== "sim")) && ((gameTimer.timeLeft > 0)))))))){
if ((((
[ ].rotation >= -90)) && ((
[ ].rotation < 90)))){
= "r";
} else {
= "l";
};
} else {
if (((((((((( == "")) && (((([_local3] == 38)) || (([_local3] == 73)))))) && (!(aiming)))) && (!((
[ ].animState.substr(0, 8) == "teleport"))))) && ((((
== "shoot")) || ((((
== "sim")) && ((gameTimer.timeLeft > 0)))))))){
if ((((
[ ].rotation >= 0)) && ((
[ ].rotation < 180)))){
= "l";
} else {
= "r";
};
} else {
if (((((((((( == "")) && (((([_local3] == 40)) || (([_local3] == 75)))))) && (!(aiming)))) && (!((
[ ].animState.substr(0, 8) == "teleport"))))) && ((((
== "shoot")) || ((((
== "sim")) && ((gameTimer.timeLeft > 0)))))))){
if ((((
[ ].rotation >= 0)) && ((
[ ].rotation < 180)))){
= "r";
} else {
= "l";
};
};
};
};
};
};
};
};
};
_local3++;
};
if (((((( == "l")) && (myTeamsTurn))) && ((((
== "shoot")) || ((((
== "sim")) && ((gameTimer.timeLeft > 0)))))))){
.gotoAndStop(34);
( , 3);
} else {
if (((((( == "r")) && (myTeamsTurn))) && ((((
== "shoot")) || ((((
== "sim")) && ((gameTimer.timeLeft > 0)))))))){
.gotoAndStop(34);
( , 3);
};
};
if (((!(myTeamsTurn)) && (!((
== "gameover"))))){
();
};
_local4 = 0;
while (_local4 <
.length) {
[_local4].mainLoop();
if (
[_local4].timeTilSpit == 0){
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_spit.gotoAndPlay(2);
};
_local15 = ((Math.random() / 10) + 1);
_local16 = ((Math.random() / 10) + 1);
(
[_local4].x,
[_local4].y, (
[_local4].powerX * _local15), (
[_local4].powerY * _local16), 0, "aster", null);
};
_local4++;
};
= 0;
while ( <
.length) {
_local10 = 0;
while (_local10 <
.length) {
_local17 = (
[_local10].x -
[].x);
_local18 = (
[_local10].y -
[].y);
_local19 = ((_local17 * _local17) + (_local18 * _local18));
if ((((_local19 < 400)) && (!(
[_local10].removeMe)))){
if ((((
== "pickup")) && (( == )))){
--;
};
[_local10].removeMe = true;
if ((
[_local10] is PickupHealth)){
[].health = (
[].health + 25);
[].healthShown = (
[].healthShown + 25);
MovieClip(root).msg.addMessage((
[].unitName + " collected a Health Pack"),
[].team);
[].healthDisplay.updateDisplay(
[].health,
[].team);
.push(new HealthFloat());
.addChild([(.length - 1)]);
[(.length - 1)].updateDisplay(25,
[].team, true);
[(.length - 1)].x =
[].x;
[(.length - 1)].y =
[].y;
[(.length - 1)].rotation =
[].rotation;
if (
[].poisoned){
[].poisoned = false;
[].poison.gotoAndStop(1);
};
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_pickuphealth.gotoAndPlay(2);
};
} else {
if ((
[_local10] is PickupWeapon)){
_local20 = false;
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_pickupammo.gotoAndPlay(2);
};
do {
_local21 = Math.floor((Math.random() * 65));
if ((((_local21 < 10)) && (MovieClip(root).achievementsInfo.wepsUnlocked[2]))){
if (
[].team == 0){
var _local115 = ;
var _local116 = 1;
var _local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
MovieClip(root).msg.addMessage((
[].unitName + " found a Cluster Rocket"),
[].team);
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 1;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 16)) && (MovieClip(root).achievementsInfo.wepsUnlocked[4]))){
if (
[].team == 0){
_local115 = ;
_local116 = 2;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
MovieClip(root).msg.addMessage((
[].unitName + " found a Sniper Rifle"),
[].team);
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 2;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 26)) && (MovieClip(root).achievementsInfo.wepsUnlocked[6]))){
if (
[].team == 0){
_local115 = ;
_local116 = 3;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
MovieClip(root).msg.addMessage((
[].unitName + " found a Poisoned Dart"),
[].team);
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 3;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 36)) && (MovieClip(root).achievementsInfo.wepsUnlocked[8]))){
if (
[].team == 0){
_local115 = ;
_local116 = 4;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
MovieClip(root).msg.addMessage((
[].unitName + " found a Land Mine"),
[].team);
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 4;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 42)) && (MovieClip(root).achievementsInfo.wepsUnlocked[9]))){
if (
[].team == 0){
_local115 = ;
_local116 = 5;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
MovieClip(root).msg.addMessage((
[].unitName + " found a Shield"),
[].team);
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 5;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 50)) && (MovieClip(root).achievementsInfo.wepsUnlocked[5]))){
if (
[].team == 0){
_local115 = ;
_local116 = 6;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
MovieClip(root).msg.addMessage((
[].unitName + " found a Drill Bomb"),
[].team);
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 6;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 60)) && (MovieClip(root).achievementsInfo.wepsUnlocked[10]))){
if (
[].team == 0){
_local115 = ;
_local116 = 7;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
MovieClip(root).msg.addMessage((
[].unitName + " found a Teleport"),
[].team);
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 7;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 63)) && (MovieClip(root).achievementsInfo.wepsUnlocked[7]))){
if (
[].team == 0){
MovieClip(root).msg.addMessage((
[].unitName + " found a Nuke"),
[].team);
_local115 = ;
_local116 = 8;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 8;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
} else {
if ((((_local21 < 65)) && (MovieClip(root).achievementsInfo.wepsUnlocked[3]))){
if (
[].team == 0){
MovieClip(root).msg.addMessage((
[].unitName + " found a Meteor Shower"),
[].team);
_local115 = ;
_local116 = 9;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
} else {
MovieClip(root).msg.addMessage((
[].unitName + " collected a Weapon"),
[].team);
_local115 = ;
_local116 = 9;
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local20 = true;
};
};
};
};
};
};
};
};
};
} while (!(_local20));
();
};
};
};
_local10++;
};
++;
};
_local5 = 0;
while (_local5 <
.length) {
if ((
[_local5] is MineProjectile)){
if (
[_local5].intDelay <= 0){
[_local5].doGravity();
};
} else {
if ((
[_local5] is Wep2aProjectile)){
[_local5].doGravity(new Array([
[_local5].onlyPlanet]));
} else {
if (!(((
[_local5] is Wep5Projectile)) && ((
[_local5].inPlanet > 0)))){
[_local5].doGravity();
};
};
};
[_local5].moveProjectile(, , , );
if ((((
[_local5] is Wep5Projectile)) && ((
[_local5].inPlanet > 0)))){
_local22 = (
[_local5].x - [
[_local5].planetHit].x);
_local23 = (
[_local5].y - [
[_local5].planetHit].y);
_local24 = 8;
_local25 = new MovieClip();
_local25.graphics.beginFill(0, 0.1);
_local25.graphics.drawCircle(_local24, _local24, _local24);
_local25.graphics.endFill();
_local26 = new Matrix();
_local26.translate(((_local22 + ([
[_local5].planetHit].diameter / 2)) - _local24), ((_local23 + ([
[_local5].planetHit].diameter / 2)) - _local24));
[
[_local5].planetHit].BMData.draw(_local25, _local26, null, null, null, false);
};
if (
[_local5].hasSmoke){
_local27 = (
[_local5].x + (4 * Math.sin(((Math.PI / 2) - (
[_local5].rotation * (Math.PI / 180))))));
_local28 = (
[_local5].y + (4 * Math.cos(((Math.PI / 2) - (
[_local5].rotation * (Math.PI / 180))))));
_local29 = Math.cos(((Math.PI / 2) - (
[_local5].rotation * (Math.PI / 180))));
_local30 = Math.sin(((Math.PI / 2) - (
[_local5].rotation * (Math.PI / 180))));
_local31 = ((Math.random() * 4) - 2);
_local32 = (_local31 * _local29);
_local33 = (_local31 * _local30);
if (((
[_local5].lastSmokeX) && (
[_local5].lastSmokeY))){
_local34 = (_local27 -
[_local5].lastSmokeX);
_local35 = (_local28 -
[_local5].lastSmokeY);
_local36 = Math.sqrt(((_local34 * _local34) + (_local35 * _local35)));
_local37 = Math.ceil((_local36 / 1.5));
_local38 = (_local34 / _local37);
_local39 = (_local35 / _local37);
_local6 = 1;
while (_local6 < _local37) {
_local31 = ((Math.random() * 4) - 2);
_local40 = (_local31 * _local29);
_local41 = (_local31 * _local30);
_local42 = (
[_local5].lastSmokeX + (_local38 * _local6));
_local43 = (
[_local5].lastSmokeY + (_local39 * _local6));
.push(new Particle((_local42 + _local40), (_local43 + _local41), 0, 0,
[_local5].smokeType,
[_local5].smokeLife));
_local6++;
};
};
[_local5].lastSmokeX = _local27;
[_local5].lastSmokeY = _local28;
.push(new Particle((_local27 + _local32), (_local28 + _local33), 0, 0,
[_local5].smokeType,
[_local5].smokeLife));
};
if (_local5 == 0){
.setTarget(
[_local5], , , , );
};
_local5++;
};
if ((((
.length == 0)) && (!((
== "shoot"))))){
_local44 = -1;
_local45 = 0;
while (_local45 <
.length) {
if ((((
[_local45].animState == "lay")) && ((_local44 == -1)))){
_local44 = _local45;
};
_local45++;
};
if (_local44 > -1){
.setTarget(
[_local45], , , , );
} else {
if (
[ ]){
.setTarget(
[ ], , , , );
} else {
.setTarget(
[0], , , , );
};
};
};
_local6 = 0;
while (_local6 < .length) {
if ([(_local6 + 1)]){
_local46 = new Point([_local6].x, [_local6].y);
_local47 = new Point([(_local6 + 1)].x, [(_local6 + 1)].y);
_local5 = 0;
while (_local5 <
.length) {
_local48 = new Point(
[_local5].x,
[_local5].y);
_local49 = new Point(
[_local5].oldX,
[_local5].oldY);
_local50 = lineIntersectLine(_local46, _local47, _local48, _local49, true);
if (((((!(
[_local5].removeMe)) && (_local50))) && ((
[_local5].shieldDelay <= 0)))){
if ((
[_local5] is UnitProjectile)){
[_local5].removeMe = true;
(_local50.x, _local50.y, 1, "zap");
[( .length - 1)].team =
[_local5].team;
[( .length - 1)].gotoAndPlay(2);
[( .length - 1)].rotation =
[_local5].rotation;
if (myTeamsTurn){
if (
[_local5].team != 0){
if (
[_local5].killReg > 0){
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = (("wep" +
[_local5].killReg) + "Kills");
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "enemiesShield";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "enemyKills";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
};
if (
[_local5].team == 0){
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "friendlyKills";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
[_local6].timeTilDie = 25;
[(_local6 + 1)].timeTilDie = 25;
} else {
_local27 = _local50.x;
_local28 = _local50.y;
_local51 = new Point(
[_local5].momX,
[_local5].momY);
_local52 = new Point(_local46.x, _local46.y);
_local53 = new Point(_local47.x, _local47.y);
_local54 = new Point(_local48.x, _local48.y);
_local55 = new Point(_local49.x, _local49.y);
_local56 = (_local52, _local53, _local54, _local55, _local51, 1);
[_local5].reflected = true;
[_local5].shieldDelay = 2;
[_local5].x = _local27;
[_local5].y = _local28;
(_local27, _local28, 1, "spark");
[_local5].momX = _local56[1].x;
[_local5].momY = _local56[1].y;
[_local6].timeTilDie = 5;
[(_local6 + 1)].timeTilDie = 5;
};
[(_local6 + 1)].life--;
[_local6].life--;
};
_local5++;
};
};
_local6 = (_local6 + 2);
};
_local5 = 0;
while (_local5 <
.length) {
= 0;
while ( <
.length) {
if (((((((((!(
[].removeMe)) && (!(
[_local5].removeMe)))) && (!((
[_local5] is UnitProjectile))))) && (!((
[_local5] is MineProjectile))))) && (((!(( == ))) || ((
[_local5].life > 5)))))){
_local57 =
(
[],
[_local5]);
if (((_local57) && (!((
[_local5] is Wep6Projectile))))){
_local58 =
[_local5].x;
_local59 =
[_local5].y;
_local60 =
[_local5].oldX;
_local61 =
[_local5].oldY;
_local64 = 10;
_local62 = ((_local58 + _local60) / 2);
_local63 = ((_local59 + _local61) / 2);
_local65 = (
[_local5].x -
[_local5].oldX);
_local66 = (
[_local5].y -
[_local5].oldY);
[_local5].x = _local62;
[_local5].y = _local63;
_local67 = (.length - 1);
while (_local67 >= 0) {
removeChild([_local67]);
.splice(_local67, 1);
_local67--;
};
while (_local64 > 0.01) {
_local73 = PixelPerfectCollisionDetection.isColliding(
[].hitarea,
[_local5], this, true, 0);
if (_local73){
_local57 = _local73;
_local58 = _local62;
_local59 = _local63;
} else {
_local60 = _local62;
_local61 = _local63;
};
_local62 = ((_local58 + _local60) / 2);
_local63 = ((_local59 + _local61) / 2);
[_local5].x = _local62;
[_local5].y = _local63;
_local64 = (((_local62 - _local58) * (_local62 - _local58)) + ((_local63 - _local59) * (_local63 - _local59)));
};
[_local5].x = _local58;
[_local5].y = _local59;
[_local5].removeMe = true;
if (((((( == )) && ((
== "sim")))) && ((gameTimer.timeLeft > 0)))){
gameTimer.timeLeft = 0;
};
[].removeMe = true;
if ((
[_local5] is Wep2Projectile)){
shake = 3;
if ((
[_local5] is Wep2Projectile)){
_local68 = Math.atan2((
[_local5].y -
[_local5].oldY), (
[_local5].x -
[_local5].oldX));
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.35))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.2))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.2)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.2)))), 0, "payload",
[].positionPlanet);
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.35))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.35))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.35)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.35)))), 0, "payload",
[].positionPlanet);
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.5))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.5))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.5)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.5)))), 0, "payload",
[].positionPlanet);
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.65))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.65))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.65)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.65)))), 0, "payload",
[].positionPlanet);
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.65))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.8))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.8)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.8)))), 0, "payload",
[].positionPlanet);
};
} else {
if ((
[_local5] is Wep7Projectile)){
_local69 = 0;
while (_local69 <
.length) {
if (
[_local69].positionPlanet ==
[].positionPlanet){
[_local69].poisoned = true;
[_local69].poison.gotoAndPlay(2);
};
_local69++;
};
};
};
[].removeMe = false;
(
[_local5].x,
[_local5].y, _local5, -1, "unit");
} else {
if (((_local57) && ((
[_local5] is Wep6Projectile)))){
[_local5].removeMe = true;
[].poisoned = true;
[].poison.gotoAndPlay(2);
[].changeAnim("falldown");
if ((((
[].killReg == -1)) && ((
[].health <= (
[_local5].maxDamage *
[_local5].multi))))){
[].killReg = 6;
};
[].damageTaken = (
[].damageTaken + (
[_local5].maxDamage *
[_local5].multi));
if (((!((
[].team == 0))) && (myTeamsTurn))){
= ( + (
[_local5].maxDamage *
[_local5].multi));
};
};
};
};
++;
};
_local5++;
};
_local5 = 0;
while (_local5 <
.length) {
_local70 = (_local5 + 1);
while (_local70 <
.length) {
if (((((!(
[_local5].removeMe)) && (!(
[_local70].removeMe)))) && (!((_local5 == _local70))))){
if ((((((((
[_local5] is UnitProjectile)) && (!((
[_local70] is UnitProjectile))))) || ((((
[_local70] is UnitProjectile)) && (!((
[_local5] is UnitProjectile))))))) && (((!((
[_local5] is Wep5Projectile))) && (!((
[_local70] is Wep5Projectile))))))){
if (
(
[_local5],
[_local70])){
if ((
[_local5] is UnitProjectile)){
_local71 = _local70;
_local72 = _local5;
} else {
if ((
[_local70] is UnitProjectile)){
_local71 = _local5;
_local72 = _local70;
};
};
[_local71].removeMe = true;
(
[_local71].x,
[_local71].y, _local71, -1, "proj");
[_local72].damageTaken = (
[_local72].damageTaken + (
[_local71].maxDamage *
[_local71].multi));
};
};
};
_local70++;
};
_local5++;
};
_local5 = 0;
while (_local5 <
.length) {
if (!
[_local5].removeMe){
= 0;
while ( < .length) {
_local73 = false;
_local57 = ([],
[_local5]);
if (_local57){
if (((!((
[_local5] is Wep5Projectile))) || ((((
[_local5] is Wep5Projectile)) && ((
[_local5].inPlanet == 0)))))){
if ((
[_local5] is Wep5Projectile)){
[_local5].hasSmoke = false;
[_local5].inPlanet = 1;
[_local5].planetHit = ;
_local74 = Math.sqrt(((
[_local5].momX *
[_local5].momX) + (
[_local5].momY *
[_local5].momY)));
_local75 = 3;
_local76 = (_local75 / _local74);
[_local5].momX = (
[_local5].momX * _local76);
[_local5].momY = (
[_local5].momY * _local76);
} else {
_local46 = new Point(((_local57.x + (_local57.width / 2)) - [].x), ((_local57.y + (_local57.height / 2)) - [].y));
_local58 =
[_local5].x;
_local59 =
[_local5].y;
_local77 =
[_local5].x;
_local78 =
[_local5].y;
_local60 =
[_local5].oldX;
_local61 =
[_local5].oldY;
_local64 = 10;
_local62 = ((_local58 + _local60) / 2);
_local63 = ((_local59 + _local61) / 2);
[_local5].x = _local62;
[_local5].y = _local63;
_local67 = (.length - 1);
while (_local67 >= 0) {
removeChild([_local67]);
.splice(_local67, 1);
_local67--;
};
while (_local64 > 0.01) {
_local73 = ([],
[_local5]);
if (_local73){
_local57 = _local73;
_local58 = _local62;
_local59 = _local63;
} else {
_local60 = _local62;
_local61 = _local63;
};
_local62 = ((_local58 + _local60) / 2);
_local63 = ((_local59 + _local61) / 2);
[_local5].x = _local62;
[_local5].y = _local63;
_local64 = (((_local62 - _local58) * (_local62 - _local58)) + ((_local63 - _local59) * (_local63 - _local59)));
};
if (!(
[_local5] is MineProjectile)){
[_local5].x = _local58;
[_local5].y = _local59;
} else {
[_local5].x = _local77;
[_local5].y = _local78;
};
};
};
if ((
[_local5] is MineProjectile)){
if (![].isSun){
_local47 = new Point((
[_local5].oldX - [].x), (
[_local5].oldY - [].y));
_local80 = new Point(((_local46.x - _local47.x) + _local46.x), ((_local46.y - _local47.y) + _local46.y));
_local83 = new Array();
_local84 = 0;
_local85 = 5000;
_local86 = -1;
_local87 = -1;
_local88 = -1;
_local6 = 0;
while (_local6 < [].shapeArray.length) {
_local10 = 0;
while (_local10 < [].shapeArray[_local6].length) {
_local48 = new Point([].shapeArray[_local6][_local10].x, [].shapeArray[_local6][_local10].y);
_local49 = new Point([].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].x, [].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].y);
_local89 = [].lineIntersectLine(_local47, _local80, _local48, _local49, true);
if (_local89){
[_local5].intDelay = 2;
_local90 = (
[_local5].oldX - (_local89.x + [].x));
_local91 = (
[_local5].oldY - (_local89.y + [].y));
_local92 = Math.sqrt(((_local90 * _local90) + (_local91 * _local91)));
if ((((_local84 == 0)) || ((_local85 > _local92)))){
[_local5].lastIntSectionPlanet = ;
[_local5].lastIntSectionShape = _local6;
[_local5].lastIntSectionElement = _local10;
if (((!((
[_local5].lastRefX == _local89.x))) || (!((
[_local5].lastRefY == _local89.y))))){
_local84++;
[_local5].lastRefX = _local89.x;
[_local5].lastRefY = _local89.y;
_local85 = _local92;
_local27 = (_local89.x + [].x);
_local28 = (_local89.y + [].y);
_local83.push(new Point(_local27, _local28));
_local79 = Math.atan2(([].shapeArray[_local6][_local10].y - [].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].y), ([].shapeArray[_local6][_local10].x - [].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].x));
_local51 = new Point(
[_local5].momX,
[_local5].momY);
_local52 = new Point((_local48.x + [].x), (_local48.y + [].y));
_local53 = new Point((_local49.x + [].x), (_local49.y + [].y));
_local54 = new Point((_local47.x + [].x), (_local47.y + [].y));
_local55 = new Point((_local80.x + [].x), (_local80.y + [].y));
_local56 = (_local52, _local53, _local54, _local55, _local51, 0.5);
_local93 = Math.sqrt(((_local56[1].x * _local56[1].x) + (_local56[1].y * _local56[1].y)));
};
};
};
_local10++;
};
_local6++;
};
if ((((_local84 > 0)) && ((_local93 > 5)))){
_local94 = (_local56[0].x -
[_local5].oldX);
_local95 = (_local56[0].y -
[_local5].oldY);
_local96 = Math.sqrt(((_local94 * _local94) + (_local95 * _local95)));
_local97 = (_local96 - 1);
_local98 = (_local56[0].x - (_local94 / _local96));
_local99 = (_local56[0].y - (_local95 / _local96));
[_local5].x = _local98;
[_local5].y = _local99;
[_local5].momX = (_local56[1].x * 1);
[_local5].momY = (_local56[1].y * 1);
} else {
if (_local84 > 0){
[_local5].removeMe = true;
.push(new Mine());
.addChild([(.length - 1)]);
[(.length - 1)].timeTilPrimed =
[_local5].timeTilPrimed;
[(.length - 1)].timeTilBoom =
[_local5].timeTilBoom;
[(.length - 1)].activated =
[_local5].activated;
[(.length - 1)].gotoAndStop(2);
[(.length - 1)].positionPlanet =
[_local5].lastIntSectionPlanet;
[(.length - 1)].positionShape =
[_local5].lastIntSectionShape;
[(.length - 1)].positionElement =
[_local5].lastIntSectionElement;
[(.length - 1)].positionElementX = [
[_local5].lastIntSectionPlanet].shapeArray[
[_local5].lastIntSectionShape][
[_local5].lastIntSectionElement].x;
[(.length - 1)].positionElementY = [
[_local5].lastIntSectionPlanet].shapeArray[
[_local5].lastIntSectionShape][
[_local5].lastIntSectionElement].y;
[(.length - 1)].x = _local27;
[(.length - 1)].y = _local28;
[(.length - 1)].rotation = (_local79 * (180 / Math.PI));
};
};
} else {
_local100 = (
[_local5].x - [].x);
_local101 = (
[_local5].y - [].y);
_local102 = Math.atan2(_local101, _local100);
_local103 = Math.sqrt(((_local100 * _local100) + (_local101 * _local101)));
_local104 = ([].diameter / 2);
_local105 = (_local104 / _local103);
(([].x + (_local100 * _local105)), ([].y + (_local101 * _local105)), 1, "burn");
[( .length - 1)].rotation = (_local102 * (180 / Math.PI));
[_local5].removeMe = true;
};
} else {
if ((
[_local5] is UnitProjectile)){
[_local5].removeMe = true;
if (![].isSun){
(0, 0,
[_local5].team, false);
[(
.length - 1)].team =
[_local5].team;
[(
.length - 1)].timeSince =
[_local5].timeSince;
[(
.length - 1)].damageTaken =
[_local5].damageTaken;
[(
.length - 1)].poisoned =
[_local5].poisoned;
if (
[(
.length - 1)].poisoned){
[(
.length - 1)].poison.gotoAndPlay(2);
};
[(
.length - 1)].health =
[_local5].health;
[(
.length - 1)].killReg =
[_local5].killReg;
[(
.length - 1)].maxHealth =
[_local5].maxHealth;
[(
.length - 1)].accuracy =
[_local5].accuracy;
[(
.length - 1)].unitName =
[_local5].unitName;
_local47 = new Point((
[_local5].oldX - [].x), (
[_local5].oldY - [].y));
_local80 = new Point(((_local46.x - _local47.x) + _local46.x), ((_local46.y - _local47.y) + _local46.y));
_local83 = new Array();
_local84 = 0;
_local85 = 5000;
_local6 = 0;
while (_local6 < [].shapeArray.length) {
_local10 = 0;
while (_local10 < [].shapeArray[_local6].length) {
_local48 = new Point([].shapeArray[_local6][_local10].x, [].shapeArray[_local6][_local10].y);
_local49 = new Point([].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].x, [].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].y);
_local89 = [].lineIntersectLine(_local47, _local80, _local48, _local49, true);
if (_local89){
_local90 = (
[_local5].oldX - (_local89.x + [].x));
_local91 = (
[_local5].oldY - (_local89.y + [].y));
_local92 = Math.sqrt(((_local90 * _local90) + (_local91 * _local91)));
if ((((_local84 == 0)) || ((_local85 > _local92)))){
_local84++;
_local85 = _local92;
[(
.length - 1)].positionPlanet = ;
[(
.length - 1)].positionShape = _local6;
[(
.length - 1)].positionElement = _local10;
[(
.length - 1)].positionElementX = [].shapeArray[_local6][_local10].x;
[(
.length - 1)].positionElementY = [].shapeArray[_local6][_local10].y;
_local27 = (_local89.x + [].x);
_local28 = (_local89.y + [].y);
_local83.push(new Point(_local27, _local28));
_local79 = Math.atan2(([].shapeArray[_local6][_local10].y - [].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].y), ([].shapeArray[_local6][_local10].x - [].shapeArray[_local6][((_local10 + 1) % [].shapeArray[_local6].length)].x));
};
};
_local10++;
};
_local6++;
};
[(
.length - 1)].x = _local27;
[(
.length - 1)].y = _local28;
[(
.length - 1)].rotation = (_local79 * (180 / Math.PI));
if ((
[(
.length - 1)].health -
[(
.length - 1)].damageTaken) > 0){
[(
.length - 1)].changeAnim("stand");
} else {
[(
.length - 1)].changeAnim("lay");
};
[(
.length - 1)].healthDisplay.x =
[(
.length - 1)].x;
[(
.length - 1)].healthDisplay.y =
[(
.length - 1)].y;
[(
.length - 1)].healthDisplay.rotation =
[(
.length - 1)].rotation;
[(
.length - 1)].healthDisplay.updateDisplay(
[(
.length - 1)].health,
[(
.length - 1)].team);
[(
.length - 1)].healthDisplay.showHealth();
.addChild(
[(
.length - 1)].healthDisplay);
} else {
_local100 = (
[_local5].x - [].x);
_local101 = (
[_local5].y - [].y);
_local102 = Math.atan2(_local101, _local100);
_local103 = Math.sqrt(((_local100 * _local100) + (_local101 * _local101)));
_local104 = ([].diameter / 2);
_local105 = (_local104 / _local103);
(([].x + (_local100 * _local105)), ([].y + (_local101 * _local105)), 1, "burn");
[( .length - 1)].rotation = (_local102 * (180 / Math.PI));
if (myTeamsTurn){
if (
[_local5].team != 0){
if (
[_local5].killReg > 0){
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = (("wep" +
[_local5].killReg) + "Kills");
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "enemiesSun";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "enemyKills";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
};
if (
[_local5].team == 0){
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "friendlyKills";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
};
} else {
if (!(((
[_local5] is Wep5Projectile)) && ((
[_local5].inPlanet < 2)))){
if ((
[_local5] is Wep2Projectile)){
shake = 3;
expSize = 40;
if ((
[_local5] is Wep2Projectile)){
_local68 = Math.atan2((
[_local5].y -
[_local5].oldY), (
[_local5].x -
[_local5].oldX));
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.35))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.2))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.2)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.2)))), 0, "payload", );
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.35))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.35))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.35)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.35)))), 0, "payload", );
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.5))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.5))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.5)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.5)))), 0, "payload", );
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.65))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.65))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.65)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.65)))), 0, "payload", );
((
[_local5].x + (10 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.65))))), (
[_local5].y + (10 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.8))))), (7 * Math.sin(((Math.PI - _local68) + (Math.PI * 0.8)))), (7 * Math.cos(((Math.PI - _local68) + (Math.PI * 0.8)))), 0, "payload", );
};
} else {
if ((
[_local5] is Wep7Projectile)){
= 0;
while ( <
.length) {
if (
[].positionPlanet == ){
[].poisoned = true;
[].poison.gotoAndPlay(2);
};
++;
};
};
};
(
[_local5].x,
[_local5].y, _local5, , "proj");
};
};
};
} else {
if (((((((!(_local57)) && ((
[_local5] is Wep5Projectile)))) && ((
[_local5].inPlanet == 1)))) && ((
[_local5].planetHit == )))){
[_local5].inPlanet = 2;
(
[_local5].x,
[_local5].y, _local5, , "proj");
};
};
++;
};
};
_local5++;
};
_local7 = 0;
while (_local7 <
.length) {
if ((
[_local7] is MineProjectile)){
if (
[_local7].intDelay > 0){
[_local7].intDelay--;
};
};
_local7++;
};
_local8 = 0;
while (_local8 < .length) {
if ([_local8].timeTilPrimed > 0){
[_local8].gotoAndStop(1);
[_local8].timeTilPrimed--;
if ([_local8].timeTilPrimed == 0){
[_local8].gotoAndStop(2);
};
} else {
if ((([_local8].activated) && (([_local8].timeTilBoom > 0)))){
[_local8].gotoAndStop(4);
[_local8].timeTilBoom--;
if (((((((((((((((((([_local8].timeTilBoom == 59)) || (([_local8].timeTilBoom == 45)))) || (([_local8].timeTilBoom == 30)))) || (([_local8].timeTilBoom == 15)))) || (([_local8].timeTilBoom == 10)))) || (([_local8].timeTilBoom == 8)))) || (([_local8].timeTilBoom == 6)))) || (([_local8].timeTilBoom == 4)))) || (([_local8].timeTilBoom == 2)))){
[_local8].gotoAndStop(5);
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_minebeep.gotoAndPlay(2);
};
};
} else {
if ((([_local8].activated) && (([_local8].timeTilBoom <= 0)))){
([_local8].x, [_local8].y, _local8, -1, "mine");
} else {
= 0;
while ( <
.length) {
_local106 = ([_local8].x -
[].x);
_local107 = ([_local8].y -
[].y);
_local108 = Math.round(((_local106 * _local106) + (_local107 * _local107)));
if (_local108 < 2500){
[_local8].activated = true;
};
++;
};
};
};
};
_local8++;
};
_local9 = 0;
while (_local9 <
.length) {
if ((
[_local9] is MineProjectile)){
if (
[_local9].timeTilPrimed > 0){
[_local9].gotoAndStop(1);
[_local9].timeTilPrimed--;
if (
[_local9].timeTilPrimed == 0){
[_local9].gotoAndStop(2);
};
} else {
if (((
[_local9].activated) && ((
[_local9].timeTilBoom > 0)))){
[_local9].gotoAndStop(4);
[_local9].timeTilBoom--;
if ((((((((((((((((((
[_local9].timeTilBoom == 59)) || ((
[_local9].timeTilBoom == 45)))) || ((
[_local9].timeTilBoom == 30)))) || ((
[_local9].timeTilBoom == 15)))) || ((
[_local9].timeTilBoom == 10)))) || ((
[_local9].timeTilBoom == 8)))) || ((
[_local9].timeTilBoom == 6)))) || ((
[_local9].timeTilBoom == 4)))) || ((
[_local9].timeTilBoom == 2)))){
[_local9].gotoAndStop(5);
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_minebeep.gotoAndPlay(2);
};
};
} else {
if (((
[_local9].activated) && ((
[_local9].timeTilBoom <= 0)))){
(
[_local9].x,
[_local9].y, -1, -1, "dead");
[_local9].removeMe = true;
} else {
= 0;
while ( <
.length) {
_local106 = (
[_local9].x -
[].x);
_local107 = (
[_local9].y -
[].y);
_local108 = Math.round(((_local106 * _local106) + (_local107 * _local107)));
if (_local108 < 2500){
[_local9].activated = true;
};
++;
};
};
};
};
};
_local9++;
};
if ( > 0){
--;
();
};
_local5 = (
.length - 1);
while (_local5 >= 0) {
if (
[_local5].removeMe){
(
[_local5]);
};
_local5--;
};
_local8 = (.length - 1);
while (_local8 >= 0) {
if ([_local8].removeMe){
([_local8]);
};
_local8--;
};
_local10 = (
.length - 1);
while (_local10 >= 0) {
if (
[_local10].removeMe){
(
[_local10]);
};
_local10--;
};
_local6 = (.length - 1);
while (_local6 >= 0) {
if ([_local6].life <= 0){
if ([_local6].timeTilDie == 0){
([_local6]);
} else {
[_local6].timeTilDie--;
};
};
_local6--;
};
_local4 = (
.length - 1);
while (_local4 >= 0) {
if (
[_local4].life <= 0){
(
[_local4]);
};
_local4--;
};
();
= (
.length - 1);
while ( >= 0) {
if (((((((((((( == )) && ((
== "shoot")))) && (!((
[].animState.substr(0, 9) == "notaiming"))))) && (!((
[].animState.substr(0, 9) == "thinking"))))) && (!((
[].animState.substr(0, 6) == "aiming"))))) && (!(
[].isWalking)))){
[].changeAnim(("notaiming" +
));
} else {
if (((((!(
[].isWalking)) || ((gameTimer.timeLeft <= 0)))) && ((
[].animState == "walk")))){
[].changeAnim("bob");
[].isWalking = false;
} else {
if ((((((((
[].animState == "collapse")) || ((
[].animState == "falldown")))) && (
[].graphic))) && ((
[].graphic.currentFrame ==
[].graphic.totalFrames)))){
[].changeAnim("lay");
} else {
if ((((((
[].animState == "teleportout")) && (
[].graphic))) && ((
[].graphic.currentFrame ==
[].graphic.totalFrames)))){
[].healthDisplay.hideHealth();
[].positionPlanet =
[].positionPlanetTeleTo;
[].positionShape =
[].positionShapeTeleTo;
[].positionElement =
[].positionElementTeleTo;
[].positionElementX =
[].positionElementXTeleTo;
[].positionElementY =
[].positionElementYTeleTo;
( , true);
[].changeAnim("teleportin");
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_teleport.gotoAndPlay(2);
};
} else {
if (((((!((
[].animState == "bob"))) && (
[].graphic))) && ((
[].graphic.currentFrame ==
[].graphic.totalFrames)))){
[].changeAnim("bob");
} else {
if ((((((
[].animState == "bob")) && (
[].graphic))) && ((
[].graphic.currentFrame ==
[].graphic.totalFrames)))){
if (Math.random() < 0.3){
_local109 = Math.floor((Math.random() * 7));
if (_local109 == 0){
[].changeAnim("turnhead");
} else {
if (_local109 == 1){
[].changeAnim("wave");
} else {
if ((((_local109 == 2)) && ((MovieClip(root).achievementsInfo.aCount >= 20)))){
[].changeAnim("yoyo");
} else {
if ((((_local109 == 3)) && ((MovieClip(root).achievementsInfo.aCount >= 4)))){
[].changeAnim("blowgum");
} else {
if ((((_local109 == 4)) && ((MovieClip(root).achievementsInfo.aCount >= 36)))){
[].changeAnim("mp3");
} else {
if ((((_local109 == 5)) && ((MovieClip(root).achievementsInfo.aCount >= 12)))){
[].changeAnim("phone");
} else {
if ((((_local109 == 6)) && ((MovieClip(root).achievementsInfo.aCount >= 28)))){
[].changeAnim("juggle");
} else {
[].changeAnim("bob");
};
};
};
};
};
};
};
};
};
};
};
};
};
};
--;
};
if (shake > 0){
();
shake = (shake - 0.5);
};
if ((((((((((
== "shoot")) && ((gameTimer.timeLeft <= 0)))) && (( .length == 0)))) && ((
.length == 0)))) && ((
.length == 0)))){
_local110 = 0;
_local8 = 0;
while (_local8 < .length) {
if ([_local8].activated){
_local110++;
};
_local8++;
};
if (_local110 == 0){
();
};
};
if ((((((((((
== "sim")) && ((
.length == 0)))) && (( .length == 0)))) && ((
.length == 0)))) && ((gameTimer.timeLeft <= 0)))){
_local110 = 0;
_local8 = 0;
while (_local8 < .length) {
if ([_local8].activated){
_local110++;
};
_local8++;
};
if (_local110 == 0){
= "damage";
.showMe();
if (!myTeamsTurn){
();
};
= 0;
while ( <
.length) {
if (
[].poisoned){
[].damageTaken = (
[].damageTaken + 5);
};
++;
};
};
};
if ((((((((
== "damage")) && ((
.length == 0)))) && (( .length == 0)))) && ((
.length == 0)))){
= 0;
while ( <
.length) {
[].healthShown =
[].health;
[].health = (
[].health -
[].damageTaken);
if (
[].damageTaken > 0){
.push(new HealthFloat());
.addChild([(.length - 1)]);
[(.length - 1)].updateDisplay(
[].damageTaken,
[].team, false);
[(.length - 1)].x =
[].x;
[(.length - 1)].y =
[].y;
[(.length - 1)].rotation =
[].rotation;
};
if (
[].health <= 0){
[].changeAnim("collapse");
[].health = 0;
};
[].damageTaken = 0;
[].healthDisplay.num.text =
[].healthShown.toString();
++;
};
= "react";
};
if ((((
== "react")) && ((
.length == 0)))){
_local111 = true;
_local112 = 0;
while (_local112 <
.length) {
if (
[_local112].health !=
[_local112].healthShown){
if ((
[_local112].healthShown -
[_local112].health) > 50){
[_local112].healthShown = (
[_local112].healthShown - 5);
} else {
if ((
[_local112].healthShown -
[_local112].health) > 20){
[_local112].healthShown = (
[_local112].healthShown - 2);
} else {
[_local112].healthShown = (
[_local112].healthShown - 1);
};
};
[_local112].healthDisplay.num.text =
[_local112].healthShown.toString();
_local111 = false;
} else {
if (
[_local112].healthShown == 0){
_local111 = false;
if ((((((
[_local112].animState == "lay")) && ((
.length == 0)))) && (( .length == 0)))){
(
[_local112].x,
[_local112].y, _local112, -1, "dead");
if (
[_local112].team == 0){
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "friendlyKills";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
[_local112].removeMe = true;
if (((myTeamsTurn) && (!((
[_local112].team == 0))))){
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = "enemyKills";
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
if (
[_local112].killReg > 0){
_local115 = MovieClip(root).achievementsInfo.stats;
_local116 = (("wep" +
[_local112].killReg) + "Kills");
_local117 = (_local115[_local116] + 1);
_local115[_local116] = _local117;
};
};
};
} else {
if (
[_local112].animState == "lay"){
[_local112].changeAnim("stand");
};
};
};
_local112++;
};
if (_local111){
();
();
};
};
if ((((((
== "gameover")) && ((MovieClip(root).msg.messageQueue.length == 0)))) && ((MovieClip(root).msg.currentFrame == 1)))){
_local113 = 1;
if (
<= MovieClip(root).levelSetup.criteria[0]){
_local113 = 3;
} else {
if (
<= MovieClip(root).levelSetup.criteria[1]){
_local113 = 2;
};
};
MovieClip(root).lastGameTurns =
;
MovieClip(root).lastGameMedal = _local113;
doQuit();
};
.doMove();
x = Math.round(.posX);
y = Math.round(.posY);
.fillRect(, 0);
_local11 = (
.length - 1);
while (_local11 >= 0) {
[_local11].moveMe();
.copyPixels([
[_local11].type], new Rectangle((20 * (
[_local11].life - 1)), 0, 20, 20), new Point(((
[_local11].posX + x) - 10), ((
[_local11].posY + y) - 10)), null, null, true);
if (
[_local11].life >
[_local11].maxLife){
.splice(_local11, 1);
};
_local11--;
};
if (
> -1){
--;
if (
== -1){
.graphics.clear();
};
};
if (
== "gameover"){
= 0;
while ( <
.length) {
if ((((((((
[].animState == "worm")) && (
[].graphic))) && ((
[].graphic.currentFrame >= 18)))) && ((
[].graphic.currentFrame <= 26)))){
if (
[].scaleX == -1){
(, 1);
} else {
(, 1);
};
} else {
if ((((
[].animState == "moonwalk")) || ((((((
[].animState == "hands")) && (
[].graphic))) && ((
[].graphic.currentFrame >= 27)))))){
if (
[].scaleX == -1){
(, 1);
} else {
(, 1);
};
};
};
++;
};
};
.mainLoop();
= 0;
while ( < ) {
_local114 = Math.round(((teamHealths[] /
) * 100));
[].mainLoop();
++;
};
_local12 = MovieClip(root).starmaptransclose.scrollRect;
_local12.x = ((0 - (x / 4)) + (MovieClip(root).starmaptransclose.width / 2));
_local12.y = ((0 - (y / 4)) + (MovieClip(root).starmaptransclose.height / 2));
MovieClip(root).starmaptransclose.scrollRect = _local12;
_local12 = MovieClip(root).starmaptransmid.scrollRect;
_local12.x = ((0 - (x / 8)) + (MovieClip(root).starmaptransmid.width / 2));
_local12.y = ((0 - (y / 8)) + (MovieClip(root).starmaptransmid.height / 2));
MovieClip(root).starmaptransmid.scrollRect = _local12;
.x = (0 - x);
.y = (0 - y);
.x = (0 - x);
.y = (0 - y);
_local13 = false;
_local14 = 0;
while (_local14 <
.length) {
if (
[_local14].hitTestObject(gameTimer)){
_local13 = true;
};
_local14++;
};
[ ].doFlash();
if (((_local13) && ((gameTimer.timeLeft > 0)))){
gameTimer.alpha = 0.25;
} else {
if (gameTimer.alpha > 0){
gameTimer.alpha = 1;
};
};
if (MovieClip(root).msg){
MovieClip(root).msg.mainLoop();
};
};
}
public function
(){
var _local1:int;
var _local2:int;
var _local3:*;
var _local4:Array;
if (stage.hasEventListener(MouseEvent.MOUSE_UP)){
stage.addEventListener(MouseEvent.MOUSE_DOWN,
);
stage.removeEventListener(MouseEvent.MOUSE_UP, );
stage.removeEventListener(MouseEvent.MOUSE_MOVE, );
.graphics.clear();
};
.gotoAndStop(34);
= "shoot";
= 1;
.gotoAndStop(1);
_local1 = 0;
while (_local1 < ) {
if ( [_local1]){
[_local1].resetAlpha();
};
_local1++;
};
if (
[ ]){
[ ].changeAnim("bob");
};
= 0;
while ( <
.length) {
[].timeSince++;
[].healthDisplay.x =
[].x;
[].healthDisplay.y =
[].y;
[].healthDisplay.rotation =
[].rotation;
[].healthDisplay.showHealth();
++;
};
_local2 = 0;
while (_local2 <
.length) {
[_local2].timeSince++;
if (
[_local2].timeSince >= 8){
[_local2].gotoAndPlay(30);
[_local2].expired = true;
};
_local2++;
};
myTeamsTurn = !(myTeamsTurn);
(false);
if (
!= "gameover"){
if (myTeamsTurn){
++;
.alpha = 1;
= 0;
();
();
= (0);
[ ].timeSince = 0;
();
} else {
.alpha = 0;
= ([0]);
[ ].timeSince = 0;
= [0];
();
_local4 = .splice(0, 1);
.push(_local4[0]);
();
};
gameTimer.resetTimer();
gameTimer.changeCol(
[ ].team);
_local3 = Math.random();
if ((((_local3 < 0.125)) && ((
.length < 10)))){
("health");
} else {
if ((((((_local3 < 0.25)) && ((
.length < 10)))) && ((MovieClip(root).achievementsInfo.levelsUnlocked >= 3)))){
("weapon");
};
};
MovieClip(root).msg.addMessage((
[ ].unitName + "'s Turn"),
[ ].team);
.setTarget(
[ ], , , , );
};
}
public function (_arg1:MouseEvent){
if (((([7] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(10);
();
};
}
public function
(_arg1, _arg2, _arg3, _arg4, _arg5){
var _local6:Boolean;
var _local7:int;
var _local8:Array;
var _local9:Boolean;
var _local10:Number;
var _local11:Number;
var _local12:Point;
var _local13:Point;
var _local14:int;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Point;
var _local19:Point;
var _local20:int;
var _local21:int;
var _local22:int;
_local6 = true;
_local7 = 0;
_local8 = new Array();
while ((((_local7 <
.length)) && (((_local6) || ((_arg5 == "snipe")))))) {
if (
[_local7].team !=
[_arg1].team){
_local9 = false;
if (_arg2 == null){
_local15 = (
[_arg1].x + (16 * Math.sin(((180 -
[_arg1].rotation) * (Math.PI / 180)))));
_local16 = (
[_arg1].y + (16 * Math.cos(((180 -
[_arg1].rotation) * (Math.PI / 180)))));
} else {
_local17 = Math.atan2(([_arg2].shapeArray[_arg3][_arg4].y - [_arg2].shapeArray[_arg3][((_arg4 + 1) % [_arg2].shapeArray[_arg3].length)].y), ([_arg2].shapeArray[_arg3][_arg4].x - [_arg2].shapeArray[_arg3][((_arg4 + 1) % [_arg2].shapeArray[_arg3].length)].x));
if (_arg5 == "change"){
_local15 = (([_arg2].x + [_arg2].shapeArray[_arg3][_arg4].x) + (16 * Math.sin((Math.PI - _local17))));
_local16 = (([_arg2].y + [_arg2].shapeArray[_arg3][_arg4].y) + (16 * Math.cos((Math.PI - _local17))));
} else {
if (_arg5 == "retreat"){
_local15 = (([_arg2].x + [_arg2].shapeArray[_arg3][_arg4].x) + (30 * Math.sin((Math.PI - _local17))));
_local16 = (([_arg2].y + [_arg2].shapeArray[_arg3][_arg4].y) + (30 * Math.cos((Math.PI - _local17))));
};
};
};
_local10 = (
[_local7].x + (16 * Math.sin(((180 -
[_local7].rotation) * (Math.PI / 180)))));
_local11 = (
[_local7].y + (16 * Math.cos(((180 -
[_local7].rotation) * (Math.PI / 180)))));
_local12 = new Point(_local15, _local16);
_local13 = new Point(_local10, _local11);
_local14 = 0;
while (_local14 < .length) {
if ([(_local14 + 1)]){
_local18 = new Point([_local14].x, [_local14].y);
_local19 = new Point([(_local14 + 1)].x, [(_local14 + 1)].y);
if (lineIntersectLine(_local12, _local13, _local18, _local19, true)){
_local9 = true;
};
};
_local14 = (_local14 + 2);
};
if (!_local9){
_local20 = 0;
while (_local20 < .length) {
_local21 = 0;
while (_local21 < [_local20].shapeArray.length) {
_local22 = 0;
while (_local22 < [_local20].shapeArray[_local21].length) {
_local18 = new Point(([_local20].shapeArray[_local21][_local22].x + [_local20].x), ([_local20].shapeArray[_local21][_local22].y + [_local20].y));
_local19 = new Point(([_local20].shapeArray[_local21][((_local22 + 1) % [_local20].shapeArray[_local21].length)].x + [_local20].x), ([_local20].shapeArray[_local21][((_local22 + 1) % [_local20].shapeArray[_local21].length)].y + [_local20].y));
if (lineIntersectLine(_local12, _local13, _local18, _local19, true)){
_local9 = true;
};
_local22++;
};
_local21++;
};
_local20++;
};
};
if (_local9 == false){
_local8.push(_local7);
_local6 = false;
};
};
_local7++;
};
if ((((_arg5 == "snipe")) && (!(_local6)))){
return (_local8);
};
return (_local6);
}
public function (_arg1:KeyboardEvent){
var _local2:int;
_local2 = (.length - 1);
while (_local2 >= 0) {
if ([_local2] == _arg1.keyCode){
.splice(_local2, 1);
};
_local2--;
};
}
public function (_arg1){
var _local2:int;
var _local3:int;
_local2 = -100;
_local3 = 0;
= 0;
while ( <
.length) {
if ((((((
[].team == _arg1)) && (!(
[].removeMe)))) && ((
[].timeSince > _local2)))){
_local2 =
[].timeSince;
_local3 = ;
};
++;
};
return (_local3);
}
public function (_arg1:MouseEvent){
var _local2:Number;
var _local3:Number;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
var _local22:*;
var _local23:*;
var _local24:*;
var _local25:*;
var _local26:*;
var _local27:*;
var _local28:*;
var _local29:*;
var _local30:*;
var _local31:*;
var _local32:Boolean;
var _local33:*;
var _local34:*;
var _local35:*;
var _local36:int;
var _local37:*;
var _local38:*;
var _local39:*;
var _local40:int;
var _local41:int;
var _local42:*;
var _local43:*;
var _local44:*;
[ ].changeAnim("bob");
_local2 = (
[ ].x + (16 * Math.sin(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local3 = (
[ ].y + (16 * Math.cos(((180 -
[ ].rotation) * (Math.PI / 180)))));
if (
== 9){
_local5 = ([(.length - 1)].x - mouseX);
_local6 = ([(.length - 1)].y - mouseY);
} else {
if (
== 3){
_local5 = (.x - mouseX);
_local6 = (.y - mouseY);
} else {
_local5 = (_local2 - mouseX);
_local6 = (_local3 - mouseY);
};
};
_local4 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
stage.addEventListener(MouseEvent.MOUSE_DOWN,
);
stage.removeEventListener(MouseEvent.MOUSE_UP, );
stage.removeEventListener(MouseEvent.MOUSE_MOVE, );
aiming = false;
if (_local4 > 20){
if ((((
== 1)) || ((
== 2)))){
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_rocketshoot.gotoAndPlay(2);
};
};
if (
!= 10){
.hideMe();
();
};
if (
== 4){
_local7 = ((mouseX - _local2) / 10);
_local8 = ((mouseY - _local3) / 10);
_local9 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8)));
_local10 = (10 / _local9);
_local7 = (_local7 * _local10);
_local8 = (_local8 * _local10);
_local2 = (
[ ].x + (16 * Math.sin(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local3 = (
[ ].y + (16 * Math.cos(((180 -
[ ].rotation) * (Math.PI / 180)))));
} else {
if (((((!((
== 8))) && (!((
== 9))))) && (!((
== 10))))){
_local7 = ((mouseX -
.x) / 10);
_local8 = ((mouseY -
.y) / 10);
};
};
if (
== 4){
(
.x,
.y, _local7, _local8, 0, "bullet", null);
.graphics.lineStyle(1, 0xFFFFFF, 1);
= 2;
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_sniper.gotoAndPlay(2);
};
do {
.graphics.moveTo(
[(
.length - 1)].x,
[(
.length - 1)].y);
[(
.length - 1)].doGravity();
[(
.length - 1)].moveProjectile(, , , );
.graphics.lineTo(
[(
.length - 1)].x,
[(
.length - 1)].y);
_local11 = 0;
while (_local11 < .length) {
if ([(_local11 + 1)]){
_local13 = new Point([_local11].x, [_local11].y);
_local14 = new Point([(_local11 + 1)].x, [(_local11 + 1)].y);
_local15 = new Point(
[(
.length - 1)].x,
[(
.length - 1)].y);
_local16 = new Point(
[(
.length - 1)].oldX,
[(
.length - 1)].oldY);
_local17 = lineIntersectLine(_local13, _local14, _local15, _local16, true);
if (((((!(
[(
.length - 1)].removeMe)) && (_local17))) && ((
[(
.length - 1)].shieldDelay <= 0)))){
_local18 = _local17.x;
_local19 = _local17.y;
_local20 = new Point(
[(
.length - 1)].momX,
[(
.length - 1)].momY);
_local21 = new Point(_local13.x, _local13.y);
_local22 = new Point(_local14.x, _local14.y);
_local23 = new Point(_local15.x, _local15.y);
_local24 = new Point(_local16.x, _local16.y);
_local25 = (_local21, _local22, _local23, _local24, _local20, 1);
[(
.length - 1)].reflected = true;
[(
.length - 1)].shieldDelay = 2;
[(
.length - 1)].x = _local18;
[(
.length - 1)].y = _local19;
[(
.length - 1)].momX = _local25[1].x;
[(
.length - 1)].momY = _local25[1].y;
};
};
_local11 = (_local11 + 2);
};
_local12 = (
[(
.length - 1)]);
if (_local12){
[(
.length - 1)].removeMe = true;
if (_local12[0] == "unit"){
[_local12[1]].changeAnim("falldown");
if ((((
[_local12[1]].killReg == -1)) && ((
[_local12[1]].health <= (
[].maxDamage *
[].multi))))){
[_local12[1]].killReg = 4;
};
[_local12[1]].damageTaken = (
[_local12[1]].damageTaken + (
[].maxDamage *
[].multi));
if (((!((
[_local12[1]].team == 0))) && (myTeamsTurn))){
= ( + (
[].maxDamage *
[].multi));
};
};
};
} while (!(
[(
.length - 1)].removeMe));
var _local45 = ;
var _local46 = 2;
var _local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
} else {
if (
== 8){
.push(new Mine());
.addChild([(.length - 1)]);
[(.length - 1)].x =
[ ].x;
[(.length - 1)].y =
[ ].y;
[(.length - 1)].positionPlanet =
[ ].positionPlanet;
[(.length - 1)].positionShape =
[ ].positionShape;
[(.length - 1)].positionElement =
[ ].positionElement;
[(.length - 1)].positionElementX =
[ ].positionElementX;
[(.length - 1)].positionElementY =
[ ].positionElementY;
[(.length - 1)].rotation =
[ ].rotation;
_local45 = ;
_local46 = 4;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
} else {
if (
== 9){
_local26 = (.x - [(.length - 1)].x);
_local27 = (.y - [(.length - 1)].y);
_local28 = Math.sqrt(((_local26 * _local26) + (_local27 * _local27)));
.removeChild();
.push(new ShieldNode());
.addChild([(.length - 1)]);
[(.length - 1)].x = .x;
[(.length - 1)].y = .y;
_local29 = ([(.length - 2)].x - [(.length - 1)].x);
_local30 = ([(.length - 2)].y - [(.length - 1)].y);
_local31 = (Math.atan2(_local30, _local29) - (Math.PI / 2));
[(.length - 1)].shieldLine = new ShieldLine();
[(.length - 1)].shieldLine.scaleY = (_local28 / 100);
[(.length - 1)].shieldLine.rotation = (_local31 * (180 / Math.PI));
.addChild([(.length - 1)].shieldLine);
[(.length - 1)].shieldLine.x = .x;
[(.length - 1)].shieldLine.y = .y;
_local45 = ;
_local46 = 5;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
} else {
if (
== 10){
_local32 = false;
_local33 = 400;
_local34 = -1;
_local35 = -1;
_local36 = 0;
while (_local36 < .length) {
_local37 = ([_local36].x - mouseX);
_local38 = ([_local36].y - mouseY);
_local39 = Math.sqrt(((_local37 * _local37) + (_local38 * _local38)));
if (((!([_local36].isSun)) && ((_local39 < (([_local36].diameter / 2) + 20))))){
_local33 = 400;
_local34 = -1;
_local35 = -1;
_local40 = 0;
while (_local40 < [_local36].shapeArray.length) {
_local41 = 0;
while (_local41 < [_local36].shapeArray[_local40].length) {
_local42 = (([_local36].shapeArray[_local40][_local41].x + [_local36].x) - mouseX);
_local43 = (([_local36].shapeArray[_local40][_local41].y + [_local36].y) - mouseY);
_local44 = ((_local42 * _local42) + (_local43 * _local43));
if (_local44 < _local33){
_local33 = _local44;
_local34 = _local40;
_local35 = _local41;
};
_local41++;
};
_local40++;
};
if (_local33 < 400){
.hideMe();
();
[ ].healthDisplay.hideHealth();
[ ].positionPlanetTeleTo = _local36;
[ ].positionShapeTeleTo = _local34;
[ ].positionElementTeleTo = _local35;
[ ].positionElementXTeleTo = [_local36].shapeArray[_local34][_local35].x;
[ ].positionElementYTeleTo = [_local36].shapeArray[_local34][_local35].y;
[ ].changeAnim("teleportout");
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_teleport.gotoAndPlay(2);
};
_local32 = true;
_local45 = ;
_local46 = 7;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
};
};
_local36++;
};
} else {
if (
== 2){
_local45 = ;
_local46 = 1;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
} else {
if (
== 6){
_local45 = ;
_local46 = 3;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
} else {
if (
== 5){
_local45 = ;
_local46 = 6;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
} else {
if (
== 7){
_local45 = ;
_local46 = 8;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
} else {
if (
== 3){
_local45 = ;
_local46 = 9;
_local47 = (_local45[_local46] - 1);
_local45[_local46] = _local47;
};
};
};
};
};
(
.x,
.y, _local7, _local8, 0, "bullet", null);
};
};
};
};
if (((!((
== 10))) || (_local32))){
gameTimer.hideIt();
gameTimer.resetRetreatTimer();
= "sim";
();
};
} else {
if (
== 9){
.removeChild();
.removeChild([(.length - 1)]);
.splice((.length - 1), 1);
};
};
();
}
public function
(_arg1, _arg2){
var _local3:*;
_local3 = PixelPerfectCollisionDetection.isColliding(_arg1, _arg2, this, true, 0);
if (_local3){
return (_local3);
};
return (false);
}
public function
(_arg1, _arg2){
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:Number;
var _local8:Number;
var _local9:Number;
_local3 =
[_arg1].positionPlanet;
_local4 =
[_arg1].positionShape;
_local5 =
[_arg1].positionElement;
_local6 =
[_arg1].positionPlace;
_local7 = Math.atan2(([_local3].shapeArray[_local4][_local5].y - [_local3].shapeArray[_local4][((_local5 + 1) % [_local3].shapeArray[_local4].length)].y), ([_local3].shapeArray[_local4][_local5].x - [_local3].shapeArray[_local4][((_local5 + 1) % [_local3].shapeArray[_local4].length)].x));
_local8 = (_local6 * Math.sin((((3 * Math.PI) / 2) - _local7)));
_local9 = (_local6 * Math.cos((((3 * Math.PI) / 2) - _local7)));
[_arg1].x = (([_local3].shapeArray[_local4][_local5].x + [_local3].x) + _local8);
[_arg1].y = (([_local3].shapeArray[_local4][_local5].y + [_local3].y) + _local9);
if (_arg2){
[_arg1].rotation = (_local7 * (180 / Math.PI));
};
}
public function (_arg1){
var _local2:int;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:Number;
if (_arg1 == "health"){
.push(new PickupHealth());
} else {
if (_arg1 == "weapon"){
.push(new PickupWeapon());
};
};
.addChild(
[(
.length - 1)]);
_local2 = 0;
do {
_local3 = Math.floor((Math.random() * .length));
_local4 = Math.floor((Math.random() * [_local3].shapeArray.length));
_local5 = Math.floor((Math.random() * [_local3].shapeArray[_local4].length));
[(
.length - 1)].positionPlanet = _local3;
[(
.length - 1)].positionShape = _local4;
[(
.length - 1)].positionElement = _local5;
[(
.length - 1)].positionElementX = [_local3].shapeArray[_local4][_local5].x;
[(
.length - 1)].positionElementY = [_local3].shapeArray[_local4][_local5].y;
[(
.length - 1)].x = ([_local3].shapeArray[_local4][_local5].x + [_local3].x);
[(
.length - 1)].y = ([_local3].shapeArray[_local4][_local5].y + [_local3].y);
_local6 = false;
_local7 = 0;
while (_local7 <
.length) {
_local10 = (
[(
.length - 1)].x -
[_local7].x);
_local11 = (
[(
.length - 1)].y -
[_local7].y);
_local12 = ((_local10 * _local10) + (_local11 * _local11));
if (_local12 < 3600){
_local6 = true;
};
_local7++;
};
_local8 = 0;
while (_local8 < (
.length - 1)) {
_local13 = (
[(
.length - 1)].x -
[_local8].x);
_local14 = (
[(
.length - 1)].y -
[_local8].y);
_local15 = ((_local13 * _local13) + (_local14 * _local14));
if (_local15 < 2500){
_local6 = true;
};
_local8++;
};
_local9 = true;
if (((_local6) || ([_local3].isSun))){
_local9 = false;
};
_local2++;
} while (((!(_local9)) || ((_local2 > 30))));
if (_local2 > 30){
.removeChild(
[(
.length - 1)]);
.splice((
.length - 1), 1);
} else {
.setTarget(
[(
.length - 1)], , , , );
_local16 = Math.atan2(([_local3].shapeArray[_local4][_local5].y - [_local3].shapeArray[_local4][((_local5 + 1) % [_local3].shapeArray[_local4].length)].y), ([_local3].shapeArray[_local4][_local5].x - [_local3].shapeArray[_local4][((_local5 + 1) % [_local3].shapeArray[_local4].length)].x));
[(
.length - 1)].rotation = (_local16 * (180 / Math.PI));
};
}
public function (_arg1){
var _local2:Boolean;
var _local3:int;
_local2 = false;
_local3 = 0;
while (_local3 < .length) {
if ([_local3].shape2.hitTestPoint((_arg1.x + x), (_arg1.y + y))){
_local2 = true;
};
_local3++;
};
return (_local2);
}
public function (){
x = Math.round(((Math.random() * shake) - (shake / 2)));
y = Math.round(((Math.random() * shake) - (shake / 2)));
MovieClip(root).bgimage.x = x;
MovieClip(root).bgimage.y = y;
}
public function (_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:Number;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:Number;
var _local19:Number;
var _local20:*;
var _local21:*;
.push(new Mine());
.addChild([(.length - 1)]);
if (_arg2 < 0){
_arg2 = (_arg2 + 360);
};
if (_arg2 > 360){
_arg2 = (_arg2 - 360);
};
[(.length - 1)].positionPlanet = _arg1;
[(.length - 1)].positionShape = 0;
_local3 = [_arg1].x;
_local4 = [_arg1].y;
_local5 = ([_arg1].x - (200 * Math.sin(((90 - _arg2) * (Math.PI / 180)))));
_local6 = ([_arg1].y - (200 * Math.cos(((90 - _arg2) * (Math.PI / 180)))));
_local7 = new Point((_local3 - [_arg1].x), (_local4 - [_arg1].y));
_local8 = new Point((_local5 - [_arg1].x), (_local6 - [_arg1].y));
_local9 = 0;
while (_local9 < [_arg1].shapeArray[0].length) {
_local20 = new Point([_arg1].shapeArray[0][_local9].x, [_arg1].shapeArray[0][_local9].y);
_local21 = new Point([_arg1].shapeArray[0][((_local9 + 1) % [_arg1].shapeArray[0].length)].x, [_arg1].shapeArray[0][((_local9 + 1) % [_arg1].shapeArray[0].length)].y);
if ([].lineIntersectLine(_local7, _local8, _local20, _local21, true)){
[(.length - 1)].positionElement = _local9;
[(.length - 1)].positionElementX = [[(.length - 1)].positionPlanet].shapeArray[[(.length - 1)].positionShape][_local9].x;
[(.length - 1)].positionElementY = [[(.length - 1)].positionPlanet].shapeArray[[(.length - 1)].positionShape][_local9].y;
};
_local9++;
};
_local10 = [(.length - 1)].positionPlanet;
_local11 = [(.length - 1)].positionShape;
_local12 = [(.length - 1)].positionElement;
_local13 = [(.length - 1)].positionPlace;
_local14 = Math.atan2(([_local10].shapeArray[_local11][_local12].y - [_local10].shapeArray[_local11][((_local12 + 1) % [_local10].shapeArray[_local11].length)].y), ([_local10].shapeArray[_local11][_local12].x - [_local10].shapeArray[_local11][((_local12 + 1) % [_local10].shapeArray[_local11].length)].x));
_local15 = ([_local10].diameter / 2);
_local16 = ([_local10].shapeArray[_local11][_local12].x / _local15);
_local17 = ([_local10].shapeArray[_local11][_local12].y / _local15);
_local18 = _local16;
_local19 = _local17;
[(.length - 1)].x = (([_local10].shapeArray[_local11][_local12].x + [_local10].x) + _local18);
[(.length - 1)].y = (([_local10].shapeArray[_local11][_local12].y + [_local10].y) + _local19);
[(.length - 1)].rotation = (_local14 * (180 / Math.PI));
}
public function (_arg1){
var _local2:int;
_local2 = .indexOf(_arg1);
.removeChild(_arg1);
.splice(_local2, 1);
}
public function (){
var _local1:int;
.graphics.clear();
_local1 = 0;
while (_local1 < .length) {
.graphics.lineStyle(2, 39423, 1);
.graphics.moveTo([_local1].x, [_local1].y);
.graphics.lineTo([(_local1 + 1)].x, [(_local1 + 1)].y);
_local1 = (_local1 + 2);
};
}
public function (_arg1){
var _local2:int;
_local2 =
.indexOf(_arg1);
.removeChild(_arg1);
.splice(_local2, 1);
}
public function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
_local8 = (Math.pow((_arg3 - _arg1), 2) + Math.pow((_arg4 - _arg2), 2));
_local9 = (2 * (((_arg3 - _arg1) * (_arg1 - _arg5)) + ((_arg4 - _arg2) * (_arg2 - _arg6))));
_local10 = (((((Math.pow(_arg5, 2) + Math.pow(_arg6, 2)) + Math.pow(_arg1, 2)) + Math.pow(_arg2, 2)) - (2 * ((_arg5 * _arg1) + (_arg6 * _arg2)))) - Math.pow(_arg7, 2));
_local11 = ((_local9 * _local9) - ((4 * _local8) * _local10));
_local12 = 0;
_local13 = 0;
_local14 = 0;
_local15 = 0;
_local16 = 0;
_local17 = 0;
if (_local11 > 0){
_local16 = ((-(_local9) - Math.sqrt(_local11)) / (2 * _local8));
_local17 = ((-(_local9) + Math.sqrt(_local11)) / (2 * _local8));
_local12 = (_arg1 + (_local16 * (_arg3 - _arg1)));
_local13 = (_arg2 + (_local16 * (_arg4 - _arg2)));
_local14 = (_arg1 + (_local17 * (_arg3 - _arg1)));
_local15 = (_arg2 + (_local17 * (_arg4 - _arg2)));
_local18 = [_local12, _local13, _local14, _local15];
return (_local18);
};
return (false);
}
public function showMulti(_arg1, _arg2, _arg3){
if (_arg1 == 2){
.push(new MultiDisplayX2());
} else {
if (_arg1 == 3){
.push(new MultiDisplayX3());
} else {
if (_arg1 == 4){
.push(new MultiDisplayX4());
};
};
};
[( .length - 1)].x = _arg2;
[( .length - 1)].y = _arg3;
.addChild( [( .length - 1)]);
}
public function lineIntersectLine(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point, _arg5:Boolean=true):Point{
var _local6:Point;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
_local7 = (_arg2.y - _arg1.y);
_local9 = (_arg1.x - _arg2.x);
_local11 = ((_arg2.x * _arg1.y) - (_arg1.x * _arg2.y));
_local8 = (_arg4.y - _arg3.y);
_local10 = (_arg3.x - _arg4.x);
_local12 = ((_arg4.x * _arg3.y) - (_arg3.x * _arg4.y));
_local13 = ((_local7 * _local10) - (_local8 * _local9));
if (_local13 == 0){
return (null);
};
_local6 = new Point();
_local6.x = (((_local9 * _local12) - (_local10 * _local11)) / _local13);
_local6.y = (((_local8 * _local11) - (_local7 * _local12)) / _local13);
if (_arg5){
if ((Math.pow((_local6.x - _arg2.x), 2) + Math.pow((_local6.y - _arg2.y), 2)) > (Math.pow((_arg1.x - _arg2.x), 2) + Math.pow((_arg1.y - _arg2.y), 2))){
return (null);
};
if ((Math.pow((_local6.x - _arg1.x), 2) + Math.pow((_local6.y - _arg1.y), 2)) > (Math.pow((_arg1.x - _arg2.x), 2) + Math.pow((_arg1.y - _arg2.y), 2))){
return (null);
};
if ((Math.pow((_local6.x - _arg4.x), 2) + Math.pow((_local6.y - _arg4.y), 2)) > (Math.pow((_arg3.x - _arg4.x), 2) + Math.pow((_arg3.y - _arg4.y), 2))){
return (null);
};
if ((Math.pow((_local6.x - _arg3.x), 2) + Math.pow((_local6.y - _arg3.y), 2)) > (Math.pow((_arg3.x - _arg4.x), 2) + Math.pow((_arg3.y - _arg4.y), 2))){
return (null);
};
};
return (_local6);
}
public function removeHealthFloat(_arg1){
var _local2:int;
_local2 = .indexOf(_arg1);
.removeChild([_local2]);
.splice(_local2, 1);
}
public function (_arg1:MouseEvent){
(1);
();
}
public function (_arg1:MouseEvent){
if (((([1] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(2);
();
};
}
public function (_arg1:MouseEvent){
if (((([9] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(3);
();
};
}
public function (_arg1:MouseEvent){
if (((([5] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(9);
();
};
}
public function (_arg1:MouseEvent){
if (((([8] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(7);
();
};
}
public function (_arg1){
= _arg1;
[ ].changeAnim(("notaiming" + _arg1));
.gotoAndStop(_arg1);
panelWeps.hideIt();
}
public function (_arg1:MouseEvent){
if (((([2] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(4);
();
};
}
public function (_arg1:MouseEvent){
if (((([6] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(5);
();
};
}
public function (_arg1){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:int;
_local6 = 0;
while (_local6 <
.length) {
_local2 = (_arg1.x -
[_local6].x);
_local3 = (_arg1.y -
[_local6].y);
_local4 = ((_local2 * _local2) + (_local3 * _local3));
if ((((((_local4 < 1600)) && (((!((_local6 == ))) || ((_arg1.life > 5)))))) && (
(
[_local6], _arg1)))){
return (new Array("unit", _local6));
};
_local6++;
};
= 0;
while ( < .length) {
_local2 = (_arg1.x - [].x);
_local3 = (_arg1.y - [].y);
_local4 = ((_local2 * _local2) + (_local3 * _local3));
_local5 = ((([].diameter + _arg1.width) / 2) * (([].diameter + _arg1.width) / 2));
if ((((_local4 < _local5)) && (([], _arg1)))){
return (new Array("planet", ));
};
++;
};
if ((((((((_arg1.x > ( + 1000))) || ((_arg1.x < ( - 1000))))) || ((_arg1.y > ( + 1000))))) || ((_arg1.y < ( - 1000))))){
return (new Array("bounds", 0));
};
return (false);
}
public function (){
.x =
[ ].x;
.y =
[ ].y;
.rotation =
[ ].rotation;
.gotoAndPlay(1);
[ ].changeAnim("wave");
}
public function (){
= (
.length - 1);
while ( >= 0) {
if (
[].removeMe){
if ( < ){
--;
};
.removeChild(
[].healthDisplay);
(
[]);
};
--;
};
}
public function (_arg1:MouseEvent){
if (((([3] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(6);
();
};
}
public function (_arg1:MouseEvent=null){
var _local2:Number;
var _local3:Number;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:Number;
var _local14:int;
var _local15:Number;
var _local16:Boolean;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:int;
var _local23:int;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:int;
var _local28:int;
var _local29:int;
var _local30:Number;
var _local31:*;
var _local32:*;
var _local33:Number;
var _local34:Number;
var _local35:*;
var _local36:*;
var _local37:int;
var _local38:*;
var _local39:*;
var _local40:*;
var _local41:*;
var _local42:Point;
var _local43:Point;
var _local44:Point;
var _local45:Point;
var _local46:*;
var _local47:*;
var _local48:*;
var _local49:Point;
var _local50:Point;
var _local51:Point;
var _local52:Point;
var _local53:Point;
var _local54:Array;
var _local55:Boolean;
var _local56:int;
var _local57:*;
var _local58:*;
var _local59:*;
var _local60:*;
var _local61:*;
var _local62:*;
var _local63:*;
_local2 = (
[ ].x + (16 * Math.sin(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local3 = (
[ ].y + (16 * Math.cos(((180 -
[ ].rotation) * (Math.PI / 180)))));
if (
== 9){
_local5 = ([(.length - 1)].x - mouseX);
_local6 = ([(.length - 1)].y - mouseY);
} else {
if (
== 3){
_local5 = (.x - mouseX);
_local6 = (.y - mouseY);
} else {
_local5 = (_local2 - mouseX);
_local6 = (_local3 - mouseY);
};
};
_local4 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
if (_local4 > 20){
if (
[ ].animState.substr(0, 6) != "aiming"){
[ ].changeAnim(("aiming" +
));
};
if (((((!((
== 8))) && (!((
== 9))))) && (!((
== 10))))){
_local7 = (Math.atan2((mouseY - _local3), (mouseX - _local2)) - (Math.PI / 2));
_local8 = (
[ ].rotation * (Math.PI / 180));
_local9 = ((_local8 - _local7) * (180 / Math.PI));
if (_local9 < 0){
_local9 = (_local9 + 360);
};
if (_local9 > 360){
_local9 = (_local9 - 360);
};
if ((((_local9 < 180)) && (
[ ].graphic))){
[ ].scaleX = -1;
[ ].graphic.gotoAndStop(Math.round(_local9));
} else {
if (
[ ].graphic){
[ ].scaleX = 1;
[ ].graphic.gotoAndStop(Math.round((180 - (_local9 - 180))));
};
};
if (
== 3){
= new Point(.x, .y);
} else {
= new Point((
[ ].graphic.wep.localToGlobal(new Point(
[ ].graphic.wep.start.x,
[ ].graphic.wep.start.y)).x - x), (
[ ].graphic.wep.localToGlobal(new Point(
[ ].graphic.wep.start.x,
[ ].graphic.wep.start.y)).y - y));
};
_local2 = (
[ ].x + (16 * Math.sin(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local3 = (
[ ].y + (16 * Math.cos(((180 -
[ ].rotation) * (Math.PI / 180)))));
if (
== 4){
_local35 = ((mouseX - _local2) / 10);
_local36 = ((mouseY - _local3) / 10);
} else {
_local35 = ((mouseX -
.x) / 10);
_local36 = ((mouseY -
.y) / 10);
};
_local10 = getTimer();
= new TargetProjectile();
.addChild();
.x =
.x;
.y =
.y;
if (
== 4){
.mass = 0;
};
.momX = _local35;
.momY = _local36;
.graphics.clear();
.graphics.moveTo(.x, .y);
_local11 = 100;
_local12 = (100 / (2 * (
[ ].accuracy + 6)));
_local13 = 0;
_local14 = 6;
_local15 = 0;
_local16 = false;
_local26 = (_local22 - _local24);
_local27 = (_local23 - _local25);
_local28 = (_local24 - _local22);
_local29 = (_local25 - _local23);
_local31 = 0;
_local32 = false;
_local33 = ((30 * (
[ ].accuracy - 1)) + 100);
_local34 = _local33;
while ((((_local34 > 0)) && (!(_local32)))) {
_local22 = .x;
_local23 = .y;
.doGravity();
.moveProjectile(, , , );
_local32 = ();
_local37 = 0;
while (_local37 < .length) {
if ([(_local37 + 1)]){
_local42 = new Point([_local37].x, [_local37].y);
_local43 = new Point([(_local37 + 1)].x, [(_local37 + 1)].y);
_local44 = new Point(.x, .y);
_local45 = new Point(.oldX, .oldY);
_local46 = lineIntersectLine(_local42, _local43, _local44, _local45, true);
if (((((!(.removeMe)) && (_local46))) && ((.shieldDelay <= 0)))){
_local47 = _local46.x;
_local48 = _local46.y;
_local49 = new Point(.momX, .momY);
_local50 = new Point(_local42.x, _local42.y);
_local51 = new Point(_local43.x, _local43.y);
_local52 = new Point(_local44.x, _local44.y);
_local53 = new Point(_local45.x, _local45.y);
_local54 = (_local50, _local51, _local52, _local53, _local49, 1);
.reflected = true;
.shieldDelay = 2;
.x = _local47;
.y = _local48;
.momX = _local54[1].x;
.momY = _local54[1].y;
};
};
_local37 = (_local37 + 2);
};
_local11 = ((_local34 / _local33) * 100);
_local24 = .x;
_local25 = .y;
_local21 = Math.sqrt((((_local22 - _local24) * (_local22 - _local24)) + ((_local23 - _local25) * (_local23 - _local25))));
_local38 = ((_local24 - _local22) / _local21);
_local39 = ((_local25 - _local23) / _local21);
_local40 = (_local13 + _local21);
_local34 = (_local34 - _local21);
_local41 = 0;
if (_local40 > _local14){
_local15 = (_local14 - _local13);
_local40 = (_local40 - _local14);
if (_local16 == true){
.graphics.lineStyle(3, 0xFF9900, 0);
} else {
.graphics.lineStyle(3, 39423, (_local11 / 100));
};
_local17 = _local22;
_local19 = _local23;
_local18 = (_local22 + (_local38 * _local15));
_local20 = (_local23 + (_local39 * _local15));
_local30 = Math.sqrt((((_local22 - _local24) * (_local22 - _local24)) + ((_local23 - _local25) * (_local23 - _local25))));
.graphics.lineTo(_local18, _local20);
_local31++;
while (_local40 > _local14) {
_local40 = (_local40 - _local14);
if (_local16 == true){
_local16 = false;
.graphics.lineStyle(3, 39423, (_local11 / 100));
} else {
_local16 = true;
.graphics.lineStyle(3, 0xFF9900, 0);
};
_local17 = (_local22 + (_local38 * (_local15 + (_local41 * _local14))));
_local19 = (_local23 + (_local39 * (_local15 + (_local41 * _local14))));
_local18 = (_local22 + (_local38 * (_local15 + ((_local41 + 1) * _local14))));
_local20 = (_local23 + (_local39 * (_local15 + ((_local41 + 1) * _local14))));
_local30 = Math.sqrt((((_local22 - _local24) * (_local22 - _local24)) + ((_local23 - _local25) * (_local23 - _local25))));
.graphics.lineTo(_local18, _local20);
_local31++;
_local41++;
};
if (_local16 == true){
_local16 = false;
.graphics.lineStyle(3, 39423, (_local11 / 100));
} else {
_local16 = true;
.graphics.lineStyle(3, 0xFF9900, 0);
};
_local17 = (_local22 + (_local38 * (_local15 + (_local41 * _local14))));
_local19 = (_local23 + (_local39 * (_local15 + (_local41 * _local14))));
_local18 = _local24;
_local20 = _local25;
_local30 = Math.sqrt((((_local22 - _local24) * (_local22 - _local24)) + ((_local23 - _local25) * (_local23 - _local25))));
.graphics.lineTo(_local18, _local20);
_local31++;
} else {
if (_local16 == true){
.graphics.lineStyle(3, 0xFF9900, 0);
} else {
.graphics.lineStyle(3, 39423, (_local11 / 100));
};
_local30 = Math.sqrt((((_local22 - _local24) * (_local22 - _local24)) + ((_local23 - _local25) * (_local23 - _local25))));
.graphics.lineTo(_local24, _local25);
_local31++;
};
_local13 = _local40;
};
.removeChild();
} else {
if (
== 9){
[(.length - 1)].alpha = 1;
.alpha = 1;
_local55 = false;
_local56 = 0;
while (_local56 < .length) {
_local60 = (mouseX - [_local56].x);
_local61 = (mouseY - [_local56].y);
_local62 = Math.sqrt(((_local60 * _local60) + (_local61 * _local61)));
if (_local62 < ((16 + [_local56].diameter) / 2)){
_local55 = true;
};
_local56++;
};
if (!_local55){
.x = mouseX;
.y = mouseY;
};
_local57 = (.x - [(.length - 1)].x);
_local58 = (.y - [(.length - 1)].y);
_local59 = Math.sqrt(((_local57 * _local57) + (_local58 * _local58)));
if (_local59 > 100){
_local63 = (100 / _local59);
.x = ([(.length - 1)].x + (_local57 * _local63));
.y = ([(.length - 1)].y + (_local58 * _local63));
};
.graphics.clear();
.graphics.lineStyle(2, 39423, 1);
.graphics.moveTo([(.length - 1)].x, [(.length - 1)].y);
.graphics.lineTo(.x, .y);
};
};
} else {
.graphics.clear();
if (
[ ].animState.substr(0, 9) != "notaiming"){
[ ].changeAnim(("notaiming" +
));
};
if (
== 9){
[(.length - 1)].alpha = 0;
.alpha = 0;
};
};
}
public function (_arg1){
var _local2:int;
();
= 0;
while ( < teamHealths.length) {
if (teamHealths[] >
){
= teamHealths[];
};
++;
};
= 0;
while ( < ) {
_local2 = Math.round(((teamHealths[] /
) * 100));
if (_arg1){
[].bar.gotoAndStop((101 - _local2));
[].setTargetFrame((101 - _local2));
} else {
[].setTargetFrame((101 - _local2));
};
++;
};
();
}
public function (){
var _local1:Array;
var _local2:int;
_local1 = new Array();
= 0;
while ( < ) {
_local1.push(teamHealths[]);
++;
};
teamHealths = new Array();
= 0;
while ( < ) {
teamHealths.push(0);
++;
};
= 0;
while ( <
.length) {
teamHealths[
[].team] = (teamHealths[
[].team] +
[].health);
++;
};
= 0;
while ( < ) {
if ((((_local1[] > 0)) && ((teamHealths[] == 0)))){
_local2 = (.length - 1);
while (_local2 >= 0) {
if ([_local2] == ){
.splice(_local2, 1);
};
_local2--;
};
};
++;
};
}
public function doRestart(_arg1:MouseEvent=null){
var _local2:int;
();
_local2 = (MovieClip(root).msg.messageQueue.length - 1);
while (_local2 >= 0) {
MovieClip(root).msg.messageQueue.splice(_local2, 1);
_local2--;
};
MovieClip(root).msg.gotoAndStop(1);
MovieClip(root).restartGame();
}
public function (_arg1){
var _local2:int;
_local2 = .indexOf(_arg1);
if (_arg1.shieldLine){
.removeChild(_arg1.shieldLine);
};
.removeChild(_arg1);
.splice(_local2, 1);
}
public function (_arg1){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:int;
_local5 = 0;
while (_local5 <
.length) {
_local2 = (_arg1.x -
[_local5].x);
_local3 = (_arg1.y -
[_local5].y);
_local4 = ((_local2 * _local2) + (_local3 * _local3));
if (((((!((_local5 == ))) || ((_arg1.life > 5)))) && ((_local4 < 1600)))){
return (new Array("unit", _local5));
};
_local5++;
};
= 0;
while ( < .length) {
if ([].shape2.hitTestPoint((_arg1.x + x), (_arg1.y + y), true)){
return (new Array("planet", ));
};
++;
};
if ((((((((_arg1.x > ( + 1000))) || ((_arg1.x < ( - 1000))))) || ((_arg1.y > ( + 1000))))) || ((_arg1.y < ( - 1000))))){
return (new Array("bounds", 0));
};
return (false);
}
public function removeExplosion(_arg1){
var _local2:int;
_local2 = .indexOf(_arg1);
.removeChild( [_local2]);
.splice(_local2, 1);
}
public function (_arg1:MouseEvent){
if (((([4] > 0)) || (MovieClip(root).achievementsInfo.infAmmo))){
(8);
();
};
}
function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
var _local7:Point;
var _local8:Point;
var _local9:Point;
var _local10:Point;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:Point;
var _local18:Point;
var _local19:Number;
var _local20:Number;
var _local21:Point;
var _local22:Point;
_local8 = new Point(0, 0);
_local7 = lineIntersectLine(_arg1, _arg2, _arg3, _arg4, true);
.graphics.clear();
_local9 = new Point(_local7.x, _local7.y);
_local10 = new Point((_local7.x - _arg5.x), (_local7.y - _arg5.y));
_local11 = Math.atan2((_arg1.x - _arg2.x), (_arg1.y - _arg2.y));
_local12 = (_local11 - (Math.PI / 2));
_local13 = Math.atan2((_local9.x - _local10.x), (_local9.y - _local10.y));
_local14 = (_local12 - _local13);
_local15 = (_local12 + _local14);
_local16 = Math.sqrt(((_arg5.x * _arg5.x) + (_arg5.y * _arg5.y)));
_local17 = new Point(_local7.x, _local7.y);
_local18 = new Point((_local7.x - (Math.sin(_local12) * 50)), (_local7.y - (Math.cos(_local12) * 50)));
_local19 = (Math.sin(_local15) * _local16);
_local20 = (Math.cos(_local15) * _local16);
_local8 = new Point(((-1 * _arg6) * _local19), ((-1 * _arg6) * _local20));
_local21 = new Point(_local7.x, _local7.y);
_local22 = new Point((_local7.x - _local19), (_local7.y - (Math.cos(_local15) * 50)));
return (new Array(_local7, _local8));
}
public function (){
.alpha = 1;
.mouseEnabled = true;
panelWeps.alpha = 1;
panelWeps.mouseEnabled = true;
panelWeps.mouseChildren = true;
}
public function (_arg1:MouseEvent){
if (!panelWeps.shown){
panelWeps.showIt();
} else {
panelWeps.hideIt();
};
}
public function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
if (_arg6 == "bullet"){
if (
== 1){
.push(new Wep1Projectile());
} else {
if (
== 2){
.push(new Wep2Projectile());
} else {
if (
== 3){
.push(new BlackHole());
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_blackhole.gotoAndPlay(2);
};
.addChild(
[(
.length - 1)]);
[(
.length - 1)].rotation = (Math.atan2(_arg4, _arg3) * (180 / Math.PI));
[(
.length - 1)].x = _arg1;
[(
.length - 1)].y = _arg2;
[(
.length - 1)].powerX = _arg3;
[(
.length - 1)].powerY = _arg4;
} else {
if (
== 4){
.push(new Wep4Projectile());
} else {
if (
== 5){
.push(new Wep5Projectile());
} else {
if (
== 6){
.push(new Wep6Projectile());
} else {
if (
== 7){
.push(new Wep7Projectile());
};
};
};
};
};
};
};
} else {
if (_arg6 == "payload"){
.push(new Wep2aProjectile(_arg7));
} else {
if (_arg6 == "aster"){
.push(new Wep3Projectile());
} else {
if (_arg6 == "mine"){
.push(new MineProjectile());
} else {
if (_arg6 == "unit"){
.push(new UnitProjectile());
[(
.length - 1)].diameter = 30;
};
};
};
};
};
if (!(((_arg6 == "bullet")) && ((
== 3)))){
.addChild(
[(
.length - 1)]);
[(
.length - 1)].angleVelocity = _arg5;
[(
.length - 1)].x = _arg1;
[(
.length - 1)].y = _arg2;
[(
.length - 1)].oldX = _arg1;
[(
.length - 1)].oldY = _arg2;
[(
.length - 1)].momX = _arg3;
[(
.length - 1)].momY = _arg4;
};
}
public function
(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
.push(new ShieldNode());
.addChild([(.length - 1)]);
[(.length - 1)].x = (_arg1 + (50 * Math.sin(((0 - _arg3) * (Math.PI / 180)))));
[(.length - 1)].y = (_arg2 + (50 * Math.cos(((0 - _arg3) * (Math.PI / 180)))));
.push(new ShieldNode());
.addChild([(.length - 1)]);
[(.length - 1)].x = (_arg1 + (50 * Math.sin(((180 - _arg3) * (Math.PI / 180)))));
[(.length - 1)].y = (_arg2 + (50 * Math.cos(((180 - _arg3) * (Math.PI / 180)))));
_local4 = ([(.length - 2)].x - [(.length - 1)].x);
_local5 = ([(.length - 2)].y - [(.length - 1)].y);
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
_local7 = (Math.atan2(_local5, _local4) - (Math.PI / 2));
[(.length - 1)].shieldLine = new ShieldLine();
[(.length - 1)].shieldLine.scaleY = (_local6 / 100);
[(.length - 1)].shieldLine.rotation = (_local7 * (180 / Math.PI));
.addChild([(.length - 1)].shieldLine);
[(.length - 1)].shieldLine.x = [(.length - 1)].x;
[(.length - 1)].shieldLine.y = [(.length - 1)].y;
}
public function doQuit(_arg1:MouseEvent=null){
var _local2:int;
();
if (
== "gameover"){
MovieClip(root).doTransition("exitgame");
} else {
_local2 = (Math.floor(((MovieClip(root).achievementsInfo.levelsUnlocked - 1) / 5)) + 1);
if (_local2 > 5){
_local2 = 5;
};
MovieClip(root).doTransition(("levelselect" + _local2));
};
}
public function
(_arg1:MouseEvent){
var _local2:Number;
var _local3:Number;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:Boolean;
var _local8:int;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (
[ ].x + (16 * Math.sin(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local3 = (
[ ].y + (16 * Math.cos(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local4 = (_local2 - mouseX);
_local5 = (_local3 - mouseY);
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
if ((((((((((((((
== "shoot")) && (myTeamsTurn))) && (!(
[ ].isWalking)))) && ((((((((_local6 < 30)) || ((
== 3)))) || ((
== 9)))) || ((
== 10)))))) && (!()))) && (!((_arg1.target is SimpleButton))))) && (!((_arg1.target is WepIcon))))){
.gotoAndStop(34);
if (panelWeps.shown){
panelWeps.hideIt();
};
if (
== 9){
_local7 = false;
_local8 = 0;
while (_local8 < .length) {
_local9 = (mouseX - [_local8].x);
_local10 = (mouseY - [_local8].y);
_local11 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
if (_local11 < ((16 + [_local8].diameter) / 2)){
_local7 = true;
};
_local8++;
};
if (!_local7){
.addChild();
aiming = true;
stage.removeEventListener(MouseEvent.MOUSE_DOWN,
);
stage.addEventListener(MouseEvent.MOUSE_MOVE, );
stage.addEventListener(MouseEvent.MOUSE_UP, );
.push(new ShieldNode());
.addChild([(.length - 1)]);
.x = mouseX;
.y = mouseY;
[(.length - 1)].x = mouseX;
[(.length - 1)].y = mouseY;
};
} else {
if (
== 10){
stage.removeEventListener(MouseEvent.MOUSE_DOWN,
);
stage.addEventListener(MouseEvent.MOUSE_UP, );
} else {
if (
== 3){
_local7 = false;
_local8 = 0;
while (_local8 < .length) {
_local9 = (mouseX - [_local8].x);
_local10 = (mouseY - [_local8].y);
_local11 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
if (_local11 < ((50 + [_local8].diameter) / 2)){
_local7 = true;
};
_local8++;
};
};
if (((!((
== 3))) || (!(_local7)))){
aiming = true;
= new Point(mouseX, mouseY);
[ ].changeAnim(("aiming" +
));
stage.removeEventListener(MouseEvent.MOUSE_DOWN,
);
stage.addEventListener(MouseEvent.MOUSE_UP, );
stage.addEventListener(MouseEvent.MOUSE_MOVE, );
();
= 2;
};
};
};
};
}
public function
(_arg1, _arg2){
var _local3:*;
if (_arg1.graphic){
_local3 = PixelPerfectCollisionDetection.isColliding(_arg1.hitarea, _arg2, this, true, 0);
if (((_local3) && (!((_arg2 is Wep5Projectile))))){
return (_local3);
};
return (false);
};
}
public function
(){
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local1 = 0;
_local2 = 0;
= 0;
while ( < teamHealths.length) {
if (teamHealths[] > 0){
_local1++;
_local2 = ;
};
++;
};
if ((((_local1 >= 2)) && ((teamHealths[0] == 0)))){
MovieClip(root).lastGameLevel = MovieClip(root).levelSetup.levelID;
MovieClip(root).lastGameHealth = _local3;
MovieClip(root).lastGameDamage = ;
MovieClip(root).achievementsInfo.stats["damageDone"] = (MovieClip(root).achievementsInfo.stats["damageDone"] + );
if (classicGFX){
MovieClip(root).achievementsInfo.stats["originalGFX"] = 1;
};
= "gameover";
MovieClip(root).msg.addMessage("You Lost!", 0);
MovieClip(root).lastGameWin = false;
MovieClip(root).lastGameDraw = false;
} else {
if (_local1 == 1){
_local3 = 0;
= 0;
while ( <
.length) {
if (
[].team == 0){
_local3 = (_local3 +
[].health);
};
_local4 = 0;
if (MovieClip(root).achievementsInfo.aCount >= 40){
_local4 = 6;
} else {
if (MovieClip(root).achievementsInfo.aCount >= 32){
_local4 = 5;
} else {
if (MovieClip(root).achievementsInfo.aCount >= 24){
_local4 = 4;
} else {
if (MovieClip(root).achievementsInfo.aCount >= 16){
_local4 = 3;
} else {
if (MovieClip(root).achievementsInfo.aCount >= 8){
_local4 = 2;
};
};
};
};
};
[].danceID = ( % _local4);
if (
[].danceID == 0){
[].changeAnim("cheer");
} else {
if (
[].danceID == 1){
[].changeAnim("headbang");
} else {
if (
[].danceID == 2){
[].changeAnim("hands");
} else {
if (
[].danceID == 3){
[].changeAnim("worm");
} else {
if (
[].danceID == 4){
[].changeAnim("moonwalk");
} else {
if (
[].danceID == 4){
[].changeAnim("gunshoot");
};
};
};
};
};
};
++;
};
.removeChild(gameTimer);
= "gameover";
MovieClip(root).lastGameLevel = MovieClip(root).levelSetup.levelID;
MovieClip(root).lastGameHealth = _local3;
MovieClip(root).lastGameDamage = ;
MovieClip(root).achievementsInfo.stats["damageDone"] = (MovieClip(root).achievementsInfo.stats["damageDone"] + );
if (classicGFX){
MovieClip(root).achievementsInfo.stats["originalGFX"] = 1;
};
if (_local2 == 0){
MovieClip(root).msg.addMessage("Red Team Wins", _local2);
.setTarget(
[0], , , , );
MovieClip(root).lastGameWin = true;
MovieClip(root).lastGameDraw = false;
} else {
if (_local2 == 1){
MovieClip(root).msg.addMessage("Blue Team Wins", _local2);
.setTarget(
[0], , , , );
MovieClip(root).lastGameWin = false;
MovieClip(root).lastGameDraw = false;
} else {
if (_local2 == 2){
MovieClip(root).msg.addMessage("Green Team Wins", _local2);
.setTarget(
[0], , , , );
MovieClip(root).lastGameWin = false;
MovieClip(root).lastGameDraw = false;
} else {
if (_local2 == 3){
MovieClip(root).msg.addMessage("Yellow Team Wins", _local2);
.setTarget(
[0], , , , );
MovieClip(root).lastGameWin = false;
MovieClip(root).lastGameDraw = false;
};
};
};
};
if ((((_local2 == 0)) && ((MovieClip(root).levelSetup.levelID == MovieClip(root).achievementsInfo.levelsUnlocked)))){
MovieClip(root).achievementsInfo.levelsUnlocked = (MovieClip(root).levelSetup.levelID + 1);
_local5 = Math.floor((MovieClip(root).levelSetup.levelID / 5));
if (_local5 > MovieClip(root).achievementsInfo.stats["highestSectorCompleted"]){
MovieClip(root).achievementsInfo.stats["highestSectorCompleted"] = _local5;
};
MovieClip(root).achievementsInfo.checkWepsUnlocked();
};
} else {
if (_local1 == 0){
MovieClip(root).lastGameLevel = MovieClip(root).levelSetup.levelID;
MovieClip(root).lastGameHealth = _local3;
MovieClip(root).lastGameDamage = ;
MovieClip(root).achievementsInfo.stats["damageDone"] = (MovieClip(root).achievementsInfo.stats["damageDone"] + );
if (classicGFX){
MovieClip(root).achievementsInfo.stats["originalGFX"] = 1;
};
= "gameover";
MovieClip(root).msg.addMessage("Everyone's Dead! Draw!", 0);
MovieClip(root).lastGameWin = false;
MovieClip(root).lastGameDraw = true;
};
};
};
}
public function
(){
.alpha = 0;
.mouseEnabled = false;
();
panelWeps.alpha = 0;
panelWeps.mouseEnabled = false;
panelWeps.mouseChildren = false;
}
public function (_arg1, _arg2, _arg3, _arg4){
var _local5:BlurFilter;
if (_arg4 == "zap"){
.push(new UnitZap());
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_zap.gotoAndPlay(2);
};
} else {
if (_arg4 == "burn"){
.push(new UnitBurn());
_local5 = new BlurFilter(8, 8, 3);
[( .length - 1)].filters = [_local5];
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_burn.gotoAndPlay(2);
};
} else {
if (_arg4 == "spark"){
.push(new Spark());
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_bounce.gotoAndPlay(2);
};
} else {
if (_arg3 <= 0.5){
.push(new Explosion0());
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_explosion.gotoAndPlay(2);
};
} else {
.push(new Explosion1());
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_explosion.gotoAndPlay(2);
};
};
};
};
};
[( .length - 1)].scaleX = _arg3;
[( .length - 1)].scaleY = _arg3;
.addChild( [( .length - 1)]);
[( .length - 1)].x = _arg1;
[( .length - 1)].y = _arg2;
}
public function (_arg1){
var _local2:int;
_local2 =
.indexOf(_arg1);
.removeChild(_arg1);
.splice(_local2, 1);
}
public function (_arg1, _arg2){
var _local3:*;
if (!_arg1.isSun){
_local3 = PixelPerfectCollisionDetection.isColliding(_arg1.shape2, _arg2, this, true, 0);
} else {
_local3 = PixelPerfectCollisionDetection.isColliding(_arg1, _arg2, this, true, 0);
};
if (_local3){
return (_local3);
};
return (false);
}
public function (){
var _local1:int;
if (!MovieClip(root).achievementsInfo.infAmmo){
_local1 = 1;
while (_local1 < 10) {
panelWeps.panel[(("wep" + _local1) + "stock")].text = [_local1].toString();
panelWeps.panel[(("wep" + _local1) + "stock")].mouseEnabled = false;
_local1++;
};
} else {
_local1 = 1;
while (_local1 < 10) {
panelWeps.panel[(("wep" + _local1) + "stock")].text = "";
panelWeps.panel[(("wep" + _local1) + "stock")].mouseEnabled = false;
panelWeps.panel[(("wep" + _local1) + "inf")].gotoAndStop(2);
panelWeps.panel[(("wep" + _local1) + "inf")].mouseEnabled = false;
_local1++;
};
};
}
public function (){
panelWeps.panel.wep1.removeEventListener(MouseEvent.MOUSE_UP, );
if (MovieClip(root).achievementsInfo.wepsUnlocked[1]){
panelWeps.panel.wep2.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[2]){
panelWeps.panel.wep4.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[3]){
panelWeps.panel.wep6.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[4]){
panelWeps.panel.wep8.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[5]){
panelWeps.panel.wep9.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[6]){
panelWeps.panel.wep5.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[7]){
panelWeps.panel.wep10.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[8]){
panelWeps.panel.wep7.removeEventListener(MouseEvent.MOUSE_UP, );
};
if (MovieClip(root).achievementsInfo.wepsUnlocked[9]){
panelWeps.panel.wep3.removeEventListener(MouseEvent.MOUSE_UP, );
};
.removeEventListener(MouseEvent.MOUSE_DOWN, );
stage.removeEventListener(KeyboardEvent.KEY_DOWN, );
stage.removeEventListener(KeyboardEvent.KEY_UP, );
if (stage.hasEventListener(MouseEvent.MOUSE_UP)){
stage.removeEventListener(MouseEvent.MOUSE_UP, );
stage.removeEventListener(MouseEvent.MOUSE_MOVE, );
};
if (stage.hasEventListener(MouseEvent.MOUSE_DOWN)){
stage.removeEventListener(MouseEvent.MOUSE_DOWN,
);
};
removeEventListener(Event.ENTER_FRAME, mainLoop);
}
public function (){
.graphics.clear();
}
public function unitJiggleFix(){
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local1 = 0;
while (_local1 <
.length) {
_local4 =
[_local1].positionPlanet;
_local5 = 0;
while (_local5 < [_local4].shapeArray.length) {
_local6 = 0;
while (_local6 < [_local4].shapeArray[_local5].length) {
if (((([_local4].shapeArray[_local5][_local6].x ==
[_local1].positionElementX)) && (([_local4].shapeArray[_local5][_local6].y ==
[_local1].positionElementY)))){
[_local1].positionElement = _local6;
[_local1].positionShape = _local5;
};
_local6++;
};
_local5++;
};
_local1++;
};
_local2 = 0;
while (_local2 < .length) {
_local4 = [_local2].positionPlanet;
_local5 = 0;
while (_local5 < [_local4].shapeArray.length) {
_local6 = 0;
while (_local6 < [_local4].shapeArray[_local5].length) {
if (((([_local4].shapeArray[_local5][_local6].x == [_local2].positionElementX)) && (([_local4].shapeArray[_local5][_local6].y == [_local2].positionElementY)))){
[_local2].positionElement = _local6;
};
_local6++;
};
_local5++;
};
_local2++;
};
_local3 = 0;
while (_local3 <
.length) {
_local4 =
[_local3].positionPlanet;
_local5 = 0;
while (_local5 < [_local4].shapeArray.length) {
_local6 = 0;
while (_local6 < [_local4].shapeArray[_local5].length) {
if (((([_local4].shapeArray[_local5][_local6].x ==
[_local3].positionElementX)) && (([_local4].shapeArray[_local5][_local6].y ==
[_local3].positionElementY)))){
[_local3].positionElement = _local6;
};
_local6++;
};
_local5++;
};
_local3++;
};
}
public function
(_arg1, _arg2, _arg3, _arg4){
.push(new Planet());
.addChild([(.length - 1)]);
if (_arg4 == 1){
[(.length - 1)].isSun = true;
};
[(.length - 1)].diameter = _arg1;
[(.length - 1)].x = _arg2;
[(.length - 1)].y = _arg3;
[(.length - 1)].GFXID = _arg4;
[(.length - 1)].classicGFX = classicGFX;
[(.length - 1)].updatePlanet();
}
public function (_arg1:MouseEvent=null){
if (panelWeps.currentFrame == 11){
panelWeps.removeEventListener(MouseEvent.MOUSE_UP, );
panelWeps.addEventListener(MouseEvent.MOUSE_UP, );
panelWeps.gotoAndPlay(12);
};
}
public function (){
if (
<= MovieClip(root).levelSetup.criteria[0]){
.medalCrit.text = (("Win in " + MovieClip(root).levelSetup.criteria[0]) + " turns for Gold");
} else {
if (
<= MovieClip(root).levelSetup.criteria[1]){
.medalCrit.text = (("Win in " + MovieClip(root).levelSetup.criteria[1]) + " turns for Silver");
} else {
.medalCrit.text = "Win for Bronze";
};
};
.turnNumber.text =
.toString();
}
public function (_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:int;
var _local22:int;
var _local23:Number;
var _local24:Number;
var _local25:Number;
[_arg1].healthDisplay.hideHealth();
[_arg1].scaleX = -1;
[_arg1].isWalking = true;
= _arg2;
_local3 =
[_arg1].x;
_local4 =
[_arg1].y;
while ( > 0) {
_local8 =
[_arg1].positionPlanet;
_local9 =
[_arg1].positionShape;
_local10 =
[_arg1].positionElement;
_local11 = (
[_arg1].positionElement - 1);
if (_local11 < 0){
_local11 = (_local11 + [_local8].shapeArray[_local9].length);
};
_local12 =
[_arg1].positionPlace;
_local13 = ([_local8].shapeArray[_local9][_local11].x - [_local8].shapeArray[_local9][_local10].x);
_local14 = ([_local8].shapeArray[_local9][_local11].y - [_local8].shapeArray[_local9][_local10].y);
_local15 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14)));
_local16 = Math.atan2(([_local8].shapeArray[_local9][_local10].y - [_local8].shapeArray[_local9][((
[_arg1].positionElement + 1) % [_local8].shapeArray[_local9].length)].y), ([_local8].shapeArray[_local9][_local10].x - [_local8].shapeArray[_local9][((
[_arg1].positionElement + 1) % [_local8].shapeArray[_local9].length)].x));
_local17 = (_local16 * (180 / Math.PI));
if (_local17 > 180){
_local17 = (_local17 - 360);
} else {
if (_local17 < -180){
_local17 = (_local17 + 360);
};
};
if (
[_arg1].rotation != _local17){
_local18 = (
[_arg1].rotation - _local17);
if (_local18 < -180){
_local18 = (_local18 + 360);
} else {
if (_local18 > 180){
_local18 = (_local18 - 360);
};
};
_local19 = (_local18 /
);
if (Math.abs(_local19) < ){
= ( - Math.abs(_local19));
[_arg1].rotation = _local17;
} else {
_local20 = (_local17 -
[_arg1].rotation);
if (_local20 > 180){
_local20 = (_local20 - 360);
} else {
if (_local20 < -180){
_local20 = (_local20 + 360);
};
};
if (_local20 < 0){
[_arg1].rotation = (
[_arg1].rotation - ( *
));
} else {
[_arg1].rotation = (
[_arg1].rotation + ( *
));
};
= 0;
};
(_arg1, false);
} else {
if ((_local12 - ) <= 0){
_local21 =
[_arg1].positionElement;
_local22 = (
[_arg1].positionElement - 1);
if (_local22 < 0){
_local22 = (_local22 + [_local8].shapeArray[_local9].length);
};
_local23 = ([_local8].shapeArray[_local9][_local21].x - [_local8].shapeArray[_local9][_local22].x);
_local24 = ([_local8].shapeArray[_local9][_local21].y - [_local8].shapeArray[_local9][_local22].y);
_local25 = Math.sqrt(((_local23 * _local23) + (_local24 * _local24)));
[_arg1].positionElement = _local11;
[_arg1].positionElementX = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][_local11].x;
[_arg1].positionElementY = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][_local11].y;
[_arg1].positionPlace = _local25;
= ( - _local12);
(_arg1, false);
} else {
[_arg1].positionPlace = (
[_arg1].positionPlace - );
= 0;
(_arg1, false);
};
};
if (
[_arg1].positionElement >= [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape].length){
[_arg1].positionElement = 0;
[_arg1].positionElementX = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][0].x;
[_arg1].positionElementY = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][0].y;
};
};
_local5 = (_local3 -
[_arg1].x);
_local6 = (_local4 -
[_arg1].y);
_local7 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
if (((!((
[_arg1].animState == "walk"))) && (!((
== "gameover"))))){
[_arg1].changeAnim("walk");
};
}
public function (_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:int;
var _local18:*;
var _local19:*;
.push(new Unit());
[(
.length - 1)].addEventListener(MouseEvent.MOUSE_OVER, );
[(
.length - 1)].addEventListener(MouseEvent.MOUSE_OUT, );
.addChild(
[(
.length - 1)]);
if (_arg4){
do {
_local5 = 0;
do {
_local7 = Math.floor((Math.random() * .length));
} while ([_local7].isSun);
_local6 = Math.floor((Math.random() * [_local7].shapeArray[0].length));
[(
.length - 1)].positionPlanet = _local7;
[(
.length - 1)].positionShape = 0;
[(
.length - 1)].positionElement = _local6;
[(
.length - 1)].positionElementX = [_local7].shapeArray[0][_local6].x;
[(
.length - 1)].positionElementY = [_local7].shapeArray[0][_local6].y;
((
.length - 1), true);
if (
.length > 1){
= 0;
while ( < (
.length - 1)) {
_local8 = (
[(
.length - 1)].x -
[].x);
_local9 = (
[(
.length - 1)].y -
[].y);
_local10 = ((_local8 * _local8) + (_local9 * _local9));
if (_local10 < 3000){
_local5++;
};
++;
};
};
} while (_local5 > 0);
[(
.length - 1)].rotation = (Math.atan2(([_local7].shapeArray[0][_local6].y - [_local7].shapeArray[0][((_local6 + 1) % [_local7].shapeArray[0].length)].y), ([_local7].shapeArray[0][_local6].x - [_local7].shapeArray[0][((_local6 + 1) % [_local7].shapeArray[0].length)].x)) * (180 / Math.PI));
} else {
if (_arg2 < 0){
_arg2 = (_arg2 + 360);
};
if (_arg2 > 360){
_arg2 = (_arg2 - 360);
};
[(
.length - 1)].positionPlanet = _arg1;
[(
.length - 1)].positionShape = 0;
graphics.lineStyle(2, 0xFF0000, 1);
_local11 = [_arg1].x;
_local12 = [_arg1].y;
_local13 = ([_arg1].x - (200 * Math.sin(((90 - _arg2) * (Math.PI / 180)))));
_local14 = ([_arg1].y - (200 * Math.cos(((90 - _arg2) * (Math.PI / 180)))));
_local15 = new Point((_local11 - [_arg1].x), (_local12 - [_arg1].y));
_local16 = new Point((_local13 - [_arg1].x), (_local14 - [_arg1].y));
_local17 = 0;
while (_local17 < [_arg1].shapeArray[0].length) {
_local18 = new Point([_arg1].shapeArray[0][_local17].x, [_arg1].shapeArray[0][_local17].y);
_local19 = new Point([_arg1].shapeArray[0][((_local17 + 1) % [_arg1].shapeArray[0].length)].x, [_arg1].shapeArray[0][((_local17 + 1) % [_arg1].shapeArray[0].length)].y);
if ([].lineIntersectLine(_local15, _local16, _local18, _local19, true)){
[(
.length - 1)].positionElement = _local17;
[(
.length - 1)].positionElementX = [
[(
.length - 1)].positionPlanet].shapeArray[
[(
.length - 1)].positionShape][_local17].x;
[(
.length - 1)].positionElementY = [
[(
.length - 1)].positionPlanet].shapeArray[
[(
.length - 1)].positionShape][_local17].y;
};
_local17++;
};
((
.length - 1), true);
};
[(
.length - 1)].team = _arg3;
[(
.length - 1)].timeSince = [_arg3];
if (
.length == 1){
[(
.length - 1)].timeSince = 0;
};
var _local20 = ;
var _local21 = _arg3;
var _local22 = (_local20[_local21] - 1);
_local20[_local21] = _local22;
[(
.length - 1)].updateCol();
[(
.length - 1)].graphic.gotoAndPlay(Math.ceil((Math.random() *
[(
.length - 1)].graphic.totalFrames)));
}
public function (_arg1, _arg2, _arg3, _arg4, _arg5){
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:*;
var _local25:*;
var _local26:*;
var _local27:Number;
var _local28:Number;
if ((((_arg5 == "proj")) || ((_arg5 == "unit")))){
expSize =
[_arg3].expSize;
shake =
[_arg3].shake;
[_arg3].removeMe = true;
} else {
if (_arg5 == "mine"){
expSize = [_arg3].expSize;
shake = [_arg3].shake;
[_arg3].removeMe = true;
} else {
if (_arg5 == "dead"){
expSize = 60;
shake = 4;
if (_arg3 != -1){
[_arg3].removeMe = true;
};
};
};
};
(_arg1, _arg2, (expSize / 60), "");
if (_arg4 > -1){
if (![_arg4].isSun){
[_arg4].removeChunk(_arg1, _arg2, expSize);
[_arg4].findNewCenter();
};
} else {
_local8 = 0;
while (_local8 < .length) {
_local9 = (_arg1 - [_local8].x);
_local10 = (_arg2 - [_local8].y);
_local11 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
if (((!([_local8].isSun)) && ((_local11 < (([_local8].diameter + expSize) / 2))))){
[_local8].removeChunk(_arg1, _arg2, expSize);
[_local8].findNewCenter();
};
_local8++;
};
};
_local8 = (
.length - 1);
while (_local8 >= 0) {
_local12 = (
[_local8].x - _arg1);
_local13 = (
[_local8].y - _arg2);
if (((!(
[_local8].removeMe)) && ((((_local12 * _local12) + (_local13 * _local13)) < (expSize * expSize))))){
[_local8].removeMe = true;
(
[_local8].x,
[_local8].y, -1, -1, "dead");
};
_local8--;
};
_local6 = (.length - 1);
while (_local6 >= 0) {
_local14 = ([_local6].x - _arg1);
_local15 = ([_local6].y - _arg2);
if (((((!((((_arg5 == "mine")) && ((_arg3 == _local6))))) && (!([_local6].removeMe)))) && ((((_local14 * _local14) + (_local15 * _local15)) < (expSize * expSize))))){
[_local6].removeMe = true;
_local16 = Math.sqrt(((_local14 * _local14) + (_local15 * _local15)));
_local17 = Math.atan2(_local15, _local14);
_local18 = (_local17 * (180 / Math.PI));
_local19 = ((expSize - _local16) / 2);
_local20 = ((_local19 * (0 - Math.sin((((-1 * (_local18 - 180)) + 90) * (Math.PI / 180))))) * 1.5);
_local21 = ((_local19 * (0 - Math.cos((((-1 * (_local18 - 180)) + 90) * (Math.PI / 180))))) * 1.5);
([_local6].x, [_local6].y, _local20, _local21, 10, "mine", null);
[(
.length - 1)].timeTilPrimed = [_local6].timeTilPrimed;
[(
.length - 1)].timeTilBoom = [_local6].timeTilBoom;
[(
.length - 1)].activated = [_local6].activated;
[(
.length - 1)].gotoAndStop(2);
};
_local6--;
};
_local7 = (
.length - 1);
while (_local7 >= 0) {
if (((((!((_arg5 == "dead"))) || ((((_arg5 == "dead")) && (!((_local7 == _arg3))))))) && (!(
[_local7].removeMe)))){
_local22 = (
[_local7].x + (16 * Math.sin(((180 -
[_local7].rotation) * (Math.PI / 180)))));
_local23 = (
[_local7].y + (16 * Math.cos(((180 -
[_local7].rotation) * (Math.PI / 180)))));
_local24 = (_local22 - _arg1);
_local25 = (_local23 - _arg2);
if ((((((_local24 * _local24) + (_local25 * _local25)) < (expSize * expSize))) && (!(
[_local7].removeMe)))){
_local26 = Math.sqrt(((_local24 * _local24) + (_local25 * _local25)));
if ((((_local7 == )) && ((gameTimer.timeLeft > 0)))){
gameTimer.timeLeft = 0;
= "sim";
};
[_local7].removeMe = true;
if ((((((_arg5 == "proj")) || ((_arg5 == "unit")))) && (myTeamsTurn))){
if (
[_arg3].reflected){
MovieClip(root).achievementsInfo.stats["shieldRebounds"] = 1;
};
if (MovieClip(root).achievementsInfo.stats["longestShot"] <
[_arg3].distance){
MovieClip(root).achievementsInfo.stats["longestShot"] = Math.round(
[_arg3].distance);
};
if (MovieClip(root).achievementsInfo.stats["highestMulti"] <
[_arg3].multi){
MovieClip(root).achievementsInfo.stats["highestMulti"] =
[_arg3].multi;
};
};
_local17 = Math.atan2(_local25, _local24);
_local18 = (_local17 * (180 / Math.PI));
_local19 = ((expSize - _local26) / 2);
_local20 = ((_local19 * (0 - Math.sin((((-1 * (_local18 - 180)) + 90) * (Math.PI / 180))))) * 1.5);
_local21 = ((_local19 * (0 - Math.cos((((-1 * (_local18 - 180)) + 90) * (Math.PI / 180))))) * 1.5);
if (((!((
== "shoot"))) && (!((
== "sim"))))){
= "sim";
};
_local27 = ((Math.random() * 7) + 3);
if (Math.random() <= 0.5){
_local27 = (_local27 * -1);
};
(_local22, _local23, _local20, _local21, _local27, "unit", null);
[(
.length - 1)].maxHealth =
[_local7].maxHealth;
[(
.length - 1)].accuracy =
[_local7].accuracy;
[(
.length - 1)].unitName =
[_local7].unitName;
[(
.length - 1)].health =
[_local7].health;
[(
.length - 1)].killReg =
[_local7].killReg;
[(
.length - 1)].updateMass();
[(
.length - 1)].team =
[_local7].team;
[(
.length - 1)].timeSince =
[_local7].timeSince;
if (_arg5 == "unit"){
if ((((
[(
.length - 1)].killReg == -1)) && ((
[(
.length - 1)].health <= (
[].maxDamage *
[].multi))))){
if ((
[] is Wep1Projectile)){
[(
.length - 1)].killReg = 1;
} else {
if ((((
[] is Wep2Projectile)) || ((
[] is Wep2aProjectile)))){
[(
.length - 1)].killReg = 2;
} else {
if ((
[] is Wep3Projectile)){
[(
.length - 1)].killReg = 3;
} else {
if ((
[] is Wep5Projectile)){
[(
.length - 1)].killReg = 5;
} else {
if ((
[] is Wep7Projectile)){
[(
.length - 1)].killReg = 7;
} else {
if (_arg5 == "mine"){
[(
.length - 1)].killReg = 8;
};
};
};
};
};
};
};
[(
.length - 1)].damageTaken = (
[_local7].damageTaken + (
[].maxDamage *
[].multi));
if (((!((
[_local7].team == 0))) && (myTeamsTurn))){
= ( + (
[].maxDamage *
[].multi));
};
} else {
if ((((
[(
.length - 1)].killReg == -1)) && ((
[(
.length - 1)].health <= Math.round((_local19 *
[].multi)))))){
if ((
[] is Wep1Projectile)){
[(
.length - 1)].killReg = 1;
} else {
if ((((
[] is Wep2Projectile)) || ((
[] is Wep2aProjectile)))){
[(
.length - 1)].killReg = 2;
} else {
if ((
[] is Wep3Projectile)){
[(
.length - 1)].killReg = 3;
} else {
if ((
[] is Wep5Projectile)){
[(
.length - 1)].killReg = 5;
} else {
if ((
[] is Wep7Projectile)){
[(
.length - 1)].killReg = 7;
} else {
if (_arg5 == "mine"){
[(
.length - 1)].killReg = 8;
};
};
};
};
};
};
};
_local28 = (((expSize - _local26) / expSize) * (
[].maxDamage * 2));
if (_local28 >
[].maxDamage){
_local28 =
[].maxDamage;
};
[(
.length - 1)].damageTaken = (
[_local7].damageTaken + Math.round((_local28 *
[].multi)));
if (((!((
[_local7].team == 0))) && (myTeamsTurn))){
= ( + Math.round((_local19 *
[].multi)));
};
};
[(
.length - 1)].poisoned =
[_local7].poisoned;
[(
.length - 1)].updateCol();
};
};
_local7--;
};
}
public function (_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:*;
var _local19:*;
var _local20:*;
[_arg1].healthDisplay.hideHealth();
[_arg1].scaleX = 1;
[_arg1].isWalking = true;
= _arg2;
_local3 =
[_arg1].x;
_local4 =
[_arg1].y;
while ( > 0) {
_local8 =
[_arg1].positionPlanet;
_local9 =
[_arg1].positionShape;
_local10 =
[_arg1].positionElement;
_local11 = ((
[_arg1].positionElement + 1) % [_local8].shapeArray[_local9].length);
_local12 =
[_arg1].positionPlace;
_local13 = ([_local8].shapeArray[_local9][_local10].x - [_local8].shapeArray[_local9][_local11].x);
_local14 = ([_local8].shapeArray[_local9][_local10].y - [_local8].shapeArray[_local9][_local11].y);
_local15 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14)));
_local16 = Math.atan2(([_local8].shapeArray[_local9][_local10].y - [_local8].shapeArray[_local9][_local11].y), ([_local8].shapeArray[_local9][_local10].x - [_local8].shapeArray[_local9][_local11].x));
_local17 = (_local16 * (180 / Math.PI));
if (_local17 > 180){
_local17 = (_local17 - 360);
} else {
if (_local17 < -180){
_local17 = (_local17 + 360);
};
};
if (
[_arg1].rotation != _local17){
_local18 = (
[_arg1].rotation - _local17);
if (_local18 < -180){
_local18 = (_local18 + 360);
};
_local19 = (_local18 /
);
if (Math.abs(_local19) < ){
= ( - _local19);
[_arg1].rotation = _local17;
} else {
_local20 = (_local17 -
[_arg1].rotation);
if (_local20 > 180){
_local20 = (_local20 - 360);
} else {
if (_local20 < -180){
_local20 = (_local20 + 360);
};
};
if (_local20 < 0){
[_arg1].rotation = (
[_arg1].rotation - ( *
));
} else {
[_arg1].rotation = (
[_arg1].rotation + ( *
));
};
= 0;
};
(_arg1, false);
} else {
if (( + _local12) > _local15){
[_arg1].positionElement = _local11;
[_arg1].positionElementX = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][_local11].x;
[_arg1].positionElementY = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][_local11].y;
[_arg1].positionPlace = 0;
= ( - (_local15 - _local12));
(_arg1, false);
} else {
[_arg1].positionPlace = (
[_arg1].positionPlace + );
= 0;
(_arg1, false);
};
};
if (
[_arg1].positionElement >= [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape].length){
[_arg1].positionElement = 0;
[_arg1].positionElementX = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][0].x;
[_arg1].positionElementY = [
[_arg1].positionPlanet].shapeArray[
[_arg1].positionShape][0].y;
};
};
_local5 = (_local3 -
[_arg1].x);
_local6 = (_local4 -
[_arg1].y);
_local7 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
if (((!((
[_arg1].animState == "walk"))) && (!((
== "gameover"))))){
[_arg1].changeAnim("walk");
};
}
public function doUnpause(_arg1:MouseEvent=null){
= false;
MovieClip(root).pausePanel.gotoAndStop(1);
}
public function (){
var _local1:*;
var _local2:*;
var _local3:int;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:int;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:int;
var _local21:int;
var _local22:int;
var _local23:int;
var _local24:*;
var _local25:*;
var _local26:*;
var _local27:int;
var _local28:*;
var _local29:*;
var _local30:int;
var _local31:Point;
var _local32:Point;
var _local33:Point;
var _local34:Point;
var _local35:*;
var _local36:*;
var _local37:*;
var _local38:Point;
var _local39:Point;
var _local40:Point;
var _local41:Point;
var _local42:Point;
var _local43:Array;
var _local44:Array;
var _local45:int;
var _local46:Boolean;
var _local47:int;
var _local48:int;
var _local49:int;
var _local50:*;
var _local51:Number;
var _local52:Number;
var _local53:Number;
var _local54:Number;
var _local55:*;
var _local56:*;
var _local57:*;
var _local58:*;
var _local59:int;
var _local60:Number;
var _local61:Number;
if (gameTimer.timeLeft > 0){
if (
== "pickupFind"){
_local1 = 0;
_local2 = 1E20;
_local3 = 0;
while (_local3 <
.length) {
if (((((!(
[_local3].expired)) && ((
[_local3].positionPlanet ==
[ ].positionPlanet)))) && ((
[_local3].positionShape ==
[ ].positionShape)))){
++;
_local4 = (
[_local3].x -
[ ].x);
_local5 = (
[_local3].y -
[ ].y);
_local6 = ((_local4 * _local4) + (_local5 * _local5));
if (_local6 < _local2){
_local2 = _local6;
_local1 = _local3;
};
};
_local3++;
};
if ( > 0){
= "pickup";
_local7 =
[_local1].positionElement;
_local8 =
[ ].positionElement;
_local9 = (_local7 - _local8);
_local10 = (_local8 - _local7);
while (_local9 < 0) {
_local9 = (_local9 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
while (_local10 < 0) {
_local10 = (_local10 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
if (_local9 > _local10){
= 1;
} else {
= 0;
};
} else {
= "find";
};
};
if (
== "pickup"){
if ( > 0){
[ ].isWalking = true;
if ( == 0){
( , 3);
} else {
( , 3);
};
} else {
[ ].isWalking = false;
= "find";
};
} else {
if (
== "find"){
if (((( [2] > 0)) && (!()))){
= true;
_local11 =
( , null, null, null, "snipe");
if ((_local11 is Array)){
_local12 = 0;
while (_local12 < _local11.length) {
if (
[_local11[_local12]].team == 0){
if (
[_local11[_local12]].health <= 40){
= _local11[_local12];
= 4;
_local13 = (
[ ].x + (16 * Math.sin(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local14 = (
[ ].y + (16 * Math.cos(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local15 = (
[_local11[_local12]].x + (16 * Math.sin(((180 -
[_local11[_local12]].rotation) * (Math.PI / 180)))));
_local16 = (
[_local11[_local12]].y + (16 * Math.cos(((180 -
[_local11[_local12]].rotation) * (Math.PI / 180)))));
_local17 = (0 - Math.atan2((_local15 - _local13), (_local16 - _local14)));
_local18 = (
[ ].rotation * (Math.PI / 180));
_local19 = ((_local18 - _local17) * (180 / Math.PI));
if (_local19 < 0){
_local19 = (_local19 + 360);
};
if (_local19 > 360){
_local19 = (_local19 - 360);
};
_local20 = 0;
if (_local19 < 180){
_local20 = Math.round(_local19);
[ ].scaleX = -1;
} else {
_local20 = Math.round((180 - (_local19 - 180)));
[ ].scaleX = 1;
};
if (_local20 <= 0){
_local20 = 1;
};
= _local20;
};
};
_local12++;
};
};
};
if (((((( [4] > 0)) && (!( )))) && (((((( > -1)) && ((
[].health > 40)))) || (( == -1)))))){
= true;
_local21 = 0;
while (_local21 <
.length) {
if ((((((
[_local21].team == 0)) && ((
[_local21].positionPlanet ==
[ ].positionPlanet)))) && ((
[_local21].positionShape ==
[ ].positionShape)))){
if (
[_local21].health <= 25){
= 8;
= _local21;
};
};
_local21++;
};
};
if (((( == -1)) && (( == -1)))){
if (((( .length == 0)) && (( <= 10)))){
++;
[ ].changeAnim("thinking");
= 1;
_local22 = (3 * );
_local23 = 0;
while (_local23 < 72) {
_local17 = ((_local23 / 36) * Math.PI);
.push(new TargetProjectile());
.addChild( [( .length - 1)]);
[( .length - 1)].alpha = 0;
_local24 = (_local22 * Math.sin((0 - _local17)));
_local25 = (_local22 * Math.cos((0 - _local17)));
_local18 = (
[ ].rotation * (Math.PI / 180));
_local19 = ((_local18 - _local17) * (180 / Math.PI));
if (_local19 < 0){
_local19 = (_local19 + 360);
};
if (_local19 > 360){
_local19 = (_local19 - 360);
};
_local20 = 0;
if (_local19 < 180){
_local20 = Math.round(_local19);
[( .length - 1)].GFXscale = -1;
} else {
_local20 = Math.round((180 - (_local19 - 180)));
[( .length - 1)].GFXscale = 1;
};
if (_local20 <= 0){
_local20 = 1;
};
[( .length - 1)].GFXframe = _local20;
_local26 =
.getPos(
, _local20);
if (_local19 < 180){
_local26.x = (_local26.x * -1);
};
= new Point((
[ ].localToGlobal(_local26).x - x), (
[ ].localToGlobal(_local26).y - y));
[( .length - 1)].x =
.x;
[( .length - 1)].y =
.y;
[( .length - 1)].momX = _local24;
[( .length - 1)].momY = _local25;
[( .length - 1)].AImomX = [( .length - 1)].momX;
[( .length - 1)].AImomY = [( .length - 1)].momY;
[( .length - 1)].AIposX = [( .length - 1)].x;
[( .length - 1)].AIposY = [( .length - 1)].y;
_local23++;
};
} else {
if ( .length > 0){
.graphics.lineStyle(1, 0xFF0000, 1);
_local27 = 0;
_local28 = getTimer();
_local29 = false;
while ((((_local27 < 150)) && (( .length > 0)))) {
[0].doGravity();
[0].moveProjectile(, , , );
_local30 = 0;
while (_local30 < .length) {
if ([(_local30 + 1)]){
_local31 = new Point([_local30].x, [_local30].y);
_local32 = new Point([(_local30 + 1)].x, [(_local30 + 1)].y);
_local33 = new Point( [0].x, [0].y);
_local34 = new Point( [0].oldX, [0].oldY);
_local35 = lineIntersectLine(_local31, _local32, _local33, _local34, true);
if (((((!( [0].removeMe)) && (_local35))) && (( [0].shieldDelay <= 0)))){
_local36 = _local35.x;
_local37 = _local35.y;
_local38 = new Point( [0].momX, [0].momY);
_local39 = new Point(_local31.x, _local31.y);
_local40 = new Point(_local32.x, _local32.y);
_local41 = new Point(_local33.x, _local33.y);
_local42 = new Point(_local34.x, _local34.y);
_local43 = (_local39, _local40, _local41, _local42, _local38, 1);
[0].reflected = true;
[0].shieldDelay = 2;
[0].x = _local36;
[0].y = _local37;
[0].momX = _local43[1].x;
[0].momY = _local43[1].y;
};
};
_local30 = (_local30 + 2);
};
_local29 = ( [0]);
if (_local29){
if (_local29[0] == "unit"){
if (
[_local29[1]].team == 0){
.push(new AIHit( [0].GFXframe, [0].GFXscale, [0].AImomX, [0].AImomY, [0].AIposX, [0].AIposY, _local29[1], [0].multi));
};
};
.removeChild( [0]);
.splice(0, 1);
} else {
if ( [0].distance >= (((
[ ].accuracy - 5) * 6) + 600)){
.removeChild( [0]);
.splice(0, 1);
};
};
_local27++;
};
} else {
_local44 = new Array();
if (
.length > 0){
_local45 = 0;
while (_local45 <
.length) {
if (
[
[_local45].unitHit].health < (25 *
[_local45].multi)){
_local44.push(_local45);
[_local45].wepToKill = 1;
} else {
if (((( [1] > 0)) && ((
[
[_local45].unitHit].health < (40 *
[_local45].multi))))){
_local44.push(_local45);
[_local45].wepToKill = 2;
} else {
if (((( [8] > 0)) && ((
[
[_local45].unitHit].health < (75 *
[_local45].multi))))){
_local44.push(_local45);
[_local45].wepToKill = 7;
};
};
};
_local45++;
};
if (_local44.length > 0){
= _local44[Math.floor((Math.random() * _local44.length))];
=
[].wepToKill;
} else {
= Math.floor((Math.random() *
.length));
= 1;
};
[ ].changeAnim(("aiming" +
));
[ ].scaleX =
[].GFXscale;
= "findretreat";
} else {
= "findchangepos";
};
};
};
} else {
[ ].changeAnim(("aiming" +
));
= "findretreat";
};
} else {
if (
== "findchangepos"){
_local46 = false;
_local47 = 0;
= -1;
_local48 =
[ ].positionElement;
_local49 = ((Math.floor((Math.random() * 2)) * 2) - 1);
while ((((((
== "findchangepos")) && ((_local47 < ([
[ ].positionPlanet].shapeArray[
[ ].positionShape].length / 3))))) && (!(_local46)))) {
_local47++;
_local49 = (_local49 * -1);
_local48 = ((_local48 + ((3 * _local47) * _local49)) % [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
if (_local48 < 0){
_local48 = (_local48 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
if (!
( ,
[ ].positionPlanet,
[ ].positionShape, _local48, "change")){
++;
if (
> 3){
[7] = 1;
if ( [7] > 0){
= "teleport";
do {
_local50 = Math.floor((Math.random() * .length));
} while ((((_local50 ==
[ ].positionPlanet)) || ([_local50].isSun)));
[ ].healthDisplay.hideHealth();
[ ].positionPlanetTeleTo = _local50;
[ ].positionShapeTeleTo = Math.floor((Math.random() * [_local50].shapeArray.length));
[ ].positionElementTeleTo = Math.floor((Math.random() * [_local50].shapeArray[
[ ].positionShapeTeleTo].length));
[ ].positionElementXTeleTo = [_local50].shapeArray[
[ ].positionShapeTeleTo][
[ ].positionElementTeleTo].x;
[ ].positionElementYTeleTo = [_local50].shapeArray[
[ ].positionShapeTeleTo][
[ ].positionElementTeleTo].y;
[ ].changeAnim("teleportout");
gameTimer.hideIt();
gameTimer.resetRetreatTimer();
= "sim";
var _local62 = ;
var _local63 = 7;
var _local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
};
} else {
= _local48;
_local46 = true;
_local7 = _local48;
_local8 =
[ ].positionElement;
_local9 = (_local7 - _local8);
_local10 = (_local8 - _local7);
while (_local9 < 0) {
_local9 = (_local9 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
while (_local10 < 0) {
_local10 = (_local10 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
if (_local9 > _local10){
= 1;
} else {
= 0;
};
};
};
};
if ( == -1){
++;
if (
>= 3){
if ( [7] > 0){
do {
_local50 = Math.floor((Math.random() * .length));
} while ((((_local50 ==
[ ].positionPlanet)) || ([_local50].isSun)));
[ ].healthDisplay.hideHealth();
[ ].positionPlanetTeleTo = _local50;
[ ].positionShapeTeleTo = Math.floor((Math.random() * [_local50].shapeArray.length));
[ ].positionElementTeleTo = Math.floor((Math.random() * [_local50].shapeArray[
[ ].positionShapeTeleTo].length));
[ ].positionElementXTeleTo = [_local50].shapeArray[
[ ].positionShapeTeleTo][
[ ].positionElementTeleTo].x;
[ ].positionElementYTeleTo = [_local50].shapeArray[
[ ].positionShapeTeleTo][
[ ].positionElementTeleTo].y;
[ ].changeAnim("teleportout");
_local62 = ;
_local63 = 7;
_local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
};
} else {
++;
= (Math.random() * [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
= "changepos";
};
} else {
= "changepos";
};
} else {
if (
== "changepos"){
if (((!(( == -1))) && (!(( ==
[ ].positionElement))))){
[ ].isWalking = true;
if ( == 0){
( , 3);
} else {
( , 3);
};
} else {
= "find";
= 0;
};
} else {
if (
== "shootSnipe"){
_local51 = (
[ ].x + (16 * Math.sin(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local52 = (
[ ].y + (16 * Math.cos(((180 -
[ ].rotation) * (Math.PI / 180)))));
_local53 = (
[].x + (16 * Math.sin(((180 -
[].rotation) * (Math.PI / 180)))));
_local54 = (
[].y + (16 * Math.cos(((180 -
[].rotation) * (Math.PI / 180)))));
_local55 = ((_local53 - _local51) / 10);
_local56 = ((_local54 - _local52) / 10);
_local57 = Math.sqrt(((_local55 * _local55) + (_local56 * _local56)));
_local58 = (10 / _local57);
_local55 = (_local55 * _local58);
_local56 = (_local56 * _local58);
(_local51, _local52, _local55, _local56, 0, "bullet", null);
.graphics.lineStyle(1, 0xFFFFFF, 1);
= 2;
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_sniper.gotoAndPlay(2);
};
do {
.graphics.moveTo(
[(
.length - 1)].x,
[(
.length - 1)].y);
[(
.length - 1)].doGravity();
[(
.length - 1)].moveProjectile(, , , );
.graphics.lineTo(
[(
.length - 1)].x,
[(
.length - 1)].y);
_local30 = 0;
while (_local30 < .length) {
if ([(_local30 + 1)]){
_local31 = new Point([_local30].x, [_local30].y);
_local32 = new Point([(_local30 + 1)].x, [(_local30 + 1)].y);
_local33 = new Point(
[(
.length - 1)].x,
[(
.length - 1)].y);
_local34 = new Point(
[(
.length - 1)].oldX,
[(
.length - 1)].oldY);
_local35 = lineIntersectLine(_local31, _local32, _local33, _local34, true);
if (((((!(
[(
.length - 1)].removeMe)) && (_local35))) && ((
[(
.length - 1)].shieldDelay <= 0)))){
_local36 = _local35.x;
_local37 = _local35.y;
_local38 = new Point(
[(
.length - 1)].momX,
[(
.length - 1)].momY);
_local39 = new Point(_local31.x, _local31.y);
_local40 = new Point(_local32.x, _local32.y);
_local41 = new Point(_local33.x, _local33.y);
_local42 = new Point(_local34.x, _local34.y);
_local43 = (_local39, _local40, _local41, _local42, _local38, 1);
[(
.length - 1)].reflected = true;
[(
.length - 1)].shieldDelay = 2;
[(
.length - 1)].x = _local36;
[(
.length - 1)].y = _local37;
[(
.length - 1)].momX = _local43[1].x;
[(
.length - 1)].momY = _local43[1].y;
};
};
_local30 = (_local30 + 2);
};
_local29 = (
[(
.length - 1)]);
if (_local29){
[(
.length - 1)].removeMe = true;
if (_local29[0] == "unit"){
[_local29[1]].changeAnim("falldown");
if ((((
[_local29[1]].killReg == -1)) && ((
[_local29[1]].health <= (
[].maxDamage *
[].multi))))){
[_local29[1]].killReg = 4;
};
[_local29[1]].damageTaken = (
[_local29[1]].damageTaken + (
[].maxDamage *
[].multi));
if (((!((
[_local29[1]].team == 0))) && (myTeamsTurn))){
= ( + (
[].maxDamage *
[].multi));
};
};
};
} while (!(
[(
.length - 1)].removeMe));
_local62 = ;
_local63 = 2;
_local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
gameTimer.hideIt();
gameTimer.resetRetreatTimer();
= "sim";
.hideMe();
();
= "retreat";
} else {
if (
== "shoot"){
_local59 = ((105 -
[ ].accuracy) / 30);
_local60 = ((_local59 * Math.random()) - (_local59 / 2));
_local61 = ((_local59 * Math.random()) - (_local59 / 2));
(
[].posX,
[].posY, (
[].momX + _local60), (
[].momY + _local61), 0, "bullet", null);
gameTimer.hideIt();
gameTimer.resetRetreatTimer();
= "sim";
.hideMe();
();
= "retreat";
if (
== 2){
_local62 = ;
_local63 = 1;
_local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
} else {
if (
== 6){
_local62 = ;
_local63 = 3;
_local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
} else {
if (
== 5){
_local62 = ;
_local63 = 6;
_local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
} else {
if (
== 7){
_local62 = ;
_local63 = 8;
_local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
};
};
};
};
if ((((
== 1)) || ((
== 2)))){
if (MovieClip(root).sfx){
MovieClip(root).soundmanager.sound_rocketshoot.gotoAndPlay(2);
};
};
} else {
if (
== "findretreat"){
if ( > -1){
[ ].graphic.gotoAndStop();
} else {
if ( > -1){
} else {
[ ].scaleX =
[].GFXscale;
[ ].graphic.gotoAndStop(
[].GFXframe);
};
};
_local46 = false;
_local47 = 0;
= -1;
_local48 =
[ ].positionElement;
_local49 = ((Math.floor((Math.random() * 2)) * 2) - 1);
if (!
( , null, null, null, "retreat")){
while ((((_local47 < ([
[ ].positionPlanet].shapeArray[
[ ].positionShape].length / 3))) && (!(_local46)))) {
_local47++;
_local49 = (_local49 * -1);
_local48 = ((_local48 + ((3 * _local47) * _local49)) % [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
if (_local48 < 0){
_local48 = (_local48 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
if (
( ,
[ ].positionPlanet,
[ ].positionShape, _local48, "retreat")){
= _local48;
_local46 = true;
_local7 = _local48;
_local8 =
[ ].positionElement;
_local9 = (_local7 - _local8);
_local10 = (_local8 - _local7);
while (_local9 < 0) {
_local9 = (_local9 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
while (_local10 < 0) {
_local10 = (_local10 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
if (_local9 > _local10){
= 1;
} else {
= 0;
};
};
};
if ( > -1){
= "shootSnipe";
} else {
if ( > -1){
=
[].positionElement;
_local46 = true;
_local7 = ;
_local8 =
[ ].positionElement;
_local9 = (_local7 - _local8);
_local10 = (_local8 - _local7);
while (_local9 < 0) {
_local9 = (_local9 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
while (_local10 < 0) {
_local10 = (_local10 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
if (_local9 > _local10){
= 1;
} else {
= 0;
};
= "walkMine";
} else {
= "shoot";
};
};
} else {
if ( > -1){
= "shootSnipe";
} else {
if ( > -1){
=
[].positionElement;
_local46 = true;
= 0;
_local7 = ;
_local8 =
[ ].positionElement;
_local9 = (_local7 - _local8);
_local10 = (_local8 - _local7);
while (_local9 < 0) {
_local9 = (_local9 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
while (_local10 < 0) {
_local10 = (_local10 + [
[ ].positionPlanet].shapeArray[
[ ].positionShape].length);
};
if (_local9 > _local10){
= 1;
} else {
= 0;
};
= "walkMine";
} else {
= "shoot";
};
};
};
} else {
if (
== "retreat"){
if (MovieClip(root).levelSetup.levelID < 5){
= -1;
};
if (((!(( == -1))) && (!(( ==
[ ].positionElement))))){
[ ].isWalking = true;
if ( == 0){
( , 3);
} else {
( , 3);
};
} else {
if (((( == -1)) && ((
== 8)))){
[ ].isWalking = true;
if ( == 0){
( , 3);
} else {
( , 3);
};
} else {
[ ].isWalking = false;
};
};
} else {
if (
== "walkMine"){
if (((!(( == -1))) && (!(( ==
[ ].positionElement))))){
[ ].isWalking = true;
if ( == 0){
( , 3);
} else {
( , 3);
};
} else {
[ ].isWalking = false;
[ ].changeAnim("aiming8");
= "placeMine";
};
} else {
if (
== "placeMine"){
.push(new Mine());
.addChild([(.length - 1)]);
[(.length - 1)].x =
[ ].x;
[(.length - 1)].y =
[ ].y;
[(.length - 1)].positionPlanet =
[ ].positionPlanet;
[(.length - 1)].positionShape =
[ ].positionShape;
[(.length - 1)].positionElement =
[ ].positionElement;
[(.length - 1)].positionElementX =
[ ].positionElementX;
[(.length - 1)].positionElementY =
[ ].positionElementY;
[(.length - 1)].rotation =
[ ].rotation;
_local62 = ;
_local63 = 4;
_local64 = (_local62[_local63] - 1);
_local62[_local63] = _local64;
gameTimer.hideIt();
gameTimer.resetRetreatTimer();
= "sim";
.hideMe();
();
= "retreat";
};
};
};
};
};
};
};
};
};
};
};
}
}
}//package com.funkypear.game
Section 12
//HealthDisplay (com.funkypear.game.HealthDisplay)
package com.funkypear.game {
import flash.display.*;
import flash.text.*;
public class HealthDisplay extends Sprite {
public var unitname:TextField;
private var shown:Boolean;// = true
public var num:TextField;
private var
:Array;
public function HealthDisplay(){
= [0xFF0000, 39423, 0x99CC00, 0xFFCC00];
shown = true;
super();
}
public function hideHealth(){
if (shown){
num.alpha = 0;
shown = false;
};
}
public function updateDisplay(_arg1, _arg2){
num.text = _arg1.toString();
num.textColor =
[_arg2];
}
public function showHealth(){
if (!shown){
num.alpha = 1;
shown = true;
};
}
}
}//package com.funkypear.game
Section 13
//HealthFloat (com.funkypear.game.HealthFloat)
package com.funkypear.game {
import flash.display.*;
import flash.events.*;
public class HealthFloat extends MovieClip {
public var removeMe:Boolean;// = false
public var float:MovieClip;
public var :int;// = 0
private var
:Array;
public function HealthFloat(){
removeMe = false;
= [0xFF0000, 39423, 0x99CC00, 0xFFCC00];
= 0;
super();
addEventListener(Event.ENTER_FRAME, mainLoop);
}
public function updateDisplay(_arg1, _arg2, _arg3){
if (_arg3){
float.num.text = ("+" + _arg1.toString());
} else {
float.num.text = _arg1.toString();
};
float.num.textColor =
[_arg2];
}
public function mainLoop(_arg1:Event){
if (currentFrame == totalFrames){
MovieClip(parent.parent).removeHealthFloat(this);
removeEventListener(Event.ENTER_FRAME, mainLoop);
};
}
}
}//package com.funkypear.game
Section 14
//LevelSetup (com.funkypear.game.LevelSetup)
package com.funkypear.game {
public class LevelSetup {
public var enemyWeps:Array;
public var setupMines:Array;
public var AISkill:Array;
public var teamNames:Array;
public var setupShields:Array;
public var levelID:int;
public var setupUnits:Array;
public var teamHealths:Array;
public var setupPlanets:Array;
public var criteria:Array;
}
}//package com.funkypear.game
Section 15
//Message (com.funkypear.game.Message)
package com.funkypear.game {
import flash.display.*;
public class Message extends MovieClip {
public var message:MovieClip;
public var messageQueue:Array;
private var
:Array;
public function Message(){
= [0xFF0000, 39423, 0x99CC00, 0xFFCC00];
messageQueue = new Array();
super();
addFrameScript(0, frame1);
}
public function addMessage(_arg1, _arg2){
messageQueue.push(new Array(_arg1, _arg2));
}
function frame1(){
stop();
}
public function mainLoop(){
if ((((messageQueue.length > 0)) && ((((currentFrame >= (totalFrames - 1))) || ((currentFrame == 1)))))){
gotoAndPlay(2);
message.message.text = messageQueue[0][0];
message.message.textColor =
[messageQueue[0][1]];
messageQueue.splice(0, 1);
};
}
}
}//package com.funkypear.game
Section 16
//Mine (com.funkypear.game.Mine)
package com.funkypear.game {
import flash.display.*;
public class Mine extends MovieClip {
public var shake:int;// = 3
public var maxDamage:int;// = 25
public var positionElementX:Number;// = 0
public var positionPlanet:int;// = 0
public var positionElementY:Number;// = 0
public var removeMe:Boolean;// = false
public var positionPlace:Number;// = 0
public var timeTilBoom:int;// = 60
public var positionElement:int;// = 0
public var expSize:int;// = 80
public var activated:Boolean;// = false
public var timeTilPrimed:int;// = 60
public var positionShape:int;// = 0
public function Mine(){
positionPlanet = 0;
positionShape = 0;
positionElement = 0;
positionElementX = 0;
positionElementY = 0;
positionPlace = 0;
timeTilPrimed = 60;
timeTilBoom = 60;
shake = 3;
expSize = 80;
maxDamage = 25;
activated = false;
removeMe = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
function frame5(){
stop();
}
}
}//package com.funkypear.game
Section 17
//MineProjectile (com.funkypear.game.MineProjectile)
package com.funkypear.game {
public class MineProjectile extends Projectile {
public var shake:int;// = 5
public var lastIntSectionElement:int;// = -1
public var lastIntSectionPlanet:int;// = -1
public var maxDamage:int;// = 25
public var timeTilBoom:int;// = 60
public var expSize:int;// = 80
public var stopMovement:Boolean;// = false
public var intDelay:int;// = 0
public var lastIntSectionShape:int;// = -1
public var activated:Boolean;// = false
public var timeTilPrimed:int;// = 60
public function MineProjectile(){
stopMovement = false;
expSize = 80;
shake = 5;
maxDamage = 25;
lastIntSectionPlanet = -1;
lastIntSectionShape = -1;
lastIntSectionElement = -1;
intDelay = 0;
timeTilPrimed = 60;
timeTilBoom = 60;
activated = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
hasSmoke = false;
}
function frame1(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package com.funkypear.game
Section 18
//MochiBot (com.funkypear.game.MochiBot)
package com.funkypear.game {
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 com.funkypear.game
Section 19
//MultiDisplayX2 (com.funkypear.game.MultiDisplayX2)
package com.funkypear.game {
public class MultiDisplayX2 extends Explosion {
}
}//package com.funkypear.game
Section 20
//MultiDisplayX3 (com.funkypear.game.MultiDisplayX3)
package com.funkypear.game {
public class MultiDisplayX3 extends Explosion {
}
}//package com.funkypear.game
Section 21
//MultiDisplayX4 (com.funkypear.game.MultiDisplayX4)
package com.funkypear.game {
public class MultiDisplayX4 extends Explosion {
}
}//package com.funkypear.game
Section 22
//MusicMute (com.funkypear.game.MusicMute)
package com.funkypear.game {
import flash.display.*;
import flash.events.*;
public class MusicMute extends MovieClip {
public var bon:SimpleButton;
public var boff:SimpleButton;
public function MusicMute(){
addFrameScript(0, frame1, 1, frame2);
}
public function mute(_arg1:MouseEvent){
gotoAndStop(2);
MovieClip(root).soundmanager.turnOffMusic();
MovieClip(root).music = false;
MovieClip(root).saveData();
}
public function unmute(_arg1:MouseEvent){
gotoAndStop(1);
MovieClip(root).soundmanager.turnOnMusic();
MovieClip(root).music = true;
MovieClip(root).saveData();
}
function frame1(){
stop();
if (!bon.hasEventListener(MouseEvent.MOUSE_DOWN)){
bon.addEventListener(MouseEvent.MOUSE_DOWN, mute);
};
}
function frame2(){
stop();
if (!boff.hasEventListener(MouseEvent.MOUSE_DOWN)){
boff.addEventListener(MouseEvent.MOUSE_DOWN, unmute);
};
}
}
}//package com.funkypear.game
Section 23
//Particle (com.funkypear.game.Particle)
package com.funkypear.game {
public class Particle {
public var maxLife:int;
public var posX:Number;
public var posY:Number;
public var type:int;
public var momX:Number;
public var momY:Number;
public var life:int;// = 0
public function Particle(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
life = 0;
super();
posX = _arg1;
posY = _arg2;
momX = _arg3;
momY = _arg4;
type = _arg5;
maxLife = _arg6;
}
public function moveMe(){
posX = (posX + momX);
posY = (posY + momY);
life++;
}
}
}//package com.funkypear.game
Section 24
//PausePanel (com.funkypear.game.PausePanel)
package com.funkypear.game {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class PausePanel extends MovieClip {
public var restartbutton:SimpleButton;
public var quitbutton:SimpleButton;
public var continuebutton:SimpleButton;
public function PausePanel(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
continuebutton.addEventListener(MouseEvent.MOUSE_UP, MovieClip(root).game.doUnpause);
restartbutton.addEventListener(MouseEvent.MOUSE_UP, MovieClip(root).game.doRestart);
quitbutton.addEventListener(MouseEvent.MOUSE_UP, MovieClip(root).game.doQuit);
}
}
}//package com.funkypear.game
Section 25
//Pickup (com.funkypear.game.Pickup)
package com.funkypear.game {
import flash.display.*;
public class Pickup extends MovieClip {
public var expired:Boolean;// = false
public var positionElementX:Number;// = 0
public var positionPlanet:int;// = 0
public var positionElementY:Number;// = 0
public var removeMe:Boolean;// = false
public var timeSince:int;// = 0
public var positionElement:int;// = 0
public var positionShape:int;// = 0
public function Pickup(){
removeMe = false;
timeSince = 0;
positionPlanet = 0;
positionShape = 0;
expired = false;
positionElement = 0;
positionElementX = 0;
positionElementY = 0;
super();
}
}
}//package com.funkypear.game
Section 26
//PickupHealth (com.funkypear.game.PickupHealth)
package com.funkypear.game {
public class PickupHealth extends Pickup {
public function PickupHealth(){
addFrameScript(28, frame29, 36, frame37);
}
function frame29(){
gotoAndPlay(9);
}
function frame37(){
stop();
removeMe = true;
}
}
}//package com.funkypear.game
Section 27
//PickupWeapon (com.funkypear.game.PickupWeapon)
package com.funkypear.game {
public class PickupWeapon extends Pickup {
public function PickupWeapon(){
addFrameScript(28, frame29, 37, frame38);
}
function frame29(){
gotoAndPlay(9);
}
function frame38(){
stop();
removeMe = true;
}
}
}//package com.funkypear.game
Section 28
//PixelPerfectCollisionDetection (com.funkypear.game.PixelPerfectCollisionDetection)
package com.funkypear.game {
import flash.geom.*;
import flash.display.*;
public class PixelPerfectCollisionDetection {
public static function getCollisionRect(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Rectangle{
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Rectangle;
var _local9:BitmapData;
var _local10:BitmapData;
var _local11:uint;
var _local12:Rectangle;
var _local13:int;
_local6 = _arg1.getBounds(_arg3);
_local7 = _arg2.getBounds(_arg3);
_local8 = _local6.intersection(_local7);
if (_local8.size.length > 0){
if (_arg4){
_local8.width = Math.ceil(_local8.width);
_local8.height = Math.ceil(_local8.height);
_local9 = getAlphaMap(_arg1, _local8, BitmapDataChannel.RED, _arg3);
_local10 = getAlphaMap(_arg2, _local8, BitmapDataChannel.GREEN, _arg3);
_local9.draw(_local10, null, null, BlendMode.LIGHTEN);
if (_arg5 <= 0){
_local11 = 65792;
} else {
if (_arg5 > 1){
_arg5 = 1;
};
_local13 = Math.round((_arg5 * 0xFF));
_local11 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local12 = _local9.getColorBoundsRect(_local11, _local11);
_local9.getColorBoundsRect(_local11, _local11).x = (_local12.x + _local8.x);
_local12.y = (_local12.y + _local8.y);
return (_local12);
} else {
return (_local8);
};
//unresolved jump
};
return (null);
}
public static function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0){
var _local6:*;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
return (_local6);
};
return (false);
}
public static function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Point{
var _local6:Rectangle;
var _local7:Number;
var _local8:Number;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
_local7 = ((_local6.left + _local6.right) / 2);
_local8 = ((_local6.top + _local6.bottom) / 2);
return (new Point(_local7, _local8));
};
return (null);
}
private static function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:DisplayObjectContainer):BitmapData{
var _local5:Matrix;
var _local6:Matrix;
var _local7:BitmapData;
var _local8:BitmapData;
_local5 = _arg4.transform.concatenatedMatrix.clone();
_local5.invert();
_local6 = _arg1.transform.concatenatedMatrix.clone();
_local6.concat(_local5);
_local6.translate(-(_arg2.x), -(_arg2.y));
_local7 = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local7.draw(_arg1, _local6);
_local8 = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local8.copyChannel(_local7, _local7.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local8);
}
}
}//package com.funkypear.game
Section 29
//Planet (com.funkypear.game.Planet)
package com.funkypear.game {
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
public class Planet extends MovieClip {
public var
:TempCOM;
public var :COM;
public var :Array;
public var :Number;
public var mass:int;// = 100
public var shapeArray:Array;
public var GFXID:int;// = 1
public var
:Bitmap;
public var
:Number;// = 0
public var
;// = 60
public var classicGFX:Boolean;// = false
public var
;// = 30
public var
:Number;// = 0
public var BMData:BitmapData;
public var
:Number;
public var
:int;// = 100
public var :MovieClip;
public var :int;// = 100
public var diameter:int;// = 100
public var centerY:int;// = 0
public var centerX:int;// = 0
public var debugLayer:MovieClip;
public var :PlanetGFX;
public var isSun:Boolean;// = false
public var shape2:MovieClip;
public var
:int;// = 100
public var :Array;
public function Planet(){
centerX = 0;
centerY = 0;
mass = 100;
= 100;
= 0;
= 0;
= 100;
= new Array();
= 100;
debugLayer = new MovieClip();
diameter = 100;
GFXID = 1;
classicGFX = false;
= new COM();
= new TempCOM();
isSun = false;
= new PlanetGFX();
shapeArray = new Array(new Array());
= new MovieClip();
shape2 = new MovieClip();
= 30;
= 60;
= (360 /
);
= (360 /
);
super();
x = 200;
y = 200;
}
public function
(_arg1, _arg2){
var _local3:*;
var _local4:Array;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Boolean;
var _local9:Array;
var _local10:Array;
var _local11:*;
var _local12:Point;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:Point;
var _local18:Point;
var _local19:Point;
var _local20:Point;
var _local21:int;
var _local22:int;
var _local23:int;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:*;
var _local28:*;
var _local29:*;
var _local30:*;
var _local31:*;
var _local32:*;
var _local33:int;
var _local34:int;
var _local35:int;
var _local36:int;
var _local37:int;
var _local38:*;
var _local39:*;
var _local40:*;
var _local41:*;
var _local42:Rectangle;
var _local43:Rectangle;
var _local44:*;
var _local45:*;
var _local46:int;
var _local47:int;
var _local48:MovieClip;
var _local49:int;
var _local50:*;
var _local51:*;
var _local52:*;
var _local53:*;
var _local54:Point;
var _local55:Point;
var _local56:Point;
var _local57:Point;
var _local58:Boolean;
var _local59:Boolean;
var _local60:*;
var _local61:*;
var _local62:*;
var _local63:*;
var _local64:*;
var _local65:*;
var _local66:*;
var _local67:int;
var _local68:int;
var _local69:*;
var _local70:*;
var _local71:*;
_local3 = 1;
_local4 = new Array();
do {
_local27 = false;
_local26 = 0;
while (_local26 < _arg1.length) {
_local28 = 0;
while (_local28 < _arg1[_local26].length) {
_local29 = 0;
while (_local29 < _arg2[0].length) {
if ((((_arg1[_local26][_local28].x == _arg2[0][_local29].x)) && ((_arg1[_local26][_local28].y == _arg2[0][_local29].y)))){
_local27 = true;
};
_local29++;
};
_local28++;
};
_local26++;
};
if (_local27){
_local30 = ((Math.random() * 2) - 1);
_local31 = ((Math.random() * 2) - 1);
_local29 = 0;
while (_local29 < _arg2[0].length) {
_arg2[0][_local29].x = (_arg2[0][_local29].x + _local30);
_arg2[0][_local29].y = (_arg2[0][_local29].y + _local31);
_local29++;
};
};
} while (_local27);
_local5 = 0;
_local6 = 0;
_local7 = 0;
_local8 = true;
_local9 = new Array();
_local10 = new Array();
_local15 = 0;
_local16 = 0;
_local26 = 0;
while (_local26 < _arg1.length) {
_local23 = _arg2[0].length;
_local24 = _arg1[_local26].length;
_local32 = 0;
while (_local32 < _local24) {
_local34 = 50000;
_local35 = -50000;
_local36 = 50000;
_local37 = -50000;
_local21 = 0;
while (_local21 < _local23) {
if (_arg2[0][_local21].x > _local35){
_local35 = _arg2[0][_local21].x;
};
if (_arg2[0][_local21].x < _local34){
_local34 = _arg2[0][_local21].x;
};
if (_arg2[0][_local21].y > _local37){
_local37 = _arg2[0][_local21].y;
};
if (_arg2[0][_local21].y < _local36){
_local36 = _arg2[0][_local21].y;
};
_local21++;
};
if ((_arg1[_local26][((_local32 + 1) % _local24)].x - _arg1[_local26][_local32].x) > 0){
_local39 = _arg1[_local26][_local32].x;
_local38 = _arg1[_local26][((_local32 + 1) % _local24)].x;
} else {
_local38 = _arg1[_local26][_local32].x;
_local39 = _arg1[_local26][((_local32 + 1) % _local24)].x;
};
if ((_arg1[_local26][((_local32 + 1) % _local24)].y - _arg1[_local26][_local32].y) > 0){
_local40 = _arg1[_local26][_local32].y;
_local41 = _arg1[_local26][((_local32 + 1) % _local24)].y;
} else {
_local41 = _arg1[_local26][_local32].y;
_local40 = _arg1[_local26][((_local32 + 1) % _local24)].y;
};
_local42 = new Rectangle((_local39 - 1), (_local40 - 1), ((_local38 - _local39) + 2), ((_local41 - _local40) + 2));
_local43 = new Rectangle((_local34 - 1), (_local36 - 1), ((_local35 - _local34) + 2), ((_local37 - _local36) + 2));
_local44 = _local42.intersection(_local43);
if ((((_local44.width > 0)) && ((_local44.height > 0)))){
_local45 = 0;
while (_local45 < _local23) {
_local17 = new Point(_arg1[_local26][_local32].x, _arg1[_local26][_local32].y);
_local18 = new Point(_arg1[_local26][((_local32 + 1) % _local24)].x, _arg1[_local26][((_local32 + 1) % _local24)].y);
_local19 = new Point(_arg2[0][_local45].x, _arg2[0][_local45].y);
_local20 = new Point(_arg2[0][((_local45 + 1) % _local23)].x, _arg2[0][((_local45 + 1) % _local23)].y);
_local11 = lineIntersectLine(_local17, _local18, _local19, _local20, true);
if (_local11){
if ((((((_local9.length > 0)) && ((_local9[(_local9.length - 1)].x == _local11.x)))) && ((_local9[(_local9.length - 1)].y == _local11.y)))){
_local9.splice((_local9.length - 1), 1);
_local10.splice((_local10.length - 1), 1);
} else {
if (_local9.length > 0){
};
_local9.push(_local11);
_local10.push(_local32);
};
};
_local45++;
};
};
_local32++;
};
if (_local9.length == 0){
_local46 = _arg1[_local26].length;
_local47 = 0;
_local48 = new MovieClip();
_local48.graphics.lineStyle(1, 0, 0);
_local48.graphics.beginFill(0, 0);
_local48.graphics.moveTo(_arg2[0][0].x, _arg2[0][0].y);
_local45 = 1;
while (_local45 < _arg2[0].length) {
_local48.graphics.lineTo(_arg2[0][_local45].x, _arg2[0][_local45].y);
_local45++;
};
_local48.graphics.endFill();
addChild(_local48);
_local48.x = .x;
_local48.y = .y;
_local32 = 0;
while (_local32 < _local46) {
if (_local48.hitTestPoint(((_arg1[_local26][_local32].x + x) + MovieClip(parent.parent).x), ((_arg1[_local26][_local32].y + y) + MovieClip(parent.parent).y), true)){
_local47++;
};
_local32++;
};
removeChild(_local48);
if (_local46 != _local47){
_local4.push(new Array());
_local32 = 0;
while (_local32 < _arg1[_local26].length) {
_local4[(_local4.length - 1)].push(new Point(_arg1[_local26][_local32].x, _arg1[_local26][_local32].y));
_local32++;
};
};
};
_local33 = -1;
for (;_local9.length > 0;(_local7 = _local49), (_local58 = false), while (!(_local58)) {
_local15 = 0;
_local59 = false;
_local16++;
if (_local8){
_local23 = _arg2[0].length;
_local24 = _arg1[_local26].length;
_local34 = 50000;
_local35 = -50000;
_local36 = 50000;
_local37 = -50000;
_local21 = 0;
while (_local21 < _local23) {
if (_arg2[0][_local21].x > _local35){
_local35 = _arg2[0][_local21].x;
};
if (_arg2[0][_local21].x < _local34){
_local34 = _arg2[0][_local21].x;
};
if (_arg2[0][_local21].y > _local37){
_local37 = _arg2[0][_local21].y;
};
if (_arg2[0][_local21].y < _local36){
_local36 = _arg2[0][_local21].y;
};
_local21++;
};
if ((_arg1[_local26][((_local7 + 1) % _local24)].x - _arg1[_local26][_local7].x) > 0){
_local39 = _arg1[_local26][_local7].x;
_local38 = _arg1[_local26][((_local7 + 1) % _local24)].x;
} else {
_local38 = _arg1[_local26][_local7].x;
_local39 = _arg1[_local26][((_local7 + 1) % _local24)].x;
};
if ((_arg1[_local26][((_local7 + 1) % _local24)].y - _arg1[_local26][_local7].y) > 0){
_local40 = _arg1[_local26][_local7].y;
_local41 = _arg1[_local26][((_local7 + 1) % _local24)].y;
} else {
_local41 = _arg1[_local26][_local7].y;
_local40 = _arg1[_local26][((_local7 + 1) % _local24)].y;
};
_local42 = new Rectangle((_local39 - 1), (_local40 - 1), ((_local38 - _local39) + 2), ((_local41 - _local40) + 2));
_local43 = new Rectangle((_local34 - 1), (_local36 - 1), ((_local35 - _local34) + 2), ((_local37 - _local36) + 2));
_local44 = _local42.intersection(_local43);
_local62 = -1;
_local63 = 1E22;
_local12 = null;
if ((((_local44.width > 0)) && ((_local44.height > 0)))){
_local21 = 0;
while (_local21 < _local23) {
_local17 = new Point(_arg1[_local26][_local7].x, _arg1[_local26][_local7].y);
_local18 = new Point(_arg1[_local26][((_local7 + 1) % _local24)].x, _arg1[_local26][((_local7 + 1) % _local24)].y);
_local19 = new Point(_arg2[0][_local21].x, _arg2[0][_local21].y);
_local20 = new Point(_arg2[0][((_local21 + 1) % _local23)].x, _arg2[0][((_local21 + 1) % _local23)].y);
_local11 = lineIntersectLine(_local17, _local18, _local19, _local20, true);
if (_local11){
_local64 = (_arg1[_local26][_local7].x - _local11.x);
_local65 = (_arg1[_local26][_local7].y - _local11.y);
_local66 = ((_local64 * _local64) + (_local65 * _local65));
};
if (((_local11) && ((_local66 < _local63)))){
_local63 = _local66;
_local15++;
_local12 = _local11;
_local62 = _local21;
};
_local21++;
};
};
if (_local12){
_local67 = (_local9.length - 1);
while (_local67 >= 0) {
if (_local33 == 0){
};
if ((((_local9[_local67].x == _local12.x)) && ((_local9[_local67].y == _local12.y)))){
_local9.splice(_local67, 1);
_local10.splice(_local67, 1);
};
_local67--;
};
_local25 = _local62;
};
if (_local15 == 0){
_local4[_local33].push(_arg1[_local26][_local7]);
if ((((_local4[_local33].length < _local3)) && ((_local4[_local33].length > 1)))){
debugLayer.graphics.lineStyle(2, 0xFF0000, (0.05 * ((_local4[_local33].length % 10) + 3)));
debugLayer.graphics.moveTo(_local4[_local33][(_local4[_local33].length - 1)].x, _local4[_local33][(_local4[_local33].length - 1)].y);
debugLayer.graphics.lineTo(_local4[_local33][(_local4[_local33].length - 2)].x, _local4[_local33][(_local4[_local33].length - 2)].y);
};
} else {
_local4[_local33].push(_arg1[_local26][_local7]);
if ((((_local4[_local33].length < _local3)) && ((_local4[_local33].length > 1)))){
debugLayer.graphics.lineStyle(2, 0xFF0000, (0.05 * ((_local4[_local33].length % 10) + 3)));
debugLayer.graphics.moveTo(_local4[_local33][(_local4[_local33].length - 1)].x, _local4[_local33][(_local4[_local33].length - 1)].y);
debugLayer.graphics.lineTo(_local4[_local33][(_local4[_local33].length - 2)].x, _local4[_local33][(_local4[_local33].length - 2)].y);
};
_local4[_local33].push(_local12);
if ((((_local4[_local33].length < _local3)) && ((_local4[_local33].length > 1)))){
debugLayer.graphics.lineStyle(2, 0xFF0000, (0.05 * ((_local4[_local33].length % 10) + 3)));
debugLayer.graphics.moveTo(_local4[_local33][(_local4[_local33].length - 1)].x, _local4[_local33][(_local4[_local33].length - 1)].y);
debugLayer.graphics.lineTo(_local4[_local33][(_local4[_local33].length - 2)].x, _local4[_local33][(_local4[_local33].length - 2)].y);
};
_local68 = 0;
_local21 = 0;
while (_local21 < _arg1[_local26].length) {
_local17 = new Point(_local12.x, _local12.y);
_local18 = new Point(_arg2[0][_local25].x, _arg2[0][_local25].y);
_local19 = new Point(_arg1[_local26][_local21].x, _arg1[_local26][_local21].y);
_local20 = new Point(_arg1[_local26][((_local21 + 1) % _arg1[_local26].length)].x, _arg1[_local26][((_local21 + 1) % _arg1[_local26].length)].y);
_local69 = lineIntersectLine(_local17, _local18, _local19, _local20, true);
if (((_local69) && (((!(((Math.round((_local69.x * 1000)) / 1000) == (Math.round((_local12.x * 1000)) / 1000)))) || (!(((Math.round((_local69.y * 1000)) / 1000) == (Math.round((_local12.y * 1000)) / 1000)))))))){
_local70 = _local69;
_local67 = (_local9.length - 1);
while (_local67 >= 0) {
if (((((Math.round((_local9[_local67].x * 1000)) / 1000) == (Math.round((_local69.x * 1000)) / 1000))) && (((Math.round((_local9[_local67].y * 1000)) / 1000) == (Math.round((_local69.y * 1000)) / 1000))))){
_local9.splice(_local67, 1);
_local10.splice(_local67, 1);
};
_local67--;
};
_local71 = _local21;
_local68++;
};
_local21++;
};
if (_local68 == 0){
_local8 = false;
_local4[_local33].push(_arg2[0][_local25]);
if ((((_local4[_local33].length < _local3)) && ((_local4[_local33].length > 1)))){
debugLayer.graphics.lineStyle(2, 0xFF0000, (0.05 * ((_local4[_local33].length % 10) + 3)));
debugLayer.graphics.moveTo(_local4[_local33][(_local4[_local33].length - 1)].x, _local4[_local33][(_local4[_local33].length - 1)].y);
debugLayer.graphics.lineTo(_local4[_local33][(_local4[_local33].length - 2)].x, _local4[_local33][(_local4[_local33].length - 2)].y);
};
_local7 = _local25;
} else {
_local4[_local33].push(_local70);
if ((((_local4[_local33].length < _local3)) && ((_local4[_local33].length > 1)))){
debugLayer.graphics.lineStyle(2, 0xFF0000, (0.05 * ((_local4[_local33].length % 10) + 3)));
debugLayer.graphics.moveTo(_local4[_local33][(_local4[_local33].length - 1)].x, _local4[_local33][(_local4[_local33].length - 1)].y);
debugLayer.graphics.lineTo(_local4[_local33][(_local4[_local33].length - 2)].x, _local4[_local33][(_local4[_local33].length - 2)].y);
};
_local7 = _local71;
};
};
} else {
_local23 = _arg1[_local26].length;
_local24 = _arg2[0].length;
_local62 = -1;
_local63 = 1E22;
_local21 = 0;
while (_local21 < _local23) {
_local17 = new Point(_arg2[0][_local7].x, _arg2[0][_local7].y);
_local18 = new Point(_arg2[0][((_local7 + 1) % _local24)].x, _arg2[0][((_local7 + 1) % _local24)].y);
_local19 = new Point(_arg1[_local26][_local21].x, _arg1[_local26][_local21].y);
_local20 = new Point(_arg1[_local26][((_local21 + 1) % _local23)].x, _arg1[_local26][((_local21 + 1) % _local23)].y);
_local11 = lineIntersectLine(_local17, _local18, _local19, _local20, true);
if (_local11){
_local64 = (_arg2[0][_local7].x - _local11.x);
_local65 = (_arg2[0][_local7].y - _local11.y);
_local66 = ((_local64 * _local64) + (_local65 * _local65));
};
if (((_local11) && ((_local66 < _local63)))){
_local63 = _local66;
_local15++;
_local12 = _local11;
_local62 = _local21;
};
_local21++;
};
if (_local12){
_local67 = (_local9.length - 1);
while (_local67 >= 0) {
if ((((_local9[_local67].x == _local12.x)) && ((_local9[_local67].y == _local12.y)))){
_local9.splice(_local67, 1);
_local10.splice(_local67, 1);
};
_local67--;
};
_local25 = _local62;
};
if (_local15 == 0){
_local4[_local33].push(_arg2[0][_local7]);
if ((((_local4[_local33].length < _local3)) && ((_local4[_local33].length > 1)))){
debugLayer.graphics.lineStyle(2, 0xFF0000, (0.05 * ((_local4[_local33].length % 10) + 3)));
debugLayer.graphics.moveTo(_local4[_local33][(_local4[_local33].length - 1)].x, _local4[_local33][(_local4[_local33].length - 1)].y);
debugLayer.graphics.lineTo(_local4[_local33][(_local4[_local33].length - 2)].x, _local4[_local33][(_local4[_local33].length - 2)].y);
};
} else {
_local4[_local33].push(_local12);
if ((((_local4[_local33].length < _local3)) && ((_local4[_local33].length > 1)))){
debugLayer.graphics.lineStyle(2, 0xFF0000, (0.05 * ((_local4[_local33].length % 10) + 3)));
debugLayer.graphics.moveTo(_local4[_local33][(_local4[_local33].length - 1)].x, _local4[_local33][(_local4[_local33].length - 1)].y);
debugLayer.graphics.lineTo(_local4[_local33][(_local4[_local33].length - 2)].x, _local4[_local33][(_local4[_local33].length - 2)].y);
};
_local8 = true;
_local7 = _local25;
};
};
if (_local8){
_local7 = ((_local7 + 1) % _arg1[_local26].length);
} else {
--_local7;
if (_local7 < 0){
_local7 = (_local7 + _arg2[0].length);
};
};
if ((((_local8 == true)) && ((_local7 == _local49)))){
_local58 = true;
if (_local33 == 0){
};
};
}) {
if (_local33 < 3){
};
_local4.push(new Array());
_local33 = (_local4.length - 1);
_local50 = (_local10[0] - 1);
_local51 = (_local10[1] - 1);
_local52 = (_local10[0] + 1);
_local53 = (_local10[1] + 1);
if (_local50 < 0){
_local50 = (_local50 + _arg1[_local26].length);
};
if (_local51 < 0){
_local51 = (_local51 + _arg1[_local26].length);
};
if (_local52 >= _arg1[_local26].length){
_local52 = (_local52 - _arg1[_local26].length);
};
if (_local53 >= _arg1[_local26].length){
_local53 = (_local53 - _arg1[_local26].length);
};
_local54 = new Point(_arg1[_local26][_local10[0]].x, _arg1[_local26][_local10[0]].y);
_local55 = new Point(_arg1[_local26][_local10[1]].x, _arg1[_local26][_local10[1]].y);
_local56 = new Point(_arg1[_local26][_local50].x, _arg1[_local26][_local50].y);
_local57 = new Point(_arg1[_local26][_local51].x, _arg1[_local26][_local51].y);
if (!(_arg2[0], _local54)){
_local49 = _local10[0];
} else {
if (!(_arg2[0], _local55)){
_local49 = _local10[1];
} else {
if (!(_arg2[0], _local56)){
_local49 = _local50;
} else {
if (!(_arg2[0], _local57)){
_local49 = _local51;
continue;
};
};
};
};
};
_local26++;
};
return (_local4);
}
public function
(){
var _local1:int;
_local1 = getTimer();
= new Array();
}
public function
(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Rectangle;
var _local10:Rectangle;
_local5 = (Math.round((((_arg2.y - _arg1.y) / (_arg2.x - _arg1.x)) * 10000)) / 10000);
_local6 = (Math.round((((_arg4.y - _arg3.y) / (_arg4.x - _arg3.x)) * 10000)) / 10000);
_local7 = (Math.round(((_arg1.y - (_local5 * _arg1.x)) * 10)) / 10);
_local8 = (Math.round(((_arg3.y - (_local6 * _arg3.x)) * 10)) / 10);
if ((((_local5 == _local6)) && ((_local7 == _local8)))){
_local9 = new Rectangle(_arg1.x, _arg1.y, (_arg2.x - _arg1.x), (_arg2.y - _arg1.y));
_local10 = new Rectangle(_arg3.x, _arg3.y, (_arg4.x - _arg3.x), (_arg4.y - _arg3.y));
if (_local9.intersects(_local10)){
return (true);
};
return (false);
//unresolved jump
};
return (false);
}
public function lineIntersectLine(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point, _arg5:Boolean=true):Point{
var _local6:Point;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
_local7 = (_arg2.y - _arg1.y);
_local9 = (_arg1.x - _arg2.x);
_local11 = ((_arg2.x * _arg1.y) - (_arg1.x * _arg2.y));
_local8 = (_arg4.y - _arg3.y);
_local10 = (_arg3.x - _arg4.x);
_local12 = ((_arg4.x * _arg3.y) - (_arg3.x * _arg4.y));
_local13 = ((_local7 * _local10) - (_local8 * _local9));
if (_local13 == 0){
return (null);
};
_local6 = new Point();
_local6.x = (((_local9 * _local12) - (_local10 * _local11)) / _local13);
_local6.y = (((_local8 * _local11) - (_local7 * _local12)) / _local13);
if (_arg5){
if ((Math.pow((_local6.x - _arg2.x), 2) + Math.pow((_local6.y - _arg2.y), 2)) > (Math.pow((_arg1.x - _arg2.x), 2) + Math.pow((_arg1.y - _arg2.y), 2))){
return (null);
};
if ((Math.pow((_local6.x - _arg1.x), 2) + Math.pow((_local6.y - _arg1.y), 2)) > (Math.pow((_arg1.x - _arg2.x), 2) + Math.pow((_arg1.y - _arg2.y), 2))){
return (null);
};
if ((Math.pow((_local6.x - _arg4.x), 2) + Math.pow((_local6.y - _arg4.y), 2)) > (Math.pow((_arg3.x - _arg4.x), 2) + Math.pow((_arg3.y - _arg4.y), 2))){
return (null);
};
if ((Math.pow((_local6.x - _arg3.x), 2) + Math.pow((_local6.y - _arg3.y), 2)) > (Math.pow((_arg3.x - _arg4.x), 2) + Math.pow((_arg3.y - _arg4.y), 2))){
return (null);
};
};
return (_local6);
}
public function removeChunk(_arg1, _arg2, _arg3){
var _local4:MovieClip;
var _local5:Matrix;
var _local6:Array;
var _local7:int;
_local4 = new MovieClip();
_local4.graphics.beginFill(0, 0.5);
_local4.graphics.drawCircle(((_arg3 + 6) / 2), ((_arg3 + 6) / 2), ((_arg3 + 6) / 2));
_local4.graphics.endFill();
_local5 = new Matrix();
_local5.translate((((_arg1 - x) + (diameter / 2)) - ((_arg3 + 6) / 2)), (((_arg2 - y) + (diameter / 2)) - ((_arg3 + 6) / 2)));
BMData.draw(_local4, _local5, null, "multiply", null, false);
_local6 = new Array(new Array());
_local7 = 0;
while (_local7 < 360) {
_local6[0].push(new Point((((_arg3 / 2) * Math.sin((_local7 * (Math.PI / 180)))) + (_arg1 - x)), (((_arg3 / 2) * Math.cos((_local7 * (Math.PI / 180)))) + (_arg2 - y))));
_local7 = (_local7 +
);
};
shapeArray =
(shapeArray, _local6);
(shapeArray, 0xFFFFFF, , 2);
(shapeArray, 16777214, shape2, 2);
MovieClip(root).game.unitJiggleFix();
();
}
public function findNewCenter(){
}
public function
(_arg1, _arg2, _arg3, _arg4){
var _local5:int;
var _local6:int;
if (_arg2 == 0xFFFFFF){
.mask = null;
};
_arg3.graphics.clear();
_local5 = 0;
while (_local5 < _arg1.length) {
if ((((((_arg2 == 0xFFFFFF)) || ((_arg2 == 16777214)))) || ((_arg2 == 16777213)))){
_arg3.graphics.beginFill(11103, 1);
};
_arg3.graphics.moveTo(_arg1[_local5][0].x, _arg1[_local5][0].y);
_local6 = 0;
while (_local6 < _arg1[_local5].length) {
_arg3.graphics.lineTo(_arg1[_local5][_local6].x, _arg1[_local5][_local6].y);
_local6++;
};
_arg3.graphics.lineTo(_arg1[_local5][0].x, _arg1[_local5][0].y);
if ((((_arg2 == 0xFFFFFF)) || ((_arg2 == 16777214)))){
_arg3.graphics.endFill();
};
_local5++;
};
if (_arg2 == 0xFFFFFF){
.mask = _arg3;
};
}
public function (){
var _local1:Number;
var _local2:Number;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:*;
var _local8:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local4 = 0;
while (_local4 < shapeArray.length) {
_local7 = 0;
_local8 = 0;
while (_local8 < shapeArray[_local4].length) {
_local3 = ((_local8 + 1) % shapeArray[_local4].length);
_local2 = ((shapeArray[_local4][_local8].x * shapeArray[_local4][_local3].y) - (shapeArray[_local4][_local3].x * shapeArray[_local4][_local8].y));
_local7 = (_local7 + _local2);
_local8++;
};
_local1 = (_local1 + _local7);
_local4++;
};
= Math.abs((_local1 / 2));
mass = (
* (
/
));
_local5 = 0;
_local6 = 0;
_local4 = 0;
while (_local4 < shapeArray.length) {
_local8 = 0;
while (_local8 < shapeArray[_local4].length) {
_local3 = ((_local8 + 1) % shapeArray[_local4].length);
_local5 = (_local5 + ((shapeArray[_local4][_local8].x + shapeArray[_local4][_local3].x) * ((shapeArray[_local4][_local8].x * shapeArray[_local4][_local3].y) - (shapeArray[_local4][_local3].x * shapeArray[_local4][_local8].y))));
_local6 = (_local6 + ((shapeArray[_local4][_local8].y + shapeArray[_local4][_local3].y) * ((shapeArray[_local4][_local8].x * shapeArray[_local4][_local3].y) - (shapeArray[_local4][_local3].x * shapeArray[_local4][_local8].y))));
_local8++;
};
_local4++;
};
centerX = (-1 * ((1 / (6 *
)) * _local5));
centerY = (-1 * ((1 / (6 *
)) * _local6));
}
public function updatePlanet(){
var _local1:PlanetGFX;
var _local2:Matrix;
var _local3:int;
var _local4:int;
_local1 = new PlanetGFX();
if (classicGFX){
_local1.gotoAndStop((GFXID + 60));
} else {
_local1.gotoAndStop(GFXID);
};
BMData = new BitmapData(diameter, diameter, true, 0);
_local2 = new Matrix();
_local2.scale((diameter / 100), (diameter / 100));
_local2.translate((diameter / 2), (diameter / 2));
BMData.draw(_local1, _local2, null, null, null, false);
= new Bitmap(BMData);
.x = (0 - (diameter / 2));
.y = (0 - (diameter / 2));
.gotoAndStop(GFXID);
centerX = (diameter / 2);
centerY = (diameter / 2);
= (Math.PI * Math.pow((diameter / 2), 2));
mass = (((4 / 3) * Math.PI) * Math.pow((diameter / 2), 3));
= mass;
_local3 = 0;
.scaleX = (diameter / 100);
.scaleY = (diameter / 100);
_local4 = 0;
while (_local4 < 360) {
shapeArray[0].push(new Point(((diameter / 2) * Math.sin((_local4 * (Math.PI / 180)))), ((diameter / 2) * Math.cos((_local4 * (Math.PI / 180))))));
_local4 = (_local4 + );
};
();
if (!isSun){
addChild(shape2);
addChild(
);
addChild();
(shapeArray, 0xFFFFFF, , 2);
(shapeArray, 16777214, shape2, 2);
} else {
addChild(
);
};
addChild(debugLayer);
}
public function (_arg1, _arg2){
var _local3:int;
var _local4:int;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local3 = 0;
_local4 = 0;
while (_local4 < _arg1.length) {
if ((((((_arg1[_local4].y > _arg2.y)) && ((_arg1[((_local4 + 1) % _arg1.length)].y <= _arg2.y)))) || ((((_arg1[_local4].y <= _arg2.y)) && ((_arg1[((_local4 + 1) % _arg1.length)].y > _arg2.y)))))){
_local5 = new Point(_arg1[_local4].x, _arg1[_local4].y);
_local6 = new Point(_arg1[((_local4 + 1) % _arg1.length)].x, _arg1[((_local4 + 1) % _arg1.length)].y);
_local7 = new Point(_arg2.x, _arg2.y);
_local8 = new Point((_arg2.x - 500), _arg2.y);
if (lineIntersectLine(_local5, _local6, _local7, _local8, true)){
_local3++;
};
};
_local4++;
};
if ((_local3 % 2) == 1){
return (true);
};
return (false);
}
}
}//package com.funkypear.game
Section 30
//PlanetGFX (com.funkypear.game.PlanetGFX)
package com.funkypear.game {
import flash.display.*;
public class PlanetGFX extends MovieClip {
public var planet:MovieClip;
public function PlanetGFX(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame30(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame33(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame50(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame57(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame65(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame80(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame87(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame89(){
stop();
}
function frame90(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame99(){
stop();
}
function frame96(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
}
}//package com.funkypear.game
Section 31
//Projectile (com.funkypear.game.Projectile)
package com.funkypear.game {
import flash.display.*;
public class Projectile extends MovieClip {
public var lastSmokeY:Number;
public var distance:Number;// = 0
public var lastSmokeX:Number;
public var lastRefY:Number;// = -1
public var life:int;// = 0
public var hasSmoke:Boolean;// = true
public var oldY:Number;// = 0
public var reflected:Boolean;// = false
public var oldX:Number;// = 0
public var mass:int;// = 260
public var removeMe:Boolean;// = false
public var multi:int;// = 1
public var killReg:int;// = -1
public var team:int;// = -1
public var shieldDelay:int;// = 0
public var momX:Number;// = 0
public var diameter:int;// = 8
public var momY:Number;// = 0
public var angleVelocity:Number;// = 0
public var lastRefX:Number;// = -1
public function Projectile(){
mass = 260;
life = 0;
shieldDelay = 0;
diameter = 8;
momX = 0;
momY = 0;
killReg = -1;
lastRefX = -1;
lastRefY = -1;
angleVelocity = 0;
oldX = 0;
reflected = false;
multi = 1;
distance = 0;
team = -1;
hasSmoke = true;
oldY = 0;
removeMe = false;
super();
}
public function doGravity(_arg1):void{
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
_local2 = 0;
while (_local2 < _arg1.length) {
if (1 != 2){
_local3 = ((_arg1[_local2].x + _arg1[_local2].centerX) - x);
_local4 = ((_arg1[_local2].y + _arg1[_local2].centerY) - y);
_local5 = ((_local3 > 0)) ? _local3 : (_local3 * -1);
_local6 = ((_local4 > 0)) ? _local4 : (_local4 * -1);
_local7 = (_local3 * _local3);
_local8 = (_local4 * _local4);
_local9 = (_local7 + _local8);
_local10 = ((_arg1[_local2].diameter / 2) * (_arg1[_local2].diameter / 2));
if (_local9 < _local10){
_local13 = ((mass * _arg1[_local2].mass) / _local10);
} else {
_local13 = ((mass * _arg1[_local2].mass) / _local9);
};
_local11 = ((_local13 / (_local5 + _local6)) * _local5);
_local12 = ((_local13 / (_local5 + _local6)) * _local6);
if (_local3 < 0){
momX = (momX - (_local11 / 20000));
} else {
momX = (momX + (_local11 / 20000));
};
if (_local4 < 0){
momY = (momY - (_local12 / 20000));
} else {
momY = (momY + (_local12 / 20000));
};
};
_local2++;
};
}
public function moveProjectile(_arg1, _arg2, _arg3, _arg4):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
shieldDelay--;
oldX = x;
oldY = y;
x = (x + momX);
y = (y + momY);
_local5 = (x - oldX);
_local6 = (y - oldY);
_local7 = ((_local5 * _local5) + (_local6 * _local6));
distance = (distance + Math.sqrt(_local7));
if (((((((((!((this is UnitProjectile))) && (!((this is MineProjectile))))) && (!((this is TargetProjectile))))) && ((distance > 1200)))) && ((multi < 4)))){
MovieClip(root).game.showMulti(4, x, y);
multi = 4;
} else {
if (((((((((!((this is UnitProjectile))) && (!((this is MineProjectile))))) && (!((this is TargetProjectile))))) && ((distance > 800)))) && ((multi < 3)))){
MovieClip(root).game.showMulti(3, x, y);
multi = 3;
} else {
if (((((((((!((this is UnitProjectile))) && (!((this is MineProjectile))))) && (!((this is TargetProjectile))))) && ((distance > 400)))) && ((multi < 2)))){
MovieClip(root).game.showMulti(2, x, y);
multi = 2;
};
};
};
if (angleVelocity == 0){
rotation = ((Math.atan2((y - oldY), (x - oldX)) * (180 / Math.PI)) + 180);
} else {
rotation = (rotation + angleVelocity);
};
if ((((((((x > (_arg2 + 1000))) || ((x < (_arg1 - 1000))))) || ((y > (_arg4 + 1000))))) || ((y < (_arg3 - 1000))))){
removeMe = true;
if ((((this is UnitProjectile)) && (MovieClip(root).game.myTeamsTurn))){
if (team != 0){
var _local8 = MovieClip(root).achievementsInfo.stats;
var _local9 = "enemiesOOB";
var _local10 = (_local8[_local9] + 1);
_local8[_local9] = _local10;
_local8 = MovieClip(root).achievementsInfo.stats;
_local9 = "enemyKills";
_local10 = (_local8[_local9] + 1);
_local8[_local9] = _local10;
if (killReg > 0){
_local8 = MovieClip(root).achievementsInfo.stats;
_local9 = (("wep" + killReg) + "Kills");
_local10 = (_local8[_local9] + 1);
_local8[_local9] = _local10;
};
};
};
if ((((this is UnitProjectile)) && ((team == 0)))){
_local8 = MovieClip(root).achievementsInfo.stats;
_local9 = "friendlyKills";
_local10 = (_local8[_local9] + 1);
_local8[_local9] = _local10;
};
};
life++;
}
}
}//package com.funkypear.game
Section 32
//SaveData (com.funkypear.game.SaveData)
package com.funkypear.game {
import flash.net.*;
import flash.utils.*;
public class SaveData {
public var ;
public function SaveData(_arg1){
= _arg1;
}
public function loadData(){
var _local1:SharedObject;
_local1 = SharedObject.getLocal("GraviteeWarsData");
if (_local1.data.levelsUnlocked){
.money = _local1.data.money;
.moneyTally = _local1.data.moneyTally;
.teamInfo.unitNames = _local1.data.unitNames;
.teamInfo.teamName = _local1.data.teamName;
.teamInfo.unitHealths = _local1.data.unitHealths;
.teamInfo.unitAccuracy = _local1.data.unitAccuracy;
.teamInfo.wepCount = _local1.data.wepCount;
.achievementsInfo.levelsUnlocked = _local1.data.levelsUnlocked;
.achievementsInfo.levelLows = _local1.data.levelLows;
.achievementsInfo.levelMedals = _local1.data.levelMedals;
.achievementsInfo.awarded = _local1.data.awards;
.achievementsInfo.rewardsDisplayed = _local1.data.rewardsDisplayed;
.achievementsInfo.wepsUnlocked = _local1.data.wepsUnlocked;
.achievementsInfo.stats = _local1.data.stats;
.achievementsInfo.secsPlayedStart = _local1.data.secsPlayedStart;
.sfx = _local1.data.sfx;
.music = _local1.data.music;
.tutorialsDone = _local1.data.tutorialsDone;
} else {
saveData();
};
}
public function saveData(){
var _local1:SharedObject;
_local1 = SharedObject.getLocal("GraviteeWarsData");
_local1.data.money = .money;
_local1.data.moneyTally = .moneyTally;
_local1.data.teamName = .teamInfo.teamName;
_local1.data.unitNames = .teamInfo.unitNames;
_local1.data.unitHealths = .teamInfo.unitHealths;
_local1.data.unitAccuracy = .teamInfo.unitAccuracy;
_local1.data.wepCount = .teamInfo.wepCount;
_local1.data.levelsUnlocked = .achievementsInfo.levelsUnlocked;
_local1.data.levelMedals = .achievementsInfo.levelMedals;
_local1.data.levelLows = .achievementsInfo.levelLows;
_local1.data.rewardsDisplayed = .achievementsInfo.rewardsDisplayed;
_local1.data.awards = .achievementsInfo.awarded;
_local1.data.wepsUnlocked = .achievementsInfo.wepsUnlocked;
_local1.data.stats = .achievementsInfo.stats;
_local1.data.secsPlayedStart = (.achievementsInfo.secsPlayedStart + Math.round((getTimer() / 1000)));
_local1.data.sfx = .sfx;
_local1.data.music = .music;
_local1.data.tutorialsDone = .tutorialsDone;
_local1.flush();
}
}
}//package com.funkypear.game
Section 33
//SFXMute (com.funkypear.game.SFXMute)
package com.funkypear.game {
import flash.display.*;
import flash.events.*;
public class SFXMute extends MovieClip {
public var bon:SimpleButton;
public var boff:SimpleButton;
public function SFXMute(){
addFrameScript(0, frame1, 1, frame2);
}
public function mute(_arg1:MouseEvent){
gotoAndStop(2);
MovieClip(root).sfx = false;
MovieClip(root).saveData();
}
public function unmute(_arg1:MouseEvent){
gotoAndStop(1);
MovieClip(root).sfx = true;
MovieClip(root).saveData();
}
function frame1(){
stop();
if (!bon.hasEventListener(MouseEvent.MOUSE_DOWN)){
bon.addEventListener(MouseEvent.MOUSE_DOWN, mute);
};
}
function frame2(){
stop();
if (!boff.hasEventListener(MouseEvent.MOUSE_DOWN)){
boff.addEventListener(MouseEvent.MOUSE_DOWN, unmute);
};
}
}
}//package com.funkypear.game
Section 34
//ShieldNode (com.funkypear.game.ShieldNode)
package com.funkypear.game {
import flash.display.*;
public class ShieldNode extends MovieClip {
public var life:int;// = 3
public var timeTilDie:int;// = 0
public var shieldLine:ShieldLine;
public function ShieldNode(){
life = 3;
timeTilDie = 0;
super();
}
}
}//package com.funkypear.game
Section 35
//SoundManager (com.funkypear.game.SoundManager)
package com.funkypear.game {
import flash.display.*;
import flash.media.*;
public class SoundManager extends SoundManagerSuper {
protected const MENU_VOLUME:Number = 1;
protected const GAME_VOLUME:Number = 0.5;
public var sound_pickuphealth:MovieClip;
public var sound_blackhole:MovieClip;
public var sound_award:MovieClip;
public var sound_sniper:MovieClip;
public var sound_minebeep:MovieClip;
public var sound_teleport:MovieClip;
public var sound_spit:MovieClip;
public var sound_rocketshoot:MovieClip;
public var sound_bounce:MovieClip;
public var sound_pickupammo:MovieClip;
public var sound_explosion:MovieClip;
public var sound_zap:MovieClip;
public var sound_burn:MovieClip;
public static const GAME:uint = 1;
public static const MENU:uint = 0;
public function SoundManager(){
music_sounds.push(new GameMusic());
transforms.push(new SoundTransform(GAME_VOLUME, 0));
channels.push(new SoundChannel());
volumes.push(GAME_VOLUME);
= uint.MAX_VALUE;
}
}
}//package com.funkypear.game
Section 36
//SoundManagerSuper (com.funkypear.game.SoundManagerSuper)
package com.funkypear.game {
import flash.display.*;
import flash.events.*;
public class SoundManagerSuper extends Sprite {
protected const CROSS_FADE_SPEED:Number = 0.05;
public var :int;
protected var :Boolean;// = true
public var :Boolean;// = false
protected var transforms:Array;
protected var volumes:Array;
protected var music_sounds:Array;
protected var :int;
protected var
:Boolean;// = true
protected var channels:Array;
protected var :Array;
public function SoundManagerSuper(){
var _local1:int;
var _local2:MovieClip;
= new Array();
music_sounds = new Array();
channels = new Array();
transforms = new Array();
volumes = new Array();
= true;
= true;
= false;
super();
_local1 = 0;
while (_local1 < numChildren) {
_local2 = (getChildAt(_local1) as MovieClip);
if (_local2 != null){
[_local2.name] = _local2;
};
_local1++;
};
}
public function set sfx(_arg1:Boolean):void{
= _arg1;
}
public function get music():Boolean{
return ( );
}
public function ():void{
if ( ){
turnOffMusic();
} else {
turnOnMusic();
};
}
public function (_arg1:String):void{
if (
){
if ( [_arg1] != null){
[_arg1].gotoAndPlay(2);
};
};
}
private function (_arg1:Event):void{
if (transforms[ ].volume > 0){
transforms[ ].volume = (transforms[ ].volume - CROSS_FADE_SPEED);
channels[ ].soundTransform = transforms[ ];
};
if (transforms[].volume < 1){
transforms[].volume = (transforms[].volume + CROSS_FADE_SPEED);
channels[].soundTransform = transforms[];
};
if ((((transforms[].volume >= volumes[])) && ((transforms[ ].volume <= 0)))){
channels[ ].stop();
= false;
_arg1.target.removeEventListener(Event.ENTER_FRAME, );
};
}
public function turnOnMusic():void{
= true;
= true;
playMusic(0, true);
}
public function set music(_arg1:Boolean):void{
= _arg1;
}
public function playMusic(_arg1:uint, _arg2:Boolean=false):void{
var _local3:uint;
if (((!(( == _arg1))) || (_arg2))){
if (music_sounds.length > 0){
if ( ){
_local3 = 0;
while (_local3 < music_sounds.length) {
if (_local3 == _arg1){
} else {
if (channels[_local3] != null){
channels[_local3].stop();
};
};
_local3++;
};
transforms[_arg1].volume = volumes[_arg1];
channels[_arg1] = music_sounds[_arg1].play(0, int.MAX_VALUE, transforms[_arg1]);
};
= _arg1;
};
};
}
public function turnOffMusic():void{
var _local1:uint;
_local1 = 0;
while (_local1 < channels.length) {
if (channels[_local1] != null){
channels[_local1].stop();
};
_local1++;
};
= false;
= false;
}
public function get sfx():Boolean{
return (
);
}
public function (_arg1:int):void{
if (((((!( )) || (( == _arg1)))) || ( ))){
return;
};
transforms[_arg1].volume = 0;
channels[_arg1] = music_sounds[_arg1].play(0, int.MAX_VALUE, transforms[_arg1]);
= ;
= _arg1;
= true;
addEventListener(Event.ENTER_FRAME, );
}
}
}//package com.funkypear.game
Section 37
//Spark (com.funkypear.game.Spark)
package com.funkypear.game {
public class Spark extends Explosion {
}
}//package com.funkypear.game
Section 38
//TargetProjectile (com.funkypear.game.TargetProjectile)
package com.funkypear.game {
public class TargetProjectile extends Projectile {
public var GFXscale:int;// = 0
public var GFXframe:int;// = 0
public var AIposY:Number;// = 0
public var AIposX:Number;// = 0
public var stopMovement:Boolean;// = false
public var AImomX:Number;// = 0
public var AImomY:Number;// = 0
public function TargetProjectile(){
stopMovement = false;
GFXframe = 0;
GFXscale = 0;
AImomX = 0;
AImomY = 0;
AIposX = 0;
AIposY = 0;
super();
}
}
}//package com.funkypear.game
Section 39
//TeamDisplay (com.funkypear.game.TeamDisplay)
package com.funkypear.game {
import flash.display.*;
public class TeamDisplay extends MovieClip {
private var
:Boolean;// = true
public var targetFrame:int;// = 1
public function TeamDisplay(){
targetFrame = 1;
= true;
super();
}
public function doFlash(){
if (
){
if (alpha > 0.6){
alpha = (alpha - 0.03);
if (alpha <= 0.6){
= false;
};
};
} else {
if (alpha < 1){
alpha = (alpha + 0.03);
if (alpha >= 1){
= true;
};
};
};
}
public function resetAlpha(){
= true;
alpha = 1;
}
public function setTargetFrame(_arg1){
targetFrame = _arg1;
}
}
}//package com.funkypear.game
Section 40
//TeamDisplayBar (com.funkypear.game.TeamDisplayBar)
package com.funkypear.game {
import flash.display.*;
public class TeamDisplayBar extends MovieClip {
public var shown:Boolean;// = true
public function TeamDisplayBar(){
shown = true;
super();
}
public function showMe(){
shown = true;
}
public function hideMe(){
shown = false;
}
public function mainLoop(){
if ((((y > 440)) && (shown))){
y = (y - 5);
} else {
if ((((y < 510)) && (!(shown)))){
y = (y + 5);
};
};
}
}
}//package com.funkypear.game
Section 41
//TeamDisplayBlue (com.funkypear.game.TeamDisplayBlue)
package com.funkypear.game {
import flash.display.*;
import flash.text.*;
public class TeamDisplayBlue extends TeamDisplay {
public var bar:MovieClip;
public var teamname:TextField;
public function mainLoop(){
if (bar.currentFrame != targetFrame){
if (bar.currentFrame < targetFrame){
bar.gotoAndStop((bar.currentFrame + 1));
} else {
if (bar.currentFrame > targetFrame){
bar.gotoAndStop((bar.currentFrame - 1));
};
};
};
}
}
}//package com.funkypear.game
Section 42
//TeamDisplayGreen (com.funkypear.game.TeamDisplayGreen)
package com.funkypear.game {
import flash.display.*;
import flash.text.*;
public class TeamDisplayGreen extends TeamDisplay {
public var bar:MovieClip;
public var teamname:TextField;
public function mainLoop(){
if (bar.currentFrame != targetFrame){
if (bar.currentFrame < targetFrame){
bar.gotoAndStop((bar.currentFrame + 1));
} else {
if (bar.currentFrame > targetFrame){
bar.gotoAndStop((bar.currentFrame - 1));
};
};
};
}
}
}//package com.funkypear.game
Section 43
//TeamDisplayRed (com.funkypear.game.TeamDisplayRed)
package com.funkypear.game {
import flash.display.*;
import flash.text.*;
public class TeamDisplayRed extends TeamDisplay {
public var bar:MovieClip;
public var teamname:TextField;
public function mainLoop(){
if (bar.currentFrame != targetFrame){
if (bar.currentFrame < targetFrame){
bar.gotoAndStop((bar.currentFrame + 1));
} else {
if (bar.currentFrame > targetFrame){
bar.gotoAndStop((bar.currentFrame - 1));
};
};
};
}
}
}//package com.funkypear.game
Section 44
//TeamDisplayYellow (com.funkypear.game.TeamDisplayYellow)
package com.funkypear.game {
import flash.display.*;
import flash.text.*;
public class TeamDisplayYellow extends TeamDisplay {
public var bar:MovieClip;
public var teamname:TextField;
public function mainLoop(){
if (bar.currentFrame != targetFrame){
if (bar.currentFrame < targetFrame){
bar.gotoAndStop((bar.currentFrame + 1));
} else {
if (bar.currentFrame > targetFrame){
bar.gotoAndStop((bar.currentFrame - 1));
};
};
};
}
}
}//package com.funkypear.game
Section 45
//TeamInfo (com.funkypear.game.TeamInfo)
package com.funkypear.game {
public class TeamInfo {
public var unitNames:Array;
public var teamName:String;// = "Your Team"
public var wepCount:Array;
public var unitHealths:Array;
public var unitAccuracy:Array;
public function TeamInfo(){
unitNames = ["Name 1", "Name 2", "Name 3", "Name 4", "Name 5", "Name 6"];
unitHealths = [3, 3, 0, 0, 0, 0];
unitAccuracy = [3, 3, 0, 0, 0, 0];
wepCount = [-1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
teamName = "Your Team";
super();
}
}
}//package com.funkypear.game
Section 46
//Transitions (com.funkypear.game.Transitions)
package com.funkypear.game {
import flash.display.*;
public class Transitions extends MovieClip {
public var
:BitmapData;
public var goto:String;// = ""
public var tran1:MovieClip;
public var tran4:MovieClip;
public var tran5:MovieClip;
public var tran6:MovieClip;
public var tran8:MovieClip;
public var tran2:MovieClip;
public var tran3:MovieClip;
public var tran7:MovieClip;
public var
:int;// = 0
public var
:Bitmap;
public function Transitions(){
= 0;
goto = "";
= new BitmapData(700, 500, true, 0);
= new Bitmap(
);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
addChild(
);
}
function frame6(){
stop();
tran5.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran5;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame7(){
stop();
tran6.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran6;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame3(){
stop();
tran2.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran2;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame4(){
stop();
tran3.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran3;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame8(){
stop();
tran7.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran7;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame9(){
stop();
tran8.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran8;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame2(){
stop();
tran1.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran1;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame5(){
stop();
tran4.cacheAsBitmap = true;
.cacheAsBitmap = true;
.mask = tran4;
MovieClip(root).gotoAndStop(goto);
alpha = 1;
}
function frame1(){
stop();
}
public function doTrans(_arg1){
var _local2:*;
.draw(_arg1);
do {
_local2 = Math.ceil(((Math.random() * (totalFrames - 1)) + 1));
} while (_local2 ==
);
= _local2;
gotoAndStop(_local2);
}
}
}//package com.funkypear.game
Section 47
//Unit (com.funkypear.game.Unit)
package com.funkypear.game {
import flash.display.*;
public class Unit extends MovieClip {
public var danceID:int;// = 0
public var healthShown:int;// = 25
public var positionPlanet:int;// = 0
public var unitName:String;// = ""
public var health:int;// = 25
public var team:int;// = -1
public var killReg:int;// = -1
public var timeSince:int;// = 0
public var damageTaken:int;// = 0
public var positionElementYTeleTo:Number;// = -1
public var hitarea:MovieClip;
public var healthDisplay:HealthDisplay;
public var maxHealth:int;// = 25
public var graphic:MovieClip;
public var isWalking:Boolean;// = false
public var accuracy:int;// = 1
public var animState:String;// = "bob"
public var poison:MovieClip;
public var positionElementX:Number;// = 0
public var positionElementY:Number;// = 0
public var positionElementTeleTo:int;// = -1
public var removeMe:Boolean;// = false
public var positionPlanetTeleTo:int;// = -1
public var positionElementXTeleTo:Number;// = -1
public var positionPlace:Number;// = 0
public var positionElement:int;// = 0
public var poisoned:Boolean;// = false
public var positionShapeTeleTo:int;// = -1
public var positionShape:int;// = 0
public function Unit(){
maxHealth = 25;
health = 25;
damageTaken = 0;
healthShown = 25;
accuracy = 1;
team = -1;
killReg = -1;
timeSince = 0;
unitName = "";
danceID = 0;
animState = "bob";
positionPlanet = 0;
positionShape = 0;
positionElement = 0;
positionElementX = 0;
positionElementY = 0;
positionPlanetTeleTo = -1;
positionShapeTeleTo = -1;
positionElementTeleTo = -1;
positionElementXTeleTo = -1;
positionElementYTeleTo = -1;
positionPlace = 0;
isWalking = false;
poisoned = false;
healthDisplay = new HealthDisplay();
removeMe = false;
super();
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 99, frame100, 109, frame110, 119, frame120, 129, frame130, 139, frame140, 149, frame150, 159, frame160, 169, frame170, 179, frame180, 189, , 199,
, 209,
, 219,
, 229, frame230, 239,
, 249, , 259, , 269,
, 279, , 289, frame290, 299, , 309, , 319, , 329,
, 339,
, 349,
, 359,
, 369, , 379, , 389, , 399, , 409, , 419, , 429, , 439, , 449,
, 459,
);
}
function (){
stop();
updateCol();
}
function frame160(){
stop();
updateCol();
}
function frame290(){
stop();
updateCol();
}
function frame170(){
stop();
updateCol();
}
function frame10(){
stop();
updateCol();
}
function frame180(){
stop();
updateCol();
}
function frame1(){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function frame20(){
stop();
updateCol();
}
function frame30(){
stop();
updateCol();
}
function frame40(){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function frame50(){
stop();
updateCol();
}
function (){
stop();
updateCol();
graphic.bubble.qmark.scaleX = scaleX;
}
function (){
stop();
updateCol();
}
function frame60(){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function frame70(){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function frame80(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function frame90(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function frame100(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function frame230(){
stop();
updateCol();
}
function frame110(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function frame120(){
stop();
updateCol();
}
function frame130(){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
function frame140(){
stop();
updateCol();
}
public function changeAnim(_arg1){
animState = _arg1;
gotoAndStop(_arg1);
}
function (){
stop();
updateCol();
}
function (){
stop();
updateCol();
}
public function updateCol(){
graphic.head.col.gotoAndStop((team + 2));
graphic.body.col.gotoAndStop((team + 2));
graphic.lefthand.col.gotoAndStop((team + 2));
graphic.righthand.col.gotoAndStop((team + 2));
graphic.leftfoot.col.gotoAndStop((team + 2));
graphic.rightfoot.col.gotoAndStop((team + 2));
}
function (){
stop();
updateCol();
}
function
(){
stop();
updateCol();
}
function frame150(){
stop();
updateCol();
}
}
}//package com.funkypear.game
Section 48
//UnitBurn (com.funkypear.game.UnitBurn)
package com.funkypear.game {
public class UnitBurn extends Explosion {
}
}//package com.funkypear.game
Section 49
//UnitProjectile (com.funkypear.game.UnitProjectile)
package com.funkypear.game {
import flash.display.*;
public class UnitProjectile extends Projectile {
public var accuracy:int;// = 1
public var leftfoot:MovieClip;
public var unitName:String;// = ""
public var maxDamage:int;// = 25
public var health:int;// = 1
public var timeSince:int;// = 0
public var rightfoot:MovieClip;
public var damageTaken:int;// = 0
public var body:MovieClip;
public var poisoned:Boolean;// = false
public var righthand:MovieClip;
public var head:MovieClip;
public var stopMovement:Boolean;// = false
public var maxHealth:int;// = 1
public var lefthand:MovieClip;
public function UnitProjectile(){
stopMovement = false;
maxHealth = 1;
accuracy = 1;
health = 1;
timeSince = 0;
unitName = "";
damageTaken = 0;
maxDamage = 25;
poisoned = false;
super();
hasSmoke = false;
}
public function updateCol(){
head.col.gotoAndStop((team + 2));
body.col.gotoAndStop((team + 2));
lefthand.col.gotoAndStop((team + 2));
righthand.col.gotoAndStop((team + 2));
leftfoot.col.gotoAndStop((team + 2));
rightfoot.col.gotoAndStop((team + 2));
}
public function updateMass(){
mass = (health * 5);
if (mass < 100){
mass = 100;
};
}
}
}//package com.funkypear.game
Section 50
//UnitZap (com.funkypear.game.UnitZap)
package com.funkypear.game {
import flash.display.*;
public class UnitZap extends Explosion {
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var team:int;// = 0
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public function UnitZap(){
team = 0;
super();
addFrameScript(1, frame2);
}
function frame2(){
head.col.gotoAndStop((team + 2));
body.col.gotoAndStop((team + 2));
lefthand.col.gotoAndStop((team + 2));
righthand.col.gotoAndStop((team + 2));
leftfoot.col.gotoAndStop((team + 2));
rightfoot.col.gotoAndStop((team + 2));
}
}
}//package com.funkypear.game
Section 51
//Wep1Projectile (com.funkypear.game.Wep1Projectile)
package com.funkypear.game {
public class Wep1Projectile extends Projectile {
public var shake:int;// = 5
public var smokeLife:int;// = 8
public var smokeType:int;// = 0
public var maxDamage:int;// = 25
public var expSize:int;// = 60
public var stopMovement:Boolean;// = false
public function Wep1Projectile(){
stopMovement = false;
expSize = 60;
shake = 5;
maxDamage = 25;
smokeType = 0;
smokeLife = 8;
super();
}
}
}//package com.funkypear.game
Section 52
//Wep2aProjectile (com.funkypear.game.Wep2aProjectile)
package com.funkypear.game {
public class Wep2aProjectile extends Projectile {
public var shake:int;// = 3
public var smokeLife:int;// = 8
public var smokeType:int;// = 0
public var maxDamage:int;// = 15
public var onlyPlanet:int;// = 0
public var expSize:int;// = 30
public var stopMovement:Boolean;// = false
public function Wep2aProjectile(_arg1){
stopMovement = false;
expSize = 30;
onlyPlanet = 0;
shake = 3;
maxDamage = 15;
smokeType = 0;
smokeLife = 8;
super();
onlyPlanet = _arg1;
}
}
}//package com.funkypear.game
Section 53
//Wep2Projectile (com.funkypear.game.Wep2Projectile)
package com.funkypear.game {
public class Wep2Projectile extends Projectile {
public var shake:int;// = 3
public var smokeLife:int;// = 8
public var smokeType:int;// = 0
public var maxDamage:int;// = 25
public var expSize:int;// = 60
public var stopMovement:Boolean;// = false
public function Wep2Projectile(){
stopMovement = false;
expSize = 60;
shake = 3;
maxDamage = 25;
smokeType = 0;
smokeLife = 8;
super();
}
}
}//package com.funkypear.game
Section 54
//Wep3Projectile (com.funkypear.game.Wep3Projectile)
package com.funkypear.game {
public class Wep3Projectile extends Projectile {
public var shake:int;// = 6
public var smokeLife:int;// = 6
public var smokeType:int;// = 1
public var maxDamage:int;// = 30
public var expSize:int;// = 60
public var stopMovement:Boolean;// = false
public function Wep3Projectile(){
stopMovement = false;
expSize = 60;
maxDamage = 30;
shake = 6;
smokeType = 1;
smokeLife = 6;
super();
diameter = 12;
}
}
}//package com.funkypear.game
Section 55
//Wep4Projectile (com.funkypear.game.Wep4Projectile)
package com.funkypear.game {
public class Wep4Projectile extends Projectile {
public var shake:int;// = 1
public var maxDamage:int;// = 40
public var expSize:int;// = 0
public var stopMovement:Boolean;// = false
public function Wep4Projectile(){
stopMovement = false;
expSize = 0;
maxDamage = 40;
shake = 1;
super();
diameter = 2;
mass = 0;
hasSmoke = false;
}
}
}//package com.funkypear.game
Section 56
//Wep5Projectile (com.funkypear.game.Wep5Projectile)
package com.funkypear.game {
public class Wep5Projectile extends Projectile {
public var shake:int;// = 6
public var smokeLife:int;// = 8
public var inPlanet:int;// = 0
public var smokeType:int;// = 0
public var maxDamage:int;// = 60
public var expSize:int;// = 100
public var stopMovement:Boolean;// = false
public var planetHit:int;// = -1
public function Wep5Projectile(){
stopMovement = false;
expSize = 100;
maxDamage = 60;
shake = 6;
inPlanet = 0;
planetHit = -1;
smokeType = 0;
smokeLife = 8;
super();
diameter = 12;
}
}
}//package com.funkypear.game
Section 57
//Wep6Projectile (com.funkypear.game.Wep6Projectile)
package com.funkypear.game {
public class Wep6Projectile extends Projectile {
public var shake:int;// = 0
public var maxDamage:int;// = 10
public var expSize:int;// = 0
public var stopMovement:Boolean;// = false
public function Wep6Projectile(){
stopMovement = false;
expSize = 0;
maxDamage = 10;
shake = 0;
super();
hasSmoke = false;
}
}
}//package com.funkypear.game
Section 58
//Wep7Projectile (com.funkypear.game.Wep7Projectile)
package com.funkypear.game {
public class Wep7Projectile extends Projectile {
public var shake:int;// = 6
public var smokeLife:int;// = 8
public var smokeType:int;// = 0
public var maxDamage:int;// = 75
public var expSize:int;// = 140
public var stopMovement:Boolean;// = false
public function Wep7Projectile(){
stopMovement = false;
expSize = 140;
maxDamage = 75;
shake = 6;
smokeType = 0;
smokeLife = 8;
super();
diameter = 12;
}
}
}//package com.funkypear.game
Section 59
//WepPanel (com.funkypear.game.WepPanel)
package com.funkypear.game {
import flash.display.*;
public class WepPanel extends MovieClip {
public var panel:MovieClip;
public var shown:Boolean;// = false
public function WepPanel(){
shown = false;
super();
addFrameScript(0, frame1, 10, frame11);
}
public function hideIt(){
shown = false;
MovieClip(parent.parent).panelWeps.gotoAndPlay(12);
}
public function showIt(){
shown = true;
MovieClip(parent.parent).panelWeps.gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package com.funkypear.game
Section 60
//WepPos (com.funkypear.game.WepPos)
package com.funkypear.game {
import flash.geom.*;
public class WepPos {
public var ;
public function WepPos(){
= new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
super();
[1][1] = new Point(3.1, 5.4);
[1][2] = new Point(2.75, 5.45);
[1][3] = new Point(2.35, 5.6);
[1][4] = new Point(2, 5.55);
[1][5] = new Point(1.7, 5.7);
[1][6] = new Point(1.3, 5.75);
[1][7] = new Point(0.85, 5.8);
[1][8] = new Point(0.55, 5.7);
[1][9] = new Point(0.15, 5.75);
[1][10] = new Point(-0.15, 5.8);
[1][11] = new Point(-0.45, 5.8);
[1][12] = new Point(-0.95, 5.75);
[1][13] = new Point(-1.3, 5.75);
[1][14] = new Point(-1.65, 5.7);
[1][15] = new Point(-2, 5.65);
[1][16] = new Point(-2.25, 5.65);
[1][17] = new Point(-2.6, 5.6);
[1][18] = new Point(-3, 5.45);
[1][19] = new Point(-3.35, 5.4);
[1][20] = new Point(-3.7, 5.4);
[1][21] = new Point(-4, 5.25);
[1][22] = new Point(-4.25, 5.1);
[1][23] = new Point(-4.75, 5.05);
[1][24] = new Point(-5, 4.9);
[1][25] = new Point(-5.25, 4.8);
[1][26] = new Point(-5.55, 4.7);
[1][27] = new Point(-5.85, 4.55);
[1][28] = new Point(-6.3, 4.35);
[1][29] = new Point(-6.6, 4.25);
[1][30] = new Point(-6.8, 4.05);
[1][31] = new Point(-7.05, 3.95);
[1][32] = new Point(-7.35, 3.7);
[1][33] = new Point(-7.6, 3.6);
[1][34] = new Point(-7.95, 3.35);
[1][35] = new Point(-8.2, 3.15);
[1][36] = new Point(-8.4, 2.95);
[1][37] = new Point(-8.65, 2.8);
[1][38] = new Point(-8.95, 2.5);
[1][39] = new Point(-9.25, 2.25);
[1][40] = new Point(-9.45, 2.1);
[1][41] = new Point(-9.7, 1.8);
[1][42] = new Point(-9.9, 1.55);
[1][43] = new Point(-10.1, 1.35);
[1][44] = new Point(-10.35, 1.05);
[1][45] = new Point(-10.75, 0.7);
[1][46] = new Point(-11.15, 0.4);
[1][47] = new Point(-11.6, 0.05);
[1][48] = new Point(-11.95, -0.35);
[1][49] = new Point(-12.35, -0.65);
[1][50] = new Point(-12.75, -0.9);
[1][51] = new Point(-13.2, -1.3);
[1][52] = new Point(-13.55, -1.65);
[1][53] = new Point(-13.9, -2.05);
[1][54] = new Point(-14.2, -2.35);
[1][55] = new Point(-14.65, -2.8);
[1][56] = new Point(-15.05, -3.25);
[1][57] = new Point(-15.4, -3.65);
[1][58] = new Point(-15.75, -4);
[1][59] = new Point(-16, -4.4);
[1][60] = new Point(-16.35, -4.75);
[1][61] = new Point(-16.65, -5.05);
[1][62] = new Point(-16.95, -5.4);
[1][63] = new Point(-17.25, -5.85);
[1][64] = new Point(-17.5, -6.3);
[1][65] = new Point(-17.8, -6.7);
[1][66] = new Point(-18.05, -7.05);
[1][67] = new Point(-18.3, -7.6);
[1][68] = new Point(-18.6, -8);
[1][69] = new Point(-18.8, -8.45);
[1][70] = new Point(-19.1, -8.8);
[1][71] = new Point(-19.25, -9.3);
[1][72] = new Point(-19.55, -9.65);
[1][73] = new Point(-19.7, -10.05);
[1][74] = new Point(-19.95, -10.5);
[1][75] = new Point(-20.1, -10.95);
[1][76] = new Point(-20.3, -11.3);
[1][77] = new Point(-20.4, -11.8);
[1][78] = new Point(-20.7, -12.35);
[1][79] = new Point(-20.85, -12.75);
[1][80] = new Point(-20.9, -13.2);
[1][81] = new Point(-21.1, -13.7);
[1][82] = new Point(-21.25, -14.1);
[1][83] = new Point(-21.25, -14.4);
[1][84] = new Point(-21.4, -14.85);
[1][85] = new Point(-21.55, -15.35);
[1][86] = new Point(-21.7, -15.75);
[1][87] = new Point(-21.7, -16.25);
[1][88] = new Point(-21.8, -16.65);
[1][89] = new Point(-21.85, -17.05);
[1][90] = new Point(-21.75, -17.5);
[1][91] = new Point(-21.85, -18.05);
[1][92] = new Point(-21.75, -18.5);
[1][93] = new Point(-21.75, -18.95);
[1][94] = new Point(-21.6, -19.45);
[1][95] = new Point(-21.55, -19.9);
[1][96] = new Point(-21.55, -20.35);
[1][97] = new Point(-21.5, -20.9);
[1][98] = new Point(-21.35, -21.35);
[1][99] = new Point(-21.35, -21.75);
[1][100] = new Point(-21.15, -22.15);
[1][101] = new Point(-21.1, -22.65);
[1][102] = new Point(-21, -23.15);
[1][103] = new Point(-20.85, -23.6);
[1][104] = new Point(-20.7, -24);
[1][105] = new Point(-20.6, -24.55);
[1][106] = new Point(-20.4, -24.9);
[1][107] = new Point(-20.35, -25.35);
[1][108] = new Point(-20.1, -25.85);
[1][109] = new Point(-19.95, -26.3);
[1][110] = new Point(-19.8, -26.7);
[1][111] = new Point(-19.65, -27.1);
[1][112] = new Point(-19.5, -27.45);
[1][113] = new Point(-19.2, -27.85);
[1][114] = new Point(-19.05, -28.3);
[1][115] = new Point(-18.85, -28.7);
[1][116] = new Point(-18.7, -29.2);
[1][117] = new Point(-18.45, -29.5);
[1][118] = new Point(-18.25, -29.95);
[1][119] = new Point(-17.95, -30.35);
[1][120] = new Point(-17.8, -30.75);
[1][121] = new Point(-17.4, -31.2);
[1][122] = new Point(-17.15, -31.55);
[1][123] = new Point(-16.95, -31.9);
[1][124] = new Point(-16.7, -32.25);
[1][125] = new Point(-16.45, -32.6);
[1][126] = new Point(-16.2, -33);
[1][127] = new Point(-15.8, -33.35);
[1][128] = new Point(-15.55, -33.7);
[1][129] = new Point(-15.25, -34.1);
[1][130] = new Point(-15, -34.35);
[1][131] = new Point(-14.55, -34.8);
[1][132] = new Point(-14.3, -35.05);
[1][133] = new Point(-13.9, -35.4);
[1][134] = new Point(-13.7, -35.75);
[1][135] = new Point(-13.45, -35.95);
[1][136] = new Point(-13.05, -36.3);
[1][137] = new Point(-12.7, -36.6);
[1][138] = new Point(-12.35, -36.9);
[1][139] = new Point(-12, -37.2);
[1][140] = new Point(-11.6, -37.45);
[1][141] = new Point(-11.25, -37.75);
[1][142] = new Point(-10.9, -38.1);
[1][143] = new Point(-10.55, -38.25);
[1][144] = new Point(-10.05, -38.6);
[1][145] = new Point(-9.75, -38.8);
[1][146] = new Point(-9.4, -38.95);
[1][147] = new Point(-9.05, -39.2);
[1][148] = new Point(-8.6, -39.45);
[1][149] = new Point(-8.2, -39.75);
[1][150] = new Point(-7.75, -39.9);
[1][151] = new Point(-7.4, -40.15);
[1][152] = new Point(-6.95, -40.3);
[1][153] = new Point(-6.65, -40.55);
[1][154] = new Point(-6.1, -40.75);
[1][155] = new Point(-5.7, -40.85);
[1][156] = new Point(-5.25, -41);
[1][157] = new Point(-4.95, -41.15);
[1][158] = new Point(-4.55, -41.35);
[1][159] = new Point(-4.1, -41.45);
[1][160] = new Point(-3.6, -41.65);
[1][161] = new Point(-3.2, -41.7);
[1][162] = new Point(-2.8, -41.8);
[1][163] = new Point(-2.3, -41.95);
[1][164] = new Point(-1.9, -42.1);
[1][165] = new Point(-1.4, -42.2);
[1][166] = new Point(-1, -42.25);
[1][167] = new Point(-0.6, -42.3);
[1][168] = new Point(-0.15, -42.4);
[1][169] = new Point(0.25, -42.45);
[1][170] = new Point(0.75, -42.5);
[1][171] = new Point(1.2, -42.6);
[1][172] = new Point(1.65, -42.55);
[1][173] = new Point(2.1, -42.65);
[1][174] = new Point(2.55, -42.7);
[1][175] = new Point(3.05, -42.7);
[1][176] = new Point(3.45, -42.7);
[1][177] = new Point(3.9, -42.65);
[1][178] = new Point(4.4, -42.7);
[1][179] = new Point(4.85, -42.65);
[1][180] = new Point(5.2, -42.65);
[2][1] = new Point(3.1, 5.4);
[2][2] = new Point(2.75, 5.45);
[2][3] = new Point(2.35, 5.6);
[2][4] = new Point(2, 5.55);
[2][5] = new Point(1.7, 5.7);
[2][6] = new Point(1.3, 5.75);
[2][7] = new Point(0.85, 5.8);
[2][8] = new Point(0.55, 5.7);
[2][9] = new Point(0.15, 5.75);
[2][10] = new Point(-0.15, 5.8);
[2][11] = new Point(-0.45, 5.8);
[2][12] = new Point(-0.95, 5.75);
[2][13] = new Point(-1.3, 5.75);
[2][14] = new Point(-1.65, 5.7);
[2][15] = new Point(-2, 5.65);
[2][16] = new Point(-2.25, 5.65);
[2][17] = new Point(-2.6, 5.6);
[2][18] = new Point(-3, 5.45);
[2][19] = new Point(-3.35, 5.4);
[2][20] = new Point(-3.7, 5.4);
[2][21] = new Point(-4, 5.25);
[2][22] = new Point(-4.25, 5.1);
[2][23] = new Point(-4.75, 5.05);
[2][24] = new Point(-5, 4.9);
[2][25] = new Point(-5.25, 4.8);
[2][26] = new Point(-5.55, 4.7);
[2][27] = new Point(-5.85, 4.55);
[2][28] = new Point(-6.3, 4.35);
[2][29] = new Point(-6.6, 4.25);
[2][30] = new Point(-6.8, 4.05);
[2][31] = new Point(-7.05, 3.95);
[2][32] = new Point(-7.35, 3.7);
[2][33] = new Point(-7.6, 3.6);
[2][34] = new Point(-7.95, 3.35);
[2][35] = new Point(-8.2, 3.15);
[2][36] = new Point(-8.4, 2.95);
[2][37] = new Point(-8.65, 2.8);
[2][38] = new Point(-8.95, 2.5);
[2][39] = new Point(-9.25, 2.25);
[2][40] = new Point(-9.45, 2.1);
[2][41] = new Point(-9.7, 1.8);
[2][42] = new Point(-9.9, 1.55);
[2][43] = new Point(-10.1, 1.35);
[2][44] = new Point(-10.35, 1.05);
[2][45] = new Point(-10.75, 0.7);
[2][46] = new Point(-11.15, 0.4);
[2][47] = new Point(-11.6, 0.05);
[2][48] = new Point(-11.95, -0.35);
[2][49] = new Point(-12.35, -0.65);
[2][50] = new Point(-12.75, -0.9);
[2][51] = new Point(-13.2, -1.3);
[2][52] = new Point(-13.55, -1.65);
[2][53] = new Point(-13.9, -2.05);
[2][54] = new Point(-14.2, -2.35);
[2][55] = new Point(-14.65, -2.8);
[2][56] = new Point(-15.05, -3.25);
[2][57] = new Point(-15.4, -3.65);
[2][58] = new Point(-15.75, -4);
[2][59] = new Point(-16, -4.4);
[2][60] = new Point(-16.35, -4.75);
[2][61] = new Point(-16.65, -5.05);
[2][62] = new Point(-16.95, -5.4);
[2][63] = new Point(-17.25, -5.85);
[2][64] = new Point(-17.5, -6.3);
[2][65] = new Point(-17.8, -6.7);
[2][66] = new Point(-18.05, -7.05);
[2][67] = new Point(-18.3, -7.6);
[2][68] = new Point(-18.6, -8);
[2][69] = new Point(-18.8, -8.45);
[2][70] = new Point(-19.1, -8.8);
[2][71] = new Point(-19.25, -9.3);
[2][72] = new Point(-19.55, -9.65);
[2][73] = new Point(-19.7, -10.05);
[2][74] = new Point(-19.95, -10.5);
[2][75] = new Point(-20.1, -10.95);
[2][76] = new Point(-20.3, -11.3);
[2][77] = new Point(-20.4, -11.8);
[2][78] = new Point(-20.7, -12.35);
[2][79] = new Point(-20.85, -12.75);
[2][80] = new Point(-20.9, -13.2);
[2][81] = new Point(-21.1, -13.7);
[2][82] = new Point(-21.25, -14.1);
[2][83] = new Point(-21.25, -14.4);
[2][84] = new Point(-21.4, -14.85);
[2][85] = new Point(-21.55, -15.35);
[2][86] = new Point(-21.7, -15.75);
[2][87] = new Point(-21.7, -16.25);
[2][88] = new Point(-21.8, -16.65);
[2][89] = new Point(-21.85, -17.05);
[2][90] = new Point(-21.75, -17.5);
[2][91] = new Point(-21.85, -18.05);
[2][92] = new Point(-21.75, -18.5);
[2][93] = new Point(-21.75, -18.95);
[2][94] = new Point(-21.6, -19.45);
[2][95] = new Point(-21.55, -19.9);
[2][96] = new Point(-21.55, -20.35);
[2][97] = new Point(-21.5, -20.9);
[2][98] = new Point(-21.35, -21.35);
[2][99] = new Point(-21.35, -21.75);
[2][100] = new Point(-21.15, -22.15);
[2][101] = new Point(-21.1, -22.65);
[2][102] = new Point(-21, -23.15);
[2][103] = new Point(-20.85, -23.6);
[2][104] = new Point(-20.7, -24);
[2][105] = new Point(-20.6, -24.55);
[2][106] = new Point(-20.4, -24.9);
[2][107] = new Point(-20.35, -25.35);
[2][108] = new Point(-20.1, -25.85);
[2][109] = new Point(-19.95, -26.3);
[2][110] = new Point(-19.8, -26.7);
[2][111] = new Point(-19.65, -27.1);
[2][112] = new Point(-19.5, -27.45);
[2][113] = new Point(-19.2, -27.85);
[2][114] = new Point(-19.05, -28.3);
[2][115] = new Point(-18.85, -28.7);
[2][116] = new Point(-18.7, -29.2);
[2][117] = new Point(-18.45, -29.5);
[2][118] = new Point(-18.25, -29.95);
[2][119] = new Point(-17.95, -30.35);
[2][120] = new Point(-17.8, -30.75);
[2][121] = new Point(-17.4, -31.2);
[2][122] = new Point(-17.15, -31.55);
[2][123] = new Point(-16.95, -31.9);
[2][124] = new Point(-16.7, -32.25);
[2][125] = new Point(-16.45, -32.6);
[2][126] = new Point(-16.2, -33);
[2][127] = new Point(-15.8, -33.35);
[2][128] = new Point(-15.55, -33.7);
[2][129] = new Point(-15.25, -34.1);
[2][130] = new Point(-15, -34.35);
[2][131] = new Point(-14.55, -34.8);
[2][132] = new Point(-14.3, -35.05);
[2][133] = new Point(-13.9, -35.4);
[2][134] = new Point(-13.7, -35.75);
[2][135] = new Point(-13.45, -35.95);
[2][136] = new Point(-13.05, -36.3);
[2][137] = new Point(-12.7, -36.6);
[2][138] = new Point(-12.35, -36.9);
[2][139] = new Point(-12, -37.2);
[2][140] = new Point(-11.6, -37.45);
[2][141] = new Point(-11.25, -37.75);
[2][142] = new Point(-10.9, -38.1);
[2][143] = new Point(-10.55, -38.25);
[2][144] = new Point(-10.05, -38.6);
[2][145] = new Point(-9.75, -38.8);
[2][146] = new Point(-9.4, -38.95);
[2][147] = new Point(-9.05, -39.2);
[2][148] = new Point(-8.6, -39.45);
[2][149] = new Point(-8.2, -39.75);
[2][150] = new Point(-7.75, -39.9);
[2][151] = new Point(-7.4, -40.15);
[2][152] = new Point(-6.95, -40.3);
[2][153] = new Point(-6.65, -40.55);
[2][154] = new Point(-6.1, -40.75);
[2][155] = new Point(-5.7, -40.85);
[2][156] = new Point(-5.25, -41);
[2][157] = new Point(-4.95, -41.15);
[2][158] = new Point(-4.55, -41.35);
[2][159] = new Point(-4.1, -41.45);
[2][160] = new Point(-3.6, -41.65);
[2][161] = new Point(-3.2, -41.7);
[2][162] = new Point(-2.8, -41.8);
[2][163] = new Point(-2.3, -41.95);
[2][164] = new Point(-1.9, -42.1);
[2][165] = new Point(-1.4, -42.2);
[2][166] = new Point(-1, -42.25);
[2][167] = new Point(-0.6, -42.3);
[2][168] = new Point(-0.15, -42.4);
[2][169] = new Point(0.25, -42.45);
[2][170] = new Point(0.75, -42.5);
[2][171] = new Point(1.2, -42.6);
[2][172] = new Point(1.65, -42.55);
[2][173] = new Point(2.1, -42.65);
[2][174] = new Point(2.55, -42.7);
[2][175] = new Point(3.05, -42.7);
[2][176] = new Point(3.45, -42.7);
[2][177] = new Point(3.9, -42.65);
[2][178] = new Point(4.4, -42.7);
[2][179] = new Point(4.85, -42.65);
[2][180] = new Point(5.2, -42.65);
[4][1] = new Point(3.1, 23.4);
[4][2] = new Point(2.4, 23.4);
[4][3] = new Point(1.75, 23.6);
[4][4] = new Point(1.05, 23.55);
[4][5] = new Point(0.4, 23.65);
[4][6] = new Point(-0.25, 23.65);
[4][7] = new Point(-1.1, 23.65);
[4][8] = new Point(-1.75, 23.55);
[4][9] = new Point(-2.4, 23.55);
[4][10] = new Point(-3.05, 23.55);
[4][11] = new Point(-3.65, 23.5);
[4][12] = new Point(-4.55, 23.35);
[4][13] = new Point(-5.2, 23.3);
[4][14] = new Point(-5.85, 23.2);
[4][15] = new Point(-6.5, 23.05);
[4][16] = new Point(-7.05, 23);
[4][17] = new Point(-7.7, 22.85);
[4][18] = new Point(-8.5, 22.6);
[4][19] = new Point(-9.15, 22.45);
[4][20] = new Point(-9.75, 22.3);
[4][21] = new Point(-10.4, 22.05);
[4][22] = new Point(-10.95, 21.8);
[4][23] = new Point(-11.8, 21.6);
[4][24] = new Point(-12.3, 21.35);
[4][25] = new Point(-12.9, 21.1);
[4][26] = new Point(-13.45, 20.85);
[4][27] = new Point(-14, 20.55);
[4][28] = new Point(-14.8, 20.2);
[4][29] = new Point(-15.4, 19.9);
[4][30] = new Point(-15.85, 19.6);
[4][31] = new Point(-16.4, 19.3);
[4][32] = new Point(-17, 18.9);
[4][33] = new Point(-17.5, 18.6);
[4][34] = new Point(-18.15, 18.15);
[4][35] = new Point(-18.7, 17.75);
[4][36] = new Point(-19.15, 17.35);
[4][37] = new Point(-19.65, 17);
[4][38] = new Point(-20.15, 16.55);
[4][39] = new Point(-20.75, 16.05);
[4][40] = new Point(-21.2, 15.7);
[4][41] = new Point(-21.7, 15.2);
[4][42] = new Point(-22.15, 14.7);
[4][43] = new Point(-22.55, 14.3);
[4][44] = new Point(-23.05, 13.8);
[4][45] = new Point(-23.7, 13.15);
[4][46] = new Point(-24.3, 12.65);
[4][47] = new Point(-25, 12.05);
[4][48] = new Point(-25.55, 11.4);
[4][49] = new Point(-26.15, 10.85);
[4][50] = new Point(-26.75, 10.35);
[4][51] = new Point(-27.4, 9.7);
[4][52] = new Point(-27.9, 9.15);
[4][53] = new Point(-28.5, 8.5);
[4][54] = new Point(-29, 7.9);
[4][55] = new Point(-29.65, 7.2);
[4][56] = new Point(-30.15, 6.45);
[4][57] = new Point(-30.7, 5.8);
[4][58] = new Point(-31.2, 5.15);
[4][59] = new Point(-31.65, 4.5);
[4][60] = new Point(-32.15, 3.85);
[4][61] = new Point(-32.6, 3.25);
[4][62] = new Point(-33, 2.65);
[4][63] = new Point(-33.45, 1.9);
[4][64] = new Point(-33.85, 1.2);
[4][65] = new Point(-34.25, 0.5);
[4][66] = new Point(-34.7, -0.15);
[4][67] = new Point(-35.05, -1.05);
[4][68] = new Point(-35.45, -1.75);
[4][69] = new Point(-35.75, -2.5);
[4][70] = new Point(-36.15, -3.15);
[4][71] = new Point(-36.45, -3.95);
[4][72] = new Point(-36.8, -4.6);
[4][73] = new Point(-37.05, -5.35);
[4][74] = new Point(-37.35, -6.05);
[4][75] = new Point(-37.6, -6.8);
[4][76] = new Point(-37.85, -7.5);
[4][77] = new Point(-38.05, -8.3);
[4][78] = new Point(-38.4, -9.2);
[4][79] = new Point(-38.65, -9.9);
[4][80] = new Point(-38.7, -10.7);
[4][81] = new Point(-38.95, -11.5);
[4][82] = new Point(-39.15, -12.2);
[4][83] = new Point(-39.2, -12.85);
[4][84] = new Point(-39.35, -13.55);
[4][85] = new Point(-39.55, -14.4);
[4][86] = new Point(-39.7, -15.15);
[4][87] = new Point(-39.7, -15.9);
[4][88] = new Point(-39.8, -16.65);
[4][89] = new Point(-39.85, -17.3);
[4][90] = new Point(-39.75, -18.1);
[4][91] = new Point(-39.8, -18.9);
[4][92] = new Point(-39.7, -19.7);
[4][93] = new Point(-39.7, -20.45);
[4][94] = new Point(-39.5, -21.25);
[4][95] = new Point(-39.4, -22.05);
[4][96] = new Point(-39.35, -22.8);
[4][97] = new Point(-39.25, -23.6);
[4][98] = new Point(-39.1, -24.4);
[4][99] = new Point(-39, -25.1);
[4][100] = new Point(-38.8, -25.75);
[4][101] = new Point(-38.65, -26.55);
[4][102] = new Point(-38.5, -27.35);
[4][103] = new Point(-38.25, -28.1);
[4][104] = new Point(-38.05, -28.8);
[4][105] = new Point(-37.85, -29.65);
[4][106] = new Point(-37.55, -30.35);
[4][107] = new Point(-37.4, -31.1);
[4][108] = new Point(-37.05, -31.85);
[4][109] = new Point(-36.8, -32.6);
[4][110] = new Point(-36.55, -33.3);
[4][111] = new Point(-36.3, -34);
[4][112] = new Point(-36, -34.55);
[4][113] = new Point(-35.6, -35.3);
[4][114] = new Point(-35.3, -36);
[4][115] = new Point(-35, -36.7);
[4][116] = new Point(-34.7, -37.45);
[4][117] = new Point(-34.25, -38.05);
[4][118] = new Point(-33.9, -38.75);
[4][119] = new Point(-33.5, -39.4);
[4][120] = new Point(-33.15, -40.1);
[4][121] = new Point(-32.6, -40.8);
[4][122] = new Point(-32.2, -41.4);
[4][123] = new Point(-31.85, -42);
[4][124] = new Point(-31.4, -42.6);
[4][125] = new Point(-30.95, -43.2);
[4][126] = new Point(-30.5, -43.85);
[4][127] = new Point(-29.95, -44.4);
[4][128] = new Point(-29.5, -45.05);
[4][129] = new Point(-29, -45.65);
[4][130] = new Point(-28.55, -46.2);
[4][131] = new Point(-27.9, -46.85);
[4][132] = new Point(-27.4, -47.35);
[4][133] = new Point(-26.8, -47.95);
[4][134] = new Point(-26.45, -48.45);
[4][135] = new Point(-25.95, -48.85);
[4][136] = new Point(-25.35, -49.45);
[4][137] = new Point(-24.75, -49.95);
[4][138] = new Point(-24.2, -50.45);
[4][139] = new Point(-23.6, -50.95);
[4][140] = new Point(-22.95, -51.4);
[4][141] = new Point(-22.35, -51.9);
[4][142] = new Point(-21.75, -52.4);
[4][143] = new Point(-21.15, -52.8);
[4][144] = new Point(-20.4, -53.3);
[4][145] = new Point(-19.85, -53.65);
[4][146] = new Point(-19.25, -54);
[4][147] = new Point(-18.65, -54.4);
[4][148] = new Point(-17.95, -54.85);
[4][149] = new Point(-17.3, -55.3);
[4][150] = new Point(-16.55, -55.6);
[4][151] = new Point(-15.95, -55.95);
[4][152] = new Point(-15.2, -56.25);
[4][153] = new Point(-14.6, -56.65);
[4][154] = new Point(-13.8, -56.95);
[4][155] = new Point(-13.1, -57.2);
[4][156] = new Point(-12.4, -57.5);
[4][157] = new Point(-11.85, -57.8);
[4][158] = new Point(-11.15, -58.05);
[4][159] = new Point(-10.45, -58.3);
[4][160] = new Point(-9.65, -58.6);
[4][161] = new Point(-8.95, -58.75);
[4][162] = new Point(-8.25, -58.95);
[4][163] = new Point(-7.45, -59.2);
[4][164] = new Point(-6.75, -59.4);
[4][165] = new Point(-5.9, -59.6);
[4][166] = new Point(-5.2, -59.75);
[4][167] = new Point(-4.5, -59.9);
[4][168] = new Point(-3.75, -60.05);
[4][169] = new Point(-3.1, -60.15);
[4][170] = new Point(-2.3, -60.25);
[4][171] = new Point(-1.55, -60.35);
[4][172] = new Point(-0.8, -60.4);
[4][173] = new Point(0, -60.5);
[4][174] = new Point(0.7, -60.6);
[4][175] = new Point(1.55, -60.65);
[4][176] = new Point(2.25, -60.7);
[4][177] = new Point(3.05, -60.65);
[4][178] = new Point(3.8, -60.7);
[4][179] = new Point(4.6, -60.65);
[4][180] = new Point(5.2, -60.65);
[5][1] = new Point(3.1, 5.4);
[5][2] = new Point(2.75, 5.45);
[5][3] = new Point(2.35, 5.6);
[5][4] = new Point(2, 5.55);
[5][5] = new Point(1.7, 5.7);
[5][6] = new Point(1.3, 5.75);
[5][7] = new Point(0.85, 5.8);
[5][8] = new Point(0.55, 5.7);
[5][9] = new Point(0.15, 5.75);
[5][10] = new Point(-0.15, 5.8);
[5][11] = new Point(-0.45, 5.8);
[5][12] = new Point(-0.95, 5.75);
[5][13] = new Point(-1.3, 5.75);
[5][14] = new Point(-1.65, 5.7);
[5][15] = new Point(-2, 5.65);
[5][16] = new Point(-2.25, 5.65);
[5][17] = new Point(-2.6, 5.6);
[5][18] = new Point(-3, 5.45);
[5][19] = new Point(-3.35, 5.4);
[5][20] = new Point(-3.7, 5.4);
[5][21] = new Point(-4, 5.25);
[5][22] = new Point(-4.25, 5.1);
[5][23] = new Point(-4.75, 5.05);
[5][24] = new Point(-5, 4.9);
[5][25] = new Point(-5.25, 4.8);
[5][26] = new Point(-5.55, 4.7);
[5][27] = new Point(-5.85, 4.55);
[5][28] = new Point(-6.3, 4.35);
[5][29] = new Point(-6.6, 4.25);
[5][30] = new Point(-6.8, 4.05);
[5][31] = new Point(-7.05, 3.95);
[5][32] = new Point(-7.35, 3.7);
[5][33] = new Point(-7.6, 3.6);
[5][34] = new Point(-7.95, 3.35);
[5][35] = new Point(-8.2, 3.15);
[5][36] = new Point(-8.4, 2.95);
[5][37] = new Point(-8.65, 2.8);
[5][38] = new Point(-8.95, 2.5);
[5][39] = new Point(-9.25, 2.25);
[5][40] = new Point(-9.45, 2.1);
[5][41] = new Point(-9.7, 1.8);
[5][42] = new Point(-9.9, 1.55);
[5][43] = new Point(-10.1, 1.35);
[5][44] = new Point(-10.35, 1.05);
[5][45] = new Point(-10.75, 0.7);
[5][46] = new Point(-11.15, 0.4);
[5][47] = new Point(-11.6, 0.05);
[5][48] = new Point(-11.95, -0.35);
[5][49] = new Point(-12.35, -0.65);
[5][50] = new Point(-12.75, -0.9);
[5][51] = new Point(-13.2, -1.3);
[5][52] = new Point(-13.55, -1.65);
[5][53] = new Point(-13.9, -2.05);
[5][54] = new Point(-14.2, -2.35);
[5][55] = new Point(-14.65, -2.8);
[5][56] = new Point(-15.05, -3.25);
[5][57] = new Point(-15.4, -3.65);
[5][58] = new Point(-15.75, -4);
[5][59] = new Point(-16, -4.4);
[5][60] = new Point(-16.35, -4.75);
[5][61] = new Point(-16.65, -5.05);
[5][62] = new Point(-16.95, -5.4);
[5][63] = new Point(-17.25, -5.85);
[5][64] = new Point(-17.5, -6.3);
[5][65] = new Point(-17.8, -6.7);
[5][66] = new Point(-18.05, -7.05);
[5][67] = new Point(-18.3, -7.6);
[5][68] = new Point(-18.6, -8);
[5][69] = new Point(-18.8, -8.45);
[5][70] = new Point(-19.1, -8.8);
[5][71] = new Point(-19.25, -9.3);
[5][72] = new Point(-19.55, -9.65);
[5][73] = new Point(-19.7, -10.05);
[5][74] = new Point(-19.95, -10.5);
[5][75] = new Point(-20.1, -10.95);
[5][76] = new Point(-20.3, -11.3);
[5][77] = new Point(-20.4, -11.8);
[5][78] = new Point(-20.7, -12.35);
[5][79] = new Point(-20.85, -12.75);
[5][80] = new Point(-20.9, -13.2);
[5][81] = new Point(-21.1, -13.7);
[5][82] = new Point(-21.25, -14.1);
[5][83] = new Point(-21.25, -14.4);
[5][84] = new Point(-21.4, -14.85);
[5][85] = new Point(-21.55, -15.35);
[5][86] = new Point(-21.7, -15.75);
[5][87] = new Point(-21.7, -16.25);
[5][88] = new Point(-21.8, -16.65);
[5][89] = new Point(-21.85, -17.05);
[5][90] = new Point(-21.75, -17.5);
[5][91] = new Point(-21.85, -18.05);
[5][92] = new Point(-21.75, -18.5);
[5][93] = new Point(-21.75, -18.95);
[5][94] = new Point(-21.6, -19.45);
[5][95] = new Point(-21.55, -19.9);
[5][96] = new Point(-21.55, -20.35);
[5][97] = new Point(-21.5, -20.9);
[5][98] = new Point(-21.35, -21.35);
[5][99] = new Point(-21.35, -21.75);
[5][100] = new Point(-21.15, -22.15);
[5][101] = new Point(-21.1, -22.65);
[5][102] = new Point(-21, -23.15);
[5][103] = new Point(-20.85, -23.6);
[5][104] = new Point(-20.7, -24);
[5][105] = new Point(-20.6, -24.55);
[5][106] = new Point(-20.4, -24.9);
[5][107] = new Point(-20.35, -25.35);
[5][108] = new Point(-20.1, -25.85);
[5][109] = new Point(-19.95, -26.3);
[5][110] = new Point(-19.8, -26.7);
[5][111] = new Point(-19.65, -27.1);
[5][112] = new Point(-19.5, -27.45);
[5][113] = new Point(-19.2, -27.85);
[5][114] = new Point(-19.05, -28.3);
[5][115] = new Point(-18.85, -28.7);
[5][116] = new Point(-18.7, -29.2);
[5][117] = new Point(-18.45, -29.5);
[5][118] = new Point(-18.25, -29.95);
[5][119] = new Point(-17.95, -30.35);
[5][120] = new Point(-17.8, -30.75);
[5][121] = new Point(-17.4, -31.2);
[5][122] = new Point(-17.15, -31.55);
[5][123] = new Point(-16.95, -31.9);
[5][124] = new Point(-16.7, -32.25);
[5][125] = new Point(-16.45, -32.6);
[5][126] = new Point(-16.2, -33);
[5][127] = new Point(-15.8, -33.35);
[5][128] = new Point(-15.55, -33.7);
[5][129] = new Point(-15.25, -34.1);
[5][130] = new Point(-15, -34.35);
[5][131] = new Point(-14.55, -34.8);
[5][132] = new Point(-14.3, -35.05);
[5][133] = new Point(-13.9, -35.4);
[5][134] = new Point(-13.7, -35.75);
[5][135] = new Point(-13.45, -35.95);
[5][136] = new Point(-13.05, -36.3);
[5][137] = new Point(-12.7, -36.6);
[5][138] = new Point(-12.35, -36.9);
[5][139] = new Point(-12, -37.2);
[5][140] = new Point(-11.6, -37.45);
[5][141] = new Point(-11.25, -37.75);
[5][142] = new Point(-10.9, -38.1);
[5][143] = new Point(-10.55, -38.25);
[5][144] = new Point(-10.05, -38.6);
[5][145] = new Point(-9.75, -38.8);
[5][146] = new Point(-9.4, -38.95);
[5][147] = new Point(-9.05, -39.2);
[5][148] = new Point(-8.6, -39.45);
[5][149] = new Point(-8.2, -39.75);
[5][150] = new Point(-7.75, -39.9);
[5][151] = new Point(-7.4, -40.15);
[5][152] = new Point(-6.95, -40.3);
[5][153] = new Point(-6.65, -40.55);
[5][154] = new Point(-6.1, -40.75);
[5][155] = new Point(-5.7, -40.85);
[5][156] = new Point(-5.25, -41);
[5][157] = new Point(-4.95, -41.15);
[5][158] = new Point(-4.55, -41.35);
[5][159] = new Point(-4.1, -41.45);
[5][160] = new Point(-3.6, -41.65);
[5][161] = new Point(-3.2, -41.7);
[5][162] = new Point(-2.8, -41.8);
[5][163] = new Point(-2.3, -41.95);
[5][164] = new Point(-1.9, -42.1);
[5][165] = new Point(-1.4, -42.2);
[5][166] = new Point(-1, -42.25);
[5][167] = new Point(-0.6, -42.3);
[5][168] = new Point(-0.15, -42.4);
[5][169] = new Point(0.25, -42.45);
[5][170] = new Point(0.75, -42.5);
[5][171] = new Point(1.2, -42.6);
[5][172] = new Point(1.65, -42.55);
[5][173] = new Point(2.1, -42.65);
[5][174] = new Point(2.55, -42.7);
[5][175] = new Point(3.05, -42.7);
[5][176] = new Point(3.45, -42.7);
[5][177] = new Point(3.9, -42.65);
[5][178] = new Point(4.4, -42.7);
[5][179] = new Point(4.85, -42.65);
[5][180] = new Point(5.2, -42.65);
[6][1] = new Point(-0.9, 18.4);
[6][2] = new Point(-1.55, 18.4);
[6][3] = new Point(-2.25, 18.3);
[6][4] = new Point(-2.95, 18.2);
[6][5] = new Point(-3.6, 18.2);
[6][6] = new Point(-4.35, 18.15);
[6][7] = new Point(-5.1, 18.05);
[6][8] = new Point(-5.8, 17.95);
[6][9] = new Point(-6.5, 17.8);
[6][10] = new Point(-7.15, 17.7);
[6][11] = new Point(-7.85, 17.55);
[6][12] = new Point(-8.65, 17.35);
[6][13] = new Point(-9.3, 17.25);
[6][14] = new Point(-9.9, 17.05);
[6][15] = new Point(-10.6, 16.85);
[6][16] = new Point(-11.2, 16.7);
[6][17] = new Point(-11.9, 16.45);
[6][18] = new Point(-12.7, 16.3);
[6][19] = new Point(-13.3, 16);
[6][20] = new Point(-13.95, 15.8);
[6][21] = new Point(-14.6, 15.6);
[6][22] = new Point(-15.25, 15.3);
[6][23] = new Point(-16.05, 14.95);
[6][24] = new Point(-16.6, 14.65);
[6][25] = new Point(-17.25, 14.35);
[6][26] = new Point(-17.85, 14.1);
[6][27] = new Point(-18.5, 13.8);
[6][28] = new Point(-19.2, 13.35);
[6][29] = new Point(-19.85, 13.1);
[6][30] = new Point(-20.4, 12.8);
[6][31] = new Point(-20.95, 12.4);
[6][32] = new Point(-21.55, 12.1);
[6][33] = new Point(-22.2, 11.7);
[6][34] = new Point(-22.85, 11.3);
[6][35] = new Point(-23.4, 10.9);
[6][36] = new Point(-23.95, 10.45);
[6][37] = new Point(-24.45, 10.05);
[6][38] = new Point(-25, 9.7);
[6][39] = new Point(-25.7, 9.1);
[6][40] = new Point(-26.25, 8.7);
[6][41] = new Point(-26.65, 8.3);
[6][42] = new Point(-27.2, 7.85);
[6][43] = new Point(-27.7, 7.4);
[6][44] = new Point(-28.3, 6.95);
[6][45] = new Point(-28.75, 6.35);
[6][46] = new Point(-29.25, 5.85);
[6][47] = new Point(-29.6, 5.45);
[6][48] = new Point(-30.05, 4.9);
[6][49] = new Point(-30.45, 4.35);
[6][50] = new Point(-30.9, 3.9);
[6][51] = new Point(-31.25, 3.35);
[6][52] = new Point(-31.7, 2.8);
[6][53] = new Point(-32.05, 2.25);
[6][54] = new Point(-32.4, 1.7);
[6][55] = new Point(-32.75, 1.15);
[6][56] = new Point(-33.15, 0.55);
[6][57] = new Point(-33.5, 0);
[6][58] = new Point(-33.85, -0.65);
[6][59] = new Point(-34.2, -1.2);
[6][60] = new Point(-34.45, -1.8);
[6][61] = new Point(-34.75, -2.35);
[6][62] = new Point(-35.1, -3);
[6][63] = new Point(-35.4, -3.6);
[6][64] = new Point(-35.6, -4.1);
[6][65] = new Point(-35.9, -4.7);
[6][66] = new Point(-36.1, -5.4);
[6][67] = new Point(-36.45, -6);
[6][68] = new Point(-36.7, -6.75);
[6][69] = new Point(-36.95, -7.3);
[6][70] = new Point(-37.1, -7.95);
[6][71] = new Point(-37.3, -8.6);
[6][72] = new Point(-37.55, -9.2);
[6][73] = new Point(-37.7, -9.8);
[6][74] = new Point(-37.85, -10.5);
[6][75] = new Point(-38.05, -11.1);
[6][76] = new Point(-38.15, -11.75);
[6][77] = new Point(-38.35, -12.4);
[6][78] = new Point(-38.5, -13.15);
[6][79] = new Point(-38.55, -13.75);
[6][80] = new Point(-38.65, -14.45);
[6][81] = new Point(-38.75, -15);
[6][82] = new Point(-38.85, -15.7);
[6][83] = new Point(-38.9, -16.3);
[6][84] = new Point(-38.95, -17.1);
[6][85] = new Point(-39, -17.65);
[6][86] = new Point(-39.05, -18.3);
[6][87] = new Point(-39.05, -19);
[6][88] = new Point(-39.05, -19.65);
[6][89] = new Point(-38.9, -20.25);
[6][90] = new Point(-38.85, -20.9);
[6][91] = new Point(-38.7, -21.65);
[6][92] = new Point(-38.5, -22.3);
[6][93] = new Point(-38.35, -23);
[6][94] = new Point(-38.15, -23.7);
[6][95] = new Point(-38, -24.4);
[6][96] = new Point(-37.8, -25.1);
[6][97] = new Point(-37.65, -25.8);
[6][98] = new Point(-37.35, -26.5);
[6][99] = new Point(-37.2, -27.25);
[6][100] = new Point(-36.95, -27.75);
[6][101] = new Point(-36.8, -28.45);
[6][102] = new Point(-36.5, -29.2);
[6][103] = new Point(-36.15, -29.8);
[6][104] = new Point(-35.9, -30.45);
[6][105] = new Point(-35.6, -31.1);
[6][106] = new Point(-35.3, -31.85);
[6][107] = new Point(-35, -32.5);
[6][108] = new Point(-34.75, -33.15);
[6][109] = new Point(-34.3, -33.85);
[6][110] = new Point(-34.05, -34.5);
[6][111] = new Point(-33.7, -35.15);
[6][112] = new Point(-33.35, -35.7);
[6][113] = new Point(-33, -36.3);
[6][114] = new Point(-32.6, -37);
[6][115] = new Point(-32.25, -37.6);
[6][116] = new Point(-31.85, -38.25);
[6][117] = new Point(-31.45, -38.85);
[6][118] = new Point(-31.1, -39.45);
[6][119] = new Point(-30.65, -40.1);
[6][120] = new Point(-30.25, -40.65);
[6][121] = new Point(-29.75, -41.3);
[6][122] = new Point(-29.35, -41.9);
[6][123] = new Point(-28.95, -42.35);
[6][124] = new Point(-28.45, -43);
[6][125] = new Point(-28.05, -43.55);
[6][126] = new Point(-27.5, -44.05);
[6][127] = new Point(-27.05, -44.65);
[6][128] = new Point(-26.55, -45.15);
[6][129] = new Point(-26, -45.8);
[6][130] = new Point(-25.45, -46.35);
[6][131] = new Point(-24.95, -46.9);
[6][132] = new Point(-24.45, -47.4);
[6][133] = new Point(-23.95, -47.9);
[6][134] = new Point(-23.5, -48.45);
[6][135] = new Point(-22.8, -48.9);
[6][136] = new Point(-22.35, -49.35);
[6][137] = new Point(-21.75, -49.85);
[6][138] = new Point(-21.15, -50.3);
[6][139] = new Point(-20.6, -50.85);
[6][140] = new Point(-19.95, -51.3);
[6][141] = new Point(-19.4, -51.75);
[6][142] = new Point(-18.8, -52.2);
[6][143] = new Point(-18.25, -52.6);
[6][144] = new Point(-17.6, -53.1);
[6][145] = new Point(-16.95, -53.5);
[6][146] = new Point(-16.45, -53.85);
[6][147] = new Point(-15.85, -54.25);
[6][148] = new Point(-15.2, -54.75);
[6][149] = new Point(-14.6, -55);
[6][150] = new Point(-13.95, -55.45);
[6][151] = new Point(-13.3, -55.75);
[6][152] = new Point(-12.6, -56.15);
[6][153] = new Point(-11.95, -56.55);
[6][154] = new Point(-11.3, -56.85);
[6][155] = new Point(-10.6, -57.25);
[6][156] = new Point(-9.95, -57.45);
[6][157] = new Point(-9.4, -57.8);
[6][158] = new Point(-8.75, -58.15);
[6][159] = new Point(-7.95, -58.35);
[6][160] = new Point(-7.35, -58.7);
[6][161] = new Point(-6.65, -58.9);
[6][162] = new Point(-6, -59.2);
[6][163] = new Point(-5.25, -59.5);
[6][164] = new Point(-4.55, -59.65);
[6][165] = new Point(-3.9, -59.95);
[6][166] = new Point(-3.1, -60.2);
[6][167] = new Point(-2.45, -60.35);
[6][168] = new Point(-1.65, -60.6);
[6][169] = new Point(-1.1, -60.7);
[6][170] = new Point(-0.35, -60.95);
[6][171] = new Point(0.35, -61.15);
[6][172] = new Point(1.1, -61.25);
[6][173] = new Point(1.8, -61.35);
[6][174] = new Point(2.55, -61.55);
[6][175] = new Point(3.25, -61.65);
[6][176] = new Point(3.95, -61.8);
[6][177] = new Point(4.65, -61.85);
[6][178] = new Point(5.4, -62);
[6][179] = new Point(6.1, -62.1);
[6][180] = new Point(6.7, -62.15);
[7][1] = new Point(3.1, 8.4);
[7][2] = new Point(2.7, 8.45);
[7][3] = new Point(2.25, 8.6);
[7][4] = new Point(1.85, 8.55);
[7][5] = new Point(1.45, 8.65);
[7][6] = new Point(1.05, 8.7);
[7][7] = new Point(0.5, 8.75);
[7][8] = new Point(0.15, 8.7);
[7][9] = new Point(-0.25, 8.75);
[7][10] = new Point(-0.65, 8.75);
[7][11] = new Point(-1, 8.75);
[7][12] = new Point(-1.55, 8.65);
[7][13] = new Point(-1.95, 8.65);
[7][14] = new Point(-2.35, 8.6);
[7][15] = new Point(-2.75, 8.55);
[7][16] = new Point(-3.05, 8.55);
[7][17] = new Point(-3.45, 8.45);
[7][18] = new Point(-3.9, 8.3);
[7][19] = new Point(-4.3, 8.25);
[7][20] = new Point(-4.7, 8.2);
[7][21] = new Point(-5.1, 8.05);
[7][22] = new Point(-5.4, 7.9);
[7][23] = new Point(-5.95, 7.8);
[7][24] = new Point(-6.2, 7.65);
[7][25] = new Point(-6.55, 7.55);
[7][26] = new Point(-6.85, 7.4);
[7][27] = new Point(-7.2, 7.2);
[7][28] = new Point(-7.7, 7);
[7][29] = new Point(-8.1, 6.85);
[7][30] = new Point(-8.3, 6.65);
[7][31] = new Point(-8.6, 6.5);
[7][32] = new Point(-8.95, 6.25);
[7][33] = new Point(-9.25, 6.1);
[7][34] = new Point(-9.65, 5.8);
[7][35] = new Point(-9.95, 5.55);
[7][36] = new Point(-10.2, 5.35);
[7][37] = new Point(-10.5, 5.15);
[7][38] = new Point(-10.8, 4.85);
[7][39] = new Point(-11.15, 4.55);
[7][40] = new Point(-11.4, 4.35);
[7][41] = new Point(-11.7, 4.05);
[7][42] = new Point(-11.95, 3.75);
[7][43] = new Point(-12.15, 3.5);
[7][44] = new Point(-12.45, 3.2);
[7][45] = new Point(-12.9, 2.75);
[7][46] = new Point(-13.35, 2.45);
[7][47] = new Point(-13.85, 2.05);
[7][48] = new Point(-14.2, 1.6);
[7][49] = new Point(-14.65, 1.25);
[7][50] = new Point(-15.1, 0.95);
[7][51] = new Point(-15.55, 0.5);
[7][52] = new Point(-15.95, 0.15);
[7][53] = new Point(-16.35, -0.3);
[7][54] = new Point(-16.7, -0.65);
[7][55] = new Point(-17.15, -1.1);
[7][56] = new Point(-17.55, -1.65);
[7][57] = new Point(-17.95, -2.05);
[7][58] = new Point(-18.3, -2.5);
[7][59] = new Point(-18.65, -2.9);
[7][60] = new Point(-19, -3.3);
[7][61] = new Point(-19.3, -3.7);
[7][62] = new Point(-19.6, -4.05);
[7][63] = new Point(-19.95, -4.55);
[7][64] = new Point(-20.25, -5.05);
[7][65] = new Point(-20.55, -5.5);
[7][66] = new Point(-20.85, -5.9);
[7][67] = new Point(-21.1, -6.5);
[7][68] = new Point(-21.4, -6.95);
[7][69] = new Point(-21.65, -7.45);
[7][70] = new Point(-21.95, -7.85);
[7][71] = new Point(-22.15, -8.4);
[7][72] = new Point(-22.4, -8.8);
[7][73] = new Point(-22.6, -9.3);
[7][74] = new Point(-22.85, -9.75);
[7][75] = new Point(-23, -10.25);
[7][76] = new Point(-23.2, -10.65);
[7][77] = new Point(-23.35, -11.25);
[7][78] = new Point(-23.65, -11.8);
[7][79] = new Point(-23.85, -12.3);
[7][80] = new Point(-23.85, -12.8);
[7][81] = new Point(-24.05, -13.3);
[7][82] = new Point(-24.25, -13.8);
[7][83] = new Point(-24.25, -14.15);
[7][84] = new Point(-24.4, -14.6);
[7][85] = new Point(-24.55, -15.2);
[7][86] = new Point(-24.7, -15.65);
[7][87] = new Point(-24.7, -16.2);
[7][88] = new Point(-24.8, -16.65);
[7][89] = new Point(-24.85, -17.1);
[7][90] = new Point(-24.75, -17.6);
[7][91] = new Point(-24.8, -18.15);
[7][92] = new Point(-24.75, -18.7);
[7][93] = new Point(-24.75, -19.2);
[7][94] = new Point(-24.6, -19.75);
[7][95] = new Point(-24.55, -20.25);
[7][96] = new Point(-24.5, -20.8);
[7][97] = new Point(-24.45, -21.35);
[7][98] = new Point(-24.3, -21.85);
[7][99] = new Point(-24.3, -22.3);
[7][100] = new Point(-24.1, -22.75);
[7][101] = new Point(-24, -23.3);
[7][102] = new Point(-23.9, -23.85);
[7][103] = new Point(-23.75, -24.35);
[7][104] = new Point(-23.6, -24.8);
[7][105] = new Point(-23.5, -25.4);
[7][106] = new Point(-23.25, -25.85);
[7][107] = new Point(-23.15, -26.3);
[7][108] = new Point(-22.95, -26.85);
[7][109] = new Point(-22.75, -27.35);
[7][110] = new Point(-22.6, -27.8);
[7][111] = new Point(-22.4, -28.25);
[7][112] = new Point(-22.25, -28.65);
[7][113] = new Point(-21.95, -29.1);
[7][114] = new Point(-21.8, -29.6);
[7][115] = new Point(-21.55, -30.05);
[7][116] = new Point(-21.35, -30.55);
[7][117] = new Point(-21.1, -30.95);
[7][118] = new Point(-20.85, -31.45);
[7][119] = new Point(-20.55, -31.85);
[7][120] = new Point(-20.35, -32.3);
[7][121] = new Point(-19.95, -32.8);
[7][122] = new Point(-19.7, -33.2);
[7][123] = new Point(-19.45, -33.6);
[7][124] = new Point(-19.15, -34);
[7][125] = new Point(-18.85, -34.35);
[7][126] = new Point(-18.55, -34.8);
[7][127] = new Point(-18.2, -35.2);
[7][128] = new Point(-17.9, -35.6);
[7][129] = new Point(-17.55, -36);
[7][130] = new Point(-17.25, -36.35);
[7][131] = new Point(-16.8, -36.8);
[7][132] = new Point(-16.5, -37.1);
[7][133] = new Point(-16.05, -37.5);
[7][134] = new Point(-15.85, -37.85);
[7][135] = new Point(-15.5, -38.1);
[7][136] = new Point(-15.1, -38.5);
[7][137] = new Point(-14.7, -38.85);
[7][138] = new Point(-14.35, -39.15);
[7][139] = new Point(-13.95, -39.5);
[7][140] = new Point(-13.5, -39.8);
[7][141] = new Point(-13.1, -40.1);
[7][142] = new Point(-12.7, -40.45);
[7][143] = new Point(-12.3, -40.7);
[7][144] = new Point(-11.8, -41.05);
[7][145] = new Point(-11.45, -41.25);
[7][146] = new Point(-11.05, -41.45);
[7][147] = new Point(-10.65, -41.75);
[7][148] = new Point(-10.15, -42.05);
[7][149] = new Point(-9.7, -42.35);
[7][150] = new Point(-9.2, -42.5);
[7][151] = new Point(-8.8, -42.8);
[7][152] = new Point(-8.35, -42.95);
[7][153] = new Point(-7.95, -43.25);
[7][154] = new Point(-7.35, -43.45);
[7][155] = new Point(-6.95, -43.55);
[7][156] = new Point(-6.45, -43.75);
[7][157] = new Point(-6.1, -43.95);
[7][158] = new Point(-5.65, -44.15);
[7][159] = new Point(-5.15, -44.25);
[7][160] = new Point(-4.6, -44.45);
[7][161] = new Point(-4.15, -44.55);
[7][162] = new Point(-3.7, -44.65);
[7][163] = new Point(-3.15, -44.85);
[7][164] = new Point(-2.7, -45);
[7][165] = new Point(-2.15, -45.1);
[7][166] = new Point(-1.7, -45.2);
[7][167] = new Point(-1.25, -45.25);
[7][168] = new Point(-0.75, -45.35);
[7][169] = new Point(-0.3, -45.4);
[7][170] = new Point(0.25, -45.45);
[7][171] = new Point(0.75, -45.55);
[7][172] = new Point(1.25, -45.55);
[7][173] = new Point(1.75, -45.6);
[7][174] = new Point(2.25, -45.7);
[7][175] = new Point(2.8, -45.7);
[7][176] = new Point(3.25, -45.7);
[7][177] = new Point(3.75, -45.65);
[7][178] = new Point(4.3, -45.7);
[7][179] = new Point(4.8, -45.65);
[7][180] = new Point(5.2, -45.65);
}
public function getPos(_arg1, _arg2){
return (new Point([_arg1][_arg2].x, [_arg1][_arg2].y));
}
}
}//package com.funkypear.game
Section 61
//Lock (com.funkypear.utils.Lock)
package com.funkypear.utils {
import flash.display.*;
import flash.net.*;
public class Lock extends MovieClip {
public var funkypearbutton:SimpleButton;
public static const FLASHGAMESLICENSE_URL:Array = ["http://www.flashgamelicense.com/", "http://flashgamelicense.com/", "https://www.flashgamelicense.com/", "https://flashgamelicense.com/"];
public static const FUNKYPEAR_URL:Array = ["http://www.funkypear.com/", "http://funkypear.com/"];
public static var url:String;
private static function compareURLTo(_arg1:String):Boolean{
var _local2:String;
var _local3:String;
var _local4:Array;
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:String;
var _local9:String;
_local2 = "http://";
if (url.substr(0, _local2.length) != _local2){
return (false);
};
_local3 = url.substr(_local2.length);
_arg1 = _arg1.substr(_local2.length);
while (_local3.charAt(0) == "/") {
_local3 = _local3.substr(1);
};
while (_arg1.charAt(0) == "/") {
_arg1 = _arg1.substr(1);
};
_local4 = _local3.split("/");
_local5 = _arg1.split("/");
_local6 = 0;
while (_local6 < _local5.length) {
if (_local5[_local6].length < 1){
} else {
_local7 = _local5[_local6].indexOf("*");
if (_local7 != -1){
_local8 = _local5[_local6].substr(0, _local7);
_local9 = _local5[_local6].substr((_local7 + 1));
if (_local4[_local6].substr(0, _local8.length) != _local8){
return (false);
};
if (_local4[_local6].substr(-(_local9.length)) != _local9){
return (false);
};
} else {
if (_local5[_local6] != _local4[_local6]){
return (false);
};
};
};
_local6++;
};
return (true);
}
public static function isAtURL(... _args):Boolean{
var _local2:int;
var _local3:Array;
var _local4:int;
var _local5:String;
if (_args.length == 0){
_args.push(FUNKYPEAR_URL);
};
_local2 = 0;
while (_local2 < _args.length) {
_local3 = _args[_local2];
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = _local3[_local4];
if (((compareURLTo(_local5)) || (compareURLTo2(_local5)))){
return (true);
};
_local4++;
};
_local2++;
};
return (false);
}
public static function urlLock(_arg1:Stage):void{
var _local2:String;
url = _arg1.loaderInfo.url;
if ((((isAtURL(FUNKYPEAR_URL) == true)) || ((isAtURL(FLASHGAMESLICENSE_URL) == true)))){
} else {
_arg1.addChild(new (Lock));
_local2 = "http://www.funkypear.com/?ref=sitelock";
navigateToURL(new URLRequest(_local2), "_blank");
};
}
private static function compareURLTo2(_arg1:String):Boolean{
var _local2:String;
var _local3:String;
var _local4:Array;
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:String;
var _local9:String;
_local2 = "https://";
if (url.substr(0, _local2.length) != _local2){
return (false);
};
_local3 = url.substr(_local2.length);
_arg1 = _arg1.substr(_local2.length);
while (_local3.charAt(0) == "/") {
_local3 = _local3.substr(1);
};
while (_arg1.charAt(0) == "/") {
_arg1 = _arg1.substr(1);
};
_local4 = _local3.split("/");
_local5 = _arg1.split("/");
_local6 = 0;
while (_local6 < _local5.length) {
if (_local5[_local6].length < 1){
} else {
_local7 = _local5[_local6].indexOf("*");
if (_local7 != -1){
_local8 = _local5[_local6].substr(0, _local7);
_local9 = _local5[_local6].substr((_local7 + 1));
if (_local4[_local6].substr(0, _local8.length) != _local8){
return (false);
};
if (_local4[_local6].substr(-(_local9.length)) != _local9){
return (false);
};
} else {
if (_local5[_local6] != _local4[_local6]){
return (false);
};
};
};
_local6++;
};
return (true);
}
}
}//package com.funkypear.utils
Section 62
//AwardIcon_393 (gravitee_fla.AwardIcon_393)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class AwardIcon_393 extends MovieClip {
public var num:TextField;
public function AwardIcon_393(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 63
//AwardIconPop_23 (gravitee_fla.AwardIconPop_23)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class AwardIconPop_23 extends MovieClip {
public var awardnumber:TextField;
public function AwardIconPop_23(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 64
//Bazooka_54 (gravitee_fla.Bazooka_54)
package gravitee_fla {
import flash.display.*;
public dynamic class Bazooka_54 extends MovieClip {
public var start:MovieClip;
}
}//package gravitee_fla
Section 65
//BazookaFire_148 (gravitee_fla.BazookaFire_148)
package gravitee_fla {
import flash.display.*;
public dynamic class BazookaFire_148 extends MovieClip {
public function BazookaFire_148(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 66
//BlowPipe_63 (gravitee_fla.BlowPipe_63)
package gravitee_fla {
import flash.display.*;
public dynamic class BlowPipe_63 extends MovieClip {
public var start:MovieClip;
}
}//package gravitee_fla
Section 67
//BodyCol_113 (gravitee_fla.BodyCol_113)
package gravitee_fla {
import flash.display.*;
public dynamic class BodyCol_113 extends MovieClip {
public function BodyCol_113(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 68
//BodyGFX_112 (gravitee_fla.BodyGFX_112)
package gravitee_fla {
import flash.display.*;
public dynamic class BodyGFX_112 extends MovieClip {
public var col:MovieClip;
}
}//package gravitee_fla
Section 69
//Button_ClassicGFX_416 (gravitee_fla.Button_ClassicGFX_416)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Button_ClassicGFX_416 extends MovieClip {
public var bon:SimpleButton;
public var boff:SimpleButton;
public function Button_ClassicGFX_416(){
addFrameScript(0, frame1, 1, frame2);
}
public function (_arg1:MouseEvent){
MovieClip(root).classicGraphics = true;
gotoAndStop(2);
}
function frame1(){
stop();
if (!boff.hasEventListener(MouseEvent.MOUSE_DOWN)){
boff.addEventListener(MouseEvent.MOUSE_DOWN, );
};
}
function frame2(){
stop();
if (!bon.hasEventListener(MouseEvent.MOUSE_DOWN)){
bon.addEventListener(MouseEvent.MOUSE_DOWN, );
};
}
public function (_arg1:MouseEvent){
MovieClip(root).classicGraphics = false;
gotoAndStop(1);
}
}
}//package gravitee_fla
Section 70
//ButtonMovie_Pause_513 (gravitee_fla.ButtonMovie_Pause_513)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ButtonMovie_Pause_513 extends MovieClip {
public var bon:SimpleButton;
public function ButtonMovie_Pause_513(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (!bon.hasEventListener(MouseEvent.MOUSE_DOWN)){
bon.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).game.doPause);
};
}
}
}//package gravitee_fla
Section 71
//ButtonMovie_Restart_511 (gravitee_fla.ButtonMovie_Restart_511)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ButtonMovie_Restart_511 extends MovieClip {
public var bon:SimpleButton;
public function ButtonMovie_Restart_511(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (!bon.hasEventListener(MouseEvent.MOUSE_DOWN)){
bon.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).game.doRestart);
};
}
}
}//package gravitee_fla
Section 72
//ClusterGun_58 (gravitee_fla.ClusterGun_58)
package gravitee_fla {
import flash.display.*;
public dynamic class ClusterGun_58 extends MovieClip {
public var start:MovieClip;
}
}//package gravitee_fla
Section 73
//DrillGun_61 (gravitee_fla.DrillGun_61)
package gravitee_fla {
import flash.display.*;
public dynamic class DrillGun_61 extends MovieClip {
public var start:MovieClip;
}
}//package gravitee_fla
Section 74
//EraseConfirmPanel_380 (gravitee_fla.EraseConfirmPanel_380)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class EraseConfirmPanel_380 extends MovieClip {
public var keepbutton:SimpleButton;
public var erasebutton:SimpleButton;
public function EraseConfirmPanel_380(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
keepbutton.addEventListener(MouseEvent.MOUSE_UP, );
erasebutton.addEventListener(MouseEvent.MOUSE_UP, );
}
public function (_arg1:MouseEvent){
keepbutton.removeEventListener(MouseEvent.MOUSE_UP, );
erasebutton.removeEventListener(MouseEvent.MOUSE_UP, );
gotoAndStop(1);
}
public function (_arg1:MouseEvent){
MovieClip(root).tutorialsDone = [false, false, false, false, false, false, false, false, false, false];
MovieClip(root).achievementsInfo.resetStats();
MovieClip(root).money = 0;
MovieClip(root).classicGraphics = false;
MovieClip(root).achievementsInfo.infAmmo = false;
MovieClip(root).moneyTally = 0;
MovieClip(root).teamInfo.teamName = "Your Team";
MovieClip(root).teamInfo.unitNames = ["Name 1", "Name 2", "Name 3", "Name 4", "Name 5", "Name 6"];
MovieClip(root).teamInfo.unitHealths = [3, 3, 0, 0, 0, 0];
MovieClip(root).teamInfo.unitAccuracy = [3, 3, 0, 0, 0, 0];
MovieClip(root).teamInfo.wepCount = [-1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
MovieClip(root).achievementsInfo.secsPlayedStart = (0 - Math.round((getTimer() / 1000)));
MovieClip(root).achievementsInfo.levelsUnlocked = 1;
MovieClip(root).achievementsInfo.rewardsDisplayed = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false];
MovieClip(root).achievementsInfo.levelMedals = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
MovieClip(root).achievementsInfo.levelLows = [999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 999];
MovieClip(root).achievementsInfo.awarded = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false];
MovieClip(root).achievementsInfo.wepsUnlocked = [null, true, false, false, false, false, false, false, false, false, false];
MovieClip(root).saveData();
keepbutton.removeEventListener(MouseEvent.MOUSE_UP, );
erasebutton.removeEventListener(MouseEvent.MOUSE_UP, );
gotoAndStop(1);
}
}
}//package gravitee_fla
Section 75
//FootCol_111 (gravitee_fla.FootCol_111)
package gravitee_fla {
import flash.display.*;
public dynamic class FootCol_111 extends MovieClip {
public function FootCol_111(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 76
//FootGFX_110 (gravitee_fla.FootGFX_110)
package gravitee_fla {
import flash.display.*;
public dynamic class FootGFX_110 extends MovieClip {
public var col:MovieClip;
}
}//package gravitee_fla
Section 77
//HandCol_115 (gravitee_fla.HandCol_115)
package gravitee_fla {
import flash.display.*;
public dynamic class HandCol_115 extends MovieClip {
public function HandCol_115(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 78
//HandGFX_114 (gravitee_fla.HandGFX_114)
package gravitee_fla {
import flash.display.*;
public dynamic class HandGFX_114 extends MovieClip {
public var col:MovieClip;
}
}//package gravitee_fla
Section 79
//HeadCol_117 (gravitee_fla.HeadCol_117)
package gravitee_fla {
import flash.display.*;
public dynamic class HeadCol_117 extends MovieClip {
public function HeadCol_117(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 80
//HeadGFX_116 (gravitee_fla.HeadGFX_116)
package gravitee_fla {
import flash.display.*;
public dynamic class HeadGFX_116 extends MovieClip {
public var col:MovieClip;
}
}//package gravitee_fla
Section 81
//HeadTurnCheerGFX_171 (gravitee_fla.HeadTurnCheerGFX_171)
package gravitee_fla {
import flash.display.*;
public dynamic class HeadTurnCheerGFX_171 extends MovieClip {
public var col:MovieClip;
public function HeadTurnCheerGFX_171(){
addFrameScript(28, frame29);
}
function frame29(){
gotoAndPlay(6);
}
}
}//package gravitee_fla
Section 82
//HeadTurnIdle1GFX_127 (gravitee_fla.HeadTurnIdle1GFX_127)
package gravitee_fla {
import flash.display.*;
public dynamic class HeadTurnIdle1GFX_127 extends MovieClip {
public var col:MovieClip;
}
}//package gravitee_fla
Section 83
//HeadTurnWaveGFX_135 (gravitee_fla.HeadTurnWaveGFX_135)
package gravitee_fla {
import flash.display.*;
public dynamic class HeadTurnWaveGFX_135 extends MovieClip {
public var col:MovieClip;
}
}//package gravitee_fla
Section 84
//HealthFloatMC_97 (gravitee_fla.HealthFloatMC_97)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class HealthFloatMC_97 extends MovieClip {
public var num:TextField;
}
}//package gravitee_fla
Section 85
//HelpImage_428 (gravitee_fla.HelpImage_428)
package gravitee_fla {
import flash.display.*;
public dynamic class HelpImage_428 extends MovieClip {
public var weaponshop:SimpleButton;
public var upgradeteam:SimpleButton;
}
}//package gravitee_fla
Section 86
//HelpPanel_422 (gravitee_fla.HelpPanel_422)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class HelpPanel_422 extends MovieClip {
public var nextpage:SimpleButton;
public var panel:MovieClip;
public var anim2:MovieClip;
public var anim1:MovieClip;
public var prevpage:SimpleButton;
public function HelpPanel_422(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function nextPage(_arg1:MouseEvent){
gotoAndStop((currentFrame + 1));
}
function frame3(){
stop();
anim1.unit1.team = 0;
anim1.unit1.updateCol();
anim1.unit1.graphic.gotoAndPlay(5);
nextpage.addEventListener(MouseEvent.CLICK, nextPage);
prevpage.addEventListener(MouseEvent.CLICK, prevPage);
}
public function prevPage(_arg1:MouseEvent){
gotoAndStop((currentFrame - 1));
}
function frame1(){
stop();
nextpage.addEventListener(MouseEvent.CLICK, nextPage);
anim1.unit1.team = 0;
anim1.unit1.updateCol();
anim1.unit1.graphic.gotoAndPlay(5);
anim1.unit2.team = 1;
anim1.unit2.updateCol();
anim1.unit2.graphic.gotoAndPlay(15);
anim2.unit1.team = 0;
anim2.unit1.updateCol();
anim2.unit1.graphic.gotoAndPlay(5);
anim2.unit2.team = 1;
anim2.unit2.updateCol();
anim2.unit2.graphic.gotoAndPlay(15);
}
function frame4(){
stop();
prevpage.addEventListener(MouseEvent.CLICK, prevPage);
panel.visible = true;
panel.mouseChildren = false;
panel.unitpic.team = 0;
panel.unitpic.updateCol();
panel.healthbar.gotoAndStop(3);
panel.accuracybar.gotoAndStop(5);
panel.healthval.text = (3 * 10);
panel.accuracyval.text = ((5 * 5) + "%");
}
function frame2(){
stop();
anim1.unit1.team = 0;
anim1.unit1.updateCol();
anim1.unit1.graphic.gotoAndPlay(5);
anim1.unit2.team = 1;
anim1.unit2.updateCol();
anim1.unit2.graphic.gotoAndPlay(15);
nextpage.addEventListener(MouseEvent.CLICK, nextPage);
prevpage.addEventListener(MouseEvent.CLICK, prevPage);
}
}
}//package gravitee_fla
Section 87
//IntroDeveloper_369 (gravitee_fla.IntroDeveloper_369)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class IntroDeveloper_369 extends MovieClip {
public var fpbutton:SimpleButton;
public function IntroDeveloper_369(){
addFrameScript(0, frame1, 79, frame80);
}
function frame80(){
MovieClip(root).doTransition("title");
}
function frame1(){
fpbutton.addEventListener(MouseEvent.CLICK, fpButton);
}
public function fpButton(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://funkypear.com?ref=GraviteeWars");
navigateToURL(_local2, "_blank");
}
}
}//package gravitee_fla
Section 88
//IntroSponsor_326 (gravitee_fla.IntroSponsor_326)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class IntroSponsor_326 extends MovieClip {
public var kongintro:MovieClip;
public function IntroSponsor_326(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
MovieClip(root).doTransition("intro2");
}
function frame1(){
kongintro.addEventListener(MouseEvent.CLICK, MovieClip(root).moreGamesButton);
kongintro.buttonMode = true;
kongintro.useHandCursor = true;
}
}
}//package gravitee_fla
Section 89
//Level10Movie_477 (gravitee_fla.Level10Movie_477)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level10Movie_477 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls10:SimpleButton;
public function Level10Movie_477(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 90
//Level11Movie_480 (gravitee_fla.Level11Movie_480)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level11Movie_480 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls11:SimpleButton;
public function Level11Movie_480(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 91
//Level12Movie_482 (gravitee_fla.Level12Movie_482)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level12Movie_482 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls12:SimpleButton;
public function Level12Movie_482(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 92
//Level13Movie_484 (gravitee_fla.Level13Movie_484)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level13Movie_484 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls13:SimpleButton;
public function Level13Movie_484(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 93
//Level14Movie_486 (gravitee_fla.Level14Movie_486)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level14Movie_486 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls14:SimpleButton;
public function Level14Movie_486(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 94
//Level15Movie_488 (gravitee_fla.Level15Movie_488)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level15Movie_488 extends MovieClip {
public var ls15:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level15Movie_488(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 95
//Level16Movie_490 (gravitee_fla.Level16Movie_490)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level16Movie_490 extends MovieClip {
public var ls16:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level16Movie_490(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 96
//Level17Movie_492 (gravitee_fla.Level17Movie_492)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level17Movie_492 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls17:SimpleButton;
public function Level17Movie_492(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 97
//Level18Movie_494 (gravitee_fla.Level18Movie_494)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level18Movie_494 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls18:SimpleButton;
public function Level18Movie_494(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 98
//Level19Movie_496 (gravitee_fla.Level19Movie_496)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level19Movie_496 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls19:SimpleButton;
public function Level19Movie_496(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 99
//Level1Movie_454 (gravitee_fla.Level1Movie_454)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level1Movie_454 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var ls1:SimpleButton;
public var turns:TextField;
public function Level1Movie_454(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 100
//Level20Movie_498 (gravitee_fla.Level20Movie_498)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level20Movie_498 extends MovieClip {
public var ls20:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level20Movie_498(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 101
//Level21Movie_500 (gravitee_fla.Level21Movie_500)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level21Movie_500 extends MovieClip {
public var ls21:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level21Movie_500(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 102
//Level22Movie_502 (gravitee_fla.Level22Movie_502)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level22Movie_502 extends MovieClip {
public var ls22:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level22Movie_502(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 103
//Level23Movie_504 (gravitee_fla.Level23Movie_504)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level23Movie_504 extends MovieClip {
public var ls23:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level23Movie_504(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 104
//Level24Movie_506 (gravitee_fla.Level24Movie_506)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level24Movie_506 extends MovieClip {
public var ls24:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level24Movie_506(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 105
//Level25Movie_508 (gravitee_fla.Level25Movie_508)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level25Movie_508 extends MovieClip {
public var ls25:SimpleButton;
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public function Level25Movie_508(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 106
//Level2Movie_456 (gravitee_fla.Level2Movie_456)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level2Movie_456 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var ls2:SimpleButton;
public var turns:TextField;
public function Level2Movie_456(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 107
//Level3Movie_458 (gravitee_fla.Level3Movie_458)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level3Movie_458 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls3:SimpleButton;
public function Level3Movie_458(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 108
//Level4Movie_460 (gravitee_fla.Level4Movie_460)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level4Movie_460 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls4:SimpleButton;
public function Level4Movie_460(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 109
//Level5Movie_462 (gravitee_fla.Level5Movie_462)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level5Movie_462 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var ls5:SimpleButton;
public var turns:TextField;
public function Level5Movie_462(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 110
//Level6Movie_469 (gravitee_fla.Level6Movie_469)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level6Movie_469 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var turns:TextField;
public var ls6:SimpleButton;
public function Level6Movie_469(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 111
//Level7Movie_471 (gravitee_fla.Level7Movie_471)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level7Movie_471 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var ls7:SimpleButton;
public var turns:TextField;
public function Level7Movie_471(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 112
//Level8Movie_473 (gravitee_fla.Level8Movie_473)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level8Movie_473 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var ls8:SimpleButton;
public var turns:TextField;
public function Level8Movie_473(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 113
//Level9Movie_475 (gravitee_fla.Level9Movie_475)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Level9Movie_475 extends MovieClip {
public var bestscore:TextField;
public var noscoreset:TextField;
public var ls9:SimpleButton;
public var turns:TextField;
public function Level9Movie_475(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 114
//LockedWep_93 (gravitee_fla.LockedWep_93)
package gravitee_fla {
import flash.display.*;
public dynamic class LockedWep_93 extends MovieClip {
public function LockedWep_93(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 115
//MainTimeline (gravitee_fla.MainTimeline)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import com.funkypear.game.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var level5score:TextField;
public var :int;
public var :Array;
public var :Loader;
public var medal1:MovieClip;
public var medal2:MovieClip;
public var medal3:MovieClip;
public var medal4:MovieClip;
public var medal5:MovieClip;
public var medal6:MovieClip;
public var medal7:MovieClip;
public var medal8:MovieClip;
public var medal9:MovieClip;
public var level17score:TextField;
public var lastGameHealth:int;
public var
:int;
public var playTime:TextField;
public var
:Array;
public var bgimage:MovieClip;
public var lastGameMedal:int;
public var roundwon:TextField;
public var creditsbutton:SimpleButton;
public var level22score:TextField;
public var
:int;
public var returnbutton:SimpleButton;
public var
:int;
public var
:int;
public var titleresult:TextField;
public var :int;
public var moneyTally:int;
public var statsbutton:SimpleButton;
public var wepline0:MovieClip;
public var wepline1:MovieClip;
public var wepline3:MovieClip;
public var wepline5:MovieClip;
public var wepline7:MovieClip;
public var wepline8:MovieClip;
public var wepline9:MovieClip;
public var wepline4:MovieClip;
public var level6score:TextField;
public var wepline6:MovieClip;
public var wepline2:MovieClip;
public var awardCount:int;
public var ;
public var money:int;
public var level18score:TextField;
public var lastGameTurns:int;
public var completepercent:TextField;
public var level23score:TextField;
public var ;
public var wsbutton:SimpleButton;
public var level7score:TextField;
public var rewardnamedisplay:TextField;
public var :int;
public var lastGameDamage:int;
public var levelSetup:LevelSetup;
public var level19score:TextField;
public var award1:MovieClip;
public var award2:MovieClip;
public var award3:MovieClip;
public var award4:MovieClip;
public var award5:MovieClip;
public var award6:MovieClip;
public var award7:MovieClip;
public var award8:MovieClip;
public var award9:MovieClip;
public var
:int;
public var devbutton2:SimpleButton;
public var devbutton3:SimpleButton;
public var devbutton4:MovieClip;
public var level24score:TextField;
public var :int;
public var helpbutton:SimpleButton;
public var awards:SimpleButton;
public var silverMedals:TextField;
public var ;
public var level8score:TextField;
public var sunKills:TextField;
public var erasesavebutton:SimpleButton;
public var level25score:TextField;
public var
;
public var ;
public var ;
public var ;
public var health:TextField;
public var healthtotal:TextField;
public var :int;
public var kongbutton2:SimpleButton;
public var level9score:TextField;
public var kongbutton4:MovieClip;
public var ps2:SimpleButton;
public var ps3:SimpleButton;
public var ps4:SimpleButton;
public var :URLRequest;
public var utbutton:SimpleButton;
public var ps5:SimpleButton;
public var kongbutton3:SimpleButton;
public var ;
public var :SaveData;
public var trans:Transitions;
public var rewarddescriptiondisplay:TextField;
public var totalearned:TextField;
public var moregamesbutton:SimpleButton;
public var lm1:MovieClip;
public var lm2:MovieClip;
public var lm3:MovieClip;
public var lm4:MovieClip;
public var lm5:MovieClip;
public var lm6:MovieClip;
public var lm7:MovieClip;
public var lm8:MovieClip;
public var lm9:MovieClip;
public var
;
public var shieldKills:TextField;
public var ns1:SimpleButton;
public var ns2:SimpleButton;
public var lastGameWin:Boolean;
public var ns3:SimpleButton;
public var :int;
public var ns4:SimpleButton;
public var rewardsbutton:SimpleButton;
public var medal11:MovieClip;
public var medal13:MovieClip;
public var medal15:MovieClip;
public var medal17:MovieClip;
public var medal18:MovieClip;
public var medal19:MovieClip;
public var medal14:MovieClip;
public var medal10:MovieClip;
public var medal12:MovieClip;
public var medal16:MovieClip;
public var playbutton:SimpleButton;
public var damage:TextField;
public var ;
public var medal20:MovieClip;
public var medal21:MovieClip;
public var medal22:MovieClip;
public var medal23:MovieClip;
public var medal24:MovieClip;
public var medal25:MovieClip;
public var :Tutorial;
public var num:TextField;
public var ls1:int;
public var ls2:int;
public var ls4:int;
public var ls5:int;
public var OOBKills:TextField;
public var ls3:int;
public var longestShot:TextField;
public var awarddisplay:AwardDisplay;
public var level10score:TextField;
public var leastKills:TextField;
public var game:GraviteeGame;
public var :ContextMenu;
public var :int;
public var gameholder:MovieClip;
public var :int;
public var sfxmute:SFXMute;
public var
:Array;
public var
:int;
public var g1button:SimpleButton;
public var level11score:TextField;
public var ;
public var sfx:Boolean;
public var :int;
public var teamInfo:TeamInfo;
public var levelselectbutton:SimpleButton;
public var lastGameLevel:int;
public var :int;
public var roundwonbonus:TextField;
public var goldMedals:TextField;
public var explain:MovieClip;
public var level12score:TextField;
public var lastGameDraw:Boolean;
public var :Object;
public var damagetotal:TextField;
public var killsCount:TextField;
public var award10:MovieClip;
public var award11:MovieClip;
public var award12:MovieClip;
public var award13:MovieClip;
public var award14:MovieClip;
public var award15:MovieClip;
public var award16:MovieClip;
public var award17:MovieClip;
public var award18:MovieClip;
public var award19:MovieClip;
public var classicGraphics:Boolean;
public var loadBar:MovieClip;
public var awardnamedisplay:TextField;
public var award20:MovieClip;
public var award21:MovieClip;
public var award22:MovieClip;
public var award23:MovieClip;
public var award24:MovieClip;
public var award26:MovieClip;
public var award27:MovieClip;
public var award28:MovieClip;
public var award29:MovieClip;
public var
:String;
public var award25:MovieClip;
public var :Array;
public var award30:MovieClip;
public var award31:MovieClip;
public var award33:MovieClip;
public var award34:MovieClip;
public var tutholder:MovieClip;
public var award37:MovieClip;
public var award38:MovieClip;
public var award39:MovieClip;
public var level1score:TextField;
public var award36:MovieClip;
public var award32:MovieClip;
public var reward10:MovieClip;
public var reward11:MovieClip;
public var reward12:MovieClip;
public var reward13:MovieClip;
public var reward14:MovieClip;
public var reward15:MovieClip;
public var reward17:MovieClip;
public var reward18:MovieClip;
public var reward19:MovieClip;
public var award40:MovieClip;
public var award41:MovieClip;
public var award42:MovieClip;
public var award43:MovieClip;
public var award44:MovieClip;
public var award46:MovieClip;
public var award48:MovieClip;
public var award45:MovieClip;
public var award47:MovieClip;
public var award49:MovieClip;
public var reward16:MovieClip;
public var reward20:MovieClip;
public var pausePanel:PausePanel;
public var :int;
public var starmaptransclose:MovieClip;
public var level13score:TextField;
public var reward21:MovieClip;
public var musicmute:MusicMute;
public var :Array;
public var award35:MovieClip;
public var award50:MovieClip;
public var konglevelbutton2:SimpleButton;
public var konglevelbutton3:SimpleButton;
public var konglevelbutton4:SimpleButton;
public var konglevelbutton5:SimpleButton;
public var konglevelbutton1:SimpleButton;
public var moneytext:TextField;
public var achievementsInfo:AchievementsInfo;
public var tryagainbutton:SimpleButton;
public var tutorialsDone:Array;
public var level2score:TextField;
public var music:Boolean;
public var :int;
public var :int;
public var level14score:TextField;
public var awarddescriptiondisplay:TextField;
public var starmaptransmid:MovieClip;
public var upgradeteam:SimpleButton;
public var ;
public var bronzeMedals:TextField;
public var
:Array;
public var level3score:TextField;
public var totalEarned:int;
public var reward1:MovieClip;
public var reward2:MovieClip;
public var reward3:MovieClip;
public var reward4:MovieClip;
public var reward5:MovieClip;
public var reward6:MovieClip;
public var reward7:MovieClip;
public var reward8:MovieClip;
public var level15score:TextField;
public var medal:MovieClip;
public var reward9:MovieClip;
public var deathCount:TextField;
public var erasePanel:MovieClip;
public var :int;
public var level20score:TextField;
public var mostKills:TextField;
public var weaponshop:SimpleButton;
public var panel11:MovieClip;
public var panel12:MovieClip;
public var panel13:MovieClip;
public var panel14:MovieClip;
public var panel15:MovieClip;
public var panel16:MovieClip;
public var rewards:SimpleButton;
public var unit1:Unit;
public var unit2:Unit;
public var unit3:Unit;
public var unit4:Unit;
public var unit5:Unit;
public var unit6:Unit;
public var unit7:Unit;
public var unit8:Unit;
public var panel21:MovieClip;
public var panel22:MovieClip;
public var panel23:MovieClip;
public var panel24:MovieClip;
public var panel25:MovieClip;
public var panel26:MovieClip;
public var :Array;
public var moneyEarned:TextField;
public var lm10:MovieClip;
public var level4score:TextField;
public var lm13:MovieClip;
public var lm14:MovieClip;
public var lm15:MovieClip;
public var lm16:MovieClip;
public var lm17:MovieClip;
public var lm11:MovieClip;
public var lm19:MovieClip;
public var lm18:MovieClip;
public var lm12:MovieClip;
public var devintro:MovieClip;
public var lm20:MovieClip;
public var trophiesbutton:SimpleButton;
public var msg:Message;
public var lm23:MovieClip;
public var lm24:MovieClip;
public var lm25:MovieClip;
public var lm21:MovieClip;
public var lm22:MovieClip;
public var level16score:TextField;
public var teamnametext:TextField;
public var g2button:SimpleButton;
public var :Timer;
public var level21score:TextField;
public var :int;
public var soundmanager:SoundManager;
public var totalDamage:TextField;
public var
;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 99, frame100, 109, frame110, 119, frame120, 129, frame130, 139, frame140, 149, frame150, 159, frame160, 169, frame170, 180, );
}
public function (_arg1:ContextMenuEvent=null):void{
navigateToURL(new URLRequest("http://www.kongregate.com/?gamereferral=GraviteeWars"), "_blank");
}
public function (_arg1:MouseEvent){
var _local2:int;
_local2 = (Math.floor(((achievementsInfo.levelsUnlocked - 1) / 5)) + 1);
if (_local2 > 5){
_local2 = 5;
};
doTransition(("levelselect" + _local2));
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function accuracyInc(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:int;
if (money >= 500){
_local2 = (_arg1.target.parent.name.substr(6, 1) - 1);
if (teamInfo.unitAccuracy[_local2] < 20){
var _local5 = teamInfo.unitAccuracy;
var _local6 = _local2;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
money = (money - 500);
_local3 = 0;
_local4 = 0;
while (_local4 < 6) {
if (teamInfo.unitHealths[_local4] > 0){
_local3 = (_local3 + teamInfo.unitAccuracy[_local4]);
};
_local4++;
};
achievementsInfo.stats["totalAccuracy"] = _local3;
achievementsInfo.stats["totalMax"] = ((achievementsInfo.stats["totalAccuracy"] + achievementsInfo.stats["totalAccuracy"]) + achievementsInfo.stats["totalWeps"]);
};
();
};
}
public function
(){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
function frame10(){
stop();
= new SaveData(this);
= LoaderInfo(root.loaderInfo).parameters;
= ((.kongregate_api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf"));
Security.allowDomain(
);
= new URLRequest(
);
= new Loader();
.contentLoaderInfo.addEventListener(Event.COMPLETE, );
.load();
this.addChild( );
= 1;
lastGameWin = false;
lastGameDraw = false;
lastGameDamage = 0;
lastGameHealth = 0;
lastGameLevel = 0;
lastGameMedal = 0;
lastGameTurns = 0;
tutorialsDone = [false, false, false, false, false, false, false, false, false, false];
classicGraphics = false;
money = 0;
moneyTally = 0;
sfx = true;
music = true;
starmaptransclose.scrollRect = new Rectangle(0, 0, 700, 500);
starmaptransmid.scrollRect = new Rectangle(0, 0, 700, 500);
teamInfo = new TeamInfo();
achievementsInfo = new AchievementsInfo();
levelSetup = new LevelSetup();
achievementsInfo.checkWepsUnlocked();
loadData();
if (music){
soundmanager.playMusic(0, true);
} else {
musicmute.gotoAndStop(2);
};
if (!sfx){
sfxmute.gotoAndStop(2);
};
= new Timer(1000, 0);
.start();
.addEventListener(TimerEvent.TIMER, );
}
function frame20(){
stop();
devintro.addEventListener(MouseEvent.CLICK, );
MochiBot.track(this, "f72ca22d");
}
public function (_arg1:MouseEvent){
doTransition("upgradeteam");
}
function frame30(){
stop();
();
= 0;
unit1.team = 0;
unit1.updateCol();
unit1.graphic.gotoAndPlay(5);
unit1.addEventListener(MouseEvent.CLICK,
);
unit2.team = 1;
unit2.updateCol();
unit2.graphic.gotoAndPlay(15);
unit2.addEventListener(MouseEvent.CLICK,
);
unit3.team = 2;
unit3.updateCol();
unit3.graphic.gotoAndPlay(20);
unit3.addEventListener(MouseEvent.CLICK,
);
unit4.team = 3;
unit4.updateCol();
unit4.graphic.gotoAndPlay(23);
unit4.addEventListener(MouseEvent.CLICK,
);
unit5.team = 0;
unit5.updateCol();
unit5.graphic.gotoAndPlay(3);
unit5.addEventListener(MouseEvent.CLICK,
);
unit6.team = 1;
unit6.updateCol();
unit6.graphic.gotoAndPlay(17);
unit6.addEventListener(MouseEvent.CLICK,
);
unit7.team = 2;
unit7.updateCol();
unit7.graphic.gotoAndPlay(21);
unit7.addEventListener(MouseEvent.CLICK,
);
unit8.team = 3;
unit8.updateCol();
unit8.graphic.gotoAndPlay(22);
unit8.addEventListener(MouseEvent.CLICK,
);
g1button.addEventListener(MouseEvent.CLICK, );
g2button.addEventListener(MouseEvent.CLICK, );
playbutton.addEventListener(MouseEvent.CLICK, );
creditsbutton.addEventListener(MouseEvent.CLICK, creditsButton);
trophiesbutton.addEventListener(MouseEvent.CLICK, trophiesButton);
rewardsbutton.addEventListener(MouseEvent.CLICK, rewardsButton);
statsbutton.addEventListener(MouseEvent.CLICK, statsButton);
helpbutton.addEventListener(MouseEvent.CLICK, helpButton);
moregamesbutton.addEventListener(MouseEvent.CLICK, moreGamesButton);
kongbutton2.addEventListener(MouseEvent.CLICK, moreGamesButton);
devbutton2.addEventListener(MouseEvent.CLICK, );
erasesavebutton.addEventListener(MouseEvent.CLICK, eraseSaveButton);
}
function frame40(){
stop();
moneytext.text = (money);
kongbutton3.addEventListener(MouseEvent.CLICK, moreGamesButton);
devbutton3.addEventListener(MouseEvent.CLICK, );
kongbutton4.addEventListener(MouseEvent.CLICK, moreGamesButton);
devbutton4.addEventListener(MouseEvent.CLICK, );
achievementsInfo.stats["creditsViewed"] = 1;
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
}
function frame50(){
stop();
moneytext.text = (money);
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
rewards.addEventListener(MouseEvent.CLICK, rewardsButton);
awardCount = 0;
= 0;
while (
< 50) {
if (!achievementsInfo.awarded[
]){
this[("award" + (
+ 1))].gotoAndStop(2);
this[("award" + (
+ 1))].addEventListener(MouseEvent.MOUSE_OVER, );
this[("award" + (
+ 1))].addEventListener(MouseEvent.MOUSE_OUT, );
} else {
awardCount++;
this[("award" + (
+ 1))].num.text = (
+ 1);
this[("award" + (
+ 1))].addEventListener(MouseEvent.MOUSE_OVER, );
this[("award" + (
+ 1))].addEventListener(MouseEvent.MOUSE_OUT, );
};
++;
};
num.text = awardCount.toString();
}
function frame60(){
stop();
moneytext.text = (money);
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
awards.addEventListener(MouseEvent.CLICK, trophiesButton);
= ["Cluster Rockets", "Sniper Rifle", "Poisoned Dart", "Gum", "Head Bang", "Phone", "Hand Stand", "Land Mine", "Shield", "Drill Bomb", "Yo Yo", "The Worm", "Reading", "Moon Walk", "Teleport", "Nuke", "Meteor Shower", "Music", "YeeHaw", "Classic Graphics", "Infinitee"];
= ["This weapon is available to buy in the shop", "Units will randomly do this while idle", "Units will celebrate a win like this", "Turn on to play with graphics from Gravitee 1", "You have unlimited ammo!"];
= ["Weapon", "Idle Animation", "Victory Animation", "Feature", "Feature"];
= [1, 1, 1, 2, 3, 2, 3, 1, 1, 1, 2, 3, 2, 3, 1, 1, 1, 2, 3, 4, 5];
= [3, 5, 6, 4, 8, 12, 16, 7, 8, 9, 20, 24, 28, 32, 11, 13, 15, 36, 40, 30, 50];
= 0;
if (achievementsInfo.levelsUnlocked >= 3){
reward1.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 5){
reward2.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 6){
reward3.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 7){
reward8.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 8){
reward9.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 9){
reward10.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 11){
reward15.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 13){
reward16.gotoAndStop(2);
++;
};
if (achievementsInfo.levelsUnlocked >= 15){
reward17.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 4){
reward4.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 8){
reward5.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 12){
reward6.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 16){
reward7.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 20){
reward11.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 24){
reward12.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 28){
reward13.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 32){
reward14.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 36){
reward18.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 40){
reward19.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 30){
reward20.gotoAndStop(2);
++;
};
if (achievementsInfo.aCount >= 50){
reward21.gotoAndStop(2);
++;
};
num.text = .toString();
= 0;
while ( <= 20) {
this[("reward" + ( + 1))].addEventListener(MouseEvent.MOUSE_OVER, );
this[("reward" + ( + 1))].addEventListener(MouseEvent.MOUSE_OUT, );
++;
};
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
function frame70(){
stop();
moneytext.text = (money);
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
}
function frame80(){
stop();
moneytext.text = (money);
moneyEarned.text = (moneyTally);
killsCount.text = (achievementsInfo.stats["enemyKills"]);
deathCount.text = (achievementsInfo.stats["friendlyKills"]);
totalDamage.text = (achievementsInfo.stats["damageDone"]);
longestShot.text = (achievementsInfo.stats["longestShot"]);
OOBKills.text = (achievementsInfo.stats["enemiesOOB"]);
sunKills.text = (achievementsInfo.stats["enemiesSun"]);
shieldKills.text = (achievementsInfo.stats["enemiesShield"]);
= new Array("", "Rocket", "Cluster Rocket", "Meteor Shower", "Sniper Rifle", "Drill Bomb", "Poisoned Dart", "Nuke", "Land Mine");
= new Array(0, 1, 3, 15, 5, 9, 6, 13, 7);
= 0;
= 0;
= 10000000;
= 0;
= achievementsInfo.secsPlayedStart;
= ( + Math.round((getTimer() / 1000)));
= Math.floor((
/ 3600));
= Math.floor(((
% 3600) / 60));
if (
== 0){
if ( == 1){
playTime.text = ( + " Minute");
} else {
playTime.text = ( + " Minutes");
};
} else {
if (
== 0){
playTime.text = (((
+ " Hour ") + ) + " Mins");
} else {
playTime.text = (((
+ " Hours ") + ) + " Mins");
};
};
= 1;
while ( < 9) {
if (achievementsInfo.levelsUnlocked >= []){
if ( < achievementsInfo.stats[(("wep" + ) + "Kills")]){
= achievementsInfo.stats[(("wep" + ) + "Kills")];
= ;
};
if ( > achievementsInfo.stats[(("wep" + ) + "Kills")]){
= achievementsInfo.stats[(("wep" + ) + "Kills")];
= ;
};
};
++;
};
if (((( == 0)) && (( == 0)))){
leastKills.text = "No Data";
mostKills.text = "No Data";
} else {
leastKills.text = ((([] + " (") + achievementsInfo.stats[(("wep" + ) + "Kills")]) + ")");
mostKills.text = ((([] + " (") + achievementsInfo.stats[(("wep" + ) + "Kills")]) + ")");
};
= 0;
= 0;
= 0;
= 0;
= 0;
= 0;
while (
< 25) {
if (achievementsInfo.levelMedals[
] == 1){
++;
= (
+ 1);
} else {
if (achievementsInfo.levelMedals[
] == 2){
++;
= (
+ 2);
} else {
if (achievementsInfo.levelMedals[
] == 3){
++;
= (
+ 3);
};
};
};
++;
};
= 0;
while ( < 50) {
if (achievementsInfo.awarded[]){
++;
};
++;
};
= ( +
);
completepercent.text = (Math.round((( / 125) * 100)) + "%");
goldMedals.text = ();
silverMedals.text = ();
bronzeMedals.text = ();
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
}
public function (_arg1:MouseEvent){
var _local2:Boolean;
var _local3:int;
if (money >= 5000){
_local2 = false;
_local3 = 1;
while (_local3 < 7) {
if ((((teamInfo.unitHealths[(_local3 - 1)] == 0)) && (!(_local2)))){
_local2 = true;
teamInfo.unitHealths[(_local3 - 1)] = 1;
teamInfo.unitAccuracy[(_local3 - 1)] = 1;
};
_local3++;
};
money = (money - 5000);
();
};
}
function frame90(){
stop();
levelselectbutton.addEventListener(MouseEvent.CLICK, levelSelectButton);
upgradeteam.addEventListener(MouseEvent.MOUSE_UP, );
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
if (!tutorialsDone[7]){
tutorialsDone[7] = true;
showTutorial(7, 121, 97);
};
= [null, 5, 5, 5, 5, 5, 5, 5, 5, 5];
= [null, 1000, 2000, 1000, 2000, 2000, 3000, 3000, 5000, 10000];
moneytext.text = (money);
if (!achievementsInfo.wepsUnlocked[2]){
wepline1.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline1.stockbox.stock.text = teamInfo.wepCount[1];
wepline1.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline1.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[1] == 5){
wepline1.stockbox.plus.alpha = 0;
wepline1.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[1] == 0){
wepline1.stockbox.minus.alpha = 0;
wepline1.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline1.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[4]){
wepline2.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline2.stockbox.stock.text = teamInfo.wepCount[2];
wepline2.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline2.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[2] == 5){
wepline2.stockbox.plus.alpha = 0;
wepline2.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[2] == 0){
wepline2.stockbox.minus.alpha = 0;
wepline2.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline2.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[6]){
wepline3.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline3.stockbox.stock.text = teamInfo.wepCount[3];
wepline3.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline3.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[3] == 5){
wepline3.stockbox.plus.alpha = 0;
wepline3.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[3] == 0){
wepline3.stockbox.minus.alpha = 0;
wepline3.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline3.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[8]){
wepline4.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline4.stockbox.stock.text = teamInfo.wepCount[4];
wepline4.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline4.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[4] == 5){
wepline4.stockbox.plus.alpha = 0;
wepline4.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[4] == 0){
wepline4.stockbox.minus.alpha = 0;
wepline4.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline4.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[9]){
wepline5.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline5.stockbox.stock.text = teamInfo.wepCount[5];
wepline5.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline5.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[5] == 5){
wepline5.stockbox.plus.alpha = 0;
wepline5.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[5] == 0){
wepline5.stockbox.minus.alpha = 0;
wepline5.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline5.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[5]){
wepline6.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline6.stockbox.stock.text = teamInfo.wepCount[6];
wepline6.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline6.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[6] == 5){
wepline6.stockbox.plus.alpha = 0;
wepline6.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[6] == 0){
wepline6.stockbox.minus.alpha = 0;
wepline6.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline6.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[10]){
wepline7.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline7.stockbox.stock.text = teamInfo.wepCount[7];
wepline7.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline7.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[7] == 5){
wepline7.stockbox.plus.alpha = 0;
wepline7.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[7] == 0){
wepline7.stockbox.minus.alpha = 0;
wepline7.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline7.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[7]){
wepline8.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline8.stockbox.stock.text = teamInfo.wepCount[8];
wepline8.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline8.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[8] == 5){
wepline8.stockbox.plus.alpha = 0;
wepline8.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[8] == 0){
wepline8.stockbox.minus.alpha = 0;
wepline8.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline8.stockbox.gotoAndStop(2);
};
};
if (!achievementsInfo.wepsUnlocked[3]){
wepline9.gotoAndStop(2);
} else {
if (!achievementsInfo.infAmmo){
wepline9.stockbox.stock.text = teamInfo.wepCount[9];
wepline9.stockbox.plus.addEventListener(MouseEvent.MOUSE_UP, );
wepline9.stockbox.minus.addEventListener(MouseEvent.MOUSE_UP,
);
if (teamInfo.wepCount[9] == 5){
wepline9.stockbox.plus.alpha = 0;
wepline9.stockbox.plus.mouseEnabled = false;
} else {
if (teamInfo.wepCount[9] == 0){
wepline9.stockbox.minus.alpha = 0;
wepline9.stockbox.minus.mouseEnabled = false;
};
};
} else {
wepline9.stockbox.gotoAndStop(2);
};
};
}
function frame100(){
stop();
if (!tutorialsDone[6]){
tutorialsDone[6] = true;
showTutorial(6, 121, 97);
};
levelselectbutton.addEventListener(MouseEvent.CLICK, levelSelectButton);
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
weaponshop.addEventListener(MouseEvent.MOUSE_UP, );
teamnametext.addEventListener(KeyboardEvent.KEY_UP, );
teamnametext.text = teamInfo.teamName;
= 1;
while (
< 7) {
this[("panel1" +
)].healthinc.addEventListener(MouseEvent.CLICK, healthInc);
this[("panel1" +
)].healthdec.addEventListener(MouseEvent.CLICK, healthDec);
this[("panel1" +
)].accuracyinc.addEventListener(MouseEvent.CLICK, accuracyInc);
this[("panel1" +
)].accuracydec.addEventListener(MouseEvent.CLICK, accuracyDec);
this[("panel1" +
)].unitname.addEventListener(KeyboardEvent.KEY_UP, );
if (
> 2){
this[("panel1" +
)].sellbutton.addEventListener(MouseEvent.CLICK, );
} else {
this[("panel1" +
)].sellbutton.visible = false;
};
this[("panel2" +
)].buybutton.addEventListener(MouseEvent.CLICK, );
++;
};
();
moneytext.text = (money);
}
function frame110(){
stop();
konglevelbutton1.addEventListener(MouseEvent.MOUSE_DOWN, moreGamesButton);
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
moneytext.text = (money);
= 1;
medal1.gotoAndStop((achievementsInfo.levelMedals[0] + 1));
medal2.gotoAndStop((achievementsInfo.levelMedals[1] + 1));
medal3.gotoAndStop((achievementsInfo.levelMedals[2] + 1));
medal4.gotoAndStop((achievementsInfo.levelMedals[3] + 1));
medal5.gotoAndStop((achievementsInfo.levelMedals[4] + 1));
ls1 = 0;
while (ls1 < 5) {
if (achievementsInfo.levelLows[ls1] == 999){
this[(("level" + (ls1 + 1)) + "score")].text = "";
this[("lm" + (ls1 + 1))].bestscore.text = "";
this[("lm" + (ls1 + 1))].turns.text = "";
this[("lm" + (ls1 + 1))].noscoreset.text = "No Score Set";
} else {
this[(("level" + (ls1 + 1)) + "score")].text = achievementsInfo.levelLows[ls1];
if (achievementsInfo.levelLows[ls1] == 1){
this[("lm" + (ls1 + 1))].turns.text = "Turn";
};
};
ls1++;
};
if ((((levelSetup.levelID == 2)) && (!(tutorialsDone[4])))){
tutorialsDone[4] = true;
showTutorial(4, 121, 97);
};
upgradeteam.addEventListener(MouseEvent.MOUSE_UP, );
weaponshop.addEventListener(MouseEvent.MOUSE_UP, );
if (achievementsInfo.levelsUnlocked >= 1){
lm1.ls1.addEventListener(MouseEvent.MOUSE_UP,
);
} else {
lm1.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 2){
lm2.ls2.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm2.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 3){
lm3.ls3.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm3.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 4){
lm4.ls4.addEventListener(MouseEvent.MOUSE_UP,
);
} else {
lm4.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 5){
lm5.ls5.addEventListener(MouseEvent.MOUSE_UP,
);
} else {
lm5.gotoAndStop(2);
};
ns1.addEventListener(MouseEvent.MOUSE_UP, );
}
public function
(_arg1:ContextMenuEvent=null):void{
navigateToURL(new URLRequest("http://www.funkypear.com?ref=SponsorLink"), "_blank");
}
function frame120(){
stop();
upgradeteam.addEventListener(MouseEvent.MOUSE_UP, );
weaponshop.addEventListener(MouseEvent.MOUSE_UP, );
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
moneytext.text = (money);
medal6.gotoAndStop((achievementsInfo.levelMedals[5] + 1));
medal7.gotoAndStop((achievementsInfo.levelMedals[6] + 1));
medal8.gotoAndStop((achievementsInfo.levelMedals[7] + 1));
medal9.gotoAndStop((achievementsInfo.levelMedals[8] + 1));
medal10.gotoAndStop((achievementsInfo.levelMedals[9] + 1));
ls2 = 5;
while (ls2 < 10) {
if (achievementsInfo.levelLows[ls2] == 999){
this[(("level" + (ls2 + 1)) + "score")].text = "";
this[("lm" + (ls2 + 1))].bestscore.text = "";
this[("lm" + (ls2 + 1))].turns.text = "";
this[("lm" + (ls2 + 1))].noscoreset.text = "No Score Set";
} else {
this[(("level" + (ls2 + 1)) + "score")].text = achievementsInfo.levelLows[ls2];
if (achievementsInfo.levelLows[ls2] == 1){
this[("lm" + (ls2 + 1))].turns.text = "Turn";
};
};
ls2++;
};
= 2;
if (achievementsInfo.levelsUnlocked >= 6){
lm6.ls6.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm6.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 7){
lm7.ls7.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm7.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 8){
lm8.ls8.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm8.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 9){
lm9.ls9.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm9.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 10){
lm10.ls10.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm10.gotoAndStop(2);
};
ns2.addEventListener(MouseEvent.MOUSE_UP, );
ps2.addEventListener(MouseEvent.MOUSE_UP, );
}
public function (_arg1, _arg2){
teamInfo.unitHealths[_arg1] = teamInfo.unitHealths[_arg2];
teamInfo.unitAccuracy[_arg1] = teamInfo.unitAccuracy[_arg2];
teamInfo.unitHealths[_arg1] = teamInfo.unitHealths[_arg2];
teamInfo.unitAccuracy[_arg1] = teamInfo.unitAccuracy[_arg2];
teamInfo.unitNames[_arg1] = teamInfo.unitNames[_arg2];
teamInfo.unitHealths[_arg2] = 0;
teamInfo.unitAccuracy[_arg2] = 0;
teamInfo.unitHealths[_arg2] = 0;
teamInfo.unitAccuracy[_arg2] = 0;
teamInfo.unitNames[_arg2] = ("Name " + (_arg2 + 1));
}
function frame130(){
stop();
konglevelbutton3.addEventListener(MouseEvent.CLICK, moreGamesButton);
upgradeteam.addEventListener(MouseEvent.MOUSE_UP, );
weaponshop.addEventListener(MouseEvent.MOUSE_UP, );
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
moneytext.text = (money);
medal11.gotoAndStop((achievementsInfo.levelMedals[10] + 1));
medal12.gotoAndStop((achievementsInfo.levelMedals[11] + 1));
medal13.gotoAndStop((achievementsInfo.levelMedals[12] + 1));
medal14.gotoAndStop((achievementsInfo.levelMedals[13] + 1));
medal15.gotoAndStop((achievementsInfo.levelMedals[14] + 1));
ls3 = 10;
while (ls3 < 15) {
if (achievementsInfo.levelLows[ls3] == 999){
this[(("level" + (ls3 + 1)) + "score")].text = "";
this[("lm" + (ls3 + 1))].bestscore.text = "";
this[("lm" + (ls3 + 1))].turns.text = "";
this[("lm" + (ls3 + 1))].noscoreset.text = "No Score Set";
} else {
this[(("level" + (ls3 + 1)) + "score")].text = achievementsInfo.levelLows[ls3];
if (achievementsInfo.levelLows[ls3] == 1){
this[("lm" + (ls3 + 1))].turns.text = "Turn";
};
};
ls3++;
};
= 3;
if (achievementsInfo.levelsUnlocked >= 11){
lm11.ls11.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm11.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 12){
lm12.ls12.addEventListener(MouseEvent.MOUSE_UP,
);
} else {
lm12.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 13){
lm13.ls13.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm13.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 14){
lm14.ls14.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm14.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 15){
lm15.ls15.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm15.gotoAndStop(2);
};
ns3.addEventListener(MouseEvent.MOUSE_UP, );
ps3.addEventListener(MouseEvent.MOUSE_UP, );
}
function frame140(){
stop();
konglevelbutton4.addEventListener(MouseEvent.CLICK, moreGamesButton);
upgradeteam.addEventListener(MouseEvent.MOUSE_UP, );
weaponshop.addEventListener(MouseEvent.MOUSE_UP, );
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
moneytext.text = (money);
medal16.gotoAndStop((achievementsInfo.levelMedals[15] + 1));
medal17.gotoAndStop((achievementsInfo.levelMedals[16] + 1));
medal18.gotoAndStop((achievementsInfo.levelMedals[17] + 1));
medal19.gotoAndStop((achievementsInfo.levelMedals[18] + 1));
medal20.gotoAndStop((achievementsInfo.levelMedals[19] + 1));
ls4 = 15;
while (ls4 < 20) {
if (achievementsInfo.levelLows[ls4] == 999){
this[(("level" + (ls4 + 1)) + "score")].text = "";
this[("lm" + (ls4 + 1))].bestscore.text = "";
this[("lm" + (ls4 + 1))].turns.text = "";
this[("lm" + (ls4 + 1))].noscoreset.text = "No Score Set";
} else {
this[(("level" + (ls4 + 1)) + "score")].text = achievementsInfo.levelLows[ls4];
if (achievementsInfo.levelLows[ls4] == 1){
this[("lm" + (ls4 + 1))].turns.text = "Turn";
};
};
ls4++;
};
= 4;
if (achievementsInfo.levelsUnlocked >= 16){
lm16.ls16.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm16.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 17){
lm17.ls17.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm17.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 18){
lm18.ls18.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm18.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 19){
lm19.ls19.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm19.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 20){
lm20.ls20.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm20.gotoAndStop(2);
};
ns4.addEventListener(MouseEvent.MOUSE_UP, );
ps4.addEventListener(MouseEvent.MOUSE_UP, );
}
public function tryAgainButton(_arg1:MouseEvent){
doTransition("game");
}
function frame150(){
stop();
konglevelbutton5.addEventListener(MouseEvent.CLICK, moreGamesButton);
upgradeteam.addEventListener(MouseEvent.MOUSE_UP, );
weaponshop.addEventListener(MouseEvent.MOUSE_UP, );
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
moneytext.text = (money);
medal21.gotoAndStop((achievementsInfo.levelMedals[20] + 1));
medal22.gotoAndStop((achievementsInfo.levelMedals[21] + 1));
medal23.gotoAndStop((achievementsInfo.levelMedals[22] + 1));
medal24.gotoAndStop((achievementsInfo.levelMedals[23] + 1));
medal25.gotoAndStop((achievementsInfo.levelMedals[24] + 1));
ls5 = 20;
while (ls5 < 25) {
if (achievementsInfo.levelLows[ls5] == 999){
this[(("level" + (ls5 + 1)) + "score")].text = "";
this[("lm" + (ls5 + 1))].bestscore.text = "";
this[("lm" + (ls5 + 1))].turns.text = "";
this[("lm" + (ls5 + 1))].noscoreset.text = "No Score Set";
} else {
this[(("level" + (ls5 + 1)) + "score")].text = achievementsInfo.levelLows[ls5];
if (achievementsInfo.levelLows[ls5] == 1){
this[("lm" + (ls5 + 1))].turns.text = "Turn";
};
};
ls5++;
};
= 5;
if (achievementsInfo.levelsUnlocked >= 21){
lm21.ls21.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm21.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 22){
lm22.ls22.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm22.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 23){
lm23.ls23.addEventListener(MouseEvent.MOUSE_UP,
);
} else {
lm23.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 24){
lm24.ls24.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm24.gotoAndStop(2);
};
if (achievementsInfo.levelsUnlocked >= 25){
lm25.ls25.addEventListener(MouseEvent.MOUSE_UP, );
} else {
lm25.gotoAndStop(2);
};
ps5.addEventListener(MouseEvent.MOUSE_UP,
);
}
function frame160(){
stop();
();
}
public function (_arg1){
var _local2:String;
var _local3:String;
_local2 = String(_arg1);
_local3 = "";
while (_local2.length > 3) {
_local3 = (("," + _local2.substr((_local2.length - 3), 3)) + _local3);
_local2 = _local2.substr(0, (_local2.length - 3));
};
_local3 = (_local2 + _local3);
return (_local3);
}
function frame170(){
stop();
gameholder.removeChild(game);
game = null;
();
utbutton.addEventListener(MouseEvent.CLICK, );
wsbutton.addEventListener(MouseEvent.CLICK, );
levelselectbutton.addEventListener(MouseEvent.CLICK, levelSelectButton);
returnbutton.addEventListener(MouseEvent.CLICK, returnButton);
tryagainbutton.addEventListener(MouseEvent.CLICK, tryAgainButton);
damage.text = ((lastGameDamage) + "hp");
damagetotal.text = ((lastGameDamage * 10));
health.text = ((lastGameHealth) + "hp");
healthtotal.text = ("" + ((lastGameHealth * 10)));
= 0;
if (lastGameWin){
= 200;
if (achievementsInfo.levelMedals[(lastGameLevel - 1)] < lastGameMedal){
achievementsInfo.levelMedals[(lastGameLevel - 1)] = lastGameMedal;
};
if (achievementsInfo.levelLows[(lastGameLevel - 1)] > lastGameTurns){
achievementsInfo.levelLows[(lastGameLevel - 1)] = lastGameTurns;
};
medal.gotoAndStop((lastGameMedal + 1));
= 0;
= 0;
while ( < 25) {
if (achievementsInfo.levelMedals[] == 3){
++;
};
++;
};
achievementsInfo.stats["goldsEarned"] = ;
};
totalEarned = (((lastGameDamage * 10) + (lastGameHealth * 10)) + (lastGameLevel *
));
money = (money + totalEarned);
moneyTally = (moneyTally + totalEarned);
achievementsInfo.stats["moneyEarned"] = moneyTally;
= (totalEarned);
totalearned.text = ;
if (lastGameWin){
titleresult.text = "You Won The Battle";
roundwonbonus.text = ((lastGameLevel *
));
} else {
if (lastGameDraw){
titleresult.text = "You Drew The Battle";
roundwon.text = "";
roundwonbonus.text = "";
} else {
titleresult.text = "You Lost The Battle";
roundwon.text = "";
roundwonbonus.text = "";
};
};
saveData();
}
public function eraseSaveButton(_arg1:MouseEvent){
erasePanel.gotoAndStop(2);
}
public function (_arg1:KeyboardEvent){
var _local2:*;
_local2 = (_arg1.target.parent.name.substr(6, 1) - 1);
teamInfo.teamName = _arg1.target.text;
}
public function (_arg1:KeyboardEvent){
var _local2:*;
_local2 = (_arg1.target.parent.name.substr(6, 1) - 1);
teamInfo.unitNames[_local2] = _arg1.target.text;
}
function (){
gameholder.removeChild(game);
game = null;
gotoAndStop("game");
}
public function
(_arg1:MouseEvent){
levelSetup.setupPlanets = [[175, 233, 379, 14], [119, 682, 264, 17], [157, 459, 67, 16], [141, 53, 164, 13], [139, 499, 387, 15]];
levelSetup.setupUnits = [[3, -122, 0, ""], [4, 74, 0, ""], [4, -126, 0, ""], [0, 18, 0, ""], [3, 109, 0, ""], [2, -36, 0, ""], [1, -38, 1, "Medibot"], [0, 132, 2, "Data"]];
levelSetup.setupMines = [];
levelSetup.setupShields = [];
levelSetup.enemyWeps = [-1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
levelSetup.criteria = [2, 3];
levelSetup.AISkill = [15, 15];
levelSetup.teamNames = ["Bots", "Droids"];
levelSetup.teamHealths = [50, 50];
levelSetup.levelID = 4;
doTransition("game");
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[139, 288, 406, 25], [107, 587, 441, 26], [123, 637, 92, 24], [125, 118, 216, 22], [135, 365, 136, 23]];
levelSetup.setupUnits = [[1, 36, 0, ""], [2, -70, 0, ""], [0, 147, 0, ""], [0, 80, 0, ""], [4, -12, 0, ""], [3, 50, 0, ""], [4, -139, 1, "ROFL"], [3, -126, 1, "LOL"], [4, 26, 2, "LMAO"]];
levelSetup.setupMines = [];
levelSetup.setupShields = [];
levelSetup.enemyWeps = [-1, 2, 1, 0, 0, 0, 0, 0, 0, 0];
levelSetup.criteria = [3, 5];
levelSetup.AISkill = [22, 17];
levelSetup.teamNames = ["Intarwebs", "SP33K"];
levelSetup.teamHealths = [40, 70];
levelSetup.levelID = 6;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[182, 323, 253, 1], [157, 40, 238, 28], [133, 570, 421, 30], [107, 261, 450, 29], [139, 547, 187, 31], [147, 175, 80, 27]];
levelSetup.setupUnits = [[3, 49, 0, ""], [4, 31, 0, ""], [2, -30, 0, ""], [2, 112, 0, ""], [5, 3, 0, ""], [1, 81, 0, ""], [5, 160, 1, "Squirrel"], [4, -65, 1, "Frog"], [1, -74, 1, "Hampster"], [5, -97, 1, "Burt"]];
levelSetup.setupMines = [[1, -151], [4, -152]];
levelSetup.setupShields = [];
levelSetup.enemyWeps = [-1, 2, 1, 1, 0, 0, 0, 0, 0, 0];
levelSetup.criteria = [4, 7];
levelSetup.AISkill = [22];
levelSetup.teamNames = ["Memephiles"];
levelSetup.teamHealths = [45];
levelSetup.levelID = 7;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[157, 427, 118, 6], [141, 541, 385, 8], [131, 187, 177, 5], [157, 102, 384, 7]];
levelSetup.setupUnits = [[3, -168, 0, ""], [1, -9, 0, ""], [1, 141, 0, ""], [0, -57, 0, ""], [2, 138, 0, ""], [3, 69, 0, ""], [0, -150, 1, "TR41N-13"], [2, -82, 1, "TR41N-28"]];
levelSetup.setupMines = [];
levelSetup.setupShields = [];
levelSetup.enemyWeps = [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelSetup.criteria = [2, 3];
levelSetup.AISkill = [10];
levelSetup.teamNames = ["Training Bots"];
levelSetup.teamHealths = [25];
levelSetup.levelID = 2;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[167, 452, 357, 12], [165, 568, 132, 11], [137, 113, 139, 10], [119, 232, 409, 9]];
levelSetup.setupUnits = [[1, -113, 0, ""], [2, -163, 0, ""], [1, 151, 0, ""], [0, -96, 0, ""], [3, -27, 0, ""], [2, -45, 0, ""], [1, 40, 1, "TR41N-82"], [0, -156, 1, "TR41N-66"]];
levelSetup.setupMines = [];
levelSetup.setupShields = [];
levelSetup.enemyWeps = [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelSetup.criteria = [2, 3];
levelSetup.AISkill = [12];
levelSetup.teamNames = ["Training Bots"];
levelSetup.teamHealths = [35];
levelSetup.levelID = 3;
doTransition("game");
}
public function
(_arg1:MouseEvent){
levelSetup.setupPlanets = [[131, 608, 100, 20], [137, 124, 418, 21], [123, 396, 178, 18], [127, 335, 388, 19]];
levelSetup.setupUnits = [[3, 50, 0, ""], [3, -117, 0, ""], [2, -136, 0, ""], [0, -134, 0, ""], [2, 88, 0, ""], [1, 4, 0, ""], [1, 110, 1, "Marvin"], [0, -67, 1, "Johnny"], [2, -20, 2, "Bishop"]];
levelSetup.setupMines = [];
levelSetup.setupShields = [];
levelSetup.enemyWeps = [-1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
levelSetup.criteria = [3, 5];
levelSetup.AISkill = [17, 17];
levelSetup.teamNames = ["Bots", "Droids"];
levelSetup.teamHealths = [40, 40];
levelSetup.levelID = 5;
doTransition("game");
}
public function
(_arg1:MouseEvent){
levelSetup.setupPlanets = [[183, 114, 164, 2], [143, 519, 214, 3], [153, 302, 400, 4]];
levelSetup.setupUnits = [[2, 75, 0, ""], [1, -9, 0, ""], [1, 135, 0, ""], [2, -68, 0, ""], [0, -10, 0, ""], [0, 76, 0, ""], [0, -155, 1, "TR41N-08"]];
levelSetup.setupMines = [];
levelSetup.setupShields = [];
levelSetup.enemyWeps = [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelSetup.criteria = [1, 2];
levelSetup.AISkill = [5];
levelSetup.teamNames = ["Training Bots"];
levelSetup.teamHealths = [25];
levelSetup.levelID = 1;
doTransition("game");
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[157, 209, 498, 35], [155, 578, 462, 36], [139, 663, 144, 33], [180, 112, 150, 1], [115, 0, 378, 34], [151, 397, 273, 32]];
levelSetup.setupUnits = [[2, -66, 0, ""], [0, 135, 0, ""], [2, 95, 0, ""], [5, -131, 0, ""], [1, -39, 0, ""], [4, 67, 0, ""], [4, -113, 1, "Leeroy"], [2, 27, 1, "O RLY"], [0, 39, 2, "Turtles"], [5, 45, 2, "Charlie"]];
levelSetup.setupMines = [[1, 99], [0, -31]];
levelSetup.setupShields = [[246, 287, -40]];
levelSetup.enemyWeps = [-1, 2, 1, 1, 1, 0, 0, 0, 0, 0];
levelSetup.criteria = [4, 7];
levelSetup.AISkill = [24, 26];
levelSetup.teamNames = ["Intarwebs", "MeMeMe"];
levelSetup.teamHealths = [50, 60];
levelSetup.levelID = 8;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[163, 126, 113, 37], [163, 392, 178, 38], [167, 529, 397, 39], [157, 96, 406, 40]];
levelSetup.setupUnits = [[2, 15, 0, ""], [1, 152, 0, ""], [3, -127, 0, ""], [3, 19, 0, ""], [0, 126, 0, ""], [2, -106, 0, ""], [1, 63, 1, "T Viking"], [0, 26, 1, "Numa"], [3, 148, 1, "Rick"], [1, -100, 2, "Sparta"], [0, -120, 2, "Base"]];
levelSetup.setupMines = [[2, -176], [2, 130], [0, -48]];
levelSetup.setupShields = [[324, 390, 29], [148, 279, -73]];
levelSetup.enemyWeps = [-1, 2, 2, 2, 2, 1, 0, 0, 0, 0];
levelSetup.criteria = [5, 8];
levelSetup.AISkill = [27, 27];
levelSetup.teamNames = ["Memeoholics", "Memephiles"];
levelSetup.teamHealths = [50, 50];
levelSetup.levelID = 9;
doTransition("game");
}
public function (_arg1:MouseEvent){
doTransition("levelselect3");
}
public function (_arg1:MouseEvent){
doTransition("levelselect5");
}
public function (_arg1:MouseEvent){
doTransition("levelselect4");
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function (_arg1:MouseEvent){
doTransition("levelselect2");
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function (){
game = new GraviteeGame(classicGraphics);
gameholder.addChild(game);
}
public function trophiesButton(_arg1:MouseEvent){
doTransition("trophies");
}
public function (_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.funkypear.com/?ref=GraviteeWars");
navigateToURL(_local2, "_blank");
}
public function (_arg1:MouseEvent){
awardnamedisplay.text = "";
awarddescriptiondisplay.text = "";
}
public function (_arg1:MouseEvent){
doTransition("levelselect1");
}
public function (_arg1:MouseEvent){
doTransition("levelselect3");
}
public function
(_arg1:MouseEvent){
doTransition("levelselect4");
}
public function (_arg1:MouseEvent){
doTransition("levelselect2");
}
public function (_arg1:MouseEvent){
var _local2:*;
var _local3:int;
_local2 = (_arg1.target.parent.name.substr(6, 1) - 1);
money = (money + (teamInfo.unitHealths[_local2] * 500));
money = (money + (teamInfo.unitAccuracy[_local2] * 500));
teamInfo.unitHealths[_local2] = 0;
teamInfo.unitAccuracy[_local2] = 0;
_local3 = (_local2 + 1);
while (_local3 < 6) {
if (teamInfo.unitHealths[_local3] > 0){
((_local3 - 1), _local3);
};
_local3++;
};
money = (money + 4000);
();
}
public function removeTutorial(){
tutholder.removeChild();
= null;
if (game){
stage.focus = game;
};
}
public function healthDec(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:int;
_local2 = (_arg1.target.parent.name.substr(6, 1) - 1);
if (teamInfo.unitHealths[_local2] > 1){
var _local5 = teamInfo.unitHealths;
var _local6 = _local2;
var _local7 = (_local5[_local6] - 1);
_local5[_local6] = _local7;
money = (money + 500);
_local3 = 0;
_local4 = 0;
while (_local4 < 6) {
_local3 = (_local3 + teamInfo.unitHealths[_local4]);
_local4++;
};
achievementsInfo.stats["totalHealth"] = _local3;
achievementsInfo.stats["totalMax"] = ((achievementsInfo.stats["totalAccuracy"] + achievementsInfo.stats["totalAccuracy"]) + achievementsInfo.stats["totalWeps"]);
};
();
}
public function (){
playbutton.removeEventListener(MouseEvent.CLICK, );
creditsbutton.removeEventListener(MouseEvent.CLICK, creditsButton);
trophiesbutton.removeEventListener(MouseEvent.CLICK, trophiesButton);
rewardsbutton.removeEventListener(MouseEvent.CLICK, rewardsButton);
helpbutton.removeEventListener(MouseEvent.CLICK, helpButton);
erasesavebutton.removeEventListener(MouseEvent.CLICK, eraseSaveButton);
moregamesbutton.removeEventListener(MouseEvent.CLICK, moreGamesButton);
}
public function (_arg1:Event):void{
= _arg1.target.content;
.services.connect();
}
public function doTransition(_arg1){
trans.doTrans(this);
trans.alpha = 0;
trans.goto = _arg1;
}
public function accuracyDec(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:int;
_local2 = (_arg1.target.parent.name.substr(6, 1) - 1);
if (teamInfo.unitAccuracy[_local2] > 1){
var _local5 = teamInfo.unitAccuracy;
var _local6 = _local2;
var _local7 = (_local5[_local6] - 1);
_local5[_local6] = _local7;
money = (money + 500);
_local3 = 0;
_local4 = 0;
while (_local4 < 6) {
if (teamInfo.unitHealths[_local4] > 0){
_local3 = (_local3 + teamInfo.unitAccuracy[_local4]);
};
_local4++;
};
achievementsInfo.stats["totalAccuracy"] = _local3;
achievementsInfo.stats["totalMax"] = ((achievementsInfo.stats["totalAccuracy"] + achievementsInfo.stats["totalAccuracy"]) + achievementsInfo.stats["totalWeps"]);
};
();
}
function frame1(){
= new ContextMenu();
.builtInItems.forwardAndBack = false;
.builtInItems.loop = false;
.builtInItems.play = false;
.builtInItems.print = false;
.builtInItems.quality = true;
.builtInItems.rewind = false;
.builtInItems.save = false;
.builtInItems.zoom = false;
stage.stageFocusRect = false;
= new ContextMenuItem("Developed by FunkyPear");
= new ContextMenuItem("Sponsored by Kongregate");
.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, );
.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
);
.customItems.push(
, );
contextMenu = ;
}
function frame2(){
= stage.loaderInfo.bytesLoaded;
= stage.loaderInfo.bytesTotal;
if ( < ){
loadBar.gotoAndStop((101 - Math.round((( / ) * 100))));
} else {
doTransition("intro");
};
}
function frame3(){
gotoAndPlay("preloader");
}
public function creditsButton(_arg1:MouseEvent){
doTransition("credits");
}
public function returnButton(_arg1:MouseEvent){
saveData();
doTransition("title");
}
public function (_arg1:TimerEvent){
if (achievementsInfo.checkAchievements()){
saveData();
};
}
public function statsButton(_arg1:MouseEvent){
doTransition("stats");
}
public function
(){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function (_arg1:MouseEvent){
var _local2:*;
_local2 = (_arg1.currentTarget.name.substr(5) - 1);
awardnamedisplay.text = achievementsInfo.achievementNames[_local2];
awarddescriptiondisplay.text = achievementsInfo.achievementDescs[_local2];
}
public function
(_arg1:MouseEvent){
var _local2:*;
_local2 = _arg1.target.parent.parent.name.substr(7, 1);
if (teamInfo.wepCount[_local2] > 0){
teamInfo.wepCount[_local2] = (teamInfo.wepCount[_local2] - 1);
if (teamInfo.wepCount[_local2] == 0){
this[("wepline" + _local2)].stockbox.minus.alpha = 0;
this[("wepline" + _local2)].stockbox.minus.mouseEnabled = false;
} else {
this[("wepline" + _local2)].stockbox.minus.alpha = 1;
this[("wepline" + _local2)].stockbox.minus.mouseEnabled = true;
};
if (teamInfo.wepCount[_local2] == 5){
this[("wepline" + _local2)].stockbox.plus.alpha = 0;
this[("wepline" + _local2)].stockbox.plus.mouseEnabled = false;
} else {
this[("wepline" + _local2)].stockbox.plus.alpha = 1;
this[("wepline" + _local2)].stockbox.plus.mouseEnabled = true;
};
money = (money + [_local2]);
moneytext.text = (money);
this[("wepline" + _local2)].stockbox.stock.text = teamInfo.wepCount[_local2];
achievementsInfo.stats["totalWeps"] = ((((((((teamInfo.wepCount[1] + teamInfo.wepCount[2]) + teamInfo.wepCount[3]) + teamInfo.wepCount[4]) + teamInfo.wepCount[5]) + teamInfo.wepCount[6]) + teamInfo.wepCount[7]) + teamInfo.wepCount[8]) + teamInfo.wepCount[9]);
achievementsInfo.stats["totalMax"] = ((achievementsInfo.stats["totalAccuracy"] + achievementsInfo.stats["totalAccuracy"]) + achievementsInfo.stats["totalWeps"]);
};
}
public function levelSelectButton(_arg1:MouseEvent){
var _local2:int;
saveData();
_local2 = (Math.floor(((achievementsInfo.levelsUnlocked - 1) / 5)) + 1);
if (_local2 > 5){
_local2 = 5;
};
doTransition(("levelselect" + _local2));
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function showTutorial(_arg1, _arg2, _arg3){
= new Tutorial();
tutholder.addChild();
.x = _arg2;
.y = _arg3;
.gotoAndStop(("start" + (_arg1 + 1)));
}
public function loadData(){
.loadData();
}
public function (_arg1:MouseEvent){
doTransition("weaponshop");
}
public function helpButton(_arg1:MouseEvent){
doTransition("help");
}
public function
(_arg1:MouseEvent){
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK,
);
_arg1.currentTarget.changeAnim("cry");
++;
if ( == 8){
achievementsInfo.stats["botheredUnits"] = 1;
};
}
public function (){
levelselectbutton.removeEventListener(MouseEvent.CLICK, levelSelectButton);
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function restartGame(){
gotoAndPlay("restartgame");
}
public function moreGamesButton(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kongregate.com/?gamereferral=GraviteeWars");
navigateToURL(_local2, "_blank");
}
public function saveData(){
.saveData();
}
public function (_arg1:MouseEvent){
rewardnamedisplay.text = "";
rewarddescriptiondisplay.text = "";
}
public function (){
returnbutton.removeEventListener(MouseEvent.CLICK, returnButton);
}
public function (_arg1:MouseEvent){
var _local2:*;
_local2 = (_arg1.currentTarget.name.substr(6) * 1);
if (this[("reward" + _local2)].currentFrame == 1){
rewardnamedisplay.text = ("Locked: " +
[(
[(_local2 - 1)] - 1)]);
if (
[(_local2 - 1)] == 1){
rewarddescriptiondisplay.text = (("Unlock level " + [(_local2 - 1)]) + " to get this reward");
} else {
rewarddescriptiondisplay.text = (("Earn " + [(_local2 - 1)]) + " awards to get this reward");
};
} else {
rewardnamedisplay.text = ((
[(
[(_local2 - 1)] - 1)] + ": ") + [(_local2 - 1)]);
rewarddescriptiondisplay.text =
[(
[(_local2 - 1)] - 1)];
};
}
public function (_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kongregate.com/games/FunkyPear/gravitee?gamereferral=GraviteeWars");
navigateToURL(_local2, "_blank");
}
public function (_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kongregate.com/games/FunkyPear/gravitee-2?gamereferral=GraviteeWars");
navigateToURL(_local2, "_blank");
}
public function
(){
if (.stats){
.stats.submit("GoldMedals", achievementsInfo.stats["goldsEarned"]);
.stats.submit("MoneyEarned", achievementsInfo.stats["moneyEarned"]);
.stats.submit("EnemiesKilled", achievementsInfo.stats["enemyKills"]);
.stats.submit("LongestShot", achievementsInfo.stats["longestShot"]);
.stats.submit("DamageDone", achievementsInfo.stats["damageDone"]);
.stats.submit("EnemiesOOB", achievementsInfo.stats["enemiesOOB"]);
.stats.submit("EnemiesSun", achievementsInfo.stats["enemiesSun"]);
.stats.submit("EnemiesShield", achievementsInfo.stats["enemiesShield"]);
.stats.submit("HighestMultiplier", achievementsInfo.stats["highestMulti"]);
.stats.submit("AwardsEarned", achievementsInfo.stats["awardCount"]);
.stats.submit("SectorsCompleted", achievementsInfo.stats["highestSectorCompleted"]);
};
}
public function rewardsButton(_arg1:MouseEvent){
doTransition("rewards");
}
public function (_arg1:MouseEvent){
var _local2:*;
_local2 = _arg1.target.parent.parent.name.substr(7, 1);
if ((((money >= [_local2])) && ((teamInfo.wepCount[_local2] < [_local2])))){
teamInfo.wepCount[_local2] = (teamInfo.wepCount[_local2] + 1);
if (teamInfo.wepCount[_local2] == 0){
this[("wepline" + _local2)].stockbox.minus.alpha = 0;
this[("wepline" + _local2)].stockbox.minus.mouseEnabled = false;
} else {
this[("wepline" + _local2)].stockbox.minus.alpha = 1;
this[("wepline" + _local2)].stockbox.minus.mouseEnabled = true;
};
if (teamInfo.wepCount[_local2] == 5){
this[("wepline" + _local2)].stockbox.plus.alpha = 0;
this[("wepline" + _local2)].stockbox.plus.mouseEnabled = false;
} else {
this[("wepline" + _local2)].stockbox.plus.alpha = 1;
this[("wepline" + _local2)].stockbox.plus.mouseEnabled = true;
};
money = (money - [_local2]);
moneytext.text = (money);
this[("wepline" + _local2)].stockbox.stock.text = teamInfo.wepCount[_local2];
achievementsInfo.stats["totalWeps"] = ((((((((teamInfo.wepCount[1] + teamInfo.wepCount[2]) + teamInfo.wepCount[3]) + teamInfo.wepCount[4]) + teamInfo.wepCount[5]) + teamInfo.wepCount[6]) + teamInfo.wepCount[7]) + teamInfo.wepCount[8]) + teamInfo.wepCount[9]);
achievementsInfo.stats["totalMax"] = ((achievementsInfo.stats["totalAccuracy"] + achievementsInfo.stats["totalAccuracy"]) + achievementsInfo.stats["totalWeps"]);
};
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[125, 382, 199, 42], [157, 202, 63, 41], [133, 737, 357, 46], [159, 666, 115, 43], [141, 462, 419, 45], [145, 19, 372, 44]];
levelSetup.setupUnits = [[5, 126, 0, ""], [4, -10, 0, ""], [3, 35, 0, ""], [0, -47, 0, ""], [1, -139, 0, ""], [5, -96, 0, ""], [1, -19, 1, "Boxxy"], [0, 103, 1, "Magnets"], [3, -71, 2, "Zombie Kid"], [4, 94, 3, "Chipmunk"], [2, 32, 3, "SW Kid"]];
levelSetup.setupMines = [[4, 180], [0, -155]];
levelSetup.setupShields = [[88, 186, -38]];
levelSetup.enemyWeps = [-1, 2, 2, 2, 2, 1, 1, 0, 0, 0];
levelSetup.criteria = [5, 8];
levelSetup.AISkill = [27, 28, 29];
levelSetup.teamNames = ["Memeoholics", "MeMeMe", "Memephiles"];
levelSetup.teamHealths = [75, 40, 55];
levelSetup.levelID = 10;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[186, 532, 436, 1], [143, 722, 280, 2], [137, 272, 29, 48], [143, 612, 13, 49], [195, -40, 154, 47], [155, 148, 375, 50], [147, 425, 180, 51]];
levelSetup.setupUnits = [[1, -36, 0, ""], [3, -45, 0, ""], [6, -146, 0, ""], [5, 133, 0, ""], [2, -19, 0, ""], [4, 82, 0, ""], [1, 56, 1, "Amplitude"], [3, -137, 1, "Frequency"], [4, 152, 2, "Mario"], [6, -38, 2, "Luigi"], [2, -140, 3, "Mark"], [5, -127, 3, "Jeremy"]];
levelSetup.setupMines = [[6, 92], [4, -123], [5, -5]];
levelSetup.setupShields = [[176, 178, -115], [322, 309, -35]];
levelSetup.enemyWeps = [-1, 3, 2, 2, 2, 2, 1, 1, 0, 0];
levelSetup.criteria = [6, 9];
levelSetup.AISkill = [35, 30, 25];
levelSetup.teamNames = ["Harmony", "Plumbers", "Peeps"];
levelSetup.teamHealths = [50, 50, 75];
levelSetup.levelID = 11;
doTransition("game");
}
public function
(_arg1:MouseEvent){
levelSetup.setupPlanets = [[159, 557, -41, 45], [153, 98, 110, 3], [163, 366, 267, 31], [199, 660, 419, 9], [171, -10, 380, 17]];
levelSetup.setupUnits = [[4, 151, 0, ""], [1, -70, 0, ""], [1, -132, 0, ""], [0, 15, 0, ""], [3, -64, 0, ""], [2, -143, 0, ""], [2, 8, 1, "Lister"], [3, 107, 1, "Rimmer"], [2, 127, 1, "Kryten"], [0, -83, 2, "Ty"], [2, -62, 2, "Buzz"], [3, -1, 2, "Kato"]];
levelSetup.setupMines = [[4, -127], [1, 146], [0, -147], [3, 56]];
levelSetup.setupShields = [[483, 116, -44], [180, 297, -17]];
levelSetup.enemyWeps = [-1, 3, 2, 3, 3, 2, 2, 2, 0, 0];
levelSetup.criteria = [6, 9];
levelSetup.AISkill = [30, 40];
levelSetup.teamNames = ["Dwarfed", "Fight Pit"];
levelSetup.teamHealths = [60, 70];
levelSetup.levelID = 12;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[159, 716, 364, 23], [141, -30, 486, 32], [133, 442, 305, 10], [165, 334, 65, 18], [139, 590, 160, 46], [155, 24, 230, 4], [180, 212, 382, 1]];
levelSetup.setupUnits = [[2, -97, 0, ""], [2, 82, 0, ""], [5, 129, 0, ""], [1, 117, 0, ""], [3, 12, 0, ""], [0, -125, 0, ""], [1, -147, 1, "Peter"], [4, -93, 1, "Milton"], [3, 157, 1, "Samir"], [3, -70, 1, "Bolton"], [0, 35, 2, "Athos"], [5, -108, 2, "Porthos"], [4, 24, 2, "Aramis"]];
levelSetup.setupMines = [[0, -56], [0, -25], [3, -132]];
levelSetup.setupShields = [[370, 466, 17], [288, 260, -41], [179, 139, -34]];
levelSetup.enemyWeps = [-1, 4, 3, 3, 3, 2, 2, 2, 0, 0];
levelSetup.criteria = [7, 11];
levelSetup.AISkill = [45, 35];
levelSetup.teamNames = ["PC Load", "Musketeers"];
levelSetup.teamHealths = [75, 50];
levelSetup.levelID = 13;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[174, 349, 427, 1], [129, 758, 369, 24], [147, -64, 195, 33], [139, 663, 144, 11], [177, 420, 5, 19], [151, 202, 151, 5], [143, 128, 504, 47]];
levelSetup.setupUnits = [[3, 20, 0, ""], [1, -76, 0, ""], [3, -115, 0, ""], [4, -175, 0, ""], [2, 72, 0, ""], [6, -140, 0, ""], [6, 34, 1, "Kurt"], [4, 12, 1, "Krist"], [4, -113, 1, "Dave"], [5, -76, 2, "Hannibal"], [5, 148, 2, "Face"], [2, -147, 3, "Murdock"], [1, 15, 3, "BA"]];
levelSetup.setupMines = [[2, -67], [5, 33], [4, -49], [3, 79]];
levelSetup.setupShields = [[458, 242, 39], [107, 339, -118]];
levelSetup.enemyWeps = [-1, 4, 2, 4, 4, 3, 2, 3, 0, 0];
levelSetup.criteria = [7, 11];
levelSetup.AISkill = [25, 50, 50];
levelSetup.teamNames = ["Peace", "B-Team", "C-Team"];
levelSetup.teamHealths = [75, 50, 50];
levelSetup.levelID = 14;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[149, 807, 342, 35], [137, 752, 81, 25], [163, 247, 457, 20], [143, 483, 380, 12], [143, 300, 163, 34], [131, 562, 180, 48], [141, 50, 219, 6], [170, -9, 9, 1]];
levelSetup.setupUnits = [[0, -119, 0, ""], [5, 104, 0, ""], [1, -8, 0, ""], [3, -126, 0, ""], [6, -113, 0, ""], [4, 43, 0, ""], [0, -49, 1, "Moz"], [0, 72, 1, "Jenny"], [4, -158, 1, "CH"], [3, 118, 1, "Paul"], [5, -21, 2, "Tim"], [6, 153, 2, "Daisy"], [2, 99, 2, "Brian"], [6, 23, 2, "Tyres"]];
levelSetup.setupMines = [[1, -129], [2, -163], [2, 15], [4, -71]];
levelSetup.setupShields = [[656, 364, -11], [29, 404, -30], [445, 25, -86]];
levelSetup.enemyWeps = [-1, 5, 2, 3, 3, 3, 2, 3, 1, 0];
levelSetup.criteria = [8, 12];
levelSetup.AISkill = [40, 55];
levelSetup.teamNames = ["Not Ideal", "Spaced Out"];
levelSetup.teamHealths = [90, 45];
levelSetup.levelID = 15;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[157, 588, 455, 26], [153, 163, 518, 49], [175, 322, 114, 21], [161, 726, 178, 13], [149, 61, 245, 7], [149, 388, 335, 35]];
levelSetup.setupUnits = [[1, -155, 0, ""], [5, 137, 0, ""], [3, -89, 0, ""], [3, 45, 0, ""], [2, 134, 0, ""], [4, -20, 0, ""], [0, 75, 1, "Leonidas"], [0, 152, 1, "Lena"], [5, -108, 2, "Yojimbo"], [5, 4, 2, "Hojo"], [1, 102, 2, "Takeda"], [2, 4, 3, "Elizabeth"], [4, 103, 3, "George"], [2, -147, 3, "Victoria"]];
levelSetup.setupMines = [[5, -164], [3, 133], [2, -59], [4, -153], [4, -97]];
levelSetup.setupShields = [[361, 538, 70], [553, 178, 0], [152, 114, -17]];
levelSetup.enemyWeps = [-1, 5, 3, 4, 4, 3, 2, 4, 1, 0];
levelSetup.criteria = [8, 12];
levelSetup.AISkill = [40, 60, 50];
levelSetup.teamNames = ["Sparta", "Samuari", "Royalty"];
levelSetup.teamHealths = [80, 60, 70];
levelSetup.levelID = 16;
doTransition("game");
}
public function (){
var _local1:int;
_local1 = 1;
while (_local1 < 7) {
if (teamInfo.unitHealths[(_local1 - 1)] == 0){
this[("panel1" + _local1)].visible = false;
this[("panel2" + _local1)].visible = true;
this[("panel1" + _local1)].mouseChildren = false;
this[("panel2" + _local1)].mouseChildren = true;
} else {
this[("panel2" + _local1)].visible = false;
this[("panel1" + _local1)].visible = true;
this[("panel2" + _local1)].mouseChildren = false;
this[("panel1" + _local1)].mouseChildren = true;
this[("panel1" + _local1)].unitpic.team = 0;
this[("panel1" + _local1)].unitpic.updateCol();
};
this[("panel1" + _local1)].healthbar.gotoAndStop(teamInfo.unitHealths[(_local1 - 1)]);
this[("panel1" + _local1)].accuracybar.gotoAndStop(teamInfo.unitAccuracy[(_local1 - 1)]);
this[("panel1" + _local1)].healthval.text = (teamInfo.unitHealths[(_local1 - 1)] * 10);
this[("panel1" + _local1)].accuracyval.text = ((teamInfo.unitAccuracy[(_local1 - 1)] * 5) + "%");
this[("panel1" + _local1)].unitname.text = teamInfo.unitNames[(_local1 - 1)];
_local1++;
};
moneytext.text = (money);
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[151, 21, -29, 23], [163, 427, 453, 27], [137, 319, 88, 37], [163, 650, 156, 15], [159, -31, 395, 9], [160, 725, 435, 1], [151, 239, 286, 51]];
levelSetup.setupUnits = [[6, -149, 0, ""], [1, -25, 0, ""], [4, -111, 0, ""], [3, -156, 0, ""], [2, 128, 0, ""], [0, -42, 0, ""], [3, 43, 1, "Genghis"], [6, 67, 1, "Attila"], [1, 118, 1, "Vercingetorix"], [6, -48, 2, "Boudicca"], [2, -16, 2, "Calpornus"], [2, -120, 2, "Praesutagus"], [0, -135, 3, "Julius"], [3, -19, 3, "Tiberius"], [4, 153, 3, "Caligula"]];
levelSetup.setupMines = [[4, 45], [6, 9], [1, -161], [3, 138], [3, 105], [4, 80]];
levelSetup.setupShields = [[469, 250, 27], [496, 13, -76], [45, 179, -37]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 3, 5, 2, 0];
levelSetup.criteria = [9, 14];
levelSetup.AISkill = [60, 70, 65];
levelSetup.teamNames = ["Barbarians", "Celts", "Romans"];
levelSetup.teamHealths = [80, 80, 70];
levelSetup.levelID = 18;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[133, -127, 383, 10], [147, 795, 408, 36], [141, 107, 405, 38], [141, 603, 208, 28], [129, 237, 145, 2], [145, 17, 214, 24], [175, 344, 352, 16]];
levelSetup.setupUnits = [[4, -125, 0, ""], [1, -110, 0, ""], [3, 61, 0, ""], [2, -13, 0, ""], [6, -109, 0, ""], [0, 66, 0, ""], [4, 133, 1, "Sasuke"], [5, 121, 1, "Zool"], [2, -135, 1, "Nagano"], [3, -87, 2, "Shaka"], [1, 62, 2, "Credo"], [1, -43, 2, "Pixley"], [4, 9, 2, "Constance"], [0, -141, 3, "Faisal"], [5, 34, 3, "Gamal"], [6, 129, 3, "Alkindus"]];
levelSetup.setupMines = [[2, 109], [0, -52], [5, -153], [6, -40], [6, 12], [6, 49], [1, 144]];
levelSetup.setupShields = [[253, 534, 79], [-119, 124, 34], [424, 178, 16], [414, 71, -15]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 3, 5, 2, 0];
levelSetup.criteria = [10, 15];
levelSetup.AISkill = [50, 70, 50];
levelSetup.teamNames = ["Ninjas", "Zulus", "Arabs"];
levelSetup.teamHealths = [60, 80, 70];
levelSetup.levelID = 19;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[193, 336, 534, 36], [193, 678, 420, 14], [181, 506, 121, 50], [201, 11, 345, 8], [195, 233, 139, 22]];
levelSetup.setupUnits = [[2, -118, 0, ""], [4, -65, 0, ""], [0, 28, 0, ""], [2, 149, 0, ""], [1, -147, 0, ""], [3, 91, 0, ""], [1, 59, 1, "Akna"], [0, 132, 1, "Pakak"], [2, -35, 1, "Sangilak"], [4, -141, 1, "Sedna"], [3, 173, 1, "Chulyin "], [0, -32, 2, "Blackbeard"], [1, -94, 2, "Barbarossa"], [4, 21, 2, "Jack"], [3, -140, 2, "Long John"]];
levelSetup.setupMines = [[1, -5], [0, 78], [3, 130], [2, 45], [4, 120]];
levelSetup.setupShields = [[147, 485, 28], [26, 102, -18], [671, 201, -31], [348, 283, 33]];
levelSetup.enemyWeps = [-1, 5, 3, 4, 5, 4, 3, 5, 1, 0];
levelSetup.criteria = [9, 13];
levelSetup.AISkill = [60, 60];
levelSetup.teamNames = ["Inuits", "Pirates"];
levelSetup.teamHealths = [80, 60];
levelSetup.levelID = 17;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[139, -129, 79, 11], [169, 174, 229, 39], [166, 219, -52, 1], [159, 295, 489, 29], [151, 492, 186, 17], [153, -20, 420, 25], [151, 747, 50, 3], [169, 703, 354, 37]];
levelSetup.setupUnits = [[5, 77, 0, ""], [0, 151, 0, ""], [7, -110, 0, ""], [3, 149, 0, ""], [1, 128, 0, ""], [6, 0, 0, ""], [5, -122, 1, "Erik"], [5, 143, 1, "Baelog"], [4, -158, 1, "Olaf"], [7, -27, 1, "Leif"], [6, -72, 1, "Canute"], [3, 32, 2, "Benedict"], [0, -119, 2, "John Paul"], [4, -45, 2, "Pius"], [4, 29, 2, "Gregory"], [1, -21, 2, "Clement"]];
levelSetup.setupMines = [[3, -139], [0, -54], [6, -153], [4, 111], [1, -107], [1, -147]];
levelSetup.setupShields = [[117, 525, -165], [505, 380, -107], [18, 163, 33], [378, 37, 43]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 5, 5, 2, 0];
levelSetup.criteria = [10, 15];
levelSetup.AISkill = [50, 75];
levelSetup.teamNames = ["Vikings", "Popes"];
levelSetup.teamHealths = [100, 60];
levelSetup.levelID = 20;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[155, 796, 120, 30], [139, 665, 355, 38], [169, 434, 508, 40], [157, -96, 48, 26], [165, 571, -4, 4], [157, 41, 403, 12], [137, 259, 202, 18]];
levelSetup.setupUnits = [[6, -23, 0, ""], [0, -117, 0, ""], [2, 164, 0, ""], [4, 35, 0, ""], [5, -147, 0, ""], [1, -75, 0, ""], [4, -149, 1, "Adenine"], [2, 68, 1, "Guanine"], [6, 59, 1, "Cytosine"], [5, 0, 1, "Thymine"], [3, 101, 2, "Wrath"], [0, -25, 2, "Greed"], [4, -48, 2, "Sloth"], [1, 64, 2, "Pride"], [5, 137, 3, "Lust"], [3, -133, 3, "Envy"], [6, -116, 3, "Gluttony"]];
levelSetup.setupMines = [[0, 63], [2, -26], [6, 131], [5, 75], [3, -80], [4, 137], [3, -62]];
levelSetup.setupShields = [[465, 309, 72], [777, 271, 131], [236, 412, -119], [48, 169, 9], [439, 114, -16]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 5, 5, 3, 1];
levelSetup.criteria = [11, 16];
levelSetup.AISkill = [80, 70, 60];
levelSetup.teamNames = ["Genetic", "Deadly", "Sins"];
levelSetup.teamHealths = [75, 70, 80];
levelSetup.levelID = 21;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[135, 749, 55, 42], [157, 745, 427, 39], [165, 375, 465, 31], [133, -118, 416, 41], [153, 218, -55, 27], [163, 565, 192, 19], [141, -12, 146, 13], [149, 177, 288, 5]];
levelSetup.setupUnits = [[0, -69, 0, ""], [1, 97, 0, ""], [2, 45, 0, ""], [5, -148, 0, ""], [3, -58, 0, ""], [6, 53, 0, ""], [4, -151, 1, "Mercury"], [2, 117, 1, "Venus"], [7, -54, 1, "Earth"], [7, 160, 1, "Mars"], [3, -154, 2, "Stu"], [3, 104, 2, "Nat"], [5, 49, 2, "Boris"], [0, 2, 3, "Cloud"], [1, 29, 3, "Barret"], [4, -15, 3, "XIII"], [6, -135, 3, "Seph"]];
levelSetup.setupMines = [[2, -156], [0, 82], [4, 144], [5, -23], [7, -126], [7, 63], [6, -32]];
levelSetup.setupShields = [[10, -52, -34], [811, 232, 20], [85, 501, 72], [521, -56, 17], [327, 122, -17]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 5, 5, 3, 1];
levelSetup.criteria = [11, 16];
levelSetup.AISkill = [85, 75, 65];
levelSetup.teamNames = ["Terra", "Flat Out", "Seven"];
levelSetup.teamHealths = [100, 100, 50];
levelSetup.levelID = 22;
doTransition("game");
}
public function
(_arg1:MouseEvent){
levelSetup.setupPlanets = [[201, 359, 151, 28], [197, 435, 513, 6], [173, 738, 325, 32], [171, 12, 188, 14], [187, 131, 448, 42], [197, 707, 4, 20]];
levelSetup.setupUnits = [[2, 66, 0, ""], [5, 29, 0, ""], [1, 131, 0, ""], [4, -82, 0, ""], [0, 139, 0, ""], [3, 29, 0, ""], [0, -62, 1, "Bish"], [2, -3, 1, "Charlotte"], [1, -18, 1, "Kirsty"], [1, 74, 1, "Heather"], [4, 7, 2, "War"], [0, -6, 2, "Death"], [0, -143, 2, "Famine"], [0, 62, 2, "Pestilence"], [5, -98, 3, "Download"], [5, -31, 3, "Reading"], [3, 123, 3, "Best"], [3, -153, 3, "Ozz"]];
levelSetup.setupMines = [[1, -166], [4, 109], [0, -101], [2, -96], [5, 105], [5, -159], [3, -41]];
levelSetup.setupShields = [[452, -85, -37], [295, 387, 19], [-72, 505, -39], [142, -1, 56], [569, 179, 11], [526, 298, 31]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 5, 5, 3, 1];
levelSetup.criteria = [12, 18];
levelSetup.AISkill = [90, 80, 70];
levelSetup.teamNames = ["Visitors", "Horsemen", "Fests"];
levelSetup.teamHealths = [80, 90, 80];
levelSetup.levelID = 23;
doTransition("game");
}
public function healthInc(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:int;
if (money >= 500){
_local2 = (_arg1.target.parent.name.substr(6, 1) - 1);
if (teamInfo.unitHealths[_local2] < 20){
var _local5 = teamInfo.unitHealths;
var _local6 = _local2;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
money = (money - 500);
_local3 = 0;
_local4 = 0;
while (_local4 < 6) {
_local3 = (_local3 + teamInfo.unitHealths[_local4]);
_local4++;
};
achievementsInfo.stats["totalHealth"] = _local3;
achievementsInfo.stats["totalMax"] = ((achievementsInfo.stats["totalAccuracy"] + achievementsInfo.stats["totalAccuracy"]) + achievementsInfo.stats["totalWeps"]);
};
();
};
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[155, -106, 527, 8], [165, 292, 559, 22], [151, 784, 240, 45], [157, 767, 9, 41], [157, 96, 311, 44], [193, 434, 0x0101, 34], [161, -128, 42, 16], [183, 227, 16, 30], [176, 601, 500, 1]];
levelSetup.setupUnits = [[2, 24, 0, ""], [5, 147, 0, ""], [4, -124, 0, ""], [7, 22, 0, ""], [0, -119, 0, ""], [6, -54, 0, ""], [7, -151, 1, "DJ"], [6, -116, 1, "Aaron"], [5, 92, 1, "Roland"], [2, -71, 1, "Zoe"], [4, 52, 2, "Callum"], [1, 133, 2, "Pete"], [0, 124, 2, "Jade"], [3, 26, 2, "Dave"], [5, -62, 3, "Greg"], [4, 134, 3, "Jim"], [7, 130, 3, "Emily"], [6, 74, 3, "Alison"]];
levelSetup.setupMines = [[2, 118], [3, -107], [4, -38], [0, 58], [6, 140], [5, -144], [5, 23], [7, -44]];
levelSetup.setupShields = [[619, 212, -172], [21, 131, -68], [818, 431, 38], [262, 383, 50], [500, 18, -43], [-132, 281, 104]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 5, 5, 3, 1];
levelSetup.criteria = [12, 19];
levelSetup.AISkill = [100, 90, 80];
levelSetup.teamNames = ["Flat Out", "Visitors", "Kongregate"];
levelSetup.teamHealths = [100, 100, 100];
levelSetup.levelID = 25;
doTransition("game");
}
public function (_arg1:MouseEvent){
levelSetup.setupPlanets = [[188, 408, 263, 1], [175, 645, 536, 46], [133, 383, 616, 40], [161, 331, -19, 7], [143, 226, 422, 29], [165, 705, 139, 33], [165, 85, 239, 15], [171, -55, 475, 43], [165, -121, -6, 21]];
levelSetup.setupUnits = [[1, 8, 0, ""], [2, 140, 0, ""], [4, -31, 0, ""], [3, -55, 0, ""], [5, -151, 0, ""], [3, 85, 0, ""], [1, 82, 1, "Graham"], [7, -144, 1, "Greg"], [2, 16, 1, "Pye"], [4, -147, 1, "Jimmeh"], [6, 143, 1, "Tarah"], [8, -62, 1, "Jimmeh"], [7, 109, 2, "E"], [8, 154, 2, "A"], [8, -130, 2, "D"], [5, -17, 2, "G"], [3, -138, 2, "B"], [6, -92, 2, "e"]];
levelSetup.setupMines = [[8, 75], [6, 11], [5, 56], [1, 161], [7, -86], [3, 171], [3, 149], [4, 64]];
levelSetup.setupShields = [[735, 317, -111], [-140, 222, -36], [624, -77, 55], [506, 89, 17], [91, -66, -28]];
levelSetup.enemyWeps = [-1, 5, 5, 5, 5, 5, 5, 5, 3, 1];
levelSetup.criteria = [12, 18];
levelSetup.AISkill = [90, 90];
levelSetup.teamNames = ["Visitors", "Tuning"];
levelSetup.teamHealths = [90, 90];
levelSetup.levelID = 24;
doTransition("game");
}
}
}//package gravitee_fla
Section 116
//Medal_464 (gravitee_fla.Medal_464)
package gravitee_fla {
import flash.display.*;
public dynamic class Medal_464 extends MovieClip {
public function Medal_464(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 117
//MedalEnd_516 (gravitee_fla.MedalEnd_516)
package gravitee_fla {
import flash.display.*;
public dynamic class MedalEnd_516 extends MovieClip {
public function MedalEnd_516(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 118
//MessageMovie_69 (gravitee_fla.MessageMovie_69)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MessageMovie_69 extends MovieClip {
public var message:TextField;
}
}//package gravitee_fla
Section 119
//Nuke_66 (gravitee_fla.Nuke_66)
package gravitee_fla {
import flash.display.*;
public dynamic class Nuke_66 extends MovieClip {
public var start:MovieClip;
}
}//package gravitee_fla
Section 120
//Panel_WepsPanel_73 (gravitee_fla.Panel_WepsPanel_73)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Panel_WepsPanel_73 extends MovieClip {
public var wep2stock:TextField;
public var wep2lock:MovieClip;
public var wep6lock:MovieClip;
public var wep9stock:TextField;
public var wep6inf:MovieClip;
public var wep1inf:MovieClip;
public var wep6stock:TextField;
public var wep3stock:TextField;
public var wep7inf:MovieClip;
public var wep1lock:MovieClip;
public var wep9lock:MovieClip;
public var wep5lock:MovieClip;
public var wep2inf:MovieClip;
public var wep10:SimpleButton;
public var wep8inf:MovieClip;
public var wep2:SimpleButton;
public var wep4:SimpleButton;
public var wep5:SimpleButton;
public var wep6:SimpleButton;
public var wep7:SimpleButton;
public var wep9:SimpleButton;
public var wep3:SimpleButton;
public var wep8:SimpleButton;
public var wep3inf:MovieClip;
public var wep1:SimpleButton;
public var wep7stock:TextField;
public var wep4lock:MovieClip;
public var qm10:SimpleButton;
public var wep4stock:TextField;
public var wep8lock:MovieClip;
public var wep9inf:MovieClip;
public var wep1stock:TextField;
public var qm1:SimpleButton;
public var qm3:SimpleButton;
public var qm4:SimpleButton;
public var qm5:SimpleButton;
public var qm6:SimpleButton;
public var qm7:SimpleButton;
public var qm8:SimpleButton;
public var qm2:SimpleButton;
public var wep4inf:MovieClip;
public var qm9:SimpleButton;
public var wep3lock:MovieClip;
public var wep7lock:MovieClip;
public var wep8stock:TextField;
public var wep5stock:TextField;
public var wep5inf:MovieClip;
}
}//package gravitee_fla
Section 121
//Planet10_206 (gravitee_fla.Planet10_206)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet10_206 extends MovieClip {
public function Planet10_206(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 122
//Planet11_207 (gravitee_fla.Planet11_207)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet11_207 extends MovieClip {
public function Planet11_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 123
//Planet12_208 (gravitee_fla.Planet12_208)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet12_208 extends MovieClip {
public function Planet12_208(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 124
//Planet13_209 (gravitee_fla.Planet13_209)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet13_209 extends MovieClip {
public function Planet13_209(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 125
//Planet14_210 (gravitee_fla.Planet14_210)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet14_210 extends MovieClip {
public function Planet14_210(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 126
//Planet15_211 (gravitee_fla.Planet15_211)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet15_211 extends MovieClip {
public function Planet15_211(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 127
//Planet16_212 (gravitee_fla.Planet16_212)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet16_212 extends MovieClip {
public function Planet16_212(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 128
//Planet17_213 (gravitee_fla.Planet17_213)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet17_213 extends MovieClip {
public function Planet17_213(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 129
//Planet18_214 (gravitee_fla.Planet18_214)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet18_214 extends MovieClip {
public function Planet18_214(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 130
//Planet19_215 (gravitee_fla.Planet19_215)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet19_215 extends MovieClip {
public function Planet19_215(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 131
//Planet2_197 (gravitee_fla.Planet2_197)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet2_197 extends MovieClip {
public function Planet2_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 132
//Planet20_216 (gravitee_fla.Planet20_216)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet20_216 extends MovieClip {
public function Planet20_216(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 133
//Planet21_217 (gravitee_fla.Planet21_217)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet21_217 extends MovieClip {
public function Planet21_217(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 134
//Planet22_218 (gravitee_fla.Planet22_218)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet22_218 extends MovieClip {
public function Planet22_218(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 135
//Planet23_219 (gravitee_fla.Planet23_219)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet23_219 extends MovieClip {
public function Planet23_219(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 136
//Planet24_220 (gravitee_fla.Planet24_220)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet24_220 extends MovieClip {
public function Planet24_220(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 137
//Planet25_221 (gravitee_fla.Planet25_221)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet25_221 extends MovieClip {
public function Planet25_221(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 138
//Planet26_222 (gravitee_fla.Planet26_222)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet26_222 extends MovieClip {
public function Planet26_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 139
//Planet27_223 (gravitee_fla.Planet27_223)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet27_223 extends MovieClip {
public function Planet27_223(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 140
//Planet28_224 (gravitee_fla.Planet28_224)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet28_224 extends MovieClip {
public function Planet28_224(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 141
//Planet29_225 (gravitee_fla.Planet29_225)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet29_225 extends MovieClip {
public function Planet29_225(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 142
//Planet3_199 (gravitee_fla.Planet3_199)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet3_199 extends MovieClip {
public function Planet3_199(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 143
//Planet30_226 (gravitee_fla.Planet30_226)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet30_226 extends MovieClip {
public function Planet30_226(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 144
//Planet31_227 (gravitee_fla.Planet31_227)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet31_227 extends MovieClip {
public function Planet31_227(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 145
//Planet32_228 (gravitee_fla.Planet32_228)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet32_228 extends MovieClip {
public function Planet32_228(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 146
//Planet33_229 (gravitee_fla.Planet33_229)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet33_229 extends MovieClip {
public function Planet33_229(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 147
//Planet34_230 (gravitee_fla.Planet34_230)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet34_230 extends MovieClip {
public function Planet34_230(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 148
//Planet35_231 (gravitee_fla.Planet35_231)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet35_231 extends MovieClip {
public function Planet35_231(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 149
//Planet36_232 (gravitee_fla.Planet36_232)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet36_232 extends MovieClip {
public function Planet36_232(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 150
//Planet37_233 (gravitee_fla.Planet37_233)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet37_233 extends MovieClip {
public function Planet37_233(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 151
//Planet38_234 (gravitee_fla.Planet38_234)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet38_234 extends MovieClip {
public function Planet38_234(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 152
//Planet39_235 (gravitee_fla.Planet39_235)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet39_235 extends MovieClip {
public function Planet39_235(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 153
//Planet4_200 (gravitee_fla.Planet4_200)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet4_200 extends MovieClip {
public function Planet4_200(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 154
//Planet40_236 (gravitee_fla.Planet40_236)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet40_236 extends MovieClip {
public function Planet40_236(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 155
//Planet41_237 (gravitee_fla.Planet41_237)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet41_237 extends MovieClip {
public function Planet41_237(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 156
//Planet42_238 (gravitee_fla.Planet42_238)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet42_238 extends MovieClip {
public function Planet42_238(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 157
//Planet43_239 (gravitee_fla.Planet43_239)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet43_239 extends MovieClip {
public function Planet43_239(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 158
//Planet44_240 (gravitee_fla.Planet44_240)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet44_240 extends MovieClip {
public function Planet44_240(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 159
//Planet45_241 (gravitee_fla.Planet45_241)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet45_241 extends MovieClip {
public function Planet45_241(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 160
//Planet46_242 (gravitee_fla.Planet46_242)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet46_242 extends MovieClip {
public function Planet46_242(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 161
//Planet47_243 (gravitee_fla.Planet47_243)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet47_243 extends MovieClip {
public function Planet47_243(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 162
//Planet48_244 (gravitee_fla.Planet48_244)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet48_244 extends MovieClip {
public function Planet48_244(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 163
//Planet49_245 (gravitee_fla.Planet49_245)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet49_245 extends MovieClip {
public function Planet49_245(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 164
//Planet5_201 (gravitee_fla.Planet5_201)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet5_201 extends MovieClip {
public function Planet5_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 165
//Planet50_246 (gravitee_fla.Planet50_246)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet50_246 extends MovieClip {
public function Planet50_246(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 166
//Planet51_247 (gravitee_fla.Planet51_247)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet51_247 extends MovieClip {
public function Planet51_247(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 167
//Planet51_248 (gravitee_fla.Planet51_248)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet51_248 extends MovieClip {
public var flameicon:MovieClip;
}
}//package gravitee_fla
Section 168
//Planet6_202 (gravitee_fla.Planet6_202)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet6_202 extends MovieClip {
public function Planet6_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 169
//Planet7_203 (gravitee_fla.Planet7_203)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet7_203 extends MovieClip {
public function Planet7_203(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 170
//Planet8_204 (gravitee_fla.Planet8_204)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet8_204 extends MovieClip {
public function Planet8_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 171
//Planet9_205 (gravitee_fla.Planet9_205)
package gravitee_fla {
import flash.display.*;
public dynamic class Planet9_205 extends MovieClip {
public function Planet9_205(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 172
//PoisonMovie_123 (gravitee_fla.PoisonMovie_123)
package gravitee_fla {
import flash.display.*;
public dynamic class PoisonMovie_123 extends MovieClip {
public function PoisonMovie_123(){
addFrameScript(0, frame1, 42, frame43);
}
function frame1(){
stop();
}
function frame43(){
gotoAndPlay(2);
}
}
}//package gravitee_fla
Section 173
//RewardIcon1_396 (gravitee_fla.RewardIcon1_396)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon1_396 extends MovieClip {
public function RewardIcon1_396(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 174
//RewardIcon10_405 (gravitee_fla.RewardIcon10_405)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon10_405 extends MovieClip {
public function RewardIcon10_405(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 175
//RewardIcon11_406 (gravitee_fla.RewardIcon11_406)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon11_406 extends MovieClip {
public var unit:Unit;
public function RewardIcon11_406(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("yoyo");
}
}
}//package gravitee_fla
Section 176
//RewardIcon12_407 (gravitee_fla.RewardIcon12_407)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon12_407 extends MovieClip {
public var unit:Unit;
public function RewardIcon12_407(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("worm");
}
}
}//package gravitee_fla
Section 177
//RewardIcon13_408 (gravitee_fla.RewardIcon13_408)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon13_408 extends MovieClip {
public var unit:Unit;
public function RewardIcon13_408(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("juggle");
}
}
}//package gravitee_fla
Section 178
//RewardIcon14_409 (gravitee_fla.RewardIcon14_409)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon14_409 extends MovieClip {
public var unit:Unit;
public function RewardIcon14_409(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("moonwalk");
}
}
}//package gravitee_fla
Section 179
//RewardIcon15_410 (gravitee_fla.RewardIcon15_410)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon15_410 extends MovieClip {
public function RewardIcon15_410(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 180
//RewardIcon16_411 (gravitee_fla.RewardIcon16_411)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon16_411 extends MovieClip {
public function RewardIcon16_411(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 181
//RewardIcon17_412 (gravitee_fla.RewardIcon17_412)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon17_412 extends MovieClip {
public function RewardIcon17_412(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 182
//RewardIcon18_413 (gravitee_fla.RewardIcon18_413)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon18_413 extends MovieClip {
public var unit:Unit;
public function RewardIcon18_413(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("mp3");
}
}
}//package gravitee_fla
Section 183
//RewardIcon19_414 (gravitee_fla.RewardIcon19_414)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon19_414 extends MovieClip {
public var unit:Unit;
public function RewardIcon19_414(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("gunshoot");
}
}
}//package gravitee_fla
Section 184
//RewardIcon2_397 (gravitee_fla.RewardIcon2_397)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon2_397 extends MovieClip {
public function RewardIcon2_397(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 185
//RewardIcon20_415 (gravitee_fla.RewardIcon20_415)
package gravitee_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class RewardIcon20_415 extends MovieClip {
public var butt:MovieClip;
public function RewardIcon20_415(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
if (MovieClip(root).classicGraphics){
butt.gotoAndStop(2);
};
}
}
}//package gravitee_fla
Section 186
//RewardIcon21_419 (gravitee_fla.RewardIcon21_419)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon21_419 extends MovieClip {
public function RewardIcon21_419(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 187
//RewardIcon3_398 (gravitee_fla.RewardIcon3_398)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon3_398 extends MovieClip {
public function RewardIcon3_398(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 188
//RewardIcon4_399 (gravitee_fla.RewardIcon4_399)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon4_399 extends MovieClip {
public var unit:Unit;
public function RewardIcon4_399(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("blowgum");
}
}
}//package gravitee_fla
Section 189
//RewardIcon5_400 (gravitee_fla.RewardIcon5_400)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon5_400 extends MovieClip {
public var unit:Unit;
public function RewardIcon5_400(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("headbang");
}
}
}//package gravitee_fla
Section 190
//RewardIcon6_401 (gravitee_fla.RewardIcon6_401)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon6_401 extends MovieClip {
public var unit:Unit;
public function RewardIcon6_401(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("phone");
}
}
}//package gravitee_fla
Section 191
//RewardIcon7_402 (gravitee_fla.RewardIcon7_402)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class RewardIcon7_402 extends MovieClip {
public var unit:Unit;
public function RewardIcon7_402(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
unit.team = 0;
unit.changeAnim("hands");
}
}
}//package gravitee_fla
Section 192
//RewardIcon8_403 (gravitee_fla.RewardIcon8_403)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon8_403 extends MovieClip {
public function RewardIcon8_403(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 193
//RewardIcon9_404 (gravitee_fla.RewardIcon9_404)
package gravitee_fla {
import flash.display.*;
public dynamic class RewardIcon9_404 extends MovieClip {
public function RewardIcon9_404(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 194
//Sniper_146 (gravitee_fla.Sniper_146)
package gravitee_fla {
import flash.display.*;
public dynamic class Sniper_146 extends MovieClip {
public var fireanim:MovieClip;
public var start:MovieClip;
}
}//package gravitee_fla
Section 195
//Sound_Award_360 (gravitee_fla.Sound_Award_360)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Award_360 extends MovieClip {
public function Sound_Award_360(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 196
//Sound_Blackhole_359 (gravitee_fla.Sound_Blackhole_359)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Blackhole_359 extends MovieClip {
public function Sound_Blackhole_359(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 197
//Sound_Burn_361 (gravitee_fla.Sound_Burn_361)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Burn_361 extends MovieClip {
public function Sound_Burn_361(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 198
//Sound_Electrocute_365 (gravitee_fla.Sound_Electrocute_365)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Electrocute_365 extends MovieClip {
public function Sound_Electrocute_365(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 199
//Sound_Explosion_356 (gravitee_fla.Sound_Explosion_356)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Explosion_356 extends MovieClip {
public function Sound_Explosion_356(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 200
//Sound_MineBeep_368 (gravitee_fla.Sound_MineBeep_368)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_MineBeep_368 extends MovieClip {
public function Sound_MineBeep_368(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 201
//Sound_Music_362 (gravitee_fla.Sound_Music_362)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Music_362 extends MovieClip {
public function Sound_Music_362(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 202
//Sound_PickupAmmo_364 (gravitee_fla.Sound_PickupAmmo_364)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_PickupAmmo_364 extends MovieClip {
public function Sound_PickupAmmo_364(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 203
//Sound_PickupHealth_363 (gravitee_fla.Sound_PickupHealth_363)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_PickupHealth_363 extends MovieClip {
public function Sound_PickupHealth_363(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 204
//Sound_RocketShoot_355 (gravitee_fla.Sound_RocketShoot_355)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_RocketShoot_355 extends MovieClip {
public function Sound_RocketShoot_355(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 205
//Sound_ShieldBounce_366 (gravitee_fla.Sound_ShieldBounce_366)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_ShieldBounce_366 extends MovieClip {
public function Sound_ShieldBounce_366(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 206
//Sound_Sniper_367 (gravitee_fla.Sound_Sniper_367)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Sniper_367 extends MovieClip {
public function Sound_Sniper_367(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 207
//Sound_Spit_358 (gravitee_fla.Sound_Spit_358)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Spit_358 extends MovieClip {
public function Sound_Spit_358(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 208
//Sound_Teleport_357 (gravitee_fla.Sound_Teleport_357)
package gravitee_fla {
import flash.display.*;
public dynamic class Sound_Teleport_357 extends MovieClip {
public function Sound_Teleport_357(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 209
//StockBox_440 (gravitee_fla.StockBox_440)
package gravitee_fla {
import flash.display.*;
import flash.text.*;
public dynamic class StockBox_440 extends MovieClip {
public var stock:TextField;
public var minus:SimpleButton;
public var plus:SimpleButton;
public function StockBox_440(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 210
//Sun_195 (gravitee_fla.Sun_195)
package gravitee_fla {
import flash.display.*;
public dynamic class Sun_195 extends MovieClip {
public function Sun_195(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 211
//SunGraphic_196 (gravitee_fla.SunGraphic_196)
package gravitee_fla {
import flash.display.*;
public dynamic class SunGraphic_196 extends MovieClip {
public function SunGraphic_196(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 212
//ThoughtBubble_175 (gravitee_fla.ThoughtBubble_175)
package gravitee_fla {
import flash.display.*;
public dynamic class ThoughtBubble_175 extends MovieClip {
public var qmark:MovieClip;
}
}//package gravitee_fla
Section 213
//Transition2_4 (gravitee_fla.Transition2_4)
package gravitee_fla {
import flash.display.*;
public dynamic class Transition2_4 extends MovieClip {
public function Transition2_4(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package gravitee_fla
Section 214
//Transition3_6 (gravitee_fla.Transition3_6)
package gravitee_fla {
import flash.display.*;
public dynamic class Transition3_6 extends MovieClip {
public function Transition3_6(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package gravitee_fla
Section 215
//Transition4_7 (gravitee_fla.Transition4_7)
package gravitee_fla {
import flash.display.*;
public dynamic class Transition4_7 extends MovieClip {
public function Transition4_7(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package gravitee_fla
Section 216
//Transition5_9 (gravitee_fla.Transition5_9)
package gravitee_fla {
import flash.display.*;
public dynamic class Transition5_9 extends MovieClip {
public function Transition5_9(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package gravitee_fla
Section 217
//TutAnim1_303 (gravitee_fla.TutAnim1_303)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim1_303 extends MovieClip {
public var unit1:Unit;
public var unit2:Unit;
}
}//package gravitee_fla
Section 218
//TutAnim3_309 (gravitee_fla.TutAnim3_309)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim3_309 extends MovieClip {
public var unit1:Unit;
public function TutAnim3_309(){
addFrameScript(13, frame14, 38, frame39, 49, frame50, 74, frame75, 85, frame86, 110, frame111, 121, frame122, 146, frame147, 157, frame158, 182, frame183, 193, frame194, 218, frame219, 229, frame230, 254, frame255, 265, frame266, 289, frame290);
}
function frame75(){
unit1.changeAnim("bob");
}
function frame158(){
unit1.changeAnim("walk");
}
function frame86(){
unit1.changeAnim("walk");
}
function frame290(){
unit1.changeAnim("bob");
}
function frame14(){
unit1.changeAnim("walk");
}
function frame183(){
unit1.changeAnim("bob");
}
function frame194(){
unit1.changeAnim("walk");
}
function frame111(){
unit1.changeAnim("bob");
}
function frame230(){
unit1.changeAnim("walk");
}
function frame39(){
unit1.changeAnim("bob");
}
function frame219(){
unit1.changeAnim("bob");
}
function frame122(){
unit1.changeAnim("walk");
}
function frame255(){
unit1.changeAnim("bob");
}
function frame50(){
unit1.changeAnim("walk");
}
function frame266(){
unit1.changeAnim("walk");
}
function frame147(){
unit1.changeAnim("bob");
}
}
}//package gravitee_fla
Section 219
//TutAnim3_427 (gravitee_fla.TutAnim3_427)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim3_427 extends MovieClip {
public var unit1:Unit;
public function TutAnim3_427(){
addFrameScript(13, frame14, 38, frame39, 49, frame50, 74, frame75, 85, frame86, 110, frame111, 121, frame122, 146, frame147, 157, frame158, 182, frame183, 193, frame194, 218, frame219, 229, frame230, 254, frame255, 265, frame266, 289, frame290);
}
function frame75(){
unit1.changeAnim("bob");
}
function frame158(){
unit1.changeAnim("walk");
}
function frame86(){
unit1.changeAnim("walk");
}
function frame290(){
unit1.changeAnim("bob");
}
function frame14(){
unit1.changeAnim("walk");
}
function frame183(){
unit1.changeAnim("bob");
}
function frame194(){
unit1.changeAnim("walk");
}
function frame111(){
unit1.changeAnim("bob");
}
function frame230(){
unit1.changeAnim("walk");
}
function frame39(){
unit1.changeAnim("bob");
}
function frame219(){
unit1.changeAnim("bob");
}
function frame122(){
unit1.changeAnim("walk");
}
function frame255(){
unit1.changeAnim("bob");
}
function frame50(){
unit1.changeAnim("walk");
}
function frame266(){
unit1.changeAnim("walk");
}
function frame147(){
unit1.changeAnim("bob");
}
}
}//package gravitee_fla
Section 220
//TutAnim4_310 (gravitee_fla.TutAnim4_310)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim4_310 extends MovieClip {
public var unit1:Unit;
}
}//package gravitee_fla
Section 221
//TutAnim5_311 (gravitee_fla.TutAnim5_311)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim5_311 extends MovieClip {
public var unit1:Unit;
public var unit2:Unit;
public function TutAnim5_311(){
addFrameScript(27, frame28, 49, frame50);
}
function frame28(){
unit2.changeAnim("stand");
}
function frame50(){
unit2.changeAnim("bob");
}
}
}//package gravitee_fla
Section 222
//TutAnim6_313 (gravitee_fla.TutAnim6_313)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim6_313 extends MovieClip {
public var unit1:Unit;
public var mine:Mine;
public var up:UnitProjectile;
public function TutAnim6_313(){
addFrameScript(0, frame1, 5, frame6, 18, frame19, 23, frame24, 25, frame26, 29, frame30, 31, frame32, 33, frame34, 35, frame36, 37, frame38, 40, frame41);
}
function frame19(){
mine.gotoAndStop(4);
}
function frame6(){
unit1.changeAnim("walk");
}
function frame26(){
mine.gotoAndStop(4);
}
function frame24(){
mine.gotoAndStop(5);
}
function frame1(){
mine.gotoAndStop(2);
unit1.team = 0;
unit1.updateCol();
}
function frame30(){
mine.gotoAndStop(5);
unit1.changeAnim("bob");
}
function frame36(){
mine.gotoAndStop(5);
}
function frame34(){
mine.gotoAndStop(5);
}
function frame38(){
mine.gotoAndStop(4);
}
function frame41(){
up.team = 0;
up.updateCol();
}
function frame32(){
mine.gotoAndStop(4);
}
}
}//package gravitee_fla
Section 223
//TutAnim7_314 (gravitee_fla.TutAnim7_314)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim7_314 extends MovieClip {
public var up:UnitProjectile;
public function TutAnim7_314(){
addFrameScript(20, frame21);
}
function frame21(){
up.team = 0;
up.updateCol();
}
}
}//package gravitee_fla
Section 224
//TutAnim9_424 (gravitee_fla.TutAnim9_424)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class TutAnim9_424 extends MovieClip {
public var unit1:Unit;
public var unit2:Unit;
}
}//package gravitee_fla
Section 225
//UnitAnim_BlowGum_164 (gravitee_fla.UnitAnim_BlowGum_164)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_BlowGum_164 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 226
//UnitAnim_Bob_125 (gravitee_fla.UnitAnim_Bob_125)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Bob_125 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 227
//UnitAnim_Cheer_170 (gravitee_fla.UnitAnim_Cheer_170)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Cheer_170 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Cheer_170(){
addFrameScript(28, frame29);
}
function frame29(){
gotoAndPlay(6);
}
}
}//package gravitee_fla
Section 228
//UnitAnim_Collapse_136 (gravitee_fla.UnitAnim_Collapse_136)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Collapse_136 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 229
//UnitAnim_Cry_167 (gravitee_fla.UnitAnim_Cry_167)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Cry_167 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Cry_167(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay(6);
}
}
}//package gravitee_fla
Section 230
//UnitAnim_FallDown_160 (gravitee_fla.UnitAnim_FallDown_160)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_FallDown_160 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_FallDown_160(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package gravitee_fla
Section 231
//UnitAnim_GunShoot_168 (gravitee_fla.UnitAnim_GunShoot_168)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_GunShoot_168 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_GunShoot_168(){
addFrameScript(48, frame49);
}
function frame49(){
gotoAndPlay(25);
}
}
}//package gravitee_fla
Section 232
//UnitAnim_Hands_186 (gravitee_fla.UnitAnim_Hands_186)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Hands_186 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Hands_186(){
addFrameScript(66, frame67);
}
function frame67(){
gotoAndPlay(28);
}
}
}//package gravitee_fla
Section 233
//UnitAnim_HeadBang_139 (gravitee_fla.UnitAnim_HeadBang_139)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_HeadBang_139 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_HeadBang_139(){
addFrameScript(0, frame1, 16, frame17);
}
function frame1(){
gotoAndPlay(Math.ceil((Math.random() * 3)));
}
function frame17(){
gotoAndPlay(10);
}
}
}//package gravitee_fla
Section 234
//UnitAnim_Juggle_179 (gravitee_fla.UnitAnim_Juggle_179)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Juggle_179 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 235
//UnitAnim_Lay_137 (gravitee_fla.UnitAnim_Lay_137)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Lay_137 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Lay_137(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 236
//UnitAnim_MoonWalk_138 (gravitee_fla.UnitAnim_MoonWalk_138)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_MoonWalk_138 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_MoonWalk_138(){
addFrameScript(35, frame36);
}
function frame36(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 237
//UnitAnim_MP3_177 (gravitee_fla.UnitAnim_MP3_177)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_MP3_177 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 238
//UnitAnim_Phone_184 (gravitee_fla.UnitAnim_Phone_184)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Phone_184 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 239
//UnitAnim_TeleIn_172 (gravitee_fla.UnitAnim_TeleIn_172)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_TeleIn_172 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 240
//UnitAnim_TeleOut_173 (gravitee_fla.UnitAnim_TeleOut_173)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_TeleOut_173 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 241
//UnitAnim_Thinking_174 (gravitee_fla.UnitAnim_Thinking_174)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Thinking_174 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var bubble:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Thinking_174(){
addFrameScript(32, frame33);
}
function frame33(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 242
//UnitAnim_TurnHead_126 (gravitee_fla.UnitAnim_TurnHead_126)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_TurnHead_126 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 243
//UnitAnim_Walk_140 (gravitee_fla.UnitAnim_Walk_140)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Walk_140 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Walk_140(){
addFrameScript(47, frame48, 48, frame49);
}
function frame48(){
gotoAndPlay(1);
}
function frame49(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 244
//UnitAnim_Wave_134 (gravitee_fla.UnitAnim_Wave_134)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wave_134 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 245
//UnitAnim_Wep_Bazooka_142 (gravitee_fla.UnitAnim_Wep_Bazooka_142)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_Bazooka_142 extends MovieClip {
public var leftfoot:MovieClip;
public var wep:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_Bazooka_142(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 246
//UnitAnim_Wep_BazookaAim_141 (gravitee_fla.UnitAnim_Wep_BazookaAim_141)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_BazookaAim_141 extends MovieClip {
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var wep:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public function UnitAnim_Wep_BazookaAim_141(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180);
}
function frame151(){
stop();
}
function frame152(){
stop();
}
function frame154(){
stop();
}
function frame155(){
stop();
}
function frame156(){
stop();
}
function frame157(){
stop();
}
function frame158(){
stop();
}
function frame159(){
stop();
}
function frame153(){
stop();
}
function frame160(){
stop();
}
function frame162(){
stop();
}
function frame163(){
stop();
}
function frame164(){
stop();
}
function frame165(){
stop();
}
function frame166(){
stop();
}
function frame167(){
stop();
}
function frame161(){
stop();
}
function frame169(){
stop();
}
function frame168(){
stop();
}
function frame171(){
stop();
}
function frame172(){
stop();
}
function frame176(){
stop();
}
function frame170(){
stop();
}
function frame178(){
stop();
}
function frame179(){
stop();
}
function frame174(){
stop();
}
function frame175(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame180(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame31(){
stop();
}
function frame33(){
stop();
}
function frame177(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame37(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame57(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame173(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame65(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame80(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame87(){
stop();
}
function frame89(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame90(){
stop();
}
function frame99(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame96(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
function frame112(){
stop();
}
function frame114(){
stop();
}
function frame116(){
stop();
}
function frame117(){
stop();
}
function frame118(){
stop();
}
function frame115(){
stop();
}
function frame113(){
stop();
}
function frame119(){
stop();
}
function frame122(){
stop();
}
function frame124(){
stop();
}
function frame125(){
stop();
}
function frame126(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
}
function frame123(){
stop();
}
function frame127(){
stop();
}
function frame128(){
stop();
}
function frame129(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame132(){
stop();
}
function frame134(){
stop();
}
function frame137(){
stop();
}
function frame138(){
stop();
}
function frame139(){
stop();
}
function frame135(){
stop();
}
function frame136(){
stop();
}
function frame133(){
stop();
}
function frame141(){
stop();
}
function frame142(){
stop();
}
function frame143(){
stop();
}
function frame144(){
stop();
}
function frame145(){
stop();
}
function frame146(){
stop();
}
function frame140(){
stop();
}
function frame148(){
stop();
}
function frame149(){
stop();
}
function frame147(){
stop();
}
function frame150(){
stop();
}
}
}//package gravitee_fla
Section 247
//UnitAnim_Wep_BlowPipe_153 (gravitee_fla.UnitAnim_Wep_BlowPipe_153)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_BlowPipe_153 extends MovieClip {
public var leftfoot:MovieClip;
public var wep:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_BlowPipe_153(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 248
//UnitAnim_Wep_BlowPipeAim_152 (gravitee_fla.UnitAnim_Wep_BlowPipeAim_152)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_BlowPipeAim_152 extends MovieClip {
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var wep:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public function UnitAnim_Wep_BlowPipeAim_152(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180);
}
function frame151(){
stop();
}
function frame152(){
stop();
}
function frame154(){
stop();
}
function frame155(){
stop();
}
function frame156(){
stop();
}
function frame157(){
stop();
}
function frame158(){
stop();
}
function frame159(){
stop();
}
function frame153(){
stop();
}
function frame160(){
stop();
}
function frame162(){
stop();
}
function frame163(){
stop();
}
function frame164(){
stop();
}
function frame165(){
stop();
}
function frame166(){
stop();
}
function frame167(){
stop();
}
function frame161(){
stop();
}
function frame169(){
stop();
}
function frame168(){
stop();
}
function frame171(){
stop();
}
function frame172(){
stop();
}
function frame176(){
stop();
}
function frame170(){
stop();
}
function frame178(){
stop();
}
function frame179(){
stop();
}
function frame174(){
stop();
}
function frame175(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame180(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame31(){
stop();
}
function frame33(){
stop();
}
function frame177(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame37(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame57(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame173(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame65(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame80(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame87(){
stop();
}
function frame89(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame90(){
stop();
}
function frame99(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame96(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
function frame112(){
stop();
}
function frame114(){
stop();
}
function frame116(){
stop();
}
function frame117(){
stop();
}
function frame118(){
stop();
}
function frame115(){
stop();
}
function frame113(){
stop();
}
function frame119(){
stop();
}
function frame122(){
stop();
}
function frame124(){
stop();
}
function frame125(){
stop();
}
function frame126(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
}
function frame123(){
stop();
}
function frame127(){
stop();
}
function frame128(){
stop();
}
function frame129(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame132(){
stop();
}
function frame134(){
stop();
}
function frame137(){
stop();
}
function frame138(){
stop();
}
function frame139(){
stop();
}
function frame135(){
stop();
}
function frame136(){
stop();
}
function frame133(){
stop();
}
function frame141(){
stop();
}
function frame142(){
stop();
}
function frame143(){
stop();
}
function frame144(){
stop();
}
function frame145(){
stop();
}
function frame146(){
stop();
}
function frame140(){
stop();
}
function frame148(){
stop();
}
function frame149(){
stop();
}
function frame147(){
stop();
}
function frame150(){
stop();
}
}
}//package gravitee_fla
Section 249
//UnitAnim_Wep_Cluster_144 (gravitee_fla.UnitAnim_Wep_Cluster_144)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_Cluster_144 extends MovieClip {
public var leftfoot:MovieClip;
public var wep:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_Cluster_144(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 250
//UnitAnim_Wep_ClusterAim_143 (gravitee_fla.UnitAnim_Wep_ClusterAim_143)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_ClusterAim_143 extends MovieClip {
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var wep:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public function UnitAnim_Wep_ClusterAim_143(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180);
}
function frame151(){
stop();
}
function frame152(){
stop();
}
function frame154(){
stop();
}
function frame155(){
stop();
}
function frame156(){
stop();
}
function frame157(){
stop();
}
function frame158(){
stop();
}
function frame159(){
stop();
}
function frame153(){
stop();
}
function frame160(){
stop();
}
function frame162(){
stop();
}
function frame163(){
stop();
}
function frame164(){
stop();
}
function frame165(){
stop();
}
function frame166(){
stop();
}
function frame167(){
stop();
}
function frame161(){
stop();
}
function frame169(){
stop();
}
function frame168(){
stop();
}
function frame171(){
stop();
}
function frame172(){
stop();
}
function frame176(){
stop();
}
function frame170(){
stop();
}
function frame178(){
stop();
}
function frame179(){
stop();
}
function frame174(){
stop();
}
function frame175(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame180(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame31(){
stop();
}
function frame33(){
stop();
}
function frame177(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame37(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame57(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame173(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame65(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame80(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame87(){
stop();
}
function frame89(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame90(){
stop();
}
function frame99(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame96(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
function frame112(){
stop();
}
function frame114(){
stop();
}
function frame116(){
stop();
}
function frame117(){
stop();
}
function frame118(){
stop();
}
function frame115(){
stop();
}
function frame113(){
stop();
}
function frame119(){
stop();
}
function frame122(){
stop();
}
function frame124(){
stop();
}
function frame125(){
stop();
}
function frame126(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
}
function frame123(){
stop();
}
function frame127(){
stop();
}
function frame128(){
stop();
}
function frame129(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame132(){
stop();
}
function frame134(){
stop();
}
function frame137(){
stop();
}
function frame138(){
stop();
}
function frame139(){
stop();
}
function frame135(){
stop();
}
function frame136(){
stop();
}
function frame133(){
stop();
}
function frame141(){
stop();
}
function frame142(){
stop();
}
function frame143(){
stop();
}
function frame144(){
stop();
}
function frame145(){
stop();
}
function frame146(){
stop();
}
function frame140(){
stop();
}
function frame148(){
stop();
}
function frame149(){
stop();
}
function frame147(){
stop();
}
function frame150(){
stop();
}
}
}//package gravitee_fla
Section 251
//UnitAnim_Wep_Drill_151 (gravitee_fla.UnitAnim_Wep_Drill_151)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_Drill_151 extends MovieClip {
public var leftfoot:MovieClip;
public var wep:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_Drill_151(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 252
//UnitAnim_Wep_DrillAim_150 (gravitee_fla.UnitAnim_Wep_DrillAim_150)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_DrillAim_150 extends MovieClip {
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var wep:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public function UnitAnim_Wep_DrillAim_150(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180);
}
function frame151(){
stop();
}
function frame152(){
stop();
}
function frame154(){
stop();
}
function frame155(){
stop();
}
function frame156(){
stop();
}
function frame157(){
stop();
}
function frame158(){
stop();
}
function frame159(){
stop();
}
function frame153(){
stop();
}
function frame160(){
stop();
}
function frame162(){
stop();
}
function frame163(){
stop();
}
function frame164(){
stop();
}
function frame165(){
stop();
}
function frame166(){
stop();
}
function frame167(){
stop();
}
function frame161(){
stop();
}
function frame169(){
stop();
}
function frame168(){
stop();
}
function frame171(){
stop();
}
function frame172(){
stop();
}
function frame176(){
stop();
}
function frame170(){
stop();
}
function frame178(){
stop();
}
function frame179(){
stop();
}
function frame174(){
stop();
}
function frame175(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame180(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame31(){
stop();
}
function frame33(){
stop();
}
function frame177(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame37(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame57(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame173(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame65(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame80(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame87(){
stop();
}
function frame89(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame90(){
stop();
}
function frame99(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame96(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
function frame112(){
stop();
}
function frame114(){
stop();
}
function frame116(){
stop();
}
function frame117(){
stop();
}
function frame118(){
stop();
}
function frame115(){
stop();
}
function frame113(){
stop();
}
function frame119(){
stop();
}
function frame122(){
stop();
}
function frame124(){
stop();
}
function frame125(){
stop();
}
function frame126(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
}
function frame123(){
stop();
}
function frame127(){
stop();
}
function frame128(){
stop();
}
function frame129(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame132(){
stop();
}
function frame134(){
stop();
}
function frame137(){
stop();
}
function frame138(){
stop();
}
function frame139(){
stop();
}
function frame135(){
stop();
}
function frame136(){
stop();
}
function frame133(){
stop();
}
function frame141(){
stop();
}
function frame142(){
stop();
}
function frame143(){
stop();
}
function frame144(){
stop();
}
function frame145(){
stop();
}
function frame146(){
stop();
}
function frame140(){
stop();
}
function frame148(){
stop();
}
function frame149(){
stop();
}
function frame147(){
stop();
}
function frame150(){
stop();
}
}
}//package gravitee_fla
Section 253
//UnitAnim_Wep_Mine_157 (gravitee_fla.UnitAnim_Wep_Mine_157)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class UnitAnim_Wep_Mine_157 extends MovieClip {
public var leftfoot:MovieClip;
public var wep:Mine;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_Mine_157(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 254
//UnitAnim_Wep_MineAim_156 (gravitee_fla.UnitAnim_Wep_MineAim_156)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class UnitAnim_Wep_MineAim_156 extends MovieClip {
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var wep:Mine;
public var body:MovieClip;
public var head:MovieClip;
public function UnitAnim_Wep_MineAim_156(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180);
}
function frame151(){
stop();
}
function frame152(){
stop();
}
function frame154(){
stop();
}
function frame155(){
stop();
}
function frame156(){
stop();
}
function frame157(){
stop();
}
function frame158(){
stop();
}
function frame159(){
stop();
}
function frame153(){
stop();
}
function frame160(){
stop();
}
function frame162(){
stop();
}
function frame163(){
stop();
}
function frame164(){
stop();
}
function frame165(){
stop();
}
function frame166(){
stop();
}
function frame167(){
stop();
}
function frame161(){
stop();
}
function frame169(){
stop();
}
function frame168(){
stop();
}
function frame171(){
stop();
}
function frame172(){
stop();
}
function frame176(){
stop();
}
function frame170(){
stop();
}
function frame178(){
stop();
}
function frame179(){
stop();
}
function frame174(){
stop();
}
function frame175(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame180(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame31(){
stop();
}
function frame33(){
stop();
}
function frame177(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame37(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame57(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame173(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame65(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame80(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame87(){
stop();
}
function frame89(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame90(){
stop();
}
function frame99(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame96(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
function frame112(){
stop();
}
function frame114(){
stop();
}
function frame116(){
stop();
}
function frame117(){
stop();
}
function frame118(){
stop();
}
function frame115(){
stop();
}
function frame113(){
stop();
}
function frame119(){
stop();
}
function frame122(){
stop();
}
function frame124(){
stop();
}
function frame125(){
stop();
}
function frame126(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
}
function frame123(){
stop();
}
function frame127(){
stop();
}
function frame128(){
stop();
}
function frame129(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame132(){
stop();
}
function frame134(){
stop();
}
function frame137(){
stop();
}
function frame138(){
stop();
}
function frame139(){
stop();
}
function frame135(){
stop();
}
function frame136(){
stop();
}
function frame133(){
stop();
}
function frame141(){
stop();
}
function frame142(){
stop();
}
function frame143(){
stop();
}
function frame144(){
stop();
}
function frame145(){
stop();
}
function frame146(){
stop();
}
function frame140(){
stop();
}
function frame148(){
stop();
}
function frame149(){
stop();
}
function frame147(){
stop();
}
function frame150(){
stop();
}
}
}//package gravitee_fla
Section 255
//UnitAnim_Wep_Nuke_155 (gravitee_fla.UnitAnim_Wep_Nuke_155)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_Nuke_155 extends MovieClip {
public var leftfoot:MovieClip;
public var wep:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_Nuke_155(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 256
//UnitAnim_Wep_NukeAim_154 (gravitee_fla.UnitAnim_Wep_NukeAim_154)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_NukeAim_154 extends MovieClip {
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var wep:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public function UnitAnim_Wep_NukeAim_154(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180);
}
function frame151(){
stop();
}
function frame152(){
stop();
}
function frame154(){
stop();
}
function frame155(){
stop();
}
function frame156(){
stop();
}
function frame157(){
stop();
}
function frame158(){
stop();
}
function frame159(){
stop();
}
function frame153(){
stop();
}
function frame160(){
stop();
}
function frame162(){
stop();
}
function frame163(){
stop();
}
function frame164(){
stop();
}
function frame165(){
stop();
}
function frame166(){
stop();
}
function frame167(){
stop();
}
function frame161(){
stop();
}
function frame169(){
stop();
}
function frame168(){
stop();
}
function frame171(){
stop();
}
function frame172(){
stop();
}
function frame176(){
stop();
}
function frame170(){
stop();
}
function frame178(){
stop();
}
function frame179(){
stop();
}
function frame174(){
stop();
}
function frame175(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame180(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame31(){
stop();
}
function frame33(){
stop();
}
function frame177(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame37(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame57(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame173(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame65(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame80(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame87(){
stop();
}
function frame89(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame90(){
stop();
}
function frame99(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame96(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
function frame112(){
stop();
}
function frame114(){
stop();
}
function frame116(){
stop();
}
function frame117(){
stop();
}
function frame118(){
stop();
}
function frame115(){
stop();
}
function frame113(){
stop();
}
function frame119(){
stop();
}
function frame122(){
stop();
}
function frame124(){
stop();
}
function frame125(){
stop();
}
function frame126(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
}
function frame123(){
stop();
}
function frame127(){
stop();
}
function frame128(){
stop();
}
function frame129(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame132(){
stop();
}
function frame134(){
stop();
}
function frame137(){
stop();
}
function frame138(){
stop();
}
function frame139(){
stop();
}
function frame135(){
stop();
}
function frame136(){
stop();
}
function frame133(){
stop();
}
function frame141(){
stop();
}
function frame142(){
stop();
}
function frame143(){
stop();
}
function frame144(){
stop();
}
function frame145(){
stop();
}
function frame146(){
stop();
}
function frame140(){
stop();
}
function frame148(){
stop();
}
function frame149(){
stop();
}
function frame147(){
stop();
}
function frame150(){
stop();
}
}
}//package gravitee_fla
Section 257
//UnitAnim_Wep_Sniper_149 (gravitee_fla.UnitAnim_Wep_Sniper_149)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_Sniper_149 extends MovieClip {
public var leftfoot:MovieClip;
public var wep:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_Sniper_149(){
addFrameScript(31, frame32);
}
function frame32(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 258
//UnitAnim_Wep_SniperAim_145 (gravitee_fla.UnitAnim_Wep_SniperAim_145)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_SniperAim_145 extends MovieClip {
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var leftfoot:MovieClip;
public var lefthand:MovieClip;
public var wep:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public function UnitAnim_Wep_SniperAim_145(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 99, frame100, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 109, frame110, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 139, frame140, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 152, frame153, 153, frame154, 154, frame155, 155, frame156, 156, frame157, 157, frame158, 158, frame159, 159, frame160, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 166, frame167, 167, frame168, 168, frame169, 169, frame170, 170, frame171, 171, frame172, 172, frame173, 173, frame174, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 178, frame179, 179, frame180);
}
function frame151(){
stop();
}
function frame152(){
stop();
}
function frame154(){
stop();
}
function frame155(){
stop();
}
function frame156(){
stop();
}
function frame157(){
stop();
}
function frame158(){
stop();
}
function frame159(){
stop();
}
function frame153(){
stop();
}
function frame160(){
stop();
}
function frame162(){
stop();
}
function frame163(){
stop();
}
function frame164(){
stop();
}
function frame165(){
stop();
}
function frame166(){
stop();
}
function frame167(){
stop();
}
function frame161(){
stop();
}
function frame169(){
stop();
}
function frame168(){
stop();
}
function frame171(){
stop();
}
function frame172(){
stop();
}
function frame176(){
stop();
}
function frame170(){
stop();
}
function frame178(){
stop();
}
function frame179(){
stop();
}
function frame174(){
stop();
}
function frame175(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame180(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame29(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame30(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame32(){
stop();
}
function frame34(){
stop();
}
function frame31(){
stop();
}
function frame33(){
stop();
}
function frame177(){
stop();
}
function frame40(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame37(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame54(){
stop();
}
function frame55(){
stop();
}
function frame56(){
stop();
}
function frame57(){
stop();
}
function frame58(){
stop();
}
function frame59(){
stop();
}
function frame173(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame66(){
stop();
}
function frame67(){
stop();
}
function frame68(){
stop();
}
function frame65(){
stop();
}
function frame69(){
stop();
}
function frame70(){
stop();
}
function frame72(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame77(){
stop();
}
function frame71(){
stop();
}
function frame76(){
stop();
}
function frame78(){
stop();
}
function frame74(){
stop();
}
function frame79(){
stop();
}
function frame81(){
stop();
}
function frame84(){
stop();
}
function frame85(){
stop();
}
function frame86(){
stop();
}
function frame80(){
stop();
}
function frame88(){
stop();
}
function frame82(){
stop();
}
function frame83(){
stop();
}
function frame87(){
stop();
}
function frame89(){
stop();
}
function frame91(){
stop();
}
function frame93(){
stop();
}
function frame94(){
stop();
}
function frame95(){
stop();
}
function frame98(){
stop();
}
function frame92(){
stop();
}
function frame97(){
stop();
}
function frame90(){
stop();
}
function frame99(){
stop();
}
function frame100(){
stop();
}
function frame101(){
stop();
}
function frame102(){
stop();
}
function frame105(){
stop();
}
function frame106(){
stop();
}
function frame107(){
stop();
}
function frame109(){
stop();
}
function frame103(){
stop();
}
function frame104(){
stop();
}
function frame108(){
stop();
}
function frame96(){
stop();
}
function frame110(){
stop();
}
function frame111(){
stop();
}
function frame112(){
stop();
}
function frame114(){
stop();
}
function frame116(){
stop();
}
function frame117(){
stop();
}
function frame118(){
stop();
}
function frame115(){
stop();
}
function frame113(){
stop();
}
function frame119(){
stop();
}
function frame122(){
stop();
}
function frame124(){
stop();
}
function frame125(){
stop();
}
function frame126(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
}
function frame123(){
stop();
}
function frame127(){
stop();
}
function frame128(){
stop();
}
function frame129(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame132(){
stop();
}
function frame134(){
stop();
}
function frame137(){
stop();
}
function frame138(){
stop();
}
function frame139(){
stop();
}
function frame135(){
stop();
}
function frame136(){
stop();
}
function frame133(){
stop();
}
function frame141(){
stop();
}
function frame142(){
stop();
}
function frame143(){
stop();
}
function frame144(){
stop();
}
function frame145(){
stop();
}
function frame146(){
stop();
}
function frame140(){
stop();
}
function frame148(){
stop();
}
function frame149(){
stop();
}
function frame147(){
stop();
}
function frame150(){
stop();
}
}
}//package gravitee_fla
Section 259
//UnitAnim_Wep_Teleport_158 (gravitee_fla.UnitAnim_Wep_Teleport_158)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Wep_Teleport_158 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Wep_Teleport_158(){
addFrameScript(32, frame33);
}
function frame33(){
gotoAndPlay(1);
}
}
}//package gravitee_fla
Section 260
//UnitAnim_Worm_161 (gravitee_fla.UnitAnim_Worm_161)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Worm_161 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
public function UnitAnim_Worm_161(){
addFrameScript(30, frame31);
}
function frame31(){
gotoAndPlay(11);
}
}
}//package gravitee_fla
Section 261
//UnitAnim_Yoyo_162 (gravitee_fla.UnitAnim_Yoyo_162)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitAnim_Yoyo_162 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 262
//UnitZapTut_316 (gravitee_fla.UnitZapTut_316)
package gravitee_fla {
import flash.display.*;
public dynamic class UnitZapTut_316 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package gravitee_fla
Section 263
//UpgradeAccuracy_435 (gravitee_fla.UpgradeAccuracy_435)
package gravitee_fla {
import flash.display.*;
public dynamic class UpgradeAccuracy_435 extends MovieClip {
public function UpgradeAccuracy_435(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame18(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame19(){
stop();
}
function frame13(){
stop();
}
function frame17(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame20(){
stop();
}
function frame11(){
stop();
}
}
}//package gravitee_fla
Section 264
//UpgradeBuyPanel_451 (gravitee_fla.UpgradeBuyPanel_451)
package gravitee_fla {
import flash.display.*;
public dynamic class UpgradeBuyPanel_451 extends MovieClip {
public var buybutton:SimpleButton;
public function UpgradeBuyPanel_451(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 265
//UpgradeHealth_432 (gravitee_fla.UpgradeHealth_432)
package gravitee_fla {
import flash.display.*;
public dynamic class UpgradeHealth_432 extends MovieClip {
public function UpgradeHealth_432(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame18(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame19(){
stop();
}
function frame13(){
stop();
}
function frame17(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame20(){
stop();
}
function frame11(){
stop();
}
}
}//package gravitee_fla
Section 266
//UpgradeSubPanel_431 (gravitee_fla.UpgradeSubPanel_431)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
import flash.text.*;
public dynamic class UpgradeSubPanel_431 extends MovieClip {
public var sellbutton:SimpleButton;
public var healthinc:SimpleButton;
public var unitname:TextField;
public var healthdec:SimpleButton;
public var healthbar:MovieClip;
public var healthval:TextField;
public var accuracyinc:SimpleButton;
public var accuracydec:SimpleButton;
public var unitpic:Unit;
public var accuracyval:TextField;
public var accuracybar:MovieClip;
public function UpgradeSubPanel_431(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package gravitee_fla
Section 267
//WepAnim1_343 (gravitee_fla.WepAnim1_343)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim1_343 extends MovieClip {
public var unit1:Unit;
public function WepAnim1_343(){
addFrameScript(0, frame1);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming1");
}
}
}//package gravitee_fla
Section 268
//WepAnim10_353 (gravitee_fla.WepAnim10_353)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim10_353 extends MovieClip {
public var unit1:Unit;
public function WepAnim10_353(){
addFrameScript(0, frame1);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming3");
}
}
}//package gravitee_fla
Section 269
//WepAnim2_344 (gravitee_fla.WepAnim2_344)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim2_344 extends MovieClip {
public var unit1:Unit;
public function WepAnim2_344(){
addFrameScript(0, frame1);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming2");
}
}
}//package gravitee_fla
Section 270
//WepAnim3_346 (gravitee_fla.WepAnim3_346)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim3_346 extends MovieClip {
public var unit1:Unit;
public var unit2:Unit;
public function WepAnim3_346(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming4");
unit2.team = 1;
unit2.changeAnim("bob");
}
function frame32(){
unit2.changeAnim("falldown");
}
}
}//package gravitee_fla
Section 271
//WepAnim4_347 (gravitee_fla.WepAnim4_347)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim4_347 extends MovieClip {
public var unit1:Unit;
public var unit2:Unit;
public function WepAnim4_347(){
addFrameScript(0, frame1, 43, frame44, 58, frame59);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming6");
unit2.team = 1;
unit2.changeAnim("bob");
unit2.poison.gotoAndStop(1);
}
function frame44(){
unit2.changeAnim("falldown");
unit2.poison.gotoAndPlay(2);
}
function frame59(){
unit2.changeAnim("stand");
}
}
}//package gravitee_fla
Section 272
//WepAnim5_348 (gravitee_fla.WepAnim5_348)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim5_348 extends MovieClip {
public var unit1:Unit;
public var mine:Mine;
public function WepAnim5_348(){
addFrameScript(0, frame1, 19, frame20, 25, frame26, 31, frame32, 44, frame45, 49, frame50);
}
function frame26(){
unit1.changeAnim("bob");
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming8");
}
function frame20(){
unit1.changeAnim("aiming8");
}
function frame45(){
mine.gotoAndStop(2);
}
function frame32(){
unit1.changeAnim("walk");
}
function frame50(){
unit1.changeAnim("bob");
}
}
}//package gravitee_fla
Section 273
//WepAnim6_349 (gravitee_fla.WepAnim6_349)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim6_349 extends MovieClip {
public var unit1:Unit;
public function WepAnim6_349(){
addFrameScript(0, frame1);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming9");
}
}
}//package gravitee_fla
Section 274
//WepAnim7_350 (gravitee_fla.WepAnim7_350)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim7_350 extends MovieClip {
public var unit1:Unit;
public function WepAnim7_350(){
addFrameScript(0, frame1);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming1");
}
}
}//package gravitee_fla
Section 275
//WepAnim8_351 (gravitee_fla.WepAnim8_351)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim8_351 extends MovieClip {
public var unit1:Unit;
public function WepAnim8_351(){
addFrameScript(0, frame1, 17, frame18, 57, frame58, 97, frame98);
}
function frame98(){
unit1.changeAnim("bob");
}
function frame18(){
unit1.changeAnim("teleportout");
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming10");
}
function frame58(){
unit1.changeAnim("teleportin");
}
}
}//package gravitee_fla
Section 276
//WepAnim9_352 (gravitee_fla.WepAnim9_352)
package gravitee_fla {
import flash.display.*;
import com.funkypear.game.*;
public dynamic class WepAnim9_352 extends MovieClip {
public var unit1:Unit;
public function WepAnim9_352(){
addFrameScript(0, frame1);
}
function frame1(){
unit1.team = 0;
unit1.changeAnim("notaiming7");
}
}
}//package gravitee_fla
Section 277
//WepExplain_342 (gravitee_fla.WepExplain_342)
package gravitee_fla {
import flash.display.*;
public dynamic class WepExplain_342 extends MovieClip {
public function WepExplain_342(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package gravitee_fla
Section 278
//WepPanel0_438 (gravitee_fla.WepPanel0_438)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel0_438 extends MovieClip {
public function WepPanel0_438(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 279
//WepPanel1_439 (gravitee_fla.WepPanel1_439)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel1_439 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel1_439(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 280
//WepPanel2_443 (gravitee_fla.WepPanel2_443)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel2_443 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel2_443(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 281
//WepPanel3_444 (gravitee_fla.WepPanel3_444)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel3_444 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel3_444(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 282
//WepPanel4_445 (gravitee_fla.WepPanel4_445)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel4_445 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel4_445(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 283
//WepPanel5_446 (gravitee_fla.WepPanel5_446)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel5_446 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel5_446(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 284
//WepPanel6_447 (gravitee_fla.WepPanel6_447)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel6_447 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel6_447(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 285
//WepPanel7_448 (gravitee_fla.WepPanel7_448)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel7_448 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel7_448(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 286
//WepPanel8_449 (gravitee_fla.WepPanel8_449)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel8_449 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel8_449(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 287
//WepPanel9_450 (gravitee_fla.WepPanel9_450)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanel9_450 extends MovieClip {
public var stockbox:MovieClip;
public function WepPanel9_450(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 288
//WepPanelInfinity_91 (gravitee_fla.WepPanelInfinity_91)
package gravitee_fla {
import flash.display.*;
public dynamic class WepPanelInfinity_91 extends MovieClip {
public function WepPanelInfinity_91(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package gravitee_fla
Section 289
//Arrow (Arrow)
package {
import flash.display.*;
public dynamic class Arrow extends MovieClip {
public var cndtext:MovieClip;
public function Arrow(){
addFrameScript(32, frame33, 33, frame34);
}
function frame34(){
stop();
}
function frame33(){
gotoAndPlay(1);
}
}
}//package
Section 290
//COM (COM)
package {
import flash.display.*;
public dynamic class COM extends MovieClip {
}
}//package
Section 291
//Cross (Cross)
package {
import flash.display.*;
public dynamic class Cross extends MovieClip {
}
}//package
Section 292
//DBAngle (DBAngle)
package {
import flash.display.*;
public dynamic class DBAngle extends MovieClip {
}
}//package
Section 293
//GameMusic (GameMusic)
package {
import flash.media.*;
public dynamic class GameMusic extends Sound {
}
}//package
Section 294
//Particle6 (Particle6)
package {
import flash.display.*;
public dynamic class Particle6 extends BitmapData {
public function Particle6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 295
//Particle9 (Particle9)
package {
import flash.display.*;
public dynamic class Particle9 extends BitmapData {
public function Particle9(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 296
//SelectedGraphic (SelectedGraphic)
package {
import flash.display.*;
public dynamic class SelectedGraphic extends MovieClip {
public function SelectedGraphic(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package
Section 297
//ShieldLine (ShieldLine)
package {
import flash.display.*;
public dynamic class ShieldLine extends MovieClip {
}
}//package
Section 298
//SmallCross1 (SmallCross1)
package {
import flash.display.*;
import flash.text.*;
public dynamic class SmallCross1 extends MovieClip {
public var num:TextField;
}
}//package
Section 299
//SmallCross2 (SmallCross2)
package {
import flash.display.*;
import flash.text.*;
public dynamic class SmallCross2 extends MovieClip {
public var num:TextField;
}
}//package
Section 300
//SmallCross3 (SmallCross3)
package {
import flash.display.*;
public dynamic class SmallCross3 extends MovieClip {
}
}//package
Section 301
//TempCOM (TempCOM)
package {
import flash.display.*;
public dynamic class TempCOM extends MovieClip {
}
}//package
Section 302
//TurnDisplay (TurnDisplay)
package {
import flash.display.*;
import flash.text.*;
public dynamic class TurnDisplay extends MovieClip {
public var turnNumber:TextField;
public var medalCrit:TextField;
}
}//package
Section 303
//Tutorial (Tutorial)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import com.funkypear.game.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Tutorial extends MovieClip {
public var contbutton:SimpleButton;
public var anim:MovieClip;
public var unit1:Unit;
public var unit2:Unit;
public var unit4:Unit;
public var unit5:Unit;
public var unit6:Unit;
public var unit7:Unit;
public var unit9:Unit;
public var unit3:Unit;
public var unit8:Unit;
public function Tutorial(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13);
}
public function (_arg1:MouseEvent){
gotoAndStop(2);
}
public function (_arg1:MouseEvent){
gotoAndStop(6);
}
public function (_arg1:MouseEvent){
MovieClip(root).game.gameTimer.pauseTime = false;
MovieClip(root).removeTutorial();
}
public function (_arg1:MouseEvent){
MovieClip(root).game.gameTimer.pauseTime = false;
MovieClip(root).removeTutorial();
}
public function (_arg1:MouseEvent){
gotoAndStop(4);
}
function frame10(){
stop();
contbutton.addEventListener(MouseEvent.CLICK,
);
}
function frame12(){
stop();
contbutton.addEventListener(MouseEvent.CLICK,
);
}
public function (_arg1:MouseEvent){
MovieClip(root).game.gameTimer.pauseTime = false;
MovieClip(root).removeTutorial();
}
function frame6(){
stop();
contbutton.addEventListener(MouseEvent.CLICK, );
anim.unit1.team = 0;
anim.unit1.updateCol();
anim.unit1.graphic.gotoAndPlay(5);
}
function frame7(){
stop();
contbutton.addEventListener(MouseEvent.CLICK, );
anim.unit1.team = 0;
anim.unit1.updateCol();
anim.unit1.changeAnim("notaiming1");
anim.unit2.team = 1;
anim.unit2.updateCol();
anim.unit2.graphic.gotoAndPlay(5);
}
function frame3(){
stop();
contbutton.addEventListener(MouseEvent.CLICK, );
}
function frame4(){
stop();
contbutton.addEventListener(MouseEvent.CLICK, );
}
public function (_arg1:MouseEvent){
gotoAndStop(5);
}
public function (_arg1:MouseEvent){
MovieClip(root).game.gameTimer.pauseTime = false;
MovieClip(root).removeTutorial();
}
function frame8(){
stop();
contbutton.addEventListener(MouseEvent.CLICK, );
anim.unit1.team = 0;
anim.unit1.updateCol();
}
function frame9(){
stop();
contbutton.addEventListener(MouseEvent.CLICK, );
}
function frame2(){
stop();
contbutton.addEventListener(MouseEvent.CLICK,
);
anim.unit1.team = 0;
anim.unit1.updateCol();
anim.unit1.graphic.gotoAndPlay(5);
anim.unit2.team = 1;
anim.unit2.updateCol();
anim.unit2.graphic.gotoAndPlay(15);
}
function frame5(){
stop();
contbutton.addEventListener(MouseEvent.CLICK, );
anim.unit1.team = 0;
anim.unit1.updateCol();
anim.unit1.graphic.gotoAndPlay(5);
}
function frame1(){
stop();
unit1.team = 0;
unit1.updateCol();
unit1.graphic.gotoAndPlay(5);
unit2.team = 0;
unit2.updateCol();
unit2.graphic.gotoAndPlay(15);
unit3.team = 0;
unit3.updateCol();
unit3.graphic.gotoAndPlay(10);
unit4.team = 1;
unit4.updateCol();
unit4.graphic.gotoAndPlay(5);
unit5.team = 2;
unit5.updateCol();
unit5.graphic.gotoAndPlay(17);
unit6.team = 3;
unit6.updateCol();
unit6.graphic.gotoAndPlay(8);
unit7.team = 2;
unit7.updateCol();
unit7.graphic.gotoAndPlay(3);
unit8.team = 3;
unit8.updateCol();
unit8.graphic.gotoAndPlay(15);
unit9.team = 1;
unit9.updateCol();
unit9.graphic.gotoAndPlay(10);
contbutton.addEventListener(MouseEvent.CLICK, );
}
function frame13(){
stop();
contbutton.addEventListener(MouseEvent.CLICK,
);
}
function frame11(){
stop();
contbutton.addEventListener(MouseEvent.CLICK,
);
}
public function
(_arg1:MouseEvent){
gotoAndStop(3);
}
public function
(_arg1:MouseEvent){
MovieClip(root).removeTutorial();
}
public function
(_arg1:MouseEvent){
MovieClip(root).game.gameTimer.pauseTime = false;
MovieClip(root).removeTutorial();
}
public function
(_arg1:MouseEvent){
MovieClip(root).removeTutorial();
}
public function
(_arg1:MouseEvent){
MovieClip(root).removeTutorial();
}
}
}//package
Section 304
//UnitProjectile2 (UnitProjectile2)
package {
import flash.display.*;
public dynamic class UnitProjectile2 extends MovieClip {
public var leftfoot:MovieClip;
public var rightfoot:MovieClip;
public var righthand:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
public var lefthand:MovieClip;
}
}//package
Section 305
//WepIcon (WepIcon)
package {
import flash.display.*;
public dynamic class WepIcon extends MovieClip {
public function WepIcon(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package