Section 1
//ag_intro_mc_181 (ZRv_fla.ag_intro_mc_181)
package ZRv_fla {
import flash.display.*;
public dynamic class ag_intro_mc_181 extends MovieClip {
public function ag_intro_mc_181(){
addFrameScript(224, frame225);
}
function frame225(){
stop();
}
}
}//package ZRv_fla
Section 2
//CHAR_101 (ZRv_fla.CHAR_101)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_101 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_101(){
addFrameScript(7, frame8);
}
function frame8(){
gotoAndPlay("walk");
}
}
}//package ZRv_fla
Section 3
//CHAR_109 (ZRv_fla.CHAR_109)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_109 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_109(){
addFrameScript(24, frame25, 50, frame51, 51, frame52);
}
function frame25(){
gotoAndPlay("walk");
}
function frame51(){
gotoAndStop("idle");
}
function frame52(){
stop();
}
}
}//package ZRv_fla
Section 4
//CHAR_112 (ZRv_fla.CHAR_112)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_112 extends MovieClip {
public function CHAR_112(){
addFrameScript(0, frame1, 24, frame25, 51, frame52, 66, frame67, 82, frame83);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
}
function frame25(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame83(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame52(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame67(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
}
}//package ZRv_fla
Section 5
//CHAR_120 (ZRv_fla.CHAR_120)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_120 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_120(){
addFrameScript(24, frame25, 45, frame46, 46, frame47, 56, frame57, 76, frame77);
}
function frame77(){
gotoAndPlay("walk");
}
function frame25(){
gotoAndPlay("walk");
}
function frame46(){
gotoAndStop("idle");
}
function frame47(){
stop();
}
function frame57(){
gotoAndPlay("dig");
}
}
}//package ZRv_fla
Section 6
//CHAR_122 (ZRv_fla.CHAR_122)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_122 extends MovieClip {
public var mcbody:MovieClip;
public var mcmask:MovieClip;
public function CHAR_122(){
addFrameScript(24, frame25, 42, frame43, 43, frame44);
}
function frame25(){
gotoAndPlay("walk");
}
function frame43(){
gotoAndStop("idle");
}
function frame44(){
stop();
}
}
}//package ZRv_fla
Section 7
//CHAR_128 (ZRv_fla.CHAR_128)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_128 extends MovieClip {
public function CHAR_128(){
addFrameScript(19, frame20, 33, frame34);
}
function frame20(){
stop();
}
function frame34(){
stop();
}
}
}//package ZRv_fla
Section 8
//CHAR_146 (ZRv_fla.CHAR_146)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_146 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_146(){
addFrameScript(12, frame13, 39, frame40, 40, frame41);
}
function frame13(){
gotoAndPlay("walk");
}
function frame40(){
gotoAndStop("idle");
}
function frame41(){
stop();
}
}
}//package ZRv_fla
Section 9
//CHAR_157 (ZRv_fla.CHAR_157)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_157 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_157(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay("walk");
}
}
}//package ZRv_fla
Section 10
//CHAR_159 (ZRv_fla.CHAR_159)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_159 extends MovieClip {
public var mcbody:MovieClip;
public var mcmask:MovieClip;
public function CHAR_159(){
addFrameScript(23, frame24, 47, frame48, 48, frame49, 69, frame70);
}
function frame70(){
stop();
}
function frame24(){
gotoAndPlay("walk");
}
function frame48(){
gotoAndStop("idle");
}
function frame49(){
stop();
}
}
}//package ZRv_fla
Section 11
//CHAR_162 (ZRv_fla.CHAR_162)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_162 extends MovieClip {
public function CHAR_162(){
addFrameScript(0, frame1, 29, frame30, 59, frame60, 74, frame75, 104, frame105);
}
function frame75(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame105(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame1(){
}
function frame30(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame60(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
}
}//package ZRv_fla
Section 12
//CHAR_170 (ZRv_fla.CHAR_170)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_170 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_170(){
addFrameScript(9, frame10, 84, frame85, 156, frame157, 216, frame217, 276, frame277, 425, frame426);
}
function frame277(){
stop();
}
function frame157(){
stop();
}
function frame426(){
stop();
}
function frame85(){
stop();
}
function frame10(){
stop();
}
function frame217(){
stop();
}
}
}//package ZRv_fla
Section 13
//CHAR_174 (ZRv_fla.CHAR_174)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_174 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_174(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay("walk");
}
}
}//package ZRv_fla
Section 14
//CHAR_175 (ZRv_fla.CHAR_175)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_175 extends MovieClip {
public var mctxt:MovieClip;
public var mcbody:MovieClip;
public function CHAR_175(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package ZRv_fla
Section 15
//CHAR_27 (ZRv_fla.CHAR_27)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_27 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_27(){
addFrameScript(33, frame34, 64, frame65, 65, frame66, 86, frame87);
}
function frame65(){
gotoAndStop("idle");
}
function frame87(){
stop();
}
function frame34(){
gotoAndPlay("walk");
}
function frame66(){
stop();
}
}
}//package ZRv_fla
Section 16
//CHAR_320 (ZRv_fla.CHAR_320)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class CHAR_320 extends MovieClip {
public var mc1:MovieClip;
public var txtcost2:TextField;
}
}//package ZRv_fla
Section 17
//CHAR_38 (ZRv_fla.CHAR_38)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_38 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_38(){
addFrameScript(24, frame25, 50, frame51, 51, frame52);
}
function frame25(){
gotoAndPlay("walk");
}
function frame51(){
gotoAndStop("idle");
}
function frame52(){
stop();
}
}
}//package ZRv_fla
Section 18
//CHAR_40 (ZRv_fla.CHAR_40)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_40 extends MovieClip {
public function CHAR_40(){
addFrameScript(0, frame1, 29, frame30, 59, frame60, 74, frame75, 107, frame108);
}
function frame75(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
}
function frame108(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame30(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame60(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
}
}//package ZRv_fla
Section 19
//CHAR_46 (ZRv_fla.CHAR_46)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_46 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_46(){
addFrameScript(12, frame13, 40, frame41);
}
function frame13(){
gotoAndPlay("walk");
}
function frame41(){
gotoAndPlay("walk");
}
}
}//package ZRv_fla
Section 20
//CHAR_50 (ZRv_fla.CHAR_50)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_50 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_50(){
addFrameScript(23, frame24, 39, frame40, 40, frame41, 71, frame72);
}
function frame72(){
gotoAndPlay("walk");
}
function frame24(){
gotoAndPlay("walk");
}
function frame40(){
gotoAndStop("idle");
}
function frame41(){
stop();
}
}
}//package ZRv_fla
Section 21
//CHAR_53 (ZRv_fla.CHAR_53)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_53 extends MovieClip {
public function CHAR_53(){
addFrameScript(0, frame1, 29, frame30, 59, frame60, 74, frame75, 90, frame91);
}
function frame75(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame91(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame1(){
}
function frame30(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame60(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
}
}//package ZRv_fla
Section 22
//CHAR_63 (ZRv_fla.CHAR_63)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_63 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_63(){
addFrameScript(23, frame24, 39, frame40, 40, frame41);
}
function frame24(){
gotoAndPlay("walk");
}
function frame40(){
gotoAndStop("idle");
}
function frame41(){
stop();
}
}
}//package ZRv_fla
Section 23
//CHAR_81 (ZRv_fla.CHAR_81)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_81 extends MovieClip {
public function CHAR_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 24
//CHAR_88 (ZRv_fla.CHAR_88)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_88 extends MovieClip {
public function CHAR_88(){
addFrameScript(0, frame1, 29, frame30, 59, frame60, 74, frame75, 90, frame91);
}
function frame75(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame91(){
gotoAndStop("attack");
}
function frame1(){
}
function frame30(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame60(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
}
}//package ZRv_fla
Section 25
//CHAR_93 (ZRv_fla.CHAR_93)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_93 extends MovieClip {
public function CHAR_93(){
addFrameScript(0, frame1, 29, frame30, 59, frame60, 74, frame75, 103, frame104);
}
function frame75(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
}
function frame104(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame30(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame60(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
}
}//package ZRv_fla
Section 26
//CHAR_96 (ZRv_fla.CHAR_96)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_96 extends MovieClip {
public function CHAR_96(){
addFrameScript(0, frame1, 29, frame30, 59, frame60, 74, frame75, 90, frame91);
}
function frame75(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame91(){
gotoAndPlay("idle1");
}
function frame1(){
}
function frame30(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame60(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
}
}//package ZRv_fla
Section 27
//CHAR_98 (ZRv_fla.CHAR_98)
package ZRv_fla {
import flash.display.*;
public dynamic class CHAR_98 extends MovieClip {
public var mcbody:MovieClip;
public function CHAR_98(){
addFrameScript(23, frame24, 39, frame40, 40, frame41);
}
function frame24(){
gotoAndPlay("walk");
}
function frame40(){
gotoAndStop("idle");
}
function frame41(){
stop();
}
}
}//package ZRv_fla
Section 28
//FX_115 (ZRv_fla.FX_115)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_115 extends MovieClip {
public function FX_115(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package ZRv_fla
Section 29
//FX_169 (ZRv_fla.FX_169)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_169 extends MovieClip {
public function FX_169(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package ZRv_fla
Section 30
//FX_324 (ZRv_fla.FX_324)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_324 extends MovieClip {
public function FX_324(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 31
//FX_434 (ZRv_fla.FX_434)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_434 extends MovieClip {
public function FX_434(){
addFrameScript(0, frame1, 1, frame2, 58, frame59);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame59(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 32
//FX_448 (ZRv_fla.FX_448)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_448 extends MovieClip {
public function FX_448(){
addFrameScript(0, frame1, 1, frame2, 16, frame17);
}
function frame1(){
stop();
this.visible = false;
}
function frame17(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 33
//FX_67 (ZRv_fla.FX_67)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_67 extends MovieClip {
public function FX_67(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package ZRv_fla
Section 34
//FX_83 (ZRv_fla.FX_83)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_83 extends MovieClip {
public function FX_83(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 5));
}
}
}//package ZRv_fla
Section 35
//FX_91 (ZRv_fla.FX_91)
package ZRv_fla {
import flash.display.*;
public dynamic class FX_91 extends MovieClip {
public function FX_91(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package ZRv_fla
Section 36
//INGAME_107 (ZRv_fla.INGAME_107)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_107 extends MovieClip {
public function INGAME_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 37
//INGAME_16 (ZRv_fla.INGAME_16)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_16 extends MovieClip {
public function INGAME_16(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 38
//INGAME_21 (ZRv_fla.INGAME_21)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_21 extends MovieClip {
public var mchit:imagetile;
public var mc1:MovieClip;
public function INGAME_21(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
this.visible = true;
mc1.visible = false;
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
mc1.visible = true;
}
}
}//package ZRv_fla
Section 39
//INGAME_356 (ZRv_fla.INGAME_356)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_356 extends MovieClip {
public var btncontinue:SimpleButton;
public var btnskip:SimpleButton;
}
}//package ZRv_fla
Section 40
//INGAME_361 (ZRv_fla.INGAME_361)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_361 extends MovieClip {
public function INGAME_361(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 41
//INGAME_379 (ZRv_fla.INGAME_379)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_379 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_379(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 42
//INGAME_380 (ZRv_fla.INGAME_380)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_380 extends MovieClip {
public var txt1:TextField;
}
}//package ZRv_fla
Section 43
//INGAME_388 (ZRv_fla.INGAME_388)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_388 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_388(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 44
//INGAME_409 (ZRv_fla.INGAME_409)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_409 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 45
//INGAME_41 (ZRv_fla.INGAME_41)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_41 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_41(){
addFrameScript(0, frame1, 1, frame2, 39, frame40);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame40(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 46
//INGAME_411 (ZRv_fla.INGAME_411)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_411 extends MovieClip {
public var mccity:MovieClip;
}
}//package ZRv_fla
Section 47
//INGAME_426 (ZRv_fla.INGAME_426)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_426 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 48
//INGAME_432 (ZRv_fla.INGAME_432)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_432 extends MovieClip {
public var cphit:imagetile;
public var mcskill2:MovieClip;
public var mcskill1:MovieClip;
public var mcskill3:MovieClip;
public var mcnumba:MovieClip;
public var txthp:TextField;
public var mccp:MovieClip;
public var mcpanel1:MovieClip;
public var mcpanel3:MovieClip;
public var mcpanel4:MovieClip;
public var mcpanel5:MovieClip;
public var mcpanel2:MovieClip;
public var txtcp:TextField;
public function INGAME_432(){
addFrameScript(0, frame1);
}
function frame1(){
txthp.mouseEnabled = false;
txtcp.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 49
//INGAME_433 (ZRv_fla.INGAME_433)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_433 extends MovieClip {
public var mc1:MovieClip;
public var txt1:TextField;
public var mcready:MovieClip;
public function INGAME_433(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
mcready.mouseChildren = false;
mcready.mouseEnabled = false;
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
function frame1(){
mcready.mouseChildren = false;
mcready.mouseEnabled = false;
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
function frame4(){
mcready.mouseChildren = false;
mcready.mouseEnabled = false;
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
function frame2(){
mcready.mouseChildren = false;
mcready.mouseEnabled = false;
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 50
//INGAME_451 (ZRv_fla.INGAME_451)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_451 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var btngotit:SimpleButton;
public function INGAME_451(){
addFrameScript(0, frame1, 1, frame2, 20, frame21);
}
function frame1(){
stop();
this.visible = false;
}
function frame21(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 51
//INGAME_455 (ZRv_fla.INGAME_455)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_455 extends MovieClip {
public function INGAME_455(){
addFrameScript(0, frame1, 1, frame2, 48, frame49);
}
function frame1(){
stop();
this.visible = false;
this.mouseChildren = false;
this.mouseEnabled = false;
}
function frame2(){
this.visible = true;
}
function frame49(){
stop();
}
}
}//package ZRv_fla
Section 52
//INGAME_457 (ZRv_fla.INGAME_457)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_457 extends MovieClip {
public function INGAME_457(){
addFrameScript(0, frame1, 1, frame2, 52, frame53);
}
function frame1(){
stop();
this.visible = false;
this.mouseChildren = false;
this.mouseEnabled = false;
}
function frame2(){
this.visible = true;
}
function frame53(){
stop();
}
}
}//package ZRv_fla
Section 53
//INGAME_459 (ZRv_fla.INGAME_459)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_459 extends MovieClip {
public function INGAME_459(){
addFrameScript(0, frame1, 1, frame2, 74, frame75);
}
function frame75(){
gotoAndPlay("ayoyo");
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 54
//INGAME_461 (ZRv_fla.INGAME_461)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_461 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mchead:MovieClip;
public var mchead2:MovieClip;
public function INGAME_461(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 55
//INGAME_467 (ZRv_fla.INGAME_467)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_467 extends MovieClip {
public var btnrestart:SimpleButton;
public var btnquit:SimpleButton;
public var mcquitlevel:MovieClip;
public function INGAME_467(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 56
//INGAME_474 (ZRv_fla.INGAME_474)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_474 extends MovieClip {
public var mc1:MovieClip;
public var btnokay:SimpleButton;
public function INGAME_474(){
addFrameScript(0, frame1, 1, frame2, 22, frame23);
}
function frame1(){
stop();
this.visible = false;
}
function frame23(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 57
//INGAME_477 (ZRv_fla.INGAME_477)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_477 extends MovieClip {
public var mc1:MovieClip;
public var btnokay:SimpleButton;
public function INGAME_477(){
addFrameScript(0, frame1, 1, frame2, 17, frame18);
}
function frame18(){
stop();
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 58
//INGAME_479 (ZRv_fla.INGAME_479)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_479 extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
}
}//package ZRv_fla
Section 59
//INGAME_481 (ZRv_fla.INGAME_481)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_481 extends MovieClip {
public var txtspd:TextField;
public var txtatk:TextField;
public var txthp:TextField;
public var txt1:TextField;
public var txt2:TextField;
}
}//package ZRv_fla
Section 60
//INGAME_482 (ZRv_fla.INGAME_482)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_482 extends MovieClip {
public var mc1:MovieClip;
public var btnmap:SimpleButton;
public var mcgold:MovieClip;
public function INGAME_482(){
addFrameScript(0, frame1, 1, frame2, 48, frame49);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame49(){
stop();
}
}
}//package ZRv_fla
Section 61
//INGAME_486 (ZRv_fla.INGAME_486)
package ZRv_fla {
import flash.display.*;
public dynamic class INGAME_486 extends MovieClip {
public function INGAME_486(){
addFrameScript(1102, frame1103);
}
function frame1103(){
stop();
}
}
}//package ZRv_fla
Section 62
//MAINMENU_188 (ZRv_fla.MAINMENU_188)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_188 extends MovieClip {
public var mc1:MovieClip;
public function MAINMENU_188(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package ZRv_fla
Section 63
//MAINMENU_198 (ZRv_fla.MAINMENU_198)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_198 extends MovieClip {
public var mchit:MovieClip;
public function MAINMENU_198(){
addFrameScript(24, frame25, 53, frame54);
}
function frame25(){
gotoAndPlay("walk");
}
function frame54(){
gotoAndPlay("idle");
}
}
}//package ZRv_fla
Section 64
//MAINMENU_199 (ZRv_fla.MAINMENU_199)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_199 extends MovieClip {
public var mchit:MovieClip;
public function MAINMENU_199(){
addFrameScript(23, frame24, 52, frame53);
}
function frame24(){
gotoAndPlay("walk");
}
function frame53(){
gotoAndPlay("idle");
}
}
}//package ZRv_fla
Section 65
//MAINMENU_202 (ZRv_fla.MAINMENU_202)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_202 extends MovieClip {
public var mc1:MovieClip;
public function MAINMENU_202(){
addFrameScript(0, frame1, 1, frame2, 34, frame35);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame35(){
stop();
}
}
}//package ZRv_fla
Section 66
//MAINMENU_203 (ZRv_fla.MAINMENU_203)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_203 extends MovieClip {
public var mccleardisabled:MovieClip;
public var btnclear:SimpleButton;
public var mcclearsave:MovieClip;
public var btngoody:SimpleButton;
public var btnplay:SimpleButton;
public var btnag:SimpleButton;
public var btncredits:SimpleButton;
}
}//package ZRv_fla
Section 67
//MAINMENU_208 (ZRv_fla.MAINMENU_208)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_208 extends MovieClip {
public var btnyes:SimpleButton;
public var btnno:SimpleButton;
}
}//package ZRv_fla
Section 68
//MAINMENU_211 (ZRv_fla.MAINMENU_211)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_211 extends MovieClip {
public var mc1:MovieClip;
public function MAINMENU_211(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
stop();
}
}
}//package ZRv_fla
Section 69
//MAINMENU_212 (ZRv_fla.MAINMENU_212)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_212 extends MovieClip {
public var btnagfb:SimpleButton;
}
}//package ZRv_fla
Section 70
//MAINMENU_217 (ZRv_fla.MAINMENU_217)
package ZRv_fla {
import flash.display.*;
public dynamic class MAINMENU_217 extends MovieClip {
public var btnback:SimpleButton;
public function MAINMENU_217(){
addFrameScript(0, frame1, 1, frame2, 499, frame500);
}
function frame1(){
stop();
this.visible = false;
}
function frame500(){
gotoAndPlay(2);
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 71
//MainTimeline (ZRv_fla.MainTimeline)
package ZRv_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var mcmap:MovieClip;
public var soundlevelcomplete:Sound;
public var stagewin;
public var charcost;
public var pageke;
public var mapprize;
public var newareake;
public var achievementlist;
public var soundstep:Sound;
public var skilldesc;
public var soundsirene:Sound;
public var soundingame:Sound;
public var soundgun1:Sound;
public var soundgun2:Sound;
public var soundhit1:Sound;
public var soundhit2:Sound;
public var soundhit3:Sound;
public var sharpneldamage;
public var onnextwavewaiting;
public var soundlose:Sound;
public var soundmainmenu:Sound;
public var onskillke;
public var helmarmor;
public var soundlocomotive:Sound;
public var txtloading:TextField;
public var soundheartbeat:Sound;
public var dropshadow:DropShadowFilter;
public var flaggenerate;
public var indexthropy;
public var jedaspawnsebelum;
public var tilesimage;
public var soundexplode:Sound;
public var soundareaunlocked:Sound;
public var rrwaitadd;
public var mapgotchar;
public var btnmainmenu:SimpleButton;
public var zombiemaxpage;
public var cpimage;
public var specialtileposition:MovieClip;
public var soundmoney:Sound;
public var soundflag:Sound;
public var btnpause:SimpleButton;
public var soundsharpnelbomb:Sound;
public var jumzombie;
public var waittutortime;
public var soundwoodhit1:Sound;
public var soundwoodhit2:Sound;
public var mapgoleft;
public var charlist;
public var soundcanexplode:Sound;
public var sorttime;
public var finalwave;
public var bossindex;
public var soundironbat1:Sound;
public var soundironbat2:Sound;
public var skillstring;
public var skillcost;
public var mcskillinfo:MovieClip;
public var skillimage;
public var zombiehp;
public var soundscream:Sound;
public var zombieequip;
public var soundgunsound:Sound;
public var zombiespeed;
public var mczombieinfo:MovieClip;
public var freezetime;
public var zombiecpchance;
public var soundareacleared:Sound;
public var soundsuperswingsummon:Sound;
public var mapdifficulty;
public var mcending:MovieClip;
public var mccredits:MovieClip;
public var posspawnsebelum;
public var shadowposition:imagetile;
public var flaggeneratenot;
public var mapwave;
public var unitimage;
public var btnsound2:SimpleButton;
public var mcaddon:MovieClip;
public var mcuitop:MovieClip;
public var cpowned;
public var soundpowerup:Sound;
public var minreload;
public var zombieindex;
public var mcunlocked:MovieClip;
public var btngoody:SimpleButton;
public var effectimage;
public var mapposition;
public var btnprev:SimpleButton;
public var mcthropy:MovieClip;
public var hpowned;
public var soundbombdrop:Sound;
public var mcstagedone:MovieClip;
public var zombieatk;
public var mcblinker:MovieClip;
public var btnsoundmus:SimpleButton;
public var soundswing1:Sound;
public var soundswing2:Sound;
public var soundspark2:Sound;
public var soundspark1:Sound;
public var minimapimage;
public var zombierange;
public var charhp;
public var soundexplosion:Sound;
public var mctutorial:MovieClip;
public var charskillupgradedesc;
public var mcchoosesurvivor:MovieClip;
public var zombiesize;
public var barrelhp;
public var soundnewunit:Sound;
public var thropymaxpage;
public var mcsurvivorinfo:MovieClip;
public var mcchooseskill:MovieClip;
public var zombiereload;
public var mcminimap:MovieClip;
public var deafdamage;
public var btnnext:SimpleButton;
public var mcforeground:MovieClip;
public var soundtrainhorn:Sound;
public var soundrobocome:Sound;
public var customContextMenu:ContextMenu;
public var soundbullet1:Sound;
public var soundbullet2:Sound;
public var btnag:SimpleButton;
public var soundbullet3:Sound;
public var contextmenu;
public var btnplay:SimpleButton;
public var riotcasewaitingtime;
public var charrange;
public var mcdarken:MovieClip;
public var mapke;
public var txt1:TextField;
public var skillupgradedesc;
public var soundfruitsquish:Sound;
public var btnlikefb:SimpleButton;
public var deafduration;
public var mcannounce:MovieClip;
public var mccity:MovieClip;
public var fxposition:imagetile;
public var rrwaitbase;
public var unitpositioned;
public var readygame;
public var mapbuilding;
public var soundsplat2:Sound;
public var soundsplat3:Sound;
public var soundsplat4:Sound;
public var soundsplat5:Sound;
public var soundsplat6:Sound;
public var soundsplat7:Sound;
public var mcmapprogress:MovieClip;
public var electricpolereload;
public var soundsplash:Sound;
public var rrlevelcounter;
public var btnsound:SimpleButton;
public var shadowimage;
public var mcag:MovieClip;
public var slowtime;
public var mcbg:MovieClip;
public var soundfreeze:Sound;
public var mapspeed;
public var charreload;
public var achievementnumba;
public var mcsurvivor:MovieClip;
public var charskillstring;
public var soundice1:Sound;
public var soundice2:Sound;
public var mcfinalwave:MovieClip;
public var pergeseranawan;
public var btnsoundmus2:SimpleButton;
public var soundcart:Sound;
public var charskill;
public var soundboing:Sound;
public var mcmouse:MovieClip;
public var zombiesebelum;
public var onfrozenairtime;
public var soundmegaboomerang:Sound;
public var marrionpback;
public var selisihcpcounter;
public var soundbullethit1:Sound;
public var soundbuttonover:Sound;
public var mc2:MovieClip;
public var soundlight:Sound;
public var soundtutorial:Sound;
public var oncharanimation;
public var mcnewz:MovieClip;
public var pergeseranforeground;
public var mapfire;
public var btninfodisabled:SimpleButton;
public var bulletimage;
public var mcareaoverview:MovieClip;
public var listcharfillxe;
public var overchargedtime;
public var antonioboomerangtime;
public var mcskillbaloon:MovieClip;
public var zombiename;
public var survivorindex;
public var minimapskala;
public var soundcp:Sound;
public var mcbaloonupgrade:MovieClip;
public var zombiespc;
public var mcfrozenair:MovieClip;
public var soundclick:Sound;
public var charbasecp;
public var charskilldesc;
public var electricpoledamage;
public var zombiereloadspc;
public var mcachievment:MovieClip;
public var soundfrostgun:Sound;
public var waveke;
public var mcskillbaloon2:MovieClip;
public var mcpause:MovieClip;
public var soundstartwave:Sound;
public var achievementdesc;
public var soundplaster:Sound;
public var chardamage;
public var mapjedok;
public var mccloud:MovieClip;
public var charskillcd;
public var mcmissingperson:MovieClip;
public var so:SharedObject;
public var mapjeda;
public var charskillnumba;
public var mcuimap:MovieClip;
public var stuntime;
public var skillselect;
public var zombiecpdrop;
public var sounddoorslide:Sound;
public var mcfreecoin:MovieClip;
public var skillnumba;
public var zombieselect;
public var soundrobojaw:Sound;
public var mcui:MovieClip;
public var unitposition:imagetile;
public var mcanimation:MovieClip;
public var soundsuperswing:Sound;
public var soundsniper:Sound;
public var soundachievement:Sound;
public var flagowned;
public var mcuibot:MovieClip;
public var soundcanhit1:Sound;
public var soundcanhit2:Sound;
public var soundcanhit3:Sound;
public var slowspeed;
public var pausegame;
public var charskillcost;
public var mcskillmouse:MovieClip;
public var soundno:Sound;
public var soundgrowl:Sound;
public var soundblock1:Sound;
public var soundblock2:Sound;
public var zombiepart;
public var textwarnaijo;
public var sparktime;
public var volumesfx;
public var mcminimapcamera:MovieClip;
public var soundchannelbgm:SoundChannel;
public var minimapwidth;
public var volumebgm;
public var soundcock:Sound;
public var mcsplash:MovieClip;
public var soundchannelbgm2:SoundChannel;
public var glowpurple:GlowFilter;
public var onfrozenair;
public var tilesposition:imagetile;
public var wavegametime;
public var mcskillinfobg:MovieClip;
public var civilianimage;
public var soundfire:Sound;
public var soundwater1:Sound;
public var soundwater2:Sound;
public var mapmapke;
public var nextwavewait;
public var zombiecurrpage;
public var maplist;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15);
}
public function survivorinforclick(_arg1:MouseEvent):void{
mcsurvivorinfo.gotoAndStop(mcsurvivorinfo.totalFrames);
mcsurvivorinfo.mc1.gotoAndStop(survivorindex);
}
public function createbarrelfx(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = 0;
while (_local2 < 3) {
_local3 = [fxbarrelpieces1, fxbarrelpieces2, fxbarrelpieces3];
effectimage[effectimage.length] = new (_local3[randRange(1, (_local3.length - 1))]);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = (_arg1.x + randRange(-40, 40));
effectimage[(effectimage.length - 1)].y = (_arg1.y + randRange(-20, -60));
effectimage[(effectimage.length - 1)].scaleX = (effectimage[(effectimage.length - 1)].scaleX * -1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
_local2++;
};
}
public function zombieinfoprev(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
zombiecurrpage--;
zombieindex = (zombieindex - 4);
loadzombieinfo();
}
public function cekenemyreaction(_arg1:int, _arg2:Object){
var _local3:*;
if (unitimage[_arg1].charke == 14){
cekbosshpbarmovement();
};
if (unitimage[_arg1].helmarmor > 0){
_local3 = [soundblock1, soundblock2];
_local3[randRange(0, (_local3.length - 1))].play(0, 1, new SoundTransform(volumesfx));
cekarmordrop(unitimage[_arg1], _arg2.damage);
} else {
unitimage[_arg1].hp = (unitimage[_arg1].hp - _arg2.damage);
};
unitimage[_arg1].gotoAndPlay(2);
_arg2.donehit = true;
if (unitimage[_arg1].charke != 4){
createblood(unitimage[_arg1]);
};
if (unitimage[_arg1].hp <= 0){
unitimage[_arg1].die = true;
if (unitimage[_arg1].charke == 16){
removezombieini(unitimage[_arg1]);
} else {
if (unitimage[_arg1].charke == 14){
creategameend();
};
};
};
}
public function playgames(_arg1:MouseEvent):void{
gotoAndPlay("preloader2");
}
public function loadposition(){
mcmap.x = so.data.lastpoint;
loadminimapcamera();
loaddarken();
}
public function zombieover(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(3);
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
}
public function charandskillkeyboard(_arg1:KeyboardEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (_arg1.keyCode == 80){
bwatingamepause();
};
if ((((_arg1.keyCode >= 49)) && ((_arg1.keyCode <= 53)))){
_local2 = mcui.mcnumba.getChildByName(("mc" + _arg1.keyCode));
_local2.gotoAndPlay(2);
_local3 = int(_arg1.keyCode);
_local3 = (_local3 - 48);
_local2 = mcui.getChildByName(("mcpanel" + _local3));
activatethischarpanel(_local2);
} else {
if ((((((_arg1.keyCode == 81)) || ((_arg1.keyCode == 87)))) || ((_arg1.keyCode == 69)))){
_local2 = mcui.mcnumba.getChildByName(("mc" + _arg1.keyCode));
_local2.gotoAndPlay(2);
_local4 = false;
trace(("CEK : " + onskillke));
if (_arg1.keyCode == 81){
if (onskillke != so.data.skillregister[1]){
_local4 = true;
_local2 = mcui.mcskill1;
};
} else {
if (_arg1.keyCode == 87){
if (onskillke != so.data.skillregister[2]){
_local4 = true;
_local2 = mcui.mcskill2;
};
} else {
if (_arg1.keyCode == 69){
if (onskillke != so.data.skillregister[3]){
_local4 = true;
_local2 = mcui.mcskill3;
};
};
};
};
if (_local4 == true){
cekactivateskill(_local2);
} else {
onskillke = 0;
donemouse();
createavailabletiles(false);
};
};
};
}
public function createfastbarmove(){
mcmapprogress.mchead.x = (82 - mcmapprogress.mc1.width);
mcmapprogress.mc1.tampungpenambahan = 0;
mcmapprogress.mc1.timee = 25;
mcmapprogress.mc1.speed = ((mcmapprogress.mc2.width - mcmapprogress.mc1.width) / 25);
trace(((("fast time : " + mcmapprogress.mc1.timee) + " gerak : ") + mcmapprogress.mc1.speed));
}
public function skilloutupgrade(_arg1:MouseEvent){
mcbaloonupgrade.visible = false;
}
public function bullet6movement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (pausegame == false){
_arg1.currentTarget.play();
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.movex);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.movey);
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if ((((unitimage[_local2].die == false)) && ((unitimage[_local2].digphase == 3)))){
if (unitimage[_local2].tipe == 3){
if (_arg1.currentTarget.hitTestObject(unitimage[_local2].mc1.mcbody) == true){
if (unitimage[_local2].ye < 12){
_local4 = true;
if (_arg1.currentTarget.hitlist.length == 0){
_local4 = true;
} else {
_local5 = 0;
while (_local5 < _arg1.currentTarget.hitlist.length) {
if (_arg1.currentTarget.hitlist[_local5] == _local2){
_local4 = false;
break;
};
_local5++;
};
};
if (_local4 == true){
if (unitimage[_local2].charke == 13){
unitimage[_local2].overchargedtime = (overchargedtime * 25);
};
_local6 = [soundspark1, soundspark2];
_local6[randRange(0, (_local6.length - 1))].play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.hitlist[_arg1.currentTarget.hitlist.length] = _local2;
cekenemyreaction(_local2, _arg1.currentTarget);
};
};
};
};
};
};
_local2++;
};
_local3 = false;
_arg1.currentTarget.forhowlong--;
if (_arg1.currentTarget.forhowlong <= 0){
_local3 = true;
};
if (_arg1.currentTarget.y > 357){
_local3 = true;
};
if (_local3 == true){
_local7 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet6movement);
removeChild(bulletimage[_local7]);
bulletimage[_local7] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function choosesurvivorwaitingup(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcchoosesurvivor.mc1.getChildByName(("mcpanel" + _local2));
if (mcmouse.mchit.hitTestObject(_local3) == true){
_local4 = 1;
while (_local4 <= 5) {
if (so.data.charregister[_local4] == mcmouse.mc1.currentFrame){
so.data.charregister[_local4] = so.data.charregister[_local2];
break;
};
_local4++;
};
so.data.charregister[_local2] = mcmouse.mc1.currentFrame;
break;
};
_local2++;
};
trace(("RESULT : " + so.data.charregister));
stage.removeEventListener(Event.ENTER_FRAME, choosesurvivorwaiting);
stage.removeEventListener(MouseEvent.MOUSE_UP, choosesurvivorwaitingup);
mcmouse.gotoAndStop(1);
createchoosesurvivor();
}
public function cekbosshpbarmovement(){
var _local1:*;
_local1 = unitimage[bossindex];
mcmapprogress.mc1.speed = 25;
mcmapprogress.mc1.targete = (158 * (_local1.hp / _local1.hptemp));
mcmapprogress.mc1.penambahan = (((mcmapprogress.mc1.width - mcmapprogress.mc1.targete) / mcmapprogress.mc1.speed) * -1);
}
function frame10(){
stop();
mctutorial.visible = false;
trace(("CEK LVL : " + so.data.skilllevel));
mcdarken.visible = false;
mcbaloonupgrade.visible = false;
mcskillinfobg.btnback.removeEventListener(MouseEvent.CLICK, skillinfoback);
mcskillinfobg.btnback.addEventListener(MouseEvent.CLICK, skillinfoback);
mcskillinfobg.mcgold.txtcost2.text = so.data.goldowned;
mcskillinfobg.mcgold.mc1.txtcost.text = so.data.goldowned;
skillselect = 1;
loadskill();
}
function frame14(){
}
public function adjustminimapup(_arg1:MouseEvent){
stage.removeEventListener(Event.ENTER_FRAME, minimapcamerafollow);
stage.removeEventListener(MouseEvent.MOUSE_UP, adjustminimapup);
}
public function cekbisaspc(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = false;
if (_arg1.charke == 5){
_local3 = [];
_local4 = 0;
while (_local4 < unitimage.length) {
if (unitimage[_local4] != null){
if ((((unitimage[_local4].die == false)) && (!((unitimage[_local4] == _arg1))))){
if (unitimage[_local4].tipe == 3){
if (unitimage[_local4].charke != 4){
if (unitimage[_local4].xe == _arg1.xe){
if ((((unitimage[_local4].ye >= (_arg1.ye - 3))) && ((unitimage[_local4].ye <= (_arg1.ye + 3))))){
_local3[_local3.length] = _local4;
break;
};
};
};
};
};
};
_local4++;
};
if (_local3.length > 0){
_local2 = true;
_arg1.reloadspc = _arg1.reloadspctemp;
_arg1.mc1.gotoAndPlay("casting");
};
};
return (_local2);
}
function frame15(){
}
public function waittutorevent(_arg1:Event):void{
waittutortime--;
if (waittutortime < 0){
stage.removeEventListener(Event.ENTER_FRAME, waittutorevent);
loadtutorial();
};
}
function frame12(){
gotoAndStop("ingame");
}
public function nextwavewaiting(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
nextwavewait--;
if (nextwavewait < 0){
if (finalwave == true){
trace("DONE MAP");
onnextwavewaiting = false;
pausegame = true;
stage.removeEventListener(Event.ENTER_FRAME, nextwavewaiting);
if (hpowned <= 0){
stagewin = false;
mcstagedone.mc1.gotoAndStop(2);
} else {
if (so.data.mapstatus[mapke] == false){
so.data.buildingconquered++;
cekachievement(14);
};
stagewin = true;
mcstagedone.mc1.gotoAndStop(1);
};
if (stagewin == true){
if (so.data.maprating[mapke] != 2){
if (hpowned < 3){
so.data.maprating[mapke] = 1;
} else {
so.data.maprating[mapke] = 2;
};
};
trace(((("map : " + mapke) + " ") + so.data.currarea));
if ((((mapke == 1)) && ((so.data.currarea == 0)))){
so.data.currarea = 1;
newareake = 1;
} else {
if ((((mapke == 8)) && ((so.data.currarea == 1)))){
so.data.currarea = 2;
newareake = 2;
} else {
if ((((mapke == 18)) && ((so.data.currarea == 2)))){
so.data.currarea = 3;
newareake = 3;
};
};
};
};
trace(("RESULT " + stagewin));
if (maplist[mapke] == 2){
if (stagewin == true){
if (so.data.mapstatus[mapke] == true){
bwatmcstagedone();
} else {
if (volumebgm != 0){
volumebgm = 0.3;
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
};
cekachievement(13);
so.data.basecp = (so.data.basecp + charbasecp[mapgotchar[mapke]]);
so.data.charunlocked[mapgotchar[mapke]] = 1;
so.data.skillunlocked[mapgotchar[mapke]] = true;
_local2 = 1;
while (_local2 < so.data.charregister.length) {
if (so.data.charregister[_local2] == undefined){
trace((("ya nomor : " + _local2) + " dimasukno"));
so.data.charregister[_local2] = mapgotchar[mapke];
break;
};
_local2++;
};
_local2 = 1;
while (_local2 <= 3) {
if (so.data.skillregister[_local2] == undefined){
trace((("ya skill : " + _local2) + " dimasukno"));
so.data.skillregister[_local2] = mapgotchar[mapke];
break;
};
_local2++;
};
so.data.newunit = true;
so.data.newskill = true;
so.data.newunitke = mapgotchar[mapke];
pausegame = true;
mctutorial.visible = true;
mctutorial.btncontinue.addEventListener(MouseEvent.CLICK, tutorialclick);
mctutorial.btnskip.addEventListener(MouseEvent.CLICK, tutorialskip);
if (mapgotchar[mapke] == 2){
mctutorial.gotoAndStop(31);
oncharanimation = 2;
} else {
if (mapgotchar[mapke] == 3){
mctutorial.gotoAndStop(41);
oncharanimation = 3;
} else {
if (mapgotchar[mapke] == 4){
mctutorial.gotoAndStop(52);
oncharanimation = 4;
} else {
if (mapgotchar[mapke] == 5){
mctutorial.gotoAndStop(59);
oncharanimation = 5;
} else {
if (mapgotchar[mapke] == 6){
mctutorial.gotoAndStop(70);
oncharanimation = 6;
} else {
if (mapgotchar[mapke] == 7){
mctutorial.gotoAndStop(77);
oncharanimation = 7;
};
};
};
};
};
};
};
} else {
bwatmcstagedone();
};
} else {
bwatmcstagedone();
};
} else {
bwatwaitnextwave();
};
};
};
}
function frame11(){
stop();
selisihcpcounter = flaggenerate;
onfrozenair = false;
onfrozenairtime = 0;
stage.quality = "LOW";
trace(("INGAME " + mapke));
trace(("SKILL LVL : " + so.data.skilllevel));
mcskillbaloon2.visible = false;
mcskillbaloon2.mouseChildren = false;
mcskillbaloon2.mouseEnabled = false;
mcskillbaloon.visible = false;
mcskillbaloon.mouseChildren = false;
mcskillbaloon.mouseEnabled = false;
mcskillmouse.visible = false;
ceksoundbutton();
if (soundchannelbgm != null){
soundchannelbgm.stop();
soundchannelbgm = null;
} else {
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
soundchannelbgm2 = null;
};
};
mcmap.gotoAndStop(mapmapke[mapke]);
mcaddon.gotoAndStop(mapmapke[mapke]);
mcaddon.mouseChildren = false;
mcaddon.mouseEnabled = false;
mctutorial.visible = false;
bossindex = 0;
readygame = false;
onskillke = 0;
sorttime = 25;
wavegametime = true;
onnextwavewaiting = false;
waittutortime = 50;
oncharanimation = -1;
dropshadow = new DropShadowFilter();
dropshadow.blurX = 4;
dropshadow.blurY = 4;
dropshadow.color = 0;
dropshadow.distance = 0;
dropshadow.strength = 1000;
rrwaitbase = 20;
rrwaitadd = 10;
listcharfillxe = [];
nextwavewait = -1;
waveke = 0;
flagowned = 0;
mapfire = [undefined, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0];
mapjeda = [undefined, [undefined, 10, 15, 20], [undefined, 10, 15, 15, 15], [undefined, 10, 15, 20, 25, 30], [undefined, 10, 20, 20, 15, 30, 30, 30], [undefined, 10, 15, 20, 25, 15, 15, 25], [undefined, 10, 15, 20, 25, 15, 30, 25], [undefined, 10, 20, 15, 20, 25, 30, 15, 20, 30], [undefined, 10, 20, 25, 25, 25, 25, 30, 30, 25, 40, 40], [undefined, 10, 20, 20, 25, 30, 35], [undefined, 10, 20, 25, 35, 25, 35], [undefined, 10, 15, 25, 15, 30, 20, 15, 25, 30], [undefined, 10, 20, 20, 25, 30, 35, 35, 40, 30, 35, 40], [undefined, 10, 25, 25, 30, 25, 35, 30, 30, 40, 35], [undefined, 10, 20, 30, 25, 35, 40, 40, 45], [undefined, 10, 20, 25, 30, 25, 35, 35], [undefined, 10, 25, 25, 30, 25, 35, 30, 35, 35, 40, 40], [undefined, 10, 20, 25, 35, 40, 25, 25, 35, 30, 25, 35], [undefined, 10, 20, 25, 30, 35, 40, 40, 40, 40], [undefined, 10, 25, 25, 30, 35, 35, 35, 35, 40, 35, 40, 45], [undefined, 10, 20, 25, 30, 30, 40, 30, 35, 30, 35, 35, 35, 35, 25, 30], [undefined, 10, 35, 35, 35, 35, 35, 40, 40, 35, 40, 35, 40, 40], [undefined, 10, 30, 30, 45, 30, 45, 35, 35, 35, 40, 50, 45, 45, 45, 45], [undefined, 10, 25, 30, 35, 40, 35, 45, 45, 40, 40, 45, 35, 40], [undefined, 10, 35, 40, 50, 60, 55, 55, 60, 55, 55, 65, 65, 70], [undefined, 10, 40, 40, 50, 40, 50, 50, 50, 40, 50, 45, 55, 60], [undefined, 10, 35, 50, 40, 40, 35, 35, 45, 50, 50, 35, 35, 35, 40], [undefined, 10, 25, 35, 35, 40, 35, 45, 50, 45, 35, 40, 50], [10, 25, 40, 35, 35, 50, 40, 50, 55, 60, 60, 65]];
mapwave = [undefined, [undefined, [1], [1], [1, 1, 1]], [undefined, [1], [1], [1, 1], [2]], [undefined, [1, 1], [1, 1, 1], [2, 1], [2, 2, 1], [2, 2, 1, 1]], [undefined, [1, 1], [2], [1, 1, 1, 1], [4, 3], [2, 2, 2], [2, 2, 1, 1, 1], [2, 2, 2]], [undefined, [1], [1, 1, 1], [2], [2, 1, 1], [4, 3], [4, 3], [2, 2, 1, 1]], [undefined, [1, 1], [1, 1, 1], [2, 1], [2, 1, 1], [4, 3], [2, 2], [1, 1, 1, 1, 1, 1]], [undefined, [1, 1], [4, 3, 4, 3], [1, 1, 1], [4, 3], [2, 1], [2, 2], [4, 3], [4, 3], [2, 2, 1, 1, 1, 1, 1, 1]], [undefined, [1, 1], [2], [1, 1, 1, 1], [4, 3, 4, 3], [4, 3, 4, 3], [2, 1, 1, 1], [2, 2], [4, 3, 4, 3, 4, 3], [1, 1, 1, 1, 1], [2, 2, 2, 2, 2, 5], [4, 3, 4, 3, 2, 2, 5, 2, 2, 5, 5, 1, 1, 1, 1, 1, 1]], [undefined, [2], [2, 5], [2, 1, 1, 1, 1], [2, 2, 5], [2, 2, 1, 1, 1, 1], [2, 2, 5, 1, 1, 1, 1, 1, 5]], [undefined, [1], [2], [2, 1, 1], [2, 1, 1, 1], [2, 6], [2, 6, 2, 6], [1, 1, 1, 6, 1, 1, 1, 6], [2, 6, 2, 6, 2, 6]], [undefined, [1, 1], [1, 1, 1, 1], [2, 6], [1, 1, 2], [2, 6], [4, 3], [4, 3], [1, 1, 6, 1, 1, 6, 1, 1, 6], [2, 6, 2, 6, 2, 6]], [undefined, [2], [1, 1, 1, 6], [1, 1, 1, 6], [2, 6, 2, 6], [1, 2, 5, 1, 2, 1, 2, 5], [2, 6, 2, 6, 2, 6], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 5, 6, 2, 6, 2, 6, 2, 5, 6], [1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 5], [4, 3, 4, 3, 4, 3, 4, 3], [2, 5, 6, 2, 6, 2, 6, 2, 5, 6]], [undefined, [1, 1, 1, 1], [2, 6, 5], [2, 2], [2, 6, 2, 6], [1, 1, 1, 1, 4, 3, 1, 1, 4, 3], [2, 6, 2, 6, 2, 6], [1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 5], [1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 6], [2, 6, 5, 2, 6, 5, 2, 6, 5], [1, 1, 1, 1, 2, 6, 5, 1, 1, 1, 1, 2, 6, 5]], [undefined, [2], [2, 6], [2, 2, 6], [2, 2, 5], [2, 6, 2, 6], [2, 5, 6, 2, 5, 6], [2, 6, 6, 2, 6, 6], [2, 2, 6, 6, 6, 2, 2, 6, 6, 6]], [undefined, [7], [2, 2], [7, 2, 2, 6], [2, 2, 5, 6], [7, 7], [2, 6, 2, 6], [2, 2, 6, 2, 2, 6, 2, 2, 2, 7, 7]], [undefined, [4, 3, 4, 3, 4, 3], [7, 7], [2, 2, 2], [2, 2, 5, 6], [2, 2, 5, 6], [2, 6, 2, 6, 2, 6, 2, 6], [7, 7], [2, 7, 2, 7, 2, 7], [7, 6, 7, 6, 7, 6], [4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3], [2, 6, 5, 2, 6, 5, 2, 6, 5, 2, 6, 5, 2, 6, 5, 2, 7, 7, 7]], [undefined, [7], [6, 6, 6], [6, 6, 6, 6], [2, 2, 5, 2, 2, 5, 2, 2, 5], [7], [6, 6, 6, 6], [6, 6, 6, 6], [2, 2, 2, 2, 2, 2, 2, 2, 2], [7, 7], [4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3], [2, 2, 2, 2, 2, 7, 7, 7]], [undefined, [2, 6], [6, 6, 6], [2, 2, 2, 5], [8, 8], [2, 5, 6, 2, 5, 6], [7, 6, 7, 6, 7, 6, 7, 6], [4, 3, 8, 4, 3, 8, 4, 3], [2, 5, 6, 2, 5, 6, 2, 5, 6], [2, 8, 2, 8, 2, 8]], [undefined, [2, 2], [2, 6, 2, 6, 2, 6], [2, 7], [7, 7, 7], [2, 5, 6, 2, 5, 6], [2, 6, 2, 6, 2, 6], [7, 6, 7, 6, 7, 6], [8, 8, 8, 8, 8, 8], [2, 5, 6, 2, 5, 6, 2, 5, 6], [7, 7, 7, 7], [2, 8, 2, 8, 2, 8, 2, 8], [2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 7, 7, 7, 8, 8, 8]], [undefined, [2, 2], [2, 2, 2, 2], [8, 8, 8, 8], [2, 6, 2, 6, 2, 6], [8, 8, 8, 8], [2, 2, 5, 2, 2, 5, 2, 2, 5], [8, 8, 8, 8], [9], [8, 8, 8, 8, 8, 8], [6, 6, 6, 6, 6, 6, 6], [8, 8, 8, 8, 8, 8], [9], [2, 5, 6, 2, 5, 6, 2, 5, 6], [8, 8, 8, 8, 8, 8, 8], [8, 8, 8, 8, 8, 8, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 9]], [undefined, [9], [2, 2, 5], [2, 6, 2, 6, 2, 6], [2, 2, 5], [2, 2, 5, 6], [7, 8, 7, 8, 7, 8], [9, 5], [2, 10, 2, 10], [7, 8, 7, 8, 7, 8], [2, 2, 5, 6, 6, 2, 2, 5, 6, 6, 2, 2, 5, 6, 6], [9, 5], [9, 10, 10], [9, 9, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8]], [undefined, [8, 8, 8], [2, 6, 2, 6], [8, 8, 8], [9, 5], [8, 8, 8, 8], [9, 5], [2, 2, 10, 2, 10], [8, 8, 8, 8, 8], [9, 10], [2, 9, 6], [8, 8, 8, 8, 8, 8, 8, 8], [9, 10, 6], [11], [9, 10, 6], [11, 11]], [undefined, [11, 11], [2, 2, 10], [11, 11, 11], [2, 2, 10, 2, 2, 10], [9, 5], [11, 11, 11], [9, 10, 10], [9, 10, 9, 10], [11, 11, 11, 11], [4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3], [9, 5, 10, 9, 5, 10], [11, 11, 11, 11], [11, 11, 11, 9, 10, 6, 9, 10, 6, 9, 10, 6, 11, 11, 11]], [undefined, [11, 8, 11, 8, 11, 8], [2, 2, 10, 8, 8, 8], [12], [9, 10, 8, 9, 10, 8], [2, 5, 6, 2, 5, 6], [9, 10, 8, 8], [9, 10, 8, 8], [11, 8, 8, 11, 8, 8, 11, 8, 8], [9, 5], [9, 10, 5, 6], [9, 10, 5, 6, 8, 8, 8, 9, 10, 5, 6, 8, 8, 8], [11, 11, 4, 3, 8, 4, 3, 8, 11, 11, 8, 4, 3, 8, 4, 3], [12, 9, 5, 6, 10, 8, 8, 9, 5, 6, 10, 8, 8, 9, 5, 6, 10, 8, 8, 2, 2, 2, 2, 2, 2, 2]], [undefined, [9, 5], [8, 8, 8, 8], [9, 9], [8, 8, 8, 8], [9, 6, 9, 6], [12], [7, 7, 7, 7], [9, 5, 9, 5], [8, 8, 8, 8], [12], [7, 7, 7, 7], [9, 9, 9], [12, 9, 5, 6, 9, 5, 6, 7, 7, 7, 7, 7, 7, 7]], [undefined, [7, 7], [9], [7, 7, 7], [9, 9], [11, 11, 11], [7, 7, 7, 7], [9, 10, 9, 10], [12], [7, 7, 7, 7, 7], [11, 11, 11], [9, 5, 6, 9, 5, 6, 9, 5, 6], [12, 11, 11, 11], [7, 8, 7, 8, 7, 8, 7, 8, 7, 8], [12, 12, 9, 5, 10, 9, 5, 10]], [undefined, [11, 11], [8, 8, 8, 8], [9, 9], [2, 5, 10, 2, 5, 10, 2, 5, 10], [11, 11, 11], [8, 8, 8, 8, 8, 8, 8], [12, 9, 5, 10, 9, 5, 10], [12, 8, 8, 8, 8, 8, 8], [9, 13], [11, 11, 11, 11, 11, 11], [9, 13], [12, 9, 5, 13, 9, 5, 13, 9, 9, 13]], [undefined, [13], [12], [11, 11, 11, 11, 11, 11], [9, 10, 13], [12, 12], [2, 10, 2, 10, 9, 10, 9, 10], [12, 12], [9, 5, 6, 9, 5, 6, 13, 13], [2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 11, 11, 11, 11, 11], [12, 12, 9, 9, 9, 13, 13], [13, 13, 13, 13, 13], [12, 12, 9, 5, 10, 9, 5, 10, 13, 13, 9, 5, 10]], [undefined, [14]]];
mapposition = [undefined, [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1], [undefined, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1], [undefined, 1, 1, 1, 1, 1, 2, 1, 1, 3, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 2, 1, 2, 3, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 5, 2, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 6, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 1, 2, 5, 1, 1, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 2, 2, 1, 6, 5, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 6, 5, 1, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 2, 1, 1, 1, 1, 4, 3, 1, 1, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 4, 3, 3, 1, 1, 1, 1, 5, 2, 1, 1, 1], [undefined, 6, 3, 3, 1, 2, 1, 1, 1, 1, 1, 1, 1], [undefined, 4, 3, 3, 1, 2, 1, 1, 1, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 6, 2, 2, 1, 1, 1, 1, 5, 3, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 5, 3, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 5, 3, 2, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 2, 1, 2, 1, 1, 1, 1, 5, 5, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 4, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1], [undefined, 1, 4, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 3, 1, 2, 1, 1, 1, 1, 1, 5, 1, 1], [undefined, 1, 3, 1, 2, 1, 1, 1, 1, 5, 1, 1, 1], [undefined, 1, 3, 1, 2, 1, 1, 1, 5, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 4, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1], [undefined, 4, 1, 1, 1, 1, 2, 1, 5, 1, 1, 1, 1], [undefined, 4, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 2, 6, 3, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 2, 6, 3, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 4, 1, 1, 1, 1, 1, 2, 1, 1, 1], [undefined, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 5, 2, 1, 1, 1, 1, 1], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 5, 2, 1, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 6, 4, 5, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 2, 5, 1, 3, 1, 1], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 2, 5, 1, 3, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 4, 5, 2, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 6, 2, 5, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 4, 5, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 1, 4, 2, 5, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 4, 2, 5, 1, 1, 1], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 4, 2, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 2, 1, 1, 1, 1, 6, 2, 1, 1, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [undefined, 1, 2, 1, 4, 4, 4, 1, 1, 3, 1, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1], [undefined, 1, 2, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1]], [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 4, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 4, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 1, 6, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [undefined, 6, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]];
finalwave = false;
jumzombie = 0;
pausegame = false;
cpowned = 0;
hpowned = 5;
tilesimage = [];
unitimage = [];
civilianimage = [];
unitpositioned = [];
effectimage = [];
bulletimage = [];
shadowimage = [];
cpimage = [];
skillimage = [];
mcmapprogress.visible = false;
loadtiles();
trace("TILES DONE");
loadui();
trace("UI DONE");
cektutorial();
trace("TUTORIAL DONE");
if (mapfire[mapke] == 1){
soundchannelbgm2 = soundfire.play(0, 999, new SoundTransform(volumebgm));
} else {
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
soundchannelbgm2 = null;
};
};
trace("BGM DONE");
}
function frame13(){
stop();
soundchannelbgm = soundmainmenu.play(0, 999, new SoundTransform(volumebgm));
stage.addEventListener(Event.ENTER_FRAME, endingwait);
}
public function cekbisaattack(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = false;
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if (unitimage[_local3].die == false){
if (unitimage[_local3].tipe == 2){
if (unitimage[_local3].xe == _arg1.xe){
if ((((((unitimage[_local3].x >= (_arg1.x - (_arg1.range * 60)))) && ((unitimage[_local3].x < _arg1.x)))) && ((unitimage[_local3].ye <= _arg1.ye)))){
if (_arg1.reload <= 0){
if (_arg1.statee == "attack"){
if (_arg1.mc1.currentLabel == "hit"){
_local4 = [soundhit1, soundhit2, soundhit3];
_local4[randRange(0, (_local4.length - 1))].play(0, 1, new SoundTransform(volumesfx));
unitimage[_local3].gotoAndPlay(2);
unitimage[_local3].hp = (unitimage[_local3].hp - _arg1.atk);
cekunitreaction(_local3);
_arg1.reload = _arg1.reloadtemp;
};
} else {
_local2 = true;
if ((((((_arg1.charke == 6)) || ((_arg1.charke == 10)))) || ((_arg1.charke == 13)))){
_arg1.mc1.gotoAndPlay("attack");
_arg1.reload = _arg1.reloadtemp;
_arg1.statee = "attack";
} else {
if (_arg1.charke == 7){
soundboing.play(0, 1, new SoundTransform(volumesfx));
_local5 = ((_arg1.x - (unitimage[_local3].x - 25)) / 27);
_arg1.selisih = _local5;
_arg1.mc1.gotoAndPlay("jump");
_arg1.reload = _arg1.reloadtemp;
_arg1.statee = "jump";
} else {
if (_arg1.charke == 4){
soundcanexplode.play(0, 1, new SoundTransform(volumesfx));
_arg1.hp = 0;
_arg1.die = true;
cekachievement(11);
unitimage[_local3].gotoAndPlay(2);
unitimage[_local3].hp = (unitimage[_local3].hp - _arg1.atk);
cekunitreaction(_local3);
} else {
if (_arg1.charke == 15){
_arg1.hp = 0;
_arg1.die = true;
} else {
_arg1.mc1.gotoAndPlay("attack");
_arg1.statee = "attack";
};
};
};
};
};
};
break;
};
};
};
};
};
_local3++;
};
return (_local2);
}
public function survivoroutupgrade(_arg1:MouseEvent):void{
if ((((so.data.fourthtutorial == false)) && ((so.data.fourthtutorialphase == 6)))){
mctutorial.visible = true;
};
mcbaloonupgrade.visible = false;
}
public function createcivilian(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local1 = randRange(2, 3);
if (mapke == 1){
_local1 = 2;
};
_local2 = 1;
while (_local2 <= _local1) {
_local3 = [charcivilian1, charcivilian2, charcivilian3, charcivilian4];
_local4 = randRange(0, (_local3.length - 1));
if ((((mapke == 1)) && ((_local2 == 1)))){
_local4 = 0;
} else {
if ((((mapke == 1)) && ((_local2 == 2)))){
_local4 = 1;
};
};
civilianimage[civilianimage.length] = new (_local3[_local4]);
addChildAt(civilianimage[(civilianimage.length - 1)], getChildIndex(specialtileposition));
civilianimage[(civilianimage.length - 1)].indexke = (civilianimage.length - 1);
_local5 = [];
_local6 = 1;
while (_local6 <= 6) {
if (mapposition[mapke][_local6][12] == 1){
_local5[_local5.length] = [_local6, 12];
};
_local6++;
};
_local3 = randRange(0, (_local5.length - 1));
_local7 = tilesimage[_local5[_local3][0]][_local5[_local3][1]];
civilianimage[(civilianimage.length - 1)].ke = _local4;
civilianimage[(civilianimage.length - 1)].scream = false;
civilianimage[(civilianimage.length - 1)].xe = _local7.xe;
civilianimage[(civilianimage.length - 1)].ye = _local7.ye;
civilianimage[(civilianimage.length - 1)].mouseChildren = false;
civilianimage[(civilianimage.length - 1)].mouseEnabled = false;
civilianimage[(civilianimage.length - 1)].x = (_local7.x + (_local7.width / 2));
civilianimage[(civilianimage.length - 1)].y = ((_local7.y + (_local7.height / 2)) + randRange(-10, 10));
civilianimage[(civilianimage.length - 1)].die = false;
civilianimage[(civilianimage.length - 1)].speed = randRange(3, 5);
civilianimage[(civilianimage.length - 1)].jedaer = (0 + (15 * _local2));
civilianimage[(civilianimage.length - 1)].addEventListener(Event.ENTER_FRAME, civilianwaiting);
createshadow(civilianimage[(civilianimage.length - 1)]);
_local2++;
};
}
public function createdeafblastsparkle(_arg1:Object){
effectimage[effectimage.length] = new (fxdeafblastsparkle);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function zombiewalking(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (_arg1.currentTarget.statee != 3){
if (_arg1.currentTarget.idle > 0){
_arg1.currentTarget.idle--;
} else {
_arg1.currentTarget.statee = 3;
_arg1.currentTarget.gotoAndPlay("walk");
if (_arg1.currentTarget.no == 1){
do {
_local3 = [1, 5, 3, 6, 7];
_arg1.currentTarget.walktarget = _local3[randRange(0, (_local3.length - 1))];
} while (_arg1.currentTarget.walktarget == _arg1.currentTarget.positione);
} else {
do {
_local3 = [2, 4, 8];
_arg1.currentTarget.walktarget = _local3[randRange(0, (_local3.length - 1))];
} while (_arg1.currentTarget.walktarget == _arg1.currentTarget.positione);
};
_local2 = mcanimation.mc1.getChildByName(("mchit" + _arg1.currentTarget.walktarget));
_arg1.currentTarget.speedx = ((_local2.x - _arg1.currentTarget.x) / 50);
_arg1.currentTarget.speedy = ((_local2.y - _arg1.currentTarget.y) / 50);
if (_arg1.currentTarget.x < _local2.x){
if (_arg1.currentTarget.look == "left"){
_arg1.currentTarget.look = "right";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
} else {
if (_arg1.currentTarget.x > _local2.x){
if (_arg1.currentTarget.look == "right"){
_arg1.currentTarget.look = "left";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
};
};
};
} else {
_local2 = mcanimation.mc1.getChildByName(("mchit" + _arg1.currentTarget.walktarget));
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
if (_arg1.currentTarget.mchit.hitTestObject(_local2) == true){
_arg1.currentTarget.gotoAndPlay("idle");
_arg1.currentTarget.walktarget = 0;
_arg1.currentTarget.positione = _arg1.currentTarget.walktarget;
_arg1.currentTarget.statee = randRange(1, 2);
_arg1.currentTarget.idle = randRange(75, 200);
};
};
}
public function mousefollow(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
mcmouse.x = mouseX;
mcmouse.y = mouseY;
if (mcmouse.currentFrame != 3){
_local2 = "";
_local3 = false;
_local4 = 1;
while (_local4 <= 6) {
_local5 = 1;
while (_local5 <= 12) {
if ((((tilesimage[_local4][_local5].currentFrame == 2)) || ((tilesimage[_local4][_local5].currentFrame == 3)))){
if (mcmouse.mchit.hitTestObject(tilesimage[_local4][_local5].mchit) == true){
_local2 = tilesimage[_local4][_local5];
_local3 = true;
mcmouse.x = (tilesimage[_local4][_local5].x + (tilesimage[_local4][_local5].width / 2));
mcmouse.y = ((tilesimage[_local4][_local5].y + (tilesimage[_local4][_local5].height / 2)) + 20);
break;
};
};
_local5++;
};
_local4++;
};
if (_local3 == true){
if (_local2 != mcmouse.temptile){
_local4 = 1;
while (_local4 <= 6) {
_local5 = 1;
while (_local5 <= 12) {
if ((((tilesimage[_local4][_local5].currentFrame == 2)) || ((tilesimage[_local4][_local5].currentFrame == 3)))){
tilesimage[_local4][_local5].gotoAndStop(2);
};
_local5++;
};
_local4++;
};
trace(("char ke : " + mcmouse.charke));
mcmouse.temptile = _local2;
if ((((((((((mcmouse.charke == 1)) || ((mcmouse.charke == 3)))) || ((mcmouse.charke == 4)))) || ((mcmouse.charke == 5)))) || ((mcmouse.charke == 7)))){
_local6 = mcmouse.temptile.xe;
_local7 = mcmouse.temptile.ye;
_local5 = _local7;
while (_local5 <= (_local7 + charrange[mcmouse.charke])) {
if ((((_local5 <= 12)) && (!((tilesimage[_local6][_local5].currentFrame == 1))))){
tilesimage[_local6][_local5].gotoAndStop(3);
} else {
if (_local5 > 12){
break;
};
};
_local5++;
};
} else {
if (mcmouse.charke == 6){
_local8 = charrange[mcmouse.charke];
_local6 = mcmouse.temptile.xe;
_local7 = mcmouse.temptile.ye;
_local9 = (_local6 - _local8);
while (_local9 <= (_local6 + _local8)) {
_local10 = (_local7 - _local8);
while (_local10 <= (_local7 + _local8)) {
if ((((_local9 > 0)) && ((_local9 < 7)))){
if ((((_local10 > 0)) && ((_local10 < 13)))){
if (tilesimage[_local9][_local10].currentFrame != 1){
tilesimage[_local9][_local10].gotoAndStop(3);
};
};
};
_local10++;
};
_local9++;
};
} else {
if (mcmouse.charke == 16){
trace(("yo : " + mcmouse.charke));
_local6 = mcmouse.temptile.xe;
_local5 = 1;
while (_local5 <= 12) {
tilesimage[_local6][_local5].gotoAndStop(3);
_local5++;
};
} else {
if ((((mcmouse.charke == 17)) || ((mcmouse.charke == 2)))){
_local8 = 0;
if (mcmouse.charke == 17){
_local8 = 1;
};
_local6 = mcmouse.temptile.xe;
_local7 = mcmouse.temptile.ye;
_local9 = (_local6 - _local8);
while (_local9 <= (_local6 + _local8)) {
_local10 = (_local7 - _local8);
while (_local10 <= (_local7 + _local8)) {
if ((((_local9 > 0)) && ((_local9 < 7)))){
if ((((_local10 > 0)) && ((_local10 < 13)))){
if (tilesimage[_local9][_local10].currentFrame != 1){
tilesimage[_local9][_local10].gotoAndStop(3);
};
};
};
_local10++;
};
_local9++;
};
};
};
};
};
};
};
} else {
_local11 = false;
_local4 = 0;
while (_local4 < unitimage.length) {
if (unitimage[_local4] != null){
if (unitimage[_local4].die == false){
if (unitimage[_local4].tipe == 2){
if (unitimage[_local4].charke < 8){
if ((((unitimage[_local4].hitTestObject(mcmouse.mchit) == true)) && ((_local11 == false)))){
_local11 = true;
unitimage[_local4].filters = [glowpurple];
} else {
unitimage[_local4].filters = null;
};
};
};
};
};
_local4++;
};
};
}
public function mapprogressmove2(_arg1:Event):void{
if (pausegame == false){
if (mcmapprogress.mc1.width != mcmapprogress.mc1.targete){
mcmapprogress.mc1.speed--;
mcmapprogress.mc1.width = (mcmapprogress.mc1.width + mcmapprogress.mc1.penambahan);
mcmapprogress.mchead.x = (82 - mcmapprogress.mc1.width);
if (mcmapprogress.mc1.speed <= 0){
mcmapprogress.mc1.width = mcmapprogress.mc1.targete;
};
};
};
}
public function createsharpnelexplosion(_arg1:Object):void{
var _local2:*;
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if ((((unitimage[_local2].die == false)) && ((unitimage[_local2].digphase == 3)))){
if (unitimage[_local2].tipe == 3){
if ((((unitimage[_local2].xe == _arg1.xe)) && ((unitimage[_local2].ye == _arg1.ye)))){
cekenemyreaction(_local2, _arg1);
};
};
};
};
_local2++;
};
soundsharpnelbomb.play(0, 1, new SoundTransform(volumesfx));
effectimage[effectimage.length] = new (fxsharpnelexplosion);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = (tilesimage[_arg1.xe][_arg1.ye].x + (tilesimage[_arg1.xe][_arg1.ye].width / 2));
effectimage[(effectimage.length - 1)].y = (tilesimage[_arg1.xe][_arg1.ye].y + (tilesimage[_arg1.xe][_arg1.ye].height / 2));
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function createbulletspark(_arg1:Object, _arg2:int){
var _local3:*;
_local3 = 0;
while (_local3 < 2) {
effectimage[effectimage.length] = new (fxsplater2);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = (_arg1.x + randRange(0, -10));
effectimage[(effectimage.length - 1)].y = _arg1.y;
if (_arg2 == 2){
effectimage[(effectimage.length - 1)].scaleX = (effectimage[(effectimage.length - 1)].scaleX * -1);
};
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
_local3++;
};
}
public function ingamepausequit(_arg1:MouseEvent){
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcpause.btnquit.visible = false;
mcpause.btnrestart.visible = false;
mcpause.mcquitlevel.gotoAndStop(1);
mcpause.mcquitlevel.visible = true;
mcpause.mcquitlevel.btnyes.removeEventListener(MouseEvent.CLICK, ingamepausequityes);
mcpause.mcquitlevel.btnno.removeEventListener(MouseEvent.CLICK, ingamepausequitno);
mcpause.mcquitlevel.btnyes.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcpause.mcquitlevel.btnno.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcpause.mcquitlevel.btnyes.addEventListener(MouseEvent.CLICK, ingamepausequityes);
mcpause.mcquitlevel.btnno.addEventListener(MouseEvent.CLICK, ingamepausequitno);
}
public function choosesurvivorokay(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
mcskillbaloon2.visible = false;
_local2 = 1;
while (_local2 <= 7) {
_local3 = mcchoosesurvivor.mc1.getChildByName(("mclist" + _local2));
_local3.removeEventListener(MouseEvent.MOUSE_DOWN, choosesurvivordown);
_local3.removeEventListener(MouseEvent.MOUSE_OVER, overcharpanel);
_local3.removeEventListener(MouseEvent.MOUSE_OUT, choosesurvivorout);
_local2++;
};
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcchoosesurvivor.mc1.getChildByName(("mcpanel" + _local2));
_local3.removeEventListener(MouseEvent.MOUSE_DOWN, choosesurvivordown);
_local3.removeEventListener(MouseEvent.MOUSE_OVER, overcharpanel);
_local3.removeEventListener(MouseEvent.MOUSE_OUT, choosesurvivorout);
_local2++;
};
stage.removeEventListener(Event.ENTER_FRAME, choosesurvivorwaiting);
stage.removeEventListener(MouseEvent.MOUSE_UP, choosesurvivorwaitingup);
mcchoosesurvivor.gotoAndPlay("done");
pausegame = true;
mcchooseskill.gotoAndPlay(2);
createchooseskill();
}
public function createsparkle(_arg1:Object){
effectimage[effectimage.length] = new (fxsparkle);
if (currentLabel != "ingame"){
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
} else {
if (mcstagedone.currentFrame == 1){
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
} else {
addChildAt(effectimage[(effectimage.length - 1)], (getChildIndex(mcstagedone) + 1));
};
};
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = (_arg1.x + randRange(-10, 10));
effectimage[(effectimage.length - 1)].y = (_arg1.y + randRange(-20, 20));
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function chooseskillokay(_arg1:MouseEvent):void{
pausegame = false;
mcchooseskill.gotoAndStop(1);
mcskillmouse.visible = false;
mcskillbaloon.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, chooseskillfollowwaiting);
stage.removeEventListener(MouseEvent.MOUSE_UP, chooseskillfollowup);
loadui();
loadskillui();
if ((((so.data.lastconversation == false)) && ((mapke == 29)))){
pausegame = true;
waittutor(25);
} else {
if ((((so.data.lastconversation == true)) && ((mapke == 29)))){
pausegame = false;
waveready();
} else {
waveready();
};
};
}
public function generatecp(_arg1:Object, _arg2:Boolean){
cpimage[cpimage.length] = new (cpgenerate);
addChildAt(cpimage[(cpimage.length - 1)], getChildIndex(fxposition));
cpimage[(cpimage.length - 1)].indexke = (cpimage.length - 1);
cpimage[(cpimage.length - 1)].x = (_arg1.x + randRange(-15, 40));
cpimage[(cpimage.length - 1)].y = (_arg1.y + randRange(-20, 20));
if (cpimage[(cpimage.length - 1)].x > 600){
cpimage[(cpimage.length - 1)].x = 600;
} else {
if (cpimage[(cpimage.length - 1)].x < 23){
cpimage[(cpimage.length - 1)].x = 23;
};
};
cpimage[(cpimage.length - 1)].waitfor = 250;
cpimage[(cpimage.length - 1)].buttonMode = true;
if (_arg2 == true){
overthiscp(cpimage[(cpimage.length - 1)]);
cpimage[(cpimage.length - 1)].addEventListener(MouseEvent.MOUSE_OVER, overcp);
} else {
cpimage[(cpimage.length - 1)].addEventListener(MouseEvent.MOUSE_OVER, overcp);
cpimage[(cpimage.length - 1)].addEventListener(Event.ENTER_FRAME, cpwaiting);
};
}
public function deafblastwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (pausegame == false){
if (_arg1.currentTarget.ye > 1){
if (_arg1.currentTarget.hitTestObject(tilesimage[_arg1.currentTarget.xe][(_arg1.currentTarget.ye - 1)]) == true){
_arg1.currentTarget.ye--;
};
};
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.speed);
_arg1.currentTarget.sparktime--;
if (_arg1.currentTarget.sparktime < 0){
_arg1.currentTarget.sparktime = sparktime;
createdeafblastsparkle(_arg1.currentTarget);
};
_local2 = false;
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if (unitimage[_local3].die == false){
if (unitimage[_local3].tipe == 2){
if ((((unitimage[_local3].xe == _arg1.currentTarget.xe)) && ((unitimage[_local3].ye == _arg1.currentTarget.ye)))){
if (_arg1.currentTarget.hitTestObject(unitimage[_local3]) == true){
_local4 = true;
if (_arg1.currentTarget.hitlist.length == 0){
_local4 = true;
} else {
_local5 = 0;
while (_local5 < _arg1.currentTarget.hitlist.length) {
if (_arg1.currentTarget.hitlist[_local5] == _local3){
_local4 = false;
break;
};
_local5++;
};
};
if (_local4 == true){
_arg1.currentTarget.hitlist[_arg1.currentTarget.hitlist.length] = _local3;
unitimage[_local3].deafduration = deafduration;
unitimage[_local3].gotoAndPlay(2);
unitimage[_local3].hp = (unitimage[_local3].hp - _arg1.currentTarget.atk);
cekunitreaction(_local3);
};
};
};
};
};
};
_local3++;
};
if (_arg1.currentTarget.x <= -40){
_local6 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, deafblastwaiting);
bulletimage[_local6].removeEventListener(Event.ENTER_FRAME, deafblastwaiting);
removeChild(bulletimage[_local6]);
bulletimage[_local6] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function cekselisihcp(){
var _local1:*;
var _local2:*;
if (finalwave == false){
_local1 = nextwavewait;
trace(("wait e : " + _local1));
do {
if (_local1 >= selisihcpcounter){
_local1 = (_local1 - selisihcpcounter);
selisihcpcounter = flaggenerate;
soundcp.play(0, 1, new SoundTransform(volumesfx));
_local2 = {x:531, y:61};
generatecp(_local2, true);
_local2 = {x:555, y:17.5};
createsparkle(_local2);
} else {
selisihcpcounter = (selisihcpcounter - _local1);
_local1 = 0;
};
} while (_local1 > 0);
trace(("akhire : " + selisihcpcounter));
};
}
public function zombieinfonext(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
zombiecurrpage++;
zombieindex = (zombieindex + 4);
loadzombieinfo();
}
public function waitannounce(_arg1:Event):void{
if (pausegame == false){
mcannounce.play();
if (mcannounce.currentLabel == "sound"){
soundstartwave.play(0, 1, new SoundTransform(volumesfx));
};
if (mcannounce.currentFrame == mcannounce.totalFrames){
readygame = true;
createcivilian();
if (((!((mapke == 1))) || ((((mapke == 1)) && ((so.data.firsttutorialaddon == true)))))){
loadskillfunction();
};
soundsirene.play(0, 1, new SoundTransform(volumesfx));
soundchannelbgm = soundingame.play(0, 999, new SoundTransform(volumebgm));
stage.removeEventListener(Event.ENTER_FRAME, waitannounce);
if (mapke != 29){
summonzombie();
};
};
} else {
mcannounce.stop();
};
}
public function waitnextwave(){
wavegametime = false;
onnextwavewaiting = true;
trace(("OK WAIT NEXT WAVE " + finalwave));
nextwavewait = 50;
stage.addEventListener(Event.ENTER_FRAME, nextwavewaiting);
}
public function throwingfruitwaiting(_arg1:Event):void{
var _local2:*;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:*;
if (pausegame == false){
if (_arg1.currentTarget.phase == 2){
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local2 = _arg1.currentTarget.indexke;
bulletimage[_local2].removeEventListener(Event.ENTER_FRAME, throwingfruitwaiting);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, throwingfruitwaiting);
removeChild(bulletimage[_local2]);
bulletimage[_local2] = null;
};
} else {
if (_arg1.currentTarget.phase == 1){
_local3 = _arg1.currentTarget.ux;
_local4 = (_arg1.currentTarget.uy + _arg1.currentTarget.g);
_local5 = (_arg1.currentTarget.uy + (_arg1.currentTarget.g / 2));
_arg1.currentTarget.x = (_arg1.currentTarget.x + _local3);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _local5);
_arg1.currentTarget.uy = _local4;
_local6 = unitimage[_arg1.currentTarget.indextargetku];
if (_local6 != null){
if (_arg1.currentTarget.mchit.hitTestObject(_local6) == true){
trace("HIT");
_local6.gotoAndPlay(2);
_local6.hp = (_local6.hp - _arg1.currentTarget.atk);
cekunitreaction(_arg1.currentTarget.indextargetku);
soundfruitsquish.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.gotoAndPlay(2);
_arg1.currentTarget.phase = 2;
};
};
if (_arg1.currentTarget.y > (_arg1.currentTarget.batasy + 60)){
trace("remove");
_local2 = _arg1.currentTarget.indexke;
bulletimage[_local2].removeEventListener(Event.ENTER_FRAME, throwingfruitwaiting);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, throwingfruitwaiting);
removeChild(bulletimage[_local2]);
bulletimage[_local2] = null;
};
};
};
};
}
public function createsplatterice(_arg1:Object){
effectimage[effectimage.length] = new (fxicecubesummary);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function loadmissingperson(){
var _local1:*;
var _local2:*;
mcmissingperson.gotoAndStop(2);
_local1 = 1;
while (_local1 <= 8) {
_local2 = mcmissingperson.getChildByName(("mcposter" + _local1));
_local2.mc1.gotoAndStop(_local1);
_local2.mccp.visible = true;
if (so.data.newunitke == _local1){
soundachievement.play(0, 1, new SoundTransform(volumesfx));
_local2.mcsparkle.gotoAndPlay(2);
_local2.gotoAndStop(2);
_local2.mccp.txtcp.text = ("+" + charbasecp[_local1]);
} else {
if (so.data.charunlocked[_local1] == 1){
_local2.gotoAndStop(2);
_local2.mccp.txtcp.text = ("+" + charbasecp[_local1]);
} else {
_local2.gotoAndStop(1);
_local2.mccp.visible = false;
};
};
_local1++;
};
so.data.newunitke = -1;
mcmissingperson.btnag.addEventListener(MouseEvent.CLICK, clickAG);
mcmissingperson.btnag.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcmissingperson.btnback.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcmissingperson.btnback.removeEventListener(MouseEvent.CLICK, missingpersonback);
mcmissingperson.btnback.addEventListener(MouseEvent.CLICK, missingpersonback);
}
public function updateui(){
mcui.txtcp.text = cpowned;
mcui.txthp.text = hpowned;
}
public function ceksoundbutton(){
if (volumesfx == 0){
btnsound.visible = false;
btnsound2.visible = true;
} else {
btnsound.visible = true;
btnsound2.visible = false;
};
if (volumebgm == 0){
btnsoundmus.visible = false;
btnsoundmus2.visible = true;
} else {
btnsoundmus.visible = true;
btnsoundmus2.visible = false;
};
}
public function loaduimap(){
if (so.data.newunit == true){
mcuimap.mcnewunit.visible = true;
} else {
mcuimap.mcnewunit.visible = false;
};
if (so.data.newskill == true){
mcuimap.mcnewskill.visible = true;
} else {
mcuimap.mcnewskill.visible = false;
};
mcuimap.mczombieout.visible = false;
mcuimap.mczombieover.gotoAndStop(1);
mcuimap.mczombieout.gotoAndStop(1);
mcuimap.mcsurvivorover.gotoAndStop(1);
mcuimap.mcsurvivorout.gotoAndStop(1);
mcuimap.mcthropyover.gotoAndStop(1);
mcuimap.mcthropyout.gotoAndStop(1);
mcuimap.btnperson.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuimap.btnperson.addEventListener(MouseEvent.CLICK, mapperson);
mcuimap.btnzombie.addEventListener(MouseEvent.MOUSE_OUT, mapzombieout);
mcuimap.btnzombie.addEventListener(MouseEvent.MOUSE_OVER, mapzombieover);
mcuimap.btnzombie.addEventListener(MouseEvent.CLICK, mapzombie);
mcuimap.btnsurvivor.addEventListener(MouseEvent.MOUSE_OUT, mapsurvivorout);
mcuimap.btnsurvivor.addEventListener(MouseEvent.MOUSE_OVER, mapsurvivorover);
mcuimap.btnsurvivor.addEventListener(MouseEvent.CLICK, mapsurvivor);
mcuimap.btnthropy.addEventListener(MouseEvent.MOUSE_OUT, mapthropyout);
mcuimap.btnthropy.addEventListener(MouseEvent.MOUSE_OVER, mapthropyover);
mcuimap.btnthropy.addEventListener(MouseEvent.CLICK, mapthropy);
mcuimap.btnitem.addEventListener(MouseEvent.MOUSE_OVER, mapitemover);
mcuimap.btnitem.addEventListener(MouseEvent.CLICK, mapitem);
}
public function ironwoodwaiting(_arg1:Event):void{
if (pausegame == false){
if (_arg1.currentTarget.mc1.currentLabel == "idle"){
_arg1.currentTarget.forhowlong--;
if (_arg1.currentTarget.forhowlong <= 0){
_arg1.currentTarget.mc1.gotoAndPlay("done");
};
};
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
soundexplosion.play(0, 1, new SoundTransform(volumesfx));
};
if (_arg1.currentTarget.mc1.currentLabel == "donego"){
unitinimati(_arg1.currentTarget);
};
};
}
public function shadowwaiting(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
if (_arg1.currentTarget.ownere.die == false){
_arg1.currentTarget.x = _arg1.currentTarget.ownere.x;
_arg1.currentTarget.y = _arg1.currentTarget.ownere.y;
} else {
_local2 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, shadowwaiting);
removeChild(shadowimage[_local2]);
shadowimage[_local2] = null;
};
};
}
public function riotcasewaiting(_arg1:Event){
var _local2:*;
var _local3:*;
if (pausegame == false){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
soundexplosion.play(0, 1, new SoundTransform(volumesfx));
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if ((((unitimage[_local2].die == false)) && (!((unitimage[_local2] == _arg1.currentTarget))))){
if ((((unitimage[_local2].tipe == 2)) || ((unitimage[_local2].tipe == 3)))){
if ((((unitimage[_local2].xe == _arg1.currentTarget.xe)) && ((unitimage[_local2].ye == _arg1.currentTarget.ye)))){
if (unitimage[_local2].tipe == 2){
unitimage[_local2].gotoAndPlay(2);
unitimage[_local2].hp = (unitimage[_local2].hp - _arg1.currentTarget.atk);
cekunitreaction(_local2);
} else {
_arg1.currentTarget.damage = 9999;
cekenemyreaction(_local2, _arg1.currentTarget);
};
};
};
};
};
_local2++;
};
};
if (_arg1.currentTarget.mc1.currentFrame == _arg1.currentTarget.mc1.totalFrames){
_arg1.currentTarget.mc1.stop();
_arg1.currentTarget.cd--;
_local3 = int((_arg1.currentTarget.cd / 25));
if (_local3 < 10){
_local3 = ("0" + _local3);
};
_arg1.currentTarget.mc1.mctxt.txt1.text = _local3;
if (_arg1.currentTarget.cd <= 0){
removezombieini(_arg1.currentTarget);
};
} else {
_arg1.currentTarget.mc1.play();
_arg1.currentTarget.mc1.mctxt.txt1.text = "--";
};
} else {
_arg1.currentTarget.mc1.stop();
};
}
public function bullet5movement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
if (pausegame == false){
_arg1.currentTarget.play();
if ((((_arg1.currentTarget.currentLabel == "hit")) && ((_arg1.currentTarget.donehit == false)))){
_arg1.currentTarget.donehit = true;
_local2 = _arg1.currentTarget.xe;
_local3 = _arg1.currentTarget.ye;
_local4 = [];
_local5 = [];
_local6 = _arg1.currentTarget.range;
_local7 = (_local2 - _local6);
while (_local7 <= (_local2 + _local6)) {
_local10 = (_local3 - _local6);
while (_local10 <= (_local3 + _local6)) {
if ((((_local7 > 0)) && ((_local7 < 7)))){
if ((((_local10 > 0)) && ((_local10 < 13)))){
_local4[_local4.length] = _local7;
_local5[_local5.length] = _local10;
};
};
_local10++;
};
_local7++;
};
_local8 = false;
_local9 = 0;
while (_local9 < unitimage.length) {
if (unitimage[_local9] != null){
if ((((unitimage[_local9].die == false)) && ((unitimage[_local9].digphase == 3)))){
if (unitimage[_local9].tipe == 3){
_local11 = 0;
while (_local11 < _local4.length) {
if ((((unitimage[_local9].xe == _local4[_local11])) && ((((unitimage[_local9].ye == _local5[_local11])) || ((((unitimage[_local9].ye <= _local5[_local11])) && (((unitimage[_local9].ye + unitimage[_local9].sizee) >= _local5[_local11])))))))){
if (unitimage[_local9].charke == 13){
unitimage[_local9].overchargedtime = (overchargedtime * 25);
};
_local12 = tilesimage[_local4[_local11]][_local5[_local11]];
createlightingsparkle(_local12);
_local8 = true;
cekenemyreaction(_local9, _arg1.currentTarget);
};
_local11++;
};
};
};
};
_local9++;
};
if (_local8 == true){
soundpowerup.play(0, 1, new SoundTransform(volumesfx));
};
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local13 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet5movement);
removeChild(bulletimage[_local13]);
bulletimage[_local13] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function createchooseskillfollow(_arg1:int){
mcskillmouse.visible = true;
mcskillmouse.mc1.gotoAndStop(_arg1);
mcskillmouse.mc1.mcpetengan.visible = false;
stage.addEventListener(Event.ENTER_FRAME, chooseskillfollowwaiting);
stage.addEventListener(MouseEvent.MOUSE_UP, chooseskillfollowup);
}
public function chooseskillfollowwaiting(_arg1:Event):void{
mcskillmouse.x = mouseX;
mcskillmouse.y = mouseY;
}
public function kurangihp(_arg1:Number){
hpowned = (hpowned - _arg1);
if (hpowned < 0){
hpowned = 0;
};
mcui.txthp.text = hpowned;
soundheartbeat.play(0, 1, new SoundTransform(volumesfx));
effectimage[effectimage.length] = new (cpreducer);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(2);
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = 50;
effectimage[(effectimage.length - 1)].y = 397;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function overthiscp(_arg1:Object){
_arg1.removeEventListener(Event.ENTER_FRAME, cpwaiting);
_arg1.removeEventListener(MouseEvent.MOUSE_OVER, overcp);
_arg1.movex = ((39 - _arg1.x) / 15);
_arg1.movey = ((448 - _arg1.y) / 15);
_arg1.addEventListener(Event.ENTER_FRAME, cpmovetobase);
}
public function civilianwaiting(_arg1:Event){
var _local2:*;
if (pausegame == false){
_arg1.currentTarget.jedaer--;
if (_arg1.currentTarget.jedaer <= 0){
if ((((((((_arg1.currentTarget.ke == 0)) || ((_arg1.currentTarget.ke == 2)))) || ((_arg1.currentTarget.ke == 3)))) && ((_arg1.currentTarget.scream == false)))){
_arg1.currentTarget.scream = true;
soundscream.play(0, 1, new SoundTransform(volumesfx));
};
_arg1.currentTarget.play();
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.speed);
if (_arg1.currentTarget.x <= -50){
_local2 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, civilianwaiting);
removeChild(civilianimage[_local2]);
civilianimage[_local2] = null;
};
} else {
_arg1.currentTarget.stop();
};
} else {
_arg1.currentTarget.stop();
};
}
public function loadanimation(){
mcanimation.mc1.mczombie1.walktarget = 0;
mcanimation.mc1.mczombie1.positione = 5;
mcanimation.mc1.mczombie1.statee = randRange(1, 2);
mcanimation.mc1.mczombie1.idle = randRange(75, 200);
mcanimation.mc1.mczombie1.no = 1;
mcanimation.mc1.mczombie1.look = "left";
mcanimation.mc1.mczombie1.gotoAndPlay("idle");
mcanimation.mc1.mczombie1.addEventListener(Event.ENTER_FRAME, zombiewalking);
mcanimation.mc1.mczombie2.walktarget = 0;
mcanimation.mc1.mczombie1.positione = 4;
mcanimation.mc1.mczombie2.statee = randRange(1, 2);
mcanimation.mc1.mczombie2.idle = randRange(75, 200);
mcanimation.mc1.mczombie2.no = 2;
mcanimation.mc1.mczombie2.look = "right";
mcanimation.mc1.mczombie2.gotoAndPlay("idle");
mcanimation.mc1.mczombie2.addEventListener(Event.ENTER_FRAME, zombiewalking);
}
public function zombiewaiting(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pausegame == false){
if (_arg1.currentTarget.die == false){
if (_arg1.currentTarget.popbool == true){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedpopx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedpopy);
if (_arg1.currentTarget.mc1.currentLabel == "donejump"){
_arg1.currentTarget.x = ((_arg1.currentTarget.poptotiles.x + (_arg1.currentTarget.poptotiles.width / 2)) + randRange(-20, 20));
_arg1.currentTarget.y = (_arg1.currentTarget.poptotiles.y + (_arg1.currentTarget.poptotiles.height / 2));
_arg1.currentTarget.xe = _arg1.currentTarget.poptotiles.xe;
_arg1.currentTarget.ye = _arg1.currentTarget.poptotiles.ye;
_arg1.currentTarget.digphase = 3;
_arg1.currentTarget.gotoAndPlay("walk");
_arg1.currentTarget.popbool = false;
};
} else {
if ((((_arg1.currentTarget.charke == 11)) || ((_arg1.currentTarget.charke == 12)))){
_arg1.currentTarget.soundtime--;
if (_arg1.currentTarget.soundtime <= 0){
_arg1.currentTarget.soundtime = _arg1.currentTarget.soundtimetemp;
_local2 = randRange(0, 100);
if (_local2 < 40){
if (_arg1.currentTarget.charke == 12){
soundlocomotive.play(0, 5, new SoundTransform(volumesfx));
} else {
soundcart.play(0, 1, new SoundTransform(volumesfx));
};
};
};
};
_arg1.currentTarget.jedaer--;
if (_arg1.currentTarget.jedaer <= 0){
if (_arg1.currentTarget.overchargedtime >= 0){
_arg1.currentTarget.overchargedtime--;
if (_arg1.currentTarget.mcelectrocuted.currentFrame == 1){
_arg1.currentTarget.mcelectrocuted.gotoAndPlay(2);
_arg1.currentTarget.mc1.stop();
};
if (_arg1.currentTarget.overchargedtime <= 0){
_arg1.currentTarget.mcelectrocuted.gotoAndStop(1);
_arg1.currentTarget.gotoAndStop(1);
_arg1.currentTarget.overchargedtime = -1;
};
};
if (_arg1.currentTarget.stuntime >= 0){
_arg1.currentTarget.stuntime--;
_arg1.currentTarget.mcfrozen.gotoAndStop(2);
_arg1.currentTarget.gotoAndStop("freeze");
_arg1.currentTarget.mc1.stop();
if (_arg1.currentTarget.stuntime <= 0){
_arg1.currentTarget.mcfrozen.gotoAndStop(1);
_arg1.currentTarget.gotoAndStop(1);
_arg1.currentTarget.stuntime = -1;
};
};
if ((((_arg1.currentTarget.stuntime <= -1)) && ((_arg1.currentTarget.overchargedtime <= -1)))){
_arg1.currentTarget.mcfrozen.gotoAndStop(1);
if ((((_arg1.currentTarget.charke == 8)) && ((_arg1.currentTarget.digphase == 1)))){
_arg1.currentTarget.mc1.play();
if (_arg1.currentTarget.mc1.currentLabel != "dig"){
_arg1.currentTarget.mc1.gotoAndPlay("dig");
};
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.speed);
if (_arg1.currentTarget.mc1.mcbody.hitTestObject(tilesimage[_arg1.currentTarget.xe][(_arg1.currentTarget.ye - 1)]) == true){
_arg1.currentTarget.ye--;
};
if (_arg1.currentTarget.ye == 3){
_arg1.currentTarget.digphase = 2;
_arg1.currentTarget.mc1.gotoAndPlay("pop");
};
} else {
if ((((_arg1.currentTarget.charke == 8)) && ((_arg1.currentTarget.digphase == 2)))){
_arg1.currentTarget.mc1.play();
if (_arg1.currentTarget.mc1.currentLabel == "walk"){
_arg1.currentTarget.speedtemp = 0.4;
_arg1.currentTarget.speed = 0.4;
_arg1.currentTarget.statee = "walk";
_arg1.currentTarget.digphase = 3;
};
} else {
if (((!((_arg1.currentTarget.charke == 8))) || ((((_arg1.currentTarget.charke == 8)) && ((_arg1.currentTarget.digphase == 3)))))){
if (_arg1.currentTarget.speedreducer > 0){
if (_arg1.currentTarget.currentLabel != "freeze"){
_arg1.currentTarget.gotoAndStop("freeze");
};
_arg1.currentTarget.speedreducerfor--;
if (_arg1.currentTarget.speedreducerfor <= 0){
_arg1.currentTarget.gotoAndStop(1);
_arg1.currentTarget.speedreducer = 0;
};
};
if (_arg1.currentTarget.statee == "jump"){
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.selisih);
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
_local3 = cekbisaattack(_arg1.currentTarget);
if (_local3 == false){
_arg1.currentTarget.statee = "walk";
};
};
};
if (_arg1.currentTarget.statee == "attack"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
cekbisaattack(_arg1.currentTarget);
};
if (_arg1.currentTarget.mc1.currentLabel != "idle"){
_arg1.currentTarget.mc1.play();
};
if (_arg1.currentTarget.mc1.currentLabel == "throw"){
createthrowingobject(_arg1.currentTarget);
};
if (_arg1.currentTarget.mc1.currentLabel == "idle"){
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
_arg1.currentTarget.statee = "walk";
if (_arg1.currentTarget.ye < 12){
_local3 = cekbisaattack(_arg1.currentTarget);
if (_local3 == false){
_arg1.currentTarget.statee = "walk";
};
} else {
_arg1.currentTarget.statee = "walk";
};
};
};
} else {
if (_arg1.currentTarget.statee == "special"){
_arg1.currentTarget.mc1.play();
if (_arg1.currentTarget.mc1.currentLabel == "walk"){
_arg1.currentTarget.statee = "walk";
};
if (_arg1.currentTarget.mc1.currentLabel == "pop"){
_local4 = [soundwater1, soundwater2];
_local4[randRange(0, (_local4.length - 1))].play(0, 1, new SoundTransform(volumesfx));
createspcthis(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.statee == "walk"){
_arg1.currentTarget.speed = _arg1.currentTarget.speedtemp;
if (_arg1.currentTarget.mc1.currentLabel == "wait"){
_arg1.currentTarget.speed = 0;
} else {
if (_arg1.currentTarget.mc1.currentLabel != "walk"){
_arg1.currentTarget.mc1.gotoAndPlay("walk");
};
};
_arg1.currentTarget.mc1.play();
_local5 = (_arg1.currentTarget.speed - _arg1.currentTarget.speedreducer);
if (_local5 < 0){
_local5 = 0;
};
_arg1.currentTarget.x = (_arg1.currentTarget.x - _local5);
if (_arg1.currentTarget.charke == 4){
_arg1.currentTarget.speed = (_arg1.currentTarget.speed - 0.05);
if (_arg1.currentTarget.speed <= 0){
_arg1.currentTarget.speed = 0;
};
};
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.ye < 12){
_local3 = cekbisaattack(_arg1.currentTarget);
};
if (((!((_arg1.currentTarget.statee == "attack"))) && (!((_arg1.currentTarget.statee == "jump"))))){
if ((((_local3 == true)) && ((_arg1.currentTarget.reload > 0)))){
_arg1.currentTarget.statee = "attack";
_arg1.currentTarget.mc1.gotoAndStop("idle");
} else {
if (_local3 == false){
if (_arg1.currentTarget.charke == 5){
_arg1.currentTarget.reloadspc--;
if (_arg1.currentTarget.reloadspc <= 0){
_local3 = cekbisaspc(_arg1.currentTarget);
if (_local3 == true){
_arg1.currentTarget.statee = "special";
};
};
};
};
};
};
};
};
};
};
};
};
};
} else {
_arg1.currentTarget.mc1.stop();
};
if (_arg1.currentTarget.ye > 1){
if (_arg1.currentTarget.mc1.mcbody.hitTestObject(tilesimage[_arg1.currentTarget.xe][(_arg1.currentTarget.ye - 1)]) == true){
_arg1.currentTarget.ye--;
};
};
if (_arg1.currentTarget.ye < 12){
if (_arg1.currentTarget.mc1.mcbody.hitTestObject(tilesimage[_arg1.currentTarget.xe][(_arg1.currentTarget.ye + 1)]) == true){
_arg1.currentTarget.ye++;
};
};
if (_arg1.currentTarget.x < (0 - _arg1.currentTarget.width)){
if (((!((_arg1.currentTarget.charke == 4))) && (!((_arg1.currentTarget.charke == 15))))){
kurangihp(1);
} else {
if (_arg1.currentTarget.charke == 4){
cekachievement(10);
};
};
removezombieini(_arg1.currentTarget);
if (hpowned <= 0){
bwatgameover();
} else {
cekzombiewave();
};
};
};
} else {
createzbodypart(_arg1.currentTarget);
removezombieini(_arg1.currentTarget);
if ((((so.data.firsttutorial == false)) && ((so.data.firsttutorialphase == 6)))){
so.data.firsttutorialphase = 7;
waittutor(20);
};
cekachievement(0);
cekzombiewave();
};
} else {
_arg1.currentTarget.mc1.stop();
};
}
public function createshadowbar(_arg1:int){
mcmapprogress.mc2.width = ((int((int(waveke) + int(_arg1))) / (mapwave[mapke].length - 1)) * 158);
mcmapprogress.mchead2.x = (82 - mcmapprogress.mc2.width);
}
public function bwatingamepause(){
if (mctutorial.visible == false){
if (mcpause.currentFrame == 1){
if (soundchannelbgm != null){
if (volumebgm != 0){
volumebgm = 0.3;
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
};
};
pausegame = true;
mcpause.gotoAndStop(2);
mcpause.mcquitlevel.visible = false;
mcpause.btnquit.visible = true;
mcpause.btnquit.removeEventListener(MouseEvent.CLICK, ingamepausequit);
mcpause.btnquit.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcpause.btnquit.addEventListener(MouseEvent.CLICK, ingamepausequit);
mcpause.btnrestart.visible = true;
mcpause.btnrestart.removeEventListener(MouseEvent.CLICK, ingamepauserestart);
mcpause.btnrestart.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcpause.btnrestart.addEventListener(MouseEvent.CLICK, ingamepauserestart);
} else {
if (soundchannelbgm != null){
if (volumebgm != 0){
volumebgm = 1;
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
};
};
pausegame = false;
mcpause.gotoAndStop(1);
};
};
}
public function mapoverviewcancel(_arg1:MouseEvent):void{
soundno.play(0, 1, new SoundTransform(volumesfx));
if ((((so.data.secondtutorial == false)) && ((so.data.secondtutorialphase == 3)))){
so.data.secondtutorial = true;
};
mcareaoverview.gotoAndStop(1);
}
public function mapzombieout(_arg1:MouseEvent):void{
mcuimap.mczombieover.visible = false;
mcuimap.mczombieout.visible = true;
mcuimap.mczombieout.gotoAndPlay((12 - mcuimap.mczombieover.currentFrame));
}
public function choosesurvivorwaiting(_arg1:Event):void{
mcmouse.x = mouseX;
mcmouse.y = mouseY;
}
public function createequipdrop(_arg1:Object, _arg2:int){
var _local3:*;
_local3 = [undefined, charequiphelm, charequipshade];
effectimage[effectimage.length] = new (_local3[_arg2]);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function createroboriot(){
mcmapprogress.gotoAndStop(2);
jumzombie++;
createzombie(14, 1, false, 0, null, false);
}
public function waitstagedone(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (mcstagedone.currentFrame == mcstagedone.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, waitstagedone);
_local2 = mapprize[mapke];
if (stagewin == false){
if (waveke >= (mapwave[mapke].length - 1)){
waveke = (mapwave[mapke].length - 2);
};
trace(((("wave ke : " + waveke) + " ") + int((mapwave[mapke].length - 1))));
_local4 = (waveke / (mapwave[mapke].length - 1));
trace(("PERSENTASE : " + _local4));
_local2 = int((_local2 * _local4));
if (_local2 < 15){
_local2 = 15;
};
};
trace(("CREATE COIN " + _local2));
so.data.goldowned = (so.data.goldowned + _local2);
mcstagedone.mcgold.visible = false;
mcstagedone.mcgold.mc1.txtcost.text = ("+" + _local2);
mcstagedone.mcgold.txtcost2.text = ("+" + _local2);
_local3 = 0;
while (_local3 < int((_local2 / 15))) {
trace("CREATE COIN");
effectimage[effectimage.length] = new (coinprize);
addChildAt(effectimage[(effectimage.length - 1)], ((getChildIndex(mcstagedone) + (_local3 * 1)) + 1));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].coinke = _local3;
effectimage[(effectimage.length - 1)].x = 311;
effectimage[(effectimage.length - 1)].y = 266;
effectimage[(effectimage.length - 1)].donejedaer = false;
effectimage[(effectimage.length - 1)].jedaer = (_local3 * 8);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, waitcoinplacement);
_local3++;
};
};
}
public function createcharmouse(_arg1:int){
mcmouse.mouseEnabled = false;
mcmouse.mouseChildren = false;
if (_arg1 != 15){
mcmouse.charke = _arg1;
mcmouse.temptile = "";
mcmouse.gotoAndStop(2);
mcmouse.mc1.gotoAndStop(_arg1);
} else {
mcmouse.gotoAndStop(3);
};
stage.addEventListener(Event.ENTER_FRAME, mousefollow);
}
public function mapthropyout(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
mcuimap.mcthropyover.visible = false;
mcuimap.mcthropyout.visible = true;
mcuimap.mcthropyout.gotoAndPlay(mcuimap.mcthropyover.currentFrame);
}
public function effectremover(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (_arg1.currentTarget.bulletbool == true){
if (_arg1.currentTarget.currentLabel == "sound"){
_local2 = [soundbullet1, soundbullet2, soundbullet3];
_local2[randRange(0, (_local2.length - 1))].play(0, 1, new SoundTransform(volumesfx));
};
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local3 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, effectremover);
removeChild(effectimage[_local3]);
effectimage[_local3] = null;
};
}
public function mapslide(_arg1:Event):void{
if (mapgoleft == true){
cekslideplus();
} else {
cekslideminus();
};
so.data.lastpoint = mcmap.x;
loadminimapcamera();
loaddarken();
}
public function createlightingorb(_arg1:Object, _arg2:Object){
var _local3:*;
var _local4:*;
bulletimage[bulletimage.length] = new (fxlightingball);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.xe;
bulletimage[(bulletimage.length - 1)].ye = _arg1.ye;
bulletimage[(bulletimage.length - 1)].x = _arg1.x;
bulletimage[(bulletimage.length - 1)].damage = _arg1.damage;
bulletimage[(bulletimage.length - 1)].y = (_arg1.y - 80);
_local3 = (_arg2.x - bulletimage[(bulletimage.length - 1)].x);
_local4 = ((_arg2.y - 20) - bulletimage[(bulletimage.length - 1)].y);
if (_local3 > _local4){
bulletimage[(bulletimage.length - 1)].movex = 5;
_local3 = (_local3 / 5);
_local4 = (_local4 / _local3);
bulletimage[(bulletimage.length - 1)].movey = _local4;
} else {
if (_local4 > _local3){
bulletimage[(bulletimage.length - 1)].movey = 5;
_local4 = (_local4 / 5);
_local3 = (_local3 / _local4);
bulletimage[(bulletimage.length - 1)].movex = _local3;
};
};
if (bulletimage[(bulletimage.length - 1)].movex > 2){
bulletimage[(bulletimage.length - 1)].movex = (bulletimage[(bulletimage.length - 1)].movex + randRange(0, 2));
} else {
if (bulletimage[(bulletimage.length - 1)].movex < -2){
bulletimage[(bulletimage.length - 1)].movex = (bulletimage[(bulletimage.length - 1)].movex + randRange(-2, 0));
};
};
if (bulletimage[(bulletimage.length - 1)].movey > 2){
bulletimage[(bulletimage.length - 1)].movey = (bulletimage[(bulletimage.length - 1)].movey + randRange(0, 2));
} else {
if (bulletimage[(bulletimage.length - 1)].movey < -2){
bulletimage[(bulletimage.length - 1)].movey = (bulletimage[(bulletimage.length - 1)].movey + randRange(-2, 0));
};
};
bulletimage[(bulletimage.length - 1)].mouseChildren = false;
bulletimage[(bulletimage.length - 1)].mouseEnabled = false;
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].hitlist = [];
bulletimage[(bulletimage.length - 1)].forhowlong = 25;
bulletimage[(bulletimage.length - 1)].blendMode = "screen";
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet6movement);
}
public function tutorialskip(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mctutorial.visible = false;
if (((!((oncharanimation == -1))) && ((currentLabel == "ingame")))){
bwatmcstagedone();
} else {
if (so.data.firsttutorial == false){
if (waveke == 0){
waveready();
};
so.data.firsttutorial = true;
pausegame = false;
} else {
if (so.data.firsttutorialaddon == false){
so.data.firsttutorialaddon = true;
pausegame = false;
loadskillfunction();
mcui.mcskill1.cd = 0;
mcui.mcskill1.mcdoor.gotoAndPlay(2);
mcui.mcskill1.mcpetengan.gotoAndStop(100);
mcui.mcskill1.mcselected.gotoAndPlay(2);
} else {
if (so.data.secondtutorial == false){
so.data.secondtutorial = true;
} else {
if (so.data.thirdtutorial == false){
if (waveke == 0){
waveready();
};
so.data.thirdtutorial = true;
pausegame = false;
} else {
if (so.data.fourthtutorial == false){
so.data.fourthtutorial = true;
} else {
if (so.data.fifthhtutorial == false){
so.data.fifthhtutorial = true;
pausegame = false;
waveready();
} else {
if (so.data.lastconversation == false){
so.data.lastconversation = true;
pausegame = false;
waveready();
};
};
};
};
};
};
};
};
}
public function blitzkriegclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = 1;
while (_local2 <= 3) {
if (so.data.skillregister[_local2] == 3){
_local3 = mcui.getChildByName(("mcskill" + _local2));
_local3.cd = (charskillcd[3] * 25);
break;
};
_local2++;
};
soundpowerup.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.blitzkriegtime = (charskillnumba[3][so.data.skilllevel[3]] * 25);
_arg1.currentTarget.damage = (_arg1.currentTarget.damage + _arg1.currentTarget.damage);
_arg1.currentTarget.reload = (_arg1.currentTarget.reload - int((_arg1.currentTarget.reloadtemp / 2)));
_arg1.currentTarget.reloadtemp = (_arg1.currentTarget.reloadtemp - int((_arg1.currentTarget.reloadtemp / 2)));
createcharblitzkrieg(false);
donemouse();
}
public function ingameskillover(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if ((((so.data.firsttutorialaddonphase == 2)) && ((so.data.firsttutorialaddon == false)))){
mctutorial.visible = false;
};
_local2 = [undefined, 496, 550, 613];
_local3 = _arg1.currentTarget.name;
_local3 = _local3.charAt((_local3.length - 1));
mcskillbaloon.visible = true;
mcskillbaloon.x = _local2[_local3];
mcskillbaloon.y = 384;
mcskillbaloon.txt1.text = charskill[_arg1.currentTarget.skillke];
mcskillbaloon.txt2.text = ((charskilldesc[_arg1.currentTarget.skillke] + charskillnumba[_arg1.currentTarget.skillke][so.data.skilllevel[_arg1.currentTarget.skillke]]) + charskillstring[_arg1.currentTarget.skillke]);
mcskillbaloon.txt3.text = (("COOLDOWN : " + charskillcd[_arg1.currentTarget.skillke]) + "s");
}
public function loadminimapcamera(){
mcminimapcamera.x = ((66 + (mcminimapcamera.width / 2)) + ((0 - mcmap.x) * minimapskala));
if (mcminimapcamera.x > (616 - (mcminimapcamera.width / 2))){
mcminimapcamera.x = (616 - (mcminimapcamera.width / 2));
};
}
public function createbarmove(){
mcmapprogress.mchead.x = (82 - mcmapprogress.mc1.width);
mcmapprogress.mc1.tampungpenambahan = 0;
mcmapprogress.mc1.timee = mcmapprogress.mc1.timee;
mcmapprogress.mc1.speed = ((mcmapprogress.mc2.width - mcmapprogress.mc1.width) / mcmapprogress.mc1.timee);
trace(((("time : " + mcmapprogress.mc1.timee) + " gerak : ") + mcmapprogress.mc1.speed));
}
public function loadui(){
var _local1:*;
var _local2:*;
loadkeyboardshortcut();
btnpause.addEventListener(MouseEvent.CLICK, ingamepause);
stage.addEventListener(Event.ENTER_FRAME, unitsort);
mcmapprogress.mc1.width = 1;
mcmapprogress.mchead.x = 82;
mcui.txtcp.text = (so.data.basecp * so.data.basecpupgrade);
cpowned = (so.data.basecp * so.data.basecpupgrade);
mcui.txthp.text = hpowned;
loadskillui();
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcui.getChildByName(("mcpanel" + _local1));
if (so.data.charregister[_local1] != undefined){
_local2.mc1.gotoAndStop(so.data.charregister[_local1]);
_local2.txt1.visible = true;
_local2.txt1.text = charcost[so.data.charregister[_local1]];
_local2.gotoAndStop(2);
_local2.charke = so.data.charregister[_local1];
_local2.ready = true;
_local2.addEventListener(Event.ENTER_FRAME, charthumbwaiting);
_local2.buttonMode = true;
_local2.tipeku = "uibot";
_local2.addEventListener(MouseEvent.MOUSE_OVER, overcharpanel);
_local2.addEventListener(MouseEvent.MOUSE_OUT, outcharpanel);
_local2.addEventListener(MouseEvent.CLICK, clickcharpanel);
} else {
_local2.txt1.visible = false;
_local2.gotoAndStop(1);
};
_local1++;
};
}
public function loadminimap(){
var _local1:*;
var _local2:*;
var _local3:Point;
_local1 = 0;
while (_local1 < minimapimage.length) {
mcminimap.removeChild(minimapimage[_local1]);
minimapimage[_local1] = null;
_local1++;
};
minimapimage = [];
mcminimapcamera.mouseChildren = false;
mcminimapcamera.mouseEnabled = false;
mcminimap.mcminimapadjust.buttonMode = true;
mcminimap.mcminimapadjust.addEventListener(MouseEvent.MOUSE_DOWN, adjustminimap);
mcminimap.mcmap.width = minimapwidth;
mcminimap.mcmap.height = (mcmap.height * minimapskala);
mcminimap.mcmap.x = -252;
mcminimapcamera.width = (640 * minimapskala);
mcminimapcamera.x = 121;
trace(("cek conquered : " + so.data.buildingconquered));
_local1 = 1;
while (_local1 < maplist.length) {
_local2 = mcminimap.mcmap.getChildByName(("mcbuilding" + _local1));
_local3 = new Point(_local2.x, _local2.y);
_local3 = mcminimap.mcmap.localToGlobal(_local3);
_local3 = mcminimap.globalToLocal(_local3);
minimapimage[minimapimage.length] = new (minimapbuilding);
mcminimap.addChildAt(minimapimage[(minimapimage.length - 1)], mcminimap.getChildIndex(mcminimap.mcbuilding));
minimapimage[(minimapimage.length - 1)].x = _local3.x;
minimapimage[(minimapimage.length - 1)].y = 4;
minimapimage[(minimapimage.length - 1)].mouseChildren = false;
minimapimage[(minimapimage.length - 1)].mouseEnabled = false;
if (so.data.mapstatus[_local1] == false){
if (_local1 > (so.data.buildingconquered + 1)){
minimapimage[(minimapimage.length - 1)].gotoAndStop(1);
} else {
minimapimage[(minimapimage.length - 1)].gotoAndStop(1);
};
} else {
if (so.data.maprating[_local1] == 1){
minimapimage[(minimapimage.length - 1)].gotoAndStop(3);
} else {
minimapimage[(minimapimage.length - 1)].gotoAndStop(2);
};
};
_local1++;
};
}
public function basketballwaiting(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:Number;
var _local11:Number;
var _local12:*;
if (pausegame == false){
if (_arg1.currentTarget.phase == 1){
_local2 = _arg1.currentTarget.ux;
_local3 = (_arg1.currentTarget.uy + _arg1.currentTarget.g);
_local4 = (_arg1.currentTarget.uy + (_arg1.currentTarget.g / 2));
_arg1.currentTarget.x = (_arg1.currentTarget.x + _local2);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _local4);
_arg1.currentTarget.uy = _local3;
_local5 = unitimage[_arg1.currentTarget.indextargetku];
if (_local5 != null){
if (_arg1.currentTarget.mchit.hitTestObject(_local5) == true){
_arg1.currentTarget.ye = _local5.ye;
_local5.gotoAndPlay(2);
_local5.hp = (_local5.hp - _arg1.currentTarget.atk);
cekunitreaction(_arg1.currentTarget.indextargetku);
_local6 = [soundhit1, soundhit2, soundhit3];
_local6[randRange(0, (_local6.length - 1))].play(0, 1, new SoundTransform(volumesfx));
if (_arg1.currentTarget.ye <= 0){
_arg1.currentTarget.phase = 2;
} else {
if (unitpositioned[_arg1.currentTarget.xe][(_arg1.currentTarget.ye - 1)] == 1){
_local7 = "";
_local8 = 0;
while (_local8 < unitimage.length) {
if (unitimage[_local8] != null){
if (unitimage[_local8].die == false){
if (unitimage[_local8].tipe == 2){
if ((((unitimage[_local8].xe == _arg1.currentTarget.xe)) && ((unitimage[_local8].ye == (_arg1.currentTarget.ye - 1))))){
_local7 = unitimage[_local8];
break;
};
};
};
};
_local8++;
};
_arg1.currentTarget.indextargetku = _local7.indexke;
_arg1.currentTarget.phase = 1;
_arg1.currentTarget.g = 2;
_local9 = (((_local7.x - _arg1.currentTarget.x) * 2) / 30);
_arg1.currentTarget.ux = _local9;
_arg1.currentTarget.uy = -15;
} else {
_arg1.currentTarget.phase = 2;
};
};
};
};
if (_arg1.currentTarget.y > (_arg1.currentTarget.batasy + 60)){
_arg1.currentTarget.phase = 2;
};
} else {
if (_arg1.currentTarget.phase == 2){
trace("remove");
_local12 = _arg1.currentTarget.indexke;
bulletimage[_local12].removeEventListener(Event.ENTER_FRAME, basketballwaiting);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, basketballwaiting);
removeChild(bulletimage[_local12]);
bulletimage[_local12] = null;
};
};
};
}
public function loadthischarexp(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (so.data.charunlocked[survivorindex] == true){
btninfodisabled.visible = false;
mcsurvivor.mcsurvivorexp.mcchar.gotoAndStop(1);
} else {
btninfodisabled.visible = true;
mcsurvivor.mcsurvivorexp.mcchar.gotoAndStop(2);
};
mcsurvivor.mcsurvivorexp.mcchar.mc1.gotoAndStop(survivorindex);
mcsurvivor.mcsurvivorexp.mcname.gotoAndStop(survivorindex);
_local1 = so.data.charskill[survivorindex];
mcsurvivor.mcsurvivorexp.txtdesc.text = skilldesc[survivorindex];
mcsurvivor.mcsurvivorexp.txtdesc.text = (mcsurvivor.mcsurvivorexp.txtdesc.text + ((" " + skillnumba[survivorindex][_local1]) + skillstring[survivorindex]));
_local2 = 1;
while (_local2 <= 3) {
_local7 = mcsurvivor.mcsurvivorexp.getChildByName(("mcgem" + _local2));
_local7.gotoAndStop(1);
if (_local2 <= _local1){
_local7.gotoAndStop(2);
};
_local2++;
};
if (_local1 >= 3){
mcsurvivor.mcsurvivorexp.mccost.mc1.txtcost.text = "MAX";
mcsurvivor.mcsurvivorexp.mccost.txtcost2.text = "MAX";
mcsurvivor.mcsurvivorexp.mcupgrade.visible = false;
} else {
mcsurvivor.mcsurvivorexp.mcupgrade.visible = true;
_local8 = skillcost[survivorindex][int((int(_local1) + int(1)))];
mcsurvivor.mcsurvivorexp.mccost.mc1.txtcost.text = _local8;
mcsurvivor.mcsurvivorexp.mccost.txtcost2.text = _local8;
mcsurvivor.mcsurvivorexp.mcupgrade.removeEventListener(MouseEvent.CLICK, survivorupgrade);
if (so.data.goldowned >= _local8){
mcsurvivor.mcsurvivorexp.coste = _local8;
mcsurvivor.mcsurvivorexp.mcupgrade.gotoAndStop(1);
mcsurvivor.mcsurvivorexp.panelke = survivorindex;
mcsurvivor.mcsurvivorexp.mcupgrade.addEventListener(MouseEvent.MOUSE_OUT, survivoroutupgrade);
mcsurvivor.mcsurvivorexp.mcupgrade.addEventListener(MouseEvent.MOUSE_OVER, survivoroverupgrade);
mcsurvivor.mcsurvivorexp.mcupgrade.addEventListener(MouseEvent.CLICK, survivorupgrade);
} else {
mcsurvivor.mcsurvivorexp.mcupgrade.gotoAndStop(2);
};
};
_local3 = 0;
_local4 = 0;
if (survivorindex == 2){
_local3 = skillnumba[survivorindex][_local1];
} else {
if (survivorindex == 6){
_local4 = skillnumba[survivorindex][_local1];
};
};
if (_local4 < 0){
_local4 = 0;
};
if (_local3 > 0){
mcsurvivor.mcsurvivorexp.txthp.text = (((charhp[survivorindex] + "(+") + _local3) + ")");
_local5 = charhp[survivorindex];
_local5 = _local5.toString();
_local6 = mcsurvivor.mcsurvivorexp.txthp.text;
_local6 = _local6.toString();
mcsurvivor.mcsurvivorexp.txthp.setTextFormat(textwarnaijo, _local5.length, _local6.length);
} else {
mcsurvivor.mcsurvivorexp.txthp.text = charhp[survivorindex];
};
if (_local4 > 0){
mcsurvivor.mcsurvivorexp.txtatk.text = (((chardamage[survivorindex] + "(+") + _local4) + ")");
_local5 = chardamage[survivorindex];
_local5 = _local5.toString();
_local6 = mcsurvivor.mcsurvivorexp.txtatk.text;
_local6 = _local6.toString();
mcsurvivor.mcsurvivorexp.txtatk.setTextFormat(textwarnaijo, _local5.length, _local6.length);
} else {
mcsurvivor.mcsurvivorexp.txtatk.text = chardamage[survivorindex];
};
mcsurvivor.mcsurvivorexp.txtspd.text = ((charreload[survivorindex] / 25) + "s");
mcsurvivor.mcsurvivorexp.mcrange.gotoAndStop(survivorindex);
}
public function charthumbwaiting(_arg1:Event):void{
if (pausegame == false){
if ((((cpowned >= charcost[_arg1.currentTarget.charke])) && ((_arg1.currentTarget.currentFrame == 2)))){
_arg1.currentTarget.ready = true;
_arg1.currentTarget.gotoAndStop(3);
if (_arg1.currentTarget.mcready.currentFrame == 1){
_arg1.currentTarget.mcready.gotoAndPlay(2);
};
} else {
if (cpowned < charcost[_arg1.currentTarget.charke]){
_arg1.currentTarget.ready = false;
_arg1.currentTarget.gotoAndStop(2);
_arg1.currentTarget.mcready.gotoAndStop(1);
};
};
};
}
public function bullet4movement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (pausegame == false){
_arg1.currentTarget.soundtime--;
if (_arg1.currentTarget.soundtime < 0){
_arg1.currentTarget.soundtime = 30;
soundmegaboomerang.play(0, 1, new SoundTransform(volumesfx));
};
_arg1.currentTarget.sparkletime--;
if (_arg1.currentTarget.sparkletime < 0){
_local4 = [fxmegaboomerangsparkle1, fxmegaboomerangsparkle2, fxmegaboomerangsparkle3];
effectimage[effectimage.length] = new (_local4[randRange(0, (_local4.length - 1))]);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = (_arg1.currentTarget.x + randRange(-20, 20));
effectimage[(effectimage.length - 1)].y = (_arg1.currentTarget.y + randRange(-20, 20));
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
};
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speed);
_arg1.currentTarget.life = _arg1.currentTarget.lifetemp;
_local2 = false;
_local3 = false;
if (_arg1.currentTarget.life > 0){
_local5 = 0;
while (_local5 < unitimage.length) {
if (unitimage[_local5] != null){
if ((((unitimage[_local5].die == false)) && ((unitimage[_local5].digphase == 3)))){
if (unitimage[_local5].tipe == 3){
if (unitimage[_local5].xe == _arg1.currentTarget.xe){
if (_arg1.currentTarget.hitTestObject(unitimage[_local5].mc1.mcbody) == true){
if (unitimage[_local5].ye < 12){
_arg1.currentTarget.life--;
if (_local2 == false){
_local6 = [soundwoodhit1, soundwoodhit2];
_local6[randRange(0, (_local6.length - 1))].play(0, 1, new SoundTransform(volumesfx));
};
if (((!((unitimage[_local5].charke == 12))) && (!((unitimage[_local5].charke == 14))))){
unitimage[_local5].x = (unitimage[_local5].x + 8);
};
if (unitimage[_local5].ye < 12){
if (unitimage[_local5].mc1.mcbody.hitTestObject(tilesimage[unitimage[_local5].xe][(unitimage[_local5].ye + 1)]) == true){
unitimage[_local5].ye++;
};
};
if (_arg1.currentTarget.life <= 0){
break;
};
};
};
};
};
};
};
_local5++;
};
};
if (_local3 == false){
if (_arg1.currentTarget.x > 650){
_local7 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet4movement);
bulletimage[_local7].removeEventListener(Event.ENTER_FRAME, bullet4movement);
removeChild(bulletimage[_local7]);
bulletimage[_local7] = null;
};
};
} else {
_arg1.currentTarget.stop();
};
}
public function mapsurvivorover(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
mcuimap.mcsurvivorout.visible = false;
mcuimap.mcsurvivorover.visible = true;
mcuimap.mcsurvivorover.gotoAndPlay(1);
}
public function createicesparkle(_arg1:Object){
var _local2:*;
_local2 = 0;
while (_local2 < 2) {
effectimage[effectimage.length] = new (fxicecubesummary2);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = (_arg1.x + randRange(0, -10));
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
_local2++;
};
}
public function createzombie(_arg1:int, _arg2:int, _arg3:Boolean, _arg4:int, _arg5:Object, _arg6:Boolean){
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
var _local22:*;
_local7 = (100 / _arg2);
_local8 = [undefined, charzombie1, charzombie2, charzombie3, charzombie4, charzombie5, charzombie6, charzombie7, charzombie8, charzombie9, charzombie10, charzombie11, charzombie12, charzombie13, charriotrobo, charriotbarrel, charriotcase];
if ((((((((((so.data.zombieunlocked[_arg1] == 0)) && (!((_arg1 == 4))))) && (!((_arg1 == 14))))) && (!((_arg1 == 15))))) && (!((_arg1 == 16))))){
cekachievement(16);
so.data.zombieunlocked[_arg1] = 1;
createnewz(_arg1);
};
unitimage[unitimage.length] = new (_local8[_arg1]);
addChildAt(unitimage[(unitimage.length - 1)], getChildIndex(unitposition));
unitimage[(unitimage.length - 1)].indexke = (unitimage.length - 1);
_local9 = [];
_local10 = 0;
listcharfillxe = [];
if (listcharfillxe.length > 0){
_local12 = 0;
while (_local12 < listcharfillxe.length) {
_local13 = randRange(1, 10);
if (_local13 <= listcharfillxe[_local12].chance){
_local9[0] = [listcharfillxe[_local12].xe, 12];
break;
} else {
if (_local12 == (listcharfillxe.length - 1)){
_local9[0] = [listcharfillxe[_local12].xe, 12];
break;
};
};
_local12++;
};
} else {
if (_arg1 == 16){
_local12 = 1;
while (_local12 <= 6) {
_local15 = 2;
while (_local15 <= 10) {
if (mapposition[mapke][_local12][_local15] == 1){
_local9[_local9.length] = [_local12, _local15];
};
_local15++;
};
_local12++;
};
_local14 = randRange(0, (_local9.length - 1));
_local10 = _local14;
} else {
if (_arg1 == 14){
_local9[_local9.length] = [5, 11];
} else {
if ((((_arg1 == 11)) || ((_arg1 == 12)))){
unitimage[(unitimage.length - 1)].soundtime = 150;
unitimage[(unitimage.length - 1)].soundtimetemp = 150;
if ((((_arg1 == 11)) && (!((zombiesebelum == 11))))){
soundcart.play(0, 1, new SoundTransform(volumesfx));
} else {
if ((((_arg1 == 12)) && (!((zombiesebelum == 12))))){
soundtrainhorn.play(0, 1, new SoundTransform(volumesfx));
};
};
_local12 = 1;
while (_local12 <= 6) {
if (mapposition[mapke][_local12][12] == 7){
if ((((((zombiesebelum == 12)) && ((_arg1 == 12)))) && (!((posspawnsebelum == tilesimage[_local12][12]))))){
_local9[_local9.length] = [_local12, 12];
} else {
if (((!((zombiesebelum == 12))) && ((_arg1 == 12)))){
_local9[_local9.length] = [_local12, 12];
} else {
if (_arg1 == 11){
_local9[_local9.length] = [_local12, 12];
};
};
};
};
_local12++;
};
_local10 = randRange(0, (_local9.length - 1));
} else {
_local12 = 1;
while (_local12 <= 6) {
if (mapposition[mapke][_local12][12] == 1){
_local9[_local9.length] = [_local12, 12];
};
_local12++;
};
_local10 = randRange(0, (_local9.length - 1));
};
};
};
};
trace(("bwat di : " + _local9[_local10]));
_local11 = tilesimage[_local9[_local10][0]][_local9[_local10][1]];
if (_arg5 != null){
_local11 = _arg5;
};
if (mapke == 1){
if (so.data.firsttutorial == false){
if ((((so.data.firsttutorialphase == 6)) || ((so.data.firsttutorialphase == 9)))){
_local11 = tilesimage[4][12];
};
} else {
if ((((waveke == 1)) || ((waveke == 2)))){
_local11 = tilesimage[4][12];
};
};
};
if ((((_arg3 == true)) || ((_arg1 == 5)))){
unitimage[(unitimage.length - 1)].jedaer = jedaspawnsebelum;
_local11 = posspawnsebelum;
} else {
if ((((_arg1 == 6)) || ((_arg1 == 10)))){
unitimage[(unitimage.length - 1)].jedaer = randRange(75, 150);
_local11 = posspawnsebelum;
} else {
unitimage[(unitimage.length - 1)].jedaer = (_arg4 * _local7);
};
};
posspawnsebelum = _local11;
zombiesebelum = _arg1;
jedaspawnsebelum = unitimage[(unitimage.length - 1)].jedaer;
unitimage[(unitimage.length - 1)].tipe = 3;
unitimage[(unitimage.length - 1)].die = false;
unitimage[(unitimage.length - 1)].sizee = zombiesize[_arg1];
unitimage[(unitimage.length - 1)].xe = _local11.xe;
unitimage[(unitimage.length - 1)].ye = _local11.ye;
unitimage[(unitimage.length - 1)].x = (_local11.x + (_local11.width / 2));
unitimage[(unitimage.length - 1)].y = (_local11.y + (_local11.height / 2));
unitimage[(unitimage.length - 1)].charke = _arg1;
unitimage[(unitimage.length - 1)].indexke = (unitimage.length - 1);
unitimage[(unitimage.length - 1)].statee = "walk";
unitimage[(unitimage.length - 1)].overchargedtime = -1;
unitimage[(unitimage.length - 1)].stuntime = -1;
unitimage[(unitimage.length - 1)].reload = 0;
if (_arg1 == 8){
unitimage[(unitimage.length - 1)].digphase = 1;
} else {
unitimage[(unitimage.length - 1)].digphase = 3;
};
unitimage[(unitimage.length - 1)].reloadtemp = zombiereload[_arg1];
unitimage[(unitimage.length - 1)].atk = zombieatk[_arg1];
unitimage[(unitimage.length - 1)].hp = zombiehp[_arg1];
unitimage[(unitimage.length - 1)].hptemp = zombiehp[_arg1];
unitimage[(unitimage.length - 1)].speedreducer = 0;
unitimage[(unitimage.length - 1)].speedreducerfor = 0;
unitimage[(unitimage.length - 1)].speed = zombiespeed[_arg1];
unitimage[(unitimage.length - 1)].speedtemp = zombiespeed[_arg1];
unitimage[(unitimage.length - 1)].range = zombierange[_arg1];
unitimage[(unitimage.length - 1)].reloadspc = zombiereloadspc[_arg1];
unitimage[(unitimage.length - 1)].reloadspctemp = unitimage[(unitimage.length - 1)].reloadspc;
unitimage[(unitimage.length - 1)].popbool = false;
unitimage[(unitimage.length - 1)].helmarmor = -1;
if (zombieequip[_arg1] == 1){
unitimage[(unitimage.length - 1)].helmarmor = helmarmor;
};
if (_arg6 == true){
unitimage[(unitimage.length - 1)].digphase = 1;
unitimage[(unitimage.length - 1)].popbool = true;
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("jump");
_local16 = "";
if (_arg1 == 13){
_local16 = tilesimage[_local11.xe][(_local11.ye + 1)];
} else {
_local16 = "";
_local17 = 20;
_local18 = false;
do {
_local16 = "";
_local19 = [-1, 1, -1, 1, -1, 1];
_local20 = [-1, -1, 0, 0, -2, -2];
_local10 = randRange(0, (_local19.length - 1));
_local18 = false;
_local21 = (unitimage[(unitimage.length - 1)].xe + _local19[_local10]);
_local22 = (unitimage[(unitimage.length - 1)].ye + _local20[_local10]);
if ((((((((((_local21 > 0)) && ((_local21 <= 6)))) && ((_local22 > 0)))) && ((_local22 <= 12)))) && ((mapposition[mapke][_local21][_local22] == 1)))){
_local16 = tilesimage[_local21][_local22];
trace(((_local21 + " ") + _local22));
_local18 = true;
};
_local17--;
} while ((((_local18 == false)) && ((_local17 > 0))));
if (_local18 == false){
_local12 = 1;
while (_local12 <= 6) {
if (mapposition[mapke][_local12][12] == 1){
_local16 = tilesimage[_local12][12];
break;
};
_local12++;
};
};
};
unitimage[(unitimage.length - 1)].speedpopx = (((_local16.x + (_local11.width / 2)) - unitimage[(unitimage.length - 1)].x) / 20);
unitimage[(unitimage.length - 1)].speedpopy = (((_local16.y + (_local11.height / 2)) - unitimage[(unitimage.length - 1)].y) / 20);
unitimage[(unitimage.length - 1)].poptotiles = _local16;
};
unitimage[(unitimage.length - 1)].mouseChildren = false;
unitimage[(unitimage.length - 1)].mouseEnabled = false;
if (_arg1 == 16){
unitimage[(unitimage.length - 1)].cd = (riotcasewaitingtime * 25);
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, riotcasewaiting);
} else {
if (_arg1 == 14){
bossindex = (unitimage.length - 1);
unitimage[(unitimage.length - 1)].digphase = 3;
unitimage[(unitimage.length - 1)].summontype = "zombie";
unitimage[(unitimage.length - 1)].levele = 1;
unitimage[(unitimage.length - 1)].waite = (rrwaitbase + ((unitimage[(unitimage.length - 1)].levele - 1) + rrwaitadd));
unitimage[(unitimage.length - 1)].levelcounter = rrlevelcounter;
unitimage[(unitimage.length - 1)].levelcountertemp = rrlevelcounter;
unitimage[(unitimage.length - 1)].phase = "1";
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, roboriotwaiting);
} else {
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, zombiewaiting);
};
};
unitimage[(unitimage.length - 1)].addEventListener(MouseEvent.CLICK, zombieclickinfo);
createshadow(unitimage[(unitimage.length - 1)]);
}
public function loadkeyboardshortcut(){
stage.addEventListener(KeyboardEvent.KEY_DOWN, charandskillkeyboard);
}
public function choosesurvivordown(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.mcready.gotoAndPlay(2);
mcmouse.gotoAndStop(2);
mcmouse.tipe = _arg1.currentTarget.tipe;
if (_arg1.currentTarget.tipe == "list"){
mcmouse.mc1.gotoAndStop(_arg1.currentTarget.ke);
} else {
if (_arg1.currentTarget.tipe == "reg"){
mcmouse.mc1.gotoAndStop(so.data.charregister[_arg1.currentTarget.ke]);
};
};
createchoosesurvivorfollow();
}
public function chooseskilldown(_arg1:MouseEvent):void{
if (mcskillmouse.visible == false){
Mouse.hide();
soundclick.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.filters = null;
mcskillbaloon.visible = false;
mcskillmouse.tipe = _arg1.currentTarget.tipe;
createchooseskillfollow(_arg1.currentTarget.ke);
};
}
public function waveready(){
if (mapke == 29){
createroboriot();
} else {
mcannounce.gotoAndPlay(2);
stage.addEventListener(Event.ENTER_FRAME, waitannounce);
};
}
public function createmainmenusureclear(){
mcuibot.mc1.btnplay.visible = false;
mcuibot.mc1.btnclear.visible = false;
mcuibot.mc1.mcclearsave.visible = true;
mcuibot.mc1.mcclearsave.btnyes.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuibot.mc1.mcclearsave.btnno.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuibot.mc1.mcclearsave.btnyes.addEventListener(MouseEvent.CLICK, mainmenuclearyes);
mcuibot.mc1.mcclearsave.btnno.addEventListener(MouseEvent.CLICK, mainmenuclearno);
}
public function loadtutorial(){
soundtutorial.play(0, 1, new SoundTransform(volumesfx));
mctutorial.btncontinue.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mctutorial.btncontinue.removeEventListener(MouseEvent.CLICK, tutorialclick);
mctutorial.btncontinue.addEventListener(MouseEvent.CLICK, tutorialclick);
mctutorial.btnskip.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mctutorial.btnskip.removeEventListener(MouseEvent.CLICK, tutorialskip);
mctutorial.btnskip.addEventListener(MouseEvent.CLICK, tutorialskip);
trace("LOAD");
if ((((so.data.firsttutorial == false)) && ((currentLabel == "ingame")))){
trace("FIRST");
if ((((so.data.firsttutorial == false)) && ((so.data.firsttutorialphase == 1)))){
pausegame = true;
mctutorial.visible = true;
mctutorial.gotoAndStop(1);
so.data.firsttutorialphase = 1;
} else {
if ((((so.data.firsttutorial == false)) && ((so.data.firsttutorialphase == 4)))){
pausegame = true;
mctutorial.visible = true;
mctutorial.gotoAndStop(10);
so.data.firsttutorialphase = 5;
} else {
if ((((so.data.firsttutorial == false)) && ((so.data.firsttutorialphase == 7)))){
pausegame = true;
mctutorial.visible = true;
mctutorial.gotoAndStop(15);
so.data.firsttutorialphase = 8;
};
};
};
} else {
if ((((so.data.firsttutorialaddon == false)) && ((currentLabel == "ingame")))){
trace("ADDON");
pausegame = true;
mctutorial.visible = true;
mctutorial.gotoAndStop(67);
so.data.firsttutorialaddonphase = 1;
} else {
if ((((so.data.thirdtutorial == false)) && ((currentLabel == "ingame")))){
if ((((so.data.thirdtutorial == false)) && ((so.data.thirdtutorialphase == 1)))){
pausegame = true;
mctutorial.visible = true;
mctutorial.gotoAndStop(27);
so.data.thirdtutorialphase = 1;
};
} else {
if ((((so.data.secondtutorial == false)) && ((currentLabel == "map")))){
if ((((so.data.secondtutorial == false)) && ((so.data.secondtutorialphase == 1)))){
mctutorial.visible = true;
mctutorial.gotoAndStop(18);
so.data.secondtutorialphase = 2;
loadmapunlocked();
loadminimap();
};
} else {
if ((((so.data.fourthtutorial == false)) && ((((currentLabel == "map")) || ((currentLabel == "survivor")))))){
if (so.data.fourthtutorialphase == 1){
mctutorial.visible = true;
mctutorial.gotoAndStop(36);
so.data.fourthtutorialphase = 2;
} else {
if (so.data.fourthtutorialphase == 5){
mctutorial.visible = true;
mctutorial.gotoAndStop(39);
so.data.fourthtutorialphase = 6;
} else {
if (so.data.fourthtutorialphase == 6){
mctutorial.visible = true;
mctutorial.gotoAndStop(40);
so.data.fourthtutorialphase = 7;
};
};
};
} else {
if ((((so.data.fifthhtutorial == false)) && ((currentLabel == "ingame")))){
pausegame = true;
mctutorial.visible = true;
mctutorial.gotoAndStop(47);
} else {
if ((((so.data.lastconversation == false)) && ((currentLabel == "ingame")))){
pausegame = true;
mctutorial.visible = true;
mctutorial.gotoAndStop(86);
};
};
};
};
};
};
};
}
public function mapzombieover(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
mcuimap.mczombieout.visible = false;
mcuimap.mczombieover.visible = true;
mcuimap.mczombieover.gotoAndPlay(1);
}
public function survivorclick(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
survivorindex = _local2;
loadsurvivorui();
}
public function choosesurvivorover(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.gotoAndStop(4);
}
public function donemouse(){
createcharblitzkrieg(false);
mcmouse.gotoAndStop(1);
stage.removeEventListener(Event.ENTER_FRAME, mousefollow);
}
public function splash(_arg1:Event):void{
if (mcsplash.currentFrame == mcsplash.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, splash);
gotoAndStop("main menu");
};
}
public function cekslideminus(){
if (mcmap.x <= mapjedok){
mcmap.x = mapjedok;
} else {
mcmap.x = (mcmap.x - mapspeed);
mccloud.x = (mccloud.x - (mapspeed * pergeseranawan));
mcforeground.x = (mcforeground.x - (mapspeed * pergeseranforeground));
};
}
public function summonzombie(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
waveke++;
if (waveke == 1){
createmapprogress();
} else {
createfastbarmove();
};
createwaitnextwave();
createkecenderungan();
trace(((("a " + mapke) + " ") + waveke));
trace(((("WAVE KE : " + waveke) + " length : ") + mapwave[mapke].length));
_local1 = 0;
_local2 = 0;
while (_local2 < mapwave[mapke][waveke].length) {
if (mapwave[mapke][waveke][_local2] != 4){
_local1++;
};
_local2++;
};
trace("he");
_local3 = 0;
_local2 = 0;
while (_local2 < mapwave[mapke][waveke].length) {
_local4 = false;
if (mapwave[mapke][waveke][_local2] == 3){
_local4 = true;
};
trace(("create ke : " + mapwave[mapke][waveke][_local2]));
createzombie(mapwave[mapke][waveke][_local2], _local1, _local4, _local3, null, false);
if (mapwave[mapke][waveke][_local2] == 12){
jumzombie = (jumzombie + 5);
} else {
jumzombie++;
};
_local3++;
_local2++;
};
}
public function chooseskillover(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:*;
_local2 = new Point(_arg1.currentTarget.x, _arg1.currentTarget.y);
_local2 = mcchooseskill.mc1.localToGlobal(_local2);
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.filters = [glowpurple];
_local3 = _arg1.currentTarget.name;
_local3 = _local3.charAt((_local3.length - 1));
trace(((("cekz : " + _arg1.currentTarget.tipe) + " ") + so.data.skillregister[_local3]));
if ((((((_arg1.currentTarget.tipe == "reg")) && (!((so.data.skillregister[_local3] == ""))))) || (!((_arg1.currentTarget.tipe == "reg"))))){
mcskillbaloon.visible = true;
mcskillbaloon.x = _local2.x;
mcskillbaloon.y = (_local2.y - 24);
mcskillbaloon.txt1.text = charskill[_arg1.currentTarget.ke];
mcskillbaloon.txt2.text = ((charskilldesc[_arg1.currentTarget.ke] + charskillnumba[_arg1.currentTarget.ke][so.data.skilllevel[_arg1.currentTarget.ke]]) + charskillstring[_arg1.currentTarget.ke]);
mcskillbaloon.txt3.text = (("COOLDOWN : " + charskillcd[_arg1.currentTarget.ke]) + "s");
};
}
public function mapitem(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
cleanupmap();
so.data.newskill = false;
gotoAndStop("skill");
}
public function createblood(_arg1:Object){
var _local2:*;
if (((((((((((((!((_arg1.charke == 4))) && (!((_arg1.charke == 11))))) && (!((_arg1.charke == 12))))) && (!((_arg1.charke == 13))))) && (!((_arg1.charke == 14))))) && (!((_arg1.charke == 15))))) && (!((_arg1.charke == 16))))){
_local2 = [fxblood1, fxblood2];
effectimage[effectimage.length] = new (_local2[randRange(0, (_local2.length - 1))]);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = (_arg1.x + randRange(-10, 10));
effectimage[(effectimage.length - 1)].y = (_arg1.y + randRange(0, 20));
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
};
}
public function mapslideleftout(_arg1:MouseEvent):void{
mapgoleft = -1;
stage.removeEventListener(Event.ENTER_FRAME, mapslide);
}
public function cekarmordrop(_arg1:Object, _arg2:int){
_arg1.helmarmor = (_arg1.helmarmor - _arg2);
if (_arg1.helmarmor <= 0){
_arg1.helmarmor = -1;
_arg1.mc1.mcmask.visible = false;
if (_arg1.charke == 2){
createequipdrop(_arg1, 1);
} else {
createequipdrop(_arg1, 2);
};
};
}
public function cekunitreaction(_arg1:int){
var _local2:*;
if (unitimage[_arg1].charke == 10){
_local2 = [soundcanhit1, soundcanhit2, soundcanhit3];
_local2[randRange(0, (_local2.length - 1))].play(0, 1, new SoundTransform(volumesfx));
if ((((unitimage[_arg1].hp < (unitimage[_arg1].hptemp * 0.6))) && ((unitimage[_arg1].mc1.currentFrame == 1)))){
unitimage[_arg1].mc1.gotoAndStop(2);
createbarrelfx(unitimage[_arg1]);
} else {
if ((((unitimage[_arg1].hp < (unitimage[_arg1].hptemp * 0.3))) && ((unitimage[_arg1].mc1.currentFrame == 2)))){
unitimage[_arg1].mc1.gotoAndStop(3);
createbarrelfx(unitimage[_arg1]);
} else {
if ((((unitimage[_arg1].hp <= 0)) && ((unitimage[_arg1].mc1.currentFrame == 3)))){
soundcanexplode.play(0, 1, new SoundTransform(volumesfx));
cekachievement(9);
createbarrelfx(unitimage[_arg1]);
};
};
};
} else {
if (unitimage[_arg1].charke == 2){
if (unitimage[_arg1].mc1.currentLabel != "attack2"){
unitimage[_arg1].mc1.gotoAndPlay("attack2");
};
};
};
if (unitimage[_arg1].hp <= 0){
unitinimati(unitimage[_arg1]);
};
}
public function survivorinfogotit(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcsurvivorinfo.gotoAndStop(1);
if (mcmissingperson != null){
if (mcmissingperson.currentFrame == 2){
soundnewunit.play(0, 1, new SoundTransform(volumesfx));
mcskillinfo.mcskillthumbtitle.mc1.gotoAndStop(so.data.newunitke);
mcskillinfo.mcskillthumb.gotoAndStop(so.data.newunitke);
mcskillinfo.mcskillbg.gotoAndStop(so.data.newunitke);
mcskillinfo.mcskilltitle.gotoAndStop(so.data.newunitke);
mcskillinfo.mcskilldesc.gotoAndStop(so.data.newunitke);
mcskillinfo.gotoAndPlay(2);
};
};
}
public function chooseskillfollowup(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
Mouse.show();
_local2 = false;
_local3 = 1;
while (_local3 <= 3) {
_local4 = mcchooseskill.mc1.getChildByName(("mcskillregister" + _local3));
if (mcskillmouse.mchit.hitTestObject(_local4) == true){
trace(("HIT " + mcskillmouse.tipe));
_local2 = true;
if (mcskillmouse.tipe == "slot"){
_local5 = 1;
while (_local5 <= 3) {
if (so.data.skillregister[_local5] == mcskillmouse.mc1.currentFrame){
so.data.skillregister[_local5] = "";
};
_local5++;
};
so.data.skillregister[_local3] = mcskillmouse.mc1.currentFrame;
} else {
trace("REG");
_local5 = 1;
while (_local5 <= 3) {
if (so.data.skillregister[_local5] == mcskillmouse.mc1.currentFrame){
so.data.skillregister[_local5] = so.data.skillregister[_local3];
};
_local5++;
};
so.data.skillregister[_local3] = mcskillmouse.mc1.currentFrame;
};
break;
};
_local3++;
};
if (_local2 == false){
};
mcskillmouse.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, chooseskillfollowwaiting);
stage.removeEventListener(MouseEvent.MOUSE_UP, chooseskillfollowup);
createchooseskill();
}
public function cektutorial(){
if (so.data.firsttutorial == false){
pausegame = true;
waittutor(25);
} else {
if ((((so.data.thirdtutorial == false)) && ((mapke == 2)))){
pausegame = true;
waittutor(25);
} else {
if ((((so.data.fifthhtutorial == false)) && ((mapke == 10)))){
pausegame = true;
waittutor(25);
} else {
if (so.data.charunlocked[6] == true){
pausegame = true;
mcchoosesurvivor.chooseke = 0;
mcchoosesurvivor.gotoAndPlay(2);
createchoosesurvivor();
};
if (so.data.skillunlocked[4] == true){
pausegame = true;
mcchooseskill.gotoAndPlay(2);
createchooseskill();
} else {
waveready();
};
};
};
};
}
public function skillupgrade(_arg1:MouseEvent){
var _local2:*;
_local2 = {x:392, y:231};
createsparkle(_local2);
soundachievement.play(0, 1, new SoundTransform(volumesfx));
soundmoney.play(0, 1, new SoundTransform(volumesfx));
trace(((("CEK : " + skillselect) + " ") + so.data.skilllevel));
so.data.goldowned = (so.data.goldowned - charskillcost[skillselect][(so.data.skilllevel[skillselect] + 1)]);
mcskillinfobg.mcgold.txtcost2.text = so.data.goldowned;
mcskillinfobg.mcgold.mc1.txtcost.text = so.data.goldowned;
var _local3 = so.data.skilllevel;
var _local4 = skillselect;
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
loadskillini();
}
public function thropyprev(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
pageke--;
indexthropy = (indexthropy - 5);
loadthropy();
}
public function splash1(_arg1:Event):void{
if (mcag.currentFrame == mcag.totalFrames){
stage.frameRate = 25;
stage.removeEventListener(Event.ENTER_FRAME, splash1);
gotoAndStop("splash");
};
}
public function overforsound(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
}
public function zombieinfoback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
gotoAndStop("map");
}
public function ingamepausequitno(_arg1:MouseEvent){
mcpause.btnquit.visible = true;
mcpause.btnrestart.visible = true;
mcpause.mcquitlevel.visible = false;
}
public function zombieclickinfo(_arg1:MouseEvent):void{
trace("------");
trace(((("POS : " + _arg1.currentTarget.xe) + " ") + _arg1.currentTarget.ye));
trace("------");
}
public function createcharblitzkrieg(_arg1:Boolean){
var _local2:*;
trace(("HM CEK : " + _arg1));
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if (unitimage[_local2].die == false){
if (unitimage[_local2].tipe == 2){
if (unitimage[_local2].charke < 8){
trace(("HM CEK 2 : " + _arg1));
if (_arg1 == true){
unitimage[_local2].buttonMode = true;
unitimage[_local2].mouseChildren = true;
unitimage[_local2].mouseEnabled = true;
unitimage[_local2].addEventListener(MouseEvent.CLICK, blitzkriegclick);
} else {
unitimage[_local2].filters = null;
unitimage[_local2].buttonMode = false;
unitimage[_local2].mouseChildren = false;
unitimage[_local2].mouseEnabled = false;
unitimage[_local2].removeEventListener(MouseEvent.CLICK, blitzkriegclick);
};
};
};
};
};
_local2++;
};
}
public function ubahcp(_arg1:Number){
var _local2:*;
cpowned = (cpowned + _arg1);
updateui();
if (_arg1 < 0){
effectimage[effectimage.length] = new (cpreducer);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(1);
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = 50;
effectimage[(effectimage.length - 1)].y = 449;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
} else {
mcui.mccp.gotoAndPlay(2);
_local2 = {x:61, y:416};
createsparkle(_local2);
};
}
public function bwatachievement(_arg1:int, _arg2:int){
mcachievment.mc1.txt1.text = achievementlist[_arg1][_arg2];
mcachievment.gotoAndPlay(2);
}
public function mapprogressmove(_arg1:Event):void{
if (pausegame == false){
if ((((mcmapprogress.mc1.phase == 1)) || ((mcmapprogress.mc1.phase == 3)))){
mcmapprogress.mc1.timee--;
mcmapprogress.mc1.tampungpenambahan = (mcmapprogress.mc1.tampungpenambahan + mcmapprogress.mc1.speed);
if (mcmapprogress.mc1.tampungpenambahan >= 1){
mcmapprogress.mc1.width = (mcmapprogress.mc1.width + mcmapprogress.mc1.tampungpenambahan);
mcmapprogress.mc1.tampungpenambahan = 0;
};
mcmapprogress.mchead.x = (82 - mcmapprogress.mc1.width);
if (mcmapprogress.mc1.timee <= 0){
mcmapprogress.mc1.timee = 50;
mcmapprogress.mc1.phase = 2;
};
} else {
if (mcmapprogress.mc1.phase == 2){
mcmapprogress.mc1.timee--;
if (mcmapprogress.mc1.timee <= 0){
if (finalwave == false){
mcmapprogress.mc1.phase = 3;
mcmapprogress.mc1.timee = ((mapjeda[mapke][int((int(waveke) + int(1)))] - 2) * 25);
createshadowbar(1);
createbarmove();
} else {
mcmapprogress.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, mapprogressmove);
};
};
};
};
};
}
public function addsoundfunction(){
var onsound:Function;
var offsound:Function;
var onsoundmus:Function;
var offsoundmus:Function;
onsound = function (_arg1:MouseEvent):void{
trace("SOUND UNMUTE");
volumesfx = 0;
ceksoundbutton();
};
offsound = function (_arg1:MouseEvent):void{
trace("SOUND MUTE");
volumesfx = 1;
ceksoundbutton();
};
onsoundmus = function (_arg1:MouseEvent):void{
trace("SOUND MUS UNMUTE");
volumebgm = 0;
if (soundchannelbgm != null){
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
};
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
ceksoundbutton();
};
offsoundmus = function (_arg1:MouseEvent):void{
trace("SOUND MUS MUTE");
volumebgm = 1;
if (soundchannelbgm != null){
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
};
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
ceksoundbutton();
};
btnsound.removeEventListener(MouseEvent.CLICK, onsound);
btnsound.addEventListener(MouseEvent.CLICK, onsound);
btnsound2.removeEventListener(MouseEvent.CLICK, offsound);
btnsound2.addEventListener(MouseEvent.CLICK, offsound);
btnsoundmus.removeEventListener(MouseEvent.CLICK, onsoundmus);
btnsoundmus.addEventListener(MouseEvent.CLICK, onsoundmus);
btnsoundmus2.removeEventListener(MouseEvent.CLICK, offsoundmus);
btnsoundmus2.addEventListener(MouseEvent.CLICK, offsoundmus);
}
public function roboriotwaiting(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (pausegame == false){
if (_arg1.currentTarget.mc1.currentLabel == "sound1"){
soundrobocome.play(0, 1, new SoundTransform(volumesfx));
} else {
if (_arg1.currentTarget.mc1.currentLabel == "sound2"){
soundlight.play(0, 1, new SoundTransform(volumesfx));
} else {
if (_arg1.currentTarget.mc1.currentLabel == "sound3"){
soundrobojaw.play(0, 1, new SoundTransform(volumesfx));
} else {
if (_arg1.currentTarget.mc1.currentLabel == "explode1"){
soundsharpnelbomb.play(0, 1, new SoundTransform(volumesfx));
} else {
if (_arg1.currentTarget.mc1.currentLabel == "explode2"){
soundexplode.play(0, 1, new SoundTransform(volumesfx));
} else {
if (_arg1.currentTarget.mc1.currentLabel == "blink"){
mcblinker.gotoAndPlay(2);
};
};
};
};
};
};
if (_arg1.currentTarget.phase == "waitdead"){
if (_arg1.currentTarget.mc1.currentLabel == "donedead"){
stagewin = true;
mcstagedone.mc1.gotoAndStop(1);
bwatmcstagedone();
_arg1.currentTarget.phase = "ayoyo";
};
} else {
if (_arg1.currentTarget.phase == 1){
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
_arg1.currentTarget.mc1.gotoAndPlay("skill2");
_arg1.currentTarget.phase = 2;
};
} else {
if (_arg1.currentTarget.phase == 2){
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.phase = 3;
mcannounce.gotoAndPlay(2);
stage.addEventListener(Event.ENTER_FRAME, waitannounce);
stage.addEventListener(Event.ENTER_FRAME, gametime);
};
} else {
if (_arg1.currentTarget.phase == 3){
if (mcannounce.currentFrame == mcannounce.totalFrames){
waveke = 1;
_arg1.currentTarget.phase = 4;
createmapprogress2(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.phase == 4){
if (_arg1.currentTarget.summontype == "zombie"){
_arg1.currentTarget.summontype = "skill";
createrandomz(_arg1.currentTarget);
_arg1.currentTarget.phase = "wait";
} else {
if (_arg1.currentTarget.summontype == "skill"){
_arg1.currentTarget.summontype = "zombie";
_local2 = randRange(1, 4);
_local3 = randRange(2, 6);
_arg1.currentTarget.xe = _local3;
_arg1.currentTarget.ye = 11;
_local4 = _arg1.currentTarget.xe;
_local5 = _arg1.currentTarget.ye;
_arg1.currentTarget.x = (tilesimage[_local4][_local5].x + (tilesimage[_local4][_local5].width / 2));
_arg1.currentTarget.y = (tilesimage[_local4][_local5].y + (tilesimage[_local4][_local5].height / 2));
_arg1.currentTarget.useskillke = _local2;
_arg1.currentTarget.digphase = 3;
_arg1.currentTarget.mc1.gotoAndPlay("incoming");
_arg1.currentTarget.phase = "waitskill";
};
};
_arg1.currentTarget.levelcounter--;
if (_arg1.currentTarget.levelcounter < 0){
_arg1.currentTarget.levele++;
_arg1.currentTarget.levelcounter = _arg1.currentTarget.levelcountertemp;
};
_arg1.currentTarget.waite = ((rrwaitbase + ((_arg1.currentTarget.levele - 1) + rrwaitadd)) * 25);
} else {
if (_arg1.currentTarget.phase == "waitskill"){
if (_arg1.currentTarget.mc1.currentLabel == "throw"){
trace("SHOOT");
createthrowingobject(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "barell"){
trace("BARELL");
_local6 = 0;
while (_local6 < _arg1.currentTarget.levele) {
jumzombie++;
createzombie(15, 1, false, 0, null, false);
_local6++;
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "blast"){
trace("DEAF");
createdeafblast(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "robo"){
trace("ROBO");
createroboincoming(_arg1.currentTarget);
};
};
};
};
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
_arg1.currentTarget.mc1.gotoAndPlay(("skill" + _arg1.currentTarget.useskillke));
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.waite = 100;
_arg1.currentTarget.phase = "wait";
};
};
} else {
if (_arg1.currentTarget.phase == "wait"){
_arg1.currentTarget.digphase = 1;
_arg1.currentTarget.waite--;
if (_arg1.currentTarget.waite < 0){
_arg1.currentTarget.phase = 4;
};
};
};
};
};
};
};
};
};
}
public function loadlikefb(){
cekachievement(17);
mcfreecoin.btnlike1.addEventListener(MouseEvent.CLICK, likefbclick);
mcfreecoin.btnlike2.addEventListener(MouseEvent.CLICK, likefbclick);
mcfreecoin.btnlike1.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcfreecoin.btnlike2.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcfreecoin.btnback.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcfreecoin.btnback.addEventListener(MouseEvent.CLICK, likefbback);
mcfreecoin.gotoAndStop(2);
if (so.data.like1 == false){
mcfreecoin.mcty1.visible = false;
mcfreecoin.mcgold1.visible = true;
mcfreecoin.mccoin1.visible = true;
mcfreecoin.mcgold1.mc1.txtcost.text = "+50";
mcfreecoin.mcgold1.txtcost2.text = "+50";
mcfreecoin.btnfb1.gotoAndStop(1);
} else {
mcfreecoin.mcty1.visible = true;
mcfreecoin.mcgold1.visible = false;
mcfreecoin.mccoin1.visible = false;
mcfreecoin.mcgold1.mc1.txtcost.text = "AWESOME";
mcfreecoin.mcgold1.txtcost2.text = "AWESOME";
mcfreecoin.btnfb1.gotoAndStop(2);
};
if (so.data.like2 == false){
mcfreecoin.mcty2.visible = false;
mcfreecoin.mcgold2.visible = true;
mcfreecoin.mccoin2.visible = true;
mcfreecoin.mcgold2.mc1.txtcost.text = "+75";
mcfreecoin.mcgold2.txtcost2.text = "+75";
mcfreecoin.btnfb2.gotoAndStop(1);
} else {
mcfreecoin.mcty2.visible = true;
mcfreecoin.mcgold2.visible = false;
mcfreecoin.mccoin2.visible = false;
mcfreecoin.mcgold2.mc1.txtcost.text = "AWESOME";
mcfreecoin.mcgold2.txtcost2.text = "AWESOME";
mcfreecoin.btnfb2.gotoAndStop(2);
};
}
public function clicktiles(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (mcmouse.currentFrame == 2){
if ((((so.data.firsttutorial == false)) && ((so.data.firsttutorialphase == 3)))){
so.data.firsttutorialphase = 4;
mctutorial.visible = false;
tilesimage[4][4].gotoAndStop(1);
waittutor(10);
};
soundstep.play(0, 1, new SoundTransform(volumesfx));
if (mcmouse.charke == 16){
createmegaboomerang(_arg1.currentTarget);
_local2 = 1;
while (_local2 <= 3) {
if (so.data.skillregister[_local2] == 4){
_local3 = mcui.getChildByName(("mcskill" + _local2));
_local3.cd = (charskillcd[4] * 25);
break;
};
_local2++;
};
} else {
if (mcmouse.charke == 14){
_local2 = 1;
while (_local2 <= 3) {
if (so.data.skillregister[_local2] == 2){
_local3 = mcui.getChildByName(("mcskill" + _local2));
_local3.cd = (charskillcd[2] * 25);
break;
};
_local2++;
};
createchar(_arg1.currentTarget, mcmouse.charke);
} else {
if (mcmouse.charke == 17){
_local2 = 1;
while (_local2 <= 3) {
if (so.data.skillregister[_local2] == 6){
_local3 = mcui.getChildByName(("mcskill" + _local2));
_local3.cd = (charskillcd[6] * 25);
break;
};
_local2++;
};
createchar(_arg1.currentTarget, mcmouse.charke);
} else {
if (mcmouse.charke != 14){
ubahcp((charcost[mcmouse.charke] * -1));
createchar(_arg1.currentTarget, mcmouse.charke);
};
};
};
};
donemouse();
createavailabletiles(false);
};
}
public function mainmenucredits(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcuitop.visible = false;
mcuibot.visible = false;
mccredits.gotoAndPlay(2);
mccredits.btnback.removeEventListener(MouseEvent.MOUSE_OVER, overforsound);
mccredits.btnback.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mccredits.btnback.removeEventListener(MouseEvent.CLICK, mainmenucreditsback);
mccredits.btnback.addEventListener(MouseEvent.CLICK, mainmenucreditsback);
}
public function skillgotit(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcskillinfo.gotoAndStop(1);
loadmissingperson();
}
public function cpmovetobase(_arg1:Event){
var _local2:*;
if (pausegame == false){
if (_arg1.currentTarget.currentLabel == "done"){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.movex);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.movey);
if (_arg1.currentTarget.mchit.hitTestObject(mcui.cphit) == true){
soundcp.play(0, 1, new SoundTransform(volumesfx));
_local2 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, cpmovetobase);
removeChild(cpimage[_local2]);
cpimage[_local2] = null;
ubahcp(5);
};
};
};
}
public function endingwait(_arg1:Event):void{
if (mcending.currentFrame == mcending.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, endingwait);
soundchannelbgm.stop();
soundchannelbgm = null;
gotoAndStop("main menu");
};
}
public function bullet3movement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pausegame == false){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speed);
_arg1.currentTarget.sparktime--;
if (_arg1.currentTarget.sparktime < 0){
_arg1.currentTarget.sparktime = sparktime;
createicesparkle(_arg1.currentTarget);
};
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if ((((unitimage[_local2].die == false)) && ((unitimage[_local2].digphase == 3)))){
if (unitimage[_local2].tipe == 3){
if (unitimage[_local2].xe == _arg1.currentTarget.xe){
if ((((_arg1.currentTarget.hitTestObject(unitimage[_local2].mc1.mcbody) == true)) && ((_arg1.currentTarget.donehit == false)))){
createiceeffect(unitimage[_local2]);
_local3 = 0;
if (_arg1.currentTarget.freezechance > 0){
_local3 = randRange(0, 100);
if (_local3 < _arg1.currentTarget.freezechance){
unitimage[_local2].stuntime = freezetime;
};
};
unitimage[_local2].speedreducer = (unitimage[_local2].speed * slowspeed);
unitimage[_local2].speedreducerfor = slowtime;
_local4 = [soundice1, soundice2];
_local4[randRange(0, (_local4.length - 1))].play(0, 1, new SoundTransform(volumesfx));
cekenemyreaction(_local2, _arg1.currentTarget);
break;
};
};
};
};
};
_local2++;
};
if (_arg1.currentTarget.donehit == false){
if (_arg1.currentTarget.x > 640){
_arg1.currentTarget.donehit = true;
};
} else {
_local5 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet3movement);
removeChild(bulletimage[_local5]);
bulletimage[_local5] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function creategameend(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = unitimage[bossindex];
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if ((((unitimage[_local2].die == false)) && (!((unitimage[_local2] == _local1))))){
if (unitimage[_local2].tipe == 3){
unitimage[_local2].hp = 0;
};
};
};
_local2++;
};
cekachievement(18);
readygame = false;
_local3 = tilesimage[5][11];
_local1.phase = "waitdead";
_local1.x = (_local3.x + (_local3.width / 2));
_local1.y = (_local3.y + (_local3.height / 2));
_local1.mc1.gotoAndPlay("dead");
}
public function mainmenuclearno(_arg1:MouseEvent):void{
soundno.play(0, 1, new SoundTransform(volumesfx));
mcuibot.mc1.btnplay.visible = true;
mcuibot.mc1.btnclear.visible = true;
mcuibot.mc1.mcclearsave.visible = false;
}
public function loadtutorialsurvivor(){
if ((((so.data.fourthtutorial == false)) && ((so.data.fourthtutorialphase == 4)))){
survivorindex = 2;
so.data.fourthtutorialphase = 5;
waittutor(15);
};
}
public function thropynext(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
pageke++;
indexthropy = (indexthropy + 5);
loadthropy();
}
public function loadsurvivorui(){
var _local1:*;
var _local2:*;
mcsurvivor.btnag.addEventListener(MouseEvent.CLICK, clickAG);
mcsurvivor.btnag.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcsurvivor.btnback.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcsurvivor.btnback.removeEventListener(MouseEvent.CLICK, survivorback);
mcsurvivor.btnback.addEventListener(MouseEvent.CLICK, survivorback);
mcsurvivor.mcgold.mc1.txtcost.text = so.data.goldowned;
mcsurvivor.mcgold.txtcost2.text = so.data.goldowned;
_local1 = 1;
while (_local1 <= 8) {
_local2 = mcsurvivor.getChildByName(("mcchar" + _local1));
_local2.mc1.mc1.gotoAndStop(_local1);
_local2.buttonMode = true;
if (so.data.charunlocked[_local1] == true){
_local2.removeEventListener(MouseEvent.CLICK, survivorclick);
_local2.addEventListener(MouseEvent.CLICK, survivorclick);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, survivorover);
_local2.addEventListener(MouseEvent.MOUSE_OVER, survivorover);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, survivorout);
_local2.addEventListener(MouseEvent.MOUSE_OUT, survivorout);
_local2.gotoAndStop(2);
_local2.mc1.gotoAndStop(1);
} else {
_local2.gotoAndStop(1);
_local2.mc1.gotoAndStop(2);
};
if (survivorindex == _local1){
_local2.mcselected.gotoAndPlay(2);
loadthischarexp();
} else {
_local2.mcselected.gotoAndStop(1);
};
_local1++;
};
}
public function ingamepauserestart(_arg1:MouseEvent){
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcpause.btnrestart.visible = false;
mcpause.btnquit.visible = false;
mcpause.mcquitlevel.gotoAndStop(2);
mcpause.mcquitlevel.visible = true;
mcpause.mcquitlevel.btnyes.removeEventListener(MouseEvent.CLICK, ingamepausequityes);
mcpause.mcquitlevel.btnno.removeEventListener(MouseEvent.CLICK, ingamepausequitno);
mcpause.mcquitlevel.btnyes.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcpause.mcquitlevel.btnno.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcpause.mcquitlevel.btnyes.addEventListener(MouseEvent.CLICK, ingamepausequityes);
mcpause.mcquitlevel.btnno.addEventListener(MouseEvent.CLICK, ingamepausequitno);
}
public function mapbuildingclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
soundclick.play(0, 1, new SoundTransform(volumesfx));
if ((((so.data.secondtutorial == false)) && ((so.data.secondtutorialphase == 3)))){
mctutorial.visible = false;
mcareaoverview.mchand.visible = true;
} else {
mcareaoverview.mchand.visible = false;
};
trace("ha");
mcareaoverview.buildingke = _arg1.currentTarget.buildingke;
mapke = _arg1.currentTarget.buildingke;
mcareaoverview.btncancel.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcareaoverview.btndeploy.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcareaoverview.btncancel.removeEventListener(MouseEvent.CLICK, mapoverviewcancel);
mcareaoverview.btndeploy.removeEventListener(MouseEvent.CLICK, mapoverviewdeploy);
mcareaoverview.btncancel.addEventListener(MouseEvent.CLICK, mapoverviewcancel);
mcareaoverview.btndeploy.addEventListener(MouseEvent.CLICK, mapoverviewdeploy);
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcareaoverview.getChildByName(("mcdifficulty" + _local2));
_local3.gotoAndStop(1);
if (_local2 <= mapdifficulty[_arg1.currentTarget.buildingke]){
_local3.gotoAndPlay(2);
};
_local2++;
};
if ((((maplist[_arg1.currentTarget.buildingke] == 2)) && ((so.data.mapstatus[mapke] == false)))){
mcareaoverview.mcprize1.visible = true;
mcareaoverview.mcprize1.x = 60;
mcareaoverview.mcprize1.y = 44;
mcareaoverview.mcprize2.visible = true;
mcareaoverview.mcprize2.x = 120;
mcareaoverview.mcprize2.y = 42;
} else {
mcareaoverview.mcprize1.visible = false;
mcareaoverview.mcprize2.visible = true;
mcareaoverview.mcprize2.x = 89;
mcareaoverview.mcprize2.y = 42;
};
mcareaoverview.mcgold.mouseChildren = false;
mcareaoverview.mcgold.mouseEnabled = false;
mcareaoverview.mcgold.x = mcareaoverview.mcprize2.x;
mcareaoverview.mcgold.y = mcareaoverview.mcprize2.y;
mcareaoverview.mcgold.txt1.text = ("+" + mapprize[mapke]);
trace(("DUWEKE BUT : " + mapprize[mapke]));
mcareaoverview.mcbuilding.gotoAndStop(mapke);
mcareaoverview.gotoAndStop(2);
}
public function loadmapunlocked(){
var _local1:*;
if (stagewin == true){
_local1 = mcmap.getChildByName(("mcbuilding" + mapke));
soundareacleared.play(0, 1, new SoundTransform(volumesfx));
_local1.mc1.gotoAndPlay(2);
if (so.data.maprating[mapke] == 2){
_local1.mc1.mc1.gotoAndStop(3);
cekachievement(15);
} else {
_local1.mc1.mc1.gotoAndStop(4);
};
so.data.mapstatus[mapke] = true;
stagewin = false;
};
}
public function waitfinalwave(_arg1:Event){
if (pausegame == false){
mcfinalwave.play();
if (mcfinalwave.currentLabel == "sound"){
soundstartwave.play(0, 1, new SoundTransform(volumesfx));
};
if (mcfinalwave.currentFrame == mcfinalwave.totalFrames){
soundsirene.play(0, 1, new SoundTransform(volumesfx));
stage.removeEventListener(Event.ENTER_FRAME, nextwavewaiting);
summonzombie();
stage.removeEventListener(Event.ENTER_FRAME, waitfinalwave);
};
} else {
mcfinalwave.stop();
};
}
public function cekactivateskill(_arg1:Object){
var _local2:*;
if (readygame == true){
if (_arg1.mcpetengan.currentFrame == 100){
if (mcmouse.currentFrame != 1){
donemouse();
createavailabletiles(false);
};
onskillke = _arg1.skillke;
if (_arg1.skillke == 1){
_local2 = createsniperblast();
if (_local2 == true){
_arg1.cd = (charskillcd[_arg1.skillke] * 25);
};
if ((((so.data.firsttutorialaddonphase == 2)) && ((so.data.firsttutorialaddon == false)))){
mctutorial.visible = false;
so.data.firsttutorialaddon = true;
pausegame = false;
};
} else {
if (_arg1.skillke == 2){
createavailabletiles(true);
createcharmouse(14);
} else {
if (_arg1.skillke == 3){
createcharblitzkrieg(true);
createcharmouse(15);
} else {
if (_arg1.skillke == 4){
createcharmouse(16);
createavailabletiles(true);
} else {
if (_arg1.skillke == 5){
createfrozenair();
_arg1.cd = (charskillcd[_arg1.skillke] * 25);
} else {
if (_arg1.skillke == 6){
createcharmouse(17);
createavailabletiles(true);
} else {
if (_arg1.skillke == 7){
createbomberaircraft();
_arg1.cd = (charskillcd[_arg1.skillke] * 25);
};
};
};
};
};
};
};
};
};
}
public function clickAG(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2);
}
public function mapperson(_arg1:MouseEvent):void{
if (so.data.fourthtutorial == true){
soundclick.play(0, 1, new SoundTransform(volumesfx));
loadmissingperson();
};
}
public function sniperblastwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pausegame == false){
if (_arg1.currentTarget.phase == 0){
_arg1.currentTarget.visible = false;
_arg1.currentTarget.stop();
_arg1.currentTarget.jedaer--;
if (_arg1.currentTarget.jedaer < 0){
soundcock.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.phase = 1;
};
} else {
_arg1.currentTarget.visible = true;
_arg1.currentTarget.play();
_local2 = unitimage[_arg1.currentTarget.targetku.indexke];
if (_local2 != null){
_arg1.currentTarget.x = _local2.x;
_arg1.currentTarget.y = _local2.y;
if (_arg1.currentTarget.currentLabel == "sound"){
soundsniper.play(0, 1, new SoundTransform(volumesfx));
};
if (_arg1.currentTarget.currentLabel == "hit"){
cekenemyreaction(_arg1.currentTarget.targetku.indexke, _arg1.currentTarget);
};
};
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local3 = _arg1.currentTarget.indexke;
skillimage[_local3].removeEventListener(Event.ENTER_FRAME, sniperblastwaiting);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, sniperblastwaiting);
removeChild(skillimage[_local3]);
skillimage[_local3] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function bomberaircraftwaiting(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
if (pausegame == false){
_arg1.currentTarget.jedaer--;
if (_arg1.currentTarget.jedaer <= 0){
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speed);
_local2 = tilesimage[_arg1.currentTarget.xe][_arg1.currentTarget.ye];
if (_arg1.currentTarget.y > (_local2.y + 5)){
soundexplode.play(0, 1, new SoundTransform(volumesfx));
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if (unitimage[_local3].die == false){
if (unitimage[_local3].tipe == 3){
if ((((((unitimage[_local3].charke == 14)) && (!((unitimage[_local3].digphase == 3))))) || (!((unitimage[_local3].charke == 14))))){
if (unitimage[_local3].ye == _arg1.currentTarget.ye){
cekenemyreaction(_local3, _arg1.currentTarget);
};
};
};
};
};
_local3++;
};
effectimage[effectimage.length] = new (fxsharpnelexplosion);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = (_local2.x + (_local2.width / 2));
effectimage[(effectimage.length - 1)].y = (_local2.y + (_local2.height / 2));
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
_local4 = _arg1.currentTarget.indexke;
bulletimage[_local4].removeEventListener(Event.ENTER_FRAME, bomberaircraftwaiting);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bomberaircraftwaiting);
removeChild(bulletimage[_local4]);
bulletimage[_local4] = null;
};
};
};
}
public function skillinfoback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
gotoAndStop("map");
}
public function createsniperblast(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = false;
_local2 = [];
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if ((((unitimage[_local3].die == false)) && ((unitimage[_local3].digphase == 3)))){
if ((((unitimage[_local3].tipe == 3)) && ((unitimage[_local3].x > 0)))){
_local2[_local2.length] = unitimage[_local3];
};
};
};
_local3++;
};
if (_local2.length > 0){
_local1 = true;
_local2.sortOn("x", Array.NUMERIC);
_local4 = 2;
_local3 = 0;
while (_local3 < _local2.length) {
if (_local4 > 0){
createaimforthis(_local2[_local3].indexke, _local3);
_local4--;
};
_local3++;
};
};
return (_local1);
}
public function mapoverviewdeploy(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
if ((((so.data.secondtutorial == false)) && ((so.data.secondtutorialphase == 3)))){
so.data.secondtutorial = true;
};
mapke = mcareaoverview.buildingke;
mcareaoverview.gotoAndStop(1);
cleanupmap();
gotoAndStop("ingame");
}
public function createaimforthis(_arg1:int, _arg2:int){
var _local3:*;
_local3 = unitimage[_arg1];
skillimage[skillimage.length] = new (fxsniperblast);
addChildAt(skillimage[(skillimage.length - 1)], getChildIndex(fxposition));
skillimage[(skillimage.length - 1)].x = _local3.x;
skillimage[(skillimage.length - 1)].y = _local3.y;
skillimage[(skillimage.length - 1)].indexke = (skillimage.length - 1);
skillimage[(skillimage.length - 1)].jedaer = (_arg2 * 15);
skillimage[(skillimage.length - 1)].phase = 0;
skillimage[(skillimage.length - 1)].targetku = _local3;
skillimage[(skillimage.length - 1)].damage = charskillnumba[1][so.data.skilllevel[1]];
skillimage[(skillimage.length - 1)].blendMode = "hardlight";
skillimage[(skillimage.length - 1)].addEventListener(Event.ENTER_FRAME, sniperblastwaiting);
}
public function createchoosesurvivor(){
var _local1:*;
var _local2:*;
mcchoosesurvivor.btnokay.removeEventListener(MouseEvent.CLICK, choosesurvivorokay);
mcchoosesurvivor.btnokay.addEventListener(MouseEvent.CLICK, choosesurvivorokay);
_local1 = 1;
while (_local1 <= 7) {
_local2 = mcchoosesurvivor.mc1.getChildByName(("mclist" + _local1));
_local2.buttonMode = true;
_local2.ke = _local1;
_local2.tipe = "list";
if (mcchoosesurvivor.chooseke == _local1){
_local2.mcready.gotoAndPlay(2);
} else {
_local2.mcready.gotoAndStop(1);
};
if (so.data.charunlocked[_local1] == true){
_local2.gotoAndStop(3);
_local2.mc1.gotoAndStop(_local1);
_local2.txt1.text = charcost[_local1];
_local2.tipeku = "choosetop";
_local2.addEventListener(MouseEvent.MOUSE_OVER, overcharpanel);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, choosesurvivordown);
_local2.addEventListener(MouseEvent.MOUSE_OUT, choosesurvivorout);
} else {
_local2.removeEventListener(MouseEvent.MOUSE_OVER, overcharpanel);
_local2.gotoAndStop(1);
_local2.txt1.text = "";
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, choosesurvivordown);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, choosesurvivorout);
};
_local1++;
};
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcchoosesurvivor.mc1.getChildByName(("mcpanel" + _local1));
_local2.buttonMode = true;
_local2.ke = _local1;
_local2.tipe = "reg";
_local2.gotoAndStop(3);
trace(("INI : " + so.data.charregister[_local1]));
_local2.mc1.gotoAndStop(so.data.charregister[_local1]);
_local2.txt1.text = charcost[so.data.charregister[_local1]];
if (mcchoosesurvivor.chooseke == so.data.charregister[_local1]){
_local2.mcready.gotoAndPlay(2);
} else {
_local2.mcready.gotoAndStop(1);
};
_local2.tipeku = "choosebot";
_local2.removeEventListener(MouseEvent.MOUSE_OVER, overcharpanel);
_local2.addEventListener(MouseEvent.MOUSE_OVER, overcharpanel);
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, choosesurvivordown);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, choosesurvivorout);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, choosesurvivordown);
_local2.addEventListener(MouseEvent.MOUSE_OUT, choosesurvivorout);
_local1++;
};
}
public function mainmenuclearyes(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mainmenucleanup();
createnewso();
gotoAndStop("ingame");
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function survivoroverupgrade(_arg1:MouseEvent):void{
if ((((so.data.fourthtutorial == false)) && ((so.data.fourthtutorialphase == 6)))){
mctutorial.visible = false;
};
mcbaloonupgrade.visible = true;
mcbaloonupgrade.x = mouseX;
mcbaloonupgrade.y = mouseY;
mcbaloonupgrade.txt1.text = (skillnumba[survivorindex][(so.data.charskill[survivorindex] + 1)] + skillupgradedesc[survivorindex]);
}
public function removezombieini(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (_arg1.hp <= 0){
_local3 = randRange(0, 100);
if (_local3 < zombiecpchance[_arg1.charke]){
_local4 = 0;
while (_local4 < zombiecpdrop[_arg1.charke]) {
generatecp(_arg1, false);
_local4++;
};
};
};
if ((((_arg1.charke == 12)) && ((_arg1.ye <= 7)))){
if (_arg1.hp <= 0){
createzombiepop(_arg1);
} else {
jumzombie = (jumzombie - 5);
};
} else {
if ((((_arg1.charke == 15)) && ((_arg1.hp <= 0)))){
jumzombie--;
createbarrelexplosion(_arg1);
} else {
if (_arg1.charke == 16){
createzbodypart(_arg1);
if (_arg1.hp > 0){
_local5 = tilesimage[_arg1.xe][_arg1.ye];
createzombie(13, 1, false, 0, _local5, true);
};
} else {
jumzombie--;
};
};
};
_arg1.die = true;
_local2 = _arg1.indexke;
_arg1.removeEventListener(Event.ENTER_FRAME, zombiewaiting);
_arg1.removeEventListener(Event.ENTER_FRAME, riotcasewaiting);
removeChild(unitimage[_local2]);
unitimage[_local2] = null;
}
public function createchooseskill(){
var _local1:*;
var _local2:*;
mcchooseskill.btnokay.removeEventListener(MouseEvent.CLICK, chooseskillokay);
mcchooseskill.btnokay.addEventListener(MouseEvent.CLICK, chooseskillokay);
_local1 = 1;
while (_local1 <= 7) {
_local2 = mcchooseskill.mc1.getChildByName(("mcskill" + _local1));
_local2.buttonMode = true;
_local2.ke = _local1;
_local2.tipe = "slot";
_local2.mcpetengan.visible = false;
if (so.data.skillunlocked[_local1] == true){
_local2.gotoAndStop(_local1);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, chooseskilldown);
_local2.addEventListener(MouseEvent.MOUSE_OVER, chooseskillover);
_local2.addEventListener(MouseEvent.MOUSE_OUT, chooseskillout);
} else {
_local2.gotoAndStop("locked");
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, chooseskilldown);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, chooseskillover);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, chooseskillout);
};
_local1++;
};
_local1 = 1;
while (_local1 <= 3) {
_local2 = mcchooseskill.mc1.getChildByName(("mcskillregister" + _local1));
_local2.buttonMode = true;
_local2.ke = so.data.skillregister[_local1];
_local2.tipe = "reg";
_local2.mcpetengan.visible = false;
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, chooseskilldown);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, chooseskillover);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, chooseskillout);
if (((!((so.data.skillregister[_local1] == undefined))) && (!((so.data.skillregister[_local1] == ""))))){
_local2.mcdoor.gotoAndStop(1);
_local2.gotoAndStop(so.data.skillregister[_local1]);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, chooseskilldown);
_local2.addEventListener(MouseEvent.MOUSE_OVER, chooseskillover);
_local2.addEventListener(MouseEvent.MOUSE_OUT, chooseskillout);
} else {
if (so.data.skillregister[_local1] == ""){
_local2.mcdoor.gotoAndStop(2);
_local2.addEventListener(MouseEvent.MOUSE_OVER, chooseskillover);
} else {
_local2.mcdoor.gotoAndStop(1);
};
};
_local1++;
};
}
public function choosesurvivorout(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(3);
}
public function bwatwaitnextwave(){
onnextwavewaiting = false;
stage.removeEventListener(Event.ENTER_FRAME, nextwavewaiting);
if (waveke >= (mapwave[mapke].length - 2)){
finalwave = true;
mcfinalwave.gotoAndPlay(2);
stage.addEventListener(Event.ENTER_FRAME, waitfinalwave);
wavegametime = false;
} else {
summonzombie();
};
}
public function clickEK(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://armorgames.com/play/15932/egg-knight");
navigateToURL(_local2);
}
public function createlightingsparkle(_arg1:Object){
effectimage[effectimage.length] = new (fxlightingsparkle);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = (_arg1.x + (_arg1.width / 2));
effectimage[(effectimage.length - 1)].y = (_arg1.y + (_arg1.height / 2));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function robomissilewaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pausegame == false){
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.speed);
_arg1.currentTarget.sparktime--;
if (_arg1.currentTarget.sparktime < 0){
_arg1.currentTarget.sparktime = sparktime;
createbulletspark(_arg1.currentTarget, 2);
};
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if (unitimage[_local2].die == false){
if (unitimage[_local2].tipe == 2){
if (unitimage[_local2].xe == _arg1.currentTarget.xe){
if ((((_arg1.currentTarget.hitTestObject(unitimage[_local2]) == true)) && ((_arg1.currentTarget.donehit == false)))){
createsplatter(unitimage[_local2], 1);
_arg1.currentTarget.donehit = true;
unitimage[_local2].gotoAndPlay(2);
unitimage[_local2].hp = (unitimage[_local2].hp - _arg1.currentTarget.atk);
cekunitreaction(_local2);
break;
};
};
};
};
};
_local2++;
};
if (_arg1.currentTarget.donehit == false){
if (_arg1.currentTarget.x > 640){
_arg1.currentTarget.donehit = true;
};
} else {
_local3 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, robomissilewaiting);
removeChild(bulletimage[_local3]);
bulletimage[_local3] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function bullet2movement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (pausegame == false){
_arg1.currentTarget.play();
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speed);
_arg1.currentTarget.stateetime--;
_arg1.currentTarget.sparktime--;
if (_arg1.currentTarget.sparktime < 0){
_arg1.currentTarget.sparktime = sparktime;
createboomerangsparkle(_arg1.currentTarget);
};
_local2 = false;
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if ((((unitimage[_local3].die == false)) && ((unitimage[_local3].digphase == 3)))){
if (unitimage[_local3].tipe == 3){
if (unitimage[_local3].xe == _arg1.currentTarget.xe){
if (_arg1.currentTarget.hitTestObject(unitimage[_local3].mc1.mcbody) == true){
if (unitimage[_local3].ye < 12){
_local4 = true;
if (_arg1.currentTarget.enemyhit.length == 0){
_local4 = true;
} else {
_local5 = 0;
while (_local5 < _arg1.currentTarget.enemyhit.length) {
if (_arg1.currentTarget.enemyhit[_local5] == _local3){
_local4 = false;
break;
};
_local5++;
};
};
if (_local4 == true){
_local6 = [soundwoodhit1, soundwoodhit2];
_local6[randRange(0, (_local6.length - 1))].play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.enemyhit[_arg1.currentTarget.enemyhit.length] = _local3;
cekenemyreaction(_local3, _arg1.currentTarget);
_arg1.currentTarget.hittimes--;
if (_arg1.currentTarget.hittimes <= 0){
_local2 = true;
_local7 = _arg1.currentTarget.indexke;
bulletimage[_local7].removeEventListener(Event.ENTER_FRAME, bullet2movement);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet2movement);
removeChild(bulletimage[_local7]);
bulletimage[_local7] = null;
break;
};
};
};
};
};
};
};
};
_local3++;
};
if (_local2 == false){
if (_arg1.currentTarget.stateetime < 0){
if (_arg1.currentTarget.statee == "forward"){
_arg1.currentTarget.stateetime = antonioboomerangtime;
_arg1.currentTarget.enemyhit = [];
_arg1.currentTarget.speed = -8;
_arg1.currentTarget.statee = "backward";
_arg1.currentTarget.gotoAndPlay("back");
} else {
if (_arg1.currentTarget.statee == "backward"){
_local7 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet2movement);
bulletimage[_local7].removeEventListener(Event.ENTER_FRAME, bullet2movement);
removeChild(bulletimage[_local7]);
bulletimage[_local7] = null;
};
};
};
};
} else {
_arg1.currentTarget.stop();
};
}
public function cleanupmap(){
var _local1:*;
_local1 = 0;
while (_local1 < minimapimage.length) {
mcminimap.removeChild(minimapimage[_local1]);
minimapimage[_local1] = null;
_local1++;
};
stage.removeEventListener(Event.ENTER_FRAME, waittutorevent);
stage.removeEventListener(Event.ENTER_FRAME, minimapcamerafollow);
stage.removeEventListener(MouseEvent.MOUSE_UP, adjustminimapup);
stage.removeEventListener(Event.ENTER_FRAME, mapslide);
mcuimap.btnzombie.removeEventListener(MouseEvent.MOUSE_OUT, mapzombieout);
mcuimap.btnzombie.removeEventListener(MouseEvent.MOUSE_OVER, mapzombieover);
mcuimap.btnzombie.removeEventListener(MouseEvent.CLICK, mapzombie);
mcuimap.btnsurvivor.removeEventListener(MouseEvent.MOUSE_OUT, mapsurvivorout);
mcuimap.btnsurvivor.removeEventListener(MouseEvent.MOUSE_OVER, mapsurvivorover);
mcuimap.btnsurvivor.removeEventListener(MouseEvent.CLICK, mapsurvivor);
mcuimap.btnthropy.removeEventListener(MouseEvent.MOUSE_OUT, mapthropyout);
mcuimap.btnthropy.removeEventListener(MouseEvent.MOUSE_OVER, mapthropyover);
mcuimap.btnthropy.removeEventListener(MouseEvent.CLICK, mapthropy);
}
public function overcp(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop("done");
overthiscp(_arg1.currentTarget);
}
public function waitcoinplacement(_arg1:Event):void{
var _local2:*;
if (_arg1.currentTarget.donejedaer == false){
_arg1.currentTarget.stop();
_arg1.currentTarget.jedaer--;
if (_arg1.currentTarget.jedaer <= 0){
_arg1.currentTarget.donejedaer = true;
_arg1.currentTarget.gotoAndPlay(2);
};
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
soundmoney.play(0, 1, new SoundTransform(volumesfx));
mcstagedone.mcgold.visible = true;
_arg1.currentTarget.stop();
_local2 = {x:(_arg1.currentTarget.x + 21), y:(_arg1.currentTarget.y - 20)};
createsparkle(_local2);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, waitcoinplacement);
_arg1.currentTarget.x = (_arg1.currentTarget.x + (_arg1.currentTarget.coinke * 16));
};
}
public function cekmasukarray(_arg1:Array, _arg2:int){
var _local3:*;
var _local4:*;
_local3 = false;
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg2 == _arg1[_local4]){
_local3 = true;
break;
};
_local4++;
};
return (_local3);
}
function frame1(){
stop();
volumesfx = 1;
volumebgm = 1;
soundbuttonover = new buttonoversound();
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
contextmenu = new ContextMenuItem("© Goody gameworks");
contextmenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clikGoodyfb);
customContextMenu.customItems.push(contextmenu);
contextMenu = customContextMenu;
btnplay.visible = false;
btnplay.addEventListener(MouseEvent.CLICK, playgames);
btnplay.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
btnag.addEventListener(MouseEvent.CLICK, clickAG);
btngoody.addEventListener(MouseEvent.CLICK, clickGoody);
btnag.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
btngoody.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
stage.addEventListener(Event.ENTER_FRAME, loadingeyo);
}
function frame4(){
stop();
soundmainmenu = new mainmenusound();
sounddoorslide = new doorslidesound();
soundgrowl = new growlsound();
soundsplash = new splashsound();
soundfire = new firesound();
soundclick = new clicksound();
soundhit1 = new hitsound1();
soundhit2 = new hitsound2();
soundhit3 = new hitsound3();
soundlose = new losesound();
soundlevelcomplete = new levelcompletesound();
soundcp = new cpsound();
soundflag = new flagsound();
soundstep = new stepsound();
soundcanexplode = new canexplodesound();
soundcanhit1 = new canhitsound1();
soundcanhit2 = new canhitsound2();
soundcanhit3 = new canhitsound2();
soundsplat2 = new splatsound2();
soundsplat3 = new splatsound3();
soundsplat4 = new splatsound4();
soundsplat5 = new splatsound5();
soundsplat6 = new splatsound6();
soundsplat7 = new splatsound7();
soundplaster = new plastersound();
soundingame = new ingamesound();
soundareacleared = new areaclearedsound();
soundmoney = new moneysound();
soundachievement = new achievementsound();
soundno = new nosound();
soundlight = new lightsound();
soundtutorial = new tutorialsound();
soundstartwave = new startwavesound();
soundsirene = new sirenesound();
soundgun1 = new gunsound1();
soundgun2 = new gunsound2();
soundbullet1 = new bulletsound1();
soundbullet2 = new bulletsound2();
soundbullet3 = new bulletsound3();
soundblock1 = new blocksound1();
soundblock2 = new blocksound2();
soundareaunlocked = new fxhatch();
soundwater1 = new watersound1();
soundwater2 = new watersound2();
soundswing1 = new swingsound1();
soundswing2 = new swingsound2();
soundironbat1 = new ironbatsound1();
soundironbat2 = new ironbatsound2();
soundgunsound = new supergunsound();
soundsuperswing = new superswingsound();
soundsuperswingsummon = new superswingsummonsound();
soundfruitsquish = new squishfruitsound();
soundwoodhit1 = new woodhitsound1();
soundwoodhit2 = new woodhitsound2();
soundheartbeat = new heartbeatsound();
soundboing = new boingsound();
soundfrostgun = new frostgunsound();
soundice1 = new icesound1();
soundice2 = new icesound2();
soundcock = new cocksound();
soundsniper = new snipersound();
soundbullethit1 = new bullethitsound1();
soundexplosion = new explosionsound();
soundmegaboomerang = new megaboomerangsound();
soundnewunit = new newunitsound();
soundscream = new screamsound();
soundfreeze = new freezesound();
soundpowerup = new powerupsound();
soundspark1 = new sparksound1();
soundspark2 = new sparksound2();
soundcart = new cartsound();
soundtrainhorn = new trainhornsound();
soundlocomotive = new locomotivesound();
soundexplode = new explodesound();
soundbombdrop = new bombdropsound();
soundsharpnelbomb = new sharpnelbombsound();
soundrobocome = new robocomesound();
soundrobojaw = new robojawsound();
soundchannelbgm2 = soundsplash.play(0, 1, new SoundTransform(volumebgm));
mcsplash.buttonMode = true;
mcsplash.addEventListener(MouseEvent.CLICK, clickGoody);
stage.addEventListener(Event.ENTER_FRAME, splash);
}
function frame5(){
stop();
mcuibot.mc1.btnag.addEventListener(MouseEvent.CLICK, clickAG);
mcuibot.mc1.btngoody.addEventListener(MouseEvent.CLICK, clickGoody);
mcuibot.mc1.btnag.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuibot.mc1.btngoody.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuitop.mc1.btnagfb.addEventListener(MouseEvent.CLICK, clickAGfb);
glowpurple = new GlowFilter();
glowpurple.color = 7606161;
glowpurple.blurX = 5;
glowpurple.blurY = 5;
glowpurple.alpha = 1;
glowpurple.strength = 100;
effectimage = [];
ceksoundbutton();
addsoundfunction();
helmarmor = 100;
slowspeed = 0.6;
freezetime = 75;
slowtime = 100;
sparktime = 1;
marrionpback = 20;
antonioboomerangtime = 35;
stuntime = 50;
barrelhp = 100;
electricpoledamage = 1;
electricpolereload = 5;
sharpneldamage = 10;
overchargedtime = 3;
deafdamage = 15;
deafduration = 150;
riotcasewaitingtime = 20;
rrlevelcounter = 4;
minreload = 25;
stage.addEventListener(Event.ENTER_FRAME, waitforsong);
newareake = 0;
trace("MAIN MENU");
mcuibot.gotoAndPlay(2);
mcuitop.gotoAndPlay(2);
mcanimation.gotoAndPlay(2);
mcbg.gotoAndPlay(2);
stagewin = false;
oncharanimation = -1;
skilldesc = [undefined, "Chance to push back by", "Increase HP by", "Chance to area strike by", "Boomerang hit Zombie", "Chance to freeze Zombie by", "Bonus damage :", "Sharpnel amount :"];
skillupgradedesc = [undefined, "% chance", "HP BONUS", "% chance", " times", "% chance", " bonus damage", " sharpnel"];
skillnumba = [undefined, [0, 10, 15, 20], [0, 50, 100, 150], [0, 10, 20, 30], [4, 6, 8, 10], [0, 10, 20, 25], [0, 5, 10, 15], [0, 2, 3, 4]];
skillstring = [undefined, "%", " pts", "%", " times", "%", " damage", " sharpnel"];
skillcost = [undefined, [0, 50, 100, 150], [0, 40, 140, 250], [0, 90, 150, 230], [0, 100, 155, 190], [0, 155, 190, 245], [0, 50, 100, 200], [0, 135, 160, 200]];
achievementlist = [["FIRST SPLATTER!", "KILLING SPREE", "BLOODY MESS"], ["CORPS UNITED!"], ["IRON WALL"], ["BROKEN PIPE?"], ["ITS PARTY TIME!"], ["FROZEN SOLID"], ["ZIP ZAP!"], ["BOMBARDIA TIME!"], ["CAPTURE THE FLAG", "POLEMANCER"], ["POOR BARREL", "R.I.P. BARREL"], ["TOO MANY CUSTOMER", "STOP THAT CART!"], ["DANGEREOUS CART", "COSTLY CART"], ["HOUSE KEEPER", "ZOMBIE SURVIVOR"], ["WELCOMING HAND", "WATCHING OTHER", "FULL HOUSE"], ["STREET CLEANER", "SAFE ROAD", "PEACE KEEPER"], ["GOLD NUGGET", "GOLDEN THRIUMPH", "GOLD MEDAL"], ["POLITE ZOMBIE", "ZOMBIE FRIEND", "WE'RE BRO"], ["LOVE YOU!"], ["THE ESCAPIST"]];
achievementdesc = ["Slay Zombie", "Place Marrion", "Place Jim", "Place Gordon", "Place Antonio", "Place Nevera", "Place Zack", "Place Knight", "Capture flag", "Barrel destroyed", "Evade shopping cart", "Hit by shopping cart", "Upgrade survivor", "Save survivor", "Complete stage", "Got Gold star", "Meet Zombie", "Visit sponsor site", "Escape Riot City"];
achievementnumba = [[1, 10, 50], [20], [20], [20], [20], [20], [20], [20], [5, 10], [3, 10], [5, 20], [1, 5], [1, 5], [2, 2, 2], [5, 10, 15], [10, 20, 30], [2, 4, 6], [1], [1]];
mapke = 1;
flaggenerate = 200;
flaggeneratenot = 400;
maplist = [undefined, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1];
mapgotchar = [undefined, 1, 2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 4, 0, 0, 0, 0, 5, 0, 0, 0, 0, 6, 0, 7, 0, 0, 0, 0, 0];
mapbuilding = [undefined, 1, 2, 3, 4, 5, 6, 2, 7, 1, 8, 9, 10, 11, 8, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26];
mapmapke = [undefined, 1, 2, 3, 4, 5, 6, 2, 7, 8, 9, 10, 11, 4, 12, 13, 14, 10, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26];
mapdifficulty = [undefined, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5];
mapprize = [undefined, 20, 20, 25, 25, 30, 25, 30, 40, 50, 55, 55, 60, 55, 55, 60, 60, 55, 60, 60, 65, 65, 70, 85, 90, 90, 90, 90, 95, 100];
charlist = [undefined, "Marrion", "Jim", "Gordon", "Antonio", "Nevera", "Zack", "Knight"];
charcost = [undefined, 20, 25, 20, 30, 30, 40, 60];
charrange = [undefined, 10, 2, 2, 5, 10, 2, 10];
charreload = [undefined, 50, 0, 30, 100, 75, 100, 150];
chardamage = [undefined, 10, 0, 20, 10, 10, 5, 50];
charhp = [undefined, 20, 150, 40, 30, 20, 20, 50];
charbasecp = [undefined, 20, 10, 10, 20, 15, 20, 15];
charskill = [undefined, "SNIPER BLAST", "IRON WOOD", "BLITZKRIEG", "MEGA BOOMERANG", "FROZEN AIR", "THUNDER POLE", "BOMBER AIRCRAFT"];
charskilldesc = [undefined, "Damage 2 nearest Zombie for ", "Summon immortal barricade for ", "Boost unit ATK and faster reload for ", "Push back ", "Freeze all Zombie for ", "Summon Zombie-zapping pole for ", "Bombard battlefield for "];
charskillupgradedesc = [undefined, " damage", "s summon", "s boost", " zombies", "s", "s summon", " damage"];
charskillnumba = [undefined, [undefined, 50, 80, 100], [undefined, 6, 8, 10], [undefined, 10, 15, 20], [undefined, 3, 5, 8], [undefined, 3, 4, 5], [undefined, 20, 25, 30], [undefined, 50, 70, 100]];
charskillstring = [undefined, " HP", "s", "s", " zombies", "s", "s", " DAMAGE"];
charskillcost = [undefined, [undefined, 50, 80, 100], [undefined, 50, 75, 105], [undefined, 70, 110, 135], [undefined, 90, 160, 200], [undefined, 100, 175, 210], [undefined, 125, 150, 180], [undefined, 150, 200, 250]];
charskillcd = [undefined, 30, 25, 30, 50, 50, 30, 55];
zombiename = [undefined, "Citizen", "Mechanic", "Shopping Girl", "Cart", "Doctor", "Thrower", "Mascot", "Digger", "Security", "Basketball player", "Cart Girl", "Train", "Robo", "Riot Robo", "Riot Barrel", "Riot Case"];
zombiesize = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0];
zombiespeed = [undefined, 0.7, 0.7, 0.7, 9, 0.6, 0.7, 2.7, 4, 0.7, 1, 1.6, 0.7, 2, 0, 5, 0];
zombiehp = [undefined, 40, 60, 40, 60, 40, 50, 90, 40, 400, 100, 50, 500, 300, 1000, 150, 100];
zombieatk = [undefined, 10, 10, 10, 30, 10, 20, 0, 10, 100, 10, 20, 0, 20, 15, 40, 1000];
zombiereload = [undefined, 75, 75, 75, 0, 100, 75, 27, 75, 100, 100, 25, 0, 75, 0, 0, 0, 0];
zombiereloadspc = [undefined, 0, 0, 0, 0, 125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
zombiepart = [undefined, [1, 1, 1, 1, 2, 2, 3, 4], [1, 1, 1, 2, 2, 3, 3, 4, 4, 4], [1, 1, 2, 2, 3, 4, 4, 4], [5, 6, 6, 6, 7, 7, 7], [1, 1, 1, 1, 2, 2, 3, 4], [1, 1, 2, 2, 3, 4, 4, 8, 8, 8], [1, 1, 2, 2, 3, 4, 9, 9, 9, 9], [1, 1, 2, 2, 3, 3, 3, 4, 4, 4], [1, 1, 1, 1, 1, 3, 3, 3, 3, 4, 4], [1, 1, 1, 1, 2, 3, 3, 3, 3, 3], [1, 1, 1, 10, 10, 10, 10, 10, 11, 11], [12, 13, 14, 14, 14, 14, 14, 14, 14, 14], [15, 15, 15, 15, 1, 1, 1, 2, 2, 1, 1], [], [], [16, 16, 16, 16, 16, 16]];
zombieequip = [undefined, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
zombierange = [undefined, 1, 1, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 7, 10, 1, 0];
zombiespc = [undefined, "", "Wear steel helmet", "Launch exploding carts", "", "Heal other Zombies", "Throw fruits", "Jump over survivors", "Pop up at the back row", "Wear shade glasses", "Bouncing attack", "Special path", "Bring on multiple Zombies", "Get easily overload", "", "", ""];
zombiecpchance = [undefined, 10, 15, 10, 0, 10, 10, 20, 10, 30, 30, 30, 50, 60, 0, 0, 0];
zombiecpdrop = [undefined, 1, 1, 1, 0, 1, 1, 2, 1, 2, 1, 2, 3, 3, 0, 0, 0];
so = SharedObject.getLocal("ZR");
if (so.size == 0){
mcuibot.mc1.mccleardisabled.visible = true;
} else {
mcuibot.mc1.mccleardisabled.visible = false;
};
mcuibot.mc1.mcclearsave.visible = false;
mcuibot.mc1.btnclear.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuibot.mc1.btnclear.addEventListener(MouseEvent.CLICK, mainmenuclear);
mcuibot.mc1.btncredits.addEventListener(MouseEvent.CLICK, mainmenucredits);
mcuibot.mc1.btncredits.addEventListener(MouseEvent.CLICK, mainmenucredits);
mcuibot.mc1.btncredits.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuibot.mc1.btnplay.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcuibot.mc1.btnplay.addEventListener(MouseEvent.CLICK, mainmenuplay);
loadanimation();
}
function frame6(){
trace(("SKILL REGISTER : " + so.data.skillregister[3]));
mcdarken.visible = true;
mcforeground.mouseChildren = false;
mcforeground.mouseEnabled = false;
mcsurvivorinfo.btngotit.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcsurvivorinfo.btngotit.removeEventListener(MouseEvent.CLICK, survivorinfogotit);
mcsurvivorinfo.btngotit.addEventListener(MouseEvent.CLICK, survivorinfogotit);
mcskillinfo.btngotit.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcskillinfo.btngotit.removeEventListener(MouseEvent.CLICK, skillgotit);
mcskillinfo.btngotit.addEventListener(MouseEvent.CLICK, skillgotit);
ceksoundbutton();
btnmainmenu.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
btnmainmenu.addEventListener(MouseEvent.CLICK, mapselectbackmainmenu);
btnlikefb.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
btnlikefb.addEventListener(MouseEvent.CLICK, mapselectlikefb);
mctutorial.visible = false;
minimapwidth = 555;
minimapskala = (minimapwidth / mcmap.width);
mcmap.x = 0;
mcmap.y = 339.4;
mcforeground.y = 360;
mccloud.y = 79.5;
mapjedok = (((mcmap.width / 2) * -1) + (640 - (mcmap.width / 2)));
mapspeed = 20;
mapgoleft = -1;
pergeseranawan = 0.2;
pergeseranforeground = 2;
oncharanimation = -1;
minimapimage = [];
if ((((so.data.newunit == true)) && (!((so.data.newunitke == -1))))){
loadpremissingperson();
} else {
if (newareake != 0){
loadnewarea();
} else {
loadtutorialmap();
};
loadmapstatus();
loaduimap();
};
trace("TUTORIAL");
}
function frame7(){
stop();
mctutorial.visible = false;
textwarnaijo = new TextFormat();
textwarnaijo.color = 0x9900;
mcdarken.visible = false;
mcbaloonupgrade.visible = false;
survivorindex = 1;
loadtutorialsurvivor();
mcsurvivor.btninfo.removeEventListener(MouseEvent.CLICK, survivorinforclick);
mcsurvivor.btninfo.addEventListener(MouseEvent.CLICK, survivorinforclick);
loadsurvivorui();
}
public function createroboincoming(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = (_arg1.levele / 2);
if (_local2 < 1){
_local2 = 1;
};
_local3 = 0;
while (_local3 < _local2) {
createzombie(16, 1, false, 0, null, false);
_local3++;
};
}
public function survivorupgrade(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
cekachievement(12);
if ((((so.data.fourthtutorial == false)) && ((so.data.fourthtutorialphase == 6)))){
waittutor(15);
};
_local2 = _arg1.currentTarget.parent;
_local3 = {x:452, y:232};
createsparkle(_local3);
soundachievement.play(0, 1, new SoundTransform(volumesfx));
soundmoney.play(0, 1, new SoundTransform(volumesfx));
so.data.goldowned = (so.data.goldowned - _local2.coste);
so.data.charskill[survivorindex] = (so.data.charskill[survivorindex] + 1);
loadsurvivorui();
}
function frame8(){
stop();
mctutorial.visible = false;
mcdarken.visible = false;
mcbaloonupgrade.visible = false;
indexthropy = 0;
thropymaxpage = Math.ceil((achievementdesc.length / 5));
pageke = 1;
loadthropy();
}
function frame9(){
stop();
mctutorial.visible = false;
mcdarken.visible = false;
mcbaloonupgrade.visible = false;
zombiemaxpage = 3;
zombiecurrpage = 1;
zombieindex = 1;
zombieselect = 1;
loadzombieinfo();
}
function frame3(){
stop();
stage.frameRate = 45;
mcag.gotoAndPlay(2);
mcag.buttonMode = true;
mcag.addEventListener(MouseEvent.CLICK, clickAG);
stage.addEventListener(Event.ENTER_FRAME, splash1);
}
public function createnewso(){
var _local1:*;
so.data.lastconversation = false;
so.data.currarea = 0;
so.data.buildingconquered = 0;
so.data.like1 = false;
so.data.like2 = false;
so.data.lastpoint = 0;
so.data.goldowned = 0;
so.data.mapstatus = [];
so.data.maprating = [];
_local1 = 1;
while (_local1 < maplist.length) {
so.data.mapstatus[_local1] = false;
so.data.maprating[_local1] = 0;
_local1++;
};
so.data.firsttutorial = false;
so.data.firsttutorialphase = 1;
so.data.secondtutorial = false;
so.data.secondtutorialphase = 1;
so.data.thirdtutorial = false;
so.data.thirdtutorialphase = 1;
so.data.fourthtutorial = false;
so.data.fourthtutorialphase = 1;
so.data.fifthhtutorial = false;
so.data.fifthhtutorialphase = 1;
so.data.firsttutorialaddon = false;
so.data.firsttutorialaddonphase = 1;
so.data.basecp = 20;
so.data.basecpupgrade = 1;
so.data.flagupgrade = 0;
so.data.zombieunlocked = [];
_local1 = 1;
while (_local1 < zombiename.length) {
so.data.zombieunlocked[_local1] = 0;
_local1++;
};
so.data.newskill = false;
so.data.newunit = false;
so.data.newunitke = -1;
so.data.achievementlevel = [];
so.data.achievementnumba = [];
_local1 = 0;
while (_local1 < achievementlist.length) {
so.data.achievementlevel[_local1] = 0;
so.data.achievementnumba[_local1] = 0;
_local1++;
};
so.data.skillunlocked = [];
so.data.skilllevel = [];
_local1 = 1;
while (_local1 < charskill.length) {
so.data.skillunlocked[_local1] = false;
so.data.skilllevel[_local1] = 1;
_local1++;
};
so.data.skillunlocked[1] = true;
so.data.skillregister = [undefined, 1, undefined];
so.data.charunlocked = [undefined, 1, 0, 0, 0, 0, 0, 0, 0];
so.data.charregister = [undefined, 1, undefined, undefined, undefined, undefined, undefined, undefined];
so.data.charskill = [undefined, 0, 0, 0, 0, 0, 0, 0, 0];
}
public function mapsliderightout(_arg1:MouseEvent):void{
mapgoleft = -1;
stage.removeEventListener(Event.ENTER_FRAME, mapslide);
}
public function superswingwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pausegame == false){
_arg1.currentTarget.play();
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if (unitimage[_local2].die == false){
if (unitimage[_local2].tipe == 3){
if ((((_arg1.currentTarget.hitTestObject(unitimage[_local2].mc1.mcbody) == true)) && ((_arg1.currentTarget.xe == unitimage[_local2].xe)))){
_local3 = cekmasukarray(_arg1.currentTarget.donehit, _local2);
if (_local3 == false){
soundsuperswing.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.donehit[_arg1.currentTarget.donehit.length] = _local2;
if (unitimage[_local2].helmarmor > 0){
_local4 = [soundblock1, soundblock2];
_local4[randRange(0, (_local4.length - 1))].play(0, 1, new SoundTransform(volumesfx));
cekarmordrop(unitimage[_local2], 1);
} else {
_local4 = [soundbullet1, soundbullet2, soundbullet3];
_local4[randRange(0, (_local4.length - 1))].play(0, 1, new SoundTransform(volumesfx));
unitimage[_local2].hp = (unitimage[_local2].hp - _arg1.currentTarget.damage);
};
unitimage[_local2].gotoAndPlay(2);
if (unitimage[_local2].hp <= 0){
unitimage[_local2].die = true;
};
if (unitimage[_local2].charke != 4){
createblood(unitimage[_local2]);
};
};
};
};
};
};
_local2++;
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local5 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, superswingwaiting);
removeChild(bulletimage[_local5]);
bulletimage[_local5] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function loadtutorialmap(){
if (so.data.firsttutorial == true){
if (so.data.secondtutorial == false){
so.data.secondtutorialphase = 1;
waittutor(25);
} else {
if ((((so.data.fourthtutorial == false)) && ((so.data.newunit == true)))){
loadmapunlocked();
so.data.fourthtutorialphase = 1;
waittutor(25);
} else {
if (soundchannelbgm == null){
soundchannelbgm = soundsplash.play(0, 999, new SoundTransform(volumebgm));
loadmapunlocked();
};
};
};
};
}
public function cekslideplus(){
if (mcmap.x <= 0){
if (mcmap.x >= 0){
mcmap.x = 0;
} else {
mcmap.x = (mcmap.x + mapspeed);
mccloud.x = (mccloud.x + (mapspeed * pergeseranawan));
mcforeground.x = (mcforeground.x + (mapspeed * pergeseranforeground));
};
};
}
public function createspcthis(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:Number;
var _local6:Number;
if (_arg1.charke == 5){
_local2 = -2;
while (_local2 <= 2) {
if (((((_arg1.ye + _local2) > 0)) && (((_arg1.ye + _local2) < 12)))){
_local3 = tilesimage[_arg1.xe][int((int(_arg1.ye) + int(_local2)))];
skillimage[skillimage.length] = new (charzombie5bubble);
addChildAt(skillimage[(skillimage.length - 1)], getChildIndex(unitposition));
skillimage[(skillimage.length - 1)].xe = _arg1.xe;
skillimage[(skillimage.length - 1)].x = _arg1.x;
skillimage[(skillimage.length - 1)].y = (_arg1.y - 40);
skillimage[(skillimage.length - 1)].indexke = (skillimage.length - 1);
skillimage[(skillimage.length - 1)].targetku = _local3;
skillimage[(skillimage.length - 1)].phase = 1;
skillimage[(skillimage.length - 1)].g = 2;
_local4 = (((_local3.x - skillimage[(skillimage.length - 1)].x) * 2) / 30);
skillimage[(skillimage.length - 1)].ux = _local4;
skillimage[(skillimage.length - 1)].uy = -17;
skillimage[(skillimage.length - 1)].blendMode = "hardlight";
skillimage[(skillimage.length - 1)].addEventListener(Event.ENTER_FRAME, healbubblewaiting);
};
_local2++;
};
};
}
public function createmapprogress2(_arg1:Object){
mcmapprogress.visible = true;
mcmapprogress.mc1.bossnya = _arg1;
mcmapprogress.mc1.width = 1;
mcmapprogress.mchead.x = (82 - mcmapprogress.mc1.width);
mcmapprogress.mc2.visible = false;
mcmapprogress.mchead2.visible = false;
mcmapprogress.mc1.speed = 50;
mcmapprogress.mc1.targete = (158 * (_arg1.hp / _arg1.hptemp));
mcmapprogress.mc1.penambahan = ((mcmapprogress.mc1.targete - mcmapprogress.mc1.width) / mcmapprogress.mc1.speed);
stage.addEventListener(Event.ENTER_FRAME, mapprogressmove2);
}
public function outcharpanel(_arg1:MouseEvent):void{
mcskillbaloon2.visible = false;
if (_arg1.currentTarget.ready == true){
_arg1.currentTarget.gotoAndStop(3);
};
}
public function clickAGfb(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.facebook.com/ArmorGames");
navigateToURL(_local2);
}
public function createzombiepop(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = tilesimage[_arg1.xe][(_arg1.ye + 3)];
_local3 = 0;
while (_local3 < 5) {
createzombie(2, 1, false, 0, _local2, true);
_local3++;
};
}
public function tutorialclick(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
if (oncharanimation != -1){
if (oncharanimation == 2){
if (mctutorial.currentFrame == 35){
mctutorial.visible = false;
bwatmcstagedone();
} else {
mctutorial.nextFrame();
};
} else {
if (oncharanimation == 3){
if (mctutorial.currentFrame == 46){
mctutorial.visible = false;
bwatmcstagedone();
} else {
mctutorial.nextFrame();
};
} else {
if (oncharanimation == 4){
if (mctutorial.currentFrame == 58){
mctutorial.visible = false;
bwatmcstagedone();
} else {
mctutorial.nextFrame();
};
} else {
if (oncharanimation == 5){
if (mctutorial.currentFrame == 66){
mctutorial.visible = false;
bwatmcstagedone();
} else {
mctutorial.nextFrame();
};
} else {
if (oncharanimation == 6){
if (mctutorial.currentFrame == 76){
mctutorial.visible = false;
bwatmcstagedone();
} else {
mctutorial.nextFrame();
};
} else {
if (oncharanimation == 7){
if (mctutorial.currentFrame == 85){
mctutorial.visible = false;
bwatmcstagedone();
} else {
mctutorial.nextFrame();
};
};
};
};
};
};
};
} else {
if ((((so.data.secondtutorial == false)) && ((currentLabel == "map")))){
if (so.data.secondtutorialphase == 2){
if (mctutorial.currentFrame == 25){
so.data.secondtutorialphase = 3;
mctutorial.nextFrame();
} else {
mctutorial.nextFrame();
};
};
} else {
if ((((so.data.firsttutorial == false)) && ((currentLabel == "ingame")))){
if (so.data.firsttutorialphase == 1){
if (mctutorial.currentFrame == 7){
pausegame = false;
so.data.firsttutorialphase = 2;
mctutorial.nextFrame();
} else {
mctutorial.nextFrame();
};
} else {
if (so.data.firsttutorialphase == 5){
if (mctutorial.currentFrame == 14){
pausegame = false;
so.data.firsttutorialphase = 6;
mctutorial.visible = false;
waveready();
} else {
mctutorial.nextFrame();
};
} else {
if (so.data.firsttutorialphase == 8){
if (mctutorial.currentFrame == 17){
so.data.firsttutorial = true;
pausegame = false;
so.data.firsttutorialphase = 9;
mctutorial.visible = false;
} else {
mctutorial.nextFrame();
};
};
};
};
} else {
if ((((so.data.firsttutorialaddon == false)) && ((currentLabel == "ingame")))){
if (so.data.firsttutorialaddonphase == 1){
mctutorial.nextFrame();
if (mctutorial.currentFrame == 69){
so.data.firsttutorialaddonphase = 2;
loadskillfunction();
mcui.mcskill1.cd = 0;
mcui.mcskill1.mcdoor.gotoAndPlay(2);
mcui.mcskill1.mcpetengan.gotoAndStop(100);
mcui.mcskill1.mcselected.gotoAndPlay(2);
};
};
} else {
if ((((so.data.thirdtutorial == false)) && ((currentLabel == "ingame")))){
if (mctutorial.currentFrame == 30){
pausegame = false;
so.data.thirdtutorial = true;
mctutorial.visible = false;
waveready();
} else {
mctutorial.nextFrame();
};
} else {
if ((((so.data.fourthtutorial == false)) && ((currentLabel == "map")))){
mctutorial.nextFrame();
if (mctutorial.currentFrame == 38){
so.data.fourthtutorialphase = 3;
} else {
if (mctutorial.currentFrame == 41){
so.data.fourthtutorial = true;
mctutorial.visible = false;
};
};
} else {
if ((((so.data.fourthtutorial == false)) && ((currentLabel == "survivor")))){
mctutorial.nextFrame();
if (mctutorial.currentFrame == 41){
so.data.fourthtutorial = true;
mctutorial.visible = false;
};
} else {
if ((((so.data.fifthhtutorial == false)) && ((currentLabel == "ingame")))){
if (mctutorial.currentFrame == 51){
pausegame = false;
so.data.fifthhtutorial = true;
mctutorial.visible = false;
waveready();
};
mctutorial.nextFrame();
} else {
if ((((so.data.lastconversation == false)) && ((currentLabel == "ingame")))){
if (mctutorial.currentFrame == 106){
pausegame = false;
so.data.lastconversation = true;
mctutorial.visible = false;
waveready();
} else {
mctutorial.nextFrame();
};
};
};
};
};
};
};
};
};
};
}
public function mapunlockedyeah(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcunlocked.gotoAndStop(1);
loadtutorialmap();
loadminimap();
}
public function createchoosesurvivorfollow(){
stage.addEventListener(Event.ENTER_FRAME, choosesurvivorwaiting);
stage.addEventListener(MouseEvent.MOUSE_UP, choosesurvivorwaitingup);
}
public function loadskillui(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 <= 3) {
_local2 = mcui.getChildByName(("mcskill" + _local1));
_local2.mcpetengan.visible = false;
if (so.data.skillregister[_local1] != undefined){
if ((((((mapke == 1)) && ((_local1 == 1)))) && ((so.data.firsttutorial == false)))){
_local2.mcdoor.gotoAndStop(2);
_local2.gotoAndStop(1);
} else {
if ((((((mapke == 1)) && (!((_local1 == 1))))) && ((so.data.firsttutorial == false)))){
_local2.gotoAndStop(1);
} else {
_local2.mcdoor.gotoAndStop(2);
_local2.gotoAndStop(so.data.skillregister[_local1]);
};
};
} else {
_local2.gotoAndStop("locked");
};
_local1++;
};
}
public function createmapprogress(){
mcmapprogress.visible = true;
mcmapprogress.mchead.x = (82 - mcmapprogress.mc1.width);
mcmapprogress.mc1.tampungpenambahan = 0;
mcmapprogress.mc1.phase = 1;
mcmapprogress.mc1.timee = 25;
mcmapprogress.mc1.speed = ((((waveke / (mapwave[mapke].length - 1)) * 158) - mcmapprogress.mc1.width) / 25);
createshadowbar(0);
stage.addEventListener(Event.ENTER_FRAME, mapprogressmove);
}
public function mainmenucleanup(){
mcanimation.mc1.mczombie1.removeEventListener(Event.ENTER_FRAME, zombiewalking);
mcanimation.mc1.mczombie2.removeEventListener(Event.ENTER_FRAME, zombiewalking);
stage.removeEventListener(Event.ENTER_FRAME, waitforsong);
}
public function createshadow(_arg1:Object){
shadowimage[shadowimage.length] = new (charshadow);
addChildAt(shadowimage[(shadowimage.length - 1)], getChildIndex(shadowposition));
shadowimage[(shadowimage.length - 1)].indexke = (shadowimage.length - 1);
shadowimage[(shadowimage.length - 1)].ownere = _arg1;
if ((((_arg1.tipe == 3)) && ((_arg1.charke == 12)))){
shadowimage[(shadowimage.length - 1)].gotoAndStop(2);
};
shadowimage[(shadowimage.length - 1)].x = _arg1.x;
shadowimage[(shadowimage.length - 1)].y = _arg1.y;
shadowimage[(shadowimage.length - 1)].addEventListener(Event.ENTER_FRAME, shadowwaiting);
}
public function unitsort(_arg1:Event){
var _local2:*;
var _local3:*;
if (pausegame == false){
sorttime--;
if (sorttime < 0){
sorttime = 25;
_local2 = [];
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if (unitimage[_local3].tipe != 4){
_local2[_local2.length] = unitimage[_local3];
};
};
_local3++;
};
_local3 = 0;
while (_local3 < civilianimage.length) {
if (civilianimage[_local3] != null){
_local2[_local2.length] = civilianimage[_local3];
};
_local3++;
};
_local2.sortOn("y", Array.NUMERIC);
_local3 = 0;
while (_local3 < _local2.length) {
addChildAt(_local2[_local3], (getChildIndex(unitposition) - 1));
_local3++;
};
};
};
}
public function bullet1movement(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pausegame == false){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speed);
_arg1.currentTarget.sparktime--;
if (_arg1.currentTarget.sparktime < 0){
_arg1.currentTarget.sparktime = sparktime;
createbulletspark(_arg1.currentTarget, 1);
};
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if ((((unitimage[_local2].die == false)) && ((unitimage[_local2].digphase == 3)))){
if (unitimage[_local2].tipe == 3){
if (unitimage[_local2].xe == _arg1.currentTarget.xe){
if ((((_arg1.currentTarget.hitTestObject(unitimage[_local2].mc1.mcbody) == true)) && ((_arg1.currentTarget.donehit == false)))){
unitimage[_local2].x = (unitimage[_local2].x + _arg1.currentTarget.pback);
if (unitimage[_local2].ye < 12){
if (unitimage[_local2].mc1.mcbody.hitTestObject(tilesimage[unitimage[_local2].xe][(unitimage[_local2].ye + 1)]) == true){
unitimage[_local2].ye++;
};
};
soundbullethit1.play(0, 1, new SoundTransform(volumesfx));
cekenemyreaction(_local2, _arg1.currentTarget);
break;
};
};
};
};
};
_local2++;
};
if (_arg1.currentTarget.donehit == false){
if (_arg1.currentTarget.x > 640){
_arg1.currentTarget.donehit = true;
};
} else {
_local3 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet1movement);
removeChild(bulletimage[_local3]);
bulletimage[_local3] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function loadskill(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 <= 7) {
_local2 = mcskillinfobg.getChildByName(("mcskill" + _local1));
_local2.mcpetengan.visible = false;
_local2.ke = _local1;
_local2.buttonMode = true;
if (skillselect != _local1){
_local2.mcselected.gotoAndStop(1);
} else {
_local2.mcselected.gotoAndPlay(2);
loadskillini();
};
_local2.removeEventListener(MouseEvent.CLICK, skillclick);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, skillover);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, skillout);
if (so.data.skillunlocked[_local1] == true){
_local2.gotoAndStop(_local1);
_local2.addEventListener(MouseEvent.CLICK, skillclick);
_local2.addEventListener(MouseEvent.MOUSE_OVER, skillover);
_local2.addEventListener(MouseEvent.MOUSE_OUT, skillout);
} else {
_local2.gotoAndStop("locked");
};
_local1++;
};
}
public function createfrozenair(){
var _local1:*;
soundfreeze.play(0, 1, new SoundTransform(volumesfx));
mcfrozenair.mouseChildren = false;
mcfrozenair.mouseEnabled = false;
mcfrozenair.gotoAndPlay(2);
onfrozenair = true;
onfrozenairtime = (charskillnumba[5][so.data.skilllevel[5]] * 25);
_local1 = 0;
while (_local1 < unitimage.length) {
if (unitimage[_local1] != null){
if ((((unitimage[_local1].die == false)) && (!((unitimage[_local1].digphase == 1))))){
if (unitimage[_local1].tipe == 3){
unitimage[_local1].stuntime = (charskillnumba[5][so.data.skilllevel[5]] * 25);
};
};
};
_local1++;
};
}
public function loadzombieinfo(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = (4 * zombiecurrpage);
_local2 = [];
_local3 = 1;
while (_local3 < zombiename.length) {
if (((((((!((_local3 == 4))) && (!((_local3 == 13))))) && (!((_local3 == 14))))) && (!((_local3 == 15))))){
_local1--;
if (_local1 < 0){
break;
} else {
if (_local1 < 4){
_local2[_local2.length] = _local3;
};
};
};
_local3++;
};
trace(("hasile : " + _local2));
mczombieinfo.mczombiepanel.mc1.gotoAndStop(zombieselect);
mczombieinfo.mczombiepanel.mc2.gotoAndStop(zombieselect);
mczombieinfo.mczombiepanel.txthp.text = zombiehp[zombieselect];
mczombieinfo.mczombiepanel.txtatk.text = zombieatk[zombieselect];
if (zombiespc[zombieselect] == ""){
mczombieinfo.mczombiepanel.mcskill.gotoAndStop(2);
mczombieinfo.mczombiepanel.mcskill.mc1.txt1.text = "NOTHING SPECIAL";
} else {
mczombieinfo.mczombiepanel.mcskill.gotoAndStop(1);
mczombieinfo.mczombiepanel.mcskill.mc1.txt1.text = zombiespc[zombieselect];
};
_local4 = 1;
_local3 = 0;
while (_local3 < 4) {
_local5 = mczombieinfo.getChildByName(("mcchar" + _local4));
_local5.mc1.mc1.gotoAndStop(_local2[_local3]);
_local5.buttonMode = true;
_local5.gotoAndStop(1);
if (zombieselect == _local2[_local3]){
_local5.mcselected.gotoAndPlay(2);
} else {
_local5.mcselected.gotoAndStop(1);
};
_local5.removeEventListener(MouseEvent.CLICK, zombieclick);
_local5.removeEventListener(MouseEvent.MOUSE_OVER, zombieover);
_local5.removeEventListener(MouseEvent.MOUSE_OUT, zombieout);
if (so.data.zombieunlocked[_local2[_local3]] == 1){
_local5.mc1.gotoAndStop(2);
_local5.zombieke = _local2[_local3];
_local5.addEventListener(MouseEvent.CLICK, zombieclick);
_local5.addEventListener(MouseEvent.MOUSE_OVER, zombieover);
_local5.addEventListener(MouseEvent.MOUSE_OUT, zombieout);
} else {
_local5.mc1.gotoAndStop(1);
};
_local4++;
_local3++;
};
if (zombiecurrpage == zombiemaxpage){
mczombieinfo.btnnext.visible = false;
mczombieinfo.btnprev.visible = true;
} else {
if (zombiecurrpage == 1){
mczombieinfo.btnnext.visible = true;
mczombieinfo.btnprev.visible = false;
} else {
mczombieinfo.btnnext.visible = true;
mczombieinfo.btnprev.visible = true;
};
};
mczombieinfo.txtpage.text = ((("PAGE " + zombiecurrpage) + "/") + zombiemaxpage);
mczombieinfo.btnprev.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mczombieinfo.btnprev.removeEventListener(MouseEvent.CLICK, zombieinfoprev);
mczombieinfo.btnprev.addEventListener(MouseEvent.CLICK, zombieinfoprev);
mczombieinfo.btnnext.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mczombieinfo.btnnext.removeEventListener(MouseEvent.CLICK, zombieinfonext);
mczombieinfo.btnnext.addEventListener(MouseEvent.CLICK, zombieinfonext);
mczombieinfo.btnback.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mczombieinfo.btnback.removeEventListener(MouseEvent.CLICK, zombieinfoback);
mczombieinfo.btnback.addEventListener(MouseEvent.CLICK, zombieinfoback);
}
public function minimapcamerafollow(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:Point;
var _local6:*;
var _local7:*;
_local2 = (mcminimapcamera.width / 2);
_local3 = (66 + _local2);
_local4 = (616 - _local2);
if ((((mcminimapcamera.x < (_local3 + 5))) || ((mcminimapcamera.x > (_local4 - 5))))){
if (mcminimapcamera.x < (_local3 + 5)){
mcminimapcamera.x = (_local3 + 6);
} else {
mcminimapcamera.x = (_local4 - 6);
};
stage.removeEventListener(Event.ENTER_FRAME, minimapcamerafollow);
stage.removeEventListener(MouseEvent.MOUSE_UP, adjustminimapup);
} else {
_local5 = new Point(mouseX, mouseY);
mcminimapcamera.x = mouseX;
if (mcminimapcamera.x < _local3){
mcminimapcamera.x = _local3;
};
_local6 = ((_local5.x - _local3) / 552);
_local7 = mapspeed;
mapspeed = (mcmap.width * _local6);
mcmap.x = 0;
mccloud.x = 0;
mcforeground.x = 0;
if (mapspeed > 0){
mcmap.x = (mcmap.x - mapspeed);
mccloud.x = (mccloud.x - (mapspeed * pergeseranawan));
mcforeground.x = (mcforeground.x - (mapspeed * pergeseranforeground));
if (mcmap.x <= mapjedok){
mcmap.x = mapjedok;
};
} else {
mcmap.x = (mcmap.x + mapspeed);
mccloud.x = (mccloud.x + (mapspeed * pergeseranawan));
mcforeground.x = (mcforeground.x + (mapspeed * pergeseranforeground));
if (mcmap.x >= 0){
mcmap.x = 0;
};
};
mapspeed = _local7;
so.data.lastpoint = mcmap.x;
loadminimapcamera();
loaddarken();
};
}
public function cpwaiting(_arg1:Event){
var _local2:*;
if (pausegame == false){
_arg1.currentTarget.waitfor--;
if ((((_arg1.currentTarget.waitfor <= 0)) && (!((_arg1.currentTarget.currentLabel == "fade"))))){
_arg1.currentTarget.gotoAndPlay("fade");
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local2 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, cpwaiting);
removeChild(cpimage[_local2]);
cpimage[_local2] = null;
};
};
}
public function thropyback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
gotoAndStop("map");
}
public function createrpgexplodingeffect(_arg1:Object):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
createsharpnel(_arg1);
_local2 = _arg1.damage;
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if ((((unitimage[_local3].die == false)) && ((unitimage[_local3].digphase == 3)))){
if (unitimage[_local3].tipe == 3){
_local4 = (_arg1.xe + 1);
_local5 = (_arg1.xe - 1);
_local6 = (_arg1.ye + 1);
_local7 = (_arg1.ye - 1);
trace(((("cek : " + unitimage[_local3].xe) + " ") + unitimage[_local3].ye));
trace(((((((("ini : " + _local4) + " ") + _local5) + " ") + _local6) + " ") + _local7));
if ((((unitimage[_local3].xe == _arg1.xe)) && ((unitimage[_local3].ye == _arg1.ye)))){
_arg1.damage = _local2;
cekenemyreaction(_local3, _arg1);
} else {
if ((((((((unitimage[_local3].xe >= (_arg1.xe - 1))) && ((unitimage[_local3].xe <= (_arg1.xe + 1))))) && ((unitimage[_local3].ye >= (_arg1.ye - 1))))) && ((unitimage[_local3].ye <= (_arg1.ye + 1))))){
_arg1.damage = int((_local2 / 2));
cekenemyreaction(_local3, _arg1);
};
};
};
};
};
_local3++;
};
soundexplode.play(0, 1, new SoundTransform(volumesfx));
effectimage[effectimage.length] = new (fxrpgexplosion);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function flagwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
if (pausegame == false){
if (waveke > 0){
_arg1.currentTarget.generatetime--;
};
if (_arg1.currentTarget.currentFrame == 1){
_local3 = (1 - (_arg1.currentTarget.generatetime / _arg1.currentTarget.generatetimetemp));
_local4 = (20 * _local3);
_arg1.currentTarget.mcflag.y = (-29 - _local4);
};
if (_arg1.currentTarget.generatetime < 0){
if (_arg1.currentTarget.ready == true){
_arg1.currentTarget.generatetime = flaggenerate;
_arg1.currentTarget.generatetimetemp = _arg1.currentTarget.generatetime;
} else {
_arg1.currentTarget.generatetime = flaggeneratenot;
_arg1.currentTarget.generatetimetemp = _arg1.currentTarget.generatetime;
};
_arg1.currentTarget.gotoAndPlay(2);
soundcp.play(0, 1, new SoundTransform(volumesfx));
generatecp(_arg1.currentTarget, false);
};
_local2 = false;
_local5 = -1;
while (_local5 <= 1) {
_local6 = -1;
while (_local6 <= 1) {
if ((((((((((_local5 == -1)) && ((_local6 == 0)))) || ((((_local5 == 0)) && ((_local6 == 1)))))) || ((((_local5 == 1)) && ((_local6 == 0)))))) || ((((_local5 == 0)) && ((_local6 == -1)))))){
_local7 = (_arg1.currentTarget.xe + _local5);
_local8 = (_arg1.currentTarget.ye + _local6);
if ((((((((_local7 >= 1)) && ((_local8 >= 1)))) && ((_local7 <= 6)))) && ((_local8 <= 11)))){
if (unitpositioned[_local7][_local8] == 1){
_local2 = true;
//unresolved jump
};
};
};
_local6++;
};
_local5++;
};
if ((((_local2 == false)) && ((_arg1.currentTarget.ready == true)))){
_local3 = (1 - (_arg1.currentTarget.generatetime / _arg1.currentTarget.generatetimetemp));
_local9 = (flaggeneratenot * _local3);
_arg1.currentTarget.generatetime = int((flaggeneratenot - _local9));
_arg1.currentTarget.generatetimetemp = flaggeneratenot;
flagowned--;
_arg1.currentTarget.ready = false;
_arg1.currentTarget.mcflag.visible = false;
_arg1.currentTarget.mcflag.y = -29;
} else {
if ((((_local2 == true)) && ((_arg1.currentTarget.ready == false)))){
_local3 = (1 - (_arg1.currentTarget.generatetime / _arg1.currentTarget.generatetimetemp));
_local9 = (flaggenerate * _local3);
_arg1.currentTarget.generatetime = int((flaggenerate - _local9));
_arg1.currentTarget.generatetimetemp = flaggenerate;
_arg1.currentTarget.mcflag.visible = true;
soundflag.play(0, 1, new SoundTransform(volumesfx));
cekachievement(8);
flagowned++;
_local10 = {x:(_arg1.currentTarget.x + 25), y:(_arg1.currentTarget.y - 60)};
createsparkle(_local10);
_arg1.currentTarget.ready = true;
};
};
};
}
public function mapslideright(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
if (so.data.secondtutorial == true){
mapgoleft = false;
stage.addEventListener(Event.ENTER_FRAME, mapslide);
};
}
public function activatethischarpanel(_arg1:Object){
var _local2:*;
if ((((readygame == true)) || ((((readygame == false)) && ((so.data.firsttutorial == false)))))){
_local2 = _arg1.name;
_local2 = _local2.charAt((_local2.length - 1));
trace(((((("CEK : " + mcmouse.currentFrame) + " ") + mcmouse.mc1.currentFrame) + " ") + so.data.charregister[_local2]));
if ((((mcmouse.currentFrame == 2)) && ((mcmouse.mc1.currentFrame == so.data.charregister[_local2])))){
donemouse();
createavailabletiles(false);
} else {
cekclickchar(_local2);
};
};
}
public function createthrowingobject(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Number;
var _local9:Number;
_local2 = false;
_local3 = [];
_local4 = 0;
while (_local4 < unitimage.length) {
if (unitimage[_local4] != null){
if (unitimage[_local4].die == false){
if (unitimage[_local4].tipe == 2){
if (unitimage[_local4].xe == _arg1.xe){
if ((((((unitimage[_local4].x >= (_arg1.x - (_arg1.range * 60)))) && ((unitimage[_local4].x < _arg1.x)))) && ((unitimage[_local4].ye <= _arg1.ye)))){
_local3[_local3.length] = unitimage[_local4];
_local2 = true;
};
};
};
};
};
_local4++;
};
_local5 = "";
_local3.sortOn("x", (Array.NUMERIC | Array.DESCENDING));
_local5 = _local3[0];
_local3 = _local5;
if (_local2 == true){
if (_arg1.charke == 6){
_local6 = [soundswing1, soundswing2];
_local6[randRange(0, (_local6.length - 1))].play(0, 1, new SoundTransform(volumesfx));
bulletimage[bulletimage.length] = new (fxfruit);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.xe;
bulletimage[(bulletimage.length - 1)].x = (_arg1.x - 25);
bulletimage[(bulletimage.length - 1)].y = (_arg1.y - 60);
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].targetku = _local3;
bulletimage[(bulletimage.length - 1)].indextargetku = _local3.indexke;
bulletimage[(bulletimage.length - 1)].atk = _arg1.atk;
bulletimage[(bulletimage.length - 1)].batasy = tilesimage[_arg1.xe][_arg1.ye].y;
trace(("batas ku : " + bulletimage[(bulletimage.length - 1)].batasy));
bulletimage[(bulletimage.length - 1)].phase = 1;
bulletimage[(bulletimage.length - 1)].g = 2;
_local7 = (((_local3.x - bulletimage[(bulletimage.length - 1)].x) * 2) / 30);
bulletimage[(bulletimage.length - 1)].ux = _local7;
bulletimage[(bulletimage.length - 1)].uy = -15;
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, throwingfruitwaiting);
} else {
if ((((_arg1.charke == 13)) || ((_arg1.charke == 14)))){
soundgunsound.play(0, 1, new SoundTransform(volumesfx));
createsplatter(_arg1, 2);
bulletimage[bulletimage.length] = new (fxrobomissile);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.xe;
if (_arg1.charke == 14){
bulletimage[(bulletimage.length - 1)].x = (_arg1.x - 90);
bulletimage[(bulletimage.length - 1)].y = ((_arg1.y - 32) + randRange(-20, 20));
} else {
bulletimage[(bulletimage.length - 1)].x = (_arg1.x - 40);
bulletimage[(bulletimage.length - 1)].y = (_arg1.y - 60);
};
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].targetku = _local3;
bulletimage[(bulletimage.length - 1)].indextargetku = _local3.indexke;
bulletimage[(bulletimage.length - 1)].atk = _arg1.atk;
bulletimage[(bulletimage.length - 1)].donehit = false;
bulletimage[(bulletimage.length - 1)].sparktime = sparktime;
bulletimage[(bulletimage.length - 1)].speed = 20;
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, robomissilewaiting);
} else {
if (_arg1.charke == 10){
_local6 = [soundswing1, soundswing2];
_local6[randRange(0, (_local6.length - 1))].play(0, 1, new SoundTransform(volumesfx));
bulletimage[bulletimage.length] = new (fxballthrow);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.xe;
bulletimage[(bulletimage.length - 1)].x = (_arg1.x - 39);
bulletimage[(bulletimage.length - 1)].y = (_arg1.y - 91);
bulletimage[(bulletimage.length - 1)].xe = _arg1.xe;
bulletimage[(bulletimage.length - 1)].ye = _arg1.ye;
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].targetku = _local3;
bulletimage[(bulletimage.length - 1)].indextargetku = _local3.indexke;
bulletimage[(bulletimage.length - 1)].atk = _arg1.atk;
bulletimage[(bulletimage.length - 1)].batasy = tilesimage[_arg1.xe][_arg1.ye].y;
trace(("batas ku : " + bulletimage[(bulletimage.length - 1)].batasy));
bulletimage[(bulletimage.length - 1)].phase = 1;
bulletimage[(bulletimage.length - 1)].g = 2;
_local7 = (((_local3.x - bulletimage[(bulletimage.length - 1)].x) * 2) / 30);
bulletimage[(bulletimage.length - 1)].ux = _local7;
bulletimage[(bulletimage.length - 1)].uy = -15;
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, basketballwaiting);
};
};
};
};
}
public function createzbodypart(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = [soundsplat2, soundsplat3, soundsplat3, soundsplat4, soundsplat5, soundsplat6, soundsplat7];
_local2[randRange(0, (_local2.length - 1))].play(0, 1, new SoundTransform(volumesfx));
_local3 = 0;
while (_local3 < zombiepart[_arg1.charke].length) {
_local4 = [fxbodypart1, fxbodypart2, fxbodypart3, fxbodypart4, fxbodypart5, fxbodypart6, fxbodypart7];
effectimage[effectimage.length] = new (_local4[randRange(1, (_local4.length - 1))]);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = (_arg1.x + randRange(-20, 20));
effectimage[(effectimage.length - 1)].y = (_arg1.y + randRange(-30, -60));
if (zombiepart[_arg1.charke][_local3] == 1){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(1, 6));
} else {
if (zombiepart[_arg1.charke][_local3] == 2){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(7);
} else {
if (zombiepart[_arg1.charke][_local3] == 3){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(8, 12));
} else {
if (zombiepart[_arg1.charke][_local3] == 4){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(13, 31));
} else {
if (zombiepart[_arg1.charke][_local3] == 5){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(50);
} else {
if (zombiepart[_arg1.charke][_local3] == 6){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(51, 53));
} else {
if (zombiepart[_arg1.charke][_local3] == 7){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(54);
} else {
if (zombiepart[_arg1.charke][_local3] == 8){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(55, 59));
} else {
if (zombiepart[_arg1.charke][_local3] == 9){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(60, 62));
} else {
if (zombiepart[_arg1.charke][_local3] == 10){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(63, 66));
} else {
if (zombiepart[_arg1.charke][_local3] == 11){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(67);
} else {
if (zombiepart[_arg1.charke][_local3] == 12){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(68);
} else {
if (zombiepart[_arg1.charke][_local3] == 13){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(69);
} else {
if (zombiepart[_arg1.charke][_local3] == 14){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(70, 76));
} else {
if (zombiepart[_arg1.charke][_local3] == 15){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(32, 36));
} else {
if (zombiepart[_arg1.charke][_local3] == 16){
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(randRange(37, 41));
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
_local3++;
};
}
public function cekpatch(){
var _local1:*;
if (so.data.lastconversation == undefined){
so.data.lastconversation = false;
};
if (so.data.mapstatus.length < maplist.length){
_local1 = 1;
while (_local1 < maplist.length) {
if (so.data.mapstatus[_local1] == undefined){
so.data.mapstatus[_local1] = false;
so.data.maprating[_local1] = 0;
};
_local1++;
};
};
if (so.data.skillunlocked.length < charskill.length){
_local1 = 1;
while (_local1 < charskill.length) {
if (so.data.skillunlocked[_local1] == undefined){
so.data.skillunlocked[_local1] = false;
so.data.skilllevel[_local1] = 1;
};
_local1++;
};
};
_local1 = 1;
while (_local1 < charskill.length) {
if (so.data.skilllevel[_local1] == 0){
so.data.skilllevel[_local1] = 1;
};
_local1++;
};
if (so.data.achievementlevel.length < achievementlist.length){
_local1 = 1;
while (_local1 < achievementlist.length) {
if (so.data.achievementlevel[_local1] == undefined){
so.data.achievementlevel[_local1] = 0;
so.data.achievementnumba[_local1] = 0;
};
_local1++;
};
};
_local1 = 1;
while (_local1 < so.data.achievementlevel.length) {
if ((((so.data.achievementlevel[_local1] == undefined)) || (isNaN(so.data.achievementlevel[_local1])))){
so.data.achievementlevel[_local1] = 0;
};
if ((((so.data.achievementnumba[_local1] == undefined)) || (isNaN(so.data.achievementnumba[_local1])))){
so.data.achievementnumba[_local1] = 0;
};
_local1++;
};
so.data.basecp = 0;
_local1 = 1;
while (_local1 < so.data.charunlocked.length) {
if (so.data.charunlocked[_local1] == true){
so.data.basecp = (so.data.basecp + charbasecp[_local1]);
};
_local1++;
};
if (so.data.like1 == undefined){
so.data.like1 = false;
so.data.like2 = false;
};
if (so.data.currarea == undefined){
so.data.currarea = 0;
};
if (so.data.fifthhtutorial == undefined){
so.data.fifthhtutorial = false;
so.data.fifthhtutorialphase = 1;
};
}
public function createbarrelexplosion(_arg1:Object){
var _local2:*;
soundsharpnelbomb.play(0, 1, new SoundTransform(volumesfx));
effectimage[effectimage.length] = new (fxsharpnelexplosion);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].xe = _arg1.xe;
effectimage[(effectimage.length - 1)].ye = _arg1.ye;
effectimage[(effectimage.length - 1)].damage = _arg1.atk;
effectimage[(effectimage.length - 1)].x = tilesimage[_arg1.xe][_arg1.ye].x;
effectimage[(effectimage.length - 1)].y = tilesimage[_arg1.xe][_arg1.ye].y;
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2] != null){
if (unitimage[_local2].die == false){
if ((((unitimage[_local2].tipe == 2)) || ((unitimage[_local2].tipe == 3)))){
if ((((unitimage[_local2].xe == _arg1.xe)) && ((((unitimage[_local2].ye >= (_arg1.ye - 1))) && ((unitimage[_local2].ye <= (_arg1.ye + 1))))))){
if (unitimage[_local2].tipe == 2){
trace(("DIKURANGI : " + _arg1.atk));
unitimage[_local2].gotoAndPlay(2);
unitimage[_local2].hp = (unitimage[_local2].hp - _arg1.atk);
cekunitreaction(_local2);
} else {
cekenemyreaction(_local2, _arg1);
};
};
};
};
};
_local2++;
};
}
public function gametime(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pausegame == false){
if (onfrozenair == true){
onfrozenairtime--;
if (onfrozenairtime <= 0){
mcfrozenair.gotoAndStop(1);
onfrozenair = false;
};
};
if (mapke != 29){
_local2 = false;
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if ((((unitimage[_local3].die == false)) && ((unitimage[_local3].digphase == 3)))){
if ((((((unitimage[_local3].xe == 1)) || ((unitimage[_local3].xe == 2)))) && ((((unitimage[_local3].ye <= 12)) && ((unitimage[_local3].ye >= 8)))))){
_local2 = true;
mcmapprogress.alpha = 0.5;
};
};
};
_local3++;
};
if (_local2 == false){
mcmapprogress.alpha = 1;
};
if (wavegametime == true){
nextwavewait--;
if (nextwavewait <= 0){
waitnextwave();
};
};
};
if (((!((mapke == 1))) || ((((mapke == 1)) && ((so.data.firsttutorialaddon == true)))))){
_local3 = 1;
while (_local3 <= 3) {
_local4 = mcui.getChildByName(("mcskill" + _local3));
if (so.data.skillregister[_local3] != undefined){
_local4.mcpetengan.visible = true;
if (_local4.cd <= 0){
if (_local4.mcselected.currentFrame == 1){
_local4.mcselected.gotoAndPlay(2);
};
_local4.mcpetengan.gotoAndStop(100);
} else {
_local4.cd--;
_local4.mcselected.gotoAndStop(1);
_local5 = (1 - (_local4.cd / (charskillcd[so.data.skillregister[_local3]] * 25)));
_local4.mcpetengan.gotoAndStop(int((_local5 * 100)));
};
} else {
_local4.mcpetengan.visible = false;
};
_local3++;
};
};
};
}
public function mapthropy(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
cleanupmap();
gotoAndStop("thropy");
}
public function mapselectbackmainmenu(_arg1:MouseEvent):void{
if (soundchannelbgm != null){
soundchannelbgm.stop();
soundchannelbgm = null;
};
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
soundchannelbgm2 = null;
};
soundclick.play(0, 1, new SoundTransform(volumesfx));
cleanupmap();
gotoAndStop("main menu");
}
public function createnewz(_arg1:int){
mcnewz.charke = _arg1;
mcnewz.gotoAndPlay(2);
soundtutorial.play(0, 1, new SoundTransform(volumesfx));
mcnewz.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcnewz.removeEventListener(MouseEvent.CLICK, loadztutorial);
mcnewz.addEventListener(MouseEvent.CLICK, loadztutorial);
}
public function skillclick(_arg1:MouseEvent){
_arg1.currentTarget.mcselected.gotoAndPlay(2);
skillselect = _arg1.currentTarget.ke;
loadskill();
}
public function createboomerangsparkle(_arg1:Object){
effectimage[effectimage.length] = new (boomerangmissilesparkle);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = (_arg1.x - 3);
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].alpha = 0.8;
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mc1.gotoAndStop(_arg1.currentFrame);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function loadthropy(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
if (pageke == thropymaxpage){
mcthropy.btnnext.visible = false;
mcthropy.btnprev.visible = true;
} else {
if (pageke == 1){
mcthropy.btnnext.visible = true;
mcthropy.btnprev.visible = false;
} else {
mcthropy.btnnext.visible = true;
mcthropy.btnprev.visible = true;
};
};
_local1 = 1;
_local2 = indexthropy;
while (_local2 < (indexthropy + 5)) {
_local3 = mcthropy.getChildByName(("mcthropy" + _local1));
trace(("ha : " + achievementlist[_local2]));
if (achievementlist[_local2] == undefined){
_local3.visible = false;
} else {
_local3.visible = true;
trace(("a " + so.data.achievementlevel[_local2]));
if (so.data.achievementlevel[_local2] > (achievementlist[_local2].length - 1)){
_local3.txt2.text = "COMPLETED";
_local3.txt1.text = achievementlist[_local2][(so.data.achievementlevel[_local2] - 1)];
} else {
_local6 = 0;
_local7 = 0;
if (so.data.achievementlevel[_local2] > 0){
_local6 = achievementnumba[_local2][(so.data.achievementlevel[_local2] - 1)];
_local8 = (so.data.achievementlevel[_local2] - 1);
while (_local8 >= 0) {
_local7 = (_local7 + achievementnumba[_local2][_local8]);
_local8--;
};
};
trace(((("sjmlh : " + _local6) + " ") + so.data.achievementnumba[_local2]));
_local3.txt2.text = ((((achievementdesc[_local2] + " ") + int((int(_local6) + int(so.data.achievementnumba[_local2])))) + "/") + int((int(achievementnumba[_local2][so.data.achievementlevel[_local2]]) + int(_local7))));
_local3.txt1.text = achievementlist[_local2][so.data.achievementlevel[_local2]];
};
trace("b");
_local4 = false;
_local5 = 1;
while (_local5 <= 3) {
_local9 = _local3.getChildByName(("mcthropy" + _local5));
trace("c");
if ((_local5 - 1) < achievementlist[_local2].length){
_local9.visible = true;
if (so.data.achievementlevel[_local2] > (_local5 - 1)){
_local9.gotoAndStop(2);
} else {
if (so.data.achievementlevel[_local2] == (_local5 - 1)){
_local9.gotoAndStop(1);
} else {
_local9.gotoAndStop(3);
};
};
} else {
_local9.visible = false;
};
_local5++;
};
_local1++;
};
_local2++;
};
mcthropy.txtpage.text = ((("PAGE " + pageke) + "/") + thropymaxpage);
mcthropy.btnprev.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcthropy.btnprev.removeEventListener(MouseEvent.CLICK, thropyprev);
mcthropy.btnprev.addEventListener(MouseEvent.CLICK, thropyprev);
mcthropy.btnnext.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcthropy.btnnext.removeEventListener(MouseEvent.CLICK, thropynext);
mcthropy.btnnext.addEventListener(MouseEvent.CLICK, thropynext);
mcthropy.btnback.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcthropy.btnback.removeEventListener(MouseEvent.CLICK, thropyback);
mcthropy.btnback.addEventListener(MouseEvent.CLICK, thropyback);
}
public function ingamepause(_arg1:MouseEvent){
bwatingamepause();
}
public function stagedonemap(_arg1:MouseEvent):void{
if (soundchannelbgm != null){
soundchannelbgm.stop();
soundchannelbgm = null;
};
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
soundchannelbgm2 = null;
};
soundclick.play(0, 1, new SoundTransform(volumesfx));
so.data.firsttutorial = true;
cleanup();
if (mapke == 29){
gotoAndStop("ending");
} else {
gotoAndStop("map");
};
}
public function mapselectlikefb(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
loadlikefb();
}
public function mainmenuplay(_arg1:MouseEvent):void{
if (soundchannelbgm != null){
soundchannelbgm.stop();
soundchannelbgm = null;
};
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
soundchannelbgm2 = null;
};
soundclick.play(0, 1, new SoundTransform(volumesfx));
if (so.size == 0){
createnewso();
mainmenucleanup();
gotoAndStop("ingame");
} else {
mainmenucleanup();
if (so.data.buildingconquered == 0){
createnewso();
cekpatch();
gotoAndStop("ingame");
} else {
cekpatch();
gotoAndStop("map");
};
};
}
public function likefbback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcfreecoin.gotoAndStop(1);
}
public function loadskillfunction(){
var _local1:*;
var _local2:*;
trace("LOAD SKILL FUNCTION");
_local1 = 1;
while (_local1 <= 3) {
_local2 = mcui.getChildByName(("mcskill" + _local1));
if (so.data.skillregister[_local1] != undefined){
_local2.mcdoor.gotoAndPlay(2);
_local2.buttonMode = true;
_local2.cd = (charskillcd[so.data.skillregister[_local1]] * 25);
_local2.skillke = so.data.skillregister[_local1];
_local2.addEventListener(MouseEvent.CLICK, skillactivate);
_local2.addEventListener(MouseEvent.MOUSE_OVER, ingameskillover);
_local2.addEventListener(MouseEvent.MOUSE_OUT, ingameskillout);
};
_local1++;
};
}
public function overcharpanel(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
mcskillbaloon2.visible = true;
if (_arg1.currentTarget.tipeku == "choosetop"){
_local7 = 173;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
mcskillbaloon2.x = (165 + ((_local2 - 1) * 65));
mcskillbaloon2.y = 113;
_local3 = _local2;
} else {
if (_arg1.currentTarget.tipeku == "choosebot"){
_local7 = 226;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
mcskillbaloon2.x = (225 + ((_local2 - 1) * 65));
mcskillbaloon2.y = 289;
_local3 = so.data.charregister[_local2];
} else {
if (_arg1.currentTarget.tipeku == "uibot"){
if (_arg1.currentTarget.ready == true){
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.gotoAndStop(4);
};
_local7 = [undefined, 191, 259, 323, 394, 463];
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
mcskillbaloon2.x = _local7[_local2];
mcskillbaloon2.y = 387;
_local3 = so.data.charregister[_local2];
};
};
};
mcskillbaloon2.txt1.text = charlist[_local3];
_local4 = chardamage[_local3];
_local5 = charhp[_local3];
_local6 = charreload[_local3];
if (_local3 == 2){
_local5 = (_local5 + skillnumba[_local3][so.data.charskill[_local3]]);
} else {
if (_local3 == 6){
_local4 = (_local4 + skillnumba[_local3][so.data.charskill[_local3]]);
};
};
mcskillbaloon2.txthp.text = _local5;
mcskillbaloon2.txtatk.text = _local4;
mcskillbaloon2.txtspd.text = (int((_local6 / 25)) + "s");
trace(("SKILL LVL : " + so.data.charskill[_local3]));
if (so.data.charskill[_local3] > 0){
mcskillbaloon2.txt2.text = (((skilldesc[_local3] + " ") + skillnumba[_local3][so.data.charskill[_local3]]) + skillstring[_local3]);
} else {
mcskillbaloon2.txt2.text = "";
};
}
public function bullet8movement(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
_arg1.currentTarget.play();
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.movex);
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
createsharpnelexplosion(_arg1.currentTarget);
_local2 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet8movement);
removeChild(bulletimage[_local2]);
bulletimage[_local2] = null;
};
} else {
_arg1.currentTarget.stop();
};
}
public function loadmapstatus(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcmap.getChildByName(("btnlinkag" + _local1));
_local2.addEventListener(MouseEvent.CLICK, clickAG);
_local1++;
};
mcmap.btnlinkek.addEventListener(MouseEvent.CLICK, clickEK);
trace(("BUILDING CONQUERED : " + so.data.buildingconquered));
_local1 = 1;
while (_local1 < maplist.length) {
_local2 = mcmap.getChildByName(("mcbuilding" + _local1));
_local2.mc1.mc1.gotoAndStop(maplist[_local1]);
if (so.data.mapstatus[_local1] == true){
if (so.data.maprating[_local1] == 2){
_local2.mc1.mc1.gotoAndStop(3);
} else {
_local2.mc1.mc1.gotoAndStop(4);
};
};
_local2.buildingke = _local1;
if (_local1 > (so.data.buildingconquered + 1)){
_local2.mc1.visible = false;
_local2.removeEventListener(MouseEvent.MOUSE_OVER, overforsound);
_local2.removeEventListener(MouseEvent.CLICK, mapbuildingclick);
} else {
_local2.mc1.visible = true;
_local2.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
_local2.addEventListener(MouseEvent.CLICK, mapbuildingclick);
};
_local1++;
};
btnprev.removeEventListener(MouseEvent.MOUSE_OVER, mapslideleft);
btnnext.removeEventListener(MouseEvent.MOUSE_OVER, mapslideright);
btnprev.addEventListener(MouseEvent.MOUSE_OVER, mapslideleft);
btnnext.addEventListener(MouseEvent.MOUSE_OVER, mapslideright);
btnprev.removeEventListener(MouseEvent.MOUSE_OUT, mapslideleftout);
btnnext.removeEventListener(MouseEvent.MOUSE_OUT, mapsliderightout);
btnprev.addEventListener(MouseEvent.MOUSE_OUT, mapslideleftout);
btnnext.addEventListener(MouseEvent.MOUSE_OUT, mapsliderightout);
loaddarken();
loadminimap();
if (so.data.lastpoint != 0){
loadposition();
};
}
public function charwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Number;
var _local7:Number;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
if (pausegame == false){
if (_arg1.currentTarget.deafduration >= 0){
_arg1.currentTarget.deafduration--;
if (_arg1.currentTarget.currentLabel != "deaf"){
_arg1.currentTarget.mc1.stop();
_arg1.currentTarget.gotoAndStop("deaf");
};
if (_arg1.currentTarget.deafduration <= 0){
_arg1.currentTarget.deafduration = -1;
_arg1.currentTarget.gotoAndStop(1);
};
} else {
if (_arg1.currentTarget.charke == 2){
if (_arg1.currentTarget.mc1.currentLabel != "attack"){
_arg1.currentTarget.mc1.play();
};
if ((((((((_arg1.currentTarget.mc1.currentLabel == "idle1")) || ((_arg1.currentTarget.mc1.currentLabel == "idle2")))) || ((_arg1.currentTarget.mc1.currentLabel == "idle3")))) || ((_arg1.currentTarget.mc1.currentLabel == "attack")))){
_local2 = false;
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if (unitimage[_local3].die == false){
if ((((unitimage[_local3].tipe == 3)) && ((unitimage[_local3].ye < 12)))){
if ((((unitimage[_local3].xe == _arg1.currentTarget.xe)) && ((unitimage[_local3].ye >= _arg1.currentTarget.ye)))){
if (unitimage[_local3].x < (_arg1.currentTarget.x + (_arg1.currentTarget.range * 65))){
_local2 = true;
break;
};
};
};
};
};
_local3++;
};
if ((((_local2 == false)) && ((_arg1.currentTarget.mc1.currentLabel == "attack")))){
_arg1.currentTarget.mc1.gotoAndPlay("idle1");
} else {
if ((((_local2 == true)) && ((((((_arg1.currentTarget.mc1.currentLabel == "idle1")) || ((_arg1.currentTarget.mc1.currentLabel == "idle2")))) || ((_arg1.currentTarget.mc1.currentLabel == "idle3")))))){
_arg1.currentTarget.mc1.gotoAndStop("attack");
};
};
};
} else {
if ((((((((((((_arg1.currentTarget.charke == 1)) || ((_arg1.currentTarget.charke == 3)))) || ((_arg1.currentTarget.charke == 4)))) || ((_arg1.currentTarget.charke == 5)))) || ((_arg1.currentTarget.charke == 6)))) || ((_arg1.currentTarget.charke == 7)))){
if (_arg1.currentTarget.blitzkriegtime >= 0){
_arg1.currentTarget.blitzkriegtime--;
if (_arg1.currentTarget.mcblitzkrieg.currentFrame == 1){
_arg1.currentTarget.mcblitzkrieg.gotoAndPlay(2);
};
if (_arg1.currentTarget.blitzkriegtime <= 0){
_arg1.currentTarget.blitzkriegtime = -1;
_arg1.currentTarget.mcblitzkrieg.gotoAndStop(1);
_arg1.currentTarget.damage = (_arg1.currentTarget.damage - int((_arg1.currentTarget.damage / 2)));
_arg1.currentTarget.reload = (_arg1.currentTarget.reload + int((charreload[_arg1.currentTarget.charke] / 2)));
_arg1.currentTarget.reloadtemp = (_arg1.currentTarget.reloadtemp + int((charreload[_arg1.currentTarget.charke] / 2)));
};
};
_arg1.currentTarget.mc1.play();
if (_arg1.currentTarget.mc1.currentLabel == "bullet7"){
_local4 = "";
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if ((((unitimage[_local3].die == false)) && ((unitimage[_local3].digphase == 3)))){
if ((((((unitimage[_local3].xe == _arg1.currentTarget.xe)) && ((unitimage[_local3].x < (_arg1.currentTarget.x + (_arg1.currentTarget.range * 65)))))) && ((unitimage[_local3].ye >= _arg1.currentTarget.ye)))){
if ((((unitimage[_local3].tipe == 3)) && ((unitimage[_local3].ye <= 11)))){
_local4 = unitimage[_local3];
break;
};
};
};
};
_local3++;
};
if (_local4 != ""){
soundsuperswingsummon.play(0, 1, new SoundTransform(volumesfx));
createsplatter(_arg1.currentTarget, 1);
bulletimage[bulletimage.length] = new (fxrpgball);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].x = (_arg1.currentTarget.x + 47);
bulletimage[(bulletimage.length - 1)].damage = _arg1.currentTarget.damage;
bulletimage[(bulletimage.length - 1)].y = (_arg1.currentTarget.y - 82);
bulletimage[(bulletimage.length - 1)].sparktime = sparktime;
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].xe = _local4.xe;
bulletimage[(bulletimage.length - 1)].ye = _local4.ye;
bulletimage[(bulletimage.length - 1)].targetku = _local4;
bulletimage[(bulletimage.length - 1)].indextargetku = _local4.indexke;
bulletimage[(bulletimage.length - 1)].batasy = tilesimage[_local4.xe][_local4.ye].y;
bulletimage[(bulletimage.length - 1)].sharpnelamount = skillnumba[_arg1.currentTarget.charke][so.data.charskill[_arg1.currentTarget.charke]];
bulletimage[(bulletimage.length - 1)].phase = 1;
bulletimage[(bulletimage.length - 1)].g = 1.5;
_local5 = (((_local4.x - bulletimage[(bulletimage.length - 1)].x) * 2) / 50);
bulletimage[(bulletimage.length - 1)].ux = _local5;
bulletimage[(bulletimage.length - 1)].uy = -15;
bulletimage[(bulletimage.length - 1)].blendMode = "hardlight";
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet7movement);
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "bullet1"){
_local8 = [bullet1, bullet2, bullet3];
effectimage[effectimage.length] = new (_local8[randRange(0, (_local8.length - 1))]);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = (_arg1.currentTarget.x + 10);
effectimage[(effectimage.length - 1)].y = (_arg1.currentTarget.y - 70);
effectimage[(effectimage.length - 1)].bulletbool = true;
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "bullet4"){
soundpowerup.play(0, 1, new SoundTransform(volumesfx));
bulletimage[bulletimage.length] = new (fxlightinglazer1);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.currentTarget.xe;
bulletimage[(bulletimage.length - 1)].ye = _arg1.currentTarget.ye;
bulletimage[(bulletimage.length - 1)].x = _arg1.currentTarget.x;
bulletimage[(bulletimage.length - 1)].damage = (_arg1.currentTarget.damage + skillnumba[_arg1.currentTarget.charke][so.data.charskill[_arg1.currentTarget.charke]]);
bulletimage[(bulletimage.length - 1)].y = _arg1.currentTarget.y;
bulletimage[(bulletimage.length - 1)].range = _arg1.currentTarget.range;
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].hitlist = [];
bulletimage[(bulletimage.length - 1)].donehit = false;
bulletimage[(bulletimage.length - 1)].blendMode = "hardlight";
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet5movement);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "bullet3"){
createsplatterice(_arg1.currentTarget);
bulletimage[bulletimage.length] = new (fxicebulletmissile);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.currentTarget.xe;
bulletimage[(bulletimage.length - 1)].ye = _arg1.currentTarget.ye;
bulletimage[(bulletimage.length - 1)].x = (_arg1.currentTarget.x + 45);
bulletimage[(bulletimage.length - 1)].damage = _arg1.currentTarget.damage;
bulletimage[(bulletimage.length - 1)].sparktime = sparktime;
bulletimage[(bulletimage.length - 1)].y = (_arg1.currentTarget.y - 50);
bulletimage[(bulletimage.length - 1)].freezechance = 0;
bulletimage[(bulletimage.length - 1)].gotoAndStop(1);
soundfrostgun.play(0, 1, new SoundTransform(volumesfx));
bulletimage[(bulletimage.length - 1)].gotoAndStop(2);
bulletimage[(bulletimage.length - 1)].freezechance = skillnumba[_arg1.currentTarget.charke][so.data.charskill[_arg1.currentTarget.charke]];
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].speed = 20;
bulletimage[(bulletimage.length - 1)].donehit = false;
bulletimage[(bulletimage.length - 1)].blendMode = "hardlight";
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet3movement);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "bullet2"){
bulletimage[bulletimage.length] = new (boomerangmissile);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.currentTarget.xe;
bulletimage[(bulletimage.length - 1)].ye = _arg1.currentTarget.ye;
bulletimage[(bulletimage.length - 1)].x = (_arg1.currentTarget.x + 30);
bulletimage[(bulletimage.length - 1)].damage = _arg1.currentTarget.damage;
bulletimage[(bulletimage.length - 1)].y = (_arg1.currentTarget.y - 22);
bulletimage[(bulletimage.length - 1)].hittimes = skillnumba[_arg1.currentTarget.charke][so.data.charskill[_arg1.currentTarget.charke]];
bulletimage[(bulletimage.length - 1)].statee = "forward";
bulletimage[(bulletimage.length - 1)].stateetime = antonioboomerangtime;
bulletimage[(bulletimage.length - 1)].enemyhit = [];
bulletimage[(bulletimage.length - 1)].sparktime = sparktime;
bulletimage[(bulletimage.length - 1)].gotoAndPlay(1);
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].speed = 8;
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet2movement);
};
};
};
};
};
if (_arg1.currentTarget.mc1.currentLabel == "melee1"){
_local9 = false;
if (so.data.charskill[_arg1.currentTarget.charke] > 0){
_local8 = randRange(0, 100);
if (_local8 < skillnumba[_arg1.currentTarget.charke][so.data.charskill[_arg1.currentTarget.charke]]){
_local9 = true;
soundsuperswingsummon.play(0, 1, new SoundTransform(volumesfx));
bulletimage[bulletimage.length] = new (fxsuperswing);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].x = _arg1.currentTarget.x;
bulletimage[(bulletimage.length - 1)].y = _arg1.currentTarget.y;
bulletimage[(bulletimage.length - 1)].blendMode = "hardlight";
bulletimage[(bulletimage.length - 1)].damage = _arg1.currentTarget.damage;
bulletimage[(bulletimage.length - 1)].xe = _arg1.currentTarget.xe;
bulletimage[(bulletimage.length - 1)].donehit = [];
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, superswingwaiting);
};
};
_local10 = false;
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if ((((unitimage[_local3].die == false)) && ((unitimage[_local3].digphase == 3)))){
if ((((unitimage[_local3].tipe == 3)) && ((unitimage[_local3].ye < 12)))){
if ((((unitimage[_local3].xe == _arg1.currentTarget.xe)) && ((unitimage[_local3].ye >= _arg1.currentTarget.ye)))){
if (unitimage[_local3].x < (_arg1.currentTarget.x + (_arg1.currentTarget.range * 65))){
_local8 = [soundironbat1, soundironbat2];
_local8[randRange(0, (_local8.length - 1))].play(0, 1, new SoundTransform(volumesfx));
if (unitimage[_local3].helmarmor > 0){
cekarmordrop(unitimage[_local3], 100);
} else {
if (_local10 == false){
unitimage[_local3].hp = (unitimage[_local3].hp - _arg1.currentTarget.damage);
unitimage[_local3].gotoAndPlay(2);
if (unitimage[_local3].hp <= 0){
unitimage[_local3].die = true;
};
createblood(unitimage[_local3]);
};
_local10 = true;
};
};
};
};
};
};
_local3++;
};
};
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload < 0){
_local3 = 0;
while (_local3 < unitimage.length) {
if (unitimage[_local3] != null){
if ((((unitimage[_local3].die == false)) && ((unitimage[_local3].digphase == 3)))){
if ((((unitimage[_local3].tipe == 3)) && ((unitimage[_local3].ye <= 11)))){
if (_arg1.currentTarget.charke == 6){
_local11 = _arg1.currentTarget.range;
_local12 = _arg1.currentTarget.xe;
_local13 = _arg1.currentTarget.ye;
if ((((((unitimage[_local3].xe >= (_local12 - _local11))) && ((unitimage[_local3].xe <= (_local12 + _local11))))) && (((((((unitimage[_local3].ye + unitimage[_local3].sizee) >= (_local13 - _local11))) && (((unitimage[_local3].ye + unitimage[_local3].sizee) <= (_local13 + _local11))))) || (((((unitimage[_local3].ye + unitimage[_local3].sizee) >= (_local13 - _local11))) && ((unitimage[_local3].ye <= (_local13 + _local11))))))))){
_arg1.currentTarget.mc1.gotoAndPlay("attack");
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
};
} else {
if ((((unitimage[_local3].xe == _arg1.currentTarget.xe)) && ((unitimage[_local3].ye >= _arg1.currentTarget.ye)))){
if (unitimage[_local3].x < (_arg1.currentTarget.x + (_arg1.currentTarget.range * 65))){
if (_arg1.currentTarget.charke != 3){
if (_arg1.currentTarget.charke == 1){
createsplatter(_arg1.currentTarget, 1);
_local9 = false;
if (so.data.charskill[_arg1.currentTarget.charke] > 0){
_local8 = randRange(0, 100);
if (_local8 < skillnumba[_arg1.currentTarget.charke][so.data.charskill[_arg1.currentTarget.charke]]){
_local9 = true;
};
};
bulletimage[bulletimage.length] = new (bulletmissile);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.currentTarget.xe;
bulletimage[(bulletimage.length - 1)].ye = _arg1.currentTarget.ye;
bulletimage[(bulletimage.length - 1)].x = (_arg1.currentTarget.x - 20);
bulletimage[(bulletimage.length - 1)].damage = _arg1.currentTarget.damage;
bulletimage[(bulletimage.length - 1)].y = (_arg1.currentTarget.y - 50);
bulletimage[(bulletimage.length - 1)].pback = 0;
bulletimage[(bulletimage.length - 1)].sparktime = sparktime;
bulletimage[(bulletimage.length - 1)].gotoAndStop(1);
if (_local9 == true){
soundgunsound.play(0, 1, new SoundTransform(volumesfx));
bulletimage[(bulletimage.length - 1)].gotoAndStop(2);
bulletimage[(bulletimage.length - 1)].pback = marrionpback;
} else {
_local8 = [soundgun1, soundgun2];
_local8[randRange(0, (_local8.length - 1))].play(0, 1, new SoundTransform(volumesfx));
};
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].speed = 20;
bulletimage[(bulletimage.length - 1)].donehit = false;
bulletimage[(bulletimage.length - 1)].blendMode = "hardlight";
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet1movement);
};
} else {
_local8 = [soundswing1, soundswing2];
_local8[randRange(0, (_local8.length - 1))].play(0, 1, new SoundTransform(volumesfx));
};
_arg1.currentTarget.mc1.gotoAndPlay("attack");
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
break;
};
};
};
};
};
};
_local3++;
};
};
};
};
};
} else {
_arg1.currentTarget.mc1.stop();
};
}
public function waitforsong(_arg1:Event):void{
if (mcuitop.currentLabel == "slide"){
sounddoorslide.play(0, 1, new SoundTransform(volumesfx));
};
if (mcanimation.currentLabel == "song"){
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
};
soundchannelbgm2 = soundfire.play(0, 999, new SoundTransform(volumebgm));
stage.removeEventListener(Event.ENTER_FRAME, waitforsong);
soundchannelbgm = soundmainmenu.play(0, 999, new SoundTransform(volumebgm));
so.flush(10000);
};
}
public function skillactivate(_arg1:MouseEvent):void{
if (onskillke == _arg1.currentTarget.skillke){
onskillke = 0;
donemouse();
createavailabletiles(false);
} else {
cekactivateskill(_arg1.currentTarget);
};
}
public function mapsurvivor(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
trace(("hm" + so.data.fourthtutorialphase));
if ((((so.data.fourthtutorial == false)) && ((so.data.fourthtutorialphase == 3)))){
mctutorial.visible = false;
so.data.fourthtutorialphase = 4;
};
so.data.newunit = false;
cleanupmap();
gotoAndStop("survivor");
}
public function electricpolewaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
if (pausegame == false){
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
_local2 = _arg1.currentTarget.xe;
_local3 = _arg1.currentTarget.ye;
_local4 = [];
_local5 = [];
_local6 = 1;
_local7 = (_local2 - _local6);
while (_local7 <= (_local2 + _local6)) {
_local9 = (_local3 - _local6);
while (_local9 <= (_local3 + _local6)) {
if ((((_local7 > 0)) && ((_local7 < 7)))){
if ((((_local9 > 0)) && ((_local9 < 13)))){
_local4[_local4.length] = _local7;
_local5[_local5.length] = _local9;
};
};
_local9++;
};
_local7++;
};
_local8 = false;
_local10 = 0;
while (_local10 < unitimage.length) {
if (unitimage[_local10] != null){
if ((((unitimage[_local10].die == false)) && ((unitimage[_local10].digphase == 3)))){
if (unitimage[_local10].tipe == 3){
_local11 = 0;
while (_local11 < _local4.length) {
if ((((unitimage[_local10].xe == _local4[_local11])) && ((unitimage[_local10].ye == _local5[_local11])))){
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
_arg1.currentTarget.gotoAndPlay(2);
createlightingorb(_arg1.currentTarget, unitimage[_local10]);
//unresolved jump
};
_local11++;
};
};
};
};
_local10++;
};
};
_arg1.currentTarget.forhowlong--;
if (_arg1.currentTarget.forhowlong <= 0){
unitinimati(_arg1.currentTarget);
};
};
}
public function createchar(_arg1:Object, _arg2:int){
var _local3:*;
var _local4:*;
_local3 = [undefined, charmarrion, charjim, chargordon, charantonio, charnevera, charzack, charknight, "", charpole, charbarrel, ingametilespecial, ingametilespecial, ingametilespecial, charironwood, undefined, undefined, charelectricpole];
unitimage[unitimage.length] = new (_local3[_arg2]);
if ((((((_arg2 == 11)) || ((_arg2 == 12)))) || ((_arg2 == 13)))){
addChildAt(unitimage[(unitimage.length - 1)], getChildIndex(specialtileposition));
} else {
addChildAt(unitimage[(unitimage.length - 1)], getChildIndex(unitposition));
};
unitimage[(unitimage.length - 1)].indexke = (unitimage.length - 1);
unitimage[(unitimage.length - 1)].xe = _arg1.xe;
unitimage[(unitimage.length - 1)].ye = _arg1.ye;
unitimage[(unitimage.length - 1)].x = (_arg1.x + (_arg1.width / 2));
unitimage[(unitimage.length - 1)].y = (_arg1.y + (_arg1.height / 2));
unitimage[(unitimage.length - 1)].die = false;
unitimage[(unitimage.length - 1)].charke = _arg2;
if (_arg2 == 9){
unitimage[(unitimage.length - 1)].mcflag.visible = false;
unitimage[(unitimage.length - 1)].tipe = 1;
unitimage[(unitimage.length - 1)].ready = false;
unitimage[(unitimage.length - 1)].generatetime = flaggeneratenot;
unitimage[(unitimage.length - 1)].generatetimetemp = unitimage[(unitimage.length - 1)].generatetime;
unitimage[(unitimage.length - 1)].y = (unitimage[(unitimage.length - 1)].y - 1);
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, flagwaiting);
} else {
if (_arg2 == 11){
unitimage[(unitimage.length - 1)].tipe = 4;
tilesimage[_arg1.xe][_arg1.ye].buff = "atk";
unitimage[(unitimage.length - 1)].mc1.gotoAndStop(1);
} else {
if (_arg2 == 12){
unitimage[(unitimage.length - 1)].tipe = 4;
tilesimage[_arg1.xe][_arg1.ye].buff = "hp";
unitimage[(unitimage.length - 1)].mc1.gotoAndStop(2);
} else {
if (_arg2 == 13){
unitimage[(unitimage.length - 1)].tipe = 4;
tilesimage[_arg1.xe][_arg1.ye].buff = "spd";
unitimage[(unitimage.length - 1)].mc1.gotoAndStop(3);
} else {
if (_arg2 == 10){
unitimage[(unitimage.length - 1)].tipe = 2;
unitimage[(unitimage.length - 1)].hp = barrelhp;
unitimage[(unitimage.length - 1)].hptemp = unitimage[(unitimage.length - 1)].hp;
unitimage[(unitimage.length - 1)].x = (unitimage[(unitimage.length - 1)].x + (-17 + ((1 - (_arg1.xe / 6)) * 29)));
} else {
if (_arg2 == 14){
unitimage[(unitimage.length - 1)].y = (unitimage[(unitimage.length - 1)].y - 10);
trace("cREATE IRON WOOD");
unitpositioned[_arg1.xe][_arg1.ye] = 2;
unitimage[(unitimage.length - 1)].tipe = 2;
unitimage[(unitimage.length - 1)].hp = 99999999;
unitimage[(unitimage.length - 1)].forhowlong = (charskillnumba[2][so.data.skilllevel[2]] * 25);
unitimage[(unitimage.length - 1)].hptemp = unitimage[(unitimage.length - 1)].hp;
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("incoming");
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, ironwoodwaiting);
} else {
if (_arg2 == 17){
unitimage[(unitimage.length - 1)].x;
unitimage[(unitimage.length - 1)].y = (unitimage[(unitimage.length - 1)].y - 10);
trace("cREATE ELECTRIC POLE");
unitimage[(unitimage.length - 1)].tipe = 5;
unitimage[(unitimage.length - 1)].damage = electricpoledamage;
unitimage[(unitimage.length - 1)].reload = 0;
unitimage[(unitimage.length - 1)].reloadtemp = electricpolereload;
unitimage[(unitimage.length - 1)].forhowlong = (charskillnumba[6][so.data.skilllevel[6]] * 25);
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, electricpolewaiting);
} else {
unitimage[(unitimage.length - 1)].mcblitzkrieg.gotoAndStop(1);
cekachievement(_arg2);
unitimage[(unitimage.length - 1)].tipe = 2;
unitpositioned[_arg1.xe][_arg1.ye] = 1;
unitimage[(unitimage.length - 1)].hp = charhp[_arg2];
unitimage[(unitimage.length - 1)].hptemp = unitimage[(unitimage.length - 1)].hp;
if ((((_arg2 == 2)) && ((so.data.charskill[_arg2] > 0)))){
trace(("tambai : " + skillnumba[_arg2][so.data.charskill[_arg2]]));
unitimage[(unitimage.length - 1)].hp = (unitimage[(unitimage.length - 1)].hp + skillnumba[_arg2][so.data.charskill[_arg2]]);
};
unitimage[(unitimage.length - 1)].damage = chardamage[_arg2];
unitimage[(unitimage.length - 1)].range = charrange[_arg2];
unitimage[(unitimage.length - 1)].reload = 0;
unitimage[(unitimage.length - 1)].reloadtemp = charreload[_arg2];
unitimage[(unitimage.length - 1)].deafduration = -1;
unitimage[(unitimage.length - 1)].blitzkriegtime = -1;
_local4 = false;
if (tilesimage[_arg1.xe][_arg1.ye].buff == "atk"){
trace("BUFF ATK");
_local4 = true;
unitimage[(unitimage.length - 1)].damage = (unitimage[(unitimage.length - 1)].damage * 2);
trace(("ATK JADI " + unitimage[(unitimage.length - 1)].damage));
unitimage[(unitimage.length - 1)].mcbuff.mc1.gotoAndStop(1);
} else {
if (tilesimage[_arg1.xe][_arg1.ye].buff == "hp"){
trace("BUFF HP");
_local4 = true;
unitimage[(unitimage.length - 1)].hp = (unitimage[(unitimage.length - 1)].hp * 2);
trace(("HP JADI " + unitimage[(unitimage.length - 1)].hp));
unitimage[(unitimage.length - 1)].mcbuff.mc1.gotoAndStop(2);
} else {
if (tilesimage[_arg1.xe][_arg1.ye].buff == "spd"){
trace("BUFF SPD");
_local4 = true;
unitimage[(unitimage.length - 1)].reloadtemp = (unitimage[(unitimage.length - 1)].reloadtemp / 2);
if (unitimage[(unitimage.length - 1)].reloadtemp < minreload){
unitimage[(unitimage.length - 1)].reloadtemp = minreload;
};
trace(("SPD JADI " + unitimage[(unitimage.length - 1)].reloadtemp));
unitimage[(unitimage.length - 1)].mcbuff.mc1.gotoAndStop(3);
};
};
};
if (_local4 == true){
unitimage[(unitimage.length - 1)].mcbuff.gotoAndPlay(2);
} else {
unitimage[(unitimage.length - 1)].mcbuff.gotoAndStop(1);
};
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, charwaiting);
};
};
};
};
};
};
};
unitimage[(unitimage.length - 1)].mouseEnabled = false;
unitimage[(unitimage.length - 1)].mouseChildren = false;
createshadow(unitimage[(unitimage.length - 1)]);
}
public function createiceeffect(_arg1:Object){
effectimage[effectimage.length] = new (fxicecubesummary3);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function bwatmcstagedone(){
if (volumebgm != 0){
volumebgm = 1;
};
soundchannelbgm.stop();
soundchannelbgm = null;
trace("a");
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
soundchannelbgm2 = null;
};
trace("b");
if (hpowned <= 0){
soundlose.play(0, 1, new SoundTransform(volumesfx));
} else {
soundlevelcomplete.play(0, 1, new SoundTransform(volumesfx));
};
mctutorial.visible = false;
trace("c");
mcstagedone.gotoAndPlay(2);
mcstagedone.btnmap.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcstagedone.btnmap.removeEventListener(MouseEvent.CLICK, stagedonemap);
mcstagedone.btnmap.addEventListener(MouseEvent.CLICK, stagedonemap);
trace("d");
stage.addEventListener(Event.ENTER_FRAME, waitstagedone);
}
public function loadtiles(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = [];
_local2 = 1;
while (_local2 <= 6) {
tilesimage[_local2] = [];
unitpositioned[_local2] = [];
_local3 = 1;
while (_local3 <= 12) {
tilesimage[_local2][_local3] = new (imagetile);
addChildAt(tilesimage[_local2][_local3], getChildIndex(tilesposition));
tilesimage[_local2][_local3].x = ((_local3 - 1) * 60);
tilesimage[_local2][_local3].y = ((_local2 - 1) * 60);
tilesimage[_local2][_local3].xe = _local2;
tilesimage[_local2][_local3].ye = _local3;
tilesimage[_local2][_local3].buff = "";
tilesimage[_local2][_local3].buttonMode = true;
tilesimage[_local2][_local3].addEventListener(MouseEvent.CLICK, clicktiles);
if (mapposition[mapke][_local2][_local3] == 2){
trace(((_local2 + " ") + _local3));
createchar(tilesimage[_local2][_local3], 9);
unitpositioned[_local2][_local3] = 2;
} else {
if (mapposition[mapke][_local2][_local3] == 3){
trace(((_local2 + " ") + _local3));
createchar(tilesimage[_local2][_local3], 10);
unitpositioned[_local2][_local3] = 2;
} else {
if (mapposition[mapke][_local2][_local3] == 4){
createchar(tilesimage[_local2][_local3], 11);
unitpositioned[_local2][_local3] = 0;
} else {
if (mapposition[mapke][_local2][_local3] == 5){
createchar(tilesimage[_local2][_local3], 12);
unitpositioned[_local2][_local3] = 0;
} else {
if (mapposition[mapke][_local2][_local3] == 6){
createchar(tilesimage[_local2][_local3], 13);
unitpositioned[_local2][_local3] = 0;
} else {
if (mapposition[mapke][_local2][_local3] == 0){
unitpositioned[_local2][_local3] = 2;
} else {
if (mapposition[mapke][_local2][_local3] == 7){
unitpositioned[_local2][_local3] = 3;
} else {
unitpositioned[_local2][_local3] = 0;
};
};
};
};
};
};
};
_local3++;
};
_local2++;
};
}
public function createsharpnel(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
while (_local2 < _arg1.sharpnelamount) {
_local3 = [0, -1, -2, -3];
if (((((_arg1.ye + _local3[_local2]) >= 1)) && (((_arg1.ye + _local3[_local2]) < 12)))){
_local4 = unitimage[_arg1.indextargetku];
if (_local4 == null){
trace("NULL");
_local4 = tilesimage[_arg1.xe][_arg1.ye];
};
bulletimage[bulletimage.length] = new (fxrpgsharpnel);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _local4.xe;
bulletimage[(bulletimage.length - 1)].ye = (_local4.ye + _local3[_local2]);
bulletimage[(bulletimage.length - 1)].x = _local4.x;
bulletimage[(bulletimage.length - 1)].damage = sharpneldamage;
bulletimage[(bulletimage.length - 1)].y = _local4.y;
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].movex = (((tilesimage[_local4.xe][(_local4.ye + _local3[_local2])].x + (tilesimage[_local4.xe][(_local4.ye + _local3[_local2])].width / 2)) - bulletimage[(bulletimage.length - 1)].x) / 20);
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet8movement);
};
_local2++;
};
}
public function createavailabletiles(_arg1:Boolean){
var _local2:*;
var _local3:*;
_local2 = 1;
while (_local2 <= 6) {
_local3 = 1;
while (_local3 <= 11) {
if (_arg1 == true){
if ((((((((((((unitpositioned[_local2][_local3] == 0)) && (!((mcmouse.mc1.currentFrame == 16))))) || ((((unitpositioned[_local2][_local3] == 3)) && ((mcmouse.mc1.currentFrame == 16)))))) || ((((unitpositioned[_local2][_local3] == 0)) && ((mcmouse.mc1.currentFrame == 16)))))) || ((((unitpositioned[_local2][_local3] == 0)) && ((mcmouse.mc1.currentFrame == 17)))))) || ((((unitpositioned[_local2][_local3] == 1)) && ((mcmouse.mc1.currentFrame == 17)))))){
tilesimage[_local2][_local3].gotoAndStop(2);
};
} else {
tilesimage[_local2][_local3].gotoAndStop(1);
};
_local3++;
};
_local2++;
};
}
public function createmegaboomerang(_arg1:Object){
var _local2:*;
_local2 = tilesimage[_arg1.xe][1];
bulletimage[bulletimage.length] = new (fxmegaboomerang);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _local2.xe;
bulletimage[(bulletimage.length - 1)].ye = _local2.ye;
bulletimage[(bulletimage.length - 1)].x = _local2.x;
bulletimage[(bulletimage.length - 1)].life = charskillnumba[4][so.data.skilllevel[4]];
bulletimage[(bulletimage.length - 1)].lifetemp = bulletimage[(bulletimage.length - 1)].life;
bulletimage[(bulletimage.length - 1)].y = _local2.y;
bulletimage[(bulletimage.length - 1)].statee = "forward";
bulletimage[(bulletimage.length - 1)].stateetime = antonioboomerangtime;
bulletimage[(bulletimage.length - 1)].enemyhit = [];
bulletimage[(bulletimage.length - 1)].sparkletime = 2;
bulletimage[(bulletimage.length - 1)].soundtime = 30;
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].speed = 8;
soundmegaboomerang.play(0, 1, new SoundTransform(volumesfx));
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bullet4movement);
}
public function chooseskillout(_arg1:MouseEvent):void{
_arg1.currentTarget.filters = null;
mcskillbaloon.visible = false;
}
public function loadnewarea(){
soundareaunlocked.play(0, 1, new SoundTransform(volumesfx));
mcunlocked.mcname.gotoAndStop(newareake);
trace(("ha : " + mcunlocked.mcname.currentFrame));
mcunlocked.gotoAndPlay(2);
trace(("ha : " + mcunlocked.mcname.currentFrame));
mcunlocked.btnyeah.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcunlocked.btnyeah.removeEventListener(MouseEvent.CLICK, mapunlockedyeah);
mcunlocked.btnyeah.addEventListener(MouseEvent.CLICK, mapunlockedyeah);
newareake = 0;
}
public function survivorout(_arg1:MouseEvent):void{
if (so.data.charunlocked[survivorindex] == true){
_arg1.currentTarget.gotoAndStop(2);
} else {
_arg1.currentTarget.gotoAndStop(1);
};
}
public function cleanup(){
var _local1:*;
var _local2:*;
var _local3:*;
donemouse();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, charandskillkeyboard);
stage.removeEventListener(Event.ENTER_FRAME, waitstagedone);
stage.removeEventListener(Event.ENTER_FRAME, waittutorevent);
stage.removeEventListener(Event.ENTER_FRAME, waitannounce);
stage.removeEventListener(Event.ENTER_FRAME, nextwavewaiting);
stage.removeEventListener(Event.ENTER_FRAME, mousefollow);
stage.removeEventListener(Event.ENTER_FRAME, mapprogressmove);
stage.removeEventListener(Event.ENTER_FRAME, gametime);
stage.removeEventListener(Event.ENTER_FRAME, unitsort);
stage.removeEventListener(Event.ENTER_FRAME, waitfinalwave);
stage.removeEventListener(Event.ENTER_FRAME, chooseskillfollowwaiting);
stage.removeEventListener(Event.ENTER_FRAME, choosesurvivorwaiting);
stage.removeEventListener(MouseEvent.MOUSE_UP, choosesurvivorwaitingup);
stage.removeEventListener(Event.ENTER_FRAME, mapprogressmove2);
_local1 = 1;
while (_local1 <= 6) {
_local2 = 1;
while (_local2 <= 12) {
removeChild(tilesimage[_local1][_local2]);
tilesimage[_local1][_local2] = null;
_local2++;
};
_local1++;
};
_local1 = 0;
while (_local1 < unitimage.length) {
if (unitimage[_local1] != null){
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, flagwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, zombiewaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, charwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, ironwoodwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, electricpolewaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, roboriotwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, riotcasewaiting);
removeChild(unitimage[_local1]);
unitimage[_local1] = null;
};
_local1++;
};
_local1 = 0;
while (_local1 < effectimage.length) {
if (effectimage[_local1] != null){
effectimage[_local1].removeEventListener(Event.ENTER_FRAME, waitcoinplacement);
effectimage[_local1].removeEventListener(Event.ENTER_FRAME, effectremover);
removeChild(effectimage[_local1]);
effectimage[_local1] = null;
};
_local1++;
};
_local1 = 0;
while (_local1 < bulletimage.length) {
if (bulletimage[_local1] != null){
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, superswingwaiting);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet1movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet2movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet3movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, throwingfruitwaiting);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, basketballwaiting);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet4movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet5movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet6movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet7movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bullet8movement);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, bomberaircraftwaiting);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, robomissilewaiting);
bulletimage[_local1].removeEventListener(Event.ENTER_FRAME, deafblastwaiting);
removeChild(bulletimage[_local1]);
bulletimage[_local1] = null;
};
_local1++;
};
_local1 = 0;
while (_local1 < shadowimage.length) {
if (shadowimage[_local1] != null){
shadowimage[_local1].removeEventListener(Event.ENTER_FRAME, shadowwaiting);
removeChild(shadowimage[_local1]);
shadowimage[_local1] = null;
};
_local1++;
};
_local1 = 0;
while (_local1 < cpimage.length) {
if (cpimage[_local1] != null){
cpimage[_local1].removeEventListener(Event.ENTER_FRAME, cpwaiting);
cpimage[_local1].removeEventListener(Event.ENTER_FRAME, cpmovetobase);
removeChild(cpimage[_local1]);
cpimage[_local1] = null;
};
_local1++;
};
_local1 = 0;
while (_local1 < skillimage.length) {
if (skillimage[_local1] != null){
skillimage[_local1].removeEventListener(Event.ENTER_FRAME, sniperblastwaiting);
skillimage[_local1].removeEventListener(Event.ENTER_FRAME, healbubblewaiting);
removeChild(skillimage[_local1]);
skillimage[_local1] = null;
};
_local1++;
};
_local1 = 0;
while (_local1 < civilianimage.length) {
if (civilianimage[_local1] != null){
civilianimage[_local1].removeEventListener(Event.ENTER_FRAME, civilianwaiting);
removeChild(civilianimage[_local1]);
civilianimage[_local1] = null;
};
_local1++;
};
_local1 = 1;
while (_local1 <= 5) {
_local3 = mcui.getChildByName(("mcpanel" + _local1));
_local3.removeEventListener(Event.ENTER_FRAME, charthumbwaiting);
_local1++;
};
}
public function skillover(_arg1:MouseEvent){
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.filters = [glowpurple];
}
public function mapzombie(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
cleanupmap();
gotoAndStop("zombieinfo");
}
public function clickGoody(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.goodygameworks.com");
navigateToURL(_local2);
}
public function mainmenuclear(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
createmainmenusureclear();
}
public function cekclickchar(_arg1:int){
var _local2:*;
var _local3:*;
_local2 = so.data.charregister[_arg1];
_local3 = mcui.getChildByName(("mcpanel" + _arg1));
if ((((cpowned >= charcost[_local2])) && ((_local3.ready == true)))){
if ((((so.data.firsttutorial == false)) && ((so.data.firsttutorialphase == 2)))){
so.data.firsttutorialphase = 3;
mctutorial.nextFrame();
tilesimage[4][4].gotoAndStop(2);
} else {
createavailabletiles(true);
};
createcharmouse(_local2);
};
}
public function survivorover(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(3);
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
}
public function likefbclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:URLRequest;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
if (_local2 == 1){
_local3 = new URLRequest("http://www.facebook.com/Goodygameworks");
navigateToURL(_local3);
soundmoney.play(0, 1, new SoundTransform(volumesfx));
so.data.like1 = true;
mcfreecoin.mcsparkle1.gotoAndPlay(2);
so.data.goldowned = (so.data.goldowned + 50);
} else {
_local3 = new URLRequest("http://www.facebook.com/ArmorGames");
navigateToURL(_local3);
soundmoney.play(0, 1, new SoundTransform(volumesfx));
so.data.like2 = true;
mcfreecoin.mcsparkle2.gotoAndPlay(2);
so.data.goldowned = (so.data.goldowned + 75);
};
loadlikefb();
}
public function loadskillini(){
var _local1:*;
var _local2:*;
mcskillinfobg.mcskillthumb.gotoAndStop(skillselect);
mcskillinfobg.mcskillbg.gotoAndStop(skillselect);
mcskillinfobg.txttitle.text = charskill[skillselect];
mcskillinfobg.txtdesc.text = ((charskilldesc[skillselect] + charskillnumba[skillselect][so.data.skilllevel[skillselect]]) + charskillstring[skillselect]);
mcskillinfobg.txtdesc.text = (mcskillinfobg.txtdesc.text + (("\nCOOLDOWN : " + charskillcd[skillselect]) + "s"));
mcskillinfobg.mcupgrade.removeEventListener(MouseEvent.MOUSE_OUT, skilloutupgrade);
mcskillinfobg.mcupgrade.removeEventListener(MouseEvent.MOUSE_OVER, skilloverupgrade);
mcskillinfobg.mcupgrade.removeEventListener(MouseEvent.CLICK, skillupgrade);
mcskillinfobg.mcupgrade.removeEventListener(MouseEvent.MOUSE_OVER, overforsound);
_local1 = 1;
while (_local1 <= 3) {
_local2 = mcskillinfobg.getChildByName(("mcgem" + _local1));
trace(("LEVELE : " + so.data.skilllevel[skillselect]));
if (_local1 <= so.data.skilllevel[skillselect]){
_local2.gotoAndStop(2);
} else {
_local2.gotoAndStop(1);
};
if (so.data.skilllevel[skillselect] < 3){
mcskillinfobg.mccost.txtcost2.text = charskillcost[skillselect][(so.data.skilllevel[skillselect] + 1)];
mcskillinfobg.mccost.mc1.txtcost.text = charskillcost[skillselect][(so.data.skilllevel[skillselect] + 1)];
mcskillinfobg.mcupgrade.visible = true;
if (so.data.goldowned >= charskillcost[skillselect][(so.data.skilllevel[skillselect] + 1)]){
mcskillinfobg.mcupgrade.addEventListener(MouseEvent.MOUSE_OUT, skilloutupgrade);
mcskillinfobg.mcupgrade.addEventListener(MouseEvent.MOUSE_OVER, skilloverupgrade);
mcskillinfobg.mcupgrade.addEventListener(MouseEvent.CLICK, skillupgrade);
mcskillinfobg.mcupgrade.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mcskillinfobg.mcupgrade.gotoAndStop(1);
} else {
mcskillinfobg.mcupgrade.gotoAndStop(2);
};
} else {
mcskillinfobg.mcupgrade.visible = false;
mcskillinfobg.mccost.txtcost2.text = "MAX";
mcskillinfobg.mccost.mc1.txtcost.text = "MAX";
};
_local1++;
};
}
public function survivorback(_arg1:MouseEvent):void{
so.data.fourthtutorial = true;
soundclick.play(0, 1, new SoundTransform(volumesfx));
gotoAndStop("map");
}
public function waittutor(_arg1:int){
waittutortime = _arg1;
stage.addEventListener(Event.ENTER_FRAME, waittutorevent);
}
public function mainmenucreditsback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mccredits.gotoAndStop(1);
mcuitop.visible = true;
mcuibot.visible = true;
}
public function unitinimati(_arg1:Object){
var _local2:*;
unitpositioned[_arg1.xe][_arg1.ye] = 0;
_local2 = _arg1.indexke;
unitimage[_local2].die = true;
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, flagwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, zombiewaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, ironwoodwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, charwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, electricpolewaiting);
removeChild(unitimage[_local2]);
unitimage[_local2] = null;
if (mcmouse.currentFrame != 1){
createavailabletiles(true);
};
}
public function ingameskillout(_arg1:MouseEvent):void{
if ((((so.data.firsttutorialaddonphase == 2)) && ((so.data.firsttutorialaddon == false)))){
mctutorial.visible = true;
};
mcskillbaloon.visible = false;
}
public function createbomberaircraft(){
var _local1:*;
var _local2:*;
soundbombdrop.play(0, 1, new SoundTransform(volumesfx));
_local1 = 1;
while (_local1 <= 12) {
bulletimage[bulletimage.length] = new (bulletbomberaircraft);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
_local2 = tilesimage[4][_local1];
bulletimage[(bulletimage.length - 1)].x = (_local2.x + (_local2.width / 2));
bulletimage[(bulletimage.length - 1)].damage = charskillnumba[7][so.data.skilllevel[7]];
bulletimage[(bulletimage.length - 1)].y = -16;
bulletimage[(bulletimage.length - 1)].jedaer = (0 + (_local1 * 5));
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].xe = _local2.xe;
bulletimage[(bulletimage.length - 1)].ye = _local2.ye;
bulletimage[(bulletimage.length - 1)].speed = 20;
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, bomberaircraftwaiting);
_local1++;
};
}
public function loaddarken(){
var _local1:*;
var _local2:Point;
if (so.data.buildingconquered >= (maplist.length - 1)){
so.data.buildingconquered = (maplist.length - 2);
};
_local1 = mcmap.getChildByName(("mcbuilding" + int((int(so.data.buildingconquered) + int(1)))));
_local2 = new Point(_local1.x, _local1.y);
_local2 = mcmap.localToGlobal(_local2);
mcdarken.x = _local2.x;
mcdarken.y = 225.9;
}
public function bwatgameover(){
waitnextwave();
finalwave = true;
}
public function zombieclick(_arg1:MouseEvent):void{
zombieselect = _arg1.currentTarget.zombieke;
loadzombieinfo();
}
public function bullet7movement(_arg1:Event):void{
var _local2:*;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:*;
if (pausegame == false){
if (_arg1.currentTarget.phase == 2){
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local2 = _arg1.currentTarget.indexke;
bulletimage[_local2].removeEventListener(Event.ENTER_FRAME, bullet7movement);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, bullet7movement);
removeChild(bulletimage[_local2]);
bulletimage[_local2] = null;
};
} else {
if (_arg1.currentTarget.phase == 1){
_arg1.currentTarget.sparktime--;
if (_arg1.currentTarget.sparktime < 0){
_arg1.currentTarget.sparktime = sparktime;
createbulletspark(_arg1.currentTarget, 1);
};
_local3 = _arg1.currentTarget.ux;
_local4 = (_arg1.currentTarget.uy + _arg1.currentTarget.g);
_local5 = (_arg1.currentTarget.uy + (_arg1.currentTarget.g / 2));
_arg1.currentTarget.x = (_arg1.currentTarget.x + _local3);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _local5);
_arg1.currentTarget.uy = _local4;
_local6 = unitimage[_arg1.currentTarget.indextargetku];
if (_local6 != null){
if (_arg1.currentTarget.hitTestObject(_local6) == true){
createrpgexplodingeffect(_arg1.currentTarget);
_arg1.currentTarget.phase = 2;
};
};
if (_arg1.currentTarget.y > (_arg1.currentTarget.batasy + 60)){
createrpgexplodingeffect(_arg1.currentTarget);
_arg1.currentTarget.phase = 2;
};
};
};
};
}
public function cekzombiewave(){
var _local1:*;
if (mapke != 29){
trace(((("HM : " + jumzombie) + " ") + onnextwavewaiting));
if (jumzombie <= 0){
cekselisihcp();
if (finalwave == false){
trace("ZOMBIE ABIS");
if ((((((so.data.firsttutorial == false)) && (!((so.data.firsttutorialphase == 6))))) || ((so.data.firsttutorial == true)))){
bwatwaitnextwave();
};
} else {
waitnextwave();
};
} else {
if ((((((((mapke == 1)) && ((finalwave == true)))) && ((so.data.firsttutorialaddon == false)))) && ((jumzombie <= 2)))){
waittutor(50);
};
};
} else {
if (jumzombie <= 1){
_local1 = unitimage[bossindex];
if (_local1.phase == "wait"){
_local1.waite = 0;
};
};
};
}
public function adjustminimap(_arg1:MouseEvent){
stage.addEventListener(Event.ENTER_FRAME, minimapcamerafollow);
stage.addEventListener(MouseEvent.MOUSE_UP, adjustminimapup);
}
public function cekachievement(_arg1:int){
var _local2:*;
var _local3:*;
var _local4:*;
trace(("CEK KE : " + _arg1));
var _local5 = so.data.achievementnumba;
var _local6 = _arg1;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
_local2 = so.data.achievementlevel[_arg1];
_local3 = so.data.achievementnumba[_arg1];
_local4 = false;
if (_local3 >= achievementnumba[_arg1][_local2]){
_local4 = true;
};
if (_local4 == true){
soundachievement.play(0, 1, new SoundTransform(volumesfx));
bwatachievement(_arg1, _local2);
_local5 = so.data.achievementlevel;
_local6 = _arg1;
_local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
so.data.achievementnumba[_arg1] = 0;
};
}
public function clikGoodyfb(_arg1:ContextMenuEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.facebook.com/Goodygameworks");
navigateToURL(_local2);
}
public function healbubblewaiting(_arg1:Event):void{
var _local2:*;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local7:*;
if (pausegame == false){
if (_arg1.currentTarget.phase == 2){
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local2 = _arg1.currentTarget.indexke;
skillimage[_local2].removeEventListener(Event.ENTER_FRAME, healbubblewaiting);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, healbubblewaiting);
removeChild(skillimage[_local2]);
skillimage[_local2] = null;
};
} else {
if (_arg1.currentTarget.phase == 1){
_local3 = _arg1.currentTarget.ux;
_local4 = (_arg1.currentTarget.uy + _arg1.currentTarget.g);
_local5 = (_arg1.currentTarget.uy + (_arg1.currentTarget.g / 2));
_arg1.currentTarget.x = (_arg1.currentTarget.x + _local3);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _local5);
_arg1.currentTarget.uy = _local4;
if (_arg1.currentTarget.y > (_arg1.currentTarget.targetku.y + 15)){
_local6 = [soundwater1, soundwater2];
_local6[randRange(0, (_local6.length - 1))].play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.gotoAndPlay(2);
_arg1.currentTarget.phase = 2;
_local7 = 0;
while (_local7 < unitimage.length) {
if (unitimage[_local7] != null){
if (unitimage[_local7].die == false){
if ((((unitimage[_local7].tipe == 3)) && (!((unitimage[_local7].charke == 4))))){
if (unitimage[_local7].hp < unitimage[_local7].hptemp){
if ((((unitimage[_local7].mc1.mcbody.hitTestObject(_arg1.currentTarget.mchit) == true)) && ((_arg1.currentTarget.xe == unitimage[_local7].xe)))){
unitimage[_local7].gotoAndPlay("heal");
unitimage[_local7].hp = (unitimage[_local7].hp + 5);
if (unitimage[_local7].hp > unitimage[_local7].hptemp){
unitimage[_local7].hp = unitimage[_local7].hptemp;
};
break;
};
};
};
};
};
_local7++;
};
};
};
};
};
}
public function skillout(_arg1:MouseEvent){
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
_arg1.currentTarget.filters = null;
}
public function loadpremissingperson(){
var _local1:*;
var _local2:*;
soundnewunit.play(0, 1, new SoundTransform(volumesfx));
mcsurvivorinfo.mccharthumb.mc1.gotoAndStop(so.data.newunitke);
mcsurvivorinfo.gotoAndPlay(2);
mcsurvivorinfo.mc1.gotoAndStop(so.data.newunitke);
mcmissingperson.gotoAndStop(2);
_local1 = 1;
while (_local1 <= 8) {
_local2 = mcmissingperson.getChildByName(("mcposter" + _local1));
_local2.mc1.gotoAndStop(_local1);
_local2.mccp.visible = false;
_local1++;
};
}
public function createkecenderungan(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
listcharfillxe = [];
_local1 = 1;
while (_local1 <= 6) {
_local2 = false;
_local3 = false;
_local4 = 1;
while (_local4 <= 12) {
if (mapposition[mapke][_local1][12] != 0){
_local2 = true;
if (unitpositioned[_local1][_local4] == 1){
_local3 = true;
listcharfillxe[listcharfillxe.length] = {isi:1, xe:_local1, chance:0};
break;
};
};
_local4++;
};
if ((((_local2 == true)) && ((_local3 == false)))){
listcharfillxe[listcharfillxe.length] = {isi:0, xe:_local1, chance:0};
};
_local1++;
};
if (listcharfillxe.length > 0){
listcharfillxe.sortOn("isi", (Array.NUMERIC | Array.DESCENDING));
_local5 = int(Math.ceil(((10 / listcharfillxe.length) - 1)));
_local6 = _local5;
_local1 = 0;
while (_local1 < listcharfillxe.length) {
listcharfillxe[_local1].chance = int((int(_local5) + int(0)));
_local6--;
_local1++;
};
};
}
public function zombieout(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(2);
}
public function loadingeyo(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 / _local2) * 100);
txt1.text = (int(_local4) + "%");
if (_local3 == _local2){
txt1.visible = false;
txtloading.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, loadingeyo);
trace("b");
btnplay.visible = true;
stage.removeEventListener(Event.ENTER_FRAME, loadingeyo);
};
}
public function mapslideleft(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
if (so.data.secondtutorial == true){
mapgoleft = true;
stage.addEventListener(Event.ENTER_FRAME, mapslide);
};
}
public function ingamepausequityes(_arg1:MouseEvent){
pausegame = false;
mcpause.gotoAndStop(1);
if (volumebgm != 0){
volumebgm = 1;
if (soundchannelbgm != null){
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
};
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
};
if (soundchannelbgm != null){
soundchannelbgm.stop();
soundchannelbgm = null;
};
if (soundchannelbgm2 != null){
soundchannelbgm2.stop();
soundchannelbgm2 = null;
};
soundclick.play(0, 1, new SoundTransform(volumesfx));
cleanup();
if (mcpause.mcquitlevel.currentFrame == 1){
gotoAndStop("map");
} else {
gotoAndStop("reload");
};
}
public function createrandomz(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local2 = [1, 2, 3, 4, 7, 8, 9, 13];
_local3 = [5, 6, 10];
_local4 = 0;
_local5 = 0;
while (_local5 < (_arg1.levele * 2)) {
_local7 = false;
if (_local4 == 0){
_local4 = 1;
_local8 = (_arg1.levele * 2);
if (_local8 > (_local2.length - 1)){
_local8 = (_local2.length - 1);
};
_local6 = _local2[randRange(0, _local8)];
_local7 = true;
} else {
_local9 = randRange(0, 100);
if (_local9 < 50){
_local8 = int((_arg1.levele / 2));
if (_local8 > (_local3.length - 1)){
_local8 = (_local3.length - 1);
};
_local6 = _local3[randRange(0, _local8)];
_local7 = true;
} else {
_local5--;
};
_local4 = 0;
};
trace(((("HASILE : " + _local7) + " yaitu : ") + _local6));
if (_local7 == true){
jumzombie++;
createzombie(_local6, 1, false, 0, null, false);
};
_local5++;
};
}
public function missingpersonback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumesfx));
mcmissingperson.gotoAndStop(1);
loadtutorialmap();
loadmapstatus();
loaduimap();
}
public function mapthropyover(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
mcuimap.mcthropyout.visible = false;
mcuimap.mcthropyover.visible = true;
mcuimap.mcthropyover.gotoAndPlay(1);
}
public function loadztutorial(_arg1:MouseEvent):void{
if (volumebgm != 0){
volumebgm = 0.3;
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
};
soundclick.play(0, 1, new SoundTransform(volumesfx));
pausegame = true;
soundlight.play(0, 1, new SoundTransform(volumesfx));
mcnewz.gotoAndStop(1);
mczombieinfo.mc1.gotoAndStop(mcnewz.charke);
mczombieinfo.mc2.gotoAndStop(mcnewz.charke);
mczombieinfo.gotoAndPlay(2);
mczombieinfo.btngotit.addEventListener(MouseEvent.MOUSE_OVER, overforsound);
mczombieinfo.btngotit.removeEventListener(MouseEvent.CLICK, closezombieinfo);
mczombieinfo.btngotit.addEventListener(MouseEvent.CLICK, closezombieinfo);
}
public function createsplatter(_arg1:Object, _arg2:int){
if (_arg2 == 1){
effectimage[effectimage.length] = new (fxsplatter);
} else {
effectimage[effectimage.length] = new (fxrobosplatter);
};
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(fxposition));
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].blendMode = "hardlight";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function mapsurvivorout(_arg1:MouseEvent):void{
mcuimap.mcsurvivorover.visible = false;
mcuimap.mcsurvivorout.visible = true;
mcuimap.mcsurvivorout.gotoAndPlay(mcuimap.mcsurvivorover.currentFrame);
}
public function mapitemover(_arg1:MouseEvent):void{
soundbuttonover.play(0, 1, new SoundTransform(volumesfx));
if (mcuimap.mcitemover.currentFrame == 1){
mcuimap.mcitemover.gotoAndPlay(2);
};
}
public function closezombieinfo(_arg1:MouseEvent):void{
if (volumebgm != 0){
volumebgm = 1;
soundchannelbgm.soundTransform = new SoundTransform(volumebgm);
if (soundchannelbgm2 != null){
soundchannelbgm2.soundTransform = new SoundTransform(volumebgm);
};
};
soundclick.play(0, 1, new SoundTransform(volumesfx));
pausegame = false;
mczombieinfo.gotoAndStop(1);
}
public function createdeafblast(_arg1:Object){
soundgunsound.play(0, 1, new SoundTransform(volumesfx));
bulletimage[bulletimage.length] = new (fxdeafblast);
addChildAt(bulletimage[(bulletimage.length - 1)], getChildIndex(fxposition));
bulletimage[(bulletimage.length - 1)].xe = _arg1.xe;
bulletimage[(bulletimage.length - 1)].x = (_arg1.x - 82);
bulletimage[(bulletimage.length - 1)].y = (_arg1.y - 34);
bulletimage[(bulletimage.length - 1)].xe = _arg1.xe;
bulletimage[(bulletimage.length - 1)].ye = _arg1.ye;
bulletimage[(bulletimage.length - 1)].indexke = (bulletimage.length - 1);
bulletimage[(bulletimage.length - 1)].atk = deafdamage;
bulletimage[(bulletimage.length - 1)].duration = deafduration;
bulletimage[(bulletimage.length - 1)].hitlist = [];
bulletimage[(bulletimage.length - 1)].sparktime = sparktime;
bulletimage[(bulletimage.length - 1)].speed = 20;
bulletimage[(bulletimage.length - 1)].addEventListener(Event.ENTER_FRAME, deafblastwaiting);
}
public function skilloverupgrade(_arg1:MouseEvent){
mcbaloonupgrade.visible = true;
mcbaloonupgrade.x = mouseX;
mcbaloonupgrade.y = mouseY;
mcbaloonupgrade.txt1.text = (charskillnumba[skillselect][(so.data.skilllevel[skillselect] + 1)] + charskillupgradedesc[skillselect]);
}
public function createwaitnextwave(){
if (finalwave == false){
trace("cREATE GAME TIME");
nextwavewait = (mapjeda[mapke][int((int(waveke) + int(1)))] * 25);
wavegametime = true;
stage.addEventListener(Event.ENTER_FRAME, gametime);
};
}
public function clickcharpanel(_arg1:MouseEvent):void{
activatethischarpanel(_arg1.currentTarget);
}
}
}//package ZRv_fla
Section 72
//MAP_228 (ZRv_fla.MAP_228)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_228 extends MovieClip {
public var mcbuilding20:MovieClip;
public var mcbuilding21:MovieClip;
public var mcbuilding23:MovieClip;
public var mcbuilding25:MovieClip;
public var mcbuilding26:MovieClip;
public var mcbuilding28:MovieClip;
public var mcbuilding27:MovieClip;
public var mcbuilding22:MovieClip;
public var mcbuilding11:MovieClip;
public var mcbuilding29:MovieClip;
public var mcbuilding5:MovieClip;
public var mcbuilding6:MovieClip;
public var mcbuilding8:MovieClip;
public var mcbuilding13:MovieClip;
public var mcbuilding9:MovieClip;
public var mcbuilding7:MovieClip;
public var mcbuilding1:MovieClip;
public var mcbuilding24:MovieClip;
public var mcbuilding4:MovieClip;
public var mcbuilding2:MovieClip;
public var btnlinkek:SimpleButton;
public var mcbuilding12:MovieClip;
public var mcbuilding3:MovieClip;
public var btnlinkag1:SimpleButton;
public var btnlinkag3:SimpleButton;
public var btnlinkag5:SimpleButton;
public var btnlinkag2:SimpleButton;
public var btnlinkag4:SimpleButton;
public var mcbuilding10:MovieClip;
public var mcbuilding14:MovieClip;
public var mcbuilding15:MovieClip;
public var mcbuilding16:MovieClip;
public var mcbuilding18:MovieClip;
public var mcbuilding19:MovieClip;
public var mcbuilding17:MovieClip;
}
}//package ZRv_fla
Section 73
//MAP_232 (ZRv_fla.MAP_232)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_232 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 74
//MAP_235 (ZRv_fla.MAP_235)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_235 extends MovieClip {
public var mc1:MovieClip;
public function MAP_235(){
addFrameScript(0, frame1, 38, frame39);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
stop();
}
function frame39(){
stop();
}
}
}//package ZRv_fla
Section 75
//MAP_236 (ZRv_fla.MAP_236)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_236 extends MovieClip {
public function MAP_236(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 76
//MAP_237 (ZRv_fla.MAP_237)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_237 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 77
//MAP_240 (ZRv_fla.MAP_240)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_240 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 78
//MAP_243 (ZRv_fla.MAP_243)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_243 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 79
//MAP_246 (ZRv_fla.MAP_246)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_246 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 80
//MAP_249 (ZRv_fla.MAP_249)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_249 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 81
//MAP_252 (ZRv_fla.MAP_252)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_252 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 82
//MAP_255 (ZRv_fla.MAP_255)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_255 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 83
//MAP_258 (ZRv_fla.MAP_258)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_258 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 84
//MAP_261 (ZRv_fla.MAP_261)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_261 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 85
//MAP_264 (ZRv_fla.MAP_264)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_264 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 86
//MAP_267 (ZRv_fla.MAP_267)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_267 extends MovieClip {
public var mc1:MovieClip;
public function MAP_267(){
addFrameScript(0, frame1);
}
function frame1(){
mc1.mouseEnabled = false;
mc1.mouseChildren = false;
}
}
}//package ZRv_fla
Section 87
//MAP_270 (ZRv_fla.MAP_270)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_270 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 88
//MAP_273 (ZRv_fla.MAP_273)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_273 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 89
//MAP_276 (ZRv_fla.MAP_276)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_276 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 90
//MAP_280 (ZRv_fla.MAP_280)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_280 extends MovieClip {
public function MAP_280(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 91
//MAP_282 (ZRv_fla.MAP_282)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_282 extends MovieClip {
public function MAP_282(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 92
//MAP_288 (ZRv_fla.MAP_288)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_288 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 93
//MAP_289 (ZRv_fla.MAP_289)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_289 extends MovieClip {
public var mczombieover:MovieClip;
public var mcnewskill:MovieClip;
public var btnsurvivor:SimpleButton;
public var mcthropyover:MovieClip;
public var btnitem:SimpleButton;
public var mcsurvivorout:MovieClip;
public var btnzombie:SimpleButton;
public var mcsurvivorover:MovieClip;
public var mczombieout:MovieClip;
public var btnperson:SimpleButton;
public var mcthropyout:MovieClip;
public var mcnewunit:MovieClip;
public var btnthropy:SimpleButton;
public var mcitemover:MovieClip;
}
}//package ZRv_fla
Section 94
//MAP_307 (ZRv_fla.MAP_307)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_307 extends MovieClip {
public var mcmap:MovieClip;
public var mcbuilding:MovieClip;
public var mcminimapadjust:MovieClip;
}
}//package ZRv_fla
Section 95
//MAP_317 (ZRv_fla.MAP_317)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_317 extends MovieClip {
public var mccity:MovieClip;
public var mcgold2:MovieClip;
public var mccoin2:SimpleButton;
public var btnfb2:MovieClip;
public var mcty2:MovieClip;
public var btnfb1:MovieClip;
public var btnback:SimpleButton;
public var mccloud:MovieClip;
public var mcsparkle1:MovieClip;
public var mcgold1:MovieClip;
public var mcsparkle2:MovieClip;
public var btnlike2:SimpleButton;
public var btnlike1:SimpleButton;
public var mccoin1:SimpleButton;
public var mcty1:MovieClip;
public function MAP_317(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 96
//MAP_327 (ZRv_fla.MAP_327)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_327 extends MovieClip {
public var mccity:MovieClip;
public var mcposter1:MovieClip;
public var mcposter3:MovieClip;
public var mcposter4:MovieClip;
public var mcposter5:MovieClip;
public var mcposter6:MovieClip;
public var mcposter8:MovieClip;
public var mcposter2:MovieClip;
public var mcposter7:MovieClip;
public var btnback:SimpleButton;
public var mccloud:MovieClip;
public var btnag:SimpleButton;
public function MAP_327(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 97
//MAP_328 (ZRv_fla.MAP_328)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_328 extends MovieClip {
public var mc1:MovieClip;
public var mccp:MovieClip;
public var mcsparkle:MovieClip;
public function MAP_328(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 98
//MAP_333 (ZRv_fla.MAP_333)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_333 extends MovieClip {
public var mcname:MovieClip;
public var btnyeah:SimpleButton;
public function MAP_333(){
addFrameScript(0, frame1, 1, frame2, 70, frame71);
}
function frame71(){
stop();
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 99
//MAP_338 (ZRv_fla.MAP_338)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_338 extends MovieClip {
public var mc1:MovieClip;
public var mccharthumb:MovieClip;
public var btngotit:SimpleButton;
public function MAP_338(){
addFrameScript(0, frame1, 1, frame2, 77, frame78);
}
function frame78(){
stop();
this.visible = true;
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 100
//MAP_344 (ZRv_fla.MAP_344)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_344 extends MovieClip {
public var mcskillbg:MovieClip;
public var mcskillthumb:MovieClip;
public var mcskilldesc:MovieClip;
public var mcskilltitle:MovieClip;
public var btngotit:SimpleButton;
public var mcskillthumbtitle:MovieClip;
public function MAP_344(){
addFrameScript(0, frame1, 1, frame2, 72, frame73);
}
function frame73(){
stop();
this.visible = true;
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 101
//MAP_366 (ZRv_fla.MAP_366)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_366 extends MovieClip {
public var mchand:MovieClip;
public var btndeploy:SimpleButton;
public var mcprize1:SimpleButton;
public var mcprize2:SimpleButton;
public var mcbuilding:MovieClip;
public var mcdifficulty4:MovieClip;
public var mcdifficulty5:MovieClip;
public var mcdifficulty1:MovieClip;
public var mcdifficulty2:MovieClip;
public var mcdifficulty3:MovieClip;
public var btncancel:SimpleButton;
public var mcgold:MovieClip;
public function MAP_366(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 102
//MAP_367 (ZRv_fla.MAP_367)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_367 extends MovieClip {
public var mccity:MovieClip;
public var mcbuilding26:MovieClip;
public var mcbuilding24:MovieClip;
}
}//package ZRv_fla
Section 103
//MAP_368 (ZRv_fla.MAP_368)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_368 extends MovieClip {
public function MAP_368(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 104
//MAP_370 (ZRv_fla.MAP_370)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_370 extends MovieClip {
public function MAP_370(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 105
//MAP_371 (ZRv_fla.MAP_371)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_371 extends MovieClip {
public function MAP_371(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 106
//MAP_372 (ZRv_fla.MAP_372)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_372 extends MovieClip {
public function MAP_372(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 107
//MAP_373 (ZRv_fla.MAP_373)
package ZRv_fla {
import flash.display.*;
public dynamic class MAP_373 extends MovieClip {
public function MAP_373(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 108
//PRELOADER_23 (ZRv_fla.PRELOADER_23)
package ZRv_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.filters.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class PRELOADER_23 extends MovieClip {
public var loader:Loader;
public var abs_url:String;
public var urlRequest:URLRequest;
public var abs;
public var enviroposition:MovieClip;
public function PRELOADER_23(){
addFrameScript(0, frame1);
}
public function loadComplete(_arg1:Event):void{
abs = _arg1.currentTarget.content;
addChild(abs);
abs.show({x:100, y:100, backgroundColor:4861953});
if (currentLabel != "preloader"){
};
}
function frame1(){
abs_url = "http://agi.armorgames.com/assets/agi/ABS.swf";
Security.allowDomain(abs_url);
urlRequest = new URLRequest(abs_url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(urlRequest);
}
}
}//package ZRv_fla
Section 109
//SKILL_346 (ZRv_fla.SKILL_346)
package ZRv_fla {
import flash.display.*;
public dynamic class SKILL_346 extends MovieClip {
public var mcselected:MovieClip;
public var mcdoor:MovieClip;
public var mcpetengan:MovieClip;
public function SKILL_346(){
addFrameScript(0, frame1);
}
function frame1(){
mcpetengan.visible = false;
}
}
}//package ZRv_fla
Section 110
//SKILL_480 (ZRv_fla.SKILL_480)
package ZRv_fla {
import flash.display.*;
public dynamic class SKILL_480 extends MovieClip {
public var mchit:MovieClip;
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 111
//SKILLINFO_410 (ZRv_fla.SKILLINFO_410)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class SKILLINFO_410 extends MovieClip {
public var mcskillbg:MovieClip;
public var txtdesc:TextField;
public var mcskill2:MovieClip;
public var mcskill5:MovieClip;
public var mcskill6:MovieClip;
public var mcskill7:MovieClip;
public var mcskill1:MovieClip;
public var mcskill3:MovieClip;
public var mcskill4:MovieClip;
public var btnback:SimpleButton;
public var mcskillthumb:MovieClip;
public var mcgem1:MovieClip;
public var mccost:MovieClip;
public var mcgem3:MovieClip;
public var mcgem2:MovieClip;
public var mcupgrade:MovieClip;
public var txttitle:TextField;
public var mcgold:MovieClip;
}
}//package ZRv_fla
Section 112
//SOUND_104 (ZRv_fla.SOUND_104)
package ZRv_fla {
import flash.display.*;
public dynamic class SOUND_104 extends MovieClip {
public var mchit:MovieClip;
public function SOUND_104(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 113
//SURVIVOR_381 (ZRv_fla.SURVIVOR_381)
package ZRv_fla {
import flash.display.*;
public dynamic class SURVIVOR_381 extends MovieClip {
public var mcsurvivorexp:MovieClip;
public var btninfo:SimpleButton;
public var btnback:SimpleButton;
public var btnag:SimpleButton;
public var mcchar1:MovieClip;
public var mcchar5:MovieClip;
public var mcchar6:MovieClip;
public var mcchar8:MovieClip;
public var mcchar2:MovieClip;
public var mcchar3:MovieClip;
public var mcchar4:MovieClip;
public var mcchar7:MovieClip;
public var mcgold:MovieClip;
}
}//package ZRv_fla
Section 114
//SURVIVOR_382 (ZRv_fla.SURVIVOR_382)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class SURVIVOR_382 extends MovieClip {
public var txtdesc:TextField;
public var mcchar:MovieClip;
public var mcname:MovieClip;
public var txtspd:TextField;
public var mcgem1:MovieClip;
public var mccost:MovieClip;
public var mcgem3:MovieClip;
public var mcgem2:MovieClip;
public var mcrange:MovieClip;
public var txtatk:TextField;
public var txthp:TextField;
public var mcupgrade:MovieClip;
public function SURVIVOR_382(){
addFrameScript(0, frame1);
}
function frame1(){
mcname.mouseChildren = false;
mcname.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 115
//SURVIVOR_384 (ZRv_fla.SURVIVOR_384)
package ZRv_fla {
import flash.display.*;
public dynamic class SURVIVOR_384 extends MovieClip {
public function SURVIVOR_384(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 116
//SURVIVOR_390 (ZRv_fla.SURVIVOR_390)
package ZRv_fla {
import flash.display.*;
public dynamic class SURVIVOR_390 extends MovieClip {
public var mcselected:MovieClip;
public var mc1:MovieClip;
public function SURVIVOR_390(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
function frame1(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
mcselected.mouseChildren = false;
mcselected.mouseEnabled = false;
}
function frame2(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 117
//Symbol10_331 (ZRv_fla.Symbol10_331)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol10_331 extends MovieClip {
public function Symbol10_331(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 118
//Symbol105_13 (ZRv_fla.Symbol105_13)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol105_13 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 119
//Symbol106_14 (ZRv_fla.Symbol106_14)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol106_14 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 120
//Symbol109_472 (ZRv_fla.Symbol109_472)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol109_472 extends MovieClip {
public var btnyes:SimpleButton;
public var btnno:SimpleButton;
}
}//package ZRv_fla
Section 121
//Symbol10copy_435 (ZRv_fla.Symbol10copy_435)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol10copy_435 extends MovieClip {
public function Symbol10copy_435(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 122
//Symbol121_420 (ZRv_fla.Symbol121_420)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol121_420 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 123
//Symbol133_405 (ZRv_fla.Symbol133_405)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol133_405 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 124
//Symbol134_406 (ZRv_fla.Symbol134_406)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol134_406 extends MovieClip {
public var txt1:TextField;
}
}//package ZRv_fla
Section 125
//Symbol135_391 (ZRv_fla.Symbol135_391)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol135_391 extends MovieClip {
public function Symbol135_391(){
addFrameScript(0, frame1, 1, frame2, 53, frame54);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame54(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 126
//Symbol135copy_347 (ZRv_fla.Symbol135copy_347)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol135copy_347 extends MovieClip {
public function Symbol135copy_347(){
addFrameScript(0, frame1, 1, frame2, 53, frame54);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame54(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 127
//Symbol136_290 (ZRv_fla.Symbol136_290)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol136_290 extends MovieClip {
public function Symbol136_290(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 128
//Symbol142_350 (ZRv_fla.Symbol142_350)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol142_350 extends MovieClip {
public function Symbol142_350(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 129
//Symbol145_43 (ZRv_fla.Symbol145_43)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol145_43 extends MovieClip {
public function Symbol145_43(){
addFrameScript(0, frame1, 1, frame2, 30, frame31);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame31(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 130
//Symbol147_437 (ZRv_fla.Symbol147_437)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol147_437 extends MovieClip {
public var mc87:MovieClip;
public var mc81:MovieClip;
public var mc50:MovieClip;
public var mc52:MovieClip;
public var mc51:MovieClip;
public var mc53:MovieClip;
public var mc49:MovieClip;
public var mc69:MovieClip;
public function Symbol147_437(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 131
//Symbol152_475 (ZRv_fla.Symbol152_475)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol152_475 extends MovieClip {
public var mcskill2:MovieClip;
public var mcskill5:MovieClip;
public var mcskill6:MovieClip;
public var mcskill7:MovieClip;
public var mcskill1:MovieClip;
public var mcskill3:MovieClip;
public var mcskill4:MovieClip;
public var mcskillregister1:MovieClip;
public var mcskillregister2:MovieClip;
public var mcskillregister3:MovieClip;
}
}//package ZRv_fla
Section 132
//Symbol154_342 (ZRv_fla.Symbol154_342)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol154_342 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 133
//Symbol155_345 (ZRv_fla.Symbol155_345)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol155_345 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 134
//Symbol156_438 (ZRv_fla.Symbol156_438)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol156_438 extends MovieClip {
public function Symbol156_438(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 135
//Symbol157_439 (ZRv_fla.Symbol157_439)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol157_439 extends MovieClip {
public function Symbol157_439(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 136
//Symbol158_440 (ZRv_fla.Symbol158_440)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol158_440 extends MovieClip {
public function Symbol158_440(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 137
//Symbol159_441 (ZRv_fla.Symbol159_441)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol159_441 extends MovieClip {
public function Symbol159_441(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 138
//Symbol160_442 (ZRv_fla.Symbol160_442)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol160_442 extends MovieClip {
public function Symbol160_442(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 139
//Symbol161_443 (ZRv_fla.Symbol161_443)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol161_443 extends MovieClip {
public function Symbol161_443(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 140
//Symbol162_444 (ZRv_fla.Symbol162_444)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol162_444 extends MovieClip {
public function Symbol162_444(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 141
//Symbol163_445 (ZRv_fla.Symbol163_445)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol163_445 extends MovieClip {
public function Symbol163_445(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 142
//Symbol164_35 (ZRv_fla.Symbol164_35)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol164_35 extends MovieClip {
public function Symbol164_35(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package ZRv_fla
Section 143
//Symbol172_423 (ZRv_fla.Symbol172_423)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol172_423 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 144
//Symbol173_424 (ZRv_fla.Symbol173_424)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol173_424 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 145
//Symbol174_425 (ZRv_fla.Symbol174_425)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol174_425 extends MovieClip {
public var mc1:MovieClip;
}
}//package ZRv_fla
Section 146
//Symbol189_478 (ZRv_fla.Symbol189_478)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol189_478 extends MovieClip {
public var mclist3:MovieClip;
public var mclist7:MovieClip;
public var mclist1:MovieClip;
public var mclist4:MovieClip;
public var mclist5:MovieClip;
public var mclist6:MovieClip;
public var mc50:MovieClip;
public var mc52:MovieClip;
public var mclist2:MovieClip;
public var mc51:MovieClip;
public var mc53:MovieClip;
public var mc49:MovieClip;
public var mcpanel1:MovieClip;
public var mcpanel3:MovieClip;
public var mcpanel4:MovieClip;
public var mcpanel5:MovieClip;
public var mcpanel2:MovieClip;
}
}//package ZRv_fla
Section 147
//Symbol19_407 (ZRv_fla.Symbol19_407)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol19_407 extends MovieClip {
public function Symbol19_407(){
addFrameScript(55, frame56);
}
function frame56(){
stop();
}
}
}//package ZRv_fla
Section 148
//Symbol190_378 (ZRv_fla.Symbol190_378)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol190_378 extends MovieClip {
public var txt1:TextField;
}
}//package ZRv_fla
Section 149
//Symbol192_34 (ZRv_fla.Symbol192_34)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol192_34 extends MovieClip {
public function Symbol192_34(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package ZRv_fla
Section 150
//Symbol193_36 (ZRv_fla.Symbol193_36)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol193_36 extends MovieClip {
public function Symbol193_36(){
addFrameScript(0, frame1, 1, frame2, 40, frame41);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame41(){
gotoAndPlay(2);
}
}
}//package ZRv_fla
Section 151
//Symbol200_176 (ZRv_fla.Symbol200_176)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol200_176 extends MovieClip {
public var txt1:TextField;
}
}//package ZRv_fla
Section 152
//Symbol222copy_491 (ZRv_fla.Symbol222copy_491)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol222copy_491 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 153
//Symbol222copy2_493 (ZRv_fla.Symbol222copy2_493)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol222copy2_493 extends MovieClip {
public var mchit:MovieClip;
}
}//package ZRv_fla
Section 154
//Symbol37_321 (ZRv_fla.Symbol37_321)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol37_321 extends MovieClip {
public var txtcost:TextField;
}
}//package ZRv_fla
Section 155
//Symbol4_18 (ZRv_fla.Symbol4_18)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol4_18 extends MovieClip {
public function Symbol4_18(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package ZRv_fla
Section 156
//Symbol46_285 (ZRv_fla.Symbol46_285)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol46_285 extends MovieClip {
public function Symbol46_285(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 157
//Symbol48_284 (ZRv_fla.Symbol48_284)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol48_284 extends MovieClip {
public function Symbol48_284(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 158
//Symbol6_360 (ZRv_fla.Symbol6_360)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol6_360 extends MovieClip {
public function Symbol6_360(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 159
//Symbol68_330 (ZRv_fla.Symbol68_330)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol68_330 extends MovieClip {
public var mccp:MovieClip;
public var txtcp:TextField;
}
}//package ZRv_fla
Section 160
//Symbol71_295 (ZRv_fla.Symbol71_295)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol71_295 extends MovieClip {
public function Symbol71_295(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 161
//Symbol71copy_301 (ZRv_fla.Symbol71copy_301)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol71copy_301 extends MovieClip {
public function Symbol71copy_301(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 162
//Symbol72_296 (ZRv_fla.Symbol72_296)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol72_296 extends MovieClip {
public function Symbol72_296(){
addFrameScript(0, frame1, 17, frame18);
}
function frame18(){
stop();
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 163
//Symbol72copy_299 (ZRv_fla.Symbol72copy_299)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol72copy_299 extends MovieClip {
public function Symbol72copy_299(){
addFrameScript(0, frame1, 18, frame19);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
function frame19(){
stop();
}
}
}//package ZRv_fla
Section 164
//Symbol73_300 (ZRv_fla.Symbol73_300)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol73_300 extends MovieClip {
public function Symbol73_300(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
function frame20(){
stop();
}
}
}//package ZRv_fla
Section 165
//Symbol73copy_297 (ZRv_fla.Symbol73copy_297)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol73copy_297 extends MovieClip {
public function Symbol73copy_297(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package ZRv_fla
Section 166
//Symbol81_189 (ZRv_fla.Symbol81_189)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol81_189 extends MovieClip {
public var mczombie1:MovieClip;
public var mczombie2:MovieClip;
public var mchit2:MovieClip;
public var mchit4:MovieClip;
public var mchit5:MovieClip;
public var mchit6:MovieClip;
public var mchit7:MovieClip;
public var mchit3:MovieClip;
public var mchit1:MovieClip;
public var mchit8:MovieClip;
}
}//package ZRv_fla
Section 167
//Symbol83_3 (ZRv_fla.Symbol83_3)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol83_3 extends MovieClip {
public var mchit:MovieClip;
public var hasile;
public function Symbol83_3(){
addFrameScript(0, frame1, 61, frame62, 131, frame132, 137, frame138, 165, frame166, 290, frame291, 381, frame382);
}
function frame166(){
gotoAndPlay("shining");
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame291(){
gotoAndPlay("shining");
}
function frame1(){
hasile = randRange(1, 5);
gotoAndPlay(("idle" + hasile));
}
function frame132(){
gotoAndPlay("shining");
}
function frame138(){
gotoAndPlay("shining");
}
function frame382(){
gotoAndPlay("shining");
}
function frame62(){
gotoAndPlay(("idle" + randRange(1, 5)));
}
}
}//package ZRv_fla
Section 168
//Symbol86_187 (ZRv_fla.Symbol86_187)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol86_187 extends MovieClip {
public var mccity:MovieClip;
}
}//package ZRv_fla
Section 169
//Symbol87_184 (ZRv_fla.Symbol87_184)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol87_184 extends MovieClip {
public var mccity:MovieClip;
}
}//package ZRv_fla
Section 170
//Symbol88_186 (ZRv_fla.Symbol88_186)
package ZRv_fla {
import flash.display.*;
public dynamic class Symbol88_186 extends MovieClip {
public function Symbol88_186(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package ZRv_fla
Section 171
//THROPY_395 (ZRv_fla.THROPY_395)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class THROPY_395 extends MovieClip {
public var btnback:SimpleButton;
public var btnnext:SimpleButton;
public var mcthropy1:MovieClip;
public var btnprev:SimpleButton;
public var mcthropy2:MovieClip;
public var mcthropy5:MovieClip;
public var mcthropy4:MovieClip;
public var mcthropy3:MovieClip;
public var txtpage:TextField;
}
}//package ZRv_fla
Section 172
//THROPY_396 (ZRv_fla.THROPY_396)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class THROPY_396 extends MovieClip {
public var mcthropy1:MovieClip;
public var mcthropy2:MovieClip;
public var mcthropy3:MovieClip;
public var txt1:TextField;
public var txt2:TextField;
}
}//package ZRv_fla
Section 173
//UPGRADEBALOON_394 (ZRv_fla.UPGRADEBALOON_394)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UPGRADEBALOON_394 extends MovieClip {
public var txt1:TextField;
}
}//package ZRv_fla
Section 174
//VISIBLER_4 (ZRv_fla.VISIBLER_4)
package ZRv_fla {
import flash.display.*;
public dynamic class VISIBLER_4 extends MovieClip {
public function VISIBLER_4(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package ZRv_fla
Section 175
//VISIBLERyoyo_24 (ZRv_fla.VISIBLERyoyo_24)
package ZRv_fla {
import flash.display.*;
public dynamic class VISIBLERyoyo_24 extends MovieClip {
public function VISIBLERyoyo_24(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package ZRv_fla
Section 176
//ZOMBIE_408 (ZRv_fla.ZOMBIE_408)
package ZRv_fla {
import flash.display.*;
public dynamic class ZOMBIE_408 extends MovieClip {
public var mcselected:MovieClip;
public var mc1:MovieClip;
public function ZOMBIE_408(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
function frame1(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
mcselected.mouseChildren = false;
mcselected.mouseEnabled = false;
}
function frame2(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
}
}
}//package ZRv_fla
Section 177
//ZOMBIEINFO_402 (ZRv_fla.ZOMBIEINFO_402)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class ZOMBIEINFO_402 extends MovieClip {
public var btnback:SimpleButton;
public var mczombiepanel:MovieClip;
public var btnnext:SimpleButton;
public var btnprev:SimpleButton;
public var mcchar1:MovieClip;
public var mcchar2:MovieClip;
public var mcchar3:MovieClip;
public var mcchar4:MovieClip;
public var txtpage:TextField;
}
}//package ZRv_fla
Section 178
//ZOMBIEINFO_403 (ZRv_fla.ZOMBIEINFO_403)
package ZRv_fla {
import flash.display.*;
import flash.text.*;
public dynamic class ZOMBIEINFO_403 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mcskill:MovieClip;
public var txtatk:TextField;
public var txthp:TextField;
public function ZOMBIEINFO_403(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZRv_fla
Section 179
//achievementsound (achievementsound)
package {
import flash.media.*;
public dynamic class achievementsound extends Sound {
}
}//package
Section 180
//areaclearedsound (areaclearedsound)
package {
import flash.media.*;
public dynamic class areaclearedsound extends Sound {
}
}//package
Section 181
//blocksound1 (blocksound1)
package {
import flash.media.*;
public dynamic class blocksound1 extends Sound {
}
}//package
Section 182
//blocksound2 (blocksound2)
package {
import flash.media.*;
public dynamic class blocksound2 extends Sound {
}
}//package
Section 183
//boingsound (boingsound)
package {
import flash.media.*;
public dynamic class boingsound extends Sound {
}
}//package
Section 184
//bombdropsound (bombdropsound)
package {
import flash.media.*;
public dynamic class bombdropsound extends Sound {
}
}//package
Section 185
//boomerangmissile (boomerangmissile)
package {
import flash.display.*;
public dynamic class boomerangmissile extends MovieClip {
public function boomerangmissile(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
gotoAndPlay(1);
}
function frame34(){
gotoAndPlay("back");
}
}
}//package
Section 186
//boomerangmissilesparkle (boomerangmissilesparkle)
package {
import flash.display.*;
public dynamic class boomerangmissilesparkle extends MovieClip {
public var mc1:boomerangmissile;
public function boomerangmissilesparkle(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 187
//bullet1 (bullet1)
package {
import flash.display.*;
public dynamic class bullet1 extends MovieClip {
public function bullet1(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package
Section 188
//bullet2 (bullet2)
package {
import flash.display.*;
public dynamic class bullet2 extends MovieClip {
public function bullet2(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package
Section 189
//bullet3 (bullet3)
package {
import flash.display.*;
public dynamic class bullet3 extends MovieClip {
public function bullet3(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package
Section 190
//bulletbomberaircraft (bulletbomberaircraft)
package {
import flash.display.*;
public dynamic class bulletbomberaircraft extends MovieClip {
}
}//package
Section 191
//bullethitsound1 (bullethitsound1)
package {
import flash.media.*;
public dynamic class bullethitsound1 extends Sound {
}
}//package
Section 192
//bulletmissile (bulletmissile)
package {
import flash.display.*;
public dynamic class bulletmissile extends MovieClip {
public function bulletmissile(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 193
//bulletsound1 (bulletsound1)
package {
import flash.media.*;
public dynamic class bulletsound1 extends Sound {
}
}//package
Section 194
//bulletsound2 (bulletsound2)
package {
import flash.media.*;
public dynamic class bulletsound2 extends Sound {
}
}//package
Section 195
//bulletsound3 (bulletsound3)
package {
import flash.media.*;
public dynamic class bulletsound3 extends Sound {
}
}//package
Section 196
//buttonoversound (buttonoversound)
package {
import flash.media.*;
public dynamic class buttonoversound extends Sound {
}
}//package
Section 197
//canexplodesound (canexplodesound)
package {
import flash.media.*;
public dynamic class canexplodesound extends Sound {
}
}//package
Section 198
//canhitsound1 (canhitsound1)
package {
import flash.media.*;
public dynamic class canhitsound1 extends Sound {
}
}//package
Section 199
//canhitsound2 (canhitsound2)
package {
import flash.media.*;
public dynamic class canhitsound2 extends Sound {
}
}//package
Section 200
//canhitsound3 (canhitsound3)
package {
import flash.media.*;
public dynamic class canhitsound3 extends Sound {
}
}//package
Section 201
//cartsound (cartsound)
package {
import flash.media.*;
public dynamic class cartsound extends Sound {
}
}//package
Section 202
//charantonio (charantonio)
package {
import flash.display.*;
public dynamic class charantonio extends MovieClip {
public var mcblitzkrieg:MovieClip;
public var mc1:MovieClip;
public var mcbuff:MovieClip;
public function charantonio(){
addFrameScript(0, frame1, 10, frame11, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 203
//charbarrel (charbarrel)
package {
import flash.display.*;
public dynamic class charbarrel extends MovieClip {
public var mc1:MovieClip;
public function charbarrel(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 204
//charcivilian1 (charcivilian1)
package {
import flash.display.*;
public dynamic class charcivilian1 extends MovieClip {
}
}//package
Section 205
//charcivilian2 (charcivilian2)
package {
import flash.display.*;
public dynamic class charcivilian2 extends MovieClip {
}
}//package
Section 206
//charcivilian3 (charcivilian3)
package {
import flash.display.*;
public dynamic class charcivilian3 extends MovieClip {
}
}//package
Section 207
//charcivilian4 (charcivilian4)
package {
import flash.display.*;
public dynamic class charcivilian4 extends MovieClip {
}
}//package
Section 208
//charelectricpole (charelectricpole)
package {
import flash.display.*;
public dynamic class charelectricpole extends MovieClip {
public function charelectricpole(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 209
//charequiphelm (charequiphelm)
package {
import flash.display.*;
public dynamic class charequiphelm extends MovieClip {
public function charequiphelm(){
addFrameScript(54, frame55);
}
function frame55(){
stop();
}
}
}//package
Section 210
//charequipshade (charequipshade)
package {
import flash.display.*;
public dynamic class charequipshade extends MovieClip {
public function charequipshade(){
addFrameScript(54, frame55);
}
function frame55(){
stop();
}
}
}//package
Section 211
//chargordon (chargordon)
package {
import flash.display.*;
public dynamic class chargordon extends MovieClip {
public var mcblitzkrieg:MovieClip;
public var mc1:MovieClip;
public var mcbuff:MovieClip;
public function chargordon(){
addFrameScript(0, frame1, 10, frame11, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 212
//charironwood (charironwood)
package {
import flash.display.*;
public dynamic class charironwood extends MovieClip {
public var mc1:MovieClip;
public function charironwood(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 213
//charjim (charjim)
package {
import flash.display.*;
public dynamic class charjim extends MovieClip {
public var mcblitzkrieg:MovieClip;
public var mc1:MovieClip;
public var mcbuff:MovieClip;
public function charjim(){
addFrameScript(0, frame1, 10, frame11, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 214
//charknight (charknight)
package {
import flash.display.*;
public dynamic class charknight extends MovieClip {
public var mcblitzkrieg:MovieClip;
public var mc1:MovieClip;
public var mcbuff:MovieClip;
public function charknight(){
addFrameScript(0, frame1, 10, frame11, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 215
//charmarrion (charmarrion)
package {
import flash.display.*;
public dynamic class charmarrion extends MovieClip {
public var mcblitzkrieg:MovieClip;
public var mc1:MovieClip;
public var mcbuff:MovieClip;
public function charmarrion(){
addFrameScript(0, frame1, 10, frame11, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 216
//charnevera (charnevera)
package {
import flash.display.*;
public dynamic class charnevera extends MovieClip {
public var mcblitzkrieg:MovieClip;
public var mc1:MovieClip;
public var mcbuff:MovieClip;
public function charnevera(){
addFrameScript(0, frame1, 10, frame11, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 217
//charpole (charpole)
package {
import flash.display.*;
public dynamic class charpole extends MovieClip {
public var mcflag:MovieClip;
public function charpole(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 218
//charriotbarrel (charriotbarrel)
package {
import flash.display.*;
public dynamic class charriotbarrel extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charriotbarrel(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package
Section 219
//charriotcase (charriotcase)
package {
import flash.display.*;
public dynamic class charriotcase extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charriotcase(){
addFrameScript(0, frame1, 11, frame12, 22, frame23);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame23(){
gotoAndStop(1);
}
}
}//package
Section 220
//charriotrobo (charriotrobo)
package {
import flash.display.*;
public dynamic class charriotrobo extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charriotrobo(){
addFrameScript(0, frame1, 11, frame12, 22, frame23);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame23(){
gotoAndStop(1);
}
}
}//package
Section 221
//charshadow (charshadow)
package {
import flash.display.*;
public dynamic class charshadow extends MovieClip {
public function charshadow(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 222
//charzack (charzack)
package {
import flash.display.*;
public dynamic class charzack extends MovieClip {
public var mcblitzkrieg:MovieClip;
public var mc1:MovieClip;
public var mcbuff:MovieClip;
public function charzack(){
addFrameScript(0, frame1, 10, frame11, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 223
//charzombie1 (charzombie1)
package {
import flash.display.*;
public dynamic class charzombie1 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie1(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 224
//charzombie10 (charzombie10)
package {
import flash.display.*;
public dynamic class charzombie10 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie10(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 225
//charzombie11 (charzombie11)
package {
import flash.display.*;
public dynamic class charzombie11 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie11(){
addFrameScript(0, frame1, 11, frame12, 22, frame23);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame23(){
gotoAndStop(1);
}
}
}//package
Section 226
//charzombie12 (charzombie12)
package {
import flash.display.*;
public dynamic class charzombie12 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie12(){
addFrameScript(0, frame1, 11, frame12, 22, frame23, 23, frame24);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame23(){
gotoAndStop(1);
}
function frame24(){
stop();
}
}
}//package
Section 227
//charzombie13 (charzombie13)
package {
import flash.display.*;
public dynamic class charzombie13 extends MovieClip {
public var mc1:MovieClip;
public var mcelectrocuted:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie13(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 228
//charzombie2 (charzombie2)
package {
import flash.display.*;
public dynamic class charzombie2 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie2(){
addFrameScript(0, frame1, 11, frame12, 22, frame23);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame23(){
gotoAndStop(1);
}
}
}//package
Section 229
//charzombie3 (charzombie3)
package {
import flash.display.*;
public dynamic class charzombie3 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie3(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 230
//charzombie4 (charzombie4)
package {
import flash.display.*;
public dynamic class charzombie4 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie4(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package
Section 231
//charzombie5 (charzombie5)
package {
import flash.display.*;
public dynamic class charzombie5 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie5(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 232
//charzombie5bubble (charzombie5bubble)
package {
import flash.display.*;
public dynamic class charzombie5bubble extends MovieClip {
public var mchit:MovieClip;
public function charzombie5bubble(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 233
//charzombie6 (charzombie6)
package {
import flash.display.*;
public dynamic class charzombie6 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie6(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 234
//charzombie7 (charzombie7)
package {
import flash.display.*;
public dynamic class charzombie7 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie7(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 235
//charzombie8 (charzombie8)
package {
import flash.display.*;
public dynamic class charzombie8 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie8(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 236
//charzombie9 (charzombie9)
package {
import flash.display.*;
public dynamic class charzombie9 extends MovieClip {
public var mc1:MovieClip;
public var mcfrozen:MovieClip;
public function charzombie9(){
addFrameScript(0, frame1, 10, frame11, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 237
//clicksound (clicksound)
package {
import flash.media.*;
public dynamic class clicksound extends Sound {
}
}//package
Section 238
//cocksound (cocksound)
package {
import flash.media.*;
public dynamic class cocksound extends Sound {
}
}//package
Section 239
//coinprize (coinprize)
package {
import flash.display.*;
public dynamic class coinprize extends MovieClip {
public function coinprize(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package
Section 240
//cpgenerate (cpgenerate)
package {
import flash.display.*;
public dynamic class cpgenerate extends MovieClip {
public var mchit:MovieClip;
public function cpgenerate(){
addFrameScript(38, frame39, 62, frame63);
}
function frame39(){
stop();
}
function frame63(){
stop();
}
}
}//package
Section 241
//cpreducer (cpreducer)
package {
import flash.display.*;
public dynamic class cpreducer extends MovieClip {
public var mc1:MovieClip;
public function cpreducer(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 242
//cpsound (cpsound)
package {
import flash.media.*;
public dynamic class cpsound extends Sound {
}
}//package
Section 243
//doorslidesound (doorslidesound)
package {
import flash.media.*;
public dynamic class doorslidesound extends Sound {
}
}//package
Section 244
//explodesound (explodesound)
package {
import flash.media.*;
public dynamic class explodesound extends Sound {
}
}//package
Section 245
//explosionsound (explosionsound)
package {
import flash.media.*;
public dynamic class explosionsound extends Sound {
}
}//package
Section 246
//firesound (firesound)
package {
import flash.media.*;
public dynamic class firesound extends Sound {
}
}//package
Section 247
//flagsound (flagsound)
package {
import flash.media.*;
public dynamic class flagsound extends Sound {
}
}//package
Section 248
//freezesound (freezesound)
package {
import flash.media.*;
public dynamic class freezesound extends Sound {
}
}//package
Section 249
//frostgunsound (frostgunsound)
package {
import flash.media.*;
public dynamic class frostgunsound extends Sound {
}
}//package
Section 250
//fxballthrow (fxballthrow)
package {
import flash.display.*;
public dynamic class fxballthrow extends MovieClip {
public var mchit:MovieClip;
}
}//package
Section 251
//fxbarrelpieces1 (fxbarrelpieces1)
package {
import flash.display.*;
public dynamic class fxbarrelpieces1 extends MovieClip {
public var mc1:MovieClip;
public function fxbarrelpieces1(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package
Section 252
//fxbarrelpieces2 (fxbarrelpieces2)
package {
import flash.display.*;
public dynamic class fxbarrelpieces2 extends MovieClip {
public var mc1:MovieClip;
public function fxbarrelpieces2(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package
Section 253
//fxbarrelpieces3 (fxbarrelpieces3)
package {
import flash.display.*;
public dynamic class fxbarrelpieces3 extends MovieClip {
public var mc1:MovieClip;
public function fxbarrelpieces3(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package
Section 254
//fxblood1 (fxblood1)
package {
import flash.display.*;
public dynamic class fxblood1 extends MovieClip {
public function fxblood1(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package
Section 255
//fxblood2 (fxblood2)
package {
import flash.display.*;
public dynamic class fxblood2 extends MovieClip {
public function fxblood2(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package
Section 256
//fxbodypart1 (fxbodypart1)
package {
import flash.display.*;
public dynamic class fxbodypart1 extends MovieClip {
public var mc1:MovieClip;
public function fxbodypart1(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package
Section 257
//fxbodypart2 (fxbodypart2)
package {
import flash.display.*;
public dynamic class fxbodypart2 extends MovieClip {
public var mc1:MovieClip;
public function fxbodypart2(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package
Section 258
//fxbodypart3 (fxbodypart3)
package {
import flash.display.*;
public dynamic class fxbodypart3 extends MovieClip {
public var mc1:MovieClip;
public function fxbodypart3(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package
Section 259
//fxbodypart4 (fxbodypart4)
package {
import flash.display.*;
public dynamic class fxbodypart4 extends MovieClip {
public var mc1:MovieClip;
public function fxbodypart4(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package
Section 260
//fxbodypart5 (fxbodypart5)
package {
import flash.display.*;
public dynamic class fxbodypart5 extends MovieClip {
public var mc1:MovieClip;
public function fxbodypart5(){
addFrameScript(53, frame54);
}
function frame54(){
stop();
}
}
}//package
Section 261
//fxbodypart6 (fxbodypart6)
package {
import flash.display.*;
public dynamic class fxbodypart6 extends MovieClip {
public var mc1:MovieClip;
public function fxbodypart6(){
addFrameScript(55, frame56);
}
function frame56(){
stop();
}
}
}//package
Section 262
//fxbodypart7 (fxbodypart7)
package {
import flash.display.*;
public dynamic class fxbodypart7 extends MovieClip {
public var mc1:MovieClip;
public function fxbodypart7(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package
Section 263
//fxdeafblast (fxdeafblast)
package {
import flash.display.*;
public dynamic class fxdeafblast extends MovieClip {
}
}//package
Section 264
//fxdeafblastsparkle (fxdeafblastsparkle)
package {
import flash.display.*;
public dynamic class fxdeafblastsparkle extends MovieClip {
public function fxdeafblastsparkle(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package
Section 265
//fxfruit (fxfruit)
package {
import flash.display.*;
public dynamic class fxfruit extends MovieClip {
public var mchit:MovieClip;
public function fxfruit(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
stop();
}
}
}//package
Section 266
//fxhatch (fxhatch)
package {
import flash.media.*;
public dynamic class fxhatch extends Sound {
}
}//package
Section 267
//fxicebulletmissile (fxicebulletmissile)
package {
import flash.display.*;
public dynamic class fxicebulletmissile extends MovieClip {
}
}//package
Section 268
//fxicecubesummary (fxicecubesummary)
package {
import flash.display.*;
public dynamic class fxicecubesummary extends MovieClip {
public function fxicecubesummary(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package
Section 269
//fxicecubesummary2 (fxicecubesummary2)
package {
import flash.display.*;
public dynamic class fxicecubesummary2 extends MovieClip {
public function fxicecubesummary2(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package
Section 270
//fxicecubesummary3 (fxicecubesummary3)
package {
import flash.display.*;
public dynamic class fxicecubesummary3 extends MovieClip {
public function fxicecubesummary3(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 271
//fxlightingball (fxlightingball)
package {
import flash.display.*;
public dynamic class fxlightingball extends MovieClip {
}
}//package
Section 272
//fxlightinglazer1 (fxlightinglazer1)
package {
import flash.display.*;
public dynamic class fxlightinglazer1 extends MovieClip {
public var mchit:MovieClip;
public function fxlightinglazer1(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 273
//fxlightinglazer2 (fxlightinglazer2)
package {
import flash.display.*;
public dynamic class fxlightinglazer2 extends MovieClip {
public var mchit:MovieClip;
public function fxlightinglazer2(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package
Section 274
//fxlightingsparkle (fxlightingsparkle)
package {
import flash.display.*;
public dynamic class fxlightingsparkle extends MovieClip {
public function fxlightingsparkle(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 275
//fxmegaboomerang (fxmegaboomerang)
package {
import flash.display.*;
public dynamic class fxmegaboomerang extends MovieClip {
}
}//package
Section 276
//fxmegaboomerangsparkle1 (fxmegaboomerangsparkle1)
package {
import flash.display.*;
public dynamic class fxmegaboomerangsparkle1 extends MovieClip {
public var mc1:MovieClip;
public function fxmegaboomerangsparkle1(){
addFrameScript(0, frame1, 18, frame19);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
mc1.gotoAndStop(randRange(1, mc1.totalFrames));
}
function frame19(){
stop();
}
}
}//package
Section 277
//fxmegaboomerangsparkle2 (fxmegaboomerangsparkle2)
package {
import flash.display.*;
public dynamic class fxmegaboomerangsparkle2 extends MovieClip {
public var mc1:MovieClip;
public function fxmegaboomerangsparkle2(){
addFrameScript(0, frame1, 18, frame19);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
mc1.gotoAndStop(randRange(1, mc1.totalFrames));
}
function frame19(){
stop();
}
}
}//package
Section 278
//fxmegaboomerangsparkle3 (fxmegaboomerangsparkle3)
package {
import flash.display.*;
public dynamic class fxmegaboomerangsparkle3 extends MovieClip {
public var mc1:MovieClip;
public function fxmegaboomerangsparkle3(){
addFrameScript(0, frame1, 12, frame13);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
mc1.gotoAndStop(randRange(1, mc1.totalFrames));
}
function frame13(){
stop();
}
}
}//package
Section 279
//fxrobomissile (fxrobomissile)
package {
import flash.display.*;
public dynamic class fxrobomissile extends MovieClip {
}
}//package
Section 280
//fxrobosplatter (fxrobosplatter)
package {
import flash.display.*;
public dynamic class fxrobosplatter extends MovieClip {
public var mc1:MovieClip;
public function fxrobosplatter(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package
Section 281
//fxrpgball (fxrpgball)
package {
import flash.display.*;
public dynamic class fxrpgball extends MovieClip {
}
}//package
Section 282
//fxrpgexplosion (fxrpgexplosion)
package {
import flash.display.*;
public dynamic class fxrpgexplosion extends MovieClip {
}
}//package
Section 283
//fxrpgsharpnel (fxrpgsharpnel)
package {
import flash.display.*;
public dynamic class fxrpgsharpnel extends MovieClip {
public function fxrpgsharpnel(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 284
//fxsharpnelexplosion (fxsharpnelexplosion)
package {
import flash.display.*;
public dynamic class fxsharpnelexplosion extends MovieClip {
public function fxsharpnelexplosion(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 285
//fxsniperblast (fxsniperblast)
package {
import flash.display.*;
public dynamic class fxsniperblast extends MovieClip {
public function fxsniperblast(){
addFrameScript(62, frame63);
}
function frame63(){
stop();
}
}
}//package
Section 286
//fxsparkle (fxsparkle)
package {
import flash.display.*;
public dynamic class fxsparkle extends MovieClip {
public function fxsparkle(){
addFrameScript(37, frame38);
}
function frame38(){
stop();
}
}
}//package
Section 287
//fxsplater2 (fxsplater2)
package {
import flash.display.*;
public dynamic class fxsplater2 extends MovieClip {
public var mc1:MovieClip;
public function fxsplater2(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 288
//fxsplatter (fxsplatter)
package {
import flash.display.*;
public dynamic class fxsplatter extends MovieClip {
public var mc1:MovieClip;
public function fxsplatter(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package
Section 289
//fxsuperswing (fxsuperswing)
package {
import flash.display.*;
public dynamic class fxsuperswing extends MovieClip {
public function fxsuperswing(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package
Section 290
//growlsound (growlsound)
package {
import flash.media.*;
public dynamic class growlsound extends Sound {
}
}//package
Section 291
//gunsound1 (gunsound1)
package {
import flash.media.*;
public dynamic class gunsound1 extends Sound {
}
}//package
Section 292
//gunsound2 (gunsound2)
package {
import flash.media.*;
public dynamic class gunsound2 extends Sound {
}
}//package
Section 293
//heartbeatsound (heartbeatsound)
package {
import flash.media.*;
public dynamic class heartbeatsound extends Sound {
}
}//package
Section 294
//hitsound1 (hitsound1)
package {
import flash.media.*;
public dynamic class hitsound1 extends Sound {
}
}//package
Section 295
//hitsound2 (hitsound2)
package {
import flash.media.*;
public dynamic class hitsound2 extends Sound {
}
}//package
Section 296
//hitsound3 (hitsound3)
package {
import flash.media.*;
public dynamic class hitsound3 extends Sound {
}
}//package
Section 297
//icesound1 (icesound1)
package {
import flash.media.*;
public dynamic class icesound1 extends Sound {
}
}//package
Section 298
//icesound2 (icesound2)
package {
import flash.media.*;
public dynamic class icesound2 extends Sound {
}
}//package
Section 299
//imagetile (imagetile)
package {
import flash.display.*;
public dynamic class imagetile extends MovieClip {
public var mchit:MovieClip;
public function imagetile(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 300
//ingamesound (ingamesound)
package {
import flash.media.*;
public dynamic class ingamesound extends Sound {
}
}//package
Section 301
//ingametilespecial (ingametilespecial)
package {
import flash.display.*;
public dynamic class ingametilespecial extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 302
//ironbatsound1 (ironbatsound1)
package {
import flash.media.*;
public dynamic class ironbatsound1 extends Sound {
}
}//package
Section 303
//ironbatsound2 (ironbatsound2)
package {
import flash.media.*;
public dynamic class ironbatsound2 extends Sound {
}
}//package
Section 304
//levelcompletesound (levelcompletesound)
package {
import flash.media.*;
public dynamic class levelcompletesound extends Sound {
}
}//package
Section 305
//lightsound (lightsound)
package {
import flash.media.*;
public dynamic class lightsound extends Sound {
}
}//package
Section 306
//locomotivesound (locomotivesound)
package {
import flash.media.*;
public dynamic class locomotivesound extends Sound {
}
}//package
Section 307
//losesound (losesound)
package {
import flash.media.*;
public dynamic class losesound extends Sound {
}
}//package
Section 308
//mainmenusound (mainmenusound)
package {
import flash.media.*;
public dynamic class mainmenusound extends Sound {
}
}//package
Section 309
//megaboomerangsound (megaboomerangsound)
package {
import flash.media.*;
public dynamic class megaboomerangsound extends Sound {
}
}//package
Section 310
//minimapbuilding (minimapbuilding)
package {
import flash.display.*;
public dynamic class minimapbuilding extends MovieClip {
}
}//package
Section 311
//moneysound (moneysound)
package {
import flash.media.*;
public dynamic class moneysound extends Sound {
}
}//package
Section 312
//newunitsound (newunitsound)
package {
import flash.media.*;
public dynamic class newunitsound extends Sound {
}
}//package
Section 313
//nosound (nosound)
package {
import flash.media.*;
public dynamic class nosound extends Sound {
}
}//package
Section 314
//plastersound (plastersound)
package {
import flash.media.*;
public dynamic class plastersound extends Sound {
}
}//package
Section 315
//powerupsound (powerupsound)
package {
import flash.media.*;
public dynamic class powerupsound extends Sound {
}
}//package
Section 316
//robocomesound (robocomesound)
package {
import flash.media.*;
public dynamic class robocomesound extends Sound {
}
}//package
Section 317
//robojawsound (robojawsound)
package {
import flash.media.*;
public dynamic class robojawsound extends Sound {
}
}//package
Section 318
//screamsound (screamsound)
package {
import flash.media.*;
public dynamic class screamsound extends Sound {
}
}//package
Section 319
//sharpnelbombsound (sharpnelbombsound)
package {
import flash.media.*;
public dynamic class sharpnelbombsound extends Sound {
}
}//package
Section 320
//sirenesound (sirenesound)
package {
import flash.media.*;
public dynamic class sirenesound extends Sound {
}
}//package
Section 321
//snipersound (snipersound)
package {
import flash.media.*;
public dynamic class snipersound extends Sound {
}
}//package
Section 322
//sparksound1 (sparksound1)
package {
import flash.media.*;
public dynamic class sparksound1 extends Sound {
}
}//package
Section 323
//sparksound2 (sparksound2)
package {
import flash.media.*;
public dynamic class sparksound2 extends Sound {
}
}//package
Section 324
//splashsound (splashsound)
package {
import flash.media.*;
public dynamic class splashsound extends Sound {
}
}//package
Section 325
//splatsound2 (splatsound2)
package {
import flash.media.*;
public dynamic class splatsound2 extends Sound {
}
}//package
Section 326
//splatsound3 (splatsound3)
package {
import flash.media.*;
public dynamic class splatsound3 extends Sound {
}
}//package
Section 327
//splatsound4 (splatsound4)
package {
import flash.media.*;
public dynamic class splatsound4 extends Sound {
}
}//package
Section 328
//splatsound5 (splatsound5)
package {
import flash.media.*;
public dynamic class splatsound5 extends Sound {
}
}//package
Section 329
//splatsound6 (splatsound6)
package {
import flash.media.*;
public dynamic class splatsound6 extends Sound {
}
}//package
Section 330
//splatsound7 (splatsound7)
package {
import flash.media.*;
public dynamic class splatsound7 extends Sound {
}
}//package
Section 331
//squishfruitsound (squishfruitsound)
package {
import flash.media.*;
public dynamic class squishfruitsound extends Sound {
}
}//package
Section 332
//startwavesound (startwavesound)
package {
import flash.media.*;
public dynamic class startwavesound extends Sound {
}
}//package
Section 333
//stepsound (stepsound)
package {
import flash.media.*;
public dynamic class stepsound extends Sound {
}
}//package
Section 334
//supergunsound (supergunsound)
package {
import flash.media.*;
public dynamic class supergunsound extends Sound {
}
}//package
Section 335
//superswingsound (superswingsound)
package {
import flash.media.*;
public dynamic class superswingsound extends Sound {
}
}//package
Section 336
//superswingsummonsound (superswingsummonsound)
package {
import flash.media.*;
public dynamic class superswingsummonsound extends Sound {
}
}//package
Section 337
//swingsound1 (swingsound1)
package {
import flash.media.*;
public dynamic class swingsound1 extends Sound {
}
}//package
Section 338
//swingsound2 (swingsound2)
package {
import flash.media.*;
public dynamic class swingsound2 extends Sound {
}
}//package
Section 339
//trainhornsound (trainhornsound)
package {
import flash.media.*;
public dynamic class trainhornsound extends Sound {
}
}//package
Section 340
//tutorialsound (tutorialsound)
package {
import flash.media.*;
public dynamic class tutorialsound extends Sound {
}
}//package
Section 341
//watersound1 (watersound1)
package {
import flash.media.*;
public dynamic class watersound1 extends Sound {
}
}//package
Section 342
//watersound2 (watersound2)
package {
import flash.media.*;
public dynamic class watersound2 extends Sound {
}
}//package
Section 343
//woodhitsound1 (woodhitsound1)
package {
import flash.media.*;
public dynamic class woodhitsound1 extends Sound {
}
}//package
Section 344
//woodhitsound2 (woodhitsound2)
package {
import flash.media.*;
public dynamic class woodhitsound2 extends Sound {
}
}//package