Section 1
//bar_root_18 (tree_troopers_520128PB_fla.bar_root_18)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package tree_troopers_520128PB_fla
Section 2
//BG_2 (tree_troopers_520128PB_fla.BG_2)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).gotoAndStop(2);
}
}
}//package tree_troopers_520128PB_fla
Section 3
//LOGOEND_43 (tree_troopers_520128PB_fla.LOGOEND_43)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class LOGOEND_43 extends MovieClip {
public function LOGOEND_43(){
addFrameScript(132, frame133);
}
function frame133(){
MovieClip(root).play();
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 4
//LOGOPRELOAD_0_23 (tree_troopers_520128PB_fla.LOGOPRELOAD_0_23)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_0_23 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_0_23(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 5
//LOGOPRELOAD_1_27 (tree_troopers_520128PB_fla.LOGOPRELOAD_1_27)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_1_27 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_1_27(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 6
//LOGOPRELOAD_2_30 (tree_troopers_520128PB_fla.LOGOPRELOAD_2_30)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_2_30 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_2_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 7
//LOGOPRELOAD_3_32 (tree_troopers_520128PB_fla.LOGOPRELOAD_3_32)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_3_32 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_3_32(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 8
//LOGOPRELOAD_4_34 (tree_troopers_520128PB_fla.LOGOPRELOAD_4_34)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_4_34 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_4_34(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 9
//LOGOPRELOAD_5_36 (tree_troopers_520128PB_fla.LOGOPRELOAD_5_36)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_5_36 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_5_36(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 10
//LOGOPRELOAD_6_38 (tree_troopers_520128PB_fla.LOGOPRELOAD_6_38)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_6_38 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_6_38(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 11
//LOGOPRELOAD_7_40 (tree_troopers_520128PB_fla.LOGOPRELOAD_7_40)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_7_40 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_7_40(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package tree_troopers_520128PB_fla
Section 12
//MainTimeline (tree_troopers_520128PB_fla.MainTimeline)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var playMoreGameSub;
public var allsound;
public var stageclear:MovieClip;
public var pass;
public var submit;
public var b_start:SimpleButton;
public var submitClick;
public var b_highscores:SimpleButton;
public var mana:TextField;
public var b_mfz_logo:SimpleButton;
public var MoveAPI;
public var j;
public var d;
public var b;
public var GHMOVEAPI;
public var guidearrow:MovieClip;
public var b_submit:SimpleButton;
public var i;
public var score:TextField;
public var dx;
public var rep:TextField;
public var r;
public var ux;
public var b_mfz:SimpleButton;
public var buildgage:MovieClip;
public var hightScore;
public var uy;
public var info:MovieClip;
public var b_next:SimpleButton;
public var dy;
public var mousepic:MovieClip;
public var soundgage:MovieClip;
public var rside:SimpleButton;
public var now;
public var playMoreGameTitle;
public var myLoader:URLLoader;
public var disable_game;
public var EPOCH_TIME;
public var playername:TextField;
public var gage_mana:gage;
public var hp:TextField;
public var MoFunZone_path;
public var ratro:TextField;
public var b_moregames2:SimpleButton;
public var b_moregames1:SimpleButton;
public var b_preload:SimpleButton;
public var dlg0:MovieClip;
public var dlg1:MovieClip;
public var dlg2:MovieClip;
public var dlg7:MovieClip;
public var dlg3:MovieClip;
public var b_menu:SimpleButton;
public var b_preloadRelease;
public var MapAPI;
public var bmenuClick;
public var dlg6:MovieClip;
public var bbuild:SimpleButton;
public var GHMAPAPI;
public var gage_hp:gage;
public var tot;
public var timebonus:TextField;
public var b_nextPress;
public var build_dlg:MovieClip;
public var MoFunZone_URL;
public var g_root;
public var bok:SimpleButton;
public var lside:SimpleButton;
public var bstart_click;
public var gameover:MovieClip;
public var game:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 50, frame51, 51, frame52, 53, frame54, 54, frame55, 55, frame56, 64, frame65, 74, frame75, 84, frame85, 94, frame95, 104, frame105, 114, frame115, 124, frame125, 134, frame135, 143, frame144, 153, frame154, 164, frame165, 174, frame175, 184, frame185, 194, frame195, 204, frame205, 215, frame216, 225, frame226, 235, frame236, 245, frame246, 0xFF, frame256, 265, frame266, 275, frame276, 285, frame286, 294, frame295, 305, frame306, 547, frame548);
}
function frame154(){
stop();
}
function frame276(){
stop();
}
function frame165(){
stop();
}
function frame286(){
stop();
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame175(){
stop();
}
function frame10(){
disable_game = function (){
var url:*;
var request:*;
trace("run disable");
url = "http://www.mofunzone.com/";
request = new URLRequest(url);
try {
navigateToURL(request, "_self");
} catch(e:Error) {
trace("Error occurred!");
};
};
MoFunZone_URL = "http://gamefilez.mofunzone.com/";
MoFunZone_path = loaderInfo.url.substring(0, MoFunZone_URL.length);
if (MoFunZone_path != MoFunZone_URL){
disable_game();
} else {
myLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
myLoader.load(new URLRequest("http://www.mofunzone.com/hotlink/check_online_game.php"));
myLoader.addEventListener(Event.COMPLETE, onDataLoad);
myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus);
};
}
function frame295(){
tot.removeEventListener(Event.ENTER_FRAME, setfocus);
}
function frame185(){
stop();
}
function frame5(){
gotoAndPlay(50);
}
function frame1(){
now = new Date();
EPOCH_TIME = now.getTime();
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
stop();
}
function frame195(){
stop();
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
public function onDataLoad(_arg1:Event){
trace(_arg1.toString());
if (_arg1.target.data.mofunzone_allow_game == "true"){
} else {
trace("xxx");
disable_game();
};
}
function frame52(){
allsound = new Object();
allsound.bmg = new bg();
allsound.completed = new research();
allsound.err = new err();
allsound.enemy = new enemy();
allsound.fac1 = new fac1();
allsound.fac2 = new fac2();
allsound.nuke = new nuke();
allsound.nuke_launce = new nuke_launch();
allsound.research = new completed();
allsound.tree = new tree();
allsound.treeu = new treeu();
play();
}
function frame55(){
SoundMixer.stopAll();
g_root = this;
bstart_click = function (){
g_root.play();
};
b_start.addEventListener("click", bstart_click);
hightScore = function (){
getURL("http://www.mofunzone.com/game_scores/tree_troopers/highscores.shtml", "_blank");
};
b_highscores.addEventListener("click", hightScore);
playMoreGameTitle = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_moregames1.addEventListener("click", playMoreGameTitle);
b_mfz.addEventListener("click", playMoreGameTitle);
b_mfz_logo.addEventListener("click", playMoreGameTitle);
stop();
}
function frame56(){
stop();
tot = this;
b_nextPress = function (){
play();
};
b_next.addEventListener("click", b_nextPress);
tot.addEventListener("keyDown", onKeySkip);
tot.addEventListener(Event.ENTER_FRAME, setfocus);
}
function frame51(){
pass = true;
MoveAPI = new Object();
MoveAPI.GHline = function (){
if (!this.visible){
return;
};
this.x = (this.x + this.__GHLINE.speedx);
this.y = (this.y + this.__GHLINE.speedy);
};
MoveAPI.setLineMove = function (_arg1, _arg2, _arg3){
_arg1.__GHLINE = {};
_arg1.__GHLINE.speedx = _arg2;
_arg1.__GHLINE.speedy = _arg3;
_arg1.mot = MoveAPI.GHline;
};
MoveAPI.GHhoming = function (){
if (!this.visible){
return;
};
this.__GHOMING.lrot2 = this.__GHOMING.lrot;
this.__GHOMING.lrot = this.__GHOMING.rotation;
this.__GHOMING.waypoint = Math.atan(((this.x - this.__GHOMING.targ.x) / (this.__GHOMING.targ.y - this.y)));
if (this.__GHOMING.targ.y > this.y){
this.__GHOMING.waypoint = (this.__GHOMING.waypoint + Math.PI);
};
if (this.__GHOMING.waypoint < 0){
this.__GHOMING.waypoint = (this.__GHOMING.waypoint + (Math.PI * 2));
} else {
if (this.waypoint >= (Math.PI * 2)){
this.__GHOMING.waypoint = (this.__GHOMING.waypoint - (Math.PI * 2));
};
};
this.__GHOMING.rota = (this.__GHOMING.rotation * (Math.PI / 180));
if (this.__GHOMING.rota < 0){
this.__GHOMING.rota = (this.__GHOMING.rota + (Math.PI * 2));
} else {
if (this.__GHOMING.rota >= (Math.PI * 2)){
this.__GHOMING.rota = (this.__GHOMING.rota - (Math.PI * 2));
};
};
this.__GHOMING.orota = (this.__GHOMING.waypoint - this.__GHOMING.rota);
if (this.__GHOMING.orota < 0){
this.__GHOMING.orota = (this.__GHOMING.orota + (Math.PI * 2));
} else {
if (this.__GHOMING.orota >= (Math.PI * 2)){
this.__GHOMING.orota = (this.__GHOMING.orota - (Math.PI * 2));
};
};
if ((((this.__GHOMING.rota < ((this.__GHOMING.waypoint - (this.__GHOMING.turning / 2)) + this.__GHOMING.turning))) && ((this.__GHOMING.rota > (this.__GHOMING.waypoint - (this.__GHOMING.turning / 2)))))){
this.__GHOMING.rota = this.__GHOMING.waypoint;
} else {
if (this.__GHOMING.orota <= Math.PI){
this.__GHOMING.rota = (this.__GHOMING.rota + this.__GHOMING.turning);
} else {
this.__GHOMING.rota = (this.__GHOMING.rota - this.__GHOMING.turning);
};
};
if (this.__GHOMING.rotation == 0){
this.__GHOMING.rotation++;
this.__GHOMING.rota = (this.__GHOMING.rotation * (Math.PI / 180));
};
this.__GHOMING.rotation = ((this.__GHOMING.rota * 180) / Math.PI);
this.__GHOMING.xspeed = (this.__GHOMING.velocity * Math.sin(this.__GHOMING.rota));
this.__GHOMING.yspeed = (this.__GHOMING.velocity * Math.cos(this.__GHOMING.rota));
this.x = (this.x + this.__GHOMING.xspeed);
this.y = (this.y - this.__GHOMING.yspeed);
if ((((((((this.__GHOMING.rotation > 0)) && ((this.__GHOMING.lrot < 0)))) && ((this.__GHOMING.lrot2 > 0)))) || ((((((this.rotation < 0)) && ((this.__GHOMING.lrot > 0)))) && ((this.__GHOMING.lrot2 < 0)))))){
this.__GHOMING.rotation = 0;
};
if (this.__GHOMING.rotallow){
this.rotation = this.__GHOMING.rotation;
};
};
MoveAPI.setHomingMove = function (_arg1, _arg2, _arg3, _arg4, _arg5=0, _arg6=true){
_arg1.__GHOMING = {};
_arg1.rotation = (_arg1.__GHOMING.rotation = _arg5);
_arg1.__GHOMING.rotallow = _arg6;
_arg1.__GHOMING.velocity = _arg3;
_arg1.__GHOMING.turning_speed = _arg4;
_arg1.__GHOMING.targ = _arg2;
_arg1.__GHOMING.xspeed = 0;
_arg1.__GHOMING.yspeed = 0;
_arg1.__GHOMING.turning = (_arg1.__GHOMING.turning_speed * (Math.PI / 180));
_arg1.mot = MoveAPI.GHhoming;
};
MoveAPI.setAngleMove = function (_arg1, _arg2, _arg3){
_arg2 = ((_arg2 * Math.PI) / 180);
MoveAPI.setLineMove(_arg1, (_arg3 * Math.cos(_arg2)), (-(_arg3) * Math.sin(_arg2)));
};
MoveAPI.setPositionMove = function (_arg1, _arg2, _arg3){
dx = (_arg2.x - _arg1.x);
dy = (_arg2.y - _arg1.y);
r = Math.sqrt(((dx * dx) + (dy * dy)));
ux = (dx / r);
uy = (dy / r);
MoveAPI.setLineMove(_arg1, (_arg3 * ux), (_arg3 * uy));
};
MoveAPI.setGhostMove = function (_arg1, _arg2, _arg3){
MoveAPI.setHomingMove(_arg1, _arg2, _arg3, ((_arg3 * 3) / 2), 0, false);
};
MapAPI = new Object();
MapAPI.freedat = new BitmapData(1000, 1000, false, 0);
MapAPI.loadMap = function (_arg1, _arg2, _arg3){
MapAPI.block = new (getDefinitionByName(_arg1) as Class)(0, 0);
MapAPI.dat = new (getDefinitionByName(_arg2) as Class)(0, 0);
MapAPI.blocklist = _arg3;
};
MapAPI.loadIndex = function (_arg1){
MapAPI.mapindex = new (getDefinitionByName(_arg1) as Class)(0, 0);
MapAPI.gotoframe = new Array();
i = (MapAPI.mapindex.width - 1);
while (i >= 0) {
MapAPI.gotoframe[MapAPI.mapindex.getPixel(i, 0)] = (i + 1);
i--;
};
};
MapAPI.getBlock = function (_arg1, _arg2){
return (MapAPI.block.getPixel(_arg1, _arg2));
};
MapAPI.drawAll = function (_arg1, _arg2, _arg3){
j = 0;
while (j < MapAPI.block.height) {
i = 0;
while (i < MapAPI.block.width) {
if (((((((((i * 40) > (-(_arg2) - 40))) && (((j * 40) > (-(_arg3) - 40))))) && (((i * 40) < ((-(_arg2) + 640) + 40))))) && (((j * 40) < ((-(_arg3) + 480) + 40))))){
if (MapAPI.block.getPixel(i, j) != 0){
if (_arg1.getChildByName(((("b" + i) + "x") + j)) == null){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + i) + "x") + j);
b.x = (i * 40);
b.y = (j * 40);
MapAPI.gotoframe[MapAPI.block.getPixel(i, j)];
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(i, j)]);
_arg1.addChild(b);
};
};
};
i++;
};
j++;
};
};
MapAPI.moveLeftMap = function (_arg1, _arg2, _arg3){
_arg2 = -(_arg2);
_arg3 = -(_arg3);
i = 0;
while (i < 2) {
j = 0;
while (j < 13) {
if (_arg1.getChildByName(((("b" + int(((-(_arg2) + 640) / 40))) + "x") + int((-(_arg3) / 40)))) == null){
if (MapAPI.block.getPixel(int(((-(_arg2) + 640) / 40)), int((-(_arg3) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int(((-(_arg2) + 640) / 40))) + "x") + int((-(_arg3) / 40)));
b.x = (int(((-(_arg2) + 640) / 40)) * 40);
b.y = (int((-(_arg3) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int(((-(_arg2) + 640) / 40)), int((-(_arg3) / 40)))]);
_arg1.addChild(b);
};
};
_arg3 = (_arg3 - 40);
j++;
};
_arg3 = (_arg3 + (40 * 12));
_arg2 = (_arg2 + 40);
i++;
};
};
MapAPI.moveRightMap = function (_arg1, _arg2, _arg3){
_arg2 = -(_arg2);
_arg3 = -(_arg3);
i = 0;
while (i < 2) {
j = 0;
while (j < 13) {
if (_arg1.getChildByName(((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)))) == null){
if (MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)));
b.x = (int((-(_arg2) / 40)) * 40);
b.y = (int((-(_arg3) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40)))]);
_arg1.addChild(b);
};
};
_arg3 = (_arg3 - 40);
j++;
};
_arg3 = (_arg3 + (40 * 12));
_arg2 = (_arg2 + 40);
i++;
};
};
MapAPI.moveDownMap = function (_arg1, _arg2, _arg3){
_arg2 = -(_arg2);
_arg3 = -(_arg3);
i = 0;
while (i < 2) {
j = 0;
while (j < 17) {
if (_arg1.getChildByName(((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)))) == null){
if (MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)));
b.x = (int((-(_arg2) / 40)) * 40);
b.y = (int((-(_arg3) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40)))]);
_arg1.addChild(b);
};
};
_arg2 = (_arg2 - 40);
j++;
};
_arg2 = (_arg2 + (40 * 16));
_arg3 = (_arg3 + 40);
i++;
};
};
MapAPI.moveUpMap = function (_arg1, _arg2, _arg3){
_arg2 = -(_arg2);
_arg3 = -(_arg3);
i = 0;
while (i < 2) {
j = 0;
while (j < 17) {
if (_arg1.getChildByName(((("b" + int((-(_arg2) / 40))) + "x") + int(((-(_arg3) + 480) / 40)))) == null){
if (MapAPI.block.getPixel(int((-(_arg2) / 40)), int(((-(_arg3) + 480) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int((-(_arg2) / 40))) + "x") + int(((-(_arg3) + 480) / 40)));
b.x = (int((-(_arg2) / 40)) * 40);
b.y = (int(((-(_arg3) + 480) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int((-(_arg2) / 40)), int(((-(_arg3) + 480) / 40)))]);
_arg1.addChild(b);
};
};
_arg2 = (_arg2 - 40);
j++;
};
_arg2 = (_arg2 + (40 * 16));
_arg3 = (_arg3 + 40);
i++;
};
};
MapAPI.trim = function (_arg1, _arg2){
i = (_arg1.numChildren - 1);
while (i >= 0) {
if (_arg1.getChildAt(i).x > ((-(_arg2.x) + 640) + 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
} else {
if (_arg1.getChildAt(i).y > ((-(_arg2.y) + 480) + 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
} else {
if (_arg1.getChildAt(i).y < (-(_arg2.y) - 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
} else {
if (_arg1.getChildAt(i).x < (-(_arg2.x) - 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
};
};
};
};
i--;
};
};
MapAPI.updateWorld = function (_arg1, _arg2, _arg3){
_arg1.x = -(_arg3.x);
_arg1.y = -(_arg3.y);
MapAPI.trim(_arg2, _arg1);
};
MapAPI.moveWorldY = function (_arg1, _arg2){
d = (_arg2.y - _arg2.smoothy);
if (d < 1){
_arg2.y = (_arg2.y + (Math.abs((_arg2.y - _arg2.smoothy)) / 3));
MapAPI.moveUpMap(_arg1, _arg2.x, _arg2.y);
} else {
if (d > 1){
_arg2.y = (_arg2.y - (Math.abs((_arg2.y - _arg2.smoothy)) / 3));
MapAPI.moveDownMap(_arg1, _arg2.x, _arg2.y);
};
};
};
MapAPI.moveWorldX = function (_arg1, _arg2){
d = (_arg2.x - _arg2.smoothx);
if (d < 1){
_arg2.x = (_arg2.x + (Math.abs((_arg2.x - _arg2.smoothx)) / 3));
MapAPI.moveLeftMap(_arg1, int(_arg2.x), int(_arg2.y));
} else {
if (d > 1){
_arg2.x = (_arg2.x - (Math.abs((_arg2.x - _arg2.smoothx)) / 3));
MapAPI.moveRightMap(_arg1, int(_arg2.x), int(_arg2.y));
};
};
};
GHMAPAPI = MapAPI;
GHMOVEAPI = MoveAPI;
}
function frame54(){
if (this.pass){
play();
} else {
gotoAndPlay(3);
};
}
public function bbuild_click(_arg1){
build_dlg.visible = true;
build_dlg.x = 300;
build_dlg.y = 300;
build_dlg.scaleX = 1;
build_dlg.scaleY = 1;
guidearrow.visible = false;
game.setLoop(game.pauseGame);
}
function frame65(){
stop();
}
public function onSecurityError(_arg1:SecurityErrorEvent){
return (true);
}
function frame75(){
stop();
}
function frame306(){
build_dlg.visible = false;
dlg0.visible = false;
dlg1.visible = false;
dlg2.visible = false;
dlg3.visible = false;
dlg6.visible = false;
dlg7.visible = false;
game.lside = 50;
game.rside = 50;
rside.addEventListener("click", r_click);
lside.addEventListener("click", l_click);
bbuild.addEventListener("click", bbuild_click);
allsound.bmg.play(0, 10000);
info.alpha = 1;
info.gotoAndStop(10);
stop();
}
function frame548(){
submit = this;
this.addEventListener(Event.ENTER_FRAME, function (_arg1){
stage.focus = playername;
});
Mouse.show();
score.text = ("" + int(submit.scorex));
stage.focus = playername;
bmenuClick = function (){
submit.gotoAndStop(1, "title");
b_menu.removeEventListener("click", bmenuClick);
};
b_menu.addEventListener("click", bmenuClick);
submitClick = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
submit.gotoAndStop(1, "title");
b_submit.removeEventListener("click", submitClick);
};
b_submit.addEventListener("click", submitClick);
playMoreGameSub = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
submit.gotoAndStop(1, "title");
b_moregames2.removeEventListener("click", playMoreGameSub);
};
b_moregames2.addEventListener("click", playMoreGameSub);
stop();
}
function frame95(){
stop();
}
function frame216(){
stop();
}
function frame105(){
stop();
}
function frame85(){
stop();
}
function frame226(){
stop();
}
public function r_click(_arg1){
if (game.lside > 0){
game.rside = (game.rside + 10);
game.lside = (game.lside - 10);
};
ratro.text = ((game.lside + ":") + game.rside);
}
function frame115(){
stop();
}
function frame236(){
stop();
}
public function onKeySkip(_arg1){
if (_arg1.keyCode == 75){
tot.gotoAndPlay("skip");
tot.removeEventListener("keyDown", onKeySkip);
};
}
function frame125(){
stop();
}
public function setfocus(_arg1){
var e = _arg1;
try {
stage.focus = tot;
} catch(e) {
};
}
public function onHTTPStatus(_arg1:HTTPStatusEvent){
return (true);
}
public function onIOError(_arg1:IOErrorEvent){
trace("xxx");
disable_game();
return (true);
}
function frame205(){
stop();
}
function frame246(){
stop();
}
function frame135(){
stop();
}
function frame266(){
stop();
}
function frame256(){
stop();
}
function frame144(){
stop();
}
public function l_click(_arg1){
if (game.rside > 0){
game.lside = (game.lside + 10);
game.rside = (game.rside - 10);
};
ratro.text = ((game.lside + ":") + game.rside);
}
}
}//package tree_troopers_520128PB_fla
Section 13
//mdia_build_140 (tree_troopers_520128PB_fla.mdia_build_140)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mdia_build_140 extends MovieClip {
public var b0:SimpleButton;
public var b1:SimpleButton;
public var b2:SimpleButton;
public var b4:SimpleButton;
public var b5:SimpleButton;
public var b3:SimpleButton;
public var b6:SimpleButton;
public var treecount;
public var buildtime;
public var t2:TextField;
public var t3:TextField;
public var t5:TextField;
public var t7:TextField;
public var t1:TextField;
public var d0:SimpleButton;
public var d4:SimpleButton;
public var d6:SimpleButton;
public var t4:TextField;
public var bfake0:SimpleButton;
public var bfake2:SimpleButton;
public var bfake3:SimpleButton;
public var d2:SimpleButton;
public var d5:SimpleButton;
public var bfake1:SimpleButton;
public var d7:SimpleButton;
public var buildcountmax;
public var d3:SimpleButton;
public var d1:SimpleButton;
public var t6:TextField;
public var desc:MovieClip;
public var i;
public var fackinx;
public var onEnterFrame;
public var b_nogrowth0:SimpleButton;
public var b_nogrowth1:SimpleButton;
public var b_nogrowth2:SimpleButton;
public var b_nogrowth3:SimpleButton;
public var b_nogrowth4:SimpleButton;
public var b_nogrowth5:SimpleButton;
public var b_nogrowth6:SimpleButton;
public var created;
public var shop;
public var treecommon;
public var gage:MovieClip;
public var buildcount;
public var all;
public var style;
public var buildmana;
public var manaperframe;
public var bok:SimpleButton;
public var threefirst;
public var ok;
public var game;
public function mdia_build_140(){
addFrameScript(0, frame1);
}
function frame1(){
shop = this;
game = MovieClip(MovieClip(parent).game);
all = MovieClip(parent);
threefirst = true;
buildtime = new Array();
buildtime[0] = 400;
buildtime[1] = 500;
buildtime[2] = 800;
buildtime[3] = 950;
buildtime[4] = 950;
buildtime[5] = 550;
buildtime[6] = 550;
buildmana = new Array();
buildmana[0] = 0.2;
buildmana[1] = 0.3;
buildmana[2] = 0.4;
buildmana[3] = 0.1;
buildmana[4] = 0.3;
buildmana[5] = 0.4;
buildmana[6] = 0.4;
buildcount = 0;
buildcountmax = 0;
manaperframe = 0;
created = -1;
treecommon = new Array();
treecount = new Array();
onEnterFrame = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (all.info.alpha > 0){
all.info.alpha = (all.info.alpha - 0.0003);
};
if ((((buildcount > 0)) || ((game.treeclass.freePlace() == -1)))){
if (((!((game.bfn == game.pauseGame))) && ((game.dplayer.mana > manaperframe)))){
game.dplayer.mana = (game.dplayer.mana - manaperframe);
buildcount--;
};
i = 0;
while (i < 7) {
shop[("b" + i)].enabled = false;
shop[("b" + i)].visible = false;
i++;
};
if (buildcount == 1){
game.treeclass.createTree(game.treeclass.freePlace(), (created + 1));
all.info.alpha = 1;
all.info.gotoAndStop(3);
if (threefirst){
all.guidearrow.visible = true;
threefirst = false;
};
buildcount = 0;
};
MovieClip(parent).buildgage.gotoAndStop(((100 - int(((buildcount * 100) / buildcountmax))) + 1));
shop.gage.gotoAndStop(((100 - int(((buildcount * 100) / buildcountmax))) + 1));
} else {
i = 0;
while (i < 7) {
shop[("b" + i)].enabled = true;
shop[("b" + i)].visible = true;
i++;
};
shop.gage.gotoAndStop(1);
MovieClip(parent).buildgage.gotoAndStop(1);
};
i = (game.player_layer.numChildren - 1);
while (i >= 0) {
_local3 = game.player_layer.getChildAt(i);
if (_local3.off != null){
if (_local3.off){
if (all.info.alpha < 0.25){
all.info.alpha = 1;
all.info.gotoAndStop(4);
};
};
};
i--;
};
if (shop.visible){
i = 0;
while (i < 8) {
shop[("d" + i)].enabled = false;
shop[("d" + i)].visible = false;
i++;
};
_local4 = 0;
while (_local4 < 10) {
treecount[_local4] = 0;
_local4++;
};
i = (game.player_layer.numChildren - 1);
while (i >= 0) {
_local3 = game.player_layer.getChildAt(i);
if (_local3.treetype != null){
if (_local3.off != null){
treecommon[_local3.treetype] = _local3;
var _local6 = treecount;
var _local7 = _local3.treetype;
var _local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
};
};
i--;
};
_local4 = 0;
while (_local4 < 10) {
if (shop[("t" + _local4)] != null){
shop[("t" + _local4)].text = treecount[_local4];
};
_local4++;
};
if (treecommon[1] == null){
shop[("b" + 1)].enabled = false;
shop[("b" + 1)].visible = false;
};
if (treecommon[2] == null){
shop[("b" + 2)].enabled = false;
shop[("b" + 2)].visible = false;
};
if (treecommon[3] == null){
shop[("b" + 5)].enabled = false;
shop[("b" + 5)].visible = false;
shop[("b" + 6)].enabled = false;
shop[("b" + 6)].visible = false;
};
};
_local2 = 0;
while (_local2 < 10) {
if (all[("dlg" + _local2)] != null){
_local5 = 0;
while (_local5 < 10) {
if (all[("dlg" + _local2)][("b" + _local5)] != null){
if (((all[("dlg" + _local2)][("b" + _local5)].visible) && (((!((treecommon[_local2] == null))) || ((_local2 == 0)))))){
if (_local2 == 0){
if (_local5 != 6){
shop[("d" + 7)].enabled = true;
shop[("d" + 7)].visible = true;
};
} else {
if ((((_local2 == 7)) && ((_local5 == 0)))){
} else {
shop[("d" + (_local2 - 1))].enabled = true;
shop[("d" + (_local2 - 1))].visible = true;
};
};
};
};
_local5++;
};
};
_local2++;
};
};
ok = function (){
shop.visible = false;
game.setLoop(game.playGame);
};
bok.addEventListener(MouseEvent.CLICK, ok);
i = 0;
while (i < 7) {
shop[(("b" + i) + "click")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
buildcountmax = int((buildtime[created] * game.blessingforce.delayamp));
buildcount = int((buildtime[created] * game.blessingforce.delayamp));
manaperframe = (buildmana[created] * game.blessingforce.manaamp);
shop.visible = false;
game.setLoop(game.playGame);
};
shop[(("b" + i) + "over")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
desc.gotoAndStop((created + 2));
};
shop[(("b" + i) + "out")] = function (_arg1){
desc.gotoAndStop(1);
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b" + i) + "over")]);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + i) + "out")]);
shop[("b" + i)].addEventListener("click", shop[(("b" + i) + "click")]);
i++;
};
i = 0;
while (i < 8) {
shop[(("d" + i) + "click")] = function (_arg1){
style = (Number(_arg1.target.name.charAt(1)) + 1);
if (style == 8){
style = 0;
};
trace(((((((!((style == 4))) && (!((style == 5))))) && (!((treecommon[style] == null))))) || ((style == 0))));
if (((((((!((style == 4))) && (!((style == 5))))) && (!((treecommon[style] == null))))) || ((style == 0)))){
if (MovieClip(parent)[("dlg" + style)].selectObject != null){
if (style == 0){
MovieClip(parent)[("dlg" + style)].selectObject(game.treepoint[0].tree);
} else {
MovieClip(parent)[("dlg" + style)].selectObject(treecommon[style]);
};
};
MovieClip(parent)[("dlg" + style)].x = 300;
MovieClip(parent)[("dlg" + style)].y = 300;
MovieClip(parent)[("dlg" + style)].scaleX = 1;
MovieClip(parent)[("dlg" + style)].scaleY = 1;
MovieClip(parent)[("dlg" + style)].visible = true;
game.setLoop(game.pauseGame);
};
};
shop[("d" + i)].addEventListener("click", shop[(("d" + i) + "click")]);
i++;
};
i = 0;
while (i < 4) {
shop[(("bfake" + i) + "move")] = function (_arg1){
fackinx = Number(_arg1.target.name.charAt(5));
desc.gotoAndStop((fackinx + 15));
};
shop[("bfake" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + 0) + "out")]);
shop[("bfake" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("bfake" + i) + "move")]);
i++;
};
i = 0;
while (i < 7) {
shop[(("b_nogrowth" + i) + "move")] = function (_arg1){
desc.gotoAndStop(20);
};
shop[("b_nogrowth" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + 0) + "out")]);
shop[("b_nogrowth" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b_nogrowth" + i) + "move")]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 14
//mdia_growth_archer_tree_150 (tree_troopers_520128PB_fla.mdia_growth_archer_tree_150)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mdia_growth_archer_tree_150 extends MovieClip {
public var ok;
public var select;
public var b0:SimpleButton;
public var b2:SimpleButton;
public var b1:SimpleButton;
public var skillindex;
public var gage:MovieClip;
public var selectObject;
public var i;
public var desc:MovieClip;
public var onEnterFrame;
public var bok:SimpleButton;
public var created;
public var game;
public var shop;
public function mdia_growth_archer_tree_150(){
addFrameScript(0, frame1);
}
function frame1(){
shop = this;
skillindex = 3;
game = MovieClip(MovieClip(parent).game);
select = null;
selectObject = function (_arg1){
select = _arg1;
};
onEnterFrame = function (_arg1){
var _local2:*;
if (shop.visible){
};
if (select != null){
if (select.base.countdown > 0){
_local2 = 0;
while (_local2 < 3) {
shop[("b" + _local2)].visible = false;
_local2++;
};
shop.gage.gotoAndStop(((100 - int(((select.base.countdown / select.base.countdownmax) * 99))) + 1));
select.pgage.gotoAndStop(shop.gage.currentFrame);
} else {
_local2 = 0;
while (_local2 < 3) {
if (game.learninfo[skillindex][_local2] != null){
if (game.learninfo[skillindex][_local2].lv == 0){
shop[("b" + _local2)].visible = true;
} else {
shop[("b" + _local2)].visible = false;
};
};
_local2++;
};
shop.gage.gotoAndStop(1);
select.pgage.gotoAndStop(1);
};
} else {
shop.gage.gotoAndStop(1);
};
};
ok = function (){
shop.visible = false;
};
bok.addEventListener(MouseEvent.CLICK, ok);
i = 0;
while (i < 3) {
shop[(("b" + i) + "click")] = function (_arg1){
shop.visible = false;
var _local2 = game.learn[skillindex];
_local2[Number(_arg1.target.name.charAt(1))](select, skillindex, Number(_arg1.target.name.charAt(1)));
};
shop[(("b" + i) + "over")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
desc.gotoAndStop((created + 2));
};
shop[(("b" + i) + "out")] = function (_arg1){
desc.gotoAndStop(1);
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b" + i) + "over")]);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + i) + "out")]);
shop[("b" + i)].addEventListener("click", shop[(("b" + i) + "click")]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 15
//mdia_growth_attacker_tree_152 (tree_troopers_520128PB_fla.mdia_growth_attacker_tree_152)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mdia_growth_attacker_tree_152 extends MovieClip {
public var ok;
public var select;
public var b0:SimpleButton;
public var b2:SimpleButton;
public var b1:SimpleButton;
public var skillindex;
public var gage:MovieClip;
public var selectObject;
public var i;
public var desc:MovieClip;
public var onEnterFrame;
public var bok:SimpleButton;
public var created;
public var game;
public var shop;
public function mdia_growth_attacker_tree_152(){
addFrameScript(0, frame1);
}
function frame1(){
shop = this;
skillindex = 2;
game = MovieClip(MovieClip(parent).game);
select = null;
selectObject = function (_arg1){
select = _arg1;
};
onEnterFrame = function (_arg1){
var _local2:*;
if (shop.visible){
};
if (select != null){
if (select.base.countdown > 0){
_local2 = 0;
while (_local2 < 3) {
shop[("b" + _local2)].visible = false;
_local2++;
};
shop.gage.gotoAndStop(((100 - int(((select.base.countdown / select.base.countdownmax) * 99))) + 1));
select.pgage.gotoAndStop(shop.gage.currentFrame);
} else {
_local2 = 0;
while (_local2 < 3) {
if (game.learninfo[skillindex][_local2] != null){
if (game.learninfo[skillindex][_local2].lv == 0){
shop[("b" + _local2)].visible = true;
} else {
shop[("b" + _local2)].visible = false;
};
};
_local2++;
};
shop.gage.gotoAndStop(1);
select.pgage.gotoAndStop(1);
};
} else {
shop.gage.gotoAndStop(1);
};
};
ok = function (){
shop.visible = false;
};
bok.addEventListener(MouseEvent.CLICK, ok);
i = 0;
while (i < 3) {
shop[(("b" + i) + "click")] = function (_arg1){
shop.visible = false;
var _local2 = game.learn[skillindex];
_local2[Number(_arg1.target.name.charAt(1))](select, skillindex, Number(_arg1.target.name.charAt(1)));
};
shop[(("b" + i) + "over")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
desc.gotoAndStop((created + 2));
};
shop[(("b" + i) + "out")] = function (_arg1){
desc.gotoAndStop(1);
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b" + i) + "over")]);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + i) + "out")]);
shop[("b" + i)].addEventListener("click", shop[(("b" + i) + "click")]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 16
//mdia_growth_earth_tree_156 (tree_troopers_520128PB_fla.mdia_growth_earth_tree_156)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mdia_growth_earth_tree_156 extends MovieClip {
public var ok;
public var select;
public var b0:SimpleButton;
public var b2:SimpleButton;
public var b4:SimpleButton;
public var b5:SimpleButton;
public var b6:SimpleButton;
public var b1:SimpleButton;
public var b3:SimpleButton;
public var gage:MovieClip;
public var selectObject;
public var i;
public var desc:MovieClip;
public var onEnterFrame;
public var bok:SimpleButton;
public var created;
public var game;
public var shop;
public function mdia_growth_earth_tree_156(){
addFrameScript(0, frame1);
}
function frame1(){
shop = this;
game = MovieClip(MovieClip(parent).game);
select = null;
selectObject = function (_arg1){
select = _arg1;
};
onEnterFrame = function (_arg1){
var _local2:*;
if (shop.visible){
};
if (select != null){
if (select.base.countdown > 0){
_local2 = 0;
while (_local2 < 7) {
shop[("b" + _local2)].visible = false;
_local2++;
};
shop.gage.gotoAndStop(((100 - int(((select.base.countdown / select.base.countdownmax) * 99))) + 1));
select.pgage.gotoAndStop(shop.gage.currentFrame);
} else {
_local2 = 0;
while (_local2 < 7) {
if (game.learninfo[0][_local2].lv != null){
if (game.learninfo[0][_local2].lv == 0){
shop[("b" + _local2)].visible = true;
} else {
shop[("b" + _local2)].visible = false;
};
};
_local2++;
};
shop.gage.gotoAndStop(1);
select.pgage.gotoAndStop(1);
};
} else {
shop.gage.gotoAndStop(1);
};
};
ok = function (){
shop.visible = false;
};
bok.addEventListener(MouseEvent.CLICK, ok);
i = 0;
while (i < 7) {
shop[(("b" + i) + "click")] = function (_arg1){
shop.visible = false;
var _local2 = game.learn[0];
_local2[Number(_arg1.target.name.charAt(1))](select, 0, Number(_arg1.target.name.charAt(1)));
};
shop[(("b" + i) + "over")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
desc.gotoAndStop((created + 2));
};
shop[(("b" + i) + "out")] = function (_arg1){
desc.gotoAndStop(1);
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b" + i) + "over")]);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + i) + "out")]);
shop[("b" + i)].addEventListener("click", shop[(("b" + i) + "click")]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 17
//mdia_growth_flower_turret_148 (tree_troopers_520128PB_fla.mdia_growth_flower_turret_148)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mdia_growth_flower_turret_148 extends MovieClip {
public var ok;
public var select;
public var b0:SimpleButton;
public var b2:SimpleButton;
public var b1:SimpleButton;
public var skillindex;
public var gage:MovieClip;
public var selectObject;
public var i;
public var desc:MovieClip;
public var onEnterFrame;
public var bok:SimpleButton;
public var created;
public var game;
public var shop;
public function mdia_growth_flower_turret_148(){
addFrameScript(0, frame1);
}
function frame1(){
shop = this;
skillindex = 6;
game = MovieClip(MovieClip(parent).game);
select = null;
selectObject = function (_arg1){
select = _arg1;
};
onEnterFrame = function (_arg1){
var _local2:*;
if (shop.visible){
};
if (select != null){
if (select.base.countdown > 0){
_local2 = 0;
while (_local2 < 3) {
shop[("b" + _local2)].visible = false;
_local2++;
};
shop.gage.gotoAndStop(((100 - int(((select.base.countdown / select.base.countdownmax) * 99))) + 1));
select.pgage.gotoAndStop(shop.gage.currentFrame);
} else {
_local2 = 0;
while (_local2 < 3) {
if (game.learninfo[skillindex][_local2] != null){
if (game.learninfo[skillindex][_local2].lv == 0){
shop[("b" + _local2)].visible = true;
} else {
shop[("b" + _local2)].visible = false;
};
};
_local2++;
};
shop.gage.gotoAndStop(1);
select.pgage.gotoAndStop(1);
};
} else {
shop.gage.gotoAndStop(1);
};
};
ok = function (){
shop.visible = false;
};
bok.addEventListener(MouseEvent.CLICK, ok);
i = 0;
while (i < 3) {
shop[(("b" + i) + "click")] = function (_arg1){
shop.visible = false;
var _local2 = game.learn[skillindex];
_local2[Number(_arg1.target.name.charAt(1))](select, skillindex, Number(_arg1.target.name.charAt(1)));
};
shop[(("b" + i) + "over")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
desc.gotoAndStop((created + 2));
};
shop[(("b" + i) + "out")] = function (_arg1){
desc.gotoAndStop(1);
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b" + i) + "over")]);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + i) + "out")]);
shop[("b" + i)].addEventListener("click", shop[(("b" + i) + "click")]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 18
//mdia_growth_pollen_turret_145 (tree_troopers_520128PB_fla.mdia_growth_pollen_turret_145)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mdia_growth_pollen_turret_145 extends MovieClip {
public var ok;
public var select;
public var b0:SimpleButton;
public var b2:SimpleButton;
public var b1:SimpleButton;
public var skillindex;
public var gage:MovieClip;
public var selectObject;
public var i;
public var desc:MovieClip;
public var onEnterFrame;
public var bok:SimpleButton;
public var created;
public var game;
public var shop;
public function mdia_growth_pollen_turret_145(){
addFrameScript(0, frame1);
}
function frame1(){
shop = this;
skillindex = 7;
game = MovieClip(MovieClip(parent).game);
select = null;
selectObject = function (_arg1){
select = _arg1;
};
onEnterFrame = function (_arg1){
var _local2:*;
if (shop.visible){
};
if (select != null){
if (select.base.countdown > 0){
_local2 = 0;
while (_local2 < 3) {
shop[("b" + _local2)].visible = false;
_local2++;
};
shop.gage.gotoAndStop(((100 - int(((select.base.countdown / select.base.countdownmax) * 99))) + 1));
select.pgage.gotoAndStop(shop.gage.currentFrame);
} else {
_local2 = 0;
while (_local2 < 3) {
if (game.learninfo[skillindex][_local2] != null){
if (game.learninfo[skillindex][_local2].lv == 0){
shop[("b" + _local2)].visible = true;
} else {
shop[("b" + _local2)].visible = false;
};
};
_local2++;
};
shop.gage.gotoAndStop(1);
select.pgage.gotoAndStop(1);
};
} else {
shop.gage.gotoAndStop(1);
};
};
ok = function (){
shop.visible = false;
};
bok.addEventListener(MouseEvent.CLICK, ok);
i = 0;
while (i < 3) {
shop[(("b" + i) + "click")] = function (_arg1){
shop.visible = false;
var _local2 = game.learn[skillindex];
_local2[Number(_arg1.target.name.charAt(1))](select, skillindex, Number(_arg1.target.name.charAt(1)));
};
shop[(("b" + i) + "over")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
desc.gotoAndStop((created + 2));
};
shop[(("b" + i) + "out")] = function (_arg1){
desc.gotoAndStop(1);
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b" + i) + "over")]);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + i) + "out")]);
shop[("b" + i)].addEventListener("click", shop[(("b" + i) + "click")]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 19
//mdia_growth_shielder_tree_154 (tree_troopers_520128PB_fla.mdia_growth_shielder_tree_154)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mdia_growth_shielder_tree_154 extends MovieClip {
public var ok;
public var select;
public var b0:SimpleButton;
public var b2:SimpleButton;
public var b1:SimpleButton;
public var skillindex;
public var gage:MovieClip;
public var selectObject;
public var i;
public var desc:MovieClip;
public var onEnterFrame;
public var bok:SimpleButton;
public var created;
public var game;
public var shop;
public function mdia_growth_shielder_tree_154(){
addFrameScript(0, frame1);
}
function frame1(){
shop = this;
skillindex = 1;
game = MovieClip(MovieClip(parent).game);
select = null;
selectObject = function (_arg1){
select = _arg1;
};
onEnterFrame = function (_arg1){
var _local2:*;
if (shop.visible){
};
if (select != null){
if (select.base.countdown > 0){
_local2 = 0;
while (_local2 < 3) {
shop[("b" + _local2)].visible = false;
_local2++;
};
shop.gage.gotoAndStop(((100 - int(((select.base.countdown / select.base.countdownmax) * 99))) + 1));
select.pgage.gotoAndStop(shop.gage.currentFrame);
} else {
_local2 = 0;
while (_local2 < 3) {
if (game.learninfo[skillindex][_local2] != null){
if (game.learninfo[skillindex][_local2].lv == 0){
shop[("b" + _local2)].visible = true;
} else {
shop[("b" + _local2)].visible = false;
};
};
_local2++;
};
shop.gage.gotoAndStop(1);
select.pgage.gotoAndStop(1);
};
} else {
shop.gage.gotoAndStop(1);
};
};
ok = function (){
shop.visible = false;
};
bok.addEventListener(MouseEvent.CLICK, ok);
i = 0;
while (i < 3) {
shop[(("b" + i) + "click")] = function (_arg1){
shop.visible = false;
var _local2 = game.learn[skillindex];
_local2[Number(_arg1.target.name.charAt(1))](select, skillindex, Number(_arg1.target.name.charAt(1)));
};
shop[(("b" + i) + "over")] = function (_arg1){
created = Number(_arg1.target.name.charAt(1));
desc.gotoAndStop((created + 2));
};
shop[(("b" + i) + "out")] = function (_arg1){
desc.gotoAndStop(1);
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[(("b" + i) + "over")]);
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OUT, shop[(("b" + i) + "out")]);
shop[("b" + i)].addEventListener("click", shop[(("b" + i) + "click")]);
i++;
};
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 20
//mdia_stage_clear_135 (tree_troopers_520128PB_fla.mdia_stage_clear_135)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mdia_stage_clear_135 extends MovieClip {
public function mdia_stage_clear_135(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 21
//mgame_125 (tree_troopers_520128PB_fla.mgame_125)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mgame_125 extends MovieClip {
public var texttreetype;
public var attackComposit;
public var archercontinual;
public var allsound;
public var lastkey;
public var atk_throw_star;
public var CLASS_ADD_STATUS_KNOCKBACK;
public var drone2;
public var bonus;
public var drone1;
public var DEF_NO_MAP_LINEMOVE_X5Y0;
public var gaged;
public var hpShrubProcess;
public var naruto;
public var flowercontinual;
public var dplayer;
public var tree5;
public var tree6;
public var tree7;
public var tree2;
public var tree8;
public var toggleDrop;
public var tree3;
public var waitlevelClear;
public var f;
public var masterfactory;
public var MoveAPI;
public var tree9;
public var e0:hero_bullet2;
public var e1:hero_bullet2;
public var e2:hero_bullet2;
public var e3:hero_bullet2;
public var e4:hero_bullet2;
public var e5:hero_bullet2;
public var e6:hero_bullet2;
public var e8:hero_bullet2;
public var e9:hero_bullet2;
public var removeEvent;
public var attacker_atk;
public var createNuke;
public var levelinfoX;
public var tile_layer;
public var j;
public var CLASS_RESET_GRAVI_AND_MOVE;
public var CLASS_RESET_STATUS;
public var e7:hero_bullet2;
public var i;
public var tree1;
public var tree4;
public var blessinglife;
public var dir;
public var treeclass;
public var rep;
public var waitlevelOver;
public var maxlevel;
public var monster_layer;
public var map_layer;
public var bfn;
public var monsterbullet_layer;
public var attcrop;
public var overcount;
public var fi;
public var fc;
public var s;
public var manarenew;
public var treepoint;
public var createspeed;
public var fac_laser_bullet;
public var tileUnitCreate;
public var gunTransfrom;
public var select;
public var utree1;
public var utree2;
public var utree4;
public var utree7;
public var AIButtomStage;
public var utree9;
public var masterFactoryProcess;
public var CLASS_ADD_GRAVI_JUMP;
public var gfx_layer;
public var utree3;
public var facBulletHit;
public var atkStar;
public var utree8;
public var CLASS_ADD_GRAVI_WALK_FAST;
public var attackStateAI;
public var utree5;
public var utree6;
public var levelfac;
public var rapid;
public var learninfo;
public var liferenew;
public var item_layer;
public var normalHit;
public var fdeactive;
public var atkToMouse;
public var treeBulletHit;
public var playerbullet_layer;
public var endcount;
public var multi;
public var sfactory;
public var e10:hero_bullet2;
public var e11:hero_bullet2;
public var e12:hero_bullet2;
public var e13:hero_bullet2;
public var e14:hero_bullet2;
public var e15:hero_bullet2;
public var e16:hero_bullet2;
public var e18:hero_bullet2;
public var e19:hero_bullet2;
public var e17:hero_bullet2;
public var newtree;
public var setWalk;
public var backupnewobject;
public var manaframecount;
public var e20:hero_bullet2;
public var e21:hero_bullet2;
public var e22:hero_bullet2;
public var e23:hero_bullet2;
public var e24:hero_bullet2;
public var seedshooter;
public var group2;
public var normalStateAI;
public var createcount;
public var dashkey;
public var g_bullet_target;
public var CLASS_ADD_GRAVI_WALK_SLOW_UNDOWN;
public var atkToTargetHoming;
public var toggleJump;
public var objectWalk;
public var createUnitProcess;
public var blessingdex;
public var currentlevel;
public var group1;
public var v_mfac;
public var manamax;
public var shildcrop;
public var AILeftUpStage;
public var atkToRandom;
public var heal;
public var shootBullet;
public var AIStartStage;
public var factoryProcess;
public var atk_bullet_target;
public var CLASS_ADD_ALL_MOVE_KNOCK;
public var createnukespeed;
public var monpoint;
public var objectGravity;
public var leveldrone;
public var fac_bullet;
public var factoryHit;
public var createdronespeed;
public var archerdodge;
public var pointlist;
public var shell;
public var learn;
public var blessingforce;
public var debug;
public var ken;
public var levelinfo;
public var quake_game;
public var freebullet;
public var shilddodge;
public var player_layer;
public var clickdmg;
public var v_earthtree;
public var key;
public var leveltank;
public var treepointredirect;
public var atkToTarget;
public var endmax;
public var CLASS_ADD_GRAVI_JUMP_UNDOWN;
public var anchor;
public var treepointrev;
public var flower_atk;
public var CLASS_ADD_GRAVI_WALK_SLOW;
public var hitEvent;
public var overcountmax;
public var sprade;
public var gamelevel;
public var clearSet;
public var createnukecount;
public var maxfaclevel;
public var player;
public var clearcount;
public var g_throw_star;
public var bullet16way;
public var CLASS_ADD_GRAVI_WALK_FAST_UNDOWN;
public var overSet;
public var earthtree;
public var createdronecount;
public var currentfac;
public var manaShrubProcess;
public var background_layer;
public var mario;
public var gunComposit;
public var shildendure;
public var tileuint;
public var mon;
public var active;
public var allsupport;
public var galaxy;
public var AIRightDownStage;
public var factive;
public var tilecount;
public var monsky_layer;
public var CLASS_ADD_GRAVI_JUMP_HIGH;
public var treeHealBulletHit;
public var CLASS_ADD_STATUS_ATTACK_NORMAL;
public var heal_bullet;
public var drone;
public var MapAPI;
public var clearcountmax;
public var fadetime;
public var durationComposit;
public var foreground_layer;
public var flower_bullet;
public var lastpress;
public var fury;
public var skillActiveComposit;
public var monsterlist;
public var world;
public var attacker_bullet;
public var dash;
public var setGravity;
public var CLASS_ADD_STATUS_ATTACK_NULL;
public var AIRightUpStage;
public var lifeframecount;
public var nukebase;
public var heal_atk;
public var cam;
public var DEF_NO_MAP_NOMOVE;
public var monster;
public var AILeftDownStage;
public var game;
public var hero;
public var pollenfury;
public function mgame_125(){
addFrameScript(0, frame1);
}
public function traceDebug(_arg1){
if (debug){
trace(_arg1);
};
}
public function getSomeObjectInByFiled(_arg1, _arg2){
var _local3:*;
var _local4:*;
_local3 = 0;
while (_local3 < game[_arg1].numChildren) {
_local4 = game[_arg1].getChildAt(_local3);
if (_local4[_arg2] != null){
return (_local4);
};
_local3++;
};
}
public function processManaMax(){
var _local1:*;
var _local2:*;
_local1 = 0;
i = (player_layer.numChildren - 1);
while (i >= 0) {
_local2 = player_layer.getChildAt(i);
if ((_local2 is MovieClip)){
if (_local2.treetype == 4){
if (!_local2.off){
_local1 = (_local1 + ((dplayer.manabase * _local2.ADDMANAMAX) / 100));
};
};
};
i--;
};
dplayer.manamax = ((dplayer.manabase + _local1) * manamax.manamaxamp);
}
public function getSomeObjectIn(_arg1){
var _local2:*;
if (game[_arg1].numChildren <= 2){
return (null);
};
_local2 = (int((Math.random() * (game[_arg1].numChildren - 2))) + 2);
return (game[_arg1].getChildAt(_local2));
}
public function createFactory(_arg1){
var _local2:*;
if (_arg1 != -1){
i = 3;
while (i >= 0) {
if ((Math.random() * 100) < levelfac[currentlevel][i]){
break;
};
i--;
};
if (i < 0){
return;
};
_local2 = addMonster(sfactory[(i + 1)]);
_local2.x = game[("e" + _arg1)].x;
_local2.y = game[("e" + _arg1)].y;
if (_arg1 < 7){
_local2.rotation = 180;
} else {
if ((_arg1 % 2) == 0){
_local2.rotation = 90;
} else {
_local2.rotation = 270;
};
};
game[("e" + _arg1)].fac = _local2;
_local2.at = _arg1;
};
}
public function deleteSub(_arg1){
var _local2:*;
_arg1.stop();
_local2 = (_arg1.numChildren - 1);
while (_local2 >= 0) {
if (_arg1.getChildAt(_local2) != null){
if ((_arg1.getChildAt(_local2) is MovieClip)){
delete ??getglobalscope
[_arg1.removeChild(_arg1.getChildAt(_local2))];
};
};
_local2--;
};
}
public function manaRenew(){
if ((manaframecount++ % manarenew.every) == 0){
manaframecount = 1;
dplayer.mana = (dplayer.mana + (dplayer.manamax * manarenew.recover));
};
}
public function onKeyDown(_arg1:KeyboardEvent){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (((!((clearcount == -1))) || (!((overcount == -1))))){
return;
};
if (key[_arg1.keyCode] != null){
return;
};
if (((((lastpress + 220) > getTimer())) && ((dash == 0)))){
if ((((_arg1.keyCode == lastkey)) && (!(key[_arg1.keyCode])))){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
dash = 10;
dashkey = 37;
delete key[_arg1.keyCode];
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
dash = 10;
dashkey = 39;
delete key[_arg1.keyCode];
};
} else {
dash = 0;
dashkey = 0;
delete key[_arg1.keyCode];
};
};
key[_arg1.keyCode] = true;
lastpress = getTimer();
lastkey = _arg1.keyCode;
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
};
if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){
game.scaleY = -(game.scaleY);
if (game.scaleY == -1){
game.y = 600;
} else {
game.y = 0;
};
};
if (_arg1.ctrlKey){
_local2 = treeclass.freePlace();
_local3 = 49;
while (_local3 < 56) {
if (_arg1.keyCode == _local3){
if (_local2 != -1){
} else {
traceDebug("full");
};
};
_local3++;
};
};
if (_arg1.shiftKey){
_local3 = 48;
while (_local3 < 59) {
if (_arg1.keyCode == _local3){
_local4 = treepointrev[(_local3 - 49)];
if (_local3 == 48){
_local4 = 10;
};
if (treepoint[_local4].tree != null){
treepoint[_local4].tree.off = true;
removeEvent(treepoint[_local4].tree);
treepoint[_local4].tree = null;
};
};
_local3++;
};
};
if (((!(_arg1.shiftKey)) && (!(_arg1.ctrlKey)))){
_local3 = 48;
while (_local3 < 59) {
if (_arg1.keyCode == _local3){
_local4 = treepointrev[(_local3 - 49)];
if (_local3 == 48){
_local4 = 10;
};
if (treepoint[_local4].tree != null){
treepoint[_local4].tree.off = !(treepoint[_local4].tree.off);
};
};
_local3++;
};
};
if (_arg1.keyCode == 32){
if (!MovieClip(game.parent).build_dlg.visible){
MovieClip(game.parent).build_dlg.visible = true;
MovieClip(game.parent).build_dlg.x = 300;
MovieClip(game.parent).build_dlg.y = 300;
MovieClip(game.parent).build_dlg.scaleX = 1;
MovieClip(game.parent).build_dlg.scaleY = 1;
MovieClip(game.parent).guidearrow.visible = false;
game.setLoop(game.pauseGame);
} else {
_local5 = false;
_local6 = 0;
while (_local6 < 100) {
if (MovieClip(game.parent)[("dlg" + _local6)] != null){
if (MovieClip(game.parent)[("dlg" + _local6)].visible){
MovieClip(game.parent)[("dlg" + _local6)].visible = false;
_local5 = true;
};
};
_local6++;
};
if (!_local5){
MovieClip(game.parent).build_dlg.visible = false;
};
game.setLoop(game.playGame);
};
};
if (_arg1.keyCode == 68){
if (game.lside > 0){
game.rside = (game.rside + 10);
game.lside = (game.lside - 10);
};
};
if (_arg1.keyCode == 65){
if (game.rside > 0){
game.lside = (game.lside + 10);
game.rside = (game.rside - 10);
};
};
MovieClip(game.parent).ratro.text = ((game.lside + ":") + game.rside);
}
function frame1(){
dplayer = {};
dplayer.peacemax = 68;
dplayer.manabase = 110;
dplayer.manamax = dplayer.manabase;
dplayer.peace = dplayer.peacemax;
dplayer.mana = dplayer.manamax;
dplayer.score = 0;
dplayer.lastmaxscore = 0;
game = this;
maxlevel = 10;
quake_game = 0;
world = null;
map_layer = null;
player_layer = null;
monster_layer = null;
monsterbullet_layer = null;
gfx_layer = null;
playerbullet_layer = null;
foreground_layer = null;
background_layer = null;
item_layer = null;
tile_layer = null;
monsky_layer = null;
monster = null;
player = null;
gamelevel = 0;
allsound = MovieClip(parent).allsound;
cam = {x:0, y:0, focusobject:null};
overcount = -1;
overcountmax = 100;
overSet = function (){
bonus = 0;
MovieClip(game.parent).scorex = (dplayer.score + bonus);
MovieClip(game.parent).gameover.visible = true;
MovieClip(game.parent).stageclear.visible = false;
MovieClip(game.parent).gameover.gotoAndPlay(1);
overcount = overcountmax;
game.removeEventListener("keyUp", onKeyUp);
game.removeEventListener("keyDown", onKeyDown);
};
waitlevelOver = function (){
overcount--;
if (overcount == 0){
setLoop(pauseGame);
MovieClip(parent)["build_dlg"].removeEventListener(Event.ENTER_FRAME, MovieClip(parent)["build_dlg"].onEnterFrame);
i = 0;
while (i < 100) {
if (MovieClip(parent)[("dlg" + i)] != null){
MovieClip(parent)[("dlg" + i)].removeEventListener(Event.ENTER_FRAME, MovieClip(parent)[("dlg" + i)].onEnterFrame);
};
i++;
};
game.visible = false;
game.removeEventListener(Event.ENTER_FRAME, pauseGame);
MovieClip(game.parent).gotoAndStop(1, "submit");
};
if (overcount < 0){
overcount = -1;
};
};
clearcount = -1;
clearcountmax = 100;
clearSet = function (){
MovieClip(game.parent).gameover.visible = false;
MovieClip(game.parent).stageclear.visible = true;
MovieClip(game.parent).stageclear.gotoAndPlay(1);
endcount = endmax;
game.removeEventListener("keyUp", onKeyUp);
game.removeEventListener("keyDown", onKeyDown);
setLoop(pauseGame);
MovieClip(parent)["build_dlg"].removeEventListener(Event.ENTER_FRAME, MovieClip(parent)["build_dlg"].onEnterFrame);
i = 0;
while (i < 100) {
if (MovieClip(parent)[("dlg" + i)] != null){
MovieClip(parent)[("dlg" + i)].removeEventListener(Event.ENTER_FRAME, MovieClip(parent)[("dlg" + i)].onEnterFrame);
};
i++;
};
};
waitlevelClear = function (){
};
MapAPI = MovieClip(parent).GHMAPAPI;
traceDebug("MapAPI");
for (f in MapAPI) {
if ((MapAPI[f] is Function)){
traceDebug(("\tfunction " + f));
};
};
MoveAPI = MovieClip(parent).GHMOVEAPI;
traceDebug("MoveAPI");
for (f in MoveAPI) {
if ((MoveAPI[f] is Function)){
traceDebug(("\tfunction " + f));
};
};
MoveAPI.setNotMove = function (_arg1){
_arg1.mot = null;
};
bfn = null;
backupnewobject = null;
debug = false;
attackStateAI = function (){
var _local1:*;
var _local2:*;
this.uinfo.atkdelay++;
if (this.uinfo.atkdelay == this.uinfo.atkframe){
_local1 = int((Math.random() * this.uinfo.atklist.length));
for (_local2 in this.uinfo.atklist[_local1]) {
this.uinfo.atklist[_local1][_local2].fn(this);
};
};
if (this.uinfo.atkdelay == this.uinfo.atkdelaymax){
this.AI = this.BACKAI;
this.mot = this.BACKMOT;
};
};
normalStateAI = function (){
durationComposit(this);
attackComposit(this);
};
attackComposit = function (_arg1){
if (_arg1.uinfo.atkmag != null){
if (_arg1.uinfo.atkmagcount == 0){
_arg1.uinfo.atkmagcount = _arg1.uinfo.atkmag;
_arg1.uinfo.atkreloadcount = _arg1.uinfo.atkreload;
if (_arg1.treetype != null){
if (_arg1.treetype == 6){
_arg1.uinfo.atkreloadcount = int((_arg1.uinfo.atkreload * rapid.reloadamp));
};
};
return;
};
if (_arg1.uinfo.atkreloadcount > 0){
_arg1.uinfo.atkreloadcount--;
return;
};
};
if ((((_arg1.uinfo.atkfrq > 0)) && (!((_arg1.uinfo.atklist == null))))){
_arg1.uinfo.atkcount++;
if ((_arg1.uinfo.atkcount % _arg1.uinfo.atkfrq) == 0){
_arg1.unmove = _arg1.uinfo.atkdelaymax;
_arg1.uinfo.atkdelay = 0;
_arg1.BACKAI = _arg1.AI;
_arg1.BACKMOT = _arg1.mot;
_arg1.mot = null;
_arg1.AI = attackStateAI;
_arg1.uinfo.atkcount = 0;
if (_arg1.uinfo.atkmag != null){
if (_arg1.treetype != null){
if (_arg1.treetype == 3){
if ((Math.random() * 100) < archercontinual.chance){
_arg1.uinfo.atkmagcount = (_arg1.uinfo.atkmagcount + archercontinual.magcountadd);
};
};
if (_arg1.treetype == 6){
if ((Math.random() * 100) < flowercontinual.chance){
_arg1.uinfo.atkmagcount = (_arg1.uinfo.atkmagcount + flowercontinual.magcountadd);
};
};
};
_arg1.uinfo.atkmagcount--;
};
};
};
};
gunTransfrom = function (_arg1){
var _local2:*;
_local2 = new Point(_arg1.x, _arg1.y);
_local2 = MovieClip(_arg1.parent).localToGlobal(_local2);
_local2 = world.globalToLocal(_local2);
return (_local2);
};
atkStar = function (_arg1){
var _local2:*;
var _local3:*;
if (game[_arg1.uinfo.targetgroup] == null){
return;
};
_local2 = 0;
while (_local2 < this.num) {
_local3 = addMonster(game[this.object]);
if (_arg1.gun == null){
_local3.x = _arg1.x;
_local3.y = _arg1.y;
} else {
_local3.x = _arg1.gun.x;
_local3.y = _arg1.gun.y;
};
MoveAPI.setAngleMove(_local3, ((360 / this.num) * _local2), this.speed);
_local2++;
};
};
atkToTarget = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (this.angle == null){
this.angle = 15;
};
if (this.num == null){
this.num = 1;
};
if (this.rot == null){
this.rot = true;
};
if (this.err == null){
this.err = 0;
};
_local2 = _arg1.objtarget;
if (_local2 != null){
_local2 = new Point(((_local2.x + (Math.random() * this.err)) - (this.err / 2)), _local2.y);
_local3 = 0;
while (_local3 < this.num) {
_local4 = addMonster(game[this.object]);
if (_arg1.gun == null){
_local4.x = _arg1.x;
_local4.y = _arg1.y;
} else {
_local6 = gunTransfrom(_arg1.gun);
_local4.x = _local6.x;
_local4.y = _local6.y;
if (this.rot){
_arg1.gun.rotation = findAngleObj(_local2, _local4);
};
};
_local5 = findAngle(_local4, _local2);
MoveAPI.setAngleMove(_local4, (_local5 - ((_local3 - ((this.num - 1) * 0.5)) * this.angle)), this.speed);
_local3++;
};
};
};
atkToTargetHoming = function (_arg1){
var _local2:*;
var _local3:*;
if (_arg1.objtarget == null){
return;
};
_local2 = addMonster(game[this.object]);
if (_arg1.gun == null){
_local2.x = _arg1.x;
_local2.y = _arg1.y;
} else {
_local3 = gunTransfrom(_arg1.gun);
_local2.x = _local3.x;
_local2.y = _local3.y;
};
MoveAPI.setHomingMove(_local2, _arg1.objtarget, 3, 1);
};
atkToMouse = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
i = 0;
while (i < this.num) {
_local2 = addMonster(game[this.object]);
if (_arg1.gun == null){
_local2.x = _arg1.x;
_local2.y = _arg1.y;
} else {
_local5 = gunTransfrom(_arg1.gun);
_local2.x = _local5.x;
_local2.y = _local5.y;
};
_local3 = new Point(mouseX, mouseY);
_local4 = findAngle(_local2, _local3);
MoveAPI.setAngleMove(_local2, (_local4 - ((i - ((this.num - 1) * 0.5)) * this.angle)), this.speed);
i++;
};
};
atkToRandom = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = (Math.random() * this.range);
_local3 = (Math.random() * this.range);
i = 0;
while (i < this.num) {
_local4 = addMonster(game[this.object]);
if (_arg1.gun == null){
_local4.x = _arg1.x;
_local4.y = _arg1.y;
} else {
_local7 = gunTransfrom(_arg1.gun);
_local4.x = _local7.x;
_local4.y = _local7.y;
};
_local5 = new Point((this.x + _local2), (this.y + _local3));
_local6 = findAngle(_local4, _local5);
MoveAPI.setAngleMove(_local4, (_local6 - ((i - ((this.num - 1) * 0.5)) * this.angle)), this.speed);
i++;
};
};
atk_bullet_target = {fn:atkToTarget, object:"freebullet", range:300, speed:5};
atk_throw_star = {fn:atkToTarget, object:"bullet16way", range:300, speed:5};
g_bullet_target = new Array({a0:atk_bullet_target});
g_throw_star = new Array({a0:atk_throw_star});
removeEvent = function (_arg1){
_arg1.gravityfunction = null;
_arg1.walkfunction = null;
_arg1.AI = null;
_arg1.mot = null;
_arg1.process = null;
_arg1.hitsearch = null;
_arg1.gotoAndPlay("die");
if (_arg1.tilelayer != null){
tilecount--;
monpoint[_arg1.at].mon = null;
};
if (_arg1.uinfo.mc.substr(0, 6) == "cdrone"){
allsound.enemy.play();
};
if (_arg1.uinfo.mc.substr(0, 9) == "small_fac"){
allsound.fac1.play();
};
if (_arg1.uinfo.mc == "cnuke"){
allsound.nuke.play();
};
if ((((_arg1.uinfo.mc.substr(0, 4) == "tree")) && ((_arg1.uinfo.mc.length == 4)))){
allsound.tree.play();
};
if (_arg1.uinfo.mc.substr(0, 8) == "treeunit"){
allsound.treeu.play();
};
if (_arg1 == v_earthtree){
v_earthtree.gage.visible = false;
overSet();
};
if (_arg1 == v_mfac){
if (_arg1.uinfo.hp <= 0){
if (currentlevel < maxfaclevel){
dplayer.lastmaxscore = (levelinfoX[currentlevel].score + 1);
return;
};
allsound.fac2.play();
clearSet();
};
};
};
durationComposit = function (_arg1){
if (_arg1.uinfo.dura > 0){
_arg1.uinfo.dura--;
if (_arg1.uinfo.dura == 0){
if (_arg1.groupof == "tile_layer"){
dplayer.peace = (dplayer.peace - 4);
};
removeEvent(_arg1);
};
};
};
normalHit = function (){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = game[this.uinfo.targetgroup];
if (_local1 != null){
_local2 = (_local1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _local1.getChildAt(_local2);
if (this == _local3){
} else {
if (((!((this.hit == null))) && (!((_local3.hit == null))))){
if (this.hit.hitTestObject(_local3.hit)){
if (hitEvent(this, _local3)){
break;
};
};
};
};
_local2--;
};
};
};
hitEvent = function (_arg1, _arg2){
removeEvent(_arg2);
};
CLASS_RESET_STATUS = {mc:"testobject", hp:10, knockback:90000, damage:1, dura:-1, targetgroup:"player_layer", multitarget:false, atkfrq:0, atkcount:0, atkdelaymax:0, atkdelay:0, atkframe:0, atklist:null, finalattack:null, finaltime:false, finaldead:false};
CLASS_ADD_STATUS_ATTACK_NORMAL = {atkfrq:100, atkcount:0, atkdelaymax:15, atkdelay:0, atkframe:10};
CLASS_ADD_STATUS_ATTACK_NULL = {atkfrq:0, atkcount:0, atkdelaymax:0, atkdelay:0, atkframe:0, atklist:null};
CLASS_ADD_STATUS_KNOCKBACK = {knockback:0};
CLASS_ADD_ALL_MOVE_KNOCK = {knock:0, knockpow:20};
DEF_NO_MAP_NOMOVE = {simple:true, motcall:null, param:null, knock:0};
DEF_NO_MAP_LINEMOVE_X5Y0 = {simple:true, motcall:MoveAPI.setLineMove, param:{p0:5, p1:0}};
CLASS_RESET_GRAVI_AND_MOVE = {gravity:2, speed:0, dir:0, undown:false, jump:false, jumpfrq:25, jumppow:15, freewalk:false, downspeed:0, stayground:false, baseline:0, unmove:0, walkcount:0, knock:0, obstruct:false};
CLASS_ADD_GRAVI_JUMP_HIGH = {jump:true, jumpfrq:25, jumppow:20};
CLASS_ADD_GRAVI_JUMP_UNDOWN = {undown:true, jump:true, jumpfrq:25, jumppow:15};
CLASS_ADD_GRAVI_WALK_SLOW_UNDOWN = {speed:3, dir:1, undown:true};
CLASS_ADD_GRAVI_WALK_FAST_UNDOWN = {speed:6, dir:1, undown:true};
CLASS_ADD_GRAVI_WALK_SLOW = {speed:3, dir:1, undown:false};
CLASS_ADD_GRAVI_WALK_FAST = {speed:6, dir:1, undown:false};
CLASS_ADD_GRAVI_JUMP = {jump:true, jumpfrq:25, jumppow:15};
hero = {};
hero.uinfo = {};
hero.groupof = "player_layer";
hero.control = 0;
pasteObject(hero, CLASS_RESET_GRAVI_AND_MOVE);
pasteObject(hero, {jumppow:20});
pasteObject(hero, {speed:8, dir:0, undown:false});
pasteObject(hero.uinfo, CLASS_RESET_STATUS);
pasteObject(hero.uinfo, CLASS_ADD_STATUS_KNOCKBACK);
hero.uinfo.hp = 5000;
freebullet = {};
freebullet.uinfo = {};
pasteObject(freebullet, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(freebullet, DEF_NO_MAP_NOMOVE);
pasteObject(freebullet.uinfo, CLASS_RESET_STATUS);
pasteObject(freebullet.uinfo, {mc:"bulletsmall", hp:1, knockback:90000, damage:500, targetgroup:"player_layer", multitarget:false, atklist:null});
freebullet.AI = normalStateAI;
freebullet.uinfo.dura = 100;
freebullet.hitsearch = normalHit;
freebullet.groupof = "monster_layer";
bullet16way = {};
bullet16way.uinfo = {};
pasteObject(bullet16way, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(bullet16way, DEF_NO_MAP_NOMOVE);
pasteObject(bullet16way.uinfo, CLASS_RESET_STATUS);
pasteObject(bullet16way.uinfo, {mc:"bulletsmall", hp:1, knockback:90000, damage:500, targetgroup:"player_layer", multitarget:false, atklist:null});
bullet16way.AI = normalStateAI;
bullet16way.uinfo.dura = 100;
bullet16way.uinfo.finalattack = {fn:atkStar, object:"freebullet", num:16, speed:10};
bullet16way.hitsearch = normalHit;
bullet16way.groupof = "monster_layer";
mario = {};
pasteObject(mario, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(mario, CLASS_RESET_GRAVI_AND_MOVE);
pasteObject(mario, CLASS_ADD_GRAVI_JUMP);
pasteObject(mario, CLASS_ADD_GRAVI_WALK_SLOW);
mario.uinfo = {};
pasteObject(mario.uinfo, CLASS_RESET_STATUS);
pasteObject(mario.uinfo, CLASS_ADD_STATUS_KNOCKBACK);
galaxy = {};
pasteObject(galaxy, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(galaxy, DEF_NO_MAP_LINEMOVE_X5Y0);
galaxy.uinfo = {};
pasteObject(galaxy.uinfo, CLASS_RESET_STATUS);
pasteObject(galaxy.uinfo, {mc:"testobject", hp:10, knockback:90000, damage:500, targetgroup:"monster_layer", multitarget:false, atklist:null});
galaxy.hitsearch = normalHit;
galaxy.groupof = "monster_layer";
naruto = {};
pasteObject(naruto, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(naruto, CLASS_RESET_GRAVI_AND_MOVE);
pasteObject(naruto, CLASS_ADD_GRAVI_JUMP_HIGH);
pasteObject(naruto, CLASS_ADD_GRAVI_WALK_FAST);
naruto.uinfo = {};
pasteObject(naruto.uinfo, CLASS_RESET_STATUS);
pasteObject(naruto.uinfo, CLASS_ADD_STATUS_KNOCKBACK);
pasteObject(naruto.uinfo, CLASS_ADD_STATUS_ATTACK_NORMAL);
naruto.AI = normalStateAI;
naruto.hitsearch = normalHit;
naruto.uinfo.atklist = g_throw_star;
ken = {};
pasteObject(ken, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(ken, CLASS_RESET_GRAVI_AND_MOVE);
pasteObject(ken, {gravity:2, speed:3, dir:1, undown:false, jump:true, jumpfrq:25, jumppow:20, freewalk:false, downspeed:0, stayground:false, baseline:0, unmove:0, walkcount:0, knock:0, obstruct:false});
ken.uinfo = {};
pasteObject(ken.uinfo, CLASS_RESET_STATUS);
pasteObject(ken.uinfo, {mc:"testobject", hp:10, knockback:90000, damage:500, targetgroup:"player_layer", atklist:null});
ken.groupof = "monster_layer";
group1 = new Array(mario, naruto);
group2 = new Array(galaxy, ken);
pointlist = new Array();
facBulletHit = function (){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = game["player_layer"];
if (_local1 != null){
_local2 = (_local1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _local1.getChildAt(_local2);
if (this == _local3){
} else {
if (((!((this.hit == null))) && (!((_local3.hit == null))))){
if (this.hit.hitTestObject(_local3.hit)){
if (_local3.uinfo.avoid != null){
if (_local3.treetype == 1){
if ((Math.random() * 100) < (_local3.uinfo.avoid * shilddodge.avoidamp)){
rep.push("shilder unit avoid Damage");
return;
};
};
if (_local3.treetype == 3){
if ((Math.random() * 100) < (_local3.uinfo.avoid * archerdodge.avoidamp)){
rep.push("Archer unit avoid Damage");
return;
};
};
};
_local3.uinfo.hp = (_local3.uinfo.hp - this.uinfo.damage);
dplayer.score = (dplayer.score - this.uinfo.damage);
if (_local3.uinfo.hp <= 0){
if (_local3.at != null){
traceDebug(_local3.at);
treepoint[_local3.at].tree = null;
};
removeEvent(_local3);
};
if (this.laser == null){
removeEvent(this);
};
};
};
};
_local2--;
};
};
_local1 = game["playerbullet_layer"];
if (_local1 != null){
_local2 = (_local1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _local1.getChildAt(_local2);
if (this == _local3){
} else {
if (((!((this.hit == null))) && (!((_local3.hit == null))))){
if (this.hit.hitTestObject(_local3.hit)){
_local3.uinfo.hp = (_local3.uinfo.hp - this.uinfo.damage);
if (_local3.uinfo.hp <= 0){
if (_local3.at != null){
treepoint[_local3.at].tree = null;
};
removeEvent(_local3);
};
if (this.groupof != "monsky_layer"){
removeEvent(this);
} else {
if (this.laser != null){
if (this.uinfo.hp <= 0){
removeEvent(this);
};
};
};
};
};
};
_local2--;
};
};
};
factoryHit = function (){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = game["player_layer"];
if (_local1 != null){
_local2 = (_local1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _local1.getChildAt(_local2);
if (this == _local3){
} else {
if (((!((this.hit == null))) && (!((_local3.hit == null))))){
if (this.hit.hitTestObject(_local3.hit)){
this.uinfo.hp = (this.uinfo.hp - _local3.uinfo.damage);
if (this.uinfo.hp <= 0){
game[("e" + this.at)].fac = null;
removeEvent(this);
};
_local3.uinfo.hp = 0;
removeEvent(_local3);
};
};
};
_local2--;
};
};
};
treeBulletHit = function (){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = game["monster_layer"];
if (_local1 != null){
_local2 = (_local1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _local1.getChildAt(_local2);
if (this == _local3){
} else {
if (((!((this.hit == null))) && (!((_local3.hit == null))))){
if (this.hit.hitTestObject(_local3.hit)){
_local3.uinfo.hp = (_local3.uinfo.hp - this.uinfo.damage);
dplayer.score = (dplayer.score + this.uinfo.damage);
if (_local3.uinfo.hp <= 0){
if (_local3.at != null){
game[("e" + _local3.at)].fac = null;
};
removeEvent(_local3);
};
this.uinfo.hp = 0;
removeEvent(this);
};
};
};
_local2--;
};
};
};
treeHealBulletHit = function (){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = game["monster_layer"];
if (_local1 != null){
_local2 = (_local1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _local1.getChildAt(_local2);
if (this == _local3){
} else {
if (((!((this.hit == null))) && (!((_local3.hit == null))))){
if (this.hit.hitTestObject(_local3.hit)){
_local3.uinfo.hp = (_local3.uinfo.hp - this.uinfo.damage);
dplayer.score = (dplayer.score + this.uinfo.damage);
if (_local3.uinfo.hp <= 0){
if (_local3.at != null){
game[("e" + _local3.at)].fac = null;
};
removeEvent(_local3);
};
this.uinfo.hp = 0;
removeEvent(this);
return;
};
};
};
_local2--;
};
};
_local1 = game["player_layer"];
if (_local1 != null){
_local2 = (_local1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _local1.getChildAt(_local2);
if (this == _local3){
} else {
if (((((!((this.hit == null))) && (!((_local3.hit == null))))) && ((_local3.speed > 0)))){
if (this.hit.hitTestObject(_local3.hit)){
_local3.uinfo.hp = (_local3.uinfo.hp + int(((Math.random() * heal.current) + 5)));
removeEvent(this);
return;
};
};
};
_local2--;
};
};
};
fac_bullet = {};
pasteObject(fac_bullet, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(fac_bullet, DEF_NO_MAP_NOMOVE);
fac_bullet.uinfo = {};
pasteObject(fac_bullet.uinfo, CLASS_RESET_STATUS);
pasteObject(fac_bullet.uinfo, {mc:"ebullet1", hp:1, knockback:90000, damage:3, targetgroup:"player_layer", multitarget:false, atklist:null});
fac_bullet.AI = normalStateAI;
fac_bullet.uinfo.dura = 250;
fac_bullet.hitsearch = facBulletHit;
fac_bullet.groupof = "monsterbullet_layer";
fac_laser_bullet = {};
pasteObject(fac_laser_bullet, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(fac_laser_bullet, DEF_NO_MAP_NOMOVE);
fac_laser_bullet.uinfo = {};
pasteObject(fac_laser_bullet.uinfo, CLASS_RESET_STATUS);
pasteObject(fac_laser_bullet.uinfo, {mc:"ebullet2", hp:1, knockback:90000, damage:1, targetgroup:"player_layer", multitarget:false, atklist:null});
fac_laser_bullet.AI = normalStateAI;
fac_laser_bullet.process = function (){
this.rotation = (((Math.atan2(this.__GHLINE.speedy, this.__GHLINE.speedx) * 180) / Math.PI) + 90);
};
fac_laser_bullet.uinfo.dura = 250;
fac_laser_bullet.hitsearch = facBulletHit;
fac_laser_bullet.groupof = "monsterbullet_layer";
fac_laser_bullet.laser = true;
gunComposit = function (_arg1){
var _local2:*;
var _local3:*;
i = 1;
for (;i < 20;i++) {
//unresolved if
_local2 = _arg1[("guninfo" + i)];
if (_local2.mag != null){
if (_local2.reloadcount > 0){
_local2.reloadcount--;
};
if ((((_local2.magcount > 0)) && ((_local2.reloadcount == 0)))){
} else {
if (_local2.magcount == 0){
_local2.reloadcount = _local2.reload;
_local2.magcount = _local2.mag;
};
continue;
};
};
};
};
factoryProcess = function (){
this.framecount++;
if (this.framecount > 10000000){
this.framecount = 0;
};
if (this.objtarget == null){
this.objtarget = searchNearObjectIn("player_layer", this);
} else {
if (this.objtarget.uinfo != null){
if (this.objtarget.uinfo.hp <= 0){
this.objtarget = searchNearObjectIn("player_layer", this);
};
} else {
this.objtarget = searchNearObjectIn("player_layer", this);
};
};
if (this.objtarget != null){
if (this.objtarget.y < (this.y - 200)){
this.objtarget = getSomeObjectIn("player_layer");
};
};
if (this.objtarget == null){
return;
};
if (this.objtarget.uinfo == null){
return;
};
if (this.objtarget.uinfo.hp == 0){
return;
};
gunComposit(this);
};
masterFactoryProcess = function (){
this.success = (int(((this.uinfo.hp * 100) / this.uinfo.hpmax)) + 1);
this.gage.gotoAndStop(this.success);
this.framecount++;
createDron(drone2);
createNuke();
if ((this.framecount % 100) == 0){
createFactory(findFree());
};
if (this.framecount > 10000000){
this.framecount = 0;
};
if (this.objtarget == null){
this.objtarget = searchNearObjectIn("player_layer", this);
} else {
if (this.objtarget.uinfo != null){
if (this.objtarget.uinfo.hp <= 0){
this.objtarget = searchNearObjectIn("player_layer", this);
};
} else {
this.objtarget = searchNearObjectIn("player_layer", this);
};
};
if (this.objtarget != null){
if (this.objtarget.y < (this.y - 350)){
this.objtarget = getSomeObjectIn("player_layer");
};
};
if (this.objtarget == null){
return;
};
if (this.objtarget.uinfo == null){
return;
};
if (this.objtarget.uinfo.hp == 0){
return;
};
gunComposit(this);
};
masterfactory = new Array();
fi = 1;
while (fi < 7) {
masterfactory[fi] = {};
pasteObject(masterfactory[fi], CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(masterfactory[fi], DEF_NO_MAP_NOMOVE);
masterfactory[fi].uinfo = {};
pasteObject(masterfactory[fi].uinfo, CLASS_RESET_STATUS);
pasteObject(masterfactory[fi].uinfo, {mc:("main_fac" + fi), hp:600, hpmax:600, knockback:90000, damage:3, targetgroup:"player_layer", multitarget:false, atklist:null});
masterfactory[fi].groupof = "monster_layer";
masterfactory[fi].hitsearch = factoryHit;
masterfactory[fi].process = masterFactoryProcess;
masterfactory[fi].framecount = 0;
masterfactory[fi].guninfo1 = {vib:8, frq:25, mag:4, magcount:0, reload:400, reloadcount:0, rot:true};
masterfactory[fi].guninfo2 = {vib:24, frq:25, mag:3, magcount:0, reload:300, reloadcount:0, rot:true};
masterfactory[fi].guninfo3 = {vib:12, frq:25, mag:3, magcount:0, reload:300, reloadcount:0, rot:true};
masterfactory[fi].guninfo4 = {vib:10, frq:25, mag:4, magcount:0, reload:500, reloadcount:0, rot:true};
masterfactory[fi].guninfo5 = {vib:2, frq:50, mag:5, magcount:0, reload:600, reloadcount:0, rot:true};
masterfactory[fi].guninfo6 = {vib:30, frq:25, mag:3, magcount:0, reload:550, reloadcount:0, rot:true};
masterfactory[fi].guninfo11 = {vib:30, frq:1, mag:1, magcount:0, reload:70, reloadcount:56, rot:true};
masterfactory[fi].guninfo12 = {vib:30, frq:1, mag:1, magcount:0, reload:60, reloadcount:48, rot:true};
masterfactory[fi].guninfo13 = {vib:30, frq:1, mag:1, magcount:0, reload:50, reloadcount:40, rot:true};
masterfactory[fi].guninfo14 = {vib:30, frq:1, mag:1, magcount:0, reload:40, reloadcount:32, rot:true};
masterfactory[fi].guninfo15 = {vib:30, frq:1, mag:1, magcount:0, reload:30, reloadcount:24, rot:true};
fi++;
};
sfactory = new Array();
fi = 1;
while (fi < 4) {
sfactory[fi] = {};
pasteObject(sfactory[fi], masterfactory[1]);
sfactory[fi].uinfo = {};
pasteObject(sfactory[fi].uinfo, masterfactory[1].uinfo);
pasteObject(sfactory[fi].uinfo, {mc:("small_fac" + fi), hp:(3 + (fi * 1.2)), hpmax:(3 + (fi * 1.2)), knockback:90000, damage:3, targetgroup:"player_layer", multitarget:false, atklist:null});
sfactory[fi].process = factoryProcess;
fi++;
};
createdronespeed = 95;
createdronecount = 0;
drone = {};
pasteObject(drone, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(drone, DEF_NO_MAP_NOMOVE);
drone.uinfo = {};
pasteObject(drone.uinfo, CLASS_RESET_STATUS);
pasteObject(drone.uinfo, {mc:"cdrone1", hp:2, hpmax:2, hpmaxbase:2, avoid:10, knockback:90000, damage:10, targetgroup:"player_layer", multitarget:false, atklist:null});
drone.groupof = "monsky_layer";
drone.treetype = i;
drone.speed = 2;
drone.aspeed = -0.03;
drone.pos = 0;
drone.startout = 0;
drone.kami = 0;
drone.framecount = 0;
drone.hitsearch = facBulletHit;
drone.process = function (){
this.startout++;
if ((((this.startout > 40)) && ((this.startout < this.kami)))){
this.pos = (this.pos + this.aspeed);
this.x = ((280 * Math.cos(this.pos)) + 300);
this.y = ((280 * Math.sin(this.pos)) + 300);
this.rotation = ((this.pos * 180) / Math.PI);
};
if (this.startout == (this.kami + 1)){
MoveAPI.setHomingMove(this, getSomeObjectIn("player_layer"), 20, 15);
};
this.framecount++;
if (this.framecount > 10000000){
this.framecount = 0;
};
};
drone1 = drone;
drone2 = {};
pasteObject(drone2, drone);
drone2.uinfo = {};
pasteObject(drone2.uinfo, CLASS_RESET_STATUS);
pasteObject(drone2.uinfo, {mc:"cdrone2", hp:2, hpmax:2, hpmaxbase:2, avoid:10, knockback:90000, damage:10, targetgroup:"player_layer", multitarget:false, atklist:null});
drone2.guninfo16 = {vib:30, frq:1, mag:1, magcount:0, reload:25, reloadcount:0, rot:true};
drone2.process = function (){
this.startout++;
if ((((this.startout > 40)) && ((this.startout < this.kami)))){
this.pos = (this.pos + this.aspeed);
this.x = ((280 * Math.cos(this.pos)) + 300);
this.y = ((280 * Math.sin(this.pos)) + 300);
this.rotation = ((this.pos * 180) / Math.PI);
};
if (this.startout == (this.kami + 1)){
MoveAPI.setHomingMove(this, getSomeObjectIn("player_layer"), 20, 15);
};
this.framecount++;
if (this.framecount > 10000000){
this.framecount = 0;
};
this.objtarget = searchNearObjectIn("player_layer", this);
gunComposit(this);
};
drone1.uinfo.hp = 4;
drone2.uinfo.hp = 4;
createspeed = 22;
createcount = 0;
tilecount = 0;
tileUnitCreate = function (){
var _local1:*;
var _local2:*;
if ((createcount % createspeed) == 0){
_local1 = int((Math.random() * 25));
if ((((monpoint[_local1].mon == null)) && ((tilecount < levelinfoX[currentlevel].maxtile)))){
i = 5;
while (i >= 0) {
if ((Math.random() * 100) < leveltank[currentlevel][i]){
break;
};
i--;
};
if ((i + 1) > 0){
_local2 = addMonster(tileuint[(i + 1)]);
_local2.tilelayer = true;
_local2.x = monpoint[_local1].x;
_local2.y = monpoint[_local1].y;
monpoint[_local1].mon = _local2;
_local2.at = _local1;
tilecount++;
createcount = 0;
};
} else {
return;
};
};
createcount++;
};
tileuint = new Array();
fi = 1;
while (fi < 7) {
tileuint[fi] = {};
pasteObject(tileuint[fi], masterfactory[1]);
tileuint[fi].uinfo = {};
pasteObject(tileuint[fi].uinfo, masterfactory[1].uinfo);
pasteObject(tileuint[fi].uinfo, {mc:("tank" + fi), hp:1000, knockback:90000, damage:3, targetgroup:"player_layer", multitarget:false, atklist:null});
tileuint[fi].AI = normalStateAI;
tileuint[fi].process = factoryProcess;
tileuint[fi].processex = function (){
fadetime = 75;
if (this.uinfo.dura < fadetime){
this.alpha = (this.uinfo.dura / (fadetime + 10));
};
};
tileuint[fi].groupof = "tile_layer";
fi++;
};
tileuint[1].uinfo.hp = 3;
tileuint[1].uinfo.dura = 150;
tileuint[1].uinfo.damage = 1;
tileuint[1].uinfo.mana = 1.5;
tileuint[2].uinfo.hp = 9;
tileuint[2].uinfo.dura = 150;
tileuint[2].uinfo.damage = 1;
tileuint[2].uinfo.mana = 3.7;
tileuint[3].uinfo.hp = 9;
tileuint[3].uinfo.dura = 150;
tileuint[3].uinfo.damage = 1;
tileuint[3].uinfo.mana = 3.9;
tileuint[4].uinfo.hp = 12;
tileuint[4].uinfo.dura = 150;
tileuint[4].uinfo.damage = 1;
tileuint[4].uinfo.mana = 5;
tileuint[5].uinfo.hp = 9;
tileuint[5].uinfo.dura = 150;
tileuint[5].uinfo.damage = 3;
tileuint[5].uinfo.mana = 4.1;
tileuint[6].uinfo.hp = 150;
tileuint[6].uinfo.dura = 50;
tileuint[6].uinfo.damage = 0;
tileuint[6].uinfo.mana = 0;
createnukespeed = 225;
createnukecount = 0;
createNuke = function (){
var _local1:*;
if (!levelinfoX[currentlevel].nuke){
return;
};
createnukecount++;
if (createnukecount == createnukespeed){
_local1 = addMonster(nukebase);
allsound.nuke_launce.play();
_local1.pos = 1.4;
_local1.x = 300;
_local1.y = 560;
_local1.kami = (100 + (int((Math.random() * 5)) * 25));
createnukecount = 0;
};
};
nukebase = {};
pasteObject(nukebase, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(nukebase, DEF_NO_MAP_NOMOVE);
nukebase.uinfo = {};
pasteObject(nukebase.uinfo, CLASS_RESET_STATUS);
pasteObject(nukebase.uinfo, {mc:"cnuke", hp:4, hpmax:4, hpmaxbase:4, avoid:0, knockback:90000, damage:50, targetgroup:"player_layer", multitarget:false, atklist:null});
nukebase.groupof = "monsky_layer";
nukebase.treetype = i;
nukebase.speed = 1;
nukebase.aspeed = -0.01;
nukebase.pos = 0;
nukebase.startout = 0;
nukebase.kami = 0;
nukebase.framecount = 0;
nukebase.hitsearch = facBulletHit;
nukebase.process = function (){
this.startout++;
if ((((this.startout > 0)) && ((this.startout < this.kami)))){
this.y = (this.y + 3);
this.rotation = -180;
};
if (this.startout == (this.kami + 1)){
MoveAPI.setHomingMove(this, getSomeObjectIn("player_layer"), 20, 10);
};
this.framecount++;
if (this.framecount > 10000000){
this.framecount = 0;
};
};
attacker_bullet = {};
pasteObject(attacker_bullet, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(attacker_bullet, DEF_NO_MAP_NOMOVE);
attacker_bullet.uinfo = {};
pasteObject(attacker_bullet.uinfo, CLASS_RESET_STATUS);
pasteObject(attacker_bullet.uinfo, {mc:"hero_bullet1", hp:1, knockback:90000, damage:1, targetgroup:"monster_layer", multitarget:false, atklist:null});
attacker_bullet.AI = normalStateAI;
attacker_bullet.uinfo.dura = 35;
attacker_bullet.hitsearch = treeBulletHit;
attacker_bullet.groupof = "playerbullet_layer";
flower_bullet = {};
pasteObject(flower_bullet, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(flower_bullet, DEF_NO_MAP_NOMOVE);
flower_bullet.uinfo = {};
pasteObject(flower_bullet.uinfo, CLASS_RESET_STATUS);
pasteObject(flower_bullet.uinfo, {mc:"hero_bullet2", hp:1, knockback:90000, damage:1, targetgroup:"monster_layer", multitarget:false, atklist:null});
flower_bullet.AI = normalStateAI;
flower_bullet.uinfo.dura = 50;
flower_bullet.hitsearch = treeBulletHit;
flower_bullet.groupof = "playerbullet_layer";
heal_bullet = {};
pasteObject(heal_bullet, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(heal_bullet, DEF_NO_MAP_NOMOVE);
heal_bullet.uinfo = {};
pasteObject(heal_bullet.uinfo, CLASS_RESET_STATUS);
pasteObject(heal_bullet.uinfo, {mc:"hero_bullet3", hp:1, knockback:90000, damage:0.1, heal:2, targetgroup:"monster_layer", multitarget:false, atklist:null});
heal_bullet.AI = normalStateAI;
heal_bullet.uinfo.dura = 50;
heal_bullet.hitsearch = treeHealBulletHit;
heal_bullet.groupof = "playerbullet_layer";
AIRightUpStage = function (){
durationComposit(this);
attackComposit(this);
if (this.y < 110){
this.y = 110;
this.rotation = (this.rotation - 90);
MoveAPI.setLineMove(this, -(this.speed), 0);
this.AI = AIStartStage;
};
};
AILeftUpStage = function (){
durationComposit(this);
attackComposit(this);
if (this.y < 110){
this.y = 110;
this.rotation = (this.rotation + 90);
MoveAPI.setLineMove(this, this.speed, 0);
this.AI = AIStartStage;
};
};
AIButtomStage = function (){
durationComposit(this);
attackComposit(this);
if (this.x > 490){
this.x = 490;
this.rotation = (this.rotation - 90);
MoveAPI.setLineMove(this, 0, -(this.speed));
this.AI = AIRightUpStage;
};
if (this.x < 110){
this.x = 110;
this.rotation = (this.rotation + 90);
MoveAPI.setLineMove(this, 0, -(this.speed));
this.AI = AILeftUpStage;
};
};
AIRightDownStage = function (){
durationComposit(this);
attackComposit(this);
if (this.y > 490){
this.y = 490;
this.rotation = (this.rotation + 90);
MoveAPI.setLineMove(this, -(this.speed), 0);
this.AI = AIButtomStage;
};
};
AILeftDownStage = function (){
durationComposit(this);
attackComposit(this);
if (this.y > 490){
this.y = 490;
this.rotation = (this.rotation - 90);
MoveAPI.setLineMove(this, this.speed, 0);
this.AI = AIButtomStage;
};
};
AIStartStage = function (){
durationComposit(this);
attackComposit(this);
if (this.x > 490){
this.x = 490;
this.rotation = (this.rotation + 90);
MoveAPI.setLineMove(this, 0, this.speed);
this.AI = AIRightDownStage;
};
if (this.x < 110){
this.x = 110;
this.rotation = (this.rotation - 90);
MoveAPI.setLineMove(this, 0, this.speed);
this.AI = AILeftDownStage;
};
};
utree1 = null;
utree2 = null;
utree3 = null;
utree4 = null;
utree5 = null;
utree6 = null;
utree7 = null;
utree8 = null;
utree9 = null;
attacker_atk = new Array({a0:{fn:atkToTarget, object:"attacker_bullet", range:115, speed:7}});
i = 1;
while (i < 9) {
game[("utree" + i)] = {};
pasteObject(game[("utree" + i)], CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(game[("utree" + i)], DEF_NO_MAP_NOMOVE);
game[("utree" + i)].uinfo = {};
pasteObject(game[("utree" + i)].uinfo, CLASS_RESET_STATUS);
pasteObject(game[("utree" + i)].uinfo, {mc:("treeunit" + i), hp:2, hpmax:2, hpmaxbase:2, avoid:10, knockback:90000, damage:10, targetgroup:"monster_layer", multitarget:false, atklist:null});
game[("utree" + i)].groupof = "player_layer";
game[("utree" + i)].treetype = i;
game[("utree" + i)].AI = AIStartStage;
game[("utree" + i)].speed = 2;
game[("utree" + i)].process = function (){
if (this.treetype == 1){
this.uinfo.hp = (this.uinfo.hp + (this.uinfo.hpmax * shildendure.recover));
};
if (this.uinfo.atkfrq > 0){
this.objtarget = getSomeObjectIn("monster_layer");
};
};
if (i == 3){
pasteObject(game[("utree" + i)].uinfo, {atkfrq:2, atkcount:0, atkdelaymax:25, atkdelay:25, atkframe:1, atklist:attacker_atk, atkmag:4, atkmagcount:4, atkreload:60, atkreloadcount:0});
} else {
pasteObject(game[("utree" + i)].uinfo, {atkfrq:0, atkcount:0, atkdelaymax:2, atkdelay:2, atkframe:1, atklist:attacker_atk, atkmag:1, atkmagcount:1, atkreload:65, atkreloadcount:0});
};
i++;
};
utree1.uinfo.hp = 0.1;
utree1.uinfo.hpmax = 6;
utree1.uinfo.damage = 0.1;
utree1.speed = 2;
utree2.uinfo.hp = 0.1;
utree2.uinfo.hpmax = 4;
utree2.uinfo.damage = 7.5;
utree2.speed = 0.5;
utree3.uinfo.hp = 0.1;
utree3.uinfo.hpmax = 2;
utree3.uinfo.damage = 0.5;
utree3.speed = 1;
heal_atk = new Array({a0:{fn:atkToRandom, object:"heal_bullet", num:5, angle:5, x:100, y:60, range:350, speed:10}});
flower_atk = new Array({a0:{fn:atkToRandom, object:"flower_bullet", num:2, angle:15, x:110, y:600, range:400, speed:5}});
skillActiveComposit = function (_arg1){
if (_arg1.base.countdown > 0){
if (_arg1.base.countdown == 1){
if (_arg1.base.activeskill != null){
_arg1.base.activeskill();
};
};
_arg1.base.countdown--;
};
if (_arg1.pgage.currentFrame == 1){
_arg1.pgage.visible = false;
} else {
_arg1.pgage.visible = true;
};
};
createUnitProcess = function (){
var _local1:*;
this.success = (int(((this.uinfo.hp * 100) / this.uinfo.hpmax)) + 1);
this.gage.gotoAndStop(this.success);
if (this.off){
this.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5);
return;
};
this.transform.colorTransform = new ColorTransform(1, 1, 1);
_local1 = 1;
if (this.treetype == 1){
_local1 = shildcrop.createamp;
};
if (this.treetype == 2){
_local1 = attcrop.createamp;
};
if ((((dplayer.mana > this.manaperframe)) && (!(this.pauseprocess)))){
dplayer.mana = (dplayer.mana - (this.manaperframe * blessingforce.manaamp));
this.createcount++;
if ((this.createcount % int(((this.createrate * blessingforce.delayamp) * _local1))) == 0){
treeclass.createUnit(this.at, this.treetype);
this.createcount = 0;
};
} else {
this.off = true;
};
};
manaShrubProcess = function (){
this.success = (int(((this.uinfo.hp * 100) / this.uinfo.hpmax)) + 1);
this.gage.gotoAndStop(this.success);
if (this.off){
this.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5);
return;
};
this.transform.colorTransform = new ColorTransform(1, 1, 1);
this.recorvercount++;
if ((this.recorvercount % this.manarecorverfrq) == 0){
dplayer.mana = (dplayer.mana + this.manarecorver);
this.recorvercount = 0;
};
if (dplayer.mana > this.manaperframe){
dplayer.mana = (dplayer.mana - this.manaperframe);
} else {
this.off = true;
};
};
hpShrubProcess = function (){
this.success = (int(((this.uinfo.hp * 100) / this.uinfo.hpmax)) + 1);
this.gage.gotoAndStop(this.success);
if (this.off){
this.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5);
return;
};
this.transform.colorTransform = new ColorTransform(1, 1, 1);
if (dplayer.mana > this.manaperframe){
dplayer.mana = (dplayer.mana - this.manaperframe);
} else {
this.off = true;
};
};
shootBullet = function (){
this.objtarget = getSomeObjectIn("player_layer");
this.success = (int(((this.uinfo.hp * 100) / this.uinfo.hpmax)) + 1);
this.gage.gotoAndStop(this.success);
if (this.off){
this.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5);
return;
};
this.transform.colorTransform = new ColorTransform(1, 1, 1);
if (dplayer.mana > this.manaperframe){
dplayer.mana = (dplayer.mana - this.manaperframe);
durationComposit(this);
attackComposit(this);
} else {
this.off = true;
};
};
tree1 = null;
tree2 = null;
tree3 = null;
tree4 = null;
tree5 = null;
tree6 = null;
tree7 = null;
tree8 = null;
tree9 = null;
i = 1;
while (i < 8) {
game[("tree" + i)] = {};
pasteObject(game[("tree" + i)], CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(game[("tree" + i)], DEF_NO_MAP_NOMOVE);
game[("tree" + i)].uinfo = {};
pasteObject(game[("tree" + i)].uinfo, CLASS_RESET_STATUS);
pasteObject(game[("tree" + i)].uinfo, {mc:("tree" + i), hp:10, hpmax:10, knockback:90000, damage:500, targetgroup:"player_layer", multitarget:false, atklist:null});
game[("tree" + i)].groupof = "player_layer";
game[("tree" + i)].treetype = i;
game[("tree" + i)].createcount = 0;
game[("tree" + i)].recorvercount = 0;
game[("tree" + i)].pauseprocess = false;
game[("tree" + i)].base = game[("tree" + i)];
game[("tree" + i)].base.countdownmax = 0;
game[("tree" + i)].base.countdown = 0;
game[("tree" + i)].base.activeskill = null;
game[("tree" + i)].off = false;
game[("tree" + i)].process = function (){
skillActiveComposit(this);
if (this.treetype != null){
if (this.treetype == 7){
this.objtarget = getSomeObjectInByFiled("player_layer", "speed");
};
};
};
pasteObject(game[("tree" + i)], {ADDHPUNITMAX:0, ADDMANAMAX:0, ADDMANAREC:0});
i++;
};
tree1.AI = createUnitProcess;
tree1.uinfo.hp = 40;
tree1.uinfo.hpmax = 40;
tree1.createrate = 85;
tree1.manaperframe = 0.015;
tree2.AI = createUnitProcess;
tree2.uinfo.hp = 40;
tree2.uinfo.hpmax = 40;
tree2.createrate = 360;
tree2.manaperframe = 0.046;
tree3.AI = createUnitProcess;
tree3.uinfo.hp = 40;
tree3.uinfo.hpmax = 40;
tree3.createrate = 495;
tree3.manaperframe = 0.091;
tree4.AI = manaShrubProcess;
tree4.uinfo.hp = 30;
tree4.uinfo.hpmax = 30;
tree4.manarecorver = 21;
tree4.manarecorverfrq = 100;
tree4.manaperframe = 0;
pasteObject(tree4, {ADDHPUNITMAX:0, ADDMANAMAX:55});
tree5.AI = hpShrubProcess;
tree5.uinfo.hp = 40;
tree5.uinfo.hpmax = 40;
tree5.manaperframe = 0.02;
pasteObject(tree5, {ADDHPUNITMAX:15, ADDMANAMAX:25});
tree6.AI = shootBullet;
tree6.uinfo.hp = 20;
tree6.uinfo.hpmax = 20;
tree6.manaperframe = 0.022;
pasteObject(tree6.uinfo, {atkfrq:5, atkcount:0, atkdelaymax:1, atkdelay:0, atkframe:1, atklist:flower_atk, atkmag:1, atkmagcount:1, atkreload:55, atkreloadcount:0});
tree7.AI = shootBullet;
tree7.uinfo.hp = 20;
tree7.uinfo.hpmax = 20;
tree7.manaperframe = 0.022;
pasteObject(tree7.uinfo, {atkfrq:10, atkcount:0, atkdelaymax:1, atkdelay:0, atkframe:1, atklist:heal_atk, atkmag:1, atkmagcount:1, atkreload:40, atkreloadcount:0});
earthtree = {};
pasteObject(earthtree, CLASS_ADD_ALL_MOVE_KNOCK);
pasteObject(earthtree, DEF_NO_MAP_NOMOVE);
earthtree.uinfo = {};
pasteObject(earthtree.uinfo, CLASS_RESET_STATUS);
pasteObject(earthtree.uinfo, {mc:"tree0", hp:10, knockback:90000, damage:500, targetgroup:"player_layer", multitarget:false, atklist:null});
earthtree.groupof = "player_layer";
earthtree.base = earthtree;
earthtree.uinfo.hp = 100;
earthtree.uinfo.hpmax = 100;
earthtree.base.countdownmax = 0;
earthtree.base.countdown = 0;
earthtree.base.activeskill = null;
earthtree.process = function (){
this.success = (int(((this.uinfo.hp * 100) / this.uinfo.hpmax)) + 1);
this.gage.gotoAndStop(this.success);
skillActiveComposit(this);
};
texttreetype = new Array("ET", "SHT", "ATT", "ACT", "S1T", "S2T", "S3T", "S4T");
treeclass = {};
treeclass.build_mana = 999999999;
treeclass.build_success = 100;
treeclass.freePlace = function (){
i = 0;
while (i < 11) {
if (treepoint[i].tree == null){
return (i);
};
i++;
};
return (-1);
};
treeclass.getUnitDir = function (){
if ((Math.random() * 100) < game.rside){
return (1);
};
return (-1);
};
treeclass.createUnit = function (_arg1, _arg2){
newtree = addMonster(game[("utree" + _arg2)]);
newtree.x = treepoint[_arg1].x;
newtree.y = treepoint[_arg1].y;
dir = treeclass.getUnitDir();
MoveAPI.setLineMove(newtree, (dir * newtree.speed), 0);
newtree.scaleX = dir;
if (newtree.showtype != null){
newtree.showtype.text = texttreetype[newtree.treetype];
};
allsupport = 0;
i = (player_layer.numChildren - 1);
while (i >= 0) {
select = player_layer.getChildAt(i);
if ((select is MovieClip)){
if (select.treetype == 5){
if (!select.off){
allsupport = (allsupport + ((newtree.uinfo.hpmax * select.ADDHPUNITMAX) / 100));
};
};
};
i--;
};
newtree.uinfo.hpmax = ((newtree.uinfo.hpmax + allsupport) * blessinglife.hpmaxamp);
if ((newtree.uinfo.atkreload - blessingdex.speedreduce) >= 0){
newtree.uinfo.atkreload = (newtree.uinfo.atkreload - blessingdex.speedreduce);
};
if ((newtree.uinfo.atkfrq - blessingdex.speedreduce) >= 1){
newtree.uinfo.atkfrq = (newtree.uinfo.atkfrq - blessingdex.speedreduce);
};
};
treeclass.createTree = function (_arg1, _arg2){
if (treeclass.build_success == 100){
allsound.research.play();
newtree = addMonster(game[("tree" + _arg2)]);
newtree.x = treepoint[_arg1].x;
newtree.y = treepoint[_arg1].y;
if (newtree.showtype != null){
newtree.showtype.text = texttreetype[newtree.treetype];
};
newtree.at = _arg1;
treepoint[_arg1].tree = newtree;
newtree.style = _arg2;
gaged = new gage();
gaged.x = 0;
gaged.y = 10;
gaged.scaleX = 0.4;
gaged.scaleY = 0.5;
newtree.gage = gaged;
newtree.gage.stop();
newtree.addChild(gaged);
gaged = new gage_develop();
gaged.x = 0;
gaged.y = 5;
gaged.scaleX = 0.4;
gaged.scaleY = 0.5;
newtree.pgage = gaged;
newtree.pgage.stop();
newtree.addChild(gaged);
};
};
levelinfo = new Array();
currentlevel = 0;
maxfaclevel = 9;
levelinfoX = new Array();
levelinfoX[0] = {score:9000, mainfac:1, maxtile:4, nuke:false, pass:false};
levelinfoX[1] = {score:16000, mainfac:2, maxtile:5, nuke:false, pass:false};
levelinfoX[2] = {score:23000, mainfac:3, maxtile:6, nuke:false, pass:false};
levelinfoX[3] = {score:30000, mainfac:3, maxtile:7, nuke:false, pass:false};
levelinfoX[4] = {score:37000, mainfac:4, maxtile:8, nuke:false, pass:false};
levelinfoX[5] = {score:44000, mainfac:4, maxtile:9, nuke:false, pass:false};
levelinfoX[6] = {score:51000, mainfac:4, maxtile:10, nuke:false, pass:false};
levelinfoX[7] = {score:57000, mainfac:5, maxtile:11, nuke:false, pass:false};
levelinfoX[8] = {score:62000, mainfac:5, maxtile:12, nuke:false, pass:false};
levelinfoX[9] = {score:66000, mainfac:6, maxtile:13, nuke:true, pass:false};
leveltank = new Array();
leveltank[0] = new Array(100, 0, 0, 0, 0, 0);
leveltank[1] = new Array(100, 0, 0, 0, 0, 0);
leveltank[2] = new Array(100, 40, 0, 0, 0, 0);
leveltank[3] = new Array(100, 45, 30, 0, 0, 0);
leveltank[4] = new Array(100, 50, 35, 0, 0, 0);
leveltank[5] = new Array(100, 55, 40, 25, 0, 0);
leveltank[6] = new Array(100, 60, 45, 30, 0, 0);
leveltank[7] = new Array(100, 65, 50, 35, 30, 0);
leveltank[8] = new Array(100, 70, 55, 40, 35, 0);
leveltank[9] = new Array(100, 75, 60, 45, 40, 0);
leveldrone = new Array();
leveldrone[0] = new Array(0, 0);
leveldrone[1] = new Array(0, 0);
leveldrone[2] = new Array(0, 0);
leveldrone[3] = new Array(0, 0);
leveldrone[4] = new Array(30, 0);
leveldrone[5] = new Array(35, 0);
leveldrone[6] = new Array(40, 0);
leveldrone[7] = new Array(45, 0);
leveldrone[8] = new Array(50, 50);
leveldrone[9] = new Array(100, 60);
levelfac = new Array();
levelfac[0] = new Array(50, 0, 0);
levelfac[1] = new Array(55, 0, 0);
levelfac[2] = new Array(60, 0, 0);
levelfac[3] = new Array(65, 30, 0);
levelfac[4] = new Array(70, 35, 0);
levelfac[5] = new Array(75, 40, 0);
levelfac[6] = new Array(80, 45, 30);
levelfac[7] = new Array(85, 50, 35);
levelfac[8] = new Array(90, 55, 40);
levelfac[9] = new Array(95, 60, 45);
mon = null;
treepointredirect = new Array(5, 4, 6, 3, 7, 2, 8, 1, 9, 0, 10);
treepointrev = new Array(9, 7, 5, 3, 1, 2, 4, 6, 8, 10, 0);
treepoint = new Array();
i = 0;
while (i < 11) {
treepoint[i] = {};
treepoint[i].x = ((110 + 15) + (35 * treepointredirect[i]));
treepoint[i].y = 110;
treepoint[i].free = true;
i++;
};
monpoint = new Array();
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
monpoint[((j * 5) + i)] = {};
monpoint[((j * 5) + i)].x = (160 + (i * 70));
monpoint[((j * 5) + i)].y = (160 + (j * 70));
j++;
};
i++;
};
i = 0;
while (i < 25) {
i++;
};
v_earthtree = null;
v_mfac = null;
currentfac = 6;
levelinfo[1] = function (){
v_earthtree = addMonster(earthtree);
v_earthtree.x = treepoint[0].x;
v_earthtree.y = treepoint[0].y;
v_earthtree.style = 0;
gaged = new gage_develop();
gaged.x = 0;
gaged.y = 5;
gaged.scaleX = 0.4;
gaged.scaleY = 0.5;
v_earthtree.pgage = gaged;
v_earthtree.pgage.stop();
v_earthtree.addChild(gaged);
gaged = new gage();
gaged.x = 0;
gaged.y = 10;
gaged.scaleX = 0.4;
gaged.scaleY = 0.5;
v_earthtree.gage = gaged;
v_earthtree.gage.stop();
v_earthtree.addChild(gaged);
treepoint[0].tree = v_earthtree;
v_earthtree.at = 0;
v_mfac = addMonster(masterfactory[levelinfoX[currentlevel].mainfac]);
v_mfac.x = game[("e" + 0)].x;
v_mfac.y = game[("e" + 0)].y;
v_mfac.rotation = 180;
gaged = new gage();
gaged.x = 0;
gaged.y = 10;
gaged.scaleX = -1;
gaged.scaleY = 1;
v_mfac.gage = gaged;
v_mfac.gage.stop();
v_mfac.addChild(gaged);
game[("e" + 0)].fac = v_mfac;
v_mfac.at = 0;
};
setWalk = function (_arg1, _arg2){
if (_arg1.gravityfunction != objectGravity){
traceDebug("must use only subset of standart[objectGravity]");
traceDebug("setGravity(????) First");
return;
};
_arg1.dat = _arg2;
_arg1.walkfunction = objectWalk;
};
toggleDrop = function (_arg1, _arg2){
_arg1.undown = _arg2;
};
toggleJump = function (_arg1, _arg2, _arg3, _arg4){
_arg1.jumpfrq = _arg3;
_arg1.jump = _arg2;
_arg1.freewalk = _arg4;
};
objectWalk = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
if (((!((this.control == null))) && ((this.knock == 0)))){
if (((!((key[37] == null))) || (!((key[65] == null))))){
this.dir = -1;
} else {
if (((!((key[39] == null))) || (!((key[68] == null))))){
this.dir = 1;
} else {
this.dir = 0;
};
};
if (((!((key[87] == null))) || (!((key[38] == null))))){
if ((((this.downspeed == 0)) && (this.stayground))){
this.walkcount = 0;
this.downspeed = -(this.jumppow);
};
};
};
if (this.unmove > 0){
this.unmove--;
return;
};
this.walkcount = ((this.walkcount + 1) % 20000);
_local1 = this.speed;
_local2 = this.jump;
if (this.stayground){
_local1 = this.speed;
};
if (this.downspeed < 0){
_local4 = this.dat.getPixel(int((this.x / 40)), (int((this.y / 40)) - 2));
if (_local4 == 0xFF){
this.downspeed = 5;
this.jumpdelay = 20;
};
};
if (this.jumpdelay != null){
if (this.jumpdelay > 0){
this.jumpdelay--;
} else {
delete this.jumpdelay;
};
};
if ((((this.knock > 0)) && (!(this.obstruct)))){
this.knock--;
_local1 = this.knock;
};
if (((((((_local2) && ((this.walkcount >= this.jumpfrq)))) && ((this.jumpdelay == null)))) && ((this.control == null)))){
if ((((this.downspeed == 0)) && (this.stayground))){
this.walkcount = 0;
this.downspeed = -(this.jumppow);
};
};
if (this.undown){
if (this.dat.getPixel(int(((this.x + (_local1 * this.dir)) / 40)), int(((this.baseline + 1) / 40))) == 0){
if (this.dat.getPixel(int(((this.x + (_local1 * this.dir)) / 40)), int(((this.baseline - 1) / 40))) == 0){
this.dir = -(this.dir);
if (this.dir != 0){
this.scaleX = -(this.dir);
};
return;
};
};
};
_local3 = this.dat.getPixel(int(((this.x + (_local1 * this.dir)) / 40)), int((((this.y + this.downspeed) - 1) / 40)));
if (((this.freewalk) && (false))){
this.x = (this.x + (_local1 * this.dir));
} else {
if ((((_local3 == 0)) || ((_local3 == 0xFF00)))){
this.x = (this.x + (_local1 * this.dir));
} else {
if (_local3 == 0xFF){
if (this.downspeed != 0){
this.jumpdelay = 20;
};
} else {
if ((((((_local3 == 0xFF0000)) && ((this.dir == 1)))) && (this.stayground))){
} else {
if ((((((_local3 == 0xFFFF00)) && ((this.dir == -1)))) && (this.stayground))){
} else {
this.x = (this.x + (_local1 * this.dir));
};
};
};
};
};
if (this.x <= 0){
this.x = 5;
this.dir = 1;
this.scaleX = -(this.dir);
};
if (this.x > ((this.dat.width - 1) * 40)){
this.x = (((this.dat.width - 1) * 40) - 5);
this.dir = -1;
this.scaleX = -(this.dir);
};
};
setGravity = function (_arg1, _arg2){
_arg1.dat = _arg2;
_arg1.gravityfunction = objectGravity;
};
objectGravity = function (){
if (this.downspeed < 20){
this.downspeed = (this.downspeed + this.gravity);
};
if (this.downspeed < 0){
this.y = (this.y + this.downspeed);
this.stayground = false;
} else {
if ((((this.dat.getPixel(int((this.x / 40)), int(((this.y + this.downspeed) / 40))) == 0)) && (((this.dat.height * 40) > this.y)))){
this.y = (this.y + this.downspeed);
this.stayground = false;
} else {
if (int(((this.y + this.downspeed) / 40)) != int(((this.y - 1) / 40))){
this.y = (int(((this.y + this.downspeed) / 40)) * 40);
this.stayground = true;
this.baseline = this.y;
this.downspeed = 0;
} else {
this.y = (this.y + this.downspeed);
this.stayground = false;
};
};
};
};
clickdmg = 99;
addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheel);
this.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
this.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
key = new Array();
lastkey = null;
dash = 0;
dashkey = 0;
lastpress = 0;
this.addEventListener("keyUp", onKeyUp);
this.addEventListener("keyDown", onKeyDown);
learn = new Array();
i = 0;
while (i < 10) {
learn[i] = new Array();
s = 0;
while (s < 10) {
learn[i][s] = function (_arg1, _arg2, _arg3){
};
s++;
};
i++;
};
learninfo = new Array();
learninfo[0] = new Array();
shell = (learninfo[0][0] = {lv:0, skill:"Shell", manause:0, countdown:2500, hpmaxamp:1.4});
manarenew = (learninfo[0][1] = {lv:0, skill:"ManaRenew", manause:0, countdown:2500, manaamp:0.04, every:25, recover:0.02});
manamax = (learninfo[0][2] = {lv:0, skill:"ManaMax", manause:0, countdown:2500, manamaxamp:1, grown:1.3});
liferenew = (learninfo[0][3] = {lv:0, skill:"liveRenew", manause:0, countdown:2500, hpamp:0.02, every:75, recover:0.01});
blessingforce = (learninfo[0][4] = {lv:0, skill:"blessingForce", manause:0, countdown:2500, delayamp:1, manaamp:1, grown:0.9, managrown:1.2});
blessinglife = (learninfo[0][5] = {lv:0, skill:"blessingLife", manause:0, countdown:2500, hpmaxamp:1, grown:1.2});
blessingdex = (learninfo[0][6] = {lv:0, skill:"blessingDex", manause:0, countdown:2500, speedreduce:0, up:1});
learninfo[1] = new Array();
shildcrop = (learninfo[1][0] = {lv:0, skill:"shildcrop", manause:0, countdown:2250, createamp:1, grown:0.5});
shildendure = (learninfo[1][1] = {lv:0, skill:"shildEndure", manause:0, countdown:2250, hpamp:0.01, every:25, recover:0});
shilddodge = (learninfo[1][2] = {lv:0, skill:"shildDodge", manause:0, countdown:2250, avoidamp:1, grown:1.4});
learninfo[2] = new Array();
attcrop = (learninfo[2][0] = {lv:0, skill:"attcker Crop", manause:0, countdown:2250, createamp:1, grown:0.5});
fury = (learninfo[2][1] = {lv:0, skill:"Fury", manause:0, countdown:2250, magadd:0, up:1});
seedshooter = (learninfo[2][2] = {lv:0, skill:"Seed Shooter", manause:0, countdown:2250});
learninfo[3] = new Array();
archerdodge = (learninfo[3][0] = {lv:0, skill:"archer Dodge", manause:0, countdown:2250, avoidamp:1, grown:1.4});
anchor = (learninfo[3][1] = {lv:0, skill:"Anchor", manause:0, countdown:2250, speedamp:1, grown:0.5});
archercontinual = (learninfo[3][2] = {lv:0, skill:"archer Continual", manause:0, countdown:2250, magcountadd:0, up:1, chance:8});
rep = new Array();
learn[0][0] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Shell Active");
shell.lv = 1;
i = 1;
while (i < 8) {
game[("tree" + i)].uinfo.hp = (game[("tree" + i)].uinfo.hpmax = (game[("tree" + i)].uinfo.hpmax * shell.hpmaxamp));
i++;
};
i = 1;
while (i < 10) {
if (treepoint[i].tree != null){
treepoint[i].tree.uinfo.hpmax = (treepoint[i].tree.uinfo.hpmax * shell.hpmaxamp);
};
i++;
};
};
};
};
manaframecount = 0;
learn[0][1] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Mana Renew Active");
manarenew.recover = manarenew.manaamp;
manarenew.lv = 1;
};
};
};
learn[0][2] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("ManaMax Active");
manamax.manamaxamp = (manamax.manamaxamp * manamax.grown);
manamax.lv = 1;
};
};
};
lifeframecount = 0;
learn[0][3] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Life Renew Active");
liferenew.recover = liferenew.hpamp;
liferenew.lv = 1;
};
};
};
learn[0][4] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Blessing of Force Active");
blessingforce.manaamp = (blessingforce.manaamp * blessingforce.managrown);
blessingforce.delayamp = (blessingforce.delayamp * blessingforce.grown);
blessingforce.lv = 1;
};
};
};
learn[0][5] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Blessing of Life Active");
blessinglife.hpmaxamp = (blessinglife.hpmaxamp * blessinglife.grown);
blessinglife.lv = 1;
};
};
};
learn[0][6] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Blessing of Dexterity Active");
blessingdex.speedreduce = (blessingdex.speedreduce + blessingdex.up);
blessingdex.lv = 1;
};
};
};
learn[1][0] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("shildCrop Active");
shildcrop.createamp = (shildcrop.createamp * shildcrop.grown);
shildcrop.lv = 1;
};
};
};
learn[1][1] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("shildEndure Active");
shildendure.recover = shildendure.hpamp;
shildendure.lv = 1;
};
};
};
learn[1][2] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("shildDodge Active");
shilddodge.avoidamp = shilddodge.grown;
shilddodge.lv = 1;
};
};
};
learn[2][0] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("attackCrop Active");
attcrop.createamp = (attcrop.createamp * attcrop.grown);
attcrop.lv = 1;
};
};
};
learn[2][1] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("fury Active");
fury.magadd = (fury.magadd + fury.up);
utree2.uinfo.atkmag = (utree2.uinfo.atkmag + fury.magadd);
fury.lv = 1;
};
};
};
learn[2][2] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("seedShooter Active");
utree2.uinfo.atkfrq = 1;
seedshooter.lv = 1;
};
};
};
learn[3][0] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("archerDodge Active");
archerdodge.avoidamp = archerdodge.grown;
archerdodge.lv = 1;
};
};
};
learn[3][1] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("anchor Active");
anchor.speedamp = (anchor.speedamp * anchor.grown);
utree3.speed = (utree3.speed * anchor.speedamp);
anchor.lv = 1;
};
};
};
learn[3][2] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("archer continual Active");
archercontinual.magcountadd = (archercontinual.magcountadd + archercontinual.up);
archercontinual.lv = 1;
};
};
};
learninfo[6] = new Array();
rapid = (learninfo[6][0] = {lv:0, skill:"rapid", manause:0, countdown:2250, reloadamp:1.5, grown:1});
multi = (learninfo[6][1] = {lv:0, skill:"Multi Shoot", manause:0, countdown:2250, afteractive:4});
flowercontinual = (learninfo[6][2] = {lv:0, skill:"flower Continual", manause:0, countdown:2250, magcountadd:0, up:1, chance:10});
learn[6][0] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("rapid Active");
rapid.reloadamp = (rapid.reloadamp * rapid.grown);
rapid.lv = 1;
};
};
};
learn[6][1] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Multi Shoot Active");
tree6.uinfo.atklist = new Array({a0:{fn:atkToRandom, object:"flower_bullet", num:multi.afteractive, angle:15, x:110, y:600, range:380, speed:10}});
i = 1;
while (i < 10) {
if (treepoint[i].tree != null){
if (treepoint[i].tree.treetype == 6){
treepoint[i].tree.uinfo.atklist = tree6.uinfo.atklist;
};
};
i++;
};
multi.lv = 1;
};
};
};
learn[6][2] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("flower continual Active");
flowercontinual.magcountadd = (flowercontinual.magcountadd + flowercontinual.up);
flowercontinual.lv = 1;
};
};
};
learninfo[7] = new Array();
sprade = (learninfo[7][0] = {lv:0, skill:"Sprade", manause:0, countdown:2250, afteractive:"hero_bullet3ex"});
heal = (learninfo[7][1] = {lv:0, skill:"heal", manause:0, countdown:3250, current:2, after:4});
pollenfury = (learninfo[7][2] = {lv:0, skill:"pollenFury", manause:0, countdown:3250, magadd:0, up:1});
learn[7][0] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("Sprade Active");
heal_bullet.uinfo.mc = sprade.afteractive;
sprade.lv = 1;
};
};
};
learn[7][1] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("heal Active");
heal.current = heal.after;
heal.lv = 1;
};
};
};
learn[7][2] = function (_arg1, _arg2, _arg3){
var obj = _arg1;
var tree = _arg2;
var skill = _arg3;
if (upOK(obj, tree, skill)){
obj.base.activeskill = function (){
MovieClip(parent).info.alpha = 1;
MovieClip(parent).info.gotoAndStop(3);
allsound.completed.play();
rep.push("pollen fury Active");
pollenfury.magadd = (pollenfury.magadd + pollenfury.up);
tree7.uinfo.atkmag = (tree7.uinfo.atkmag + pollenfury.magadd);
i = 1;
while (i < 10) {
if (treepoint[i].tree != null){
if (treepoint[i].tree.treetype == 7){
treepoint[i].tree.uinfo.atkmag = (treepoint[i].tree.uinfo.atkmag + pollenfury.magadd);
};
};
i++;
};
pollenfury.lv = 1;
};
};
};
active = true;
fc = 0;
fdeactive = function (_arg1){
var _local2:*;
active = false;
Mouse.show();
stage.transform.colorTransform = new ColorTransform(1, 0, 0);
for (_local2 in key) {
delete key[_local2];
};
};
factive = function (_arg1){
var _local2:*;
active = true;
stage.transform.colorTransform = new ColorTransform(1, 1, 1);
for (_local2 in key) {
delete key[_local2];
};
};
stage.addEventListener(Event.DEACTIVATE, fdeactive);
stage.addEventListener(Event.ACTIVATE, factive);
endcount = -1;
endmax = 75;
bonus = 225000;
levelUp();
stop();
}
public function createGFX(_arg1, _arg2, _arg3){
var _local4:*;
_local4 = new ((getDefinitionByName(_arg1) as Class));
_local4.x = _arg2;
_local4.y = _arg3;
return (gfx_layer.addChild(_local4));
}
public function lifeRenew(){
var _local1:*;
if ((lifeframecount++ % liferenew.every) == 0){
lifeframecount = 1;
i = (player_layer.numChildren - 1);
while (i >= 0) {
_local1 = player_layer.getChildAt(i);
if ((_local1 is MovieClip)){
if (_local1.uinfo != null){
_local1.uinfo.hp = (_local1.uinfo.hp + (_local1.uinfo.hpmax * liferenew.recover));
if (_local1.uinfo.hp > _local1.uinfo.hpmax){
_local1.uinfo.hp = _local1.uinfo.hpmax;
};
};
};
i--;
};
};
}
public function onMouseWheel(_arg1){
stage.focus = game;
}
public function monsterLoaderEngine(){
var _local1:*;
var _local2:*;
for (_local1 in pointlist) {
pointlist[_local1].counter++;
if ((pointlist[_local1].interval - pointlist[_local1].counter) == 75){
createGFX("gfxcreatepoint", (pointlist[_local1].blockx * 40), (pointlist[_local1].blocky * 40));
};
if ((pointlist[_local1].counter % pointlist[_local1].interval) == 0){
_local2 = addMonster(pointlist[_local1].group[pointlist[_local1].monindex]);
_local2.x = (pointlist[_local1].blockx * 40);
_local2.y = (pointlist[_local1].blocky * 40);
pointlist[_local1].counter = 0;
if (pointlist[_local1].limit > 0){
pointlist[_local1].limit--;
if (pointlist[_local1].limit == 0){
delete pointlist[_local1];
break;
};
};
if (pointlist[_local1].seq){
pointlist[_local1].monindex++;
if (pointlist[_local1].monindex == pointlist[_local1].group.length){
pointlist[_local1].monindex = 0;
};
} else {
pointlist[_local1].monindex = int((Math.random() * pointlist[_local1].group.length));
};
};
};
}
public function levelUp(){
var _local1:*;
var _local2:*;
gamelevel++;
world = addGroup(this, 0, 0);
background_layer = addGroup(world, 0, 0);
map_layer = addGroup(world, 0, 0);
monster_layer = addGroup(world, 0, 0);
player_layer = addGroup(world, 0, 0);
tile_layer = addGroup(world, 0, 0);
monsky_layer = addGroup(world, 0, 0);
item_layer = addGroup(world, 0, 0);
gfx_layer = addGroup(world, 0, 0);
monsterbullet_layer = addGroup(world, 0, 0);
playerbullet_layer = addGroup(world, 0, 0);
foreground_layer = addGroup(world, 0, 0);
MapAPI.loadMap("map1", "mapdat1", "block1");
MapAPI.loadIndex("colorindex");
for (_local1 in key) {
delete key[_local1];
};
setLoop(playGame);
MovieClip(game.parent).gameover.visible = false;
MovieClip(game.parent).stageclear.visible = false;
clearcount = -1;
overcount = -1;
for (_local2 in pointlist) {
delete pointlist[_local2];
};
pointlist = new Array();
cam = {x:0, y:0, focusobject:null};
var _local3 = game.levelinfo;
_local3[gamelevel]();
if (cam.focusobject != null){
cam.smoothx = (cam.focusobject.x - 320);
cam.smoothy = (cam.focusobject.y - 240);
cam.x = cam.smoothx;
cam.y = cam.smoothy;
};
MapAPI.updateWorld(world, map_layer, cam);
}
public function processGroup(_arg1){
var _local2:*;
var _local3:*;
_local2 = (_arg1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _arg1.getChildAt(_local2);
if (_local3.gravityfunction != null){
_local3.gravityfunction();
};
if (_local3.walkfunction != null){
_local3.walkfunction();
};
if (_local3.AI != null){
_local3.AI();
};
if (_local3.mot != null){
_local3.mot();
};
if (_local3.process != null){
_local3.process();
};
if (_local3.processex != null){
_local3.processex();
};
if (_local3.hitsearch != null){
_local3.hitsearch();
};
_local2--;
};
}
public function moveProcess(){
if (cam.focusobject != null){
cam.smoothx = (cam.focusobject.x - 320);
cam.smoothy = (cam.focusobject.y - 240);
MapAPI.moveWorldY(map_layer, cam);
MapAPI.moveWorldX(map_layer, cam);
MapAPI.updateWorld(world, map_layer, cam);
};
}
public function playGame(_arg1){
var inter:*;
var hpper:*;
var manaper:*;
var transform:SoundTransform;
var e = _arg1;
inter = MovieClip(game.parent);
bonus = (bonus - 5);
if (bonus <= 0){
bonus = 0;
};
if ((dplayer.score + bonus) > 0){
inter.score.text = int(dplayer.score);
MovieClip(game.parent).scorex = (dplayer.score + bonus);
} else {
inter.score.text = 0;
MovieClip(game.parent).scorex = 0;
};
MovieClip(game.parent).timebonus.text = (int((bonus / 33)) * 33);
if (!active){
return;
};
Mouse.hide();
if (SoundMixer.soundTransform.volume < 1){
transform = SoundMixer.soundTransform;
transform.volume = 1;
SoundMixer.soundTransform = transform;
};
if (game.visible){
stage.focus = game;
};
moveProcess();
monsterLoaderEngine();
try {
processGroup(background_layer);
processGroup(foreground_layer);
processGroup(monster_layer);
processGroup(player_layer);
processGroup(monsterbullet_layer);
processGroup(playerbullet_layer);
processGroup(tile_layer);
processGroup(gfx_layer);
processGroup(item_layer);
processGroup(monsky_layer);
} catch(e) {
};
if (quake_game > 0){
quake_game--;
game.y = ((Math.random() * quake_game) - (quake_game / 2));
} else {
if (game.scaleY == -1){
game.y = 600;
} else {
game.y = 0;
};
};
processManaMax();
manaRenew();
lifeRenew();
if (dplayer.mana > dplayer.manamax){
dplayer.mana = dplayer.manamax;
};
tileUnitCreate();
inter.mousepic.visible = true;
inter.mousepic.x = mouseX;
inter.mousepic.y = mouseY;
hpper = int(((dplayer.peace * 100) / dplayer.peacemax));
manaper = int(((dplayer.mana * 100) / dplayer.manamax));
inter.gage_hp.gotoAndStop(hpper);
inter.gage_mana.gotoAndStop(manaper);
inter.mana.text = int(dplayer.mana);
inter.hp.text = int(dplayer.peace);
if (dplayer.score < 0){
dplayer.score = 0;
};
if (dplayer.lastmaxscore < dplayer.score){
dplayer.lastmaxscore = dplayer.score;
};
if ((((((dplayer.lastmaxscore > levelinfoX[currentlevel].score)) && (!(levelinfoX[currentlevel].pass)))) && ((currentlevel < maxfaclevel)))){
levelinfoX[currentlevel].pass = true;
currentlevel++;
if (game[("e" + 0)].fac != null){
removeEvent(game[("e" + 0)].fac);
game[("e" + 0)].fac = null;
};
v_mfac = addMonster(masterfactory[levelinfoX[currentlevel].mainfac]);
v_mfac.x = game[("e" + 0)].x;
v_mfac.y = game[("e" + 0)].y;
v_mfac.rotation = 180;
gaged = new gage();
gaged.x = 0;
gaged.y = 10;
gaged.scaleX = -1;
gaged.scaleY = 1;
v_mfac.gage = gaged;
v_mfac.gage.stop();
v_mfac.addChild(gaged);
game[("e" + 0)].fac = v_mfac;
v_mfac.at = 0;
if (levelinfoX[currentlevel].mainfac == 6){
MovieClip(game.parent).info.alpha = 1;
MovieClip(game.parent).info.gotoAndStop(5);
};
};
MovieClip(game.parent).rep.text = "";
while (rep.length > 5) {
rep.shift();
};
i = 0;
while (i < 5) {
if (rep[i] != null){
MovieClip(game.parent).rep.appendText((rep[i] + "\n"));
};
i++;
};
if ((((dplayer.peace < 0)) && (!((v_earthtree == null))))){
removeEvent(v_earthtree);
v_earthtree = null;
};
waitlevelClear();
waitlevelOver();
}
public function upOK(_arg1, _arg2, _arg3){
if ((((dplayer.mana > learninfo[_arg2][_arg3].manause)) && ((_arg1.base.countdown == 0)))){
dplayer.mana = (dplayer.mana - learninfo[_arg2][_arg3].manause);
_arg1.base.countdownmax = (_arg1.base.countdown = learninfo[_arg2][_arg3].countdown);
return (true);
};
allsound.err.play();
return (false);
}
public function createDron(_arg1){
var _local2:*;
if ((createdronecount % createdronespeed) == 0){
i = 1;
while (i >= 0) {
if ((Math.random() * 100) < leveldrone[currentlevel][i]){
break;
};
i--;
};
if ((i + 1) > 0){
_local2 = addMonster(game[("drone" + (i + 1))]);
_local2.pos = 1.4;
_local2.rotation = ((_local2.pos * 180) / Math.PI);
_local2.x = ((280 * Math.cos(_local2.pos)) + 300);
_local2.y = ((280 * Math.sin(_local2.pos)) + 300);
_local2.kami = (int((Math.random() * 200)) + 150);
};
createdronecount = 0;
};
createdronecount++;
}
public function setLoop(_arg1){
if (bfn != null){
removeEventListener(Event.ENTER_FRAME, bfn);
};
bfn = _arg1;
addEventListener(Event.ENTER_FRAME, _arg1);
}
public function searchFarObjectIn(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (game[_arg1].numChildren <= 2){
return (null);
};
_local3 = null;
_local4 = 0;
_local5 = (game[_arg1].numChildren - 1);
while (_local5 >= 0) {
_local6 = game[_arg1].getChildAt(_local5);
if (_local6 != null){
_local7 = Math.sqrt((((_local6.x - _arg2.x) * (_local6.x - _arg2.x)) + ((_local6.y - _arg2.y) * (_local6.y - _arg2.y))));
if (_local4 < _local7){
_local4 = _local7;
_local3 = _local6;
};
};
_local5--;
};
return (_local3);
}
public function addGroup(_arg1, _arg2, _arg3){
var _local4:*;
backupnewobject = new MovieClip();
backupnewobject.x = _arg2;
backupnewobject.y = _arg3;
_local4 = new MovieClip();
_local4.graphics.lineStyle(10, 0xFF00FF);
_local4.graphics.moveTo(0, 0);
_local4.graphics.lineTo(10, 10);
_local4.x = -10000;
_local4.y = -10000;
backupnewobject.addChild(_local4);
_local4 = new MovieClip();
_local4.graphics.lineStyle(10, 0xFF00FF);
_local4.graphics.moveTo(0, 0);
_local4.graphics.lineTo(10, 10);
_local4.x = 10000;
_local4.y = 10000;
backupnewobject.addChild(_local4);
backupnewobject.graphics.lineTo(10000, 10000);
return (_arg1.addChild(backupnewobject));
}
public function findAngle(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
_local3 = (_arg2.x - _arg1.x);
_local4 = (_arg2.y - _arg1.y);
_local5 = Math.atan2(-(_local4), _local3);
return (((_local5 * 180) / Math.PI));
}
public function onKeyUp(_arg1){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
};
delete key[_arg1.keyCode];
}
public function searchNearObjectIn(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local3 = null;
_local4 = 1E26;
_local5 = (game[_arg1].numChildren - 1);
while (_local5 >= 0) {
_local6 = game[_arg1].getChildAt(_local5);
if (_local6 != null){
_local7 = Math.sqrt((((_local6.x - _arg2.x) * (_local6.x - _arg2.x)) + ((_local6.y - _arg2.y) * (_local6.y - _arg2.y))));
if (_local4 > _local7){
_local4 = _local7;
_local3 = _local6;
};
};
_local5--;
};
return (_local3);
}
public function addPlayer(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
_local5 = new ((getDefinitionByName(_arg4) as Class));
_local5.x = _arg2;
_local5.y = _arg3;
_arg1.addChild(_local5);
return (_local5);
}
public function copyObject(_arg1, _arg2){
var _local3:*;
for (_local3 in _arg2) {
_arg1[_local3] = _arg2[_local3];
};
}
public function pauseGame(_arg1){
var _local2:SoundTransform;
Mouse.show();
_local2 = SoundMixer.soundTransform;
_local2.volume = 0.4;
SoundMixer.soundTransform = _local2;
if (MovieClip(game.parent).mousepic != null){
MovieClip(game.parent).mousepic.visible = false;
};
if (endcount > 0){
endcount--;
};
if (endcount == 0){
game.removeEventListener(Event.ENTER_FRAME, pauseGame);
game.visible = false;
MovieClip(game.parent).gotoAndPlay(1, "ending");
};
if (game.visible){
stage.focus = game;
};
}
public function onMouseUp(_arg1){
var _local2:*;
var _local3:*;
i = (player_layer.numChildren - 1);
while (i >= 0) {
_local2 = player_layer.getChildAt(i);
if ((_local2 is MovieClip)){
_local3 = new Point(player_layer.mouseX, player_layer.mouseY);
if (_local2.hit == null){
} else {
if (_local2.hit.hitTestPoint(_local3.x, _local3.y)){
if (_local2.style != null){
if (_local2.style == 0){
};
};
};
};
};
i--;
};
}
public function objstatus(_arg1){
_arg1.gravity = 2;
_arg1.speed = 0;
_arg1.dir = 0;
_arg1.undown = false;
_arg1.jump = false;
_arg1.jumpfrq = 25;
_arg1.jumppow = 15;
_arg1.freewalk = false;
_arg1.downspeed = 0;
_arg1.stayground = false;
_arg1.baseline = _arg1.y;
_arg1.unmove = 0;
_arg1.walkcount = 0;
_arg1.knock = 0;
_arg1.obstruct = false;
}
public function pasteObject(_arg1, _arg2){
var _local3:*;
for (_local3 in _arg2) {
_arg1[_local3] = _arg2[_local3];
};
}
public function findFree(){
i = 1;
while (i < 25) {
if (game[("e" + i)].fac == null){
return (i);
};
i++;
};
return (-1);
}
public function onMouseDown(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = createGFX("clickhit", player_layer.mouseX, player_layer.mouseY);
i = (tile_layer.numChildren - 1);
while (i >= 0) {
_local3 = tile_layer.getChildAt(i);
if ((_local3 is MovieClip)){
if (_local3.tilelayer != null){
_local4 = new Point(player_layer.mouseX, player_layer.mouseY);
if (_local3.hit == null){
} else {
if (_local3.hit.hitTestObject(_local2)){
createGFX("edamage", _local3.x, _local3.y);
_local3.uinfo.hp = (_local3.uinfo.hp - int((clickdmg + (Math.random() * clickdmg))));
dplayer.score = (dplayer.score + 70);
if (_local3.uinfo.hp <= 0){
allsound.enemy.play();
dplayer.mana = (dplayer.mana + _local3.uinfo.mana);
if (_local3.at != null){
monpoint[_local3.at].mon = null;
};
removeEvent(_local3);
};
};
};
};
};
i--;
};
i = (monsky_layer.numChildren - 1);
while (i >= 0) {
_local3 = monsky_layer.getChildAt(i);
if ((_local3 is MovieClip)){
_local4 = new Point(player_layer.mouseX, player_layer.mouseY);
if (_local3.hit == null){
} else {
if (_local3.hit.hitTestObject(_local2)){
createGFX("edamage", _local3.x, _local3.y);
_local3.uinfo.hp = (_local3.uinfo.hp - int((clickdmg + (Math.random() * clickdmg))));
dplayer.score = (dplayer.score + 100);
if (_local3.uinfo.hp <= 0){
if (_local3.at != null){
monpoint[_local3.at].mon = null;
};
removeEvent(_local3);
};
};
};
};
i--;
};
i = (monsterbullet_layer.numChildren - 1);
while (i >= 0) {
_local3 = monsterbullet_layer.getChildAt(i);
if ((_local3 is MovieClip)){
_local4 = new Point(player_layer.mouseX, player_layer.mouseY);
if (_local3.hit == null){
} else {
if (_local3.hit.hitTestObject(_local2)){
createGFX("edamage", _local3.x, _local3.y);
_local3.uinfo.hp = (_local3.uinfo.hp - int((clickdmg + (Math.random() * clickdmg))));
dplayer.score = (dplayer.score + 100);
if (_local3.uinfo.hp <= 0){
if (_local3.at != null){
monpoint[_local3.at].mon = null;
};
removeEvent(_local3);
};
};
};
};
i--;
};
}
public function addMonster(_arg1){
var _local2:*;
if (_arg1.simple != null){
_local2 = new ((getDefinitionByName(_arg1.uinfo.mc) as Class));
if (_arg1.motcall != null){
_arg1.motcall(_local2, _arg1.param.p0, _arg1.param.p1, _arg1.param.p2, _arg1.param.p3, _arg1.param.p4, _arg1.param.p5, _arg1.param.p6, _arg1.param.p7, _arg1.param.p8, _arg1.param.p9, _arg1.param.p10, _arg1.param.p11, _arg1.param.p12, _arg1.param.p13, _arg1.param.p14, _arg1.param.p15, _arg1.param.p16, _arg1.param.p17, _arg1.param.p18, _arg1.param.p19, _arg1.param.p20);
};
pasteObject(_local2, _arg1);
_local2.uinfo = {};
pasteObject(_local2.uinfo, _arg1.uinfo);
if (_arg1.groupof == null){
monster_layer.addChild(_local2);
} else {
game[_arg1.groupof].addChild(_local2);
};
} else {
_local2 = new ((getDefinitionByName(_arg1.uinfo.mc) as Class));
setGravity(_local2, MapAPI.dat);
setWalk(_local2, MapAPI.dat);
pasteObject(_local2, _arg1);
_local2.uinfo = {};
pasteObject(_local2.uinfo, _arg1.uinfo);
if (_arg1.groupof == null){
monster_layer.addChild(_local2);
} else {
game[_arg1.groupof].addChild(_local2);
};
};
return (_local2);
}
public function findAngleObj(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
_local3 = (_arg2.x - _arg1.x);
_local4 = (_arg2.y - _arg1.y);
_local5 = Math.atan2(_local4, _local3);
return (((_local5 * 180) / Math.PI));
}
}
}//package tree_troopers_520128PB_fla
Section 22
//mgfx_b_in_game_growth_122 (tree_troopers_520128PB_fla.mgfx_b_in_game_growth_122)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgfx_b_in_game_growth_122 extends MovieClip {
public function mgfx_b_in_game_growth_122(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndPlay(1);
}
function frame1(){
if (int((Math.random() * 3)) >= 1){
gotoAndPlay("p0");
} else {
play();
};
}
}
}//package tree_troopers_520128PB_fla
Section 23
//mgui_desc_build_142 (tree_troopers_520128PB_fla.mgui_desc_build_142)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_desc_build_142 extends MovieClip {
public function mgui_desc_build_142(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 24
//mgui_desc_gro_archer_151 (tree_troopers_520128PB_fla.mgui_desc_gro_archer_151)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_desc_gro_archer_151 extends MovieClip {
public function mgui_desc_gro_archer_151(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 25
//mgui_desc_gro_attacker_153 (tree_troopers_520128PB_fla.mgui_desc_gro_attacker_153)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_desc_gro_attacker_153 extends MovieClip {
public function mgui_desc_gro_attacker_153(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 26
//mgui_desc_gro_earth_157 (tree_troopers_520128PB_fla.mgui_desc_gro_earth_157)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_desc_gro_earth_157 extends MovieClip {
public function mgui_desc_gro_earth_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 27
//mgui_desc_gro_flower_149 (tree_troopers_520128PB_fla.mgui_desc_gro_flower_149)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_desc_gro_flower_149 extends MovieClip {
public function mgui_desc_gro_flower_149(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 28
//mgui_desc_gro_pollen_146 (tree_troopers_520128PB_fla.mgui_desc_gro_pollen_146)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_desc_gro_pollen_146 extends MovieClip {
public function mgui_desc_gro_pollen_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 29
//mgui_desc_gro_shielder_155 (tree_troopers_520128PB_fla.mgui_desc_gro_shielder_155)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_desc_gro_shielder_155 extends MovieClip {
public function mgui_desc_gro_shielder_155(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 30
//mgui_information_139 (tree_troopers_520128PB_fla.mgui_information_139)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mgui_information_139 extends MovieClip {
public function mgui_information_139(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 31
//mobj_force_export_46 (tree_troopers_520128PB_fla.mobj_force_export_46)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mobj_force_export_46 extends MovieClip {
public function mobj_force_export_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tree_troopers_520128PB_fla
Section 32
//mspr_attacker2_62 (tree_troopers_520128PB_fla.mspr_attacker2_62)
package tree_troopers_520128PB_fla {
import flash.display.*;
public dynamic class mspr_attacker2_62 extends MovieClip {
public var hit:MovieClip;
public function mspr_attacker2_62(){
addFrameScript(9, frame10, 21, frame22);
}
function frame10(){
stop();
}
function frame22(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package tree_troopers_520128PB_fla
Section 33
//THEPRELOADER_1 (tree_troopers_520128PB_fla.THEPRELOADER_1)
package tree_troopers_520128PB_fla {
import flash.events.*;
import flash.display.*;
public dynamic class THEPRELOADER_1 extends MovieClip {
public var shiftamt;
public var bar:MovieClip;
public var onRelease;
public var isloaded;
public function THEPRELOADER_1(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stage.removeEventListener(MouseEvent.CLICK, onRelease);
}
function frame1(){
stop();
shiftamt = 17;
isloaded = false;
parent.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
onRelease = function (){
};
stage.addEventListener(MouseEvent.CLICK, onRelease);
if (parent.loaderInfo.bytesLoaded >= parent.loaderInfo.bytesTotal){
parent.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING);
gotoAndStop(10);
};
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Math.round(_arg1.bytesLoaded);
_local3 = Math.round(_arg1.bytesTotal);
_local4 = (_local2 / _local3);
MovieClip(MovieClip(getChildByName("bar")).getChildByName("barmask")).scaleX = _local4;
if (_local2 == _local3){
isloaded = true;
};
}
}
}//package tree_troopers_520128PB_fla
Section 34
//bg (bg)
package {
import flash.media.*;
public dynamic class bg extends Sound {
}
}//package
Section 35
//block1 (block1)
package {
import flash.display.*;
public dynamic class block1 extends MovieClip {
}
}//package
Section 36
//bulletsmall (bulletsmall)
package {
import flash.display.*;
public dynamic class bulletsmall extends MovieClip {
public var hit:MovieClip;
public function bulletsmall(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 37
//cdrone1 (cdrone1)
package {
import flash.display.*;
public dynamic class cdrone1 extends MovieClip {
public var hit:MovieClip;
public function cdrone1(){
addFrameScript(9, frame10, 27, frame28);
}
function frame10(){
stop();
}
function frame28(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 38
//cdrone2 (cdrone2)
package {
import flash.display.*;
public dynamic class cdrone2 extends MovieClip {
public var gun16:MovieClip;
public var hit:MovieClip;
public function cdrone2(){
addFrameScript(9, frame10, 27, frame28);
}
function frame10(){
stop();
}
function frame28(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 39
//clickhit (clickhit)
package {
import flash.display.*;
public dynamic class clickhit extends MovieClip {
public function clickhit(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
delete ??getglobalscope
[MovieClip(this.parent).removeChild(this)];
}
}
}//package
Section 40
//cnuke (cnuke)
package {
import flash.display.*;
public dynamic class cnuke extends MovieClip {
public var hit:MovieClip;
public function cnuke(){
addFrameScript(9, frame10, 53, frame54);
}
function frame10(){
stop();
}
function frame54(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 41
//colorindex (colorindex)
package {
import flash.display.*;
public dynamic class colorindex extends BitmapData {
public function colorindex(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 42
//completed (completed)
package {
import flash.media.*;
public dynamic class completed extends Sound {
}
}//package
Section 43
//ebullet1 (ebullet1)
package {
import flash.display.*;
public dynamic class ebullet1 extends MovieClip {
public var hit:MovieClip;
public function ebullet1(){
addFrameScript(8, frame9, 15, frame16);
}
function frame16(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("normal");
}
}
}//package
Section 44
//ebullet2 (ebullet2)
package {
import flash.display.*;
public dynamic class ebullet2 extends MovieClip {
public var hit:MovieClip;
public function ebullet2(){
addFrameScript(8, frame9, 15, frame16);
}
function frame16(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("normal");
}
}
}//package
Section 45
//edamage (edamage)
package {
import flash.display.*;
public dynamic class edamage extends MovieClip {
public function edamage(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
delete ??getglobalscope
[MovieClip(this.parent).removeChild(this)];
}
}
}//package
Section 46
//enemy (enemy)
package {
import flash.media.*;
public dynamic class enemy extends Sound {
}
}//package
Section 47
//err (err)
package {
import flash.media.*;
public dynamic class err extends Sound {
}
}//package
Section 48
//fac1 (fac1)
package {
import flash.media.*;
public dynamic class fac1 extends Sound {
}
}//package
Section 49
//fac2 (fac2)
package {
import flash.media.*;
public dynamic class fac2 extends Sound {
}
}//package
Section 50
//gage (gage)
package {
import flash.display.*;
public dynamic class gage extends MovieClip {
}
}//package
Section 51
//gage_develop (gage_develop)
package {
import flash.display.*;
public dynamic class gage_develop extends MovieClip {
}
}//package
Section 52
//gfxcreatepoint (gfxcreatepoint)
package {
import flash.display.*;
public dynamic class gfxcreatepoint extends MovieClip {
public function gfxcreatepoint(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
delete ??getglobalscope
[MovieClip(this.parent).removeChild(this)];
}
}
}//package
Section 53
//hero_bullet1 (hero_bullet1)
package {
import flash.display.*;
public dynamic class hero_bullet1 extends MovieClip {
public var hit:MovieClip;
public function hero_bullet1(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("normal");
}
}
}//package
Section 54
//hero_bullet2 (hero_bullet2)
package {
import flash.display.*;
public dynamic class hero_bullet2 extends MovieClip {
public var hit:MovieClip;
public function hero_bullet2(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("normal");
}
}
}//package
Section 55
//hero_bullet3 (hero_bullet3)
package {
import flash.display.*;
public dynamic class hero_bullet3 extends MovieClip {
public var hit:MovieClip;
public function hero_bullet3(){
addFrameScript(8, frame9, 17, frame18);
}
function frame18(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("normal");
}
}
}//package
Section 56
//hero_bullet3ex (hero_bullet3ex)
package {
import flash.display.*;
public dynamic class hero_bullet3ex extends MovieClip {
public var hit:MovieClip;
public function hero_bullet3ex(){
addFrameScript(8, frame9, 17, frame18);
}
function frame18(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame9(){
gotoAndPlay("normal");
}
}
}//package
Section 57
//main_fac1 (main_fac1)
package {
import flash.display.*;
public dynamic class main_fac1 extends MovieClip {
public var hit:MovieClip;
public function main_fac1(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 58
//main_fac2 (main_fac2)
package {
import flash.display.*;
public dynamic class main_fac2 extends MovieClip {
public var gun3:MovieClip;
public var hit:MovieClip;
public var gun1:MovieClip;
public var gun2:MovieClip;
public function main_fac2(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 59
//main_fac3 (main_fac3)
package {
import flash.display.*;
public dynamic class main_fac3 extends MovieClip {
public var gun3:MovieClip;
public var gun4:MovieClip;
public var hit:MovieClip;
public var gun1:MovieClip;
public var gun2:MovieClip;
public function main_fac3(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 60
//main_fac4 (main_fac4)
package {
import flash.display.*;
public dynamic class main_fac4 extends MovieClip {
public var gun3:MovieClip;
public var gun4:MovieClip;
public var hit:MovieClip;
public var gun1:MovieClip;
public var gun2:MovieClip;
public function main_fac4(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 61
//main_fac5 (main_fac5)
package {
import flash.display.*;
public dynamic class main_fac5 extends MovieClip {
public var gun1:MovieClip;
public var gun5:MovieClip;
public var gun3:MovieClip;
public var gun4:MovieClip;
public var hit:MovieClip;
public var gun2:MovieClip;
public function main_fac5(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 62
//main_fac6 (main_fac6)
package {
import flash.display.*;
public dynamic class main_fac6 extends MovieClip {
public var gun1:MovieClip;
public var gun5:MovieClip;
public var gun3:MovieClip;
public var gun4:MovieClip;
public var hit:MovieClip;
public var gun2:MovieClip;
public var gun6:MovieClip;
public function main_fac6(){
addFrameScript(9, frame10, 43, frame44);
}
function frame10(){
stop();
}
function frame44(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 63
//map1 (map1)
package {
import flash.display.*;
public dynamic class map1 extends BitmapData {
public function map1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 64
//mapdat1 (mapdat1)
package {
import flash.display.*;
public dynamic class mapdat1 extends BitmapData {
public function mapdat1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 65
//nuke (nuke)
package {
import flash.media.*;
public dynamic class nuke extends Sound {
}
}//package
Section 66
//nuke_launch (nuke_launch)
package {
import flash.media.*;
public dynamic class nuke_launch extends Sound {
}
}//package
Section 67
//pdamage (pdamage)
package {
import flash.display.*;
public dynamic class pdamage extends MovieClip {
public function pdamage(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
delete ??getglobalscope
[MovieClip(this.parent).removeChild(this)];
}
}
}//package
Section 68
//research (research)
package {
import flash.media.*;
public dynamic class research extends Sound {
}
}//package
Section 69
//small_fac1 (small_fac1)
package {
import flash.display.*;
public dynamic class small_fac1 extends MovieClip {
public var hit:MovieClip;
public function small_fac1(){
addFrameScript(9, frame10, 22, frame23);
}
function frame10(){
stop();
}
function frame23(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 70
//small_fac2 (small_fac2)
package {
import flash.display.*;
public dynamic class small_fac2 extends MovieClip {
public var hit:MovieClip;
public var gun1:MovieClip;
public function small_fac2(){
addFrameScript(9, frame10, 22, frame23);
}
function frame10(){
stop();
}
function frame23(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 71
//small_fac3 (small_fac3)
package {
import flash.display.*;
public dynamic class small_fac3 extends MovieClip {
public var hit:MovieClip;
public var gun1:MovieClip;
public var gun2:MovieClip;
public function small_fac3(){
addFrameScript(9, frame10, 22, frame23);
}
function frame10(){
stop();
}
function frame23(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 72
//tank1 (tank1)
package {
import flash.display.*;
public dynamic class tank1 extends MovieClip {
public var gun11:MovieClip;
public var hit:MovieClip;
public function tank1(){
addFrameScript(9, frame10, 20, frame21);
}
function frame10(){
stop();
}
function frame21(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 73
//tank2 (tank2)
package {
import flash.display.*;
public dynamic class tank2 extends MovieClip {
public var gun12:MovieClip;
public var hit:MovieClip;
public function tank2(){
addFrameScript(9, frame10, 20, frame21);
}
function frame10(){
stop();
}
function frame21(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 74
//tank3 (tank3)
package {
import flash.display.*;
public dynamic class tank3 extends MovieClip {
public var gun13:MovieClip;
public var hit:MovieClip;
public function tank3(){
addFrameScript(9, frame10, 24, frame25);
}
function frame10(){
stop();
}
function frame25(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 75
//tank4 (tank4)
package {
import flash.display.*;
public dynamic class tank4 extends MovieClip {
public var gun14:MovieClip;
public var hit:MovieClip;
public function tank4(){
addFrameScript(9, frame10, 24, frame25);
}
function frame10(){
stop();
}
function frame25(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 76
//tank5 (tank5)
package {
import flash.display.*;
public dynamic class tank5 extends MovieClip {
public var gun15:MovieClip;
public var hit:MovieClip;
public function tank5(){
addFrameScript(9, frame10, 20, frame21);
}
function frame10(){
stop();
}
function frame21(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 77
//tank6 (tank6)
package {
import flash.display.*;
public dynamic class tank6 extends MovieClip {
public var hit:MovieClip;
public function tank6(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 78
//testobject (testobject)
package {
import flash.display.*;
public dynamic class testobject extends MovieClip {
public var hit:MovieClip;
public function testobject(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 79
//tree (tree)
package {
import flash.media.*;
public dynamic class tree extends Sound {
}
}//package
Section 80
//tree0 (tree0)
package {
import flash.display.*;
public dynamic class tree0 extends MovieClip {
public var hit:MovieClip;
public function tree0(){
addFrameScript(9, frame10, 49, frame50);
}
function frame10(){
stop();
}
function frame50(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 81
//tree1 (tree1)
package {
import flash.display.*;
public dynamic class tree1 extends MovieClip {
public var hit:MovieClip;
public function tree1(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 82
//tree2 (tree2)
package {
import flash.display.*;
public dynamic class tree2 extends MovieClip {
public var hit:MovieClip;
public function tree2(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 83
//tree3 (tree3)
package {
import flash.display.*;
public dynamic class tree3 extends MovieClip {
public var hit:MovieClip;
public function tree3(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 84
//tree4 (tree4)
package {
import flash.display.*;
public dynamic class tree4 extends MovieClip {
public var hit:MovieClip;
public function tree4(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 85
//tree5 (tree5)
package {
import flash.display.*;
public dynamic class tree5 extends MovieClip {
public var hit:MovieClip;
public function tree5(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 86
//tree6 (tree6)
package {
import flash.display.*;
public dynamic class tree6 extends MovieClip {
public var hit:MovieClip;
public function tree6(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 87
//tree7 (tree7)
package {
import flash.display.*;
public dynamic class tree7 extends MovieClip {
public var hit:MovieClip;
public function tree7(){
addFrameScript(9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 88
//treeu (treeu)
package {
import flash.media.*;
public dynamic class treeu extends Sound {
}
}//package
Section 89
//treeunit1 (treeunit1)
package {
import flash.display.*;
public dynamic class treeunit1 extends MovieClip {
public var hit:MovieClip;
public function treeunit1(){
addFrameScript(9, frame10, 21, frame22);
}
function frame10(){
stop();
}
function frame22(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 90
//treeunit2 (treeunit2)
package {
import flash.display.*;
public dynamic class treeunit2 extends MovieClip {
public var hit:MovieClip;
public function treeunit2(){
addFrameScript(9, frame10, 21, frame22);
}
function frame10(){
stop();
}
function frame22(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 91
//treeunit3 (treeunit3)
package {
import flash.display.*;
public dynamic class treeunit3 extends MovieClip {
public var hit:MovieClip;
public function treeunit3(){
addFrameScript(9, frame10, 21, frame22);
}
function frame10(){
stop();
}
function frame22(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package