Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var _local5;
var _local6;
var _local2;
var _local8;
var _local11;
var _local10;
var _local7;
var _local3;
var _local12;
var _local14;
_local3 = "__mochibot__";
_local12 = "mochibot.com";
_local6 = (_global ? _global : (_level0._root));
if (_local6[_local3 + swfid]) {
return(_local6[_local3 + swfid]);
}
_local2 = System.security;
_local5 = mc._root.getSWFVersion;
_local8 = (_local5 ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!_local2) {
_local2 = {};
}
_local11 = _local2.sandboxType;
if (_local11 == "localWithFile") {
return(null);
}
_local5 = _local2.allowDomain;
if (_local5) {
_local2.allowDomain(_local12);
}
_local5 = _local2.allowInsecureDomain;
if (_local5) {
_local2.allowInsecureDomain(_local12);
}
_local14 = ((_local8 == 5) ? (getVersion()) : (System.capabilities.version));
_local10 = (((((((((((("http://" + _local12) + "/my/core.swf?mv=8&fv=") + _local8) + "&v=") + escape(_local14)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (_local11 ? ("&sb=" + _local11) : "")) + (trk ? "&t=1" : "");
lv = ((_local8 > 6) ? (mc.getNextHighestDepth()) : ((_local6[_local3 + "level"] ? (_local6[_local3 + "level"] + 1) : (lv))));
_local6[_local3 + "level"] = lv;
if (_local8 == 5) {
_local7 = "_level" + lv;
if (!evalalert(_local7)) {
loadMovieNum (_local10, lv);
}
} else {
_local7 = mc.createEmptyMovieClip(_local3 + swfid, lv);
_local7.loadMovie(_local10);
}
return(_local7);
}
__com_mochibot__("4baf3f4d", this, 10301, true);
stop();
Instance of Symbol 1143 MovieClip "logo" in Frame 1
on (release) {
getURL ("http://playtowerdefensegames.com", _blank);
}
Frame 3
var ButDown = undefined;
var Score = 0;
var tempLM = undefined;
var tempLM2 = undefined;
Lokmen._visible = false;
var my_so = SharedObject.getLocal("shared", "/");
var VictoryLevel = my_so.data.VictoryLevel;
if (VictoryLevel == undefined) {
VictoryLevel = 0;
}
var tabRec = Array(10);
var PlayerName = "New player";
my_so = SharedObject.getLocal("shared", "/");
PlayerName = my_so.data.PlayerName;
if (PlayerName == undefined) {
PlayerName = "New player";
}
var levelgame = 1;
var kof = 1;
var loadFrame = 5;
stop();
Frame 4
sound.ResetEffects();
if (VictoryLevel < 0) {
VictoryLevel = 0;
my_so = SharedObject.getLocal("shared", "/");
my_so.data.VictoryLevel = VictoryLevel;
}
var Pause = false;
Help.removeMovieClip();
Appearance.removeMovieClip();
var SortWayList = Array(0);
var i = WayList.length;
while (i > 0) {
WayList[i - 1].removeMovieClip();
i--;
}
var i = \u0421rockList.length;
while (i > 0) {
\u0421rockList[i - 1].removeMovieClip();
i--;
}
var i = TowerList.length;
while (i > 0) {
TowerList[i - 1].removeMovieClip();
i--;
}
Lokmen._visible = true;
var ShowText = Array("Level 1");
var WayList = Array(0);
var \u0421rockList = Array(0);
var TowerList = Array(0);
var Gold = 20;
var passed = 20;
var MaxTower = 4;
var ButDown = undefined;
var Demag = 0;
var Score = 0;
var MaxUBow = 2;
var MaxUGun = 2;
var MaxUES = 2;
var MaxUTree = 2;
var MaxUMag = 2;
var CountEffect = 0;
var MaxCountEffect = 15;
var MaxDamage = 500;
var MaxDistance = 200;
var MaxSpeed = 110;
var updateBuildingOnion = 0;
var GoldUpdateBow = Array(9);
var GoldBow1 = Array(9);
var GoldBow2 = Array(9);
var GoldBow3 = Array(9);
var UronBow1 = Array(9);
var UronBow2 = Array(9);
var UronBow3 = Array(9);
var RadBow1 = 60;
var RadBow2 = 70;
var RadBow3 = 80;
var SpeedBow1 = 30;
var SpeedBow2 = 45;
var SpeedBow3 = 10;
var DescriptionBow1 = "ARCHER";
var DescriptionBow2 = "ARCHER, SHOOTS 3 ARROWS";
var DescriptionBow3 = "ARCHER, VERY FAST SHOOTS";
var DescriptionBowUP = "INCREASE DAMAGE TO ARCHERS";
var updateBuildingGun = 0;
var GoldUpdateGun = Array(9);
var GoldGun1 = Array(9);
var GoldGun2 = Array(9);
var GoldGun3 = Array(9);
var UronGun1 = Array(9);
var UronGun2 = Array(9);
var UronGun3 = Array(9);
var RadGun1 = 120;
var RadGun2 = 70;
var RadGun3 = 200;
var SpeedGun1 = 60;
var SpeedGun2 = 30;
var SpeedGun3 = 80;
var DescriptionGun1 = "ARMOURER";
var DescriptionGun2 = "FIREBAT, SET FIRE TO THE ENEMY";
var DescriptionGun3 = "SNIPER, THROUGH ENEMY";
var DescriptionGunUP = "ARMOURER INCREASE DAMAGE";
var updateBuildingES = 0;
var GoldUpdateES = Array(9);
var GoldES1 = Array(9);
var GoldES2 = Array(9);
var GoldES3 = Array(9);
var UronES1 = Array(9);
var UronES2 = Array(9);
var UronES3 = Array(9);
var RadES1 = 150;
var RadES2 = 150;
var RadES3 = 150;
var SpeedES1 = 50;
var SpeedES2 = 100;
var SpeedES3 = 50;
var DescriptionES1 = "CATAPULT, MASSIVE DAMAGE";
var DescriptionES2 = "FIRE CATAPULT, MASSIVE DAMAGE, SET FIRE";
var DescriptionES3 = "CATAPULT, WITH A LARGE AREA OF DESTRUCTION";
var DescriptionESUP = "INCREASE DAMAGE TO CATAPULT";
var updateBuildingMag = 0;
var GoldUpdateMag = Array(9);
var GoldMag1 = Array(9);
var GoldMag2 = Array(9);
var GoldMag3 = Array(9);
var UronMag1 = Array(9);
var UronMag2 = Array(9);
var UronMag3 = Array(9);
var RadMag1 = 80;
var RadMag2 = 80;
var RadMag3 = 80;
var SpeedMag1 = 30;
var SpeedMag2 = 60;
var SpeedMag3 = 30;
var DescriptionMag1 = "MAGE, SLOWS DOWN ALL AROUND";
var DescriptionMag2 = "MAGE STOPS ONE TARGET";
var DescriptionMag3 = "MAGE, TEMPORARILY REDUCES LIFE BY 30% ALL AROUND";
var DescriptionMagUP = "INCREASE DAMAGE TO MAGE";
var updateBuildingTree = 0;
var GoldUpdateTree = Array(9);
var UpTower = Array(9);
var DescriptionTreeUP = "INCREASE THE MAXIMUM NUMBER OF DEFENDERS";
var DescriptionTreeSell = "SELL DEFENDER";
GoldUpdateBow[0] = 21;
var i = 1;
while (i < 9) {
GoldUpdateBow[i] = GoldUpdateBow[i - 1] + 10;
i++;
}
GoldBow1[0] = 10;
var i = 1;
while (i < 9) {
GoldBow1[i] = GoldBow1[i - 1] + 5;
i++;
}
GoldBow2[0] = 20;
var i = 1;
while (i < 9) {
GoldBow2[i] = GoldBow2[i - 1] + 10;
i++;
}
GoldBow3[0] = 40;
var i = 1;
while (i < 9) {
GoldBow3[i] = GoldBow3[i - 1] + 20;
i++;
}
UronBow1[0] = 50;
var i = 1;
while (i < 9) {
UronBow1[i] = UronBow1[i - 1] + 25;
i++;
}
UronBow2[0] = 30;
var i = 1;
while (i < 9) {
UronBow2[i] = UronBow2[i - 1] + 15;
i++;
}
UronBow3[0] = 30;
var i = 1;
while (i < 9) {
UronBow3[i] = UronBow3[i - 1] + 15;
i++;
}
GoldUpdateGun[0] = 21;
var i = 1;
while (i < 9) {
GoldUpdateGun[i] = GoldUpdateGun[i - 1] + 10;
i++;
}
GoldGun1[0] = 10;
var i = 1;
while (i < 9) {
GoldGun1[i] = GoldGun1[i - 1] + 5;
i++;
}
GoldGun2[0] = 20;
var i = 1;
while (i < 9) {
GoldGun2[i] = GoldGun2[i - 1] + 10;
i++;
}
GoldGun3[0] = 40;
var i = 1;
while (i < 9) {
GoldGun3[i] = GoldGun3[i - 1] + 20;
i++;
}
UronGun1[0] = 50;
var i = 1;
while (i < 9) {
UronGun1[i] = UronGun1[i - 1] + 25;
i++;
}
UronGun2[0] = 20;
var i = 1;
while (i < 9) {
UronGun2[i] = UronGun2[i - 1] + 10;
i++;
}
UronGun3[0] = 100;
var i = 1;
while (i < 9) {
UronGun3[i] = UronGun3[i - 1] + 50;
i++;
}
GoldUpdateES[0] = 41;
var i = 1;
while (i < 9) {
GoldUpdateES[i] = GoldUpdateES[i - 1] + 20;
i++;
}
GoldES1[0] = 20;
var i = 1;
while (i < 9) {
GoldES1[i] = GoldES1[i - 1] + 10;
i++;
}
GoldES2[0] = 40;
var i = 1;
while (i < 9) {
GoldES2[i] = GoldES2[i - 1] + 20;
i++;
}
GoldES3[0] = 80;
var i = 1;
while (i < 9) {
GoldES3[i] = GoldES3[i - 1] + 40;
i++;
}
UronES1[0] = 40;
var i = 1;
while (i < 9) {
UronES1[i] = UronES1[i - 1] + 20;
i++;
}
UronES2[0] = 30;
var i = 1;
while (i < 9) {
UronES2[i] = UronES2[i - 1] + 15;
i++;
}
UronES3[0] = 60;
var i = 1;
while (i < 9) {
UronES3[i] = UronES3[i - 1] + 30;
i++;
}
GoldUpdateTree[0] = 41;
var i = 1;
while (i < 9) {
GoldUpdateTree[i] = GoldUpdateTree[i - 1] + 20;
i++;
}
UpTower[0] = 2;
var i = 1;
while (i < 9) {
UpTower[i] = 2;
i++;
}
GoldUpdateMag[0] = 21;
var i = 1;
while (i < 9) {
GoldUpdateMag[i] = GoldUpdateMag[i - 1] + 10;
i++;
}
GoldMag1[0] = 20;
var i = 1;
while (i < 9) {
GoldMag1[i] = GoldMag1[i - 1] + 10;
i++;
}
GoldMag2[0] = 20;
var i = 1;
while (i < 9) {
GoldMag2[i] = GoldMag2[i - 1] + 10;
i++;
}
GoldMag3[0] = 20;
var i = 1;
while (i < 9) {
GoldMag3[i] = GoldMag3[i - 1] + 10;
i++;
}
UronMag1[0] = 10;
var i = 1;
while (i < 9) {
UronMag1[i] = UronMag1[i - 1] + 5;
i++;
}
UronMag2[0] = 20;
var i = 1;
while (i < 9) {
UronMag2[i] = UronMag2[i - 1] + 10;
i++;
}
UronMag3[0] = 10;
var i = 1;
while (i < 9) {
UronMag3[i] = UronMag3[i - 1] + 5;
i++;
}
gotoAndPlay(loadFrame);
Frame 5
var MassDead = false;
_root.Start.AddAttack("Cat1", 1, 600);
_root.Start.AddAttack("Cat1", 4, 100);
_root.Start.AddAttack("GOLD", 5, 1);
_root.Start.AddAttack("Cat1", 1, 600);
_root.Start.AddAttack("Cat1", 9, 50);
_root.Start.AddAttack("Bat1", 1, 600);
_root.Start.AddAttack("Cat1", 4, 50);
_root.Start.AddAttack("Bat1", 1, 75);
_root.Start.AddAttack("Cat1", 4, 50);
_root.Start.AddAttack("GOLD", 8, 1);
_root.Start.AddAttack("Bat1", 1, 600);
_root.Start.AddAttack("Bat1", 4, 50);
_root.Start.AddAttack("Cat1", 5, 40);
_root.Start.AddAttack("Bat1", 5, 50);
_root.Start.AddAttack("Cat1", 5, 40);
_root.Start.AddAttack("Bat1", 1, 600);
_root.Start.AddAttack("Bat1", 19, 50);
_root.Start.AddAttack("Scorpion1", 1, 600);
_root.Start.AddAttack("Bat1", 4, 40);
_root.Start.AddAttack("Scorpion1", 1, 50);
_root.Start.AddAttack("Bat1", 4, 40);
_root.Start.AddAttack("Scorpion1", 1, 600);
_root.Start.AddAttack("Scorpion1", 4, 50);
_root.Start.AddAttack("Bat1", 5, 50);
_root.Start.AddAttack("Scorpion1", 5, 50);
_root.Start.AddAttack("Bat1", 5, 50);
_root.Start.AddAttack("Scorpion1", 1, 600);
_root.Start.AddAttack("Scorpion1", 4, 35);
_root.Start.AddAttack("Bat1", 5, 35);
_root.Start.AddAttack("Cat1", 5, 35);
_root.Start.AddAttack("Bat1", 10, 35);
_root.Start.AddAttack("Cat1", 10, 35);
_root.Start.AddAttack("Scorpion1", 10, 35);
stop();
Frame 6
sound.ResetEffects();
if (VictoryLevel < 1) {
VictoryLevel = 1;
my_so = SharedObject.getLocal("shared", "/");
my_so.data.VictoryLevel = VictoryLevel;
}
var Pause = false;
var SortWayList = Array(0);
Help.removeMovieClip();
Appearance.removeMovieClip();
var i = WayList.length;
while (i > 0) {
WayList[i - 1].removeMovieClip();
i--;
}
var i = \u0421rockList.length;
while (i > 0) {
\u0421rockList[i - 1].removeMovieClip();
i--;
}
var i = TowerList.length;
while (i > 0) {
TowerList[i - 1].removeMovieClip();
i--;
}
Lokmen._visible = true;
var ShowText = Array("Level 2");
var WayList = Array(0);
var \u0421rockList = Array(0);
var TowerList = Array(0);
var Gold = 30;
var passed = 20;
var MaxTower = 4;
var ButDown = undefined;
var Demag = 0;
var Score = 0;
var MaxUBow = 3;
var MaxUGun = 3;
var MaxUES = 2;
var MaxUTree = 3;
var MaxUMag = 2;
var CountEffect = 0;
var updateBuildingOnion = 0;
var updateBuildingGun = 0;
var updateBuildingES = 0;
var updateBuildingMag = 0;
var updateBuildingTree = 0;
Frame 7
var MassDead = false;
_root.Start.AddAttack("Cat1", 1, 600);
_root.Start.AddAttack("Cat1", 4, 100);
_root.Start.AddAttack("GOLD", 10, 1);
_root.Start.AddAttack("Bat1", 1, 600);
_root.Start.AddAttack("Bat1", 4, 100);
_root.Start.AddAttack("Cat1", 5, 50);
_root.Start.AddAttack("GOLD", 15, 1);
_root.Start.AddAttack("Cat1", 1, 600);
_root.Start.AddAttack("Cat1", 14, 50);
_root.Start.AddAttack("GOLD", 15, 1);
_root.Start.AddAttack("Bat1", 1, 600);
_root.Start.AddAttack("Bat1", 9, 50);
_root.Start.AddAttack("Cat1", 10, 50);
_root.Start.AddAttack("GOLD", 15, 1);
_root.Start.AddAttack("Scorpion1", 1, 600);
_root.Start.AddAttack("Scorpion1", 4, 100);
_root.Start.AddAttack("Bat1", 5, 50);
_root.Start.AddAttack("Scorpion1", 1, 600);
_root.Start.AddAttack("Scorpion1", 9, 50);
_root.Start.AddAttack("Cat2", 1, 600);
_root.Start.AddAttack("Cat2", 4, 100);
_root.Start.AddAttack("Scorpion1", 5, 50);
_root.Start.AddAttack("Scorpion1", 1, 600);
_root.Start.AddAttack("Scorpion1", 5, 50);
_root.Start.AddAttack("Cat2", 10, 50);
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Bat2", 5, 50);
_root.Start.AddAttack("Cat2", 1, 50);
_root.Start.AddAttack("Cat2", 14, 50);
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Bat2", 19, 50);
stop();
Frame 8
sound.ResetEffects();
if (VictoryLevel < 2) {
VictoryLevel = 2;
my_so = SharedObject.getLocal("shared", "/");
my_so.data.VictoryLevel = VictoryLevel;
}
var Pause = false;
var SortWayList = Array(0);
Help.removeMovieClip();
Appearance.removeMovieClip();
var i = WayList.length;
while (i > 0) {
WayList[i - 1].removeMovieClip();
i--;
}
var i = \u0421rockList.length;
while (i > 0) {
\u0421rockList[i - 1].removeMovieClip();
i--;
}
var i = TowerList.length;
while (i > 0) {
TowerList[i - 1].removeMovieClip();
i--;
}
Lokmen._visible = true;
var ShowText = Array("Level 3");
var WayList = Array(0);
var \u0421rockList = Array(0);
var TowerList = Array(0);
var Gold = 100;
var passed = 20;
var MaxTower = 8;
var ButDown = undefined;
var Demag = 0;
var Score = 0;
var MaxUBow = 4;
var MaxUGun = 4;
var MaxUES = 4;
var MaxUTree = 4;
var MaxUMag = 4;
var CountEffect = 0;
var updateBuildingOnion = 2;
var updateBuildingGun = 2;
var updateBuildingES = 2;
var updateBuildingMag = 2;
var updateBuildingTree = 2;
Frame 9
var MassDead = false;
_root.Start.AddAttack("Cat2", 1, 600);
_root.Start.AddAttack("Cat2", 9, 75);
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Bat2", 4, 75);
_root.Start.AddAttack("Cat2", 5, 50);
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Bat2", 9, 50);
_root.Start.AddAttack("GOLD", 30, 1);
_root.Start.AddAttack("Scorpion2", 1, 600);
_root.Start.AddAttack("Scorpion2", 4, 50);
_root.Start.AddAttack("Bat2", 5, 50);
_root.Start.AddAttack("Cat2", 5, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Scorpion2", 1, 600);
_root.Start.AddAttack("Scorpion2", 9, 50);
_root.Start.AddAttack("Cat2", 10, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Dragon1", 1, 600);
_root.Start.AddAttack("Dragon1", 2, 100);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Dragon1", 1, 600);
_root.Start.AddAttack("Dragon1", 4, 75);
_root.Start.AddAttack("Scorpion2", 5, 50);
_root.Start.AddAttack("Bat2", 10, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("BoneDragon1", 1, 600);
_root.Start.AddAttack("Dragon1", 1, 100);
_root.Start.AddAttack("BoneDragon1", 1, 75);
_root.Start.AddAttack("Dragon1", 1, 75);
_root.Start.AddAttack("BoneDragon1", 1, 50);
_root.Start.AddAttack("Dragon1", 1, 50);
_root.Start.AddAttack("Dragon1", 1, 600);
_root.Start.AddAttack("Dragon1", 9, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("BoneDragon1", 1, 600);
_root.Start.AddAttack("BoneDragon1", 9, 50);
_root.Start.AddAttack("GOLD", 100, 1);
_root.Start.AddAttack("BoneDragon1", 1, 600);
_root.Start.AddAttack("Dragon1", 1, 50);
_root.Start.AddAttack("Scorpion2", 1, 50);
_root.Start.AddAttack("Bat2", 1, 50);
_root.Start.AddAttack("Cat2", 1, 50);
_root.Start.AddAttack("BoneDragon1", 2, 50);
_root.Start.AddAttack("Dragon1", 2, 50);
_root.Start.AddAttack("Scorpion2", 2, 50);
_root.Start.AddAttack("Bat2", 2, 50);
_root.Start.AddAttack("Cat2", 2, 50);
_root.Start.AddAttack("BoneDragon1", 3, 50);
_root.Start.AddAttack("Dragon1", 3, 50);
_root.Start.AddAttack("Scorpion2", 3, 50);
_root.Start.AddAttack("Bat2", 3, 50);
_root.Start.AddAttack("Cat2", 3, 50);
_root.Start.AddAttack("BoneDragon1", 4, 50);
_root.Start.AddAttack("Dragon1", 4, 50);
_root.Start.AddAttack("Scorpion2", 4, 50);
_root.Start.AddAttack("Bat2", 4, 50);
_root.Start.AddAttack("Cat2", 4, 50);
stop();
Frame 10
sound.ResetEffects();
if (VictoryLevel < 3) {
VictoryLevel = 3;
my_so = SharedObject.getLocal("shared", "/");
my_so.data.VictoryLevel = VictoryLevel;
}
var Pause = false;
var SortWayList = Array(0);
Help.removeMovieClip();
Appearance.removeMovieClip();
var i = WayList.length;
while (i > 0) {
WayList[i - 1].removeMovieClip();
i--;
}
var i = \u0421rockList.length;
while (i > 0) {
\u0421rockList[i - 1].removeMovieClip();
i--;
}
var i = TowerList.length;
while (i > 0) {
TowerList[i - 1].removeMovieClip();
i--;
}
Lokmen._visible = true;
var ShowText = Array("Level 4");
var WayList = Array(0);
var \u0421rockList = Array(0);
var TowerList = Array(0);
var Gold = 100;
var passed = 20;
var MaxTower = 10;
var ButDown = undefined;
var Demag = 0;
var Score = 0;
var MaxUBow = 6;
var MaxUGun = 6;
var MaxUES = 5;
var MaxUTree = 5;
var MaxUMag = 5;
var CountEffect = 0;
var updateBuildingOnion = 3;
var updateBuildingGun = 3;
var updateBuildingES = 3;
var updateBuildingMag = 3;
var updateBuildingTree = 3;
Frame 11
var MassDead = false;
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Bat2", 9, 100);
_root.Start.AddAttack("GOLD", 15, 1);
_root.Start.AddAttack("Scorpion2", 1, 600);
_root.Start.AddAttack("Scorpion2", 9, 100);
_root.Start.AddAttack("GOLD", 20, 1);
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Bat2", 4, 50);
_root.Start.AddAttack("Scorpion2", 5, 50);
_root.Start.AddAttack("Bat2", 5, 50);
_root.Start.AddAttack("Scorpion2", 5, 50);
_root.Start.AddAttack("GOLD", 25, 1);
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Cat2", 3, 50);
_root.Start.AddAttack("Bat2", 1, 50);
_root.Start.AddAttack("Cat2", 3, 50);
_root.Start.AddAttack("Bat2", 1, 50);
_root.Start.AddAttack("Cat2", 3, 50);
_root.Start.AddAttack("Bat2", 1, 50);
_root.Start.AddAttack("Cat2", 3, 50);
_root.Start.AddAttack("GOLD", 30, 1);
_root.Start.AddAttack("Cat3", 1, 600);
_root.Start.AddAttack("Cat2", 5, 50);
_root.Start.AddAttack("Cat3", 1, 100);
_root.Start.AddAttack("Cat2", 5, 50);
_root.Start.AddAttack("GOLD", 35, 1);
_root.Start.AddAttack("Cat3", 1, 600);
_root.Start.AddAttack("Cat3", 4, 100);
_root.Start.AddAttack("GOLD", 40, 1);
_root.Start.AddAttack("Bat3", 1, 600);
_root.Start.AddAttack("Bat3", 4, 100);
_root.Start.AddAttack("GOLD", 45, 1);
_root.Start.AddAttack("Cat3", 1, 600);
_root.Start.AddAttack("Cat3", 4, 50);
_root.Start.AddAttack("Bat3", 5, 50);
_root.Start.AddAttack("Cat3", 5, 50);
_root.Start.AddAttack("Bat3", 5, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Scorpion3", 1, 600);
_root.Start.AddAttack("Scorpion3", 4, 100);
_root.Start.AddAttack("GOLD", 55, 1);
_root.Start.AddAttack("Bat3", 1, 600);
_root.Start.AddAttack("Bat3", 4, 50);
_root.Start.AddAttack("Scorpion3", 5, 50);
_root.Start.AddAttack("Cat3", 5, 50);
_root.Start.AddAttack("GOLD", 60, 1);
_root.Start.AddAttack("Dragon3", 1, 600);
_root.Start.AddAttack("Dragon3", 3, 100);
_root.Start.AddAttack("GOLD", 70, 1);
_root.Start.AddAttack("Scorpion3", 1, 600);
_root.Start.AddAttack("Scorpion3", 4, 50);
_root.Start.AddAttack("Bat3", 5, 50);
_root.Start.AddAttack("Dragon3", 5, 50);
_root.Start.AddAttack("Cat3", 5, 50);
stop();
Frame 12
sound.ResetEffects();
if (VictoryLevel < 4) {
VictoryLevel = 4;
my_so = SharedObject.getLocal("shared", "/");
my_so.data.VictoryLevel = VictoryLevel;
}
var Pause = false;
var SortWayList = Array(0);
Help.removeMovieClip();
Appearance.removeMovieClip();
var i = WayList.length;
while (i > 0) {
WayList[i - 1].removeMovieClip();
i--;
}
var i = \u0421rockList.length;
while (i > 0) {
\u0421rockList[i - 1].removeMovieClip();
i--;
}
var i = TowerList.length;
while (i > 0) {
TowerList[i - 1].removeMovieClip();
i--;
}
Lokmen._visible = true;
var ShowText = Array("Level 5");
var WayList = Array(0);
var \u0421rockList = Array(0);
var TowerList = Array(0);
var Gold = 120;
var passed = 20;
var MaxTower = 12;
var ButDown = undefined;
var Demag = 0;
var Score = 0;
var MaxUBow = 8;
var MaxUGun = 8;
var MaxUES = 8;
var MaxUTree = 8;
var MaxUMag = 8;
var CountEffect = 0;
var updateBuildingOnion = 4;
var updateBuildingGun = 4;
var updateBuildingES = 4;
var updateBuildingMag = 4;
var updateBuildingTree = 4;
Frame 13
var MassDead = false;
_root.Start.AddAttack("Scorpion2", 1, 600);
_root.Start.AddAttack("Bat2", 1, 100);
_root.Start.AddAttack("Cat2", 1, 100);
_root.Start.AddAttack("GOLD", 30, 1);
_root.Start.AddAttack("Scorpion2", 1, 600);
_root.Start.AddAttack("Bat2", 1, 50);
_root.Start.AddAttack("Cat2", 1, 50);
_root.Start.AddAttack("Scorpion2", 1, 50);
_root.Start.AddAttack("Bat2", 1, 50);
_root.Start.AddAttack("Cat2", 1, 50);
_root.Start.AddAttack("Scorpion2", 1, 50);
_root.Start.AddAttack("Bat2", 1, 50);
_root.Start.AddAttack("Cat2", 1, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Cat2", 1, 600);
_root.Start.AddAttack("Cat3", 1, 100);
_root.Start.AddAttack("Cat2", 1, 100);
_root.Start.AddAttack("Cat3", 1, 100);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Bat2", 1, 600);
_root.Start.AddAttack("Bat3", 1, 100);
_root.Start.AddAttack("Bat2", 1, 100);
_root.Start.AddAttack("Bat3", 1, 100);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Scorpion2", 1, 600);
_root.Start.AddAttack("Scorpion3", 1, 100);
_root.Start.AddAttack("Scorpion2", 1, 100);
_root.Start.AddAttack("Scorpion3", 1, 100);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Scorpion3", 1, 600);
_root.Start.AddAttack("Bat3", 1, 50);
_root.Start.AddAttack("Cat3", 1, 50);
_root.Start.AddAttack("Scorpion3", 1, 50);
_root.Start.AddAttack("Bat3", 1, 50);
_root.Start.AddAttack("Cat3", 1, 50);
_root.Start.AddAttack("Scorpion3", 1, 50);
_root.Start.AddAttack("Bat3", 1, 50);
_root.Start.AddAttack("Cat3", 1, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Cat3", 1, 600);
_root.Start.AddAttack("Cat3", 19, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Bat3", 1, 600);
_root.Start.AddAttack("Bat3", 19, 50);
_root.Start.AddAttack("GOLD", 50, 1);
_root.Start.AddAttack("Scorpion3", 1, 600);
_root.Start.AddAttack("Scorpion3", 19, 50);
_root.Start.AddAttack("GOLD", 150, 1);
_root.Start.AddAttack("CatBos", 1, 1000);
_root.Start.AddAttack("Cat1", 5, 35);
_root.Start.AddAttack("Cat2", 5, 35);
_root.Start.AddAttack("Cat3", 5, 35);
_root.Start.AddAttack("GOLD", 150, 1);
_root.Start.AddAttack("BatBos", 1, 1000);
_root.Start.AddAttack("Bat1", 5, 35);
_root.Start.AddAttack("Bat2", 5, 35);
_root.Start.AddAttack("Bat3", 5, 35);
_root.Start.AddAttack("GOLD", 150, 1);
_root.Start.AddAttack("ScorpionBos", 1, 1000);
_root.Start.AddAttack("Scorpion1", 5, 35);
_root.Start.AddAttack("Scorpion2", 5, 35);
_root.Start.AddAttack("Scorpion3", 5, 35);
_root.Start.AddAttack("GOLD", 150, 1);
_root.Start.AddAttack("DragonBos", 1, 1000);
_root.Start.AddAttack("Dragon1", 5, 35);
_root.Start.AddAttack("Dragon2", 5, 35);
_root.Start.AddAttack("Dragon3", 5, 35);
_root.Start.AddAttack("GOLD", 150, 1);
_root.Start.AddAttack("BoneDragonBos", 1, 1000);
_root.Start.AddAttack("BoneDragon1", 5, 35);
_root.Start.AddAttack("BoneDragon2", 5, 35);
_root.Start.AddAttack("BoneDragon3", 5, 35);
stop();
Frame 14
_root.levelgame = 1;
_root.kof = 1;
sound.ResetEffects();
var Pause = false;
var SortWayList = Array(0);
Help.removeMovieClip();
Appearance.removeMovieClip();
var i = WayList.length;
while (i > 0) {
WayList[i - 1].removeMovieClip();
i--;
}
var i = \u0421rockList.length;
while (i > 0) {
\u0421rockList[i - 1].removeMovieClip();
i--;
}
var i = TowerList.length;
while (i > 0) {
TowerList[i - 1].removeMovieClip();
i--;
}
Lokmen._visible = true;
var ShowText = Array("Unlimited");
var WayList = Array(0);
var \u0421rockList = Array(0);
var TowerList = Array(0);
var Gold = 100;
var passed = 20;
var MaxTower = 5;
var ButDown = undefined;
var Demag = 0;
var Score = 0;
var MaxUBow = 8;
var MaxUGun = 8;
var MaxUES = 8;
var MaxUTree = 8;
var MaxUMag = 8;
var CountEffect = 0;
var updateBuildingOnion = 0;
var updateBuildingGun = 0;
var updateBuildingES = 0;
var updateBuildingMag = 0;
var updateBuildingTree = 0;
GoldUpdateBow[0] = 31;
var i = 1;
while (i < 9) {
GoldUpdateBow[i] = GoldUpdateBow[i - 1] + 15;
i++;
}
GoldUpdateGun[0] = 31;
var i = 1;
while (i < 9) {
GoldUpdateGun[i] = GoldUpdateGun[i - 1] + 15;
i++;
}
GoldUpdateES[0] = 61;
var i = 1;
while (i < 9) {
GoldUpdateES[i] = GoldUpdateES[i - 1] + 30;
i++;
}
GoldUpdateTree[0] = 61;
var i = 1;
while (i < 9) {
GoldUpdateTree[i] = GoldUpdateTree[i - 1] + 30;
i++;
}
GoldUpdateMag[0] = 31;
var i = 1;
while (i < 9) {
GoldUpdateMag[i] = GoldUpdateMag[i - 1] + 15;
i++;
}
Frame 15
var MassDead = false;
_root.Start.AddAttack("Cat1", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 3);
if (ran == 0) {
_root.Start.AddAttack("Scorpion1", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat1", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat1", 1, 30);
}
i++;
}
_root.Start.AddAttack("Cat2", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 3);
if (ran == 0) {
_root.Start.AddAttack("Scorpion1", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat1", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat2", 1, 30);
}
i++;
}
_root.Start.AddAttack("Bat2", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 3);
if (ran == 0) {
_root.Start.AddAttack("Scorpion1", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat2", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat2", 1, 30);
}
i++;
}
_root.Start.AddAttack("Scorpion2", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 3);
if (ran == 0) {
_root.Start.AddAttack("Scorpion2", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat2", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat2", 1, 30);
}
i++;
}
_root.Start.AddAttack("Cat3", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 3);
if (ran == 0) {
_root.Start.AddAttack("Scorpion2", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat2", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
i++;
}
_root.Start.AddAttack("Bat3", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 3);
if (ran == 0) {
_root.Start.AddAttack("Scorpion2", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
i++;
}
_root.Start.AddAttack("Scorpion3", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 3);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
i++;
}
_root.Start.AddAttack("Dragon1", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 4);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon1", 1, 30);
}
i++;
}
_root.Start.AddAttack("BoneDragon1", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 4);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon1", 1, 30);
}
i++;
}
_root.Start.AddAttack("BoneDragon1", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon1", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon1", 1, 30);
}
i++;
}
_root.Start.AddAttack("Dragon2", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon2", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon1", 1, 30);
}
i++;
}
_root.Start.AddAttack("BoneDragon2", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("Cat3", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon2", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon2", 1, 30);
}
i++;
}
_root.Start.AddAttack("CatBos", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("CatBos", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon2", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon2", 1, 30);
}
i++;
}
_root.Start.AddAttack("Dragon3", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("CatBos", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon3", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon2", 1, 30);
}
i++;
}
_root.Start.AddAttack("BoneDragon3", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("Bat3", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("CatBos", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon3", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon3", 1, 30);
}
i++;
}
_root.Start.AddAttack("BatBos", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("Scorpion3", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("BatBos", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("CatBos", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon3", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon3", 1, 30);
}
i++;
}
_root.Start.AddAttack("ScorpionBos", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("ScorpionBos", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("BatBos", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("CatBos", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("Dragon3", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon3", 1, 30);
}
i++;
}
_root.Start.AddAttack("DragonBos", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("ScorpionBos", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("BatBos", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("CatBos", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("DragonBos", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragon3", 1, 30);
}
i++;
}
_root.Start.AddAttack("BoneDragonBos", 1, 1200);
var i = 0;
while (i < 30) {
var ran = Math.round(Math.random() * 5);
if (ran == 0) {
_root.Start.AddAttack("ScorpionBos", 1, 30);
}
if (ran == 1) {
_root.Start.AddAttack("BatBos", 1, 30);
}
if (ran == 2) {
_root.Start.AddAttack("CatBos", 1, 30);
}
if (ran == 3) {
_root.Start.AddAttack("DragonBos", 1, 30);
}
if (ran == 4) {
_root.Start.AddAttack("BoneDragonBos", 1, 30);
}
i++;
}
_root.Start.AddAttack("BoneDragonBos", 1, 1200);
_root.Start.AddAttack("BoneDragonBos", 30, 30);
stop();
Symbol 70 MovieClip [BoneDragon3] Frame 1
#initclip 130
Object.registerClass("BoneDragon3", BoneDragon3);
#endinitclip
Symbol 72 MovieClip [BoneDragon2] Frame 1
#initclip 67
Object.registerClass("BoneDragon2", BoneDragon2);
#endinitclip
Symbol 73 MovieClip [BoneDragon1] Frame 1
#initclip 68
Object.registerClass("BoneDragon1", BoneDragon1);
#endinitclip
Symbol 75 MovieClip [BoneDragonBos] Frame 1
#initclip 69
Object.registerClass("BoneDragonBos", BoneDragonBos);
#endinitclip
Symbol 116 MovieClip [Bat3] Frame 1
#initclip 70
Object.registerClass("Bat3", CrockBat3);
#endinitclip
Symbol 116 MovieClip [Bat3] Frame 50
stop();
Symbol 117 MovieClip [Bat2] Frame 1
#initclip 71
Object.registerClass("Bat2", CrockBat2);
#endinitclip
Symbol 117 MovieClip [Bat2] Frame 50
stop();
Symbol 118 MovieClip [Bat1] Frame 1
#initclip 72
Object.registerClass("Bat1", CrockBat);
#endinitclip
Symbol 118 MovieClip [Bat1] Frame 50
stop();
Symbol 119 MovieClip [BatBos] Frame 1
#initclip 73
Object.registerClass("BatBos", BatBos1);
#endinitclip
Symbol 119 MovieClip [BatBos] Frame 50
stop();
Symbol 160 MovieClip [Dragon3] Frame 1
#initclip 74
Object.registerClass("Dragon3", CrockDragon3);
#endinitclip
Symbol 161 MovieClip [Dragon2] Frame 1
#initclip 75
Object.registerClass("Dragon2", CrockDragon2);
#endinitclip
Symbol 162 MovieClip [Dragon1] Frame 1
#initclip 76
Object.registerClass("Dragon1", CrockDragon1);
#endinitclip
Symbol 163 MovieClip [DragonBos] Frame 1
#initclip 77
Object.registerClass("DragonBos", DragonBos1);
#endinitclip
Symbol 204 MovieClip [Scorpion3] Frame 1
#initclip 78
Object.registerClass("Scorpion3", CrockScorpion3);
#endinitclip
Symbol 207 MovieClip [Scorpion2] Frame 1
#initclip 79
Object.registerClass("Scorpion2", CrockScorpion2);
#endinitclip
Symbol 208 MovieClip [Scorpion1] Frame 1
#initclip 80
Object.registerClass("Scorpion1", CrockScorpion);
#endinitclip
Symbol 209 MovieClip [ScorpionBos] Frame 1
#initclip 81
Object.registerClass("ScorpionBos", ScorpionBos1);
#endinitclip
Symbol 212 MovieClip [Star3] Frame 1
#initclip 82
Object.registerClass("Star3", BulletStar3);
#endinitclip
Symbol 212 MovieClip [Star3] Frame 50
stop();
Symbol 213 MovieClip [Star2] Frame 1
#initclip 83
Object.registerClass("Star2", BulletStar2);
#endinitclip
Symbol 213 MovieClip [Star2] Frame 50
stop();
Symbol 214 MovieClip [Star1] Frame 1
#initclip 84
Object.registerClass("Star1", BulletStar1);
#endinitclip
Symbol 214 MovieClip [Star1] Frame 50
stop();
Symbol 296 MovieClip [tMag3] Frame 1
#initclip 85
Object.registerClass("tMag3", TowerMag3);
#endinitclip
Symbol 296 MovieClip [tMag3] Frame 90
gotoAndPlay (81);
Symbol 298 MovieClip [tMag2] Frame 1
#initclip 86
Object.registerClass("tMag2", TowerMag2);
#endinitclip
Symbol 298 MovieClip [tMag2] Frame 90
gotoAndPlay (81);
Symbol 299 MovieClip [tMag1] Frame 1
#initclip 87
Object.registerClass("tMag1", TowerMag1);
#endinitclip
Symbol 299 MovieClip [tMag1] Frame 90
gotoAndPlay (81);
Symbol 363 MovieClip [Nucleus3] Frame 1
#initclip 88
Object.registerClass("Nucleus3", BulletNucleus3);
#endinitclip
Symbol 363 MovieClip [Nucleus3] Frame 50
stop();
Symbol 364 MovieClip [Nucleus2] Frame 1
#initclip 89
Object.registerClass("Nucleus2", BulletNucleus2);
#endinitclip
Symbol 364 MovieClip [Nucleus2] Frame 50
stop();
Symbol 365 MovieClip [Nucleus1] Frame 1
#initclip 90
Object.registerClass("Nucleus1", BulletNucleus1);
#endinitclip
Symbol 365 MovieClip [Nucleus1] Frame 50
stop();
Symbol 447 MovieClip [tEjectionSeat3] Frame 1
#initclip 91
Object.registerClass("tEjectionSeat3", TowerEjectionSeat3);
#endinitclip
Symbol 447 MovieClip [tEjectionSeat3] Frame 90
gotoAndPlay (81);
Symbol 448 MovieClip [tEjectionSeat2] Frame 1
#initclip 92
Object.registerClass("tEjectionSeat2", TowerEjectionSeat2);
#endinitclip
Symbol 448 MovieClip [tEjectionSeat2] Frame 90
gotoAndPlay (81);
Symbol 449 MovieClip [tEjectionSeat1] Frame 1
#initclip 93
Object.registerClass("tEjectionSeat1", TowerEjectionSeat1);
#endinitclip
Symbol 449 MovieClip [tEjectionSeat1] Frame 90
gotoAndPlay (81);
Symbol 456 MovieClip [bullet3] Frame 1
#initclip 94
Object.registerClass("bullet3", BulletBullet3);
#endinitclip
Symbol 456 MovieClip [bullet3] Frame 50
stop();
Symbol 460 MovieClip [bullet2] Frame 1
#initclip 95
Object.registerClass("bullet2", BulletBullet2);
#endinitclip
Symbol 460 MovieClip [bullet2] Frame 50
stop();
Symbol 467 MovieClip [bullet1] Frame 1
#initclip 96
Object.registerClass("bullet1", BulletBullet1);
#endinitclip
Symbol 467 MovieClip [bullet1] Frame 50
stop();
Symbol 477 MovieClip [dart3] Frame 1
#initclip 97
Object.registerClass("dart3", BulletDart3);
#endinitclip
Symbol 477 MovieClip [dart3] Frame 50
stop();
Symbol 482 MovieClip [dart2] Frame 1
#initclip 98
Object.registerClass("dart2", BulletDart2);
#endinitclip
Symbol 482 MovieClip [dart2] Frame 50
stop();
Symbol 487 MovieClip [dart1] Frame 1
#initclip 99
Object.registerClass("dart1", BulletDart1);
#endinitclip
Symbol 487 MovieClip [dart1] Frame 50
stop();
Symbol 578 MovieClip [tGun3] Frame 1
#initclip 100
Object.registerClass("tGun3", TowerGun3);
#endinitclip
Symbol 578 MovieClip [tGun3] Frame 10
gotoAndPlay (1);
Symbol 578 MovieClip [tGun3] Frame 20
gotoAndPlay (11);
Symbol 578 MovieClip [tGun3] Frame 30
gotoAndPlay (21);
Symbol 578 MovieClip [tGun3] Frame 40
gotoAndPlay (31);
Symbol 578 MovieClip [tGun3] Frame 50
gotoAndPlay (41);
Symbol 578 MovieClip [tGun3] Frame 60
gotoAndPlay (51);
Symbol 578 MovieClip [tGun3] Frame 70
gotoAndPlay (61);
Symbol 578 MovieClip [tGun3] Frame 80
gotoAndPlay (71);
Symbol 578 MovieClip [tGun3] Frame 90
gotoAndPlay (81);
Symbol 579 MovieClip [tGun2] Frame 1
#initclip 101
Object.registerClass("tGun2", TowerGun2);
#endinitclip
Symbol 579 MovieClip [tGun2] Frame 10
gotoAndPlay (1);
Symbol 579 MovieClip [tGun2] Frame 20
gotoAndPlay (11);
Symbol 579 MovieClip [tGun2] Frame 30
gotoAndPlay (21);
Symbol 579 MovieClip [tGun2] Frame 40
gotoAndPlay (31);
Symbol 579 MovieClip [tGun2] Frame 50
gotoAndPlay (41);
Symbol 579 MovieClip [tGun2] Frame 60
gotoAndPlay (51);
Symbol 579 MovieClip [tGun2] Frame 70
gotoAndPlay (61);
Symbol 579 MovieClip [tGun2] Frame 80
gotoAndPlay (71);
Symbol 579 MovieClip [tGun2] Frame 90
gotoAndPlay (81);
Symbol 580 MovieClip [tGun1] Frame 1
#initclip 102
Object.registerClass("tGun1", TowerGun1);
#endinitclip
Symbol 580 MovieClip [tGun1] Frame 10
gotoAndPlay (1);
Symbol 580 MovieClip [tGun1] Frame 20
gotoAndPlay (11);
Symbol 580 MovieClip [tGun1] Frame 30
gotoAndPlay (21);
Symbol 580 MovieClip [tGun1] Frame 40
gotoAndPlay (31);
Symbol 580 MovieClip [tGun1] Frame 50
gotoAndPlay (41);
Symbol 580 MovieClip [tGun1] Frame 60
gotoAndPlay (51);
Symbol 580 MovieClip [tGun1] Frame 70
gotoAndPlay (61);
Symbol 580 MovieClip [tGun1] Frame 80
gotoAndPlay (71);
Symbol 580 MovieClip [tGun1] Frame 90
gotoAndPlay (81);
Symbol 671 MovieClip [tBow3] Frame 1
#initclip 103
Object.registerClass("tBow3", TowerBow3);
#endinitclip
Symbol 671 MovieClip [tBow3] Frame 10
gotoAndPlay (1);
Symbol 671 MovieClip [tBow3] Frame 20
gotoAndPlay (11);
Symbol 671 MovieClip [tBow3] Frame 30
gotoAndPlay (21);
Symbol 671 MovieClip [tBow3] Frame 40
gotoAndPlay (31);
Symbol 671 MovieClip [tBow3] Frame 50
gotoAndPlay (41);
Symbol 671 MovieClip [tBow3] Frame 60
gotoAndPlay (51);
Symbol 671 MovieClip [tBow3] Frame 70
gotoAndPlay (61);
Symbol 671 MovieClip [tBow3] Frame 80
gotoAndPlay (71);
Symbol 671 MovieClip [tBow3] Frame 90
gotoAndPlay (81);
Symbol 672 MovieClip [tBow2] Frame 1
#initclip 104
Object.registerClass("tBow2", TowerBow2);
#endinitclip
Symbol 672 MovieClip [tBow2] Frame 10
gotoAndPlay (1);
Symbol 672 MovieClip [tBow2] Frame 20
gotoAndPlay (11);
Symbol 672 MovieClip [tBow2] Frame 30
gotoAndPlay (21);
Symbol 672 MovieClip [tBow2] Frame 40
gotoAndPlay (31);
Symbol 672 MovieClip [tBow2] Frame 50
gotoAndPlay (41);
Symbol 672 MovieClip [tBow2] Frame 60
gotoAndPlay (51);
Symbol 672 MovieClip [tBow2] Frame 70
gotoAndPlay (61);
Symbol 672 MovieClip [tBow2] Frame 80
gotoAndPlay (71);
Symbol 672 MovieClip [tBow2] Frame 90
gotoAndPlay (81);
Symbol 673 MovieClip [tBow1] Frame 1
#initclip 105
Object.registerClass("tBow1", TowerBow1);
#endinitclip
Symbol 673 MovieClip [tBow1] Frame 10
gotoAndPlay (1);
Symbol 673 MovieClip [tBow1] Frame 20
gotoAndPlay (11);
Symbol 673 MovieClip [tBow1] Frame 30
gotoAndPlay (21);
Symbol 673 MovieClip [tBow1] Frame 40
gotoAndPlay (31);
Symbol 673 MovieClip [tBow1] Frame 50
gotoAndPlay (41);
Symbol 673 MovieClip [tBow1] Frame 60
gotoAndPlay (51);
Symbol 673 MovieClip [tBow1] Frame 70
gotoAndPlay (61);
Symbol 673 MovieClip [tBow1] Frame 80
gotoAndPlay (71);
Symbol 673 MovieClip [tBow1] Frame 90
gotoAndPlay (81);
Symbol 714 MovieClip [CatBos] Frame 1
#initclip 106
Object.registerClass("CatBos", CatBos);
#endinitclip
Symbol 714 MovieClip [CatBos] Frame 10
gotoAndPlay (1);
Symbol 714 MovieClip [CatBos] Frame 20
gotoAndPlay (11);
Symbol 714 MovieClip [CatBos] Frame 30
gotoAndPlay (21);
Symbol 714 MovieClip [CatBos] Frame 40
gotoAndPlay (31);
Symbol 714 MovieClip [CatBos] Frame 50
stop();
Symbol 716 MovieClip [Cat3] Frame 1
#initclip 107
Object.registerClass("Cat3", CrockCat3);
#endinitclip
Symbol 716 MovieClip [Cat3] Frame 10
gotoAndPlay (1);
Symbol 716 MovieClip [Cat3] Frame 20
gotoAndPlay (11);
Symbol 716 MovieClip [Cat3] Frame 30
gotoAndPlay (21);
Symbol 716 MovieClip [Cat3] Frame 40
gotoAndPlay (31);
Symbol 716 MovieClip [Cat3] Frame 50
stop();
Symbol 718 MovieClip [Cat2] Frame 1
#initclip 108
Object.registerClass("Cat2", CrockCat2);
#endinitclip
Symbol 718 MovieClip [Cat2] Frame 10
gotoAndPlay (1);
Symbol 718 MovieClip [Cat2] Frame 20
gotoAndPlay (11);
Symbol 718 MovieClip [Cat2] Frame 30
gotoAndPlay (21);
Symbol 718 MovieClip [Cat2] Frame 40
gotoAndPlay (31);
Symbol 718 MovieClip [Cat2] Frame 50
stop();
Symbol 719 MovieClip [Cat1] Frame 1
#initclip 109
Object.registerClass("Cat1", CrockCat);
#endinitclip
Symbol 719 MovieClip [Cat1] Frame 10
gotoAndPlay (1);
Symbol 719 MovieClip [Cat1] Frame 20
gotoAndPlay (11);
Symbol 719 MovieClip [Cat1] Frame 30
gotoAndPlay (21);
Symbol 719 MovieClip [Cat1] Frame 40
gotoAndPlay (31);
Symbol 719 MovieClip [Cat1] Frame 50
stop();
Symbol 732 MovieClip [Blood] Frame 1
#initclip 110
Object.registerClass("Blood", geBlood);
#endinitclip
Symbol 747 MovieClip [Blood2] Frame 1
#initclip 111
Object.registerClass("Blood2", geBlood);
#endinitclip
Symbol 747 MovieClip [Blood2] Frame 15
this.unloadMovie();
Symbol 766 MovieClip [SlowEffect] Frame 1
#initclip 112
Object.registerClass("SlowEffect", geSlowEffect);
#endinitclip
Symbol 789 MovieClip [StopEffect] Frame 1
#initclip 113
Object.registerClass("StopEffect", geStopEffect);
#endinitclip
Symbol 808 MovieClip [WeakEffect] Frame 1
#initclip 114
Object.registerClass("WeakEffect", geWeakEffect);
#endinitclip
Symbol 811 MovieClip [Live] Frame 1
stop();
Symbol 818 MovieClip [bow3] Frame 15
gotoAndPlay (4);
Symbol 825 MovieClip [bow2] Frame 15
gotoAndPlay (4);
Symbol 833 MovieClip [gun3] Frame 15
gotoAndPlay (4);
Symbol 843 MovieClip [Dolor] Frame 15
gotoAndPlay (4);
Symbol 851 MovieClip [es3] Frame 15
gotoAndPlay (4);
Symbol 860 MovieClip [es2] Frame 15
gotoAndPlay (4);
Symbol 868 MovieClip [mag3] Frame 15
gotoAndPlay (4);
Symbol 876 MovieClip [mag2] Frame 15
gotoAndPlay (4);
Symbol 884 MovieClip [mag1] Frame 15
gotoAndPlay (4);
Symbol 892 MovieClip [ES1] Frame 15
gotoAndPlay (4);
Symbol 900 MovieClip [gun2] Frame 15
gotoAndPlay (4);
Symbol 908 MovieClip [gun1] Frame 15
gotoAndPlay (4);
Symbol 915 MovieClip [bow1] Frame 15
gotoAndPlay (4);
Symbol 922 MovieClip [update] Frame 15
gotoAndPlay (4);
Symbol 925 MovieClip [star] Frame 1
stop();
Symbol 938 Button
on (release) {
type = 0;
play();
}
Symbol 940 Button
on (release) {
type = 1;
play();
}
Symbol 942 Button
on (release) {
type = 2;
play();
}
Symbol 944 Button
on (release) {
type = 3;
play();
}
Symbol 947 MovieClip [LocalMenu] Frame 1
#initclip 115
Object.registerClass("LocalMenu", LocalMenu);
#endinitclip
_root.ButDown = undefined;
_root.Pause = true;
Symbol 947 MovieClip [LocalMenu] Frame 28
var type = 0;
stop();
Symbol 947 MovieClip [LocalMenu] Frame 41
if (type == 1) {
if (_root._currentframe > 1) {
_root.MassDead = true;
_root.gotoAndPlay(_root._currentframe - 1);
}
}
if (type == 2) {
_root.MassDead = true;
_root.gotoAndStop(3);
}
if (type == 3) {
if (_root.tempLM2 == undefined) {
_root.tempLM2 = _root.attachMovie("Load", "Load" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
this.play();
Symbol 947 MovieClip [LocalMenu] Frame 43
stop();
_root.tempLM = undefined;
_root.Pause = false;
this.onUnload();
Symbol 951 Button
on (release) {
type = 0;
play();
}
Symbol 952 Button
on (release) {
type = 1;
play();
}
Symbol 955 MovieClip [Score] Frame 1
Sc.selectable = false;
Sc.text = "Score: " + _root.Score;
Symbol 955 MovieClip [Score] Frame 2
gotoAndPlay (1);
Symbol 970 Button
on (release) {
getURL ("http://playtowerdefensegames.com/index.php?action=highscores&gameid=772", _blank);
}
Symbol 972 Button
on (release) {
getURL ("http://playtowerdefensegames.com/index.php?action=highscores&gameid=773", _blank);
}
Symbol 974 Button
on (release) {
getURL ("http://playtowerdefensegames.com/index.php?action=highscores&gameid=774", _blank);
}
Symbol 976 Button
on (release) {
getURL ("http://playtowerdefensegames.com/index.php?action=highscores&gameid=775", _blank);
}
Symbol 978 MovieClip [TabRec] Frame 1
#initclip 116
Object.registerClass("TabRec", geTabRec);
#endinitclip
Symbol 982 MovieClip Frame 1
tx.text = _root.PlayerName;
Symbol 982 MovieClip Frame 2
var bask = _root.PlayerName;
_root.PlayerName = tx.text;
if (bask != _root.PlayerName) {
_root.my_so = SharedObject.getLocal("shared", "/");
_root.my_so.data.PlayerName = _root.PlayerName;
}
Symbol 982 MovieClip Frame 3
gotoAndPlay (2);
Symbol 986 Button
on (release) {
var lv = new LoadVars();
var url2 = "";
if (_root.levelgame == 0) {
lv.game_id = 772;
url2 = "http://playtowerdefensegames.com/index.php?action=highscores&gameid=772";
}
if (_root.levelgame == 1) {
lv.game_id = 773;
url2 = "http://playtowerdefensegames.com/index.php?action=highscores&gameid=773";
}
if (_root.levelgame == 2) {
lv.game_id = 774;
url2 = "http://playtowerdefensegames.com/index.php?action=highscores&gameid=774";
}
lv.user_id = _root.PlayerName;
lv.score = _root.Score;
lv.game_mode = "";
var url = "http://playtowerdefensegames.com/highscores/submit/play4scores.php";
lv.sendAndLoad(url, lv, "POST");
getURL (url2, _blank);
Submit._visible = false;
}
Symbol 988 MovieClip [GameOwer] Frame 1
#initclip 117
Object.registerClass("GameOwer", LocalMenu);
#endinitclip
_root.ButDown = undefined;
_root.Pause = true;
Symbol 988 MovieClip [GameOwer] Frame 28
tabrec.vid = true;
tabrec.Show();
var type = 0;
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 988 MovieClip [GameOwer] Frame 41
if (type == 0) {
_root.MassDead = true;
_root.gotoAndStop(3);
this.play();
}
if ((type == 1) and (_root._currentframe > 1)) {
_root.MassDead = true;
this.play();
_root.gotoAndPlay(_root._currentframe - 1);
}
Symbol 988 MovieClip [GameOwer] Frame 43
stop();
_root.Pause = false;
this.unloadMovie();
Symbol 990 Button
on (release) {
var lv = new LoadVars();
lv.game_id = 775;
lv.user_id = _root.PlayerName;
lv.score = _root.Score;
lv.game_mode = "";
var url = "http://playtowerdefensegames.com/highscores/submit/play4scores.php";
lv.sendAndLoad(url, lv, "POST");
getURL ("http://playtowerdefensegames.com/index.php?action=highscores&gameid=775", _blank);
Submit._visible = false;
}
Symbol 992 Button
on (release) {
play();
}
Symbol 995 MovieClip [EndGame] Frame 1
_root.ButDown = undefined;
_root.MassDead = true;
Symbol 995 MovieClip [EndGame] Frame 28
stop();
this.swapDepths(_root.getNextHighestDepth());
Cred.vid = true;
tabrec.vid = true;
_root.Pause = true;
tabrec.Show();
Symbol 995 MovieClip [EndGame] Frame 41
var i = _root.WayList.length;
while (i > 0) {
_root.WayList[i - 1].removeMovieClip();
i--;
}
var i = _root["\u0421rockList"].length;
while (i > 0) {
_root["\u0421rockList"][i - 1].removeMovieClip();
i--;
}
var i = _root.TowerList.length;
while (i > 0) {
_root.TowerList[i - 1].removeMovieClip();
i--;
}
_root.gotoAndStop(3);
this.play();
Symbol 995 MovieClip [EndGame] Frame 43
stop();
_root.ButDown = undefined;
this.unloadMovie();
Symbol 998 Button
on (release) {
play();
}
Symbol 1000 Button
on (release) {
L = 1;
play();
}
Symbol 1002 Button
on (release) {
L = 2;
play();
}
Symbol 1004 Button
on (release) {
L = 3;
play();
}
Symbol 1006 Button
on (release) {
L = 4;
play();
}
Symbol 1008 Button
on (release) {
L = 5;
play();
}
Symbol 1010 Button
on (release) {
L = 6;
play();
}
Symbol 1013 MovieClip [Load] Frame 1
_root.ButDown = undefined;
_root.Pause = true;
Symbol 1013 MovieClip [Load] Frame 28
var L = 0;
_root.Pause = true;
this.swapDepths(_root.getNextHighestDepth());
if (_root.VictoryLevel >= 0) {
L1._visible = true;
} else {
L1._visible = false;
}
if (_root.VictoryLevel >= 1) {
L2._visible = true;
} else {
L2._visible = false;
}
if (_root.VictoryLevel >= 2) {
L3._visible = true;
} else {
L3._visible = false;
}
if (_root.VictoryLevel >= 3) {
L4._visible = true;
} else {
L4._visible = false;
}
if (_root.VictoryLevel >= 4) {
L5._visible = true;
} else {
L5._visible = false;
}
stop();
Symbol 1013 MovieClip [Load] Frame 41
if (L == 1) {
_root.loadFrame = 5;
_root.gotoAndPlay(4);
_root.MassDead = true;
}
if (L == 2) {
_root.loadFrame = 6;
_root.gotoAndPlay(4);
_root.MassDead = true;
}
if (L == 3) {
_root.loadFrame = 8;
_root.gotoAndPlay(4);
_root.MassDead = true;
}
if (L == 4) {
_root.loadFrame = 10;
_root.gotoAndPlay(4);
_root.MassDead = true;
}
if (L == 5) {
_root.loadFrame = 12;
_root.gotoAndPlay(4);
_root.MassDead = true;
}
if (L == 6) {
_root.loadFrame = 14;
_root.gotoAndPlay(4);
_root.MassDead = true;
}
this.play();
Symbol 1013 MovieClip [Load] Frame 43
stop();
_root.Pause = false;
_root.tempLM2 = undefined;
this.removeMovieClip();
this.unloadMovie();
Symbol 1019 Button
on (release) {
play();
}
Symbol 1020 Button
on (release) {
var lv = new LoadVars();
var url2 = "";
if (_root.levelgame == 0) {
lv.game_id = 772;
url2 = "http://playtowerdefensegames.com/index.php?action=highscores&gameid=772";
}
if (_root.levelgame == 1) {
lv.game_id = 773;
url2 = "http://playtowerdefensegames.com/index.php?action=highscores&gameid=773";
}
if (_root.levelgame == 2) {
lv.game_id = 774;
url2 = "http://playtowerdefensegames.com/index.php?action=highscores&gameid=774";
}
lv.user_id = _root.PlayerName;
lv.score = _root.Score;
lv.game_mode = "";
var url = "http://playtowerdefensegames.com/highscores/submit/play4scores.php";
lv.sendAndLoad(url, lv, "POST");
getURL (url2, _blank);
Submit._visible = false;
}
Symbol 1022 MovieClip [End] Frame 1
_root.ButDown = undefined;
_root.Pause = true;
Symbol 1022 MovieClip [End] Frame 28
tabrec.vid = true;
tabrec.Show();
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 1022 MovieClip [End] Frame 41
_root.MassDead = true;
_root.play();
this.play();
Symbol 1022 MovieClip [End] Frame 43
stop();
_root.Pause = false;
this.unloadMovie();
Symbol 1027 MovieClip [BuildingES] Frame 1
#initclip 118
Object.registerClass("BuildingES", geBuildingES);
#endinitclip
Symbol 1048 MovieClip [BuildingMag] Frame 1
#initclip 119
Object.registerClass("BuildingMag", geBuildingMag);
#endinitclip
Symbol 1069 MovieClip [BuildingGun] Frame 1
#initclip 120
Object.registerClass("BuildingGun", geBuildingGun);
#endinitclip
Symbol 1072 MovieClip [BuildingTree] Frame 1
#initclip 121
Object.registerClass("BuildingTree", geBuildingTree);
#endinitclip
Symbol 1091 MovieClip [BuildingOnion] Frame 1
#initclip 122
Object.registerClass("BuildingOnion", geBuildingOnion);
#endinitclip
Symbol 1094 MovieClip [Выход монстров] Frame 1
#initclip 123
Object.registerClass("\u0412\u044B\u0445\u043E\u0434 \u043C\u043E\u043D\u0441\u0442\u0440\u043E\u0432", geStart);
#endinitclip
Symbol 1096 MovieClip [Путь] Frame 1
#initclip 124
Object.registerClass("\u041F\u0443\u0442\u044C", geWay);
#endinitclip
Symbol 1098 MovieClip [Appearance] Frame 1
#initclip 125
Object.registerClass("Appearance", eAppearance);
#endinitclip
Symbol 1102 MovieClip [Блеск воды] Frame 1
#initclip 126
Object.registerClass("\u0411\u043B\u0435\u0441\u043A \u0432\u043E\u0434\u044B", geBriliance);
#endinitclip
Symbol 1102 MovieClip [Блеск воды] Frame 11
stop();
Symbol 1107 MovieClip [CREDITS] Frame 1
#initclip 127
Object.registerClass("CREDITS", geCredits);
#endinitclip
Symbol 1109 MovieClip [Eclipse] Frame 90
_root.play();
stop();
Symbol 1113 MovieClip [Eclipse2] Frame 90
_visible = false;
gotoAndStop (2);
Symbol 1126 MovieClip [Cursor] Frame 1
#initclip 128
Object.registerClass("Cursor", geCursor);
#endinitclip
stop();
Symbol 1126 MovieClip [Cursor] Frame 18
gotoAndPlay (2);
Symbol 1130 MovieClip [eSound] Frame 1
#initclip 129
Object.registerClass("eSound", geSound);
#endinitclip
stop();
Symbol 1135 Button
on (release) {
if (_root.tempLM == undefined) {
_root.tempLM = _root.attachMovie("LocalMenu", "LocalMenu" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
Symbol 1143 MovieClip Frame 120
stop();
Symbol 1143 MovieClip Frame 144
_root.play();
stop();
Symbol 1148 Button
on (release) {
_root.logo.play();
}
Symbol 1153 MovieClip Frame 1
play();
totalBytes = Math.round(_root.getBytesTotal() / 1024);
loadedBytes = Math.round(_root.getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (percentDone >= 100) {
if (_root.logo._currentframe >= 120) {
Loading._visible = false;
Next._visible = true;
stop();
}
} else {
Next._visible = false;
}
Symbol 1153 MovieClip Frame 20
gotoAndPlay (1);
Symbol 1232 MovieClip [__Packages.geСrock] Frame 0
class geСrock extends MovieClip
{
var play, _alpha, filters, LiveCrock, getNextHighestDepth, attachMovie, _parent, _y, _x, _currentframe, gotoAndPlay, removeMovieClip, unloadMovie;
function geСrock () {
super();
Start();
(play());// not popped
_root["\u0421rockList"].push(this);
MaxHP = Math.round(MaxHP * _root.kof);
HP = MaxHP;
var _local11 = Array(0);
_alpha = 1;
var _local12 = new flash.filters.DropShadowFilter(4, 45, 0, 0.7, 10, 10, 0.7, 0, false, false, false);
_local11.push(_local12);
filters = _local11;
LiveCrock = new Array(5);
var _local10 = getNextHighestDepth();
LiveCrock[0] = attachMovie("Live", "Live" + _local10, _local10, {_x:-16, _y:-10, _visible:false});
_local10 = getNextHighestDepth();
LiveCrock[1] = attachMovie("Live", "Live" + _local10, _local10, {_x:-8, _y:-10, _visible:false});
_local10 = getNextHighestDepth();
LiveCrock[2] = attachMovie("Live", "Live" + _local10, _local10, {_x:0, _y:-10, _visible:false});
_local10 = getNextHighestDepth();
LiveCrock[3] = attachMovie("Live", "Live" + _local10, _local10, {_x:8, _y:-10, _visible:false});
_local10 = getNextHighestDepth();
LiveCrock[4] = attachMovie("Live", "Live" + _local10, _local10, {_x:16, _y:-10, _visible:false});
var _local9;
var _local8 = 999999999 /* 0x3B9AC9FF */;
if (_root.SortWayList.length < _root.WayList.length) {
var _local4 = 0;
while (_local4 < _root.WayList.length) {
var _local7 = Math.sqrt(((_root.Start._x - _root.WayList[_local4]._x) * (_root.Start._x - _root.WayList[_local4]._x)) + ((_root.Start._y - _root.WayList[_local4]._y) * (_root.Start._y - _root.WayList[_local4]._y)));
if (_local8 > _local7) {
_local8 = _local7;
_local9 = _root.WayList[_local4];
}
_local4++;
}
_root.SortWayList.push(_local9);
indexWay = 0;
while (_root.SortWayList.length != _root.WayList.length) {
_local9 = undefined;
_local8 = 999999999 /* 0x3B9AC9FF */;
_local4 = 0;
while (_local4 < _root.WayList.length) {
var _local6 = false;
var _local7 = Math.sqrt(((_root.SortWayList[indexWay]._x - _root.WayList[_local4]._x) * (_root.SortWayList[indexWay]._x - _root.WayList[_local4]._x)) + ((_root.SortWayList[indexWay]._y - _root.WayList[_local4]._y) * (_root.SortWayList[indexWay]._y - _root.WayList[_local4]._y)));
var _local5 = 0;
while (_local5 < _root.SortWayList.length) {
if (_root.SortWayList[_local5] == _root.WayList[_local4]) {
_local6 = true;
break;
}
_local5++;
}
if ((_local8 > _local7) and (_local6 == false)) {
_local8 = _local7;
_local9 = _root.WayList[_local4];
}
_local4++;
}
_root.SortWayList.push(_local9);
indexWay = indexWay + 1;
}
}
indexWay = 0;
}
function Start() {
}
function onEnterFrame() {
if (_root.Pause == true) {
return(undefined);
}
if (_root.MassDead == true) {
onUnload();
}
if ((HP > 0) and (_alpha < 100)) {
_alpha = _alpha + 2;
}
MouseOn();
if ((EffectSlow > 0) and (notEffect == false)) {
EffectSlow = EffectSlow - 1;
tSlow = 0.5;
timeSlow = timeSlow - 1;
if (timeSlow <= 0) {
timeSlow = 15;
var _local7 = _parent.getNextHighestDepth();
if (HP > 0) {
if (_root.CountEffect < _root.MaxCountEffect) {
_parent.attachMovie("SlowEffect", "SlowEffect" + _local7, _local7, {parent:this});
}
}
}
} else {
tSlow = 1;
}
if ((EffectStop > 0) and (notEffect == false)) {
EffectStop = EffectStop - 1;
tStop = 0;
timeStop = timeStop - 1;
if (timeStop <= 0) {
timeStop = 15;
var _local7 = _parent.getNextHighestDepth();
if (HP > 0) {
if (_root.CountEffect < _root.MaxCountEffect) {
_parent.attachMovie("StopEffect", "StopEffect" + _local7, _local7, {parent:this});
}
}
}
} else {
tStop = 1;
}
if ((EffectWeak > 0) and (notEffect == false)) {
EffectWeak = EffectWeak - 1;
timeWeak = timeWeak - 1;
if (timeWeak <= 0) {
timeWeak = 15;
var _local7 = _parent.getNextHighestDepth();
if (HP > 0) {
if (_root.CountEffect < _root.MaxCountEffect) {
_parent.attachMovie("WeakEffect", "WeakEffect" + _local7, _local7, {parent:this});
}
}
}
if (tWeak == false) {
tWeak = true;
HP = HP - (MaxHP * 0.2);
if (HP <= 0) {
HP = 1;
}
}
if (((tWeak == true) and (EffectWeak == 0)) and (HP > 0)) {
HP = HP + (MaxHP * 0.2);
}
} else {
tWeak = false;
}
if (HP > 0) {
if (_root.WayList.length > 0) {
if (indexWay < (_root.SortWayList.length - 1)) {
var _local5;
var _local8 = 0;
_local8 = Math.sqrt(Math.pow(_x - _root.SortWayList[indexWay]._x, 2) + Math.pow(_y - _root.SortWayList[indexWay]._y, 2));
_local5 = _root.SortWayList[indexWay];
if ((_local8 < 5) and (indexWay < (_root.SortWayList.length - 1))) {
indexWay = indexWay + 1;
}
if (_local5 != undefined) {
var _local6 = Math.sqrt(Math.pow(_x - _local5._x, 2) + Math.pow(_y - _local5._y, 2));
var _local4 = (_local5._x - _x) / _local6;
var _local3 = (_local5._y - _y) / _local6;
_x = _x + (((_local4 * Speed) * tSlow) * tStop);
_y = _y + (((_local3 * Speed) * tSlow) * tStop);
if (((_local4 > -0.5) and (_local4 < 0.5)) and (_local3 < 0)) {
anomation("UP");
}
if (((_local4 > -0.5) and (_local4 < 0.5)) and (_local3 >= 0)) {
anomation("BASK");
}
if (((_local3 > -0.5) and (_local3 < 0.5)) and (_local4 < 0)) {
anomation("LEFT");
}
if (((_local3 > -0.5) and (_local3 < 0.5)) and (_local4 >= 0)) {
anomation("RIGHT");
}
}
} else {
anomation("DEAD");
if (_alpha <= 0) {
onUnload();
} else {
_alpha = _alpha - 1;
}
if (passed == false) {
_root.passed = _root.passed - passedNum;
HP = 0;
passed = true;
}
}
}
} else {
anomation("DEAD");
if (_alpha <= 0) {
onUnload();
} else {
_alpha = _alpha - 5;
}
}
}
function anomation(Aname) {
if (BaskAni != Aname) {
BaskAni = Aname;
}
if (BaskAni == "UP") {
if ((_currentframe < 1) or (_currentframe > 10)) {
(gotoAndPlay(1));// not popped
}
}
if (BaskAni == "RIGHT") {
if ((_currentframe < 11) or (_currentframe > 20)) {
(gotoAndPlay(11));// not popped
}
}
if (BaskAni == "BASK") {
if ((_currentframe < 21) or (_currentframe > 30)) {
(gotoAndPlay(21));// not popped
}
}
if (BaskAni == "LEFT") {
if ((_currentframe < 31) or (_currentframe > 40)) {
(gotoAndPlay(31));// not popped
}
}
if (BaskAni == "DEAD") {
if ((_currentframe < 41) or (_currentframe > 50)) {
(gotoAndPlay(41));// not popped
}
}
}
function onUnload() {
var _local3 = 0;
while (_local3 < _root["\u0421rockList"].length) {
if (_root["\u0421rockList"][_local3] == this) {
_root["\u0421rockList"].splice(_local3, 1);
break;
}
_local3++;
}
if (bdead == false) {
bdead = true;
if (_root.TowerList.length > 0) {
if (passed == false) {
if (_root.MassDead == false) {
_root.Score = _root.Score + Math.round(MaxHP / _root.TowerList.length);
}
}
}
if (_root.MassDead == false) {
_root.Gold = _root.Gold + GoldDead;
}
}
LiveCrock[0].removeMovieClip();
LiveCrock[1].removeMovieClip();
LiveCrock[2].removeMovieClip();
LiveCrock[3].removeMovieClip();
LiveCrock[4].removeMovieClip();
removeMovieClip();
unloadMovie();
}
function MouseOn() {
var _local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - _y, 2));
if ((_local4 < 16) and (HP > 0)) {
LiveCrock[0]._visible = true;
LiveCrock[1]._visible = true;
LiveCrock[2]._visible = true;
LiveCrock[3]._visible = true;
LiveCrock[4]._visible = true;
var _local3 = HP / MaxHP;
if (_local3 > 0) {
LiveCrock[0].gotoAndStop(1);
} else {
LiveCrock[0].gotoAndStop(2);
}
if (_local3 > 0.2) {
LiveCrock[1].gotoAndStop(1);
} else {
LiveCrock[1].gotoAndStop(2);
}
if (_local3 > 0.4) {
LiveCrock[2].gotoAndStop(1);
} else {
LiveCrock[2].gotoAndStop(2);
}
if (_local3 > 0.6) {
LiveCrock[3].gotoAndStop(1);
} else {
LiveCrock[3].gotoAndStop(2);
}
if (_local3 > 0.8) {
LiveCrock[4].gotoAndStop(1);
} else {
LiveCrock[4].gotoAndStop(2);
}
} else {
LiveCrock[0]._visible = false;
LiveCrock[1]._visible = false;
LiveCrock[2]._visible = false;
LiveCrock[3]._visible = false;
LiveCrock[4]._visible = false;
}
}
var GoldDead = 1;
var indexWay = 0;
var Roll = 0;
var Speed = 1.5;
var MaxHP = 5;
var HP = 0;
var BaskAni = "";
var passed = false;
var EffectSlow = 0;
var EffectStop = 0;
var EffectWeak = 0;
var tSlow = 1;
var tStop = 1;
var tWeak = false;
var timeSlow = 0;
var timeStop = 0;
var timeWeak = 0;
var notEffect = false;
var passedNum = 1;
var bdead = false;
}
Symbol 1233 MovieClip [__Packages.BoneDragon2] Frame 0
class BoneDragon2 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function BoneDragon2 () {
super();
}
function Start() {
MaxHP = 3750;
Speed = 1.2;
GoldDead = 10;
notEffect = false;
_xscale = 75;
_yscale = 75;
}
}
Symbol 1234 MovieClip [__Packages.BoneDragon1] Frame 0
class BoneDragon1 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function BoneDragon1 () {
super();
}
function Start() {
MaxHP = 1500;
Speed = 1.1;
GoldDead = 8;
notEffect = false;
_xscale = 75;
_yscale = 75;
}
}
Symbol 1235 MovieClip [__Packages.BoneDragonBos] Frame 0
class BoneDragonBos extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, passedNum, _xscale, _yscale;
function BoneDragonBos () {
super();
}
function Start() {
MaxHP = 50000;
Speed = 0.8;
GoldDead = 20;
notEffect = true;
passedNum = 10;
_xscale = 75;
_yscale = 75;
}
}
Symbol 1236 MovieClip [__Packages.CrockBat3] Frame 0
class CrockBat3 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function CrockBat3 () {
super();
}
function Start() {
MaxHP = 2250;
Speed = 1.8;
GoldDead = 12;
notEffect = false;
_xscale = 75;
_yscale = 75;
}
}
Symbol 1237 MovieClip [__Packages.CrockBat2] Frame 0
class CrockBat2 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function CrockBat2 () {
super();
}
function Start() {
MaxHP = 750;
Speed = 1.5;
GoldDead = 5;
notEffect = false;
_xscale = 80;
_yscale = 80;
}
}
Symbol 1238 MovieClip [__Packages.CrockBat] Frame 0
class CrockBat extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function CrockBat () {
super();
}
function Start() {
MaxHP = 300;
Speed = 1.2;
GoldDead = 2;
notEffect = false;
_xscale = 75;
_yscale = 75;
}
}
Symbol 1239 MovieClip [__Packages.BatBos1] Frame 0
class BatBos1 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, passedNum, _xscale, _yscale;
function BatBos1 () {
super();
}
function Start() {
MaxHP = 20000;
Speed = 0.8;
GoldDead = 16;
notEffect = true;
passedNum = 2;
_xscale = 80;
_yscale = 80;
}
}
Symbol 1240 MovieClip [__Packages.CrockDragon3] Frame 0
class CrockDragon3 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function CrockDragon3 () {
super();
}
function Start() {
MaxHP = 7500;
Speed = 1.3;
GoldDead = 14;
notEffect = false;
_xscale = 50;
_yscale = 50;
}
}
Symbol 1241 MovieClip [__Packages.CrockDragon2] Frame 0
class CrockDragon2 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function CrockDragon2 () {
super();
}
function Start() {
MaxHP = 3000;
Speed = 1.5;
GoldDead = 9;
notEffect = false;
_xscale = 50;
_yscale = 50;
}
}
Symbol 1242 MovieClip [__Packages.CrockDragon1] Frame 0
class CrockDragon1 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function CrockDragon1 () {
super();
}
function Start() {
MaxHP = 1500;
Speed = 1.2;
GoldDead = 7;
notEffect = false;
_xscale = 50;
_yscale = 50;
}
}
Symbol 1243 MovieClip [__Packages.DragonBos1] Frame 0
class DragonBos1 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, passedNum, _xscale, _yscale;
function DragonBos1 () {
super();
}
function Start() {
MaxHP = 40000;
Speed = 0.8;
GoldDead = 18;
notEffect = true;
passedNum = 5;
_xscale = 75;
_yscale = 75;
}
}
Symbol 1244 MovieClip [__Packages.CrockScorpion3] Frame 0
class CrockScorpion3 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect;
function CrockScorpion3 () {
super();
}
function Start() {
MaxHP = 4050;
Speed = 1.3;
GoldDead = 13;
notEffect = false;
}
}
Symbol 1245 MovieClip [__Packages.CrockScorpion2] Frame 0
class CrockScorpion2 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect;
function CrockScorpion2 () {
super();
}
function Start() {
MaxHP = 1350;
Speed = 1.2;
GoldDead = 6;
notEffect = false;
}
}
Symbol 1246 MovieClip [__Packages.CrockScorpion] Frame 0
class CrockScorpion extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect;
function CrockScorpion () {
super();
}
function Start() {
MaxHP = 450;
Speed = 1.1;
GoldDead = 3;
notEffect = false;
}
}
Symbol 1247 MovieClip [__Packages.ScorpionBos1] Frame 0
class ScorpionBos1 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, passedNum;
function ScorpionBos1 () {
super();
}
function Start() {
MaxHP = 30000;
Speed = 0.8;
GoldDead = 17;
notEffect = true;
passedNum = 3;
}
}
Symbol 1248 MovieClip [__Packages.geBullet] Frame 0
class geBullet extends MovieClip
{
var ListCollision, ListTaimuron, _alpha, cx, _x, cy, _y, _parent, vx, BaskAni, _totalframes, _currentframe, gotoAndPlay, removeMovieClip, unloadMovie;
function geBullet () {
super();
Start();
ListCollision = Array(0);
ListTaimuron = Array(0);
_alpha = 0;
cx = _x;
cy = _y;
if (SoundNameCreate != "") {
_root.sound.onSoundEffects(SoundNameCreate);
}
}
function Start() {
}
function onEnterFrame() {
if (_root.Pause == true) {
return(undefined);
}
if (_root.MassDead == true) {
onUnload();
}
var _local11 = false;
onMove();
if (ListCollision.length > 0) {
PerUron = PerUron - 1;
if (PerUron < 0) {
PerUron = 20;
var _local3 = ListCollision.length - 1;
while (_local3 >= 0) {
ListTaimuron[_local3] = ListTaimuron[_local3] - 1;
if (ListTaimuron[_local3] > -1) {
_local11 = true;
}
if ((ListTaimuron[_local3] >= -1) and (ListCollision[_local3].HP > 0)) {
ListCollision[_local3].HP = ListCollision[_local3].HP - uron;
_root.Demag = _root.Demag + uron;
if (Fire == true) {
var _local8 = _parent.getNextHighestDepth();
if (_root.CountEffect < _root.MaxCountEffect) {
_parent.attachMovie("Blood", "Blood" + _local8, _local8, {parent:ListCollision[_local3]});
}
}
if (Blood == true) {
var _local8 = _parent.getNextHighestDepth();
if (_root.CountEffect < _root.MaxCountEffect) {
_parent.attachMovie("Blood2", "Blood2" + _local8, _local8, {parent:ListCollision[_local3]});
}
}
if (EffectSlow != 0) {
ListCollision[_local3].EffectSlow = EffectSlow;
}
if (EffectStop != 0) {
ListCollision[_local3].EffectStop = EffectStop;
}
if (EffectWeak != 0) {
ListCollision[_local3].EffectWeak = EffectWeak;
}
}
_local3 = _local3 - 1;
}
if ((_local11 == false) and (CollisionStop == true)) {
dead = true;
}
if ((taimuron != 0) and (CollisionStop == true)) {
anomation("0");
}
}
}
var _local12 = Math.sqrt(((cx - _x) * (cx - _x)) + ((cy - _y) * (cy - _y)));
if ((_local12 < RadLifes) and (dead == false)) {
if (_alpha < 100) {
_alpha = _alpha + 20;
}
if ((ListCollision.length == 0) or (CollisionStop == false)) {
_x = _x + (vx * speed);
_y = _y + (vy * speed);
var _local9 = ((Math.atan2(vy, vx) * 180) / 3.14) + 180;
if ((_local9 > 0) and (_local9 <= 22.5)) {
anomation("7");
}
if ((_local9 > 22.5) and (_local9 <= 67.5)) {
anomation("8");
}
if ((_local9 > 67.5) and (_local9 <= 112.5)) {
anomation("1");
}
if ((_local9 > 112.5) and (_local9 <= 157.5)) {
anomation("2");
}
if ((_local9 > 157.5) and (_local9 <= 202.5)) {
anomation("3");
}
if ((_local9 > 202.5) and (_local9 <= 247.5)) {
anomation("4");
}
if ((_local9 > 247.5) and (_local9 <= 292.5)) {
anomation("5");
}
if ((_local9 > 292.5) and (_local9 <= 337.5)) {
anomation("6");
}
if ((_local9 > 337.5) and (_local9 <= 360)) {
anomation("7");
}
}
var _local7 = 0;
while (_local7 < _root["\u0421rockList"].length) {
var _local6 = Math.sqrt(Math.pow(_root["\u0421rockList"][_local7]._x - _x, 2) + Math.pow(_root["\u0421rockList"][_local7]._y - _y, 2));
if (_local6 < 16) {
var _local3 = 0;
while (_local3 < _root["\u0421rockList"].length) {
_local6 = Math.sqrt(Math.pow(_root["\u0421rockList"][_local3]._x - _x, 2) + Math.pow(_root["\u0421rockList"][_local3]._y - _y, 2));
var _local5 = false;
if (_local6 > (rad + 16)) {
_local5 = true;
}
var _local4 = 0;
while (_local4 < ListCollision.length) {
if (ListCollision[_local4] == _root["\u0421rockList"][_local3]) {
_local5 = true;
}
_local4++;
}
if (_local5 == false) {
if ((_root["\u0421rockList"][_local3].HP > 0) and (BaskAni != "0")) {
if (((rad == 0) and (ListCollision.length > 0)) and (CollisionStop == true)) {
break;
}
ListCollision.push(_root["\u0421rockList"][_local3]);
ListTaimuron.push(taimuron);
PerUron = 0;
}
}
_local3++;
}
break;
}
_local7++;
}
} else {
anomation("0");
if (_local11 == false) {
dead = true;
}
}
if ((dead == true) and (_currentframe == _totalframes)) {
onUnload();
}
}
function anomation(Aname) {
if (BaskAni != Aname) {
BaskAni = Aname;
}
if (BaskAni == "1") {
if ((_currentframe < 1) or (_currentframe > 5)) {
(gotoAndPlay(1));// not popped
}
}
if (BaskAni == "2") {
if ((_currentframe < 6) or (_currentframe > 10)) {
(gotoAndPlay(6));// not popped
}
}
if (BaskAni == "3") {
if ((_currentframe < 11) or (_currentframe > 15)) {
(gotoAndPlay(11));// not popped
}
}
if (BaskAni == "4") {
if ((_currentframe < 16) or (_currentframe > 20)) {
(gotoAndPlay(16));// not popped
}
}
if (BaskAni == "5") {
if ((_currentframe < 21) or (_currentframe > 25)) {
(gotoAndPlay(21));// not popped
}
}
if (BaskAni == "6") {
if ((_currentframe < 26) or (_currentframe > 30)) {
(gotoAndPlay(26));// not popped
}
}
if (BaskAni == "7") {
if ((_currentframe < 31) or (_currentframe > 35)) {
(gotoAndPlay(31));// not popped
}
}
if (BaskAni == "8") {
if ((_currentframe < 36) or (_currentframe > 40)) {
(gotoAndPlay(36));// not popped
}
}
if (BaskAni == "0") {
if ((_currentframe < 41) or (_currentframe > 50)) {
(gotoAndPlay(41));// not popped
if (SoundNameDead != "") {
_root.sound.onSoundEffects(SoundNameDead);
}
}
}
}
function onMove() {
}
function onUnload() {
removeMovieClip();
unloadMovie();
this=undefined;//parameter overwritten
}
var vy = 0;
var speed = 10;
var rad = 0;
var uron = 1;
var taimuron = 0;
var CollisionStop = true;
var RadLifes = 300;
var EffectSlow = 0;
var EffectStop = 0;
var EffectWeak = 0;
var Fire = false;
var Blood = false;
var SoundNameCreate = "";
var SoundNameDead = "";
var dead = false;
var PerUron = 0;
var bt = false;
}
Symbol 1249 MovieClip [__Packages.BulletStar3] Frame 0
class BulletStar3 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, SoundNameCreate;
function BulletStar3 () {
super();
}
function Start() {
speed = 20;
rad = 35;
uron = _root.UronMag3[_root.updateBuildingMag];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadMag3 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 60;
SoundNameCreate = "Mag.mp3";
}
function onMove() {
uron = _root.UronMag3[_root.updateBuildingMag];
}
}
Symbol 1250 MovieClip [__Packages.BulletStar2] Frame 0
class BulletStar2 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, SoundNameCreate;
function BulletStar2 () {
super();
}
function Start() {
speed = 20;
rad = 0;
uron = _root.UronMag2[_root.updateBuildingMag];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadMag2 + 16;
EffectSlow = 0;
EffectStop = 45;
EffectWeak = 0;
SoundNameCreate = "Mag.mp3";
}
function onMove() {
uron = _root.UronMag2[_root.updateBuildingMag];
}
}
Symbol 1251 MovieClip [__Packages.BulletStar1] Frame 0
class BulletStar1 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, SoundNameCreate;
function BulletStar1 () {
super();
}
function Start() {
speed = 20;
rad = 35;
uron = _root.UronMag1[_root.updateBuildingMag];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadMag1 + 16;
EffectSlow = 120;
EffectStop = 0;
EffectWeak = 0;
SoundNameCreate = "Mag.mp3";
}
function onMove() {
uron = _root.UronMag1[_root.updateBuildingMag];
}
}
Symbol 1252 MovieClip [__Packages.geTower] Frame 0
class geTower extends MovieClip
{
var filters, unloadMovie, _y, _x, _parent, BaskAni, _currentframe, gotoAndPlay;
function geTower () {
super();
_root.TowerList.push(this);
anomation("0");
var _local4 = Array(0);
var _local5 = new flash.filters.DropShadowFilter(4, 45, 0, 0.7, 10, 10, 0.7, 0, false, false, false);
_local4.push(_local5);
filters = _local4;
}
function onEnterFrame() {
if (_root.Pause == true) {
return(undefined);
}
if (_root.MassDead == true) {
unloadMovie();
}
var _local11 = 10000000000;
var _local12;
if (_root["\u0421rockList"].length > 0) {
var _local3 = 0;
while (_local3 < _root["\u0421rockList"].length) {
var _local13 = Math.sqrt(Math.pow(_root["\u0421rockList"][_local3]._x - _x, 2) + Math.pow(_root["\u0421rockList"][_local3]._y - _y, 2));
if (((_local13 <= RadVid) and (_local13 < _local11)) and (_root["\u0421rockList"][_local3].HP > 0)) {
_local12 = _root["\u0421rockList"][_local3];
_local11 = _local13;
}
_local3++;
}
}
AStaim = AStaim - 1;
if (_local12 != undefined) {
var _local13 = Math.sqrt(Math.pow(_x - _local12._x, 2) + Math.pow(_y - _local12._y, 2));
var _local10 = (_local12._x - _x) / _local13;
var _local9 = (_local12._y - _y) / _local13;
var _local8 = ((Math.atan2(_local9, _local10) * 180) / 3.14) + 180;
if (AStaim <= 0) {
AStaim = AttackSpeed;
if ((_local8 >= 0) and (_local8 < 22.5)) {
anomation("7");
} else if ((_local8 >= 22.5) and (_local8 < 67.5)) {
anomation("8");
} else if ((_local8 >= 67.5) and (_local8 < 112.5)) {
anomation("1");
} else if ((_local8 >= 112.5) and (_local8 < 157.5)) {
anomation("2");
} else if ((_local8 >= 157.5) and (_local8 < 202.5)) {
anomation("3");
} else if ((_local8 >= 202.5) and (_local8 < 247.5)) {
anomation("4");
} else if ((_local8 >= 247.5) and (_local8 < 292.5)) {
anomation("5");
} else if ((_local8 >= 292.5) and (_local8 < 337.5)) {
anomation("6");
} else if ((_local8 >= 337.5) and (_local8 <= 360)) {
anomation("7");
}
var _local5 = 0;
while (_local5 < Count) {
var _local7 = _parent.getNextHighestDepth();
var _local6 = _parent.attachMovie(Bullet, "Bullet" + _local7, _local7, {_x:_x, _y:_y});
var _local4 = deflection - random(deflection * 2);
_local6.vx = (_local10 * Math.cos((_local4 / 180) * 3.14)) + (_local9 * Math.cos(((_local4 + 90) / 180) * 3.14));
_local6.vy = (_local10 * Math.sin((_local4 / 180) * 3.14)) + (_local9 * Math.sin(((_local4 + 90) / 180) * 3.14));
_local5++;
}
}
}
AniTime = AniTime + 1;
if (AniTime > 8) {
AniTime = 0;
anomation("0");
} else {
anomation(BaskAni);
}
}
function anomation(Aname) {
if (BaskAni != Aname) {
BaskAni = Aname;
}
if (BaskAni == "1") {
if ((_currentframe < 1) or (_currentframe > 10)) {
AniTime = 0;
(gotoAndPlay(1));// not popped
}
}
if (BaskAni == "2") {
if ((_currentframe < 11) or (_currentframe > 20)) {
AniTime = 0;
(gotoAndPlay(11));// not popped
}
}
if (BaskAni == "3") {
if ((_currentframe < 21) or (_currentframe > 30)) {
AniTime = 0;
(gotoAndPlay(21));// not popped
}
}
if (BaskAni == "4") {
if ((_currentframe < 31) or (_currentframe > 40)) {
AniTime = 0;
(gotoAndPlay(31));// not popped
}
}
if (BaskAni == "5") {
if ((_currentframe < 41) or (_currentframe > 50)) {
AniTime = 0;
(gotoAndPlay(41));// not popped
}
}
if (BaskAni == "6") {
if ((_currentframe < 51) or (_currentframe > 60)) {
AniTime = 0;
(gotoAndPlay(51));// not popped
}
}
if (BaskAni == "7") {
if ((_currentframe < 61) or (_currentframe > 70)) {
AniTime = 0;
(gotoAndPlay(61));// not popped
}
}
if (BaskAni == "8") {
if ((_currentframe < 71) or (_currentframe > 80)) {
AniTime = 0;
(gotoAndPlay(71));// not popped
}
}
if (BaskAni == "0") {
if ((_currentframe < 81) or (_currentframe > 90)) {
(gotoAndPlay(81));// not popped
}
}
}
function unload() {
if (Type == "Bow1") {
_root.Gold = _root.Gold + Math.round(_root.GoldBow1[_root.updateBuildingOnion] / 2);
}
if (Type == "Gun1") {
_root.Gold = _root.Gold + Math.round(_root.GoldGun1[_root.updateBuildingGun] / 2);
}
if (Type == "ES1") {
_root.Gold = _root.Gold + Math.round(_root.GoldES1[_root.updateBuildingES] / 2);
}
if (Type == "Mag1") {
_root.Gold = _root.Gold + Math.round(_root.GoldMag1[_root.updateBuildingMag] / 2);
}
if (Type == "Bow2") {
_root.Gold = _root.Gold + Math.round(_root.GoldBow2[_root.updateBuildingOnion] / 2);
}
if (Type == "Gun2") {
_root.Gold = _root.Gold + Math.round(_root.GoldGun2[_root.updateBuildingGun] / 2);
}
if (Type == "ES2") {
_root.Gold = _root.Gold + Math.round(_root.GoldES2[_root.updateBuildingES] / 2);
}
if (Type == "Mag2") {
_root.Gold = _root.Gold + Math.round(_root.GoldMag2[_root.updateBuildingMag] / 2);
}
if (Type == "Bow3") {
_root.Gold = _root.Gold + Math.round(_root.GoldBow3[_root.updateBuildingOnion] / 2);
}
if (Type == "Gun3") {
_root.Gold = _root.Gold + Math.round(_root.GoldGun3[_root.updateBuildingGun] / 2);
}
if (Type == "ES3") {
_root.Gold = _root.Gold + Math.round(_root.GoldES3[_root.updateBuildingES] / 2);
}
if (Type == "Mag3") {
_root.Gold = _root.Gold + Math.round(_root.GoldMag3[_root.updateBuildingMag] / 2);
}
var _local3 = 0;
while (_local3 < _root.TowerList.length) {
if (_root.TowerList[_local3] == this) {
_root.TowerList.splice(_local3, 1);
break;
}
_local3++;
}
unloadMovie();
}
var Bullet = "dart1";
var RadVid = 120;
var AttackSpeed = 40;
var Count = 1;
var deflection = 0;
var AStaim = 0;
var AniTime = 0;
var AniTime2 = 0;
var Type = "";
}
Symbol 1253 MovieClip [__Packages.TowerMag3] Frame 0
class TowerMag3 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerMag3 () {
super();
Bullet = "Star3";
RadVid = _root.RadMag3;
AttackSpeed = _root.SpeedMag3;
Count = 1;
deflection = 0;
Type = "Mag3";
}
}
Symbol 1254 MovieClip [__Packages.TowerMag2] Frame 0
class TowerMag2 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerMag2 () {
super();
Bullet = "Star2";
RadVid = _root.RadMag2;
AttackSpeed = _root.SpeedMag2;
Count = 1;
deflection = 0;
Type = "Mag2";
}
}
Symbol 1255 MovieClip [__Packages.TowerMag1] Frame 0
class TowerMag1 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerMag1 () {
super();
Bullet = "Star1";
RadVid = _root.RadMag1;
AttackSpeed = _root.SpeedMag1;
Count = 1;
deflection = 0;
Type = "Mag1";
}
}
Symbol 1256 MovieClip [__Packages.BulletNucleus3] Frame 0
class BulletNucleus3 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, Blood, SoundNameDead;
function BulletNucleus3 () {
super();
}
function Start() {
speed = 3;
rad = 50;
uron = _root.UronES3[_root.updateBuildingES];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadES3 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
Blood = true;
SoundNameDead = "Nucleus.mp3";
}
function onMove() {
uron = _root.UronES3[_root.updateBuildingES];
}
}
Symbol 1257 MovieClip [__Packages.BulletNucleus2] Frame 0
class BulletNucleus2 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, Fire, SoundNameDead;
function BulletNucleus2 () {
super();
}
function Start() {
speed = 3;
rad = 25;
uron = _root.UronES2[_root.updateBuildingES];
taimuron = 4;
CollisionStop = true;
RadLifes = _root.RadES2 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
Fire = true;
SoundNameDead = "Nucleus.mp3";
}
function onMove() {
uron = _root.UronES2[_root.updateBuildingES];
}
}
Symbol 1258 MovieClip [__Packages.BulletNucleus1] Frame 0
class BulletNucleus1 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, Blood, SoundNameDead;
function BulletNucleus1 () {
super();
}
function Start() {
speed = 3;
rad = 25;
uron = _root.UronES1[_root.updateBuildingES];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadES1 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
Blood = true;
SoundNameDead = "Nucleus.mp3";
}
function onMove() {
uron = _root.UronES1[_root.updateBuildingES];
}
}
Symbol 1259 MovieClip [__Packages.TowerEjectionSeat3] Frame 0
class TowerEjectionSeat3 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerEjectionSeat3 () {
super();
Bullet = "Nucleus3";
RadVid = _root.RadES3;
AttackSpeed = _root.SpeedES3;
Count = 1;
deflection = 0;
Type = "ES3";
}
}
Symbol 1260 MovieClip [__Packages.TowerEjectionSeat2] Frame 0
class TowerEjectionSeat2 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerEjectionSeat2 () {
super();
Bullet = "Nucleus2";
RadVid = _root.RadES2;
AttackSpeed = _root.SpeedES2;
Count = 1;
deflection = 0;
Type = "ES2";
}
}
Symbol 1261 MovieClip [__Packages.TowerEjectionSeat1] Frame 0
class TowerEjectionSeat1 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerEjectionSeat1 () {
super();
Bullet = "Nucleus1";
RadVid = _root.RadES1;
AttackSpeed = _root.SpeedES1;
Count = 1;
deflection = 0;
Type = "ES1";
}
}
Symbol 1262 MovieClip [__Packages.BulletBullet3] Frame 0
class BulletBullet3 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, Blood, SoundNameCreate;
function BulletBullet3 () {
super();
}
function Start() {
speed = 30;
rad = 0;
uron = _root.UronGun3[_root.updateBuildingGun];
taimuron = 0;
CollisionStop = false;
RadLifes = _root.RadGun3 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
Blood = true;
SoundNameCreate = "Gun.mp3";
}
function onMove() {
uron = _root.UronGun3[_root.updateBuildingGun];
}
}
Symbol 1263 MovieClip [__Packages.BulletBullet2] Frame 0
class BulletBullet2 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, Fire, SoundNameCreate;
function BulletBullet2 () {
super();
}
function Start() {
speed = 10;
rad = 0;
uron = _root.UronGun2[_root.updateBuildingGun];
taimuron = 3;
CollisionStop = true;
RadLifes = _root.RadGun2 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
Fire = true;
SoundNameCreate = "Fire.mp3";
}
function onMove() {
uron = _root.UronGun2[_root.updateBuildingGun];
}
}
Symbol 1264 MovieClip [__Packages.BulletBullet1] Frame 0
class BulletBullet1 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, Blood, SoundNameCreate;
function BulletBullet1 () {
super();
}
function Start() {
speed = 15;
rad = 0;
uron = _root.UronGun1[_root.updateBuildingGun];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadGun1 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
Blood = true;
SoundNameCreate = "Gun.mp3";
}
function onMove() {
uron = _root.UronGun1[_root.updateBuildingGun];
}
}
Symbol 1265 MovieClip [__Packages.BulletDart3] Frame 0
class BulletDart3 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, SoundNameDead;
function BulletDart3 () {
super();
}
function Start() {
speed = 10;
rad = 0;
uron = _root.UronBow3[_root.updateBuildingOnion];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadBow3 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
SoundNameDead = "Bow.mp3";
}
function onMove() {
uron = _root.UronBow3[_root.updateBuildingOnion];
}
}
Symbol 1266 MovieClip [__Packages.BulletDart2] Frame 0
class BulletDart2 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, SoundNameDead;
function BulletDart2 () {
super();
}
function Start() {
speed = 10;
rad = 0;
uron = _root.UronBow2[_root.updateBuildingOnion];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadBow2 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
SoundNameDead = "Bow.mp3";
}
function onMove() {
uron = _root.UronBow2[_root.updateBuildingOnion];
}
}
Symbol 1267 MovieClip [__Packages.BulletDart1] Frame 0
class BulletDart1 extends geBullet
{
var speed, rad, uron, taimuron, CollisionStop, RadLifes, EffectSlow, EffectStop, EffectWeak, SoundNameDead;
function BulletDart1 () {
super();
}
function Start() {
speed = 10;
rad = 0;
uron = _root.UronBow1[_root.updateBuildingOnion];
taimuron = 0;
CollisionStop = true;
RadLifes = _root.RadBow1 + 16;
EffectSlow = 0;
EffectStop = 0;
EffectWeak = 0;
SoundNameDead = "Bow.mp3";
}
function onMove() {
uron = _root.UronBow1[_root.updateBuildingOnion];
}
}
Symbol 1268 MovieClip [__Packages.TowerGun3] Frame 0
class TowerGun3 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerGun3 () {
super();
Bullet = "bullet3";
RadVid = _root.RadGun3;
AttackSpeed = _root.SpeedGun3;
Count = 1;
deflection = 0;
Type = "Gun3";
}
}
Symbol 1269 MovieClip [__Packages.TowerGun2] Frame 0
class TowerGun2 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerGun2 () {
super();
Bullet = "bullet2";
RadVid = _root.RadGun2;
AttackSpeed = _root.SpeedGun2;
Count = 1;
deflection = 0;
Type = "Gun2";
}
}
Symbol 1270 MovieClip [__Packages.TowerGun1] Frame 0
class TowerGun1 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerGun1 () {
super();
Bullet = "bullet1";
RadVid = _root.RadGun1;
AttackSpeed = _root.SpeedGun1;
Count = 1;
deflection = 0;
Type = "Gun1";
}
}
Symbol 1271 MovieClip [__Packages.TowerBow3] Frame 0
class TowerBow3 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerBow3 () {
super();
Bullet = "dart3";
RadVid = _root.RadBow3;
AttackSpeed = _root.SpeedBow3;
Count = 1;
deflection = 0;
Type = "Bow3";
}
}
Symbol 1272 MovieClip [__Packages.TowerBow2] Frame 0
class TowerBow2 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerBow2 () {
super();
Bullet = "dart2";
RadVid = _root.RadBow2;
AttackSpeed = _root.SpeedBow2;
Count = 3;
deflection = 10;
Type = "Bow2";
}
}
Symbol 1273 MovieClip [__Packages.TowerBow1] Frame 0
class TowerBow1 extends geTower
{
var Bullet, RadVid, AttackSpeed, Count, deflection, Type;
function TowerBow1 () {
super();
Bullet = "dart1";
RadVid = _root.RadBow1;
AttackSpeed = _root.SpeedBow1;
Count = 1;
deflection = 0;
Type = "Bow1";
}
}
Symbol 1274 MovieClip [__Packages.CatBos] Frame 0
class CatBos extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, passedNum;
function CatBos () {
super();
}
function Start() {
MaxHP = 10000;
Speed = 0.8;
GoldDead = 15;
notEffect = true;
passedNum = 1;
}
}
Symbol 1275 MovieClip [__Packages.CrockCat3] Frame 0
class CrockCat3 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect;
function CrockCat3 () {
super();
}
function Start() {
MaxHP = 1350;
Speed = 2.5;
GoldDead = 11;
notEffect = false;
}
}
Symbol 1276 MovieClip [__Packages.CrockCat2] Frame 0
class CrockCat2 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect;
function CrockCat2 () {
super();
}
function Start() {
MaxHP = 450;
Speed = 2;
GoldDead = 4;
notEffect = false;
}
}
Symbol 1277 MovieClip [__Packages.CrockCat] Frame 0
class CrockCat extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect;
function CrockCat () {
super();
}
function Start() {
MaxHP = 150;
Speed = 1.5;
GoldDead = 1;
notEffect = false;
}
}
Symbol 1278 MovieClip [__Packages.geBlood] Frame 0
class geBlood extends MovieClip
{
var _xscale, _yscale, _x, _y, unloadMovie, _currentframe, _totalframes, removeMovieClip;
function geBlood () {
super();
Live = 0;
_xscale = 25;
_yscale = 25;
geStart();
_root.CountEffect = _root.CountEffect + 1;
b = false;
if (parent != undefined) {
_x = parent._x;
_y = parent._y;
}
}
function geStart() {
}
function onEnterFrame() {
Live = Live + 1;
if (Live > 50) {
unloadMovie();
}
if (_totalframes == _currentframe) {
onUnload();
}
if (parent != undefined) {
_x = parent._x;
_y = parent._y;
} else {
unloadMovie();
}
}
function onUnload() {
if (b == false) {
_root.CountEffect = _root.CountEffect - 1;
b = true;
removeMovieClip();
}
}
var parent = undefined;
var Live = 0;
var b = false;
}
Symbol 1279 MovieClip [__Packages.geSlowEffect] Frame 0
class geSlowEffect extends geBlood
{
var _xscale, _yscale;
function geSlowEffect () {
super();
}
function geStart() {
_xscale = 50;
_yscale = 50;
}
}
Symbol 1280 MovieClip [__Packages.geStopEffect] Frame 0
class geStopEffect extends geBlood
{
var _xscale, _yscale;
function geStopEffect () {
super();
}
function geStart() {
_xscale = 40;
_yscale = 40;
}
}
Symbol 1281 MovieClip [__Packages.geWeakEffect] Frame 0
class geWeakEffect extends geBlood
{
var _xscale, _yscale;
function geWeakEffect () {
super();
}
function geStart() {
_xscale = 40;
_yscale = 40;
}
}
Symbol 1282 MovieClip [__Packages.LocalMenu] Frame 0
class LocalMenu extends MovieClip
{
var getDepth, swapDepths, removeMovieClip, unloadMovie;
function LocalMenu () {
super();
}
function onEnterFrame() {
var _local3 = _root.getNextHighestDepth();
if ((getDepth() + 2) < _local3) {
swapDepths(_local3);
}
}
function onUnload() {
removeMovieClip();
unloadMovie();
this=undefined;//parameter overwritten
}
}
Symbol 1283 MovieClip [__Packages.geTabRec] Frame 0
class geTabRec extends MovieClip
{
var _alpha, _parent;
function geTabRec () {
super();
_alpha = 0;
}
function Show() {
vid = true;
_root.my_so = SharedObject.getLocal("shared", "/");
_root.tabRec = _root.my_so.data.tabRec;
var _local3 = 0;
while (_local3 < 10) {
if (_root.tabRec[_local3] == undefined) {
_root.tabRec[_local3] = 0;
}
_local3++;
}
if ((_root.Score != 0) and (_root.Score != undefined)) {
_root.tabRec.push(_root.Score);
}
var _local4;
var _local5;
var _local7 = Array(0);
var _local6 = 0;
while (_local6 < 10) {
_local4 = 0;
_local5 = 0;
_local3 = 0;
while (_local3 < 11) {
if (_root.tabRec[_local3] > _local4) {
_local4 = _root.tabRec[_local3];
_local5 = _local3;
}
_local3++;
}
_local7.push(_local4);
_root.tabRec.splice(_local5, 1);
_local6++;
}
_root.tabRec = _local7;
_root.my_so.data.tabRec = _root.tabRec;
_parent.tabrec.tab1.text = _root.tabRec[0];
_parent.tabrec.tab2.text = _root.tabRec[1];
_parent.tabrec.tab3.text = _root.tabRec[2];
_parent.tabrec.tab4.text = _root.tabRec[3];
_parent.tabrec.tab5.text = _root.tabRec[4];
_parent.tabrec.tab6.text = _root.tabRec[5];
_parent.tabrec.tab7.text = _root.tabRec[6];
_parent.tabrec.tab8.text = _root.tabRec[7];
_parent.tabrec.tab9.text = _root.tabRec[8];
_parent.tabrec.tab10.text = _root.tabRec[9];
}
function onEnterFrame() {
if ((vid == true) and (_alpha < 100)) {
_alpha = _alpha + 3;
}
if ((vid == false) and (_alpha > 0)) {
_alpha = _alpha - 3;
}
}
var vid = false;
}
Symbol 1284 MovieClip [__Packages.geBuildingES] Frame 0
class geBuildingES extends MovieClip
{
var But, getNextHighestDepth, attachMovie, eGold, eTower, eText1, createTextField, eText2, eTextFormat, eTextFormatNOT, MousDown, _y, _x;
function geBuildingES () {
super();
But = Array(13);
var _local5 = getNextHighestDepth();
But[0] = attachMovie("update", "updateES", _local5, {_x:0, _y:0});
But[0].stop();
_local5 = getNextHighestDepth();
But[1] = attachMovie("es1", "es1", _local5, {_x:-25, _y:-25});
But[1].stop();
if (_root.MaxUES >= 3) {
_local5 = getNextHighestDepth();
But[2] = attachMovie("es2", "es2", _local5, {_x:0, _y:-25});
But[2].stop();
}
if (_root.MaxUES >= 6) {
_local5 = getNextHighestDepth();
But[3] = attachMovie("es3", "es3", _local5, {_x:25, _y:-25});
But[3].stop();
}
var _local4 = 4;
while (_local4 < 14) {
_local5 = getNextHighestDepth();
But[_local4] = attachMovie("star", "star" + _local5, _local5, {_x:-90 + (_local4 * 11), _y:40});
_local4++;
}
_local5 = getNextHighestDepth();
eGold = attachMovie("eGold", "eGold" + _local5, _local5, {_x:-25, _y:25});
_local5 = getNextHighestDepth();
eTower = attachMovie("eTower", "eTower" + _local5, _local5, {_x:20, _y:25});
eText1 = createTextField("textGold", getNextHighestDepth(), -12, 13, 100, 100);
eText2 = createTextField("textTower", getNextHighestDepth(), 32, 13, 100, 100);
eTextFormat = new TextFormat();
eTextFormatNOT = new TextFormat();
eTextFormat.color = 16763904 /* 0xFFCC00 */;
eTextFormat.size = 20;
eTextFormatNOT.color = 16711680 /* 0xFF0000 */;
eTextFormatNOT.size = 20;
eText1.selectable = false;
eText2.selectable = false;
eText2.text = "1";
eText2.setTextFormat(eTextFormat);
}
function onEnterFrame() {
MouseOn();
}
function MouseOn() {
if ((But[0] == _root.ButDown) and (But[0]._currentframe == (But[0]._totalframes - 1))) {
_root.ButDown = undefined;
MousDown = false;
_root.Gold = _root.Gold - _root.GoldUpdateES[_root.updateBuildingES];
_root.updateBuildingES = _root.updateBuildingES + 1;
}
Vid = false;
But[0]._visible = true;
But[1]._visible = true;
But[2]._visible = true;
But[3]._visible = true;
var _local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - _y, 2));
if ((_root.Gold >= _root.GoldUpdateES[_root.updateBuildingES]) and (_root.updateBuildingES < _root.MaxUES)) {
if (_local4 <= 10) {
if (MousDown == true) {
_root.ButDown = But[0];
if (But[0]._currentframe < 4) {
But[0].gotoAndPlay(4);
}
}
if (_root.ButDown != But[0]) {
But[0].gotoAndStop(2);
}
} else if (_root.ButDown != But[0]) {
But[0].gotoAndStop(1);
}
} else {
But[0].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[0]._x, _y + But[0]._y, _root.DescriptionESUP, 0, 0, 0);
Vid = true;
eGold._visible = true;
eTower._visible = false;
eText1._visible = true;
eText2._visible = false;
eText1.text = _root.GoldUpdateES[_root.updateBuildingES];
if (_root.Gold >= _root.GoldUpdateES[_root.updateBuildingES]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
}
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x - 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldES1[_root.updateBuildingES]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[1])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[1];
Clic = true;
if (But[1]._currentframe < 4) {
But[1].gotoAndPlay(4);
}
}
if (_root.ButDown != But[1]) {
But[1].gotoAndStop(2);
}
} else if (_root.ButDown != But[1]) {
But[1].gotoAndStop(1);
}
} else {
But[1].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[1]._x, _y + But[1]._y, _root.DescriptionES1, _root.UronES1[_root.updateBuildingES], _root.RadES1, _root.SpeedES1);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldES1[_root.updateBuildingES];
if (_root.Gold >= _root.GoldES1[_root.updateBuildingES]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
if (But[2] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldES2[_root.updateBuildingES]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[2])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[2];
Clic = true;
if (But[2]._currentframe < 4) {
But[2].gotoAndPlay(4);
}
}
if (_root.ButDown != But[2]) {
But[2].gotoAndStop(2);
}
} else if (_root.ButDown != But[2]) {
But[2].gotoAndStop(1);
}
} else {
But[2].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[2]._x, _y + But[2]._y, _root.DescriptionES2, _root.UronES2[_root.updateBuildingES], _root.RadES2, _root.SpeedES2);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldES2[_root.updateBuildingES];
if (_root.Gold >= _root.GoldES2[_root.updateBuildingES]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
if (But[3] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x + 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldES3[_root.updateBuildingES]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[3])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[3];
Clic = true;
if (But[3]._currentframe < 4) {
But[3].gotoAndPlay(4);
}
}
if (_root.ButDown != But[3]) {
But[3].gotoAndStop(2);
}
} else if (_root.ButDown != But[3]) {
But[3].gotoAndStop(1);
}
} else {
But[3].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[3]._x, _y + But[3]._y, _root.DescriptionES3, _root.UronES3[_root.updateBuildingES], _root.RadES3, _root.SpeedES3);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldES3[_root.updateBuildingES];
if (_root.Gold >= _root.GoldES3[_root.updateBuildingES]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
var _local3 = 4;
while (_local3 < 14) {
if ((_local3 - 4) < _root.MaxUES) {
But[_local3]._visible = true;
} else {
But[_local3]._visible = false;
}
if ((_local3 - 4) < _root.updateBuildingES) {
But[_local3].gotoAndStop(2);
} else {
But[_local3].gotoAndStop(1);
}
_local3++;
}
if (Vid == false) {
eGold._visible = false;
eTower._visible = false;
eText1._visible = false;
eText2._visible = false;
}
}
function onMouseDown() {
MousDown = true;
}
function onMouseUp() {
MousDown = false;
Clic = false;
}
var Vid = false;
var Clic = false;
}
Symbol 1285 MovieClip [__Packages.geBuildingMag] Frame 0
class geBuildingMag extends MovieClip
{
var But, getNextHighestDepth, attachMovie, eGold, eTower, eText1, createTextField, eText2, eTextFormat, eTextFormatNOT, MousDown, _y, _x;
function geBuildingMag () {
super();
But = Array(13);
var _local5 = getNextHighestDepth();
But[0] = attachMovie("update", "updateMag", _local5, {_x:0, _y:0});
But[0].stop();
_local5 = getNextHighestDepth();
But[1] = attachMovie("mag1", "Mag1", _local5, {_x:-25, _y:-25});
But[1].stop();
if (_root.MaxUMag >= 3) {
_local5 = getNextHighestDepth();
But[2] = attachMovie("mag2", "Mag2", _local5, {_x:0, _y:-25});
But[2].stop();
}
if (_root.MaxUMag >= 6) {
_local5 = getNextHighestDepth();
But[3] = attachMovie("mag3", "Mag3", _local5, {_x:25, _y:-25});
But[3].stop();
}
var _local4 = 4;
while (_local4 < 14) {
_local5 = getNextHighestDepth();
But[_local4] = attachMovie("star", "star" + _local5, _local5, {_x:-90 + (_local4 * 11), _y:40});
_local4++;
}
_local5 = getNextHighestDepth();
eGold = attachMovie("eGold", "eGold" + _local5, _local5, {_x:-25, _y:25});
_local5 = getNextHighestDepth();
eTower = attachMovie("eTower", "eTower" + _local5, _local5, {_x:20, _y:25});
eText1 = createTextField("textGold", getNextHighestDepth(), -12, 13, 100, 100);
eText2 = createTextField("textTower", getNextHighestDepth(), 32, 13, 100, 100);
eTextFormat = new TextFormat();
eTextFormatNOT = new TextFormat();
eTextFormat.color = 16763904 /* 0xFFCC00 */;
eTextFormat.size = 20;
eTextFormatNOT.color = 16711680 /* 0xFF0000 */;
eTextFormatNOT.size = 20;
eText1.selectable = false;
eText2.selectable = false;
eText2.text = "1";
eText2.setTextFormat(eTextFormat);
}
function onEnterFrame() {
MouseOn();
}
function MouseOn() {
if ((But[0] == _root.ButDown) and (But[0]._currentframe == (But[0]._totalframes - 1))) {
_root.ButDown = undefined;
MousDown = false;
_root.Gold = _root.Gold - _root.GoldUpdateMag[_root.updateBuildingMag];
_root.updateBuildingMag = _root.updateBuildingMag + 1;
}
Vid = false;
But[0]._visible = true;
But[1]._visible = true;
But[2]._visible = true;
But[3]._visible = true;
var _local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - _y, 2));
if ((_root.Gold >= _root.GoldUpdateMag[_root.updateBuildingMag]) and (_root.updateBuildingMag < _root.MaxUMag)) {
if (_local4 <= 10) {
if (MousDown == true) {
_root.ButDown = But[0];
if (But[0]._currentframe < 4) {
But[0].gotoAndPlay(4);
}
}
if (_root.ButDown != But[0]) {
But[0].gotoAndStop(2);
}
} else if (_root.ButDown != But[0]) {
But[0].gotoAndStop(1);
}
} else {
But[0].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[0]._x, _y + But[0]._y, _root.DescriptionMagUP, 0, 0, 0);
Vid = true;
eGold._visible = true;
eTower._visible = false;
eText1._visible = true;
eText2._visible = false;
eText1.text = _root.GoldUpdateMag[_root.updateBuildingMag];
if (_root.Gold >= _root.GoldUpdateMag[_root.updateBuildingMag]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
}
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x - 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldMag1[_root.updateBuildingMag]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[1])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[1];
Clic = true;
if (But[1]._currentframe < 4) {
But[1].gotoAndPlay(4);
}
}
if (_root.ButDown != But[1]) {
But[1].gotoAndStop(2);
}
} else if (_root.ButDown != But[1]) {
But[1].gotoAndStop(1);
}
} else {
But[1].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[1]._x, _y + But[1]._y, _root.DescriptionMag1, _root.UronMag1[_root.updateBuildingMag], _root.RadMag1, _root.SpeedMag1);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldMag1[_root.updateBuildingMag];
if (_root.Gold >= _root.GoldMag1[_root.updateBuildingMag]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
if (But[2] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldMag2[_root.updateBuildingMag]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[2])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[2];
Clic = true;
if (But[2]._currentframe < 4) {
But[2].gotoAndPlay(4);
}
}
if (_root.ButDown != But[2]) {
But[2].gotoAndStop(2);
}
} else if (_root.ButDown != But[2]) {
But[2].gotoAndStop(1);
}
} else {
But[2].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[2]._x, _y + But[2]._y, _root.DescriptionMag2, _root.UronMag2[_root.updateBuildingMag], _root.RadMag2, _root.SpeedMag2);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldMag2[_root.updateBuildingMag];
if (_root.Gold >= _root.GoldMag2[_root.updateBuildingMag]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
if (But[3] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x + 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldMag3[_root.updateBuildingMag]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[3])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[3];
Clic = true;
if (But[3]._currentframe < 4) {
But[3].gotoAndPlay(4);
}
}
if (_root.ButDown != But[3]) {
But[3].gotoAndStop(2);
}
} else if (_root.ButDown != But[3]) {
But[3].gotoAndStop(1);
}
} else {
But[3].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[3]._x, _y + But[3]._y, _root.DescriptionMag3, _root.UronMag3[_root.updateBuildingMag], _root.RadMag3, _root.SpeedMag3);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldMag3[_root.updateBuildingMag];
if (_root.Gold >= _root.GoldMag3[_root.updateBuildingMag]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
var _local3 = 4;
while (_local3 < 14) {
if ((_local3 - 4) < _root.MaxUMag) {
But[_local3]._visible = true;
} else {
But[_local3]._visible = false;
}
if ((_local3 - 4) < _root.updateBuildingMag) {
But[_local3].gotoAndStop(2);
} else {
But[_local3].gotoAndStop(1);
}
_local3++;
}
if (Vid == false) {
eGold._visible = false;
eTower._visible = false;
eText1._visible = false;
eText2._visible = false;
}
}
function onMouseDown() {
MousDown = true;
}
function onMouseUp() {
MousDown = false;
Clic = false;
}
var Vid = false;
var Clic = false;
}
Symbol 1286 MovieClip [__Packages.geBuildingGun] Frame 0
class geBuildingGun extends MovieClip
{
var But, getNextHighestDepth, attachMovie, eGold, eTower, eText1, createTextField, eText2, eTextFormat, eTextFormatNOT, MousDown, _y, _x;
function geBuildingGun () {
super();
But = Array(13);
var _local5 = getNextHighestDepth();
But[0] = attachMovie("update", "updategun", _local5, {_x:0, _y:0});
But[0].stop();
_local5 = getNextHighestDepth();
But[1] = attachMovie("gun1", "gun1", _local5, {_x:-25, _y:-25});
But[1].stop();
if (_root.MaxUGun >= 3) {
_local5 = getNextHighestDepth();
But[2] = attachMovie("gun2", "gun2", _local5, {_x:0, _y:-25});
But[2].stop();
}
if (_root.MaxUGun >= 6) {
_local5 = getNextHighestDepth();
But[3] = attachMovie("gun3", "gun3", _local5, {_x:25, _y:-25});
But[3].stop();
}
var _local4 = 4;
while (_local4 < 14) {
_local5 = getNextHighestDepth();
But[_local4] = attachMovie("star", "star" + _local5, _local5, {_x:-90 + (_local4 * 11), _y:40});
_local4++;
}
_local5 = getNextHighestDepth();
eGold = attachMovie("eGold", "eGold" + _local5, _local5, {_x:-25, _y:25});
_local5 = getNextHighestDepth();
eTower = attachMovie("eTower", "eTower" + _local5, _local5, {_x:20, _y:25});
eText1 = createTextField("textGold", getNextHighestDepth(), -12, 13, 100, 100);
eText2 = createTextField("textTower", getNextHighestDepth(), 32, 13, 100, 100);
eTextFormat = new TextFormat();
eTextFormatNOT = new TextFormat();
eTextFormat.color = 16763904 /* 0xFFCC00 */;
eTextFormat.size = 20;
eTextFormatNOT.color = 16711680 /* 0xFF0000 */;
eTextFormatNOT.size = 20;
eText1.selectable = false;
eText2.selectable = false;
eText2.text = "1";
eText2.setTextFormat(eTextFormat);
}
function onEnterFrame() {
MouseOn();
}
function MouseOn() {
if ((But[0] == _root.ButDown) and (But[0]._currentframe == (But[0]._totalframes - 1))) {
_root.ButDown = undefined;
MousDown = false;
_root.Gold = _root.Gold - _root.GoldUpdateGun[_root.updateBuildingGun];
_root.updateBuildingGun = _root.updateBuildingGun + 1;
}
Vid = false;
But[0]._visible = true;
But[1]._visible = true;
But[2]._visible = true;
But[3]._visible = true;
var _local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - _y, 2));
if ((_root.Gold >= _root.GoldUpdateGun[_root.updateBuildingGun]) and (_root.updateBuildingGun < _root.MaxUGun)) {
if (_local4 <= 10) {
if (MousDown == true) {
_root.ButDown = But[0];
if (But[0]._currentframe < 4) {
But[0].gotoAndPlay(4);
}
}
if (_root.ButDown != But[0]) {
But[0].gotoAndStop(2);
}
} else if (_root.ButDown != But[0]) {
But[0].gotoAndStop(1);
}
} else {
But[0].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[0]._x, _y + But[0]._y, _root.DescriptionGunUP, 0, 0, 0);
Vid = true;
eGold._visible = true;
eTower._visible = false;
eText1._visible = true;
eText2._visible = false;
eText1.text = _root.GoldUpdateGun[_root.updateBuildingGun];
if (_root.Gold >= _root.GoldUpdateGun[_root.updateBuildingGun]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
}
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x - 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldGun1[_root.updateBuildingGun]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[1])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[1];
Clic = true;
if (But[1]._currentframe < 4) {
But[1].gotoAndPlay(4);
}
}
if (_root.ButDown != But[1]) {
But[1].gotoAndStop(2);
}
} else if (_root.ButDown != But[1]) {
But[1].gotoAndStop(1);
}
} else {
But[1].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[1]._x, _y + But[1]._y, _root.DescriptionGun1, _root.UronGun1[_root.updateBuildingGun], _root.RadGun1, _root.SpeedGun1);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldGun1[_root.updateBuildingGun];
if (_root.Gold >= _root.GoldGun1[_root.updateBuildingGun]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
if (But[2] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldGun2[_root.updateBuildingGun]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[2])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[2];
Clic = true;
if (But[2]._currentframe < 4) {
But[2].gotoAndPlay(4);
}
}
if (_root.ButDown != But[2]) {
But[2].gotoAndStop(2);
}
} else if (_root.ButDown != But[2]) {
But[2].gotoAndStop(1);
}
} else {
But[2].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[2]._x, _y + But[2]._y, _root.DescriptionGun2, _root.UronGun2[_root.updateBuildingGun], _root.RadGun2, _root.SpeedGun2);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldGun2[_root.updateBuildingGun];
if (_root.Gold >= _root.GoldGun2[_root.updateBuildingGun]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
if (But[3] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x + 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldGun3[_root.updateBuildingGun]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[3])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[3];
Clic = true;
if (But[3]._currentframe < 4) {
But[3].gotoAndPlay(4);
}
}
if (_root.ButDown != But[3]) {
But[3].gotoAndStop(2);
}
} else if (_root.ButDown != But[3]) {
But[3].gotoAndStop(1);
}
} else {
But[3].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[3]._x, _y + But[3]._y, _root.DescriptionGun3, _root.UronGun3[_root.updateBuildingGun], _root.RadGun3, _root.SpeedGun3);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldGun3[_root.updateBuildingGun];
if (_root.Gold >= _root.GoldGun3[_root.updateBuildingGun]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
var _local3 = 4;
while (_local3 < 14) {
if ((_local3 - 4) < _root.MaxUGun) {
But[_local3]._visible = true;
} else {
But[_local3]._visible = false;
}
if ((_local3 - 4) < _root.updateBuildingGun) {
But[_local3].gotoAndStop(2);
} else {
But[_local3].gotoAndStop(1);
}
_local3++;
}
if (Vid == false) {
eGold._visible = false;
eTower._visible = false;
eText1._visible = false;
eText2._visible = false;
}
}
function onMouseDown() {
MousDown = true;
}
function onMouseUp() {
MousDown = false;
Clic = false;
}
var Vid = false;
var Clic = false;
}
Symbol 1287 MovieClip [__Packages.geBuildingTree] Frame 0
class geBuildingTree extends MovieClip
{
var But, getNextHighestDepth, attachMovie, eGold, eTower, eText1, createTextField, eText2, eTextFormat, eTextFormatNOT, MousDown, _y, _x;
function geBuildingTree () {
super();
But = Array(13);
var _local4 = getNextHighestDepth();
But[0] = attachMovie("update", "updateTree", _local4, {_x:0, _y:0});
But[0].stop();
_local4 = getNextHighestDepth();
But[1] = attachMovie("Dolor", "dolor", _local4, {_x:0, _y:-25});
But[1].stop();
var _local3 = 4;
while (_local3 < 14) {
_local4 = getNextHighestDepth();
But[_local3] = attachMovie("star", "star" + _local4, _local4, {_x:-90 + (_local3 * 11), _y:40});
_local3++;
}
_local4 = getNextHighestDepth();
eGold = attachMovie("eGold", "eGold" + _local4, _local4, {_x:-25, _y:25});
_local4 = getNextHighestDepth();
eTower = attachMovie("eTower", "eTower" + _local4, _local4, {_x:20, _y:25});
eText1 = createTextField("textGold", getNextHighestDepth(), -12, 13, 100, 100);
eText2 = createTextField("textTower", getNextHighestDepth(), 32, 13, 100, 100);
eTextFormat = new TextFormat();
eTextFormatNOT = new TextFormat();
eTextFormat.color = 16763904 /* 0xFFCC00 */;
eTextFormat.size = 20;
eTextFormatNOT.color = 16711680 /* 0xFF0000 */;
eTextFormatNOT.size = 20;
eText1.selectable = false;
eText2.selectable = false;
eText2.text = "1";
eText2.setTextFormat(eTextFormat);
}
function onEnterFrame() {
MouseOn();
}
function MouseOn() {
if ((But[0] == _root.ButDown) and (But[0]._currentframe == (But[0]._totalframes - 1))) {
_root.ButDown = undefined;
MousDown = false;
_root.Gold = _root.Gold - _root.GoldUpdateTree[_root.updateBuildingTree];
_root.updateBuildingTree = _root.updateBuildingTree + 1;
_root.MaxTower = _root.MaxTower + _root.UpTower[_root.updateBuildingTree];
}
Vid = false;
But[0]._visible = true;
But[1]._visible = true;
var _local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - _y, 2));
if ((_root.Gold >= _root.GoldUpdateTree[_root.updateBuildingTree]) and (_root.updateBuildingTree < _root.MaxUTree)) {
if (_local4 <= 10) {
if (MousDown == true) {
_root.ButDown = But[0];
if (But[0]._currentframe < 4) {
But[0].gotoAndPlay(4);
}
}
if (_root.ButDown != But[0]) {
But[0].gotoAndStop(2);
}
} else if (_root.ButDown != But[0]) {
But[0].gotoAndStop(1);
}
} else {
But[0].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[0]._x, _y + But[0]._y, _root.DescriptionTreeUP, 0, 0, 0);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldUpdateTree[_root.updateBuildingTree];
if (_root.Gold >= _root.GoldUpdateTree[_root.updateBuildingTree]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
eText2.text = "+" + _root.UpTower[_root.updateBuildingTree];
eText2.setTextFormat(eTextFormat);
}
_local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if (_local4 <= 10) {
_root.Help.vids(_x + But[1]._x, _y + But[1]._y, _root.DescriptionTreeSell, 0, 0, 0);
if (((MousDown == true) and (_root.ButDown == But[1])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[1];
Clic = true;
if (But[1]._currentframe < 4) {
But[1].gotoAndPlay(4);
}
}
if (_root.ButDown != But[1]) {
But[1].gotoAndStop(2);
}
} else if (_root.ButDown != But[1]) {
But[1].gotoAndStop(1);
}
var _local3 = 4;
while (_local3 < 14) {
if ((_local3 - 4) < _root.MaxUTree) {
But[_local3]._visible = true;
} else {
But[_local3]._visible = false;
}
if ((_local3 - 4) < _root.updateBuildingTree) {
But[_local3].gotoAndStop(2);
} else {
But[_local3].gotoAndStop(1);
}
_local3++;
}
if (Vid == false) {
eGold._visible = false;
eTower._visible = false;
eText1._visible = false;
eText2._visible = false;
}
}
function onMouseDown() {
MousDown = true;
}
function onMouseUp() {
MousDown = false;
Clic = false;
}
var Vid = false;
var Clic = false;
}
Symbol 1288 MovieClip [__Packages.geBuildingOnion] Frame 0
class geBuildingOnion extends MovieClip
{
var But, getNextHighestDepth, attachMovie, eGold, eTower, eText1, createTextField, eText2, eTextFormat, eTextFormatNOT, MousDown, _y, _x;
function geBuildingOnion () {
super();
But = Array(13);
var _local4 = 0;
while (_local4 < 13) {
But[_local4] = undefined;
_local4++;
}
var _local5 = getNextHighestDepth();
But[0] = attachMovie("update", "updatebow", _local5, {_x:0, _y:0});
But[0].stop();
_local5 = getNextHighestDepth();
But[1] = attachMovie("bow1", "bow1", _local5, {_x:-25, _y:-25});
But[1].stop();
if (_root.MaxUBow >= 3) {
_local5 = getNextHighestDepth();
But[2] = attachMovie("bow2", "bow2", _local5, {_x:0, _y:-25});
But[2].stop();
}
if (_root.MaxUBow >= 6) {
_local5 = getNextHighestDepth();
But[3] = attachMovie("bow3", "bow3", _local5, {_x:25, _y:-25});
But[3].stop();
}
_local4 = 4;
while (_local4 < 14) {
_local5 = getNextHighestDepth();
But[_local4] = attachMovie("star", "star" + _local5, _local5, {_x:-90 + (_local4 * 11), _y:40});
_local4++;
}
_local5 = getNextHighestDepth();
eGold = attachMovie("eGold", "eGold" + _local5, _local5, {_x:-25, _y:25});
_local5 = getNextHighestDepth();
eTower = attachMovie("eTower", "eTower" + _local5, _local5, {_x:20, _y:25});
eText1 = createTextField("textGold", getNextHighestDepth(), -12, 13, 100, 100);
eText2 = createTextField("textTower", getNextHighestDepth(), 32, 13, 100, 100);
eTextFormat = new TextFormat();
eTextFormatNOT = new TextFormat();
eTextFormat.color = 16763904 /* 0xFFCC00 */;
eTextFormat.size = 20;
eTextFormatNOT.color = 16711680 /* 0xFF0000 */;
eTextFormatNOT.size = 20;
eText1.selectable = false;
eText2.selectable = false;
eText2.text = "1";
eText2.setTextFormat(eTextFormat);
}
function onEnterFrame() {
MouseOn();
}
function MouseOn() {
if ((But[0] == _root.ButDown) and (But[0]._currentframe == (But[0]._totalframes - 1))) {
_root.ButDown = undefined;
MousDown = false;
_root.Gold = _root.Gold - _root.GoldUpdateBow[_root.updateBuildingOnion];
_root.updateBuildingOnion = _root.updateBuildingOnion + 1;
}
Vid = false;
But[0]._visible = true;
But[1]._visible = true;
But[2]._visible = true;
But[3]._visible = true;
var _local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - _y, 2));
if ((_root.Gold >= _root.GoldUpdateBow[_root.updateBuildingOnion]) and (_root.updateBuildingOnion < _root.MaxUBow)) {
if (_local4 <= 10) {
if (MousDown == true) {
_root.ButDown = But[0];
if (But[0]._currentframe < 4) {
But[0].gotoAndPlay(4);
}
}
if (_root.ButDown != But[0]) {
But[0].gotoAndStop(2);
}
} else if (_root.ButDown != But[0]) {
But[0].gotoAndStop(1);
}
} else {
But[0].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[0]._x, _y + But[0]._y, _root.DescriptionBowUP, 0, 0, 0);
Vid = true;
eGold._visible = true;
eTower._visible = false;
eText1._visible = true;
eText2._visible = false;
eText1.text = _root.GoldUpdateBow[_root.updateBuildingOnion];
if (_root.Gold >= _root.GoldUpdateBow[_root.updateBuildingOnion]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
}
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x - 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldBow1[_root.updateBuildingOnion]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[1])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[1];
Clic = true;
if (But[1]._currentframe < 4) {
But[1].gotoAndPlay(4);
}
}
if (_root.ButDown != But[1]) {
But[1].gotoAndStop(2);
}
} else if (_root.ButDown != But[1]) {
But[1].gotoAndStop(1);
}
} else {
But[1].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[1]._x, _y + But[1]._y, _root.DescriptionBow1, _root.UronBow1[_root.updateBuildingOnion], _root.RadBow1, _root.SpeedBow1);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldBow1[_root.updateBuildingOnion];
if (_root.Gold >= _root.GoldBow1[_root.updateBuildingOnion]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
if (But[2] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - _x, 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldBow2[_root.updateBuildingOnion]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[2])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[2];
Clic = true;
if (But[2]._currentframe < 4) {
But[2].gotoAndPlay(4);
}
}
if (_root.ButDown != But[2]) {
But[2].gotoAndStop(2);
}
} else if (_root.ButDown != But[2]) {
But[2].gotoAndStop(1);
}
} else {
But[2].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[2]._x, _y + But[2]._y, _root.DescriptionBow2, _root.UronBow2[_root.updateBuildingOnion], _root.RadBow2, _root.SpeedBow2);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldBow2[_root.updateBuildingOnion];
if (_root.Gold >= _root.GoldBow2[_root.updateBuildingOnion]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
if (But[3] != undefined) {
_local4 = Math.sqrt(Math.pow(_root._xmouse - (_x + 25), 2) + Math.pow(_root._ymouse - (_y - 25), 2));
if ((_root.Gold >= _root.GoldBow3[_root.updateBuildingOnion]) and (_root.TowerList.length < _root.MaxTower)) {
if (_local4 <= 10) {
if (((MousDown == true) and (_root.ButDown == But[3])) and (Clic == false)) {
MousDown = false;
_root.ButDown = undefined;
Clic = true;
}
if (MousDown == true) {
_root.ButDown = But[3];
Clic = true;
if (But[3]._currentframe < 4) {
But[3].gotoAndPlay(4);
}
}
if (_root.ButDown != But[3]) {
But[3].gotoAndStop(2);
}
} else if (_root.ButDown != But[3]) {
But[3].gotoAndStop(1);
}
} else {
But[3].gotoAndStop(3);
}
if (_local4 <= 10) {
_root.Help.vids(_x + But[3]._x, _y + But[3]._y, _root.DescriptionBow3, _root.UronBow3[_root.updateBuildingOnion], _root.RadBow3, _root.SpeedBow3);
Vid = true;
eGold._visible = true;
eTower._visible = true;
eText1._visible = true;
eText2._visible = true;
eText1.text = _root.GoldBow3[_root.updateBuildingOnion];
if (_root.Gold >= _root.GoldBow3[_root.updateBuildingOnion]) {
eText1.setTextFormat(eTextFormat);
} else {
eText1.setTextFormat(eTextFormatNOT);
}
if (_root.TowerList.length < _root.MaxTower) {
eText2.setTextFormat(eTextFormat);
} else {
eText2.setTextFormat(eTextFormatNOT);
}
}
}
var _local3 = 4;
while (_local3 < 14) {
if ((_local3 - 4) < _root.MaxUBow) {
But[_local3]._visible = true;
} else {
But[_local3]._visible = false;
}
if ((_local3 - 4) < _root.updateBuildingOnion) {
But[_local3].gotoAndStop(2);
} else {
But[_local3].gotoAndStop(1);
}
_local3++;
}
if (Vid == false) {
eGold._visible = false;
eTower._visible = false;
eText1._visible = false;
eText2._visible = false;
}
}
function onMouseDown() {
MousDown = true;
}
function onMouseUp() {
MousDown = false;
Clic = false;
}
var Vid = false;
var Clic = false;
}
Symbol 1289 MovieClip [__Packages.geStart] Frame 0
class geStart extends MovieClip
{
var ListName, ListCount, ListTime, _visible, _y, _x;
function geStart () {
super();
ListName = Array(0);
ListCount = Array(0);
ListTime = Array(0);
_visible = false;
}
function onNext() {
Time = ListTime[Index];
}
function onEnterFrame() {
if (_root.Pause == true) {
return(undefined);
}
if ((ListName.length > 0) and (Index < ListName.length)) {
Time = Time + 1;
if (Time >= ListTime[Index]) {
Time = 0;
Count++;
var _local4 = _root.getNextHighestDepth();
if (ListName[Index] != "GOLD") {
_root.attachMovie(ListName[Index], (ListName[Index] + " ") + _local4, _local4, {_x:_x, _y:_y});
} else {
_root.Gold = _root.Gold + ListCount[Index];
Count = ListCount[Index];
}
if (Count >= ListCount[Index]) {
Index++;
Count = 0;
}
}
}
if (((_root.passed <= 0) and (tempobj == undefined)) and (_root._currentframe != _root._totalframes)) {
tempobj = _root.attachMovie("GameOwer", "GameOwer" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
var _local3 = false;
if ((Index >= ListName.length) and (_root["\u0421rockList"].length == 0)) {
_local3 = true;
}
if (_root.passed <= 0) {
_local3 = true;
}
if (((_local3 == true) and (tempobj == undefined)) and (_root._currentframe == _root._totalframes)) {
tempobj = _root.attachMovie("EndGame", "EndGame" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
if (((Index >= ListName.length) and (_root["\u0421rockList"].length == 0)) and (tempobj == undefined)) {
tempobj = _root.attachMovie("End", "End" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
function AddAttack(NameCrock, CountCrock, TimeNewCrock) {
ListName.push(NameCrock);
ListCount.push(CountCrock);
ListTime.push(TimeNewCrock);
}
var Index = 0;
var Count = 0;
var Time = 0;
var timeNext = 0;
var tempobj = undefined;
}
Symbol 1290 MovieClip [__Packages.geWay] Frame 0
class geWay extends MovieClip
{
var _visible;
function geWay () {
super();
_root.WayList.push(this);
_visible = false;
}
function onEnterFrame() {
}
}
Symbol 1291 MovieClip [__Packages.eAppearance] Frame 0
class eAppearance extends MovieClip
{
var _alpha, getDepth, swapDepths, eText, createTextField, getNextHighestDepth, eTextFormat;
function eAppearance () {
super();
_alpha = 100;
var _local4 = _root.getNextHighestDepth();
if ((getDepth() + 2) < _local4) {
swapDepths(_local4);
}
eText = createTextField("eText", getNextHighestDepth(), 0, 200, 640, 500);
eTextFormat = new TextFormat();
eTextFormat.color = 0;
eTextFormat.size = 25;
eText.wordWrap = true;
eText.selectable = false;
}
function onMouseDown() {
index = _root.ShowText.length;
}
function onEnterFrame() {
if ((_alpha > 0) and (index >= _root.ShowText.length)) {
_alpha = _alpha - 2;
}
if (_alpha > 0) {
ttime2 = ttime2 + 1;
if (ttime2 >= (time / 32)) {
ttime2 = 0;
if (inv == true) {
eTextFormat.color = eTextFormat.color - 1118481;
}
if (inv == false) {
eTextFormat.color = eTextFormat.color + 1118481;
}
if (eTextFormat.color == 0) {
inv = false;
if (index < _root.ShowText.length) {
index++;
eText._x = 0;
}
}
if (eTextFormat.color == 16777215) {
inv = true;
}
}
eText._visible = true;
eText.text = _root.ShowText[index];
eText.setTextFormat(eTextFormat);
eText._x = eText._x + 1;
var _local3 = _root.getNextHighestDepth();
if ((getDepth() + 2) < _local3) {
swapDepths(_local3);
}
}
if (index >= _root.ShowText.length) {
eText._visible = false;
}
}
var time = 100;
var ttime2 = 0;
var index = 0;
var inv = false;
}
Symbol 1292 MovieClip [__Packages.geBriliance] Frame 0
class geBriliance extends MovieClip
{
var _xscale, _yscale, taim, gotoAndStop, play;
function geBriliance () {
super();
_xscale = 5;
_yscale = 5;
taim = 15 + random(200);
(gotoAndStop(11));// not popped
}
function onEnterFrame() {
taim = taim - 1;
if (taim <= 0) {
taim = 15 + random(200);
(play());// not popped
}
}
}
Symbol 1293 MovieClip [__Packages.geCredits] Frame 0
class geCredits extends MovieClip
{
var _alpha;
function geCredits () {
super();
_alpha = 0;
}
function onEnterFrame() {
if ((vid == true) and (_alpha < 100)) {
_alpha = _alpha + 3;
}
if ((vid == false) and (_alpha > 0)) {
_alpha = _alpha - 3;
}
}
var vid = false;
}
Symbol 1294 MovieClip [__Packages.geCursor] Frame 0
class geCursor extends MovieClip
{
var attachMovie, getNextHighestDepth, _xscale, _yscale, _visible, _x, _y, getDepth, swapDepths, gotoAndStop, _currentframe, gotoAndPlay, _parent;
function geCursor () {
super();
VidRad = attachMovie("Radius", "Radius", getNextHighestDepth());
VidRad._visible = false;
_xscale = 80;
_yscale = 80;
}
function onEnterFrame() {
if (_root.Pause == true) {
_visible = false;
VidRad._visible = false;
} else {
_visible = true;
}
if (_root._currentframe == 1) {
VidRad._visible = false;
}
var _local7 = false;
var _local12 = false;
var _local13 = false;
var _local5;
var _local9 = 0;
var _local11 = 99999999999;
_x = Math.round(_root._xmouse / 16) * 16;
_y = Math.round(_root._ymouse / 16) * 16;
var _local3 = 0;
while (_local3 < _root.WayList.length) {
if (_root.WayList[_local3]._y > _local9) {
_local9 = _root.WayList[_local3]._y;
}
if (_root.WayList[_local3]._y < _local11) {
_local11 = _root.WayList[_local3]._y;
}
_local3++;
}
if ((((_y > _local9) or (_y < _local11)) or (_x < 16)) or (_x > 624)) {
_local7 = true;
_local13 = true;
}
var _local4 = _root.getNextHighestDepth();
if ((getDepth() + 1) < _local4) {
swapDepths(_local4);
}
_local3 = 0;
while (_local3 < _root.WayList.length) {
var _local8 = Math.sqrt(Math.pow(_x - _root.WayList[_local3]._x, 2) + Math.pow(_y - _root.WayList[_local3]._y, 2));
if (_local8 < 28) {
_local7 = true;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root.TowerList.length) {
var _local8 = Math.sqrt(Math.pow(_x - _root.TowerList[_local3]._x, 2) + Math.pow(_y - _root.TowerList[_local3]._y, 2));
var _local6 = 30;
if (_root.ButDown._name == "dolor") {
_local6 = 16;
}
if (_local8 <= _local6) {
_local7 = true;
_local5 = _root.TowerList[_local3];
_local12 = true;
break;
}
_local3++;
}
if ((_root.ButDown != undefined) and (_local7 == true)) {
(gotoAndStop(20));// not popped
}
if ((_root.ButDown != undefined) and (_local7 == false)) {
if ((_currentframe <= 1) or (_currentframe >= 19)) {
(gotoAndPlay(2));// not popped
}
}
if (_root.ButDown == undefined) {
(gotoAndStop(1));// not popped
}
if (_y > _local9) {
(gotoAndStop(1));// not popped
}
if (((_root.ButDown != undefined) and (_root.ButDown._name == "dolor")) and (_local13 == false)) {
if (_local12 == true) {
(gotoAndStop(21));// not popped
} else {
(gotoAndStop(22));// not popped
}
}
if (((((MouseDown == true) and (_root.ButDown != undefined)) and (_local12 == true)) and (_local5 != undefined)) and (_root.ButDown._name == "dolor")) {
MouseDown = false;
_local5.unload();
_root.ButDown = undefined;
}
if ((_root.ButDown != undefined) and (_currentframe != 1)) {
var _local10 = 0;
if (_root.ButDown._name == "bow1") {
_local10 = _root.RadBow1;
}
if (_root.ButDown._name == "bow2") {
_local10 = _root.RadBow2;
}
if (_root.ButDown._name == "bow3") {
_local10 = _root.RadBow3;
}
if (_root.ButDown._name == "gun1") {
_local10 = _root.RadGun1;
}
if (_root.ButDown._name == "gun2") {
_local10 = _root.RadGun2;
}
if (_root.ButDown._name == "gun3") {
_local10 = _root.RadGun3;
}
if (_root.ButDown._name == "es1") {
_local10 = _root.RadES1;
}
if (_root.ButDown._name == "es2") {
_local10 = _root.RadES2;
}
if (_root.ButDown._name == "es3") {
_local10 = _root.RadES3;
}
if (_root.ButDown._name == "Mag1") {
_local10 = _root.RadMag1;
}
if (_root.ButDown._name == "Mag2") {
_local10 = _root.RadMag2;
}
if (_root.ButDown._name == "Mag3") {
_local10 = _root.RadMag3;
}
VidRad._xscale = (_local10 * 2) + 32;
VidRad._yscale = (_local10 * 2) + 32;
VidRad._visible = true;
} else {
VidRad._visible = false;
}
if ((_local12 == true) and (_local5 != undefined)) {
var _local10 = 0;
if (_local5.Type == "Bow1") {
_local10 = _root.RadBow1;
}
if (_local5.Type == "Bow2") {
_local10 = _root.RadBow2;
}
if (_local5.Type == "Bow3") {
_local10 = _root.RadBow3;
}
if (_local5.Type == "Gun1") {
_local10 = _root.RadGun1;
}
if (_local5.Type == "Gun2") {
_local10 = _root.RadGun2;
}
if (_local5.Type == "Gun3") {
_local10 = _root.RadGun3;
}
if (_local5.Type == "ES1") {
_local10 = _root.RadES1;
}
if (_local5.Type == "ES2") {
_local10 = _root.RadES2;
}
if (_local5.Type == "ES3") {
_local10 = _root.RadES3;
}
if (_local5.Type == "Mag1") {
_local10 = _root.RadMag1;
}
if (_local5.Type == "Mag2") {
_local10 = _root.RadMag2;
}
if (_local5.Type == "Mag3") {
_local10 = _root.RadMag3;
}
VidRad._xscale = (_local10 * 2) + 32;
VidRad._yscale = (_local10 * 2) + 32;
_x = _local5._x;
_y = _local5._y;
VidRad._visible = true;
} else if (_root.ButDown == undefined) {
VidRad._visible = false;
}
if (((MouseDown == true) and (_root.ButDown != undefined)) and (_local7 == false)) {
MouseDown = false;
_local4 = _parent.getNextHighestDepth();
if (_root.ButDown._name == "bow1") {
_parent.attachMovie("tBow1", "tBow1" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldBow1[_root.updateBuildingOnion];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "bow2") {
_parent.attachMovie("tBow2", "tBow2" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldBow2[_root.updateBuildingOnion];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "bow3") {
_parent.attachMovie("tBow3", "tBow3" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldBow3[_root.updateBuildingOnion];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "gun1") {
_parent.attachMovie("tGun1", "tGun1" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldGun1[_root.updateBuildingGun];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "gun2") {
_parent.attachMovie("tGun2", "tGun2" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldGun2[_root.updateBuildingGun];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "gun3") {
_parent.attachMovie("tGun3", "tGun3" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldGun3[_root.updateBuildingGun];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "es1") {
_parent.attachMovie("tEjectionSeat1", "tEjectionSeat1" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldES1[_root.updateBuildingES];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "es2") {
_parent.attachMovie("tEjectionSeat2", "tEjectionSeat2" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldES2[_root.updateBuildingES];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "es3") {
_parent.attachMovie("tEjectionSeat3", "tEjectionSeat3" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldES3[_root.updateBuildingES];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "Mag1") {
_parent.attachMovie("tMag1", "tMag1" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldMag1[_root.updateBuildingMag];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "Mag2") {
_parent.attachMovie("tMag2", "tMag2" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldMag2[_root.updateBuildingMag];
_root.ButDown = undefined;
}
if (_root.ButDown._name == "Mag3") {
_parent.attachMovie("tMag3", "tMag3" + _local4, _local4, {_x:_x, _y:_y});
_root.Gold = _root.Gold - _root.GoldMag3[_root.updateBuildingMag];
_root.ButDown = undefined;
}
}
}
function onMouseDown() {
MouseDown = true;
}
function onMouseUp() {
MouseDown = false;
}
var MouseDown = false;
var VidRad = undefined;
}
Symbol 1295 MovieClip [__Packages.geSound] Frame 0
class geSound extends MovieClip
{
var SoundLogo, SoundFon, SoundCall, _y, _x, _currentframe, gotoAndStop;
function geSound () {
super();
SoundLogo = new Sound();
SoundLogo.attachSound("tower");
SoundLogo.start();
}
function ResetEffects() {
}
function onEnterFrame() {
if (_root._currentframe < 3) {
return(undefined);
}
if (oneStart == false) {
oneStart = true;
SoundFon = new Sound(_root);
SoundFon.setVolume(65);
SoundFon.attachSound("fon0.mp3");
SoundFon.start();
SoundCall = new Sound(_root);
SoundCall.attachSound("Call.mp3");
var _local3 = 0;
while (_local3 < 10) {
SoundMas[_local3] = new Sound(_root);
_local3++;
}
SoundMas[0].attachSound("Bow.mp3");
SoundMas[1].attachSound("Bow.mp3");
SoundMas[2].attachSound("Fire.mp3");
SoundMas[3].attachSound("Fire.mp3");
SoundMas[4].attachSound("Gun.mp3");
SoundMas[5].attachSound("Gun.mp3");
SoundMas[6].attachSound("Mag.mp3");
SoundMas[7].attachSound("Mag.mp3");
SoundMas[8].attachSound("Nucleus.mp3");
SoundMas[9].attachSound("Nucleus.mp3");
}
if (SoundFon.duration == SoundFon.position) {
SoundFon.start();
}
var _local4 = Math.sqrt(Math.pow(_x - _root._xmouse, 2) + Math.pow(_y - _root._ymouse, 2));
if ((_local4 < 12.5) and (MousDown == true)) {
MousDown = false;
if (_currentframe == 1) {
(gotoAndStop(2));// not popped
} else {
(gotoAndStop(1));// not popped
}
}
if (_currentframe == 1) {
SoundFon.setVolume(65);
} else {
SoundFon.setVolume(0);
}
}
function onSoundCall() {
if ((SoundCall.duration == SoundCall.position) or (SoundCall.position == 0)) {
SoundCall.start();
}
}
function onSoundEffects(SounName) {
if (SounName == "Bow.mp3") {
if ((SoundMas[0].duration == SoundMas[0].position) or (SoundMas[0].position == 0)) {
SoundMas[0].start();
} else if ((SoundMas[1].duration == SoundMas[1].position) or (SoundMas[1].position == 0)) {
SoundMas[1].start();
}
}
if (SounName == "Fire.mp3") {
if ((SoundMas[2].duration == SoundMas[2].position) or (SoundMas[2].position == 0)) {
SoundMas[2].start();
} else if ((SoundMas[3].duration == SoundMas[3].position) or (SoundMas[3].position == 0)) {
SoundMas[3].start();
}
}
if (SounName == "Gun.mp3") {
if ((SoundMas[4].duration == SoundMas[4].position) or (SoundMas[4].position == 0)) {
SoundMas[4].start();
} else if ((SoundMas[5].duration == SoundMas[5].position) or (SoundMas[5].position == 0)) {
SoundMas[5].start();
}
}
if (SounName == "Mag.mp3") {
if ((SoundMas[6].duration == SoundMas[6].position) or (SoundMas[6].position == 0)) {
SoundMas[6].start();
} else if ((SoundMas[7].duration == SoundMas[7].position) or (SoundMas[7].position == 0)) {
SoundMas[7].start();
}
}
if (SounName == "Nucleus.mp3") {
if ((SoundMas[8].duration == SoundMas[8].position) or (SoundMas[8].position == 0)) {
SoundMas[8].start();
} else if ((SoundMas[9].duration == SoundMas[9].position) or (SoundMas[9].position == 0)) {
SoundMas[9].start();
}
}
}
function onMouseDown() {
MousDown = true;
}
function onMouseUp() {
MousDown = false;
}
var SoundMas = Array(10);
var MaxFon = 1;
var MousDown = false;
var oneStart = false;
}
Symbol 1296 MovieClip [__Packages.BoneDragon3] Frame 0
class BoneDragon3 extends geСrock
{
var MaxHP, Speed, GoldDead, notEffect, _xscale, _yscale;
function BoneDragon3 () {
super();
}
function Start() {
MaxHP = 7500;
Speed = 1.3;
GoldDead = 14;
notEffect = false;
_xscale = 75;
_yscale = 75;
}
}
Symbol 1297 MovieClip [__Packages.geHelp] Frame 0
class geHelp extends MovieClip
{
var _visible, _x, _y, getDepth, swapDepths;
function geHelp () {
super();
_visible = false;
}
function vids(ox, oy, Text, d, r, s) {
if (_root.Pause == true) {
_visible = false;
return(undefined);
}
_visible = true;
tim = 0;
vid = true;
_x = ox;
_y = oy;
if (_x > 540) {
_x = 540;
}
if (_x < 85) {
_x = 85;
}
var _local3 = _root.Help.Description;
_local3.text = Text;
var _local6 = _root.Help.p1;
var _local5 = _root.Help.p2;
var _local4 = _root.Help.p3;
var _local7 = _root.Help.h_grup;
_local6._xscale = (d / _root.MaxDamage) * 100;
_local5._xscale = (r / _root.MaxDistance) * 100;
_local4._xscale = 100 - ((s / _root.MaxSpeed) * 100);
if (((d == 0) and (r == 0)) and (s == 0)) {
_local6._visible = false;
_local5._visible = false;
_local4._visible = false;
_local7._visible = false;
_local3._y = -110;
} else {
_local6._visible = true;
_local5._visible = true;
_local4._visible = true;
_local7._visible = true;
_local3._y = -70;
}
}
function onEnterFrame() {
if (vid == true) {
tim = tim + 1;
}
if (tim > 5) {
tim = 0;
vid = false;
}
_visible = vid;
var _local3 = _root.getNextHighestDepth();
if ((getDepth() + 3) < _local3) {
swapDepths(_local3);
}
}
var vid = false;
var tim = 0;
}
Symbol 1157 Button
on (release) {
_root.play();
_root.sound.onSoundCall();
}
Symbol 1159 Button
on (release) {
_root.sound.onSoundCall();
if (_root.Credits.vid == true) {
_root.Credits.vid = false;
} else {
_root.Credits.vid = true;
_root.tabrec.vid = false;
}
}
Symbol 1162 MovieClip Frame 1
stop();
Symbol 1162 MovieClip Frame 2
stop();
Symbol 1164 Button
on (release) {
_root.levelgame = 2;
_root.kof = 1.5;
}
Symbol 1166 Button
on (release) {
_root.levelgame = 0;
_root.kof = 0.5;
}
Symbol 1168 Button
on (release) {
_root.levelgame = 1;
_root.kof = 1;
}
Instance of Symbol 1162 MovieClip in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelgame == 0) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1162 MovieClip in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelgame == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1162 MovieClip in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelgame == 2) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 1171 Button
on (release) {
if (_root.tempLM2 == undefined) {
_root.sound.onSoundCall();
_root.tempLM2 = _root.attachMovie("Load", "Load" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
Symbol 1173 Button
on (release) {
_root.sound.onSoundCall();
if (_root.tabrec.vid == true) {
_root.tabrec.vid = false;
} else {
_root.Credits.vid = false;
_root.tabrec.vid = true;
_root.tabrec.Show();
}
}
Symbol 1175 Button
on (release) {
_root.loadFrame = 14;
_root.play();
_root.sound.onSoundCall();
}
Symbol 1178 Button
on (release) {
getURL ("http://playtowerdefensegames.com", _blank);
}
Symbol 1180 Button
on (release) {
getURL ("http://playtowerdefensegames.com", _blank);
}
Symbol 1182 Button
on (release) {
getURL ("http://www.playtowerdefensegames.com/blog/2009/04/11/tree-of-life-video-guidetree-of-life-video-guide", _blank);
}
Symbol 1185 MovieClip Frame 1
Eclips.gotoAndPlay(2);
stop();
Symbol 1194 MovieClip Frame 1
gold.text = _root.Gold;
passed.text = _root.passed;
tower.text = (_root.TowerList.length + "/") + _root.MaxTower;
gold.selectable = false;
passed.selectable = false;
tower.selectable = false;
Symbol 1200 Button
on (release) {
_root.Start.onNext();
}
Symbol 1203 MovieClip Frame 1
var count = 0;
_visible = false;
play();
Symbol 1203 MovieClip Frame 2
if (_root["\u0421rockList"].length == 0) {
count = count + 1;
if (count > 5) {
_visible = true;
} else {
_visible = false;
}
} else {
count = 0;
_visible = false;
}
Symbol 1203 MovieClip Frame 20
gotoAndPlay (2);
Symbol 1213 MovieClip [Help] Frame 1
#initclip 131
Object.registerClass("Help", geHelp);
#endinitclip
Symbol 1216 MovieClip Frame 1
Sc.text = "Score:" + _root.Score;
Symbol 1216 MovieClip Frame 2
gotoAndPlay (1);