Frame 1
function MainMenu_RC(obj, item) {
if (item.caption == RightClick_Option3) {
getURL ("http://www.godlygamer.com/", "_blank");
}
if (item.caption == RightClick_Option5) {
getURL ("http://www.xaurora.com/", "_blank");
}
}
function Preloader() {
DisplayLoad_txt.text = ((((((("Loaded " + _root.kbloaded) + " of ") + _root.kbtotal) + " kb at ") + _root.averagekbs) + " kb/s.\nEstimated Time Remaining: ") + _root.remainingtime) + " Seconds.";
_root.kbloaded = Math.round(getBytesLoaded() / 1024);
_root.kbtotal = Math.round(getBytesTotal() / 1024);
_root.PreviewPercent = Math.round((_root.kbloaded / 200) * 100);
_root.PreviewPercent = _root.PreviewPercent + "%";
if (_root._framesloaded >= _root._totalframes) {
clearInterval(SetMyEstimations);
clearInterval(SetMyPreloader);
gotoAndStop ("xaurora");
}
}
function Estimations() {
_root.averagekbs = Math.round(_root.kbloaded - _root.averagekbcount);
_root.averagekbcount = _root.kbloaded;
_root.remainingtime = Math.round((_root.kbtotal - _root.kbloaded) / _root.averagekbs);
}
stop();
gg_btn.onRelease = function () {
getURL ("http://www.godlygamer.com/", "_blank");
};
xaurora_btn.onRelease = function () {
getURL ("http://www.xaurora.com/", "_blank");
};
fscommand ("AllowScale", false);
var remainingtime = 0;
var averagekbs = 0;
var averagekbcount = 0;
var averagetimer = 0;
RightClick_Option1 = "CannonChaos Copyright \u00A9 GodlyGamer";
RightClick_Option2 = "Created By: GodlyGamer";
RightClick_Option3 = "http://www.godlygamer.com/";
RightClick_Option4 = "Godly Gamer Hosted By: Xaurora";
RightClick_Option5 = "http://www.xaurora.com/";
var MainMenu_cm = new ContextMenu();
MainMenu_cm.hideBuiltInItems();
MainMenu_cm.customItems.push(new ContextMenuItem(RightClick_Option1, MainMenu_RC));
MainMenu_cm.customItems.push(new ContextMenuItem(RightClick_Option2, MainMenu_RC, true));
MainMenu_cm.customItems.push(new ContextMenuItem(RightClick_Option3, MainMenu_RC));
MainMenu_cm.customItems.push(new ContextMenuItem(RightClick_Option4, MainMenu_RC, true));
MainMenu_cm.customItems.push(new ContextMenuItem(RightClick_Option5, MainMenu_RC));
_root.menu = MainMenu_cm;
SetMyPreloader = setInterval(Preloader, 25);
SetMyEstimations = setInterval(Estimations, 1000);
Frame 2
stop();
Frame 3
stop();
Frame 4
gotoAndStop ("menu");
Frame 5
function StartGame() {
_root.MenuReturnPath = "main";
_root.RemoveAllObjects = false;
_root.AllowUpgrades = true;
_root.Scenario = false;
_root.Level = 1;
_root.Points = 0;
_root.PointsGained = 0;
_root.NewObjDepth = 0;
_root.NewEnemyNo = 0;
_root.NewProjNo = 0;
_root.DeletedProjNo = 0;
_root.ProjectileSpd = 7.5;
_root.ProjFired = 0;
_root.ProjHit = 0;
_root.LaserFenceActive = false;
_root.RadarActive = false;
_root.RecoilAdjustments = false;
_root.ReinforcedArmor = false;
_root.ProjectileDmg = 10;
_root.UserReload = 20;
_root.UserReloadTimer = 20;
_root.Armor = 1;
_root.TurretHealth_Total = 500;
_root.TurretHealth_Current = _root.TurretHealth_Total;
_root.AT_ProjectileDmg = 10;
_root.AutoTurret_Reload = 20;
_root.AutoTurret_ReloadTimer = 20;
_root.AutoTurret1_Active = false;
_root.AutoTurret1_Deploy = false;
_root.AutoTurret_ClosestDist1 = 1000;
_root.AutoTurret_Target1 = "None";
_root.AutoTurret_Health1 = 0;
_root.AutoTurret_HealthSet1 = 75;
_root.AutoTurret2_Active = false;
_root.AutoTurret2_Deploy = false;
_root.AutoTurret_ClosestDist2 = 1000;
_root.AutoTurret_Target2 = "None";
_root.AutoTurret_Health2 = 0;
_root.AutoTurret_HealthSet2 = 75;
if (_root.Cheat_Enable == "On") {
_root.Points = Number(_root.CheatedPoints);
_root.ProjectileDmg = Number(_root.CheatedDamage);
_root.TurretHealth_Total = Number(_root.CheatedHealth);
_root.TurretHealth_Current = Number(_root.TurretHealth_Total);
}
_root.gotoAndStop("game");
}
function Instructions() {
_root.MenuActions.Action = "Instructions";
_root.MenuActions.gotoAndPlay("openTab");
}
function Cheats() {
_root.MenuActions.Action = "Cheats";
_root.MenuActions.gotoAndPlay("openTab");
}
function Credits() {
_root.MenuActions.Action = "Credits";
_root.MenuActions.gotoAndPlay("openTab");
}
function CloseTab() {
_root.MenuActions.gotoAndPlay("closeTab");
}
stop();
if (_root.MenuReturnPath != undefined) {
_root.MenuActions.gotoAndStop(_root.MenuReturnPath);
}
_root.CheatedPoints = 0;
_root.CheatedDamage = 10;
_root.CheatedHealth = 500;
_root.Cheat_LaserFence = "Off";
_root.Cheat_Invulnerable = "Off";
_root.Cheat_Radar = "Off";
_root.Cheat_AT1 = "Off";
_root.Cheat_AT2 = "Off";
_root.Cheat_Enable = "Off";
quality_mc.removeMovieClip();
_root.attachMovie("Quality", "quality_mc", 1000002);
_root.quality_mc._x = 275;
_root.quality_mc._y = 200;
Key.removeListener(qualityListener);
var qualityListener = new Object();
qualityListener.onKeyDown = function () {
qualityKey = 1;
if (Key.getCode() == 81) {
if ((_root._quality == "HIGH") && (qualityKey == 1)) {
_root._quality = "MEDIUM";
quality_mc.gotoAndPlay("Quality");
qualityKey = 0;
}
if ((_root._quality == "MEDIUM") && (qualityKey == 1)) {
_root._quality = "LOW";
quality_mc.gotoAndPlay("Quality");
qualityKey = 0;
}
if ((_root._quality == "LOW") && (qualityKey == 1)) {
_root._quality = "HIGH";
quality_mc.gotoAndPlay("Quality");
qualityKey = 0;
}
}
};
Key.addListener(qualityListener);
Key.removeListener(musicListener);
var musicListener = new Object();
musicListener.onKeyDown = function () {
if (Key.getCode() == 77) {
if (_root.music_mc.music == true) {
_root.music_mc.gotoAndStop("off");
}
if (_root.music_mc.music == false) {
_root.music_mc.gotoAndStop("on");
}
}
};
Key.addListener(musicListener);
godlygamer_btn.onRelease = function () {
getURL ("http://www.godlygamer.com/", "_blank");
};
sponsor_btn.onRelease = function () {
getURL ("http://www.xaurora.com/", "_blank");
};
Frame 6
function ActivateCheats() {
if (_root.Cheat_Enable == "On") {
if (_root.Cheat_LaserFence == "On") {
_root.LaserFenceActive = true;
LaserFence.gotoAndStop("on");
}
if (_root.Cheat_AT1 == "On") {
_root.AutoTurret1_Deploy = true;
}
if (_root.Cheat_AT2 == "On") {
_root.AutoTurret2_Deploy = true;
}
if (_root.Cheat_Radar == "On") {
_root.RadarActive = true;
_root.Radar.gotoAndStop("On");
}
}
if ((_root.Scenario == true) && (_root.Custom_LF == true)) {
_root.LaserFenceActive = true;
LaserFence.gotoAndStop("on");
}
if ((_root.Scenario == true) && (_root.SetCustom_AT1Deploy == true)) {
_root.AutoTurret1_Deploy = true;
}
if ((_root.Scenario == true) && (_root.SetCustom_AT2Deploy == true)) {
_root.AutoTurret2_Deploy = true;
}
if ((_root.Scenario == true) && (_root.Custom_R == true)) {
_root.RadarActive = true;
_root.Radar.gotoAndStop("On");
}
}
function ReturnToMenu() {
_root.RemoveEverything();
gotoAndStop ("menu");
}
function RemoveEverything() {
clearInterval(_root.TurretBarrelAimer);
clearInterval(_root.Turret_Fire);
clearInterval(_root.EnemySpawner);
clearInterval(_root.Update_GS);
clearInterval(_root.AT_Shoot_Timer);
_root.RemoveAllObjects = true;
_root.Radar.removeMovieClip();
_root.LaserFence.removeMovieClip();
_root.LevelStatus.removeMovieClip();
_root.LevelComplete.removeMovieClip();
}
function GamingStats() {
_root.EnemiesRemaining = _root.EnemiesLeft + _root.EnemyCurrent;
if (_root.Cheat_Invulnerable == "Off") {
_root.DisplayAllHealth = (("Health: " + _root.TurretHealth_Current) + "/") + _root.TurretHealth_Total;
if (_root.AutoTurret1_Active == true) {
_root.DisplayAllHealth = _root.DisplayAllHealth + (((" - AT1: " + _root.AutoTurret_Health1) + "/") + _root.AutoTurret_HealthSet1);
}
if (_root.AutoTurret2_Active == true) {
_root.DisplayAllHealth = _root.DisplayAllHealth + (((" - AT2: " + _root.AutoTurret_Health2) + "/") + _root.AutoTurret_HealthSet2);
}
if (_root.TurretHealth_Current > _root.TurretHealth_Total) {
_root.TurretHealth_Current = _root.TurretHealth_Total;
}
if (_root.TurretHealth_Current < 0) {
_root.TurretHealth_Current = 0;
_root.RemoveEverything();
if (_root.Scenario == false) {
gotoAndStop ("defeat");
}
if (_root.Scenario == true) {
gotoAndStop ("menu");
}
}
}
if (_root.TurretHealth_Total > 100000) {
_root.TurretHealth_Total = 100000 /* 0x0186A0 */;
}
if (_root.Cheat_Invulnerable == "On") {
_root.TurretHealth_Current = _root.TurretHealth_Total;
_root.DisplayAllHealth = (("Health: " + _root.TurretHealth_Current) + "/") + _root.TurretHealth_Total;
if (_root.AutoTurret1_Active == true) {
_root.DisplayAllHealth = _root.DisplayAllHealth + (((" - AT1: " + _root.AutoTurret_Health1) + "/") + _root.AutoTurret_HealthSet1);
}
if (_root.AutoTurret2_Active == true) {
_root.DisplayAllHealth = _root.DisplayAllHealth + (((" - AT2: " + _root.AutoTurret_Health2) + "/") + _root.AutoTurret_HealthSet2);
}
}
if (isNaN(Math.round((ProjHit / ProjFired) * 100)) == false) {
_root.AccuracyNo = Math.round((ProjHit / ProjFired) * 100);
_root.Accuracy = Math.round((ProjHit / ProjFired) * 100) + "%";
} else {
_root.AccuracyNo = 0;
_root.Accuracy = "0%";
}
}
stop();
ActivateCheats();
clearInterval(_root.Update_GS);
_root.Update_GS = setInterval(GamingStats, 25);
function ActivateLevel() {
_root.LevelFunction = _root.Level;
if (_root.LevelFunction > 27) {
_root.LevelFunction = 27;
}
_root["Level_" + _root.LevelFunction]();
}
function Level_0() {
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = _root.Custom_EnemySets;
_root.EnemyTimer = _root.Custom_EnemyTimer;
_root.EnemyTimerSet = _root.Custom_EnemyTimer;
_root.EnemiesLeft = _root.Custom_EnemyLeft;
_root.EnemyLimit = _root.Custom_EnemyLimit;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
if (_root.ScenarioFirstMatch == false) {
_root.LightTank_Points = _root.LightTank_Points + Number(_root.CustomPlus_LightTank_Points);
_root.LightTank_Speed = _root.LightTank_Speed + Number(_root.CustomPlus_LightTank_Speed);
_root.LightTank_Range = _root.LightTank_Range + Number(_root.CustomPlus_LightTank_Range);
_root.LightTank_Damage = _root.LightTank_Damage + Number(_root.CustomPlus_LightTank_Damage);
_root.LightTank_Health = _root.LightTank_Health + Number(_root.CustomPlus_LightTank_Health);
_root.DoubleLightTank_Points = _root.DoubleLightTank_Points + Number(_root.CustomPlus_DoubleLightTank_Points);
_root.DoubleLightTank_Speed = _root.DoubleLightTank_Speed + Number(_root.CustomPlus_DoubleLightTank_Speed);
_root.DoubleLightTank_Range = _root.DoubleLightTank_Range + Number(_root.CustomPlus_DoubleLightTank_Range);
_root.DoubleLightTank_Damage = _root.DoubleLightTank_Damage + Number(_root.CustomPlus_DoubleLightTank_Damage);
_root.DoubleLightTank_Health = _root.DoubleLightTank_Health + Number(_root.CustomPlus_DoubleLightTank_Health);
_root.MediumTank_Points = _root.MediumTank_Points + Number(_root.CustomPlus_MediumTank_Points);
_root.MediumTank_Speed = _root.MediumTank_Speed + Number(_root.CustomPlus_MediumTank_Speed);
_root.MediumTank_Range = _root.MediumTank_Range + Number(_root.CustomPlus_MediumTank_Range);
_root.MediumTank_Damage = _root.MediumTank_Damage + Number(_root.CustomPlus_MediumTank_Damage);
_root.MediumTank_Health = _root.MediumTank_Health + Number(_root.CustomPlus_MediumTank_Health);
_root.ARMediumTank_Points = _root.ARMediumTank_Points + Number(_root.CustomPlus_ARMediumTank_Points);
_root.ARMediumTank_Speed = _root.ARMediumTank_Speed + Number(_root.CustomPlus_ARMediumTank_Speed);
_root.ARMediumTank_Range = _root.ARMediumTank_Range + Number(_root.CustomPlus_ARMediumTank_Range);
_root.ARMediumTank_Damage = _root.ARMediumTank_Damage + Number(_root.CustomPlus_ARMediumTank_Damage);
_root.ARMediumTank_Health = _root.ARMediumTank_Health + Number(_root.CustomPlus_ARMediumTank_Health);
_root.HeavyTank_Points = _root.HeavyTank_Points + Number(_root.CustomPlus_HeavyTank_Points);
_root.HeavyTank_Speed = _root.HeavyTank_Speed + Number(_root.CustomPlus_HeavyTank_Speed);
_root.HeavyTank_Range = _root.HeavyTank_Range + Number(_root.CustomPlus_HeavyTank_Range);
_root.HeavyTank_Damage = _root.HeavyTank_Damage + Number(_root.CustomPlus_HeavyTank_Damage);
_root.HeavyTank_Health = _root.HeavyTank_Health + Number(_root.CustomPlus_HeavyTank_Health);
_root.StealthTank_Points = _root.StealthTank_Points + Number(_root.CustomPlus_StealthTank_Points);
_root.StealthTank_Speed = _root.StealthTank_Speed + Number(_root.CustomPlus_StealthTank_Speed);
_root.StealthTank_Range = _root.StealthTank_Range + Number(_root.CustomPlus_StealthTank_Range);
_root.StealthTank_Damage = _root.StealthTank_Damage + Number(_root.CustomPlus_StealthTank_Damage);
_root.StealthTank_Health = _root.StealthTank_Health + Number(_root.CustomPlus_StealthTank_Health);
_root.NuclearTank_Points = _root.NuclearTank_Points + Number(_root.CustomPlus_NuclearTank_Points);
_root.NuclearTank_Speed = _root.NuclearTank_Speed + Number(_root.CustomPlus_NuclearTank_Speed);
_root.NuclearTank_Range = _root.NuclearTank_Range + Number(_root.CustomPlus_NuclearTank_Range);
_root.NuclearTank_Damage = _root.NuclearTank_Damage + Number(_root.CustomPlus_NuclearTank_Damage);
_root.NuclearTank_Health = _root.NuclearTank_Health + Number(_root.CustomPlus_NuclearTank_Health);
_root.Artillery_Points = _root.Artillery_Points + Number(_root.CustomPlus_Artillery_Points);
_root.Artillery_Speed = _root.Artillery_Speed + Number(_root.CustomPlus_Artillery_Speed);
_root.Artillery_Range = _root.Artillery_Range + Number(_root.CustomPlus_Artillery_Range);
_root.Artillery_Damage = _root.Artillery_Damage + Number(_root.CustomPlus_Artillery_Damage);
_root.Artillery_Health = _root.Artillery_Health + Number(_root.CustomPlus_Artillery_Health);
} else {
_root.ScenarioFirstMatch = false;
}
}
function Level_1() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nLight Tanks.\n\nEnemy Modifications:\nLight Tanks: Increased points.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "LightTank";
_root.EnemyTimer = 80;
_root.EnemyTimerSet = 80;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.LightTank_Points = 5;
_root.LightTank_Speed = 0.6;
_root.LightTank_Range = 55;
_root.LightTank_Damage = 3;
_root.LightTank_Health = 30;
}
function Level_2() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nLight Tanks, Twin Light Tanks.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "LightTank";
_root.EnemyTimer = 79;
_root.EnemyTimerSet = 79;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.LightTank_Points = 6;
_root.LightTank_Speed = 0.6;
_root.LightTank_Range = 55;
_root.LightTank_Damage = 3;
_root.LightTank_Health = 30;
}
function Level_3() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nTwin Light Tanks.\n\nEnemy Modifications:\nTwin Light Tanks: Increased damage, points.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "LightTank";
_root.GetEnemy_2 = "DoubleLightTank";
_root.EnemyTimer = 78;
_root.EnemyTimerSet = 78;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.LightTank_Points = 6;
_root.LightTank_Speed = 0.6;
_root.LightTank_Range = 55;
_root.LightTank_Damage = 3;
_root.LightTank_Health = 30;
_root.DoubleLightTank_Points = 8;
_root.DoubleLightTank_Speed = 0.6;
_root.DoubleLightTank_Range = 57.5;
_root.DoubleLightTank_Damage = 5;
_root.DoubleLightTank_Health = 50;
}
function Level_4() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nTwin Light Tanks, Medium Tanks.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "DoubleLightTank";
_root.EnemyTimer = 77;
_root.EnemyTimerSet = 77;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.DoubleLightTank_Points = 9;
_root.DoubleLightTank_Speed = 0.6;
_root.DoubleLightTank_Range = 57.5;
_root.DoubleLightTank_Damage = 6;
_root.DoubleLightTank_Health = 50;
}
function Level_5() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nTwin Light Tanks, Medium Tanks.\n\nEnemy Modifications:\nTwin Light Tanks: Increased damage, points\nMedium Tanks: Increased damage, range, points.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "DoubleLightTank";
_root.GetEnemy_2 = "MediumTank";
_root.EnemyTimer = 76;
_root.EnemyTimerSet = 76;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.DoubleLightTank_Points = 9;
_root.DoubleLightTank_Speed = 0.6;
_root.DoubleLightTank_Range = 57.5;
_root.DoubleLightTank_Damage = 6;
_root.DoubleLightTank_Health = 50;
_root.MediumTank_Points = 14;
_root.MediumTank_Speed = 0.6;
_root.MediumTank_Range = 60;
_root.MediumTank_Damage = 8;
_root.MediumTank_Health = 70;
}
function Level_6() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nMedium Tanks, Rapid Medium Tanks.\n\nEnemy Modifications:\nMedium Tanks: Increased armor.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "DoubleLightTank";
_root.GetEnemy_2 = "MediumTank";
_root.EnemyTimer = 75;
_root.EnemyTimerSet = 75;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.DoubleLightTank_Points = 12;
_root.DoubleLightTank_Speed = 0.6;
_root.DoubleLightTank_Range = 57.5;
_root.DoubleLightTank_Damage = 9;
_root.DoubleLightTank_Health = 50;
_root.MediumTank_Points = 16;
_root.MediumTank_Speed = 0.6;
_root.MediumTank_Range = 61;
_root.MediumTank_Damage = 12;
_root.MediumTank_Health = 70;
}
function Level_7() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nRapid Medium Tanks, Heavy Tanks.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "MediumTank";
_root.GetEnemy_2 = "ARMediumTank";
_root.EnemyTimer = 74;
_root.EnemyTimerSet = 74;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.MediumTank_Points = 16;
_root.MediumTank_Speed = 0.6;
_root.MediumTank_Range = 61;
_root.MediumTank_Damage = 12;
_root.MediumTank_Health = 80;
_root.ARMediumTank_Points = 20;
_root.ARMediumTank_Speed = 0.6;
_root.ARMediumTank_Range = 62;
_root.ARMediumTank_Damage = 10;
_root.ARMediumTank_Health = 90;
}
function Level_8() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nHeavy Tanks.\n\nEnemy Modifications:\nHeavy Tanks: Increased All Stats.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "ARMediumTank";
_root.GetEnemy_2 = "HeavyTank";
_root.EnemyTimer = 73;
_root.EnemyTimerSet = 73;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.ARMediumTank_Points = 20;
_root.ARMediumTank_Speed = 0.6;
_root.ARMediumTank_Range = 62;
_root.ARMediumTank_Damage = 10;
_root.ARMediumTank_Health = 90;
_root.HeavyTank_Points = 25;
_root.HeavyTank_Speed = 0.6;
_root.HeavyTank_Range = 63;
_root.HeavyTank_Damage = 13;
_root.HeavyTank_Health = 120;
}
function Level_9() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nLight Tanks, Twin Light Tanks, Medium Tanks, Rapid Medium Tanks, Heavy Tanks.\n\nEnemy Modifications:\nAll Stats Increased.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "HeavyTank";
_root.EnemyTimer = 72;
_root.EnemyTimerSet = 72;
_root.EnemiesLeft = 10;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.HeavyTank_Points = 25;
_root.HeavyTank_Speed = 0.7;
_root.HeavyTank_Range = 64;
_root.HeavyTank_Damage = 16;
_root.HeavyTank_Health = 150;
}
function Level_10() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nHeavy Tanks, Stealth Tanks.\n\nEnemy Modifications:\nHeavy Tanks: Increased speed.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 5;
_root.GetEnemy_1 = "LightTank";
_root.GetEnemy_2 = "DoubleLightTank";
_root.GetEnemy_3 = "MediumTank";
_root.GetEnemy_4 = "ARMediumTank";
_root.GetEnemy_5 = "HeavyTank";
_root.EnemyTimer = 70;
_root.EnemyTimerSet = 70;
_root.EnemiesLeft = 30;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.LightTank_Points = 13;
_root.LightTank_Speed = 0.65;
_root.LightTank_Range = 60;
_root.LightTank_Damage = 12;
_root.LightTank_Health = 100;
_root.DoubleLightTank_Points = 15;
_root.DoubleLightTank_Speed = 0.65;
_root.DoubleLightTank_Range = 61;
_root.DoubleLightTank_Damage = 14;
_root.DoubleLightTank_Health = 125;
_root.MediumTank_Points = 17;
_root.MediumTank_Speed = 0.65;
_root.MediumTank_Range = 62;
_root.MediumTank_Damage = 16;
_root.MediumTank_Health = 175;
_root.ARMediumTank_Points = 20;
_root.ARMediumTank_Speed = 0.65;
_root.ARMediumTank_Range = 63;
_root.ARMediumTank_Damage = 18;
_root.ARMediumTank_Health = 225;
_root.HeavyTank_Points = 25;
_root.HeavyTank_Speed = 0.65;
_root.HeavyTank_Range = 64;
_root.HeavyTank_Damage = 20;
_root.HeavyTank_Health = 250;
}
function Level_11() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nHeavy Tanks, Stealth Tanks, Nuclear Tanks.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "HeavyTank";
_root.GetEnemy_2 = "StealthTank";
_root.EnemyTimer = 69;
_root.EnemyTimerSet = 69;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.HeavyTank_Points = 25;
_root.HeavyTank_Speed = 0.7;
_root.HeavyTank_Range = 64;
_root.HeavyTank_Damage = 20;
_root.HeavyTank_Health = 250;
_root.StealthTank_Points = 23;
_root.StealthTank_Speed = 0.7;
_root.StealthTank_Range = 65;
_root.StealthTank_Damage = 15;
_root.StealthTank_Health = 100;
}
function Level_12() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nHeavy Tanks, Stealth Tanks, Nuclear Tanks.\n\nEnemy Modifications:\nAll Stats Increased.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 3;
_root.GetEnemy_1 = "HeavyTank";
_root.GetEnemy_2 = "StealthTank";
_root.GetEnemy_3 = "NuclearTank";
_root.EnemyTimer = 68;
_root.EnemyTimerSet = 68;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.HeavyTank_Points = 25;
_root.HeavyTank_Speed = 0.7;
_root.HeavyTank_Range = 64;
_root.HeavyTank_Damage = 20;
_root.HeavyTank_Health = 250;
_root.StealthTank_Points = 23;
_root.StealthTank_Speed = 0.7;
_root.StealthTank_Range = 65;
_root.StealthTank_Damage = 15;
_root.StealthTank_Health = 100;
_root.NuclearTank_Points = 29;
_root.NuclearTank_Speed = 0.7;
_root.NuclearTank_Range = 70;
_root.NuclearTank_Damage = 50;
_root.NuclearTank_Health = 200;
}
function Level_13() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nStealth Tanks, Nuclear Tanks.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 3;
_root.GetEnemy_1 = "HeavyTank";
_root.GetEnemy_2 = "StealthTank";
_root.GetEnemy_3 = "NuclearTank";
_root.EnemyTimer = 67;
_root.EnemyTimerSet = 67;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.HeavyTank_Points = 27;
_root.HeavyTank_Speed = 0.72;
_root.HeavyTank_Range = 68;
_root.HeavyTank_Damage = 30;
_root.HeavyTank_Health = 300;
_root.StealthTank_Points = 25;
_root.StealthTank_Speed = 0.72;
_root.StealthTank_Range = 68;
_root.StealthTank_Damage = 25;
_root.StealthTank_Health = 150;
_root.NuclearTank_Points = 30;
_root.NuclearTank_Speed = 0.72;
_root.NuclearTank_Range = 70;
_root.NuclearTank_Damage = 50;
_root.NuclearTank_Health = 350;
}
function Level_14() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nStealth Tanks.\n\nEnemy Modifications:\nAll Stats Increased.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "StealthTank";
_root.GetEnemy_2 = "NuclearTank";
_root.EnemyTimer = 66;
_root.EnemyTimerSet = 66;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.StealthTank_Points = 25;
_root.StealthTank_Speed = 0.72;
_root.StealthTank_Range = 68;
_root.StealthTank_Damage = 25;
_root.StealthTank_Health = 150;
_root.NuclearTank_Points = 30;
_root.NuclearTank_Speed = 0.72;
_root.NuclearTank_Range = 70;
_root.NuclearTank_Damage = 50;
_root.NuclearTank_Health = 350;
}
function Level_15() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nNuclear Tanks.\n\nEnemy Modifications:\nAll Stats Increased.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "StealthTank";
_root.EnemyTimer = 65;
_root.EnemyTimerSet = 65;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 7;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.StealthTank_Points = 25;
_root.StealthTank_Speed = 0.75;
_root.StealthTank_Range = 70;
_root.StealthTank_Damage = 35;
_root.StealthTank_Health = 200;
}
function Level_16() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nNuclear Tanks, Artillery.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "NuclearTank";
_root.EnemyTimer = 64;
_root.EnemyTimerSet = 64;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.NuclearTank_Points = 30;
_root.NuclearTank_Speed = 0.75;
_root.NuclearTank_Range = 70;
_root.NuclearTank_Damage = 125;
_root.NuclearTank_Health = 400;
}
function Level_17() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nStealth Tanks, Nuclear Tanks, Artillery.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "NuclearTank";
_root.GetEnemy_2 = "Artillery";
_root.EnemyTimer = 63;
_root.EnemyTimerSet = 63;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.NuclearTank_Points = 30;
_root.NuclearTank_Speed = 0.7;
_root.NuclearTank_Range = 70;
_root.NuclearTank_Damage = 125;
_root.NuclearTank_Health = 400;
_root.Artillery_Points = 40;
_root.Artillery_Speed = 0.7;
_root.Artillery_Range = 150;
_root.Artillery_Damage = 150;
_root.Artillery_Health = 200;
}
function Level_18() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nStealth Tanks, Artillery.\n\nEnemy Modifications:\nIncreased All Health & Damage.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 3;
_root.GetEnemy_1 = "StealthTank";
_root.GetEnemy_2 = "NuclearTank";
_root.GetEnemy_3 = "Artillery";
_root.EnemyTimer = 62;
_root.EnemyTimerSet = 62;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.StealthTank_Points = 25;
_root.StealthTank_Speed = 0.75;
_root.StealthTank_Range = 70;
_root.StealthTank_Damage = 35;
_root.StealthTank_Health = 200;
_root.NuclearTank_Points = 30;
_root.NuclearTank_Speed = 0.7;
_root.NuclearTank_Range = 70;
_root.NuclearTank_Damage = 125;
_root.NuclearTank_Health = 400;
_root.Artillery_Points = 40;
_root.Artillery_Speed = 0.7;
_root.Artillery_Range = 150;
_root.Artillery_Damage = 150;
_root.Artillery_Health = 200;
}
function Level_19() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nHeavy Tanks, Nuclear Tanks.\n\nEnemy Modifications:\nNone.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "StealthTank";
_root.GetEnemy_2 = "Artillery";
_root.EnemyTimer = 61;
_root.EnemyTimerSet = 61;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.StealthTank_Points = 25;
_root.StealthTank_Speed = 0.75;
_root.StealthTank_Range = 70;
_root.StealthTank_Damage = 40;
_root.StealthTank_Health = 300;
_root.Artillery_Points = 40;
_root.Artillery_Speed = 0.7;
_root.Artillery_Range = 150;
_root.Artillery_Damage = 175;
_root.Artillery_Health = 250;
}
function Level_20() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nHeavy Tanks, Nuclear Tanks, Artillery.\n\nEnemy Modifications:\nAll Stats Increased.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "HeavyTank";
_root.GetEnemy_2 = "NuclearTank";
_root.EnemyTimer = 60;
_root.EnemyTimerSet = 0;
_root.EnemiesLeft = 10;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.HeavyTank_Points = 43;
_root.HeavyTank_Speed = 0.72;
_root.HeavyTank_Range = 70;
_root.HeavyTank_Damage = 75;
_root.HeavyTank_Health = 500;
_root.NuclearTank_Points = 50;
_root.NuclearTank_Speed = 0.7;
_root.NuclearTank_Range = 72;
_root.NuclearTank_Damage = 150;
_root.NuclearTank_Health = 450;
}
function Level_21() {
_root.NextLevelText = "Next Level Statistics:\n\nApproaching Enemies:\nStealth Tanks, Nuclear Tanks, Artillery.\n\nEnemy Modifications:\nAll Stats Increased.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 3;
_root.GetEnemy_1 = "HeavyTank";
_root.GetEnemy_2 = "NuclearTank";
_root.GetEnemy_3 = "Artillery";
_root.EnemyTimer = 59;
_root.EnemyTimerSet = 59;
_root.EnemiesLeft = 20;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.HeavyTank_Points = 45;
_root.HeavyTank_Speed = 0.72;
_root.HeavyTank_Range = 70;
_root.HeavyTank_Damage = 100;
_root.HeavyTank_Health = 500;
_root.NuclearTank_Points = 55;
_root.NuclearTank_Speed = 0.7;
_root.NuclearTank_Range = 72;
_root.NuclearTank_Damage = 175;
_root.NuclearTank_Health = 450;
_root.Artillery_Points = 65;
_root.Artillery_Speed = 0.7;
_root.Artillery_Range = 150;
_root.Artillery_Damage = 225;
_root.Artillery_Health = 300;
}
function Level_22() {
_root.NextLevelText = "Next Level: \"Ambush\"\n\nEnemy Types: Stealth Tanks.\n\n400 Health.\n75 Damage.\n70 Range.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 3;
_root.GetEnemy_1 = "StealthTank";
_root.GetEnemy_2 = "NuclearTank";
_root.GetEnemy_3 = "Artillery";
_root.EnemyTimer = 58;
_root.EnemyTimerSet = 58;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.StealthTank_Points = 50;
_root.StealthTank_Speed = 0.75;
_root.StealthTank_Range = 70;
_root.StealthTank_Damage = 40;
_root.StealthTank_Health = 300;
_root.NuclearTank_Points = 75;
_root.NuclearTank_Speed = 0.7;
_root.NuclearTank_Range = 72;
_root.NuclearTank_Damage = 175;
_root.NuclearTank_Health = 450;
_root.Artillery_Points = 100;
_root.Artillery_Speed = 0.7;
_root.Artillery_Range = 150;
_root.Artillery_Damage = 225;
_root.Artillery_Health = 300;
}
function Level_23() {
_root.NextLevelText = "Next Level: \"Nuclear Munitions\"\n\nEnemy Types: Nuclear Tanks.\n\n650 Health.\n250 Damage.\n75 Range.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "StealthTank";
_root.EnemyTimer = 20;
_root.EnemyTimerSet = 20;
_root.EnemiesLeft = 30;
_root.EnemyLimit = 8;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.StealthTank_Points = 50;
_root.StealthTank_Speed = 0.75;
_root.StealthTank_Range = 70;
_root.StealthTank_Damage = 75;
_root.StealthTank_Health = 400;
}
function Level_24() {
_root.NextLevelText = "Next Level: \"Nuclear Bombardment\"\n\nEnemy Types: Nuclear Tanks & Artillery.\n\nNuclear Tanks: 1000 Health, 300 Damage, 75 Range\nArtillery: 800 Health, 375 Damage, 150 Range.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 1;
_root.GetEnemy_1 = "NuclearTank";
_root.EnemyTimer = 30;
_root.EnemyTimerSet = 30;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.NuclearTank_Points = 75;
_root.NuclearTank_Speed = 0.7;
_root.NuclearTank_Range = 75;
_root.NuclearTank_Damage = 250;
_root.NuclearTank_Health = 650;
}
function Level_25() {
_root.NextLevelText = "Final Levels: \"The Last Stand\"\n\nVerse every Enemy Type.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 2;
_root.GetEnemy_1 = "NuclearTank";
_root.GetEnemy_2 = "Artillery";
_root.EnemyTimer = 40;
_root.EnemyTimerSet = 40;
_root.EnemiesLeft = 15;
_root.EnemyLimit = 5;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.NuclearTank_Points = 125;
_root.NuclearTank_Speed = 0.75;
_root.NuclearTank_Range = 75;
_root.NuclearTank_Damage = 300;
_root.NuclearTank_Health = 1000;
_root.Artillery_Points = 150;
_root.Artillery_Speed = 0.75;
_root.Artillery_Range = 150;
_root.Artillery_Damage = 375;
_root.Artillery_Health = 800;
}
function Level_26() {
_root.NextLevelText = "Final Levels: \"The Last Stand\"\n\nAll enemies will now strengthen until you can no longer stand up to them.";
_root.NextLevelInfo = true;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 8;
_root.GetEnemy_1 = "LightTank";
_root.GetEnemy_2 = "DoubleLightTank";
_root.GetEnemy_3 = "MediumTank";
_root.GetEnemy_4 = "ARMediumTank";
_root.GetEnemy_5 = "HeavyTank";
_root.GetEnemy_6 = "StealthTank";
_root.GetEnemy_7 = "NuclearTank";
_root.GetEnemy_8 = "Artillery";
_root.EnemyTimer = 50;
_root.EnemyTimerSet = 50;
_root.EnemiesLeft = 30;
_root.EnemyLimit = 8;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.LightTank_Points = 50;
_root.LightTank_Speed = 0.7;
_root.LightTank_Range = 65;
_root.LightTank_Damage = 25;
_root.LightTank_Health = 400;
_root.DoubleLightTank_Points = 65;
_root.DoubleLightTank_Speed = 0.7;
_root.DoubleLightTank_Range = 65;
_root.DoubleLightTank_Damage = 50;
_root.DoubleLightTank_Health = 500;
_root.MediumTank_Points = 80;
_root.MediumTank_Speed = 0.7;
_root.MediumTank_Range = 65;
_root.MediumTank_Damage = 75;
_root.MediumTank_Health = 600;
_root.ARMediumTank_Points = 95;
_root.ARMediumTank_Speed = 0.7;
_root.ARMediumTank_Range = 65;
_root.ARMediumTank_Damage = 100;
_root.ARMediumTank_Health = 700;
_root.HeavyTank_Points = 110;
_root.HeavyTank_Speed = 0.7;
_root.HeavyTank_Range = 70;
_root.HeavyTank_Damage = 125;
_root.HeavyTank_Health = 800;
_root.StealthTank_Points = 125;
_root.StealthTank_Speed = 0.75;
_root.StealthTank_Range = 70;
_root.StealthTank_Damage = 150;
_root.StealthTank_Health = 800;
_root.NuclearTank_Points = 140;
_root.NuclearTank_Speed = 0.75;
_root.NuclearTank_Range = 75;
_root.NuclearTank_Damage = 200;
_root.NuclearTank_Health = 900;
_root.Artillery_Points = 155;
_root.Artillery_Speed = 0.7;
_root.Artillery_Range = 150;
_root.Artillery_Damage = 300;
_root.Artillery_Health = 700;
}
function Level_27() {
_root.NextLevelText = "";
_root.NextLevelInfo = false;
_root.MinimumEnemySpawnLevel = 1;
_root.MaximumEnemySpawnLevel = 8;
_root.GetEnemy_1 = "LightTank";
_root.GetEnemy_2 = "DoubleLightTank";
_root.GetEnemy_3 = "MediumTank";
_root.GetEnemy_4 = "ARMediumTank";
_root.GetEnemy_5 = "HeavyTank";
_root.GetEnemy_6 = "StealthTank";
_root.GetEnemy_7 = "NuclearTank";
_root.GetEnemy_8 = "Artillery";
if (_root.EnemyTimerSet > 40) {
_root.EnemyTimerSet = _root.EnemyTimerSet - 1;
}
_root.EnemyTimer = _root.EnemyTimerSet;
_root.EnemiesLeft = 30;
_root.EnemyLimit = 8;
_root.EnemyCurrent = 0;
_root.EnemiesKilled = 0;
_root.LightTank_Points = _root.LightTank_Points + 15;
_root.LightTank_Speed = _root.LightTank_Speed + 0.0005;
_root.LightTank_Damage = _root.LightTank_Damage + 2;
_root.LightTank_Health = _root.LightTank_Health + 50;
_root.DoubleLightTank_Points = _root.DoubleLightTank_Points + 15;
_root.DoubleLightTank_Speed = _root.DoubleLightTank_Speed + 0.0005;
_root.DoubleLightTank_Damage = _root.DoubleLightTank_Damage + 2;
_root.DoubleLightTank_Health = _root.DoubleLightTank_Health + 50;
_root.MediumTank_Points = _root.MediumTank_Points + 15;
_root.MediumTank_Speed = _root.MediumTank_Speed + 0.0005;
_root.MediumTank_Damage = _root.MediumTank_Damage + 2;
_root.MediumTank_Health = _root.MediumTank_Health + 50;
_root.ARMediumTank_Points = _root.ARMediumTank_Points + 15;
_root.ARMediumTank_Speed = _root.ARMediumTank_Speed + 0.0005;
_root.ARMediumTank_Damage = _root.ARMediumTank_Damage + 2;
_root.ARMediumTank_Health = _root.ARMediumTank_Health + 50;
_root.HeavyTank_Points = _root.HeavyTank_Points + 15;
_root.HeavyTank_Speed = _root.HeavyTank_Speed + 0.0005;
_root.HeavyTank_Damage = _root.HeavyTank_Damage + 2;
_root.HeavyTank_Health = _root.HeavyTank_Health + 50;
_root.StealthTank_Points = _root.StealthTank_Points + 15;
_root.StealthTank_Speed = _root.StealthTank_Speed + 0.0005;
_root.StealthTank_Damage = _root.StealthTank_Damage + 2;
_root.StealthTank_Health = _root.StealthTank_Health + 50;
_root.NuclearTank_Points = _root.NuclearTank_Points + 15;
_root.NuclearTank_Speed = _root.NuclearTank_Speed + 0.0005;
_root.NuclearTank_Damage = _root.NuclearTank_Damage + 2;
_root.NuclearTank_Health = _root.NuclearTank_Health + 50;
_root.Artillery_Points = _root.Artillery_Points + 15;
_root.Artillery_Speed = _root.Artillery_Speed + 0.0005;
_root.Artillery_Damage = _root.Artillery_Damage + 2;
_root.Artillery_Health = _root.Artillery_Health + 50;
}
ActivateLevel();
userLevelStatus = ["LevelStatus"];
Radar.swapDepths(999999);
LaserFence.swapDepths(999998);
attachMovie("LevelStatus", userLevelStatus, 1000000);
_root[userLevelStatus]._x = 275;
_root[userLevelStatus]._y = 200;
function RandomSpawn(ObjectPlace) {
DetermineSide = random(4) + 1;
if (DetermineSide == 1) {
_root[ObjectPlace]._x = Math.random() * 550;
_root[ObjectPlace]._y = -40;
}
if (DetermineSide == 2) {
_root[ObjectPlace]._x = Math.random() * 550;
_root[ObjectPlace]._y = 440;
}
if (DetermineSide == 3) {
_root[ObjectPlace]._x = -40;
_root[ObjectPlace]._y = Math.random() * 400;
}
if (DetermineSide == 4) {
_root[ObjectPlace]._x = 590;
_root[ObjectPlace]._y = Math.random() * 400;
}
}
function AimToTurret(EnemyFaceTurret) {
adjacent = _root[_root[EnemyFaceTurret].TargetTurret]._x - _root[EnemyFaceTurret]._x;
opposite = _root[_root[EnemyFaceTurret].TargetTurret]._y - _root[EnemyFaceTurret]._y;
EnemyAngle = Math.atan2(opposite, adjacent) * 57.2957795130823;
_root[EnemyFaceTurret]._rotation = EnemyAngle;
}
function GetSpeed(ObjectSpeed, EnemyType) {
_root[ObjectSpeed].constantspeed = _root[EnemyType + "_Speed"];
_root[ObjectSpeed].adjacent_TB = _root.TurretBarrel._x - _root[ObjectSpeed]._x;
_root[ObjectSpeed].opposite_TB = _root.TurretBarrel._y - _root[ObjectSpeed]._y;
_root[ObjectSpeed].hypotenuse_TB = Math.sqrt((_root[ObjectSpeed].opposite_TB * _root[ObjectSpeed].opposite_TB) + (_root[ObjectSpeed].adjacent_TB * _root[ObjectSpeed].adjacent_TB));
if (_root.AutoTurret1_Active == true) {
_root[ObjectSpeed].adjacent_AT1 = _root.AutoTurret1._x - _root[ObjectSpeed]._x;
_root[ObjectSpeed].opposite_AT1 = _root.AutoTurret1._y - _root[ObjectSpeed]._y;
_root[ObjectSpeed].hypotenuse_AT1 = Math.sqrt((_root[ObjectSpeed].opposite_AT1 * _root[ObjectSpeed].opposite_AT1) + (_root[ObjectSpeed].adjacent_AT1 * _root[ObjectSpeed].adjacent_AT1));
}
if (_root.AutoTurret2_Active == true) {
_root[ObjectSpeed].adjacent_AT2 = _root.AutoTurret2._x - _root[ObjectSpeed]._x;
_root[ObjectSpeed].opposite_AT2 = _root.AutoTurret2._y - _root[ObjectSpeed]._y;
_root[ObjectSpeed].hypotenuse_AT2 = Math.sqrt((_root[ObjectSpeed].opposite_AT2 * _root[ObjectSpeed].opposite_AT2) + (_root[ObjectSpeed].adjacent_AT2 * _root[ObjectSpeed].adjacent_AT2));
}
if ((_root[ObjectSpeed].TargetTurret == "AutoTurret1") && (_root.AutoTurret1_Active == false)) {
_root[ObjectSpeed].ShortestDistance = 1000;
}
if ((_root[ObjectSpeed].TargetTurret == "AutoTurret2") && (_root.AutoTurret2_Active == false)) {
_root[ObjectSpeed].ShortestDistance = 1000;
}
if (_root[ObjectSpeed].hypotenuse_TB < _root[ObjectSpeed].ShortestDistance) {
_root[ObjectSpeed].ShortestDistance = _root[ObjectSpeed].hypotenuse_TB;
_root[ObjectSpeed].TargetTurret = "TurretBarrel";
_root[ObjectSpeed].adjacent = _root[ObjectSpeed].adjacent_TB;
_root[ObjectSpeed].opposite = _root[ObjectSpeed].opposite_TB;
}
if ((_root.AutoTurret1_Active == true) && (_root[ObjectSpeed].hypotenuse_AT1 < _root[ObjectSpeed].ShortestDistance)) {
_root[ObjectSpeed].ShortestDistance = _root[ObjectSpeed].hypotenuse_AT1;
_root[ObjectSpeed].TargetTurret = "AutoTurret1";
_root[ObjectSpeed].adjacent = _root[ObjectSpeed].adjacent_AT1;
_root[ObjectSpeed].opposite = _root[ObjectSpeed].opposite_AT1;
}
if ((_root.AutoTurret2_Active == true) && (_root[ObjectSpeed].hypotenuse_AT2 < _root[ObjectSpeed].ShortestDistance)) {
_root[ObjectSpeed].ShortestDistance = _root[ObjectSpeed].hypotenuse_AT2;
_root[ObjectSpeed].TargetTurret = "AutoTurret2";
_root[ObjectSpeed].adjacent = _root[ObjectSpeed].adjacent_AT2;
_root[ObjectSpeed].opposite = _root[ObjectSpeed].opposite_AT2;
}
_root[ObjectSpeed].hypotenuse = _root[ObjectSpeed].ShortestDistance;
if (_root[ObjectSpeed].hypotenuse > _root[EnemyType + "_Range"]) {
_root[ObjectSpeed].xspeed = (_root[ObjectSpeed].adjacent / _root[ObjectSpeed].hypotenuse) * _root[ObjectSpeed].constantspeed;
_root[ObjectSpeed].yspeed = (_root[ObjectSpeed].opposite / _root[ObjectSpeed].hypotenuse) * _root[ObjectSpeed].constantspeed;
} else {
if ((_root[ObjectSpeed].health > 0) && (_root[ObjectSpeed].deathStatus == false)) {
_root[ObjectSpeed].attack = true;
}
_root[ObjectSpeed].xspeed = 0;
_root[ObjectSpeed].yspeed = 0;
}
}
function GetAutoTurretTarget(ObjectToTurret, EnemyType) {
if ((_root.AutoTurret1_Active == true) && (_root[ObjectToTurret].stealthed == false)) {
_root[ObjectToTurret].adjacent_at = _root.AutoTurret1._x - _root[ObjectToTurret]._x;
_root[ObjectToTurret].opposite_at = _root.AutoTurret1._y - _root[ObjectToTurret]._y;
_root[ObjectToTurret].hypotenuse_at = Math.sqrt((_root[ObjectToTurret].opposite_at * _root[ObjectToTurret].opposite_at) + (_root[ObjectToTurret].adjacent_at * _root[ObjectToTurret].adjacent_at));
if (_root[ObjectToTurret].hypotenuse_at < _root.AutoTurret_ClosestDist1) {
_root.AutoTurret_ClosestDist1 = _root[ObjectToTurret].hypotenuse_at;
_root.AutoTurret1.Target = ObjectToTurret;
}
}
if ((_root.AutoTurret2_Active == true) && (_root[ObjectToTurret].stealthed == false)) {
_root[ObjectToTurret].adjacent_at = _root.AutoTurret2._x - _root[ObjectToTurret]._x;
_root[ObjectToTurret].opposite_at = _root.AutoTurret2._y - _root[ObjectToTurret]._y;
_root[ObjectToTurret].hypotenuse_at = Math.sqrt((_root[ObjectToTurret].opposite_at * _root[ObjectToTurret].opposite_at) + (_root[ObjectToTurret].adjacent_at * _root[ObjectToTurret].adjacent_at));
if (_root[ObjectToTurret].hypotenuse_at < _root.AutoTurret_ClosestDist2) {
_root.AutoTurret_ClosestDist2 = _root[ObjectToTurret].hypotenuse_at;
_root.AutoTurret2.Target = ObjectToTurret;
}
}
}
function NewEnemySpawn(EnemyType, Special) {
newObject = EnemyType + NewEnemyNo;
_root.attachMovie(EnemyType, newObject, NewObjDepth);
RandomSpawn(newObject);
AimToTurret(newObject);
GetSpeed(newObject, EnemyType);
GetAutoTurretTarget(newObject, EnemyType);
_root[newObject].special = Special;
_root[newObject].stealthed = false;
if (Special == "Stealth") {
_root[newObject].stealthed = true;
_root[newObject]._alpha = 0;
}
_root[newObject].ID = EnemyType + NewEnemyNo;
_root[newObject].MyName = EnemyType;
_root[newObject].alive = true;
_root[newObject].removeMe = false;
_root[newObject].deathStatus = false;
_root[newObject].health = _root[EnemyType + "_Health"];
_root[newObject].attack = false;
_root[newObject].shooting = false;
_root[newObject].ShortestDistance = 1000;
_root[newObject].TargetTurret = "";
_root[newObject].onEnterFrame = function () {
GetAutoTurretTarget(this.ID, this.MyName);
GetSpeed(this.ID, this.MyName);
if (_root.RemoveAllObjects == true) {
this.removeMovieClip();
}
if (_root.LaserFence.hitTest(this)) {
this.health = this.health - 1;
}
if (this.special == "Stealth") {
if ((this.stealthed == true) && (_root.Radar.hitTest(this))) {
this.stealthed = false;
}
if ((this.stealthed == true) && (_root.LaserFence.hitTest(this))) {
this.stealthed = false;
}
if ((this.stealthed == true) && (this.attack == true)) {
this.stealthed = false;
}
if ((this.stealthed == false) && (this._alpha < 100)) {
this._alpha = this._alpha + 5;
}
}
if (this.alive == true) {
AimToTurret(this.ID);
GetSpeed(this.ID, EnemyType);
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if ((this.attack == true) && (this.shooting == false)) {
var _local4 = new Sound();
_local4.attachSound("Attacked");
_local4.start();
if (this.TargetTurret == "TurretBarrel") {
_root.TurretHealth_Current = _root.TurretHealth_Current - Math.round(_root[this.MyName + "_Damage"] * _root.Armor);
}
if (this.TargetTurret == "AutoTurret1") {
_root.AutoTurret_Health1 = _root.AutoTurret_Health1 - _root[EnemyType + "_Damage"];
}
if (this.TargetTurret == "AutoTurret2") {
_root.AutoTurret_Health2 = _root.AutoTurret_Health2 - _root[EnemyType + "_Damage"];
}
newShot = [(this.MyName + "_Atk") + NewObjDepth];
TurretHit = [this.MyName + "_Atk"];
_root.attachMovie(TurretHit, newShot, NewObjDepth);
_root[newShot]._rotation = this._rotation;
this.DistanceSpread = (Math.random() * 10) - 5;
_root[newShot]._x = _root[this.TargetTurret]._x + this.DistanceSpread;
_root[newShot]._y = _root[this.TargetTurret]._y + this.DistanceSpread;
_root[newShot].onEnterFrame = function () {
if (_root.RemoveAllObjects == true) {
this.removeMovieClip();
}
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
NewObjDepth = NewObjDepth + 1;
this.attacker.gotoAndPlay("shoot");
}
TestHit = DeletedProjNo - 5;
while (TestHit < NewProjNo) {
if ((this.alive == true) && (this.hitTest(_root["TurretProjectile" + TestHit]._x, _root["TurretProjectile" + TestHit]._y, true))) {
var _local3 = new Sound();
_local3.attachSound("Hit");
_local3.start();
NewObjDepth = NewObjDepth + 1;
newHit = [(EnemyType + "_Hit") + NewObjDepth];
TankHit = [EnemyType + "_Hit"];
_root.attachMovie(TankHit, newHit, NewObjDepth);
_root[newHit]._rotation = this._rotation;
_root[newHit]._x = _root["TurretProjectile" + TestHit]._x;
_root[newHit]._y = _root["TurretProjectile" + TestHit]._y;
_root[newHit].onEnterFrame = function () {
if (_root.RemoveAllObjects == true) {
this.removeMovieClip();
}
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
if (_root["TurretProjectile" + TestHit].FiredFrom == "Player") {
this.health = this.health - ProjectileDmg;
ProjHit = ProjHit + 1;
}
if (_root["TurretProjectile" + TestHit].FiredFrom == "AutoTurret") {
this.health = this.health - AT_ProjectileDmg;
}
_root["TurretProjectile" + TestHit].removeMe = true;
_root["TurretProjectile" + TestHit].removeMovieClip();
DeletedProjNo = DeletedProjNo + 1;
NewObjDepth = NewObjDepth + 1;
}
TestHit = TestHit + 1;
}
if ((this.health <= 0) && (this.deathStatus == false)) {
var _local5 = new Sound();
_local5.attachSound("Kaboom");
_local5.start();
this.gotoAndPlay("die");
this.attack = false;
this.deathStatus = true;
this.alive = false;
}
if (this.removeMe == true) {
Points = Points + _root[EnemyType + "_Points"];
PointsGained = PointsGained + _root[EnemyType + "_Points"];
EnemiesKilled = EnemiesKilled + 1;
EnemyCurrent = EnemyCurrent - 1;
this.removeMovieClip();
}
};
NewEnemyNo = NewEnemyNo + 1;
NewObjDepth = NewObjDepth + 1;
}
function SpawnEnemies() {
_root.EnemyTimer = _root.EnemyTimer - 1;
if (_root.EnemyTimer <= 0) {
if (_root.EnemySpawner_Active == true) {
_root.EnemyTimer = _root.EnemyTimerSet;
if ((EnemyCurrent < EnemyLimit) && (EnemiesLeft > 0)) {
randomEnemy = random(_root.MaximumEnemySpawnLevel - (_root.MinimumEnemySpawnLevel - 1)) + _root.MinimumEnemySpawnLevel;
MySpawnedEnemy = _root["GetEnemy_" + randomEnemy];
if (randomEnemy == 1) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
if (randomEnemy == 2) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
if (randomEnemy == 3) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
if (randomEnemy == 4) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
if (randomEnemy == 5) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
if (randomEnemy == 6) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
if (randomEnemy == 7) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
if (randomEnemy == 8) {
if (MySpawnedEnemy == "StealthTank") {
SepcialAbility = "Stealth";
} else {
SepcialAbility = "None";
}
NewEnemySpawn(MySpawnedEnemy, SepcialAbility);
}
EnemiesLeft = EnemiesLeft - 1;
EnemyCurrent = EnemyCurrent + 1;
}
if ((EnemiesLeft == 0) && (EnemyCurrent == 0)) {
if ((_root.Scenario == true) && (_root.RepeatScenario == false)) {
_root.ReturnToMenu();
} else {
newObject = "LevelComplete";
_root.attachMovie("LevelComplete", newObject, 1000001);
_root[newObject]._x = 275;
_root[newObject]._y = 200;
_root[newObject].LevelCompleted_txt.text = ("Level #" + _root.Level) + " Completed";
_root[newObject].EnemiesKilled_txt.text = EnemiesKilled;
_root[newObject].ShotsFired_txt.text = ProjFired;
_root[newObject].ShotsHit_txt.text = ProjHit;
_root[newObject].Accuracy_txt.text = Accuracy;
MyAccuracyBonus = 1 + (Math.round((AccuracyNo / 250) * 100) / 100);
if (isNaN(MyAccuracyBonus) == true) {
MyAccuracyBonus = 1;
}
_root[newObject].AccuracyBonus_txt.text = "Points x" + MyAccuracyBonus;
Points = Points + (Math.round(PointsGained * MyAccuracyBonus) - PointsGained);
PointsGained = Math.round(PointsGained * MyAccuracyBonus);
_root[newObject].Points_txt.text = PointsGained;
_root[newObject].TotalPoints_txt.text = Points;
_root.TurretHealth_Total = _root.TurretHealth_Total + 100;
LevelStatus._alpha = 0;
NewObjDepth = NewObjDepth + 1;
_root.EnemySpawner_Active = false;
}
}
}
}
}
clearInterval(_root.EnemySpawner);
_root.EnemySpawner_Active = true;
_root.EnemySpawner = setInterval(SpawnEnemies, 25);
function AimBarrelToMouse() {
adjacent = _root._xmouse - _root.TurretBarrel._x;
opposite = _root._ymouse - _root.TurretBarrel._y;
angle = Math.atan2(opposite, adjacent) * 57.2957795130823;
_root.TurretBarrel._rotation = angle;
}
function Turret_Shooting_Function() {
_root.UserReloadTimer = _root.UserReloadTimer - 1;
if (Key.isDown(1) or Key.isDown(32)) {
if (((((_root.EnemiesRemaining > 0) && (_xmouse > 0)) && (_xmouse < 550)) && (_ymouse > 0)) && (_ymouse < 400)) {
if (_root.UserReloadTimer <= 0) {
var _local3 = new Sound();
_local3.attachSound("Laser");
_local3.start();
_root.UserReloadTimer = _root.UserReload;
_root.TurretBarrel.gotoAndPlay("AfterShock");
newObject = "TurretProjectile" + NewProjNo;
_root.attachMovie("TurretProjectile", newObject, NewObjDepth);
_root[newObject]._rotation = _root.angle;
_root[newObject]._x = _root.TurretBarrel._x;
_root[newObject]._y = _root.TurretBarrel._y;
_root[newObject].FiredFrom = "Player";
_root[newObject].onEnterFrame = function () {
if (_root.RemoveAllObjects == true) {
this.removeMovieClip();
}
if (this.starting == undefined) {
this.starting = false;
this.ProjectileSpd = _root.ProjectileSpd;
this.adjacent = _root._xmouse - this._x;
this.opposite = _root._ymouse - this._y;
this.hypotenuse = Math.sqrt((this.opposite * this.opposite) + (this.adjacent * this.adjacent));
this.xspeed = (this.adjacent / this.hypotenuse) * this.ProjectileSpd;
this.yspeed = (this.opposite / this.hypotenuse) * this.ProjectileSpd;
if (isNaN(this.xspeed) == true) {
this.xspeed = this.ProjectileSpd;
}
if (isNaN(this.yspeed) == true) {
this.yspeed = 0;
}
this._rotation = _root.angle;
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (this._x > 600) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
if (this._x < -50) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
if (this._y > 450) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
if (this._y < -50) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
};
ProjFired = ProjFired + 1;
NewProjNo = NewProjNo + 1;
NewObjDepth = NewObjDepth + 1;
}
}
}
}
clearInterval(_root.TurretBarrelAimer);
_root.TurretBarrelAimer = setInterval(AimBarrelToMouse, 25);
clearInterval(_root.Turret_Fire);
_root.Turret_Fire = setInterval(Turret_Shooting_Function, 25);
function AutoTurretAimTarget(TurretAim) {
_root[TurretAim].adjacent_at = _root[_root[TurretAim].Target]._x - _root[TurretAim]._x;
_root[TurretAim].opposite_at = _root[_root[TurretAim].Target]._y - _root[TurretAim]._y;
_root[TurretAim].angle_at = Math.atan2(_root[TurretAim].opposite_at, _root[TurretAim].adjacent_at) * 57.2957795130823;
_root[TurretAim]._rotation = _root[TurretAim].angle_at;
}
function AT_Shoot() {
_root.AutoTurret_ReloadTimer = _root.AutoTurret_ReloadTimer - 1;
if (_root.AutoTurret_ReloadTimer <= 0) {
_root.AutoTurret_ReloadTimer = _root.AutoTurret_Reload;
_root.AutoTurret_Target1 = _root.AutoTurret1.Target;
_root.AutoTurret_Target2 = _root.AutoTurret2.Target;
if (_root.AutoTurret1_Active == true) {
if (_root[_root.AutoTurret1.Target] == undefined) {
_root.AutoTurret_ClosestDist1 = 1000;
_root.AutoTurret_Target1 = "None";
}
if (_root.AutoTurret_Target1 != "None") {
AutoTurretAimTarget("AutoTurret1");
AutoTurret_FireProjectile("AutoTurret1", _root.AutoTurret1.Target);
}
}
if (_root.AutoTurret2_Active == true) {
if (_root[_root.AutoTurret2.Target] == undefined) {
_root.AutoTurret_ClosestDist2 = 1000;
_root.AutoTurret_Target2 = "None";
}
if (_root.AutoTurret_Target2 != "None") {
AutoTurretAimTarget("AutoTurret2");
AutoTurret_FireProjectile("AutoTurret2", _root.AutoTurret2.Target);
}
}
}
if ((_root.AutoTurret_Health1 <= 0) && (_root.AutoTurret1_Active == true)) {
_root.AutoTurret_Health1 = 0;
_root.AutoTurret1_Active = false;
_root.AutoTurret1.Turret.gotoAndPlay("Die");
_root.AT_Base1.gotoAndPlay("Die");
}
if ((_root.AutoTurret_Health2 <= 0) && (_root.AutoTurret2_Active == true)) {
_root.AutoTurret_Health2 = 0;
_root.AutoTurret2_Active = false;
_root.AutoTurret2.Turret.gotoAndPlay("Die");
_root.AT_Base2.gotoAndPlay("Die");
}
if (_root.AutoTurret1_Deploy == true) {
_root.AutoTurret1.gotoAndPlay("Deploy");
_root.AT_Base1.gotoAndPlay("Deploy");
_root.AutoTurret_Health1 = _root.AutoTurret_HealthSet1;
_root.AutoTurret1_Active = true;
_root.AutoTurret1_Deploy = false;
}
if (_root.AutoTurret2_Deploy == true) {
_root.AutoTurret2.gotoAndPlay("Deploy");
_root.AT_Base2.gotoAndPlay("Deploy");
_root.AutoTurret_Health2 = _root.AutoTurret_HealthSet2;
_root.AutoTurret2_Active = true;
_root.AutoTurret2_Deploy = false;
}
}
function AutoTurret_FireProjectile(ShotFrom, ShotAt) {
var _local3 = new Sound();
_local3.attachSound("Laser");
_local3.start();
_root[ShotFrom].gotoAndPlay("AfterShock");
newObject = "TurretProjectile" + NewProjNo;
_root.attachMovie("TurretProjectile", newObject, NewObjDepth);
_root[newObject]._rotation = _root.angle_at;
_root[newObject]._x = _root[ShotFrom]._x;
_root[newObject]._y = _root[ShotFrom]._y;
_root[newObject].FiredFrom = "AutoTurret";
_root[newObject].onEnterFrame = function () {
if (_root.RemoveAllObjects == true) {
this.removeMovieClip();
}
if (this.starting == undefined) {
this.starting = false;
this.ProjectileSpd = _root.ProjectileSpd;
this.adjacent = _root[ShotAt]._x - this._x;
this.opposite = _root[ShotAt]._y - this._y;
this.hypotenuse = Math.sqrt((this.opposite * this.opposite) + (this.adjacent * this.adjacent));
this.xspeed = (this.adjacent / this.hypotenuse) * this.ProjectileSpd;
this.yspeed = (this.opposite / this.hypotenuse) * this.ProjectileSpd;
this._rotation = _root[ShotFrom].angle_at;
}
this.lastdistx = this._x;
this.lastdisty = this._y;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this.curdistx = this._x;
this.curdisty = this._y;
if ((this.lastdistx == this.curdistx) && (this.lastdisty == this.curdisty)) {
this.removeMovieClip();
}
if (this._x > 600) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
if (this._x < -50) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
if (this._y > 450) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
if (this._y < -50) {
DeletedProjNo = DeletedProjNo + 1;
this.removeMovieClip();
}
};
NewProjNo = NewProjNo + 1;
NewObjDepth = NewObjDepth + 1;
}
clearInterval(_root.AT_Shoot_Timer);
_root.AT_Shoot_Timer = setInterval(AT_Shoot, 25);
Frame 7
stop();
Symbol 1240 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 22 MovieClip Frame 200
_root.play();
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
this._x = random(550) - 275;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
if (this._x > 350) {
this._x = -375;
this._y = (-1 * random(60)) - 100;
this.sizevar = random(50) + 51;
this._xscale = this.sizevar;
this._yscale = this.sizevar;
this.speed = random(3) + 1;
}
}
Symbol 43 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 20
stop();
Symbol 115 MovieClip Frame 400
_root.gotoAndStop("menu");
Symbol 143 MovieClip Frame 1
stop();
if (_root.Cheat_Enable == "On") {
gotoAndStop (2);
}
Symbol 143 MovieClip Frame 2
if (_root.Cheat_Enable == "On") {
gotoAndStop ("cheater");
}
Symbol 165 MovieClip Frame 1
stop();
if (_root.ProjectileDmg >= 100) {
gotoAndStop ("max");
}
purchase_btn.onRelease = function () {
if ((_root.Points >= 35) && (_root.ProjectileDmg < 100)) {
_root.Points = _root.Points - 35;
_root.ProjectileDmg = _root.ProjectileDmg + 1;
}
if (_root.ProjectileDmg >= 100) {
gotoAndStop ("max");
}
};
Symbol 173 MovieClip Frame 1
stop();
if (_root.UserReload <= 6) {
gotoAndStop ("max");
}
UserReloadTime = _root.UserReload * 25;
purchase_btn.onRelease = function () {
if ((_root.Points >= 105) && (_root.UserReload > 6)) {
_root.Points = _root.Points - 105;
_root.UserReload = _root.UserReload - 1;
UserReloadTime = _root.UserReload * 25;
}
if (_root.UserReload <= 6) {
gotoAndStop ("max");
}
};
Symbol 185 MovieClip Frame 1
stop();
up_btn.onRelease = function () {
gotoAndStop ("power");
};
ufr_btn.onRelease = function () {
gotoAndStop ("firerate");
};
rt_btn.onRelease = function () {
gotoAndStop ("repairturret");
};
Symbol 185 MovieClip Frame 2
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 185 MovieClip Frame 3
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 185 MovieClip Frame 4
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
rep100_btn.onRelease = function () {
if ((_root.Points >= 25) && (_root.TurretHealth_Current < _root.TurretHealth_Total)) {
_root.Points = _root.Points - 25;
_root.TurretHealth_Current = _root.TurretHealth_Current + 100;
}
};
rep500_btn.onRelease = function () {
if ((_root.Points >= 100) && (_root.TurretHealth_Current < _root.TurretHealth_Total)) {
_root.Points = _root.Points - 100;
_root.TurretHealth_Current = _root.TurretHealth_Current + 500;
}
};
Symbol 203 MovieClip Frame 1
stop();
if (_root.RadarActive == true) {
gotoAndStop ("purchased");
}
purchase_btn.onRelease = function () {
if (_root.Points >= 125) {
_root.Points = _root.Points - 125;
_root.RadarActive = true;
_root.Radar.gotoAndStop("On");
gotoAndStop ("purchased");
}
};
Symbol 208 MovieClip Frame 1
stop();
if (_root.LaserFenceActive == true) {
gotoAndStop ("purchased");
}
purchase_btn.onRelease = function () {
if (_root.Points >= 1000) {
_root.Points = _root.Points - 1000;
_root.LaserFenceActive = true;
_root.LaserFence.gotoAndStop("On");
gotoAndStop ("purchased");
}
};
Symbol 214 MovieClip Frame 1
stop();
if (_root.ReinforcedArmorActive == true) {
gotoAndStop ("purchased");
}
purchase_btn.onRelease = function () {
if (_root.Points >= 750) {
_root.Points = _root.Points - 750;
_root.ReinforcedArmorActive = true;
_root.Armor = 0.9;
gotoAndStop ("purchased");
}
};
Symbol 220 MovieClip Frame 1
stop();
if (_root.RecoilAdjustments == true) {
gotoAndStop ("purchased");
}
purchase_btn.onRelease = function () {
if (_root.Points >= 250) {
_root.Points = _root.Points - 250;
_root.RecoilAdjustments = true;
_root.ProjectileSpd = _root.ProjectileSpd * 1.1;
gotoAndStop ("purchased");
}
};
Symbol 223 MovieClip Frame 1
stop();
r_btn.onRelease = function () {
gotoAndStop ("radar");
};
lf_btn.onRelease = function () {
gotoAndStop ("laser");
};
ra_btn.onRelease = function () {
gotoAndStop ("armor");
};
radj_btn.onRelease = function () {
gotoAndStop ("recoil");
};
Symbol 223 MovieClip Frame 2
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 223 MovieClip Frame 3
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 223 MovieClip Frame 4
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 223 MovieClip Frame 5
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 243 MovieClip Frame 1
stop();
if (_root.AutoTurret1_Active == true) {
gotoAndStop ("Turret");
}
purchase_btn.onRelease = function () {
if (_root.Points >= 750) {
_root.Points = _root.Points - 750;
_root.AutoTurret1_Deploy = true;
gotoAndStop ("Turret");
}
};
Symbol 243 MovieClip Frame 2
repair_btn.onRelease = function () {
if (_root.AutoTurret_Health1 < _root.AutoTurret_HealthSet1) {
cost = Math.round((_root.AutoTurret_HealthSet1 - _root.AutoTurret_Health1) * 0.5);
if (_root.Points >= cost) {
_root.Points = _root.Points - cost;
_root.AutoTurret_Health1 = _root.AutoTurret_HealthSet1;
}
}
};
health_btn.onRelease = function () {
if (_root.AutoTurret_HealthSet1 < 2000) {
if (_root.Points >= 25) {
_root.Points = _root.Points - 25;
_root.AutoTurret_Health1 = _root.AutoTurret_Health1 + 25;
_root.AutoTurret_HealthSet1 = _root.AutoTurret_HealthSet1 + 25;
}
}
};
Symbol 250 MovieClip Frame 1
stop();
if (_root.AutoTurret2_Active == true) {
gotoAndStop ("Turret");
}
purchase_btn.onRelease = function () {
if (_root.Points >= 750) {
_root.Points = _root.Points - 750;
_root.AutoTurret2_Deploy = true;
gotoAndStop ("Turret");
}
};
Symbol 250 MovieClip Frame 2
repair_btn.onRelease = function () {
if (_root.AutoTurret_Health2 < _root.AutoTurret_HealthSet2) {
cost = Math.round((_root.AutoTurret_HealthSet2 - _root.AutoTurret_Health2) * 0.5);
if (_root.Points >= cost) {
_root.Points = _root.Points - cost;
_root.AutoTurret_Health2 = _root.AutoTurret_HealthSet2;
}
}
};
health_btn.onRelease = function () {
if (_root.AutoTurret_HealthSet2 < 2000) {
if (_root.Points >= 25) {
_root.Points = _root.Points - 25;
_root.AutoTurret_Health2 = _root.AutoTurret_Health2 + 25;
_root.AutoTurret_HealthSet2 = _root.AutoTurret_HealthSet2 + 25;
}
}
};
Symbol 258 MovieClip Frame 1
stop();
if (_root.AT_ProjectileDmg >= 50) {
gotoAndStop ("max");
}
purchase_btn.onRelease = function () {
if ((_root.Points >= 50) && (_root.AT_ProjectileDmg < 50)) {
_root.Points = _root.Points - 50;
_root.AT_ProjectileDmg = _root.AT_ProjectileDmg + 1;
}
if (_root.AT_ProjectileDmg >= 50) {
gotoAndStop ("max");
}
};
Symbol 265 MovieClip Frame 1
stop();
if (_root.AutoTurret_Reload <= 8) {
gotoAndStop ("max");
}
AutoTurret_Reload = _root.AutoTurret_Reload * 25;
purchase_btn.onRelease = function () {
if ((_root.Points >= 150) && (_root.AutoTurret_Reload > 8)) {
_root.Points = _root.Points - 150;
_root.AutoTurret_Reload = _root.AutoTurret_Reload - 1;
AutoTurret_Reload = _root.AutoTurret_Reload * 25;
}
if (_root.AutoTurret_Reload <= 8) {
gotoAndStop ("max");
}
};
Symbol 267 MovieClip Frame 1
stop();
atl_btn.onRelease = function () {
gotoAndStop ("at1");
};
atr_btn.onRelease = function () {
gotoAndStop ("at2");
};
uatp_btn.onRelease = function () {
gotoAndStop ("atpower");
};
uatfr_btn.onRelease = function () {
gotoAndStop ("atfirerate");
};
Symbol 267 MovieClip Frame 2
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 267 MovieClip Frame 3
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 267 MovieClip Frame 4
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 267 MovieClip Frame 5
back_btn.onRelease = function () {
gotoAndStop ("Selections");
};
Symbol 268 MovieClip Frame 1
stop();
baseturret_btn.onRelease = function () {
gotoAndStop ("BT");
};
upgrades_btn.onRelease = function () {
gotoAndStop ("UP");
};
autoturret_btn.onRelease = function () {
gotoAndStop ("AT");
};
Symbol 268 MovieClip Frame 2
stop();
baseturret_btn.onRelease = function () {
gotoAndStop ("BT");
};
upgrades_btn.onRelease = function () {
gotoAndStop ("UP");
};
autoturret_btn.onRelease = function () {
gotoAndStop ("AT");
};
Symbol 268 MovieClip Frame 3
stop();
baseturret_btn.onRelease = function () {
gotoAndStop ("BT");
};
upgrades_btn.onRelease = function () {
gotoAndStop ("UP");
};
autoturret_btn.onRelease = function () {
gotoAndStop ("AT");
};
Symbol 271 MovieClip [LevelComplete] Frame 1
stop();
continue_btn.onRelease = function () {
if (_root.NextLevelInfo == true) {
gotoAndStop ("Information");
} else if (_root.AllowUpgrades == true) {
gotoAndStop ("Upgrades");
} else {
_root.NewObjDepth = 0;
_root.NewEnemyNo = 0;
_root.NewProjNo = 0;
_root.DeletedProjNo = 0;
if (_root.Scenario == false) {
_root.Level = _root.Level + 1;
}
_root.PointsGained = 0;
_root.ProjFired = 0;
_root.ProjHit = 0;
_root.ActivateLevel();
_root.EnemySpawner_Active = true;
_root.LevelStatus._alpha = 100;
_root.LevelComplete.removeMovieClip();
}
};
cover_btn.useHandCursor = false;
Symbol 271 MovieClip [LevelComplete] Frame 2
stop();
continue_btn.onRelease = function () {
gotoAndStop ("Upgrades");
};
Symbol 271 MovieClip [LevelComplete] Frame 3
nextLevel_btn.onRelease = function () {
_root.NewObjDepth = 0;
_root.NewEnemyNo = 0;
_root.NewProjNo = 0;
_root.DeletedProjNo = 0;
if (_root.Scenario == false) {
_root.Level = _root.Level + 1;
}
_root.PointsGained = 0;
_root.ProjFired = 0;
_root.ProjHit = 0;
_root.ActivateLevel();
_root.EnemySpawner_Active = true;
_root.LevelStatus._alpha = 100;
_root.LevelComplete.removeMovieClip();
};
Symbol 290 MovieClip [LevelStatus] Frame 1
stop();
menu_btn.onRelease = function () {
gotoAndStop ("Question");
};
Symbol 290 MovieClip [LevelStatus] Frame 3
yes_btn.onRelease = function () {
_root.ReturnToMenu();
};
no_btn.onRelease = function () {
gotoAndStop ("Stats");
};
Symbol 293 MovieClip [TurretProjectile] Frame 1
gotoAndPlay (2);
Symbol 293 MovieClip [TurretProjectile] Frame 6
stop();
Symbol 302 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 302 MovieClip Frame 2
_parent.shooting = true;
Symbol 302 MovieClip Frame 15
gotoAndPlay(random(50) + 16);
Symbol 314 MovieClip Frame 10
stop();
Symbol 326 MovieClip [LightTank] Frame 1
stop();
Symbol 326 MovieClip [LightTank] Frame 19
stop();
removeMe = true;
Symbol 335 MovieClip [LightTank_Hit] Frame 9
stop();
Symbol 344 MovieClip [LightTank_Atk] Frame 9
stop();
Symbol 353 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 353 MovieClip Frame 2
_parent.shooting = true;
Symbol 353 MovieClip Frame 15
gotoAndPlay(random(35) + 16);
Symbol 365 MovieClip Frame 10
stop();
Symbol 376 MovieClip [DoubleLightTank] Frame 1
stop();
Symbol 376 MovieClip [DoubleLightTank] Frame 20
stop();
removeMe = true;
Symbol 385 MovieClip [DoubleLightTank_Hit] Frame 9
stop();
Symbol 394 MovieClip [DoubleLightTank_Atk] Frame 9
stop();
Symbol 405 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 405 MovieClip Frame 2
_parent.shooting = true;
Symbol 405 MovieClip Frame 15
gotoAndPlay(random(35) + 16);
Symbol 417 MovieClip Frame 10
stop();
Symbol 428 MovieClip [MediumTank] Frame 1
stop();
Symbol 428 MovieClip [MediumTank] Frame 20
stop();
removeMe = true;
Symbol 435 MovieClip [MediumTank_Atk] Frame 7
stop();
Symbol 444 MovieClip [MediumTank_Hit] Frame 9
stop();
Symbol 455 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 455 MovieClip Frame 2
_parent.shooting = true;
Symbol 455 MovieClip Frame 15
gotoAndPlay(random(15) + 16);
Symbol 467 MovieClip Frame 10
stop();
Symbol 476 MovieClip [ARMediumTank] Frame 1
stop();
Symbol 476 MovieClip [ARMediumTank] Frame 20
stop();
removeMe = true;
Symbol 483 MovieClip [ARMediumTank_Atk] Frame 7
stop();
Symbol 491 MovieClip [ARMediumTank_Hit] Frame 9
stop();
Symbol 502 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 502 MovieClip Frame 2
_parent.shooting = true;
Symbol 502 MovieClip Frame 15
gotoAndPlay(random(25) + 16);
Symbol 514 MovieClip Frame 10
stop();
Symbol 520 MovieClip [HeavyTank] Frame 1
stop();
Symbol 520 MovieClip [HeavyTank] Frame 16
stop();
removeMe = true;
Symbol 527 MovieClip [HeavyTank_Atk] Frame 7
stop();
Symbol 535 MovieClip [HeavyTank_Hit] Frame 9
stop();
Symbol 546 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 546 MovieClip Frame 2
_parent.shooting = true;
Symbol 546 MovieClip Frame 15
gotoAndPlay(random(25) + 16);
Symbol 559 MovieClip Frame 1
dish_mc._rotation = Math.random() * 360;
speed = (Math.random() * 2) + 0.5;
dish_mc.onEnterFrame = function () {
dish_mc._rotation = dish_mc._rotation + speed;
};
Symbol 568 MovieClip Frame 8
stop();
Symbol 578 MovieClip [StealthTank] Frame 1
stop();
Symbol 578 MovieClip [StealthTank] Frame 15
stop();
removeMe = true;
Symbol 589 MovieClip [StealthTank_Atk] Frame 11
stop();
Symbol 597 MovieClip [StealthTank_Hit] Frame 8
stop();
Symbol 610 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 610 MovieClip Frame 2
_parent.shooting = true;
Symbol 610 MovieClip Frame 15
gotoAndPlay(random(40) + 16);
Symbol 633 MovieClip Frame 16
stop();
Symbol 641 MovieClip [NuclearTank] Frame 1
stop();
Symbol 641 MovieClip [NuclearTank] Frame 25
stop();
removeMe = true;
Symbol 661 MovieClip [NuclearTank_Atk] Frame 25
stop();
Symbol 670 MovieClip [NuclearTank_Hit] Frame 9
stop();
Symbol 678 MovieClip Frame 1
stop();
_parent.shooting = false;
Symbol 678 MovieClip Frame 2
_parent.shooting = true;
Symbol 678 MovieClip Frame 60
gotoAndPlay(random(10) + 61);
Symbol 686 MovieClip Frame 6
stop();
Symbol 696 MovieClip [Artillery] Frame 1
stop();
Symbol 696 MovieClip [Artillery] Frame 15
stop();
removeMe = true;
Symbol 705 MovieClip [Artillery_Atk] Frame 41
stop();
Symbol 713 MovieClip [Artillery_Hit] Frame 8
stop();
Symbol 716 MovieClip [Quality] Frame 1
stop();
Symbol 721 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 1
credits_btn.onRelease = function () {
_root.Credits();
};
Symbol 743 MovieClip Frame 1
cheats_btn.onRelease = function () {
_root.Cheats();
};
Symbol 746 MovieClip Frame 1
instructions_btn.onRelease = function () {
_root.Instructions();
};
Symbol 749 MovieClip Frame 1
start_btn.onRelease = function () {
_root.StartGame();
};
Symbol 795 MovieClip Frame 1
close_btn.onRelease = function () {
_root.CloseTab();
};
Symbol 813 MovieClip Frame 1
Instructions_txt.html = true;
Instructions_txt.htmlText = "<u>Instructions</u>:\nAim with your mouse, shoot with left click or spacebar.\n<u>Goals</u>:\nUse your Base Turret to fend off the endless waves of tanks. Your goal is to obliterate as many Tanks as possible before your Turret is destroyed. Destroying Tanks earns you points which are used to purchase upgrades for your Turret and additional features such as radar, a laser fence, reinforced armor and recoil adjustments. Your Turret has a maximum health which increases by 100 every level. Any cheats you wish to play with must be activated before you start the game.\nToggle Quality: 'Q' Toggle Music: 'M'";
up_btn.onRelease = function () {
Instructions_txt.scroll = Instructions_txt.scroll - 1;
};
down_btn.onRelease = function () {
Instructions_txt.scroll = Instructions_txt.scroll + 1;
};
Symbol 844 MovieClip Frame 1
stop();
lt_btn.onRelease = function () {
gotoAndStop ("lt");
};
tlt_btn.onRelease = function () {
gotoAndStop ("tlt");
};
mt_btn.onRelease = function () {
gotoAndStop ("mt");
};
rmt_btn.onRelease = function () {
gotoAndStop ("rmt");
};
ht_btn.onRelease = function () {
gotoAndStop ("ht");
};
st_btn.onRelease = function () {
gotoAndStop ("st");
};
nt_btn.onRelease = function () {
gotoAndStop ("nt");
};
a_btn.onRelease = function () {
gotoAndStop ("a");
};
Symbol 844 MovieClip Frame 2
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 844 MovieClip Frame 3
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 844 MovieClip Frame 4
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 844 MovieClip Frame 5
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 844 MovieClip Frame 6
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 844 MovieClip Frame 7
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 844 MovieClip Frame 8
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 844 MovieClip Frame 9
back_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 863 MovieClip Frame 1
gotoAndStop(_root["Cheat" + OnOff]);
stop();
on_btn.onRelease = function () {
_root["Cheat" + OnOff] = "On";
gotoAndStop ("On");
};
Symbol 863 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root["Cheat" + OnOff] = "Off";
gotoAndStop ("Off");
};
Symbol 871 MovieClip Frame 1
gotoAndStop(_root["Cheat" + OnOff]);
stop();
on_btn.onRelease = function () {
_root["Cheat" + OnOff] = "On";
gotoAndStop ("On");
};
Symbol 871 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root["Cheat" + OnOff] = "Off";
gotoAndStop ("Off");
};
Symbol 888 MovieClip Frame 1
gotoAndStop(_parent.Action);
Symbol 888 MovieClip Frame 2
enemytypes_btn.onRelease = function () {
gotoAndStop ("EnemyTypes");
};
Symbol 888 MovieClip Frame 3
instructions_btn.onRelease = function () {
gotoAndStop ("Instructions");
};
Symbol 888 MovieClip Frame 4
laserfence.gotoAndStop(_root.Cheat_LaserFence);
laserfence.OnOff = "_LaserFence";
invulnerable.gotoAndStop(_root.Cheat_Invulnerable);
invulnerable.OnOff = "_Invulnerable";
invulnerable.gotoAndStop(_root.Cheat_Radar);
radar.OnOff = "_Radar";
at1.gotoAndStop(_root.Cheat_AT1);
at1.OnOff = "_AT1";
at2.gotoAndStop(_root.Cheat_AT2);
at2.OnOff = "_AT2";
enable.gotoAndStop(_root.Cheat_Enable);
enable.OnOff = "_Enable";
Symbol 888 MovieClip Frame 5
godlygamer_btn.onRelease = function () {
getURL ("http://www.godlygamer.com/", "_blank");
};
sponsor_btn.onRelease = function () {
getURL ("http://www.xaurora.com/", "_blank");
};
Symbol 898 MovieClip Frame 1
gotoAndStop(_root.AllowUpgrades);
stop();
on_btn.onRelease = function () {
_root.AllowUpgrades = true;
gotoAndStop ("true");
};
Symbol 898 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root.AllowUpgrades = false;
gotoAndStop ("false");
};
Symbol 906 MovieClip Frame 1
gotoAndStop(_root.RepeatScenario);
stop();
on_btn.onRelease = function () {
_root.RepeatScenario = true;
gotoAndStop ("true");
};
Symbol 906 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root.RepeatScenario = false;
gotoAndStop ("false");
};
Symbol 907 MovieClip Frame 1
gotoAndStop(_root.Custom_R);
stop();
on_btn.onRelease = function () {
_root.Custom_R = true;
gotoAndStop ("true");
};
Symbol 907 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root.Custom_R = false;
gotoAndStop ("false");
};
Symbol 908 MovieClip Frame 1
gotoAndStop(_root.Custom_LF);
stop();
on_btn.onRelease = function () {
_root.Custom_LF = true;
gotoAndStop ("true");
};
Symbol 908 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root.Custom_LF = false;
gotoAndStop ("false");
};
Symbol 919 MovieClip Frame 1
gotoAndStop(_root.SetCustom_AT1Deploy);
stop();
on_btn.onRelease = function () {
_root.SetCustom_AT1Deploy = true;
gotoAndStop ("true");
};
Symbol 919 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root.SetCustom_AT1Deploy = false;
gotoAndStop ("false");
};
Symbol 920 MovieClip Frame 1
gotoAndStop(_root.SetCustom_AT2Deploy);
stop();
on_btn.onRelease = function () {
_root.SetCustom_AT2Deploy = true;
gotoAndStop ("true");
};
Symbol 920 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root.SetCustom_AT2Deploy = false;
gotoAndStop ("false");
};
Symbol 949 MovieClip Frame 1
function GetOnOff() {
gotoAndStop(_root["CS_Enemy_" + Type]);
}
GetOnOff();
stop();
on_btn.onRelease = function () {
_root["CS_Enemy_" + Type] = "On";
_parent.GetEnemies();
gotoAndStop ("On");
};
Symbol 949 MovieClip Frame 2
stop();
off_btn.onRelease = function () {
_root["CS_Enemy_" + Type] = "Off";
_parent.GetEnemies();
gotoAndStop ("Off");
};
Symbol 1029 MovieClip Frame 1
stop();
lt_btn.onRelease = function () {
gotoAndStop ("lt");
};
tlt_btn.onRelease = function () {
gotoAndStop ("tlt");
};
mt_btn.onRelease = function () {
gotoAndStop ("mt");
};
rmt_btn.onRelease = function () {
gotoAndStop ("rmt");
};
ht_btn.onRelease = function () {
gotoAndStop ("ht");
};
st_btn.onRelease = function () {
gotoAndStop ("st");
};
nt_btn.onRelease = function () {
gotoAndStop ("nt");
};
a_btn.onRelease = function () {
gotoAndStop ("a");
};
function GetEnemies() {
i = 0;
if (_root.CS_Enemy_LightTank == "On") {
i++;
_root["GetEnemy_" + i] = "LightTank";
}
if (_root.CS_Enemy_DoubleLightTank == "On") {
i++;
_root["GetEnemy_" + i] = "DoubleLightTank";
}
if (_root.CS_Enemy_MediumTank == "On") {
i++;
_root["GetEnemy_" + i] = "MediumTank";
}
if (_root.CS_Enemy_ARMediumTank == "On") {
i++;
_root["GetEnemy_" + i] = "ARMediumTank";
}
if (_root.CS_Enemy_HeavyTank == "On") {
i++;
_root["GetEnemy_" + i] = "HeavyTank";
}
if (_root.CS_Enemy_StealthTank == "On") {
i++;
_root["GetEnemy_" + i] = "StealthTank";
}
if (_root.CS_Enemy_NuclearTank == "On") {
i++;
_root["GetEnemy_" + i] = "NuclearTank";
}
if (_root.CS_Enemy_Artillery == "On") {
i++;
_root["GetEnemy_" + i] = "Artillery";
}
_root.Custom_EnemySets = i;
}
on_off_mc.Type = "LightTank";
on_off_mc.GetOnOff();
Symbol 1029 MovieClip Frame 2
on_off_mc.Type = "DoubleLightTank";
on_off_mc.GetOnOff();
Symbol 1029 MovieClip Frame 3
on_off_mc.Type = "MediumTank";
on_off_mc.GetOnOff();
Symbol 1029 MovieClip Frame 4
on_off_mc.Type = "ARMediumTank";
on_off_mc.GetOnOff();
Symbol 1029 MovieClip Frame 5
on_off_mc.Type = "HeavyTank";
on_off_mc.GetOnOff();
Symbol 1029 MovieClip Frame 6
on_off_mc.Type = "StealthTank";
on_off_mc.GetOnOff();
Symbol 1029 MovieClip Frame 7
on_off_mc.Type = "NuclearTank";
on_off_mc.GetOnOff();
Symbol 1029 MovieClip Frame 8
on_off_mc.Type = "Artillery";
on_off_mc.GetOnOff();
Symbol 1058 MovieClip Frame 1
stop();
cs_btn.onRelease = function () {
_root.CS_Enemy_LightTank = "On";
_root.CS_Enemy_DoubleLightTank = "On";
_root.CS_Enemy_MediumTank = "On";
_root.CS_Enemy_ARMediumTank = "On";
_root.CS_Enemy_HeavyTank = "On";
_root.CS_Enemy_StealthTank = "On";
_root.CS_Enemy_NuclearTank = "On";
_root.CS_Enemy_Artillery = "On";
_root.GetEnemy_1 = "LightTank";
_root.GetEnemy_2 = "DoubleLightTank";
_root.GetEnemy_3 = "MediumTank";
_root.GetEnemy_4 = "ARMediumTank";
_root.GetEnemy_5 = "HeavyTank";
_root.GetEnemy_6 = "StealthTank";
_root.GetEnemy_7 = "NuclearTank";
_root.GetEnemy_8 = "Artillery";
_root.Custom_EnemySets = 8;
_root.LightTank_Points = 5;
_root.CustomPlus_LightTank_Points = 5;
_root.LightTank_Speed = 0.65;
_root.CustomPlus_LightTank_Speed = 0.005;
_root.LightTank_Range = 65;
_root.CustomPlus_LightTank_Range = 0.5;
_root.LightTank_Damage = 3;
_root.CustomPlus_LightTank_Damage = 1;
_root.LightTank_Health = 30;
_root.CustomPlus_LightTank_Health = 5;
_root.DoubleLightTank_Points = 8;
_root.CustomPlus_DoubleLightTank_Points = 5;
_root.DoubleLightTank_Speed = 0.65;
_root.CustomPlus_DoubleLightTank_Speed = 0.005;
_root.DoubleLightTank_Range = 65;
_root.CustomPlus_DoubleLightTank_Range = 0.5;
_root.DoubleLightTank_Damage = 8;
_root.CustomPlus_DoubleLightTank_Damage = 1;
_root.DoubleLightTank_Health = 50;
_root.CustomPlus_DoubleLightTank_Health = 5;
_root.MediumTank_Points = 13;
_root.CustomPlus_MediumTank_Points = 5;
_root.MediumTank_Speed = 0.65;
_root.CustomPlus_MediumTank_Speed = 0.005;
_root.MediumTank_Range = 65;
_root.CustomPlus_MediumTank_Range = 0.5;
_root.MediumTank_Damage = 13;
_root.CustomPlus_MediumTank_Damage = 2;
_root.MediumTank_Health = 70;
_root.CustomPlus_MediumTank_Health = 10;
_root.ARMediumTank_Points = 16;
_root.CustomPlus_ARMediumTank_Points = 5;
_root.ARMediumTank_Speed = 0.65;
_root.CustomPlus_ARMediumTank_Speed = 0.005;
_root.ARMediumTank_Range = 65;
_root.CustomPlus_ARMediumTank_Range = 0.5;
_root.ARMediumTank_Damage = 15;
_root.CustomPlus_ARMediumTank_Damage = 2;
_root.ARMediumTank_Health = 90;
_root.CustomPlus_ARMediumTank_Health = 10;
_root.HeavyTank_Points = 20;
_root.CustomPlus_HeavyTank_Points = 5;
_root.HeavyTank_Speed = 0.65;
_root.CustomPlus_HeavyTank_Speed = 0.005;
_root.HeavyTank_Range = 65;
_root.CustomPlus_HeavyTank_Range = 0.5;
_root.HeavyTank_Damage = 24;
_root.CustomPlus_HeavyTank_Damage = 10;
_root.HeavyTank_Health = 120;
_root.CustomPlus_HeavyTank_Health = 20;
_root.StealthTank_Points = 23;
_root.CustomPlus_StealthTank_Points = 5;
_root.StealthTank_Speed = 0.65;
_root.CustomPlus_StealthTank_Speed = 0.005;
_root.StealthTank_Range = 65;
_root.CustomPlus_StealthTank_Range = 0.5;
_root.StealthTank_Damage = 20;
_root.CustomPlus_StealthTank_Damage = 10;
_root.StealthTank_Health = 100;
_root.CustomPlus_StealthTank_Health = 20;
_root.NuclearTank_Points = 26;
_root.CustomPlus_NuclearTank_Points = 5;
_root.NuclearTank_Speed = 0.65;
_root.CustomPlus_NuclearTank_Speed = 0.005;
_root.NuclearTank_Range = 65;
_root.CustomPlus_NuclearTank_Range = 0.5;
_root.NuclearTank_Damage = 80;
_root.CustomPlus_NuclearTank_Damage = 35;
_root.NuclearTank_Health = 140;
_root.CustomPlus_NuclearTank_Health = 25;
_root.Artillery_Points = 30;
_root.CustomPlus_Artillery_Points = 5;
_root.Artillery_Speed = 0.65;
_root.CustomPlus_Artillery_Speed = 0.005;
_root.Artillery_Range = 150;
_root.CustomPlus_Artillery_Range = 0.5;
_root.Artillery_Damage = 125;
_root.CustomPlus_Artillery_Damage = 50;
_root.Artillery_Health = 120;
_root.CustomPlus_Artillery_Health = 25;
_root.RepeatScenario = true;
_root.AllowUpgrades = true;
_root.Custom_LF = false;
_root.Custom_R = false;
_root.SetCustom_EnemyTimer = 0.5;
_root.SetCustom_EnemyLimit = 5;
_root.SetCustom_EnemyLeft = 15;
_root.SetCustom_AT1Deploy = false;
_root.SetCustom_AT2Deploy = false;
_root.SetCustom_ATHealth = 75;
_root.SetCustom_ATDamage = 10;
_root.SetCustom_ATReload = 0.5;
_root.SetCustom_BTHealth = 500;
_root.SetCustom_BTDamage = 10;
_root.SetCustom_BTReload = 0.5;
gotoAndStop ("cs");
};
vh_btn.onRelease = function () {
gotoAndStop ("vh");
};
Symbol 1058 MovieClip Frame 65
stop();
Symbol 1058 MovieClip Frame 110
gotoAndStop ("main");
Symbol 1058 MovieClip Frame 111
stop();
CurrentFrame = "cs";
menu_btn.onRelease = function () {
gotoAndStop ("main");
};
setenemies_btn.onRelease = function () {
gotoAndStop ("tanks");
};
commence_btn.onRelease = function () {
_root.ScenarioFirstMatch = true;
_root.MenuReturnPath = CurrentFrame;
_root.LightTank_Points = _root.LightTank_Points * 1;
_root.CustomPlus_LightTank_Points = _root.CustomPlus_LightTank_Points * 1;
_root.LightTank_Speed = _root.LightTank_Speed * 1;
_root.CustomPlus_LightTank_Speed = _root.CustomPlus_LightTank_Speed * 1;
_root.LightTank_Range = _root.LightTank_Range * 1;
_root.CustomPlus_LightTank_Range = _root.CustomPlus_LightTank_Range * 1;
_root.LightTank_Damage = _root.LightTank_Damage * 1;
_root.CustomPlus_LightTank_Damage = _root.CustomPlus_LightTank_Damage * 1;
_root.LightTank_Health = _root.LightTank_Health * 1;
_root.CustomPlus_LightTank_Health = _root.CustomPlus_LightTank_Health * 1;
_root.DoubleLightTank_Points = _root.DoubleLightTank_Points * 1;
_root.CustomPlus_DoubleLightTank_Points = _root.CustomPlus_DoubleLightTank_Points * 1;
_root.DoubleLightTank_Speed = _root.DoubleLightTank_Speed * 1;
_root.CustomPlus_DoubleLightTank_Speed = _root.CustomPlus_DoubleLightTank_Speed * 1;
_root.DoubleLightTank_Range = _root.DoubleLightTank_Range * 1;
_root.CustomPlus_DoubleLightTank_Range = _root.CustomPlus_DoubleLightTank_Range * 1;
_root.DoubleLightTank_Damage = _root.DoubleLightTank_Damage * 1;
_root.CustomPlus_DoubleLightTank_Damage = _root.CustomPlus_DoubleLightTank_Damage * 1;
_root.DoubleLightTank_Health = _root.DoubleLightTank_Health * 1;
_root.CustomPlus_DoubleLightTank_Health = _root.CustomPlus_DoubleLightTank_Health * 1;
_root.MediumTank_Points = _root.MediumTank_Points * 1;
_root.CustomPlus_MediumTank_Points = _root.CustomPlus_MediumTank_Points * 1;
_root.MediumTank_Speed = _root.MediumTank_Speed * 1;
_root.CustomPlus_MediumTank_Speed = _root.CustomPlus_MediumTank_Speed * 1;
_root.MediumTank_Range = _root.MediumTank_Range * 1;
_root.CustomPlus_MediumTank_Range = _root.CustomPlus_MediumTank_Range * 1;
_root.MediumTank_Damage = _root.MediumTank_Damage * 1;
_root.CustomPlus_MediumTank_Damage2 = _root.CustomPlus_MediumTank_Damage2 * 1;
_root.MediumTank_Health = _root.MediumTank_Health * 1;
_root.CustomPlus_MediumTank_Health = _root.CustomPlus_MediumTank_Health * 1;
_root.ARMediumTank_Points = _root.ARMediumTank_Points * 1;
_root.CustomPlus_ARMediumTank_Points = _root.CustomPlus_ARMediumTank_Points * 1;
_root.ARMediumTank_Speed = _root.ARMediumTank_Speed * 1;
_root.CustomPlus_ARMediumTank_Speed = _root.CustomPlus_ARMediumTank_Speed * 1;
_root.ARMediumTank_Range = _root.ARMediumTank_Range * 1;
_root.CustomPlus_ARMediumTank_Range = _root.CustomPlus_ARMediumTank_Range * 1;
_root.ARMediumTank_Damage = _root.ARMediumTank_Damage * 1;
_root.CustomPlus_ARMediumTank_Damage = _root.CustomPlus_ARMediumTank_Damage * 1;
_root.ARMediumTank_Health = _root.ARMediumTank_Health * 1;
_root.CustomPlus_ARMediumTank_Health = _root.CustomPlus_ARMediumTank_Health * 1;
_root.HeavyTank_Points = _root.HeavyTank_Points * 1;
_root.CustomPlus_HeavyTank_Points = _root.CustomPlus_HeavyTank_Points * 1;
_root.HeavyTank_Speed = _root.HeavyTank_Speed * 1;
_root.CustomPlus_HeavyTank_Speed = _root.CustomPlus_HeavyTank_Speed * 1;
_root.HeavyTank_Range = _root.HeavyTank_Range * 1;
_root.CustomPlus_HeavyTank_Range = _root.CustomPlus_HeavyTank_Range * 1;
_root.HeavyTank_Damage = _root.HeavyTank_Damage * 1;
_root.CustomPlus_HeavyTank_Damage = _root.CustomPlus_HeavyTank_Damage * 1;
_root.HeavyTank_Health = _root.HeavyTank_Health * 1;
_root.CustomPlus_HeavyTank_Health = _root.CustomPlus_HeavyTank_Health * 1;
_root.StealthTank_Points = _root.StealthTank_Points * 1;
_root.CustomPlus_StealthTank_Points = _root.CustomPlus_StealthTank_Points * 1;
_root.StealthTank_Speed = _root.StealthTank_Speed * 1;
_root.CustomPlus_StealthTank_Speed = _root.CustomPlus_StealthTank_Speed * 1;
_root.StealthTank_Range = _root.StealthTank_Range * 1;
_root.CustomPlus_StealthTank_Range = _root.CustomPlus_StealthTank_Range * 1;
_root.StealthTank_Damage = _root.StealthTank_Damage * 1;
_root.CustomPlus_StealthTank_Damage = _root.CustomPlus_StealthTank_Damage * 1;
_root.StealthTank_Health = _root.StealthTank_Health * 1;
_root.CustomPlus_StealthTank_Health = _root.CustomPlus_StealthTank_Health * 1;
_root.NuclearTank_Points = _root.NuclearTank_Points * 1;
_root.CustomPlus_NuclearTank_Points = _root.CustomPlus_NuclearTank_Points * 1;
_root.NuclearTank_Speed = _root.NuclearTank_Speed * 1;
_root.CustomPlus_NuclearTank_Speed = _root.CustomPlus_NuclearTank_Speed * 1;
_root.NuclearTank_Range = _root.NuclearTank_Range * 1;
_root.CustomPlus_NuclearTank_Range = _root.CustomPlus_NuclearTank_Range * 1;
_root.NuclearTank_Damage = _root.NuclearTank_Damage * 1;
_root.CustomPlus_NuclearTank_Damage = _root.CustomPlus_NuclearTank_Damage * 1;
_root.NuclearTank_Health = _root.NuclearTank_Health * 1;
_root.CustomPlus_NuclearTank_Health = _root.CustomPlus_NuclearTank_Health * 1;
_root.Artillery_Points = _root.Artillery_Points * 1;
_root.CustomPlus_Artillery_Points = _root.CustomPlus_Artillery_Points * 1;
_root.Artillery_Speed = _root.Artillery_Speed * 1;
_root.CustomPlus_Artillery_Speed = _root.CustomPlus_Artillery_Speed * 1;
_root.Artillery_Range = _root.Artillery_Range * 1;
_root.CustomPlus_Artillery_Range = _root.CustomPlus_Artillery_Range * 1;
_root.Artillery_Damage = _root.Artillery_Damage * 1;
_root.CustomPlus_Artillery_Damage = _root.CustomPlus_Artillery_Damage * 1;
_root.Artillery_Health = _root.Artillery_Health * 1;
_root.CustomPlus_Artillery_Health = _root.CustomPlus_Artillery_Health * 1;
_root.SetCustom_EnemyTimer = _root.SetCustom_EnemyTimer * 1;
_root.Custom_EnemySets = _root.Custom_EnemySets * 1;
_root.SetCustom_EnemyLeft = _root.SetCustom_EnemyLeft * 1;
_root.SetCustom_EnemyLimit = _root.SetCustom_EnemyLimit * 1;
_root.SetCustom_ATHealth = _root.SetCustom_ATHealth * 1;
_root.SetCustom_ATDamage = _root.SetCustom_ATDamage * 1;
_root.SetCustom_ATReload = _root.SetCustom_ATReload * 1;
_root.SetCustom_BTHealth = _root.SetCustom_BTHealth * 1;
_root.SetCustom_BTDamage = _root.SetCustom_BTDamage * 1;
_root.SetCustom_BTReload = _root.SetCustom_BTReload * 1;
AllowScenario = true;
if (SetCustom_EnemyLimit < 1) {
AllowScenario = false;
}
if (SetCustom_EnemyLeft < 1) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_ATReload * 40) < 0.025) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_ATReload * 40) > 120) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_EnemyTimer * 40) < 0.025) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_EnemyTimer * 40) > 120) {
AllowScenario = false;
}
if (AllowScenario == true) {
_root.Scenario = true;
_root.NextLevelInfo = false;
_root.Custom_EnemyTimer = Math.round(_root.SetCustom_EnemyTimer * 40);
_root.Custom_EnemyLeft = _root.SetCustom_EnemyLeft;
_root.Custom_EnemyLimit = _root.SetCustom_EnemyLimit;
_root.RemoveAllObjects = false;
_root.Level = 0;
_root.Points = 0;
_root.PointsGained = 0;
_root.NewObjDepth = 0;
_root.NewEnemyNo = 0;
_root.NewProjNo = 0;
_root.DeletedProjNo = 0;
_root.ProjectileSpd = 7.5;
_root.ProjFired = 0;
_root.ProjHit = 0;
_root.LaserFenceActive = false;
_root.RadarActive = false;
_root.RecoilAdjustments = false;
_root.ReinforcedArmor = false;
_root.ProjectileDmg = _root.SetCustom_BTDamage;
_root.UserReload = Math.round(_root.SetCustom_BTReload * 40);
_root.UserReloadTimer = Math.round(_root.SetCustom_BTReload * 40);
_root.Armor = 1;
_root.TurretHealth_Total = _root.SetCustom_BTHealth;
_root.TurretHealth_Current = _root.TurretHealth_Total;
_root.AT_ProjectileDmg = _root.SetCustom_ATDamage;
_root.AutoTurret_Reload = Math.round(_root.SetCustom_ATReload * 40);
_root.AutoTurret_ReloadTimer = Math.round(_root.SetCustom_ATReload * 40);
_root.AutoTurret1_Active = false;
_root.AutoTurret1_Deploy = false;
_root.AutoTurret_Health1 = 0;
_root.AutoTurret_HealthSet1 = _root.SetCustom_ATHealth;
_root.AutoTurret2_Active = false;
_root.AutoTurret2_Deploy = false;
_root.AutoTurret_Health2 = 0;
_root.AutoTurret_HealthSet2 = _root.SetCustom_ATHealth;
_root.Cheat_Enable == "Off";
_root.gotoAndStop("game");
}
};
Symbol 1058 MovieClip Frame 112
stop();
CurrentFrame = "tanks";
menu_btn.onRelease = function () {
gotoAndStop ("main");
};
back_btn.onRelease = function () {
gotoAndStop ("cs");
};
commence_btn.onRelease = function () {
_root.ScenarioFirstMatch = true;
_root.MenuReturnPath = CurrentFrame;
_root.LightTank_Points = _root.LightTank_Points * 1;
_root.CustomPlus_LightTank_Points = _root.CustomPlus_LightTank_Points * 1;
_root.LightTank_Speed = _root.LightTank_Speed * 1;
_root.CustomPlus_LightTank_Speed = _root.CustomPlus_LightTank_Speed * 1;
_root.LightTank_Range = _root.LightTank_Range * 1;
_root.CustomPlus_LightTank_Range = _root.CustomPlus_LightTank_Range * 1;
_root.LightTank_Damage = _root.LightTank_Damage * 1;
_root.CustomPlus_LightTank_Damage = _root.CustomPlus_LightTank_Damage * 1;
_root.LightTank_Health = _root.LightTank_Health * 1;
_root.CustomPlus_LightTank_Health = _root.CustomPlus_LightTank_Health * 1;
_root.DoubleLightTank_Points = _root.DoubleLightTank_Points * 1;
_root.CustomPlus_DoubleLightTank_Points = _root.CustomPlus_DoubleLightTank_Points * 1;
_root.DoubleLightTank_Speed = _root.DoubleLightTank_Speed * 1;
_root.CustomPlus_DoubleLightTank_Speed = _root.CustomPlus_DoubleLightTank_Speed * 1;
_root.DoubleLightTank_Range = _root.DoubleLightTank_Range * 1;
_root.CustomPlus_DoubleLightTank_Range = _root.CustomPlus_DoubleLightTank_Range * 1;
_root.DoubleLightTank_Damage = _root.DoubleLightTank_Damage * 1;
_root.CustomPlus_DoubleLightTank_Damage = _root.CustomPlus_DoubleLightTank_Damage * 1;
_root.DoubleLightTank_Health = _root.DoubleLightTank_Health * 1;
_root.CustomPlus_DoubleLightTank_Health = _root.CustomPlus_DoubleLightTank_Health * 1;
_root.MediumTank_Points = _root.MediumTank_Points * 1;
_root.CustomPlus_MediumTank_Points = _root.CustomPlus_MediumTank_Points * 1;
_root.MediumTank_Speed = _root.MediumTank_Speed * 1;
_root.CustomPlus_MediumTank_Speed = _root.CustomPlus_MediumTank_Speed * 1;
_root.MediumTank_Range = _root.MediumTank_Range * 1;
_root.CustomPlus_MediumTank_Range = _root.CustomPlus_MediumTank_Range * 1;
_root.MediumTank_Damage = _root.MediumTank_Damage * 1;
_root.CustomPlus_MediumTank_Damage2 = _root.CustomPlus_MediumTank_Damage2 * 1;
_root.MediumTank_Health = _root.MediumTank_Health * 1;
_root.CustomPlus_MediumTank_Health = _root.CustomPlus_MediumTank_Health * 1;
_root.ARMediumTank_Points = _root.ARMediumTank_Points * 1;
_root.CustomPlus_ARMediumTank_Points = _root.CustomPlus_ARMediumTank_Points * 1;
_root.ARMediumTank_Speed = _root.ARMediumTank_Speed * 1;
_root.CustomPlus_ARMediumTank_Speed = _root.CustomPlus_ARMediumTank_Speed * 1;
_root.ARMediumTank_Range = _root.ARMediumTank_Range * 1;
_root.CustomPlus_ARMediumTank_Range = _root.CustomPlus_ARMediumTank_Range * 1;
_root.ARMediumTank_Damage = _root.ARMediumTank_Damage * 1;
_root.CustomPlus_ARMediumTank_Damage = _root.CustomPlus_ARMediumTank_Damage * 1;
_root.ARMediumTank_Health = _root.ARMediumTank_Health * 1;
_root.CustomPlus_ARMediumTank_Health = _root.CustomPlus_ARMediumTank_Health * 1;
_root.HeavyTank_Points = _root.HeavyTank_Points * 1;
_root.CustomPlus_HeavyTank_Points = _root.CustomPlus_HeavyTank_Points * 1;
_root.HeavyTank_Speed = _root.HeavyTank_Speed * 1;
_root.CustomPlus_HeavyTank_Speed = _root.CustomPlus_HeavyTank_Speed * 1;
_root.HeavyTank_Range = _root.HeavyTank_Range * 1;
_root.CustomPlus_HeavyTank_Range = _root.CustomPlus_HeavyTank_Range * 1;
_root.HeavyTank_Damage = _root.HeavyTank_Damage * 1;
_root.CustomPlus_HeavyTank_Damage = _root.CustomPlus_HeavyTank_Damage * 1;
_root.HeavyTank_Health = _root.HeavyTank_Health * 1;
_root.CustomPlus_HeavyTank_Health = _root.CustomPlus_HeavyTank_Health * 1;
_root.StealthTank_Points = _root.StealthTank_Points * 1;
_root.CustomPlus_StealthTank_Points = _root.CustomPlus_StealthTank_Points * 1;
_root.StealthTank_Speed = _root.StealthTank_Speed * 1;
_root.CustomPlus_StealthTank_Speed = _root.CustomPlus_StealthTank_Speed * 1;
_root.StealthTank_Range = _root.StealthTank_Range * 1;
_root.CustomPlus_StealthTank_Range = _root.CustomPlus_StealthTank_Range * 1;
_root.StealthTank_Damage = _root.StealthTank_Damage * 1;
_root.CustomPlus_StealthTank_Damage = _root.CustomPlus_StealthTank_Damage * 1;
_root.StealthTank_Health = _root.StealthTank_Health * 1;
_root.CustomPlus_StealthTank_Health = _root.CustomPlus_StealthTank_Health * 1;
_root.NuclearTank_Points = _root.NuclearTank_Points * 1;
_root.CustomPlus_NuclearTank_Points = _root.CustomPlus_NuclearTank_Points * 1;
_root.NuclearTank_Speed = _root.NuclearTank_Speed * 1;
_root.CustomPlus_NuclearTank_Speed = _root.CustomPlus_NuclearTank_Speed * 1;
_root.NuclearTank_Range = _root.NuclearTank_Range * 1;
_root.CustomPlus_NuclearTank_Range = _root.CustomPlus_NuclearTank_Range * 1;
_root.NuclearTank_Damage = _root.NuclearTank_Damage * 1;
_root.CustomPlus_NuclearTank_Damage = _root.CustomPlus_NuclearTank_Damage * 1;
_root.NuclearTank_Health = _root.NuclearTank_Health * 1;
_root.CustomPlus_NuclearTank_Health = _root.CustomPlus_NuclearTank_Health * 1;
_root.Artillery_Points = _root.Artillery_Points * 1;
_root.CustomPlus_Artillery_Points = _root.CustomPlus_Artillery_Points * 1;
_root.Artillery_Speed = _root.Artillery_Speed * 1;
_root.CustomPlus_Artillery_Speed = _root.CustomPlus_Artillery_Speed * 1;
_root.Artillery_Range = _root.Artillery_Range * 1;
_root.CustomPlus_Artillery_Range = _root.CustomPlus_Artillery_Range * 1;
_root.Artillery_Damage = _root.Artillery_Damage * 1;
_root.CustomPlus_Artillery_Damage = _root.CustomPlus_Artillery_Damage * 1;
_root.Artillery_Health = _root.Artillery_Health * 1;
_root.CustomPlus_Artillery_Health = _root.CustomPlus_Artillery_Health * 1;
_root.SetCustom_EnemyTimer = _root.SetCustom_EnemyTimer * 1;
_root.Custom_EnemySets = _root.Custom_EnemySets * 1;
_root.SetCustom_EnemyLeft = _root.SetCustom_EnemyLeft * 1;
_root.SetCustom_EnemyLimit = _root.SetCustom_EnemyLimit * 1;
_root.SetCustom_ATHealth = _root.SetCustom_ATHealth * 1;
_root.SetCustom_ATDamage = _root.SetCustom_ATDamage * 1;
_root.SetCustom_ATReload = _root.SetCustom_ATReload * 1;
_root.SetCustom_BTHealth = _root.SetCustom_BTHealth * 1;
_root.SetCustom_BTDamage = _root.SetCustom_BTDamage * 1;
_root.SetCustom_BTReload = _root.SetCustom_BTReload * 1;
AllowScenario = true;
if (SetCustom_EnemyLimit < 1) {
AllowScenario = false;
}
if (SetCustom_EnemyLeft < 1) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_ATReload * 40) < 0.025) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_ATReload * 40) > 120) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_EnemyTimer * 40) < 0.025) {
AllowScenario = false;
}
if (Math.round(_root.SetCustom_EnemyTimer * 40) > 120) {
AllowScenario = false;
}
if (AllowScenario == true) {
_root.Scenario = true;
_root.NextLevelInfo = false;
_root.Custom_EnemyTimer = Math.round(_root.SetCustom_EnemyTimer * 40);
_root.Custom_EnemyLeft = _root.SetCustom_EnemyLeft;
_root.Custom_EnemyLimit = _root.SetCustom_EnemyLimit;
_root.RemoveAllObjects = false;
_root.Level = 0;
_root.Points = 0;
_root.PointsGained = 0;
_root.NewObjDepth = 0;
_root.NewEnemyNo = 0;
_root.NewProjNo = 0;
_root.DeletedProjNo = 0;
_root.ProjectileSpd = 7.5;
_root.ProjFired = 0;
_root.ProjHit = 0;
_root.LaserFenceActive = false;
_root.RadarActive = false;
_root.RecoilAdjustments = false;
_root.ReinforcedArmor = false;
_root.ProjectileDmg = _root.SetCustom_BTDamage;
_root.UserReload = Math.round(_root.SetCustom_BTReload * 40);
_root.UserReloadTimer = Math.round(_root.SetCustom_BTReload * 40);
_root.Armor = 1;
_root.TurretHealth_Total = _root.SetCustom_BTHealth;
_root.TurretHealth_Current = _root.TurretHealth_Total;
_root.AT_ProjectileDmg = _root.SetCustom_ATDamage;
_root.AutoTurret_Reload = Math.round(_root.SetCustom_ATReload * 40);
_root.AutoTurret_ReloadTimer = Math.round(_root.SetCustom_ATReload * 40);
_root.AutoTurret1_Active = false;
_root.AutoTurret1_Deploy = false;
_root.AutoTurret_Health1 = 0;
_root.AutoTurret_HealthSet1 = _root.SetCustom_ATHealth;
_root.AutoTurret2_Active = false;
_root.AutoTurret2_Deploy = false;
_root.AutoTurret_Health2 = 0;
_root.AutoTurret_HealthSet2 = _root.SetCustom_ATHealth;
_root.Cheat_Enable == "Off";
_root.gotoAndStop("game");
}
};
Symbol 1058 MovieClip Frame 113
stop();
menu_btn.onRelease = function () {
gotoAndStop ("main");
};
hs_btn.onRelease = function () {
getURL ("http://rankz.armorbot.com/CannonChaos/", "_blank");
};
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MTgwMGolZSVhJW4lcw==";
rankz_t10_send.flashkey = "a1dTcnR6TUo=";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_root.MenuActions["name_" + (i + 1)] = tempv[0];
_root.MenuActions["score_" + (i + 1)] = Number(tempv[1]);
i++;
}
} else {
trace("ERROR");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Symbol 1060 MovieClip Frame 1
stop();
music = true;
Symbol 1060 MovieClip Frame 2
stop();
music = false;
Symbol 1090 MovieClip Frame 1
stop();
Symbol 1090 MovieClip Frame 2
stop();
Symbol 1102 MovieClip Frame 10
stop();
Symbol 1110 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 20
stop();
_parent.gotoAndStop("Invisible");
Symbol 1111 MovieClip Frame 1
stop();
Symbol 1111 MovieClip Frame 2
stop();
Symbol 1111 MovieClip Frame 11
gotoAndStop (2);
Symbol 1122 MovieClip Frame 1
stop();
Symbol 1132 MovieClip Frame 1
stop();
Symbol 1132 MovieClip Frame 2
stop();
Symbol 1138 MovieClip Frame 1
stop();
Symbol 1207 MovieClip Frame 1
stop();
Symbol 1214 MovieClip Frame 1
stop();
if (_root.Cheat_Enable == "On") {
gotoAndStop ("cheater");
}
if (_root.Cheat_Enable == "Off") {
if (_root.Points <= _root.score_10) {
placement = "over";
}
if (_root.Points > _root.score_10) {
placement = "tenth";
}
if (_root.Points > _root.score_9) {
placement = "nineth";
}
if (_root.Points > _root.score_8) {
placement = "eighth";
}
if (_root.Points > _root.score_7) {
placement = "seventh";
}
if (_root.Points > _root.score_6) {
placement = "sixth";
}
if (_root.Points > _root.score_5) {
placement = "fifth";
}
if (_root.Points > _root.score_4) {
placement = "fourth";
}
if (_root.Points > _root.score_3) {
placement = "third";
}
if (_root.Points > _root.score_2) {
placement = "second";
}
if (_root.Points > _root.score_1) {
placement = "first";
}
gotoAndStop ("submit");
}
Symbol 1214 MovieClip Frame 2
stop();
Symbol 1214 MovieClip Frame 3
placed_mc.gotoAndStop(placement);
HighscoreSend_btn.onRelease = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
if (placement == "first") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.name_7;
_root.score_8 = _root.score_7;
_root.name_7 = _root.name_6;
_root.score_7 = _root.score_6;
_root.name_6 = _root.name_5;
_root.score_6 = _root.score_5;
_root.name_5 = _root.name_4;
_root.score_5 = _root.score_4;
_root.name_4 = _root.name_3;
_root.score_4 = _root.score_3;
_root.name_3 = _root.name_2;
_root.score_3 = _root.score_2;
_root.name_2 = _root.name_1;
_root.score_2 = _root.score_1;
_root.name_1 = _root.HS_Name;
_root.score_1 = _root.Points;
}
if (placement == "second") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.name_7;
_root.score_8 = _root.score_7;
_root.name_7 = _root.name_6;
_root.score_7 = _root.score_6;
_root.name_6 = _root.name_5;
_root.score_6 = _root.score_5;
_root.name_5 = _root.name_4;
_root.score_5 = _root.score_4;
_root.name_4 = _root.name_3;
_root.score_4 = _root.score_3;
_root.name_3 = _root.name_2;
_root.score_3 = _root.score_2;
_root.name_2 = _root.HS_Name;
_root.score_2 = _root.Points;
}
if (placement == "third") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.name_7;
_root.score_8 = _root.score_7;
_root.name_7 = _root.name_6;
_root.score_7 = _root.score_6;
_root.name_6 = _root.name_5;
_root.score_6 = _root.score_5;
_root.name_5 = _root.name_4;
_root.score_5 = _root.score_4;
_root.name_4 = _root.name_3;
_root.score_4 = _root.score_3;
_root.name_3 = _root.HS_Name;
_root.score_3 = _root.Points;
}
if (placement == "fourth") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.name_7;
_root.score_8 = _root.score_7;
_root.name_7 = _root.name_6;
_root.score_7 = _root.score_6;
_root.name_6 = _root.name_5;
_root.score_6 = _root.score_5;
_root.name_5 = _root.name_4;
_root.score_5 = _root.score_4;
_root.name_4 = _root.HS_Name;
_root.score_4 = _root.Points;
}
if (placement == "fifth") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.name_7;
_root.score_8 = _root.score_7;
_root.name_7 = _root.name_6;
_root.score_7 = _root.score_6;
_root.name_6 = _root.name_5;
_root.score_6 = _root.score_5;
_root.name_5 = _root.HS_Name;
_root.score_5 = _root.Points;
}
if (placement == "sixth") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.name_7;
_root.score_8 = _root.score_7;
_root.name_7 = _root.name_6;
_root.score_7 = _root.score_6;
_root.name_6 = _root.HS_Name;
_root.score_6 = _root.Points;
}
if (placement == "seventh") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.name_7;
_root.score_8 = _root.score_7;
_root.name_7 = _root.HS_Name;
_root.score_7 = _root.Points;
}
if (placement == "eighth") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.name_8;
_root.score_9 = _root.score_8;
_root.name_8 = _root.HS_Name;
_root.score_8 = _root.Points;
}
if (placement == "nineth") {
_root.name_10 = _root.name_9;
_root.score_10 = _root.score_9;
_root.name_9 = _root.HS_Name;
_root.score_9 = _root.Points;
}
if (placement == "tenth") {
_root.name_10 = _root.HS_Name;
_root.score_10 = _root.Points;
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.HS_Name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.Points;
__rankz_send__("MTgwMGolZSVhJW4lcw==", "a1dTcnR6TUo=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
_parent.gotoAndStop("submitted");
};
Symbol 1239 MovieClip Frame 1
stop();
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MTgwMGolZSVhJW4lcw==";
rankz_t10_send.flashkey = "a1dTcnR6TUo=";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_root["name_" + (i + 1)] = tempv[0];
_root["score_" + (i + 1)] = Number(tempv[1]);
i++;
}
gotoAndStop ("loaded");
} else {
trace("ERROR");
gotoAndStop ("error");
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
menu_btn.onRelease = function () {
_root.gotoAndStop("menu");
};