STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228128
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/64527909?noj=FRM64527909-14DC" width="1" height="1"></div>

Battlefield Arena - Set up a base and destroy enemies in this tower defense game.swf

This is the info page for
Flash #131722

(Click the ID number above for more basic data on this flash file.)


Text
+100G

EXPLOSIVE GAMES

PRESENTS

NEW GAME

CONTINUE

CONTINUE

MORE GAMES

CREDITS

CREDITS

© smallfarmstudio.com

Yes

Yes

No

No

your saved game
will be lost

CREDIT

Developed by

Programming

TVX

Illustrator

zeinjee

Animator

david

Music

DarqueHand
Lethal Destiny

spudmonk
Four Days

Nathan Pinard
Unforgotten Realms

bas3008
enemy in the fog

Pavel Zuk
Ninja Rampage Theme

All music can be found at
newgrounds audio portal

all soundefects can be found
at various source in internet

sponsored by

Thank to

Arnoud V.D.H

Follow us

lately has been discovered a place that
full of resources located in the center
of the continent

the location of the place is very
strategic, because it conterminous with
the neighboring nation

some nation prefer to ignore the issues
for their own safety

but some nation with huge military power
prefer to fight for the resources in that
area

and so they start to conquering the area
with huge military power

they start their war to decide which is the
most suitable nation to conquer the rich
resources area

SKIP

SKIP

COOL EFFECT

STAGE 1

10000000

HI SCORE

MEDALS

ATTACK

FACTORY

buy technologies

BACK TO MAIN MENU

Click to continue

Click to continue

This area is full of death, commander. The mutants are killing many of our people.  We'll need your command to keep our spirits high. You should destroy their main reproduction base so that we can reclaim this area.  Good luck.

area clear

Unit Created

Unit destroyed

Enemy Unit destroyed

Enemy BUilding destroyed

Gold earned

1000000

10000000

100000000

10000000

1000000

Total point

10000000000000

YOU GOT NEW MEDAL

YOU GOT NEW MEDAL

1

2

3

4

5

6

7

8

9

0

<p align="right"><font face="Browallia New" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>TANK FACTORY</b></font></p>

1000

100/100

500

BUILD MORE SILO TO CONTINUE UNIT PRODUCTION

INSUFFICIENT FUNDS

G

Active Selection

PRESS SPACEBAR TO UNSELECT

UNITS

GOLD DIGGER

1000

light armor tank utilized for its speed. only attack land units

Heavycross

G

MAX

Change behaviour all your unit
Current Behaviour :

Aggressive

NEW TECHNOLOGY IS FOUND

YOU GOT NEW MEDAL

our resources are running low.
in order to survive we need more
resources.
please build at least 3 miner at
this area and Destroy enemy
base from this area.

new objective

Enemy has spotted our base in
this area. they will attack with
all their army. our base at this
area will not stand a chance to
counter attack them. wait for
reinforcements.
reinforcements will arrive in 5
minutes.

MISSION OBJECTIVE

enemy has launch their ultimate
vehicle "GOLD digger" to drain
gold.
stop "GOLD digger" at any cost
before it drain all gold mine.

DANGER

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

Press Esc Key to Skip Tutorial

welcome to the tutorial
click on your factory to view the
production options, and to see
the current production queue.

Hold SHIFT and click anywhere on
the map to set the rallypoint for
this building. New units will move
to the reallypoint point.

click on this button to order
your first unit.

Back to Map

Back to Map

build 5
buildings in
a stage

destroy 50
enemy units
in a stage

destroy 250
enemy units

open credit
menu

build 4
mines in
stage

buy all
technology

build 7
tower in
stage

submit
highscore

Resume

Resume

High

Medium

Low

Quality

BGM

SFX

Submit

Submit

CANCEL

CANCEL

Your NAme

Your Score

Name

Score

Submit

Score

<p align="center"><font face="Pixelation " size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">No Name</font></p>

<p align="center"><font face="Pixelation " size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">999999999</font></p>

<p align="center"><font face="Pixelation " size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">1</font></p>

Rank

Name

Back

Back

HI SCORE

MORE games

ActionScript [AS3]

Section 1
//AchieLayar_403 (BattleFieldArenav2_fla.AchieLayar_403) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class AchieLayar_403 extends MovieClip { public var build10:MovieClip; public var backbtn:SimpleButton; public var tower7:MovieClip; public var par; public var submitscore:MovieClip; public var mines5:MovieClip; public var alltech:MovieClip; public var destroy500:MovieClip; public var opencredit:MovieClip; public var destroy100:MovieClip; public function AchieLayar_403(){ addFrameScript(0, frame1); } public function goShow():void{ visible = true; build10.gotoAndStop(1); destroy100.gotoAndStop(1); destroy500.gotoAndStop(1); opencredit.gotoAndStop(1); mines5.gotoAndStop(1); alltech.gotoAndStop(1); tower7.gotoAndStop(1); submitscore.gotoAndStop(1); if (par.build10 == true){ build10.gotoAndStop(2); }; if (par.destroy100 == true){ destroy100.gotoAndStop(2); }; if (par.destroy500 == true){ destroy500.gotoAndStop(2); }; if (par.opencredit == true){ opencredit.gotoAndStop(2); }; if (par.mines5 == true){ mines5.gotoAndStop(2); }; if (par.alltech == true){ alltech.gotoAndStop(2); }; if (par.tower7 == true){ tower7.gotoAndStop(2); }; if (par.submitscore == true){ submitscore.gotoAndStop(2); }; } function frame1(){ backbtn.addEventListener(MouseEvent.CLICK, goHide); par = this.parent; } public function goHide(_arg1:MouseEvent):void{ visible = false; } } }//package BattleFieldArenav2_fla
Section 2
//AchieStar_405 (BattleFieldArenav2_fla.AchieStar_405) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class AchieStar_405 extends MovieClip { public function AchieStar_405(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 3
//AddGoldAnimasi_41 (BattleFieldArenav2_fla.AddGoldAnimasi_41) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class AddGoldAnimasi_41 extends MovieClip { public function AddGoldAnimasi_41(){ addFrameScript(1, frame2); } function frame2(){ stop(); } } }//package BattleFieldArenav2_fla
Section 4
//airlandlakon_18 (BattleFieldArenav2_fla.airlandlakon_18) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class airlandlakon_18 extends MovieClip { public var par; public var animasi:MovieClip; public function airlandlakon_18(){ addFrameScript(54, frame55); } function frame55(){ par = this.parent; par.buildTime = -100; } } }//package BattleFieldArenav2_fla
Section 5
//airlandmusuh_26 (BattleFieldArenav2_fla.airlandmusuh_26) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class airlandmusuh_26 extends MovieClip { public var par; public function airlandmusuh_26(){ addFrameScript(27, frame28); } function frame28(){ stop(); par = this.parent; par.buildTime = -100; } } }//package BattleFieldArenav2_fla
Section 6
//Animasi_391 (BattleFieldArenav2_fla.Animasi_391) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Animasi_391 extends MovieClip { public function Animasi_391(){ addFrameScript(0, frame1, 20, frame21, 40, frame41, 60, frame61, 80, frame81, 100, frame101, 120, frame121, 140, frame141, 160, frame161, 180, frame181, 200, frame201); } function frame81(){ stop(); goBack(); } function frame161(){ stop(); goBack(); } function frame201(){ stop(); goBack(); } function frame181(){ goLevel(); } function frame1(){ stop(); } function frame21(){ goLevel(); } public function goLevel():void{ var _local1:*; _local1 = this.parent; _local1.main.firstInitial(); } function frame101(){ goLevel(); } function frame41(){ stop(); goBack(); } function frame121(){ stop(); goBack(); } public function goAnimasi(_arg1:Number):void{ switch (_arg1){ case 1: gotoAndPlay("padangpasir"); break; case 6: gotoAndPlay("padangpasir"); break; case 2: gotoAndPlay("hutan"); break; case 7: gotoAndPlay("hutan"); break; case 3: gotoAndPlay("sungai"); break; case 8: gotoAndPlay("sungai"); break; case 4: gotoAndPlay("bukit"); break; case 9: gotoAndPlay("bukit"); break; case 5: gotoAndPlay("salju"); break; case 10: gotoAndPlay("salju"); break; }; } function frame141(){ goLevel(); } function frame61(){ goLevel(); } public function goBack():void{ gotoAndStop(1); } } }//package BattleFieldArenav2_fla
Section 7
//animasibangunairplane_16 (BattleFieldArenav2_fla.animasibangunairplane_16) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class animasibangunairplane_16 extends MovieClip { public var par; public function animasibangunairplane_16(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 8
//animasibangunairplanemusuh_24 (BattleFieldArenav2_fla.animasibangunairplanemusuh_24) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class animasibangunairplanemusuh_24 extends MovieClip { public var par; public function animasibangunairplanemusuh_24(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); } } }//package BattleFieldArenav2_fla
Section 9
//AnimasiCreate_20 (BattleFieldArenav2_fla.AnimasiCreate_20) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class AnimasiCreate_20 extends MovieClip { public function AnimasiCreate_20(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 10
//animasititle_214 (BattleFieldArenav2_fla.animasititle_214) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class animasititle_214 extends MovieClip { public function animasititle_214(){ addFrameScript(137, frame138); } function frame138(){ stop(); } } }//package BattleFieldArenav2_fla
Section 11
//bangunanmusuhutama2_29 (BattleFieldArenav2_fla.bangunanmusuhutama2_29) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class bangunanmusuhutama2_29 extends MovieClip { public var par; public function bangunanmusuhutama2_29(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); } } }//package BattleFieldArenav2_fla
Section 12
//bangunanutamalakon_34 (BattleFieldArenav2_fla.bangunanutamalakon_34) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class bangunanutamalakon_34 extends MovieClip { public var par; public function bangunanutamalakon_34(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 13
//bangunanutamalakon1_13 (BattleFieldArenav2_fla.bangunanutamalakon1_13) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class bangunanutamalakon1_13 extends MovieClip { public var par; public function bangunanutamalakon1_13(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 14
//bangunanutamamusuh_37 (BattleFieldArenav2_fla.bangunanutamamusuh_37) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class bangunanutamamusuh_37 extends MovieClip { public var par; public function bangunanutamamusuh_37(){ addFrameScript(100, frame101); } function frame101(){ stop(); par = this.parent; par.nextFrame(); } } }//package BattleFieldArenav2_fla
Section 15
//BehaviourBtn_367 (BattleFieldArenav2_fla.BehaviourBtn_367) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BehaviourBtn_367 extends MovieClip { public function BehaviourBtn_367(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 16
//bigbossmusuhkenatembak_171 (BattleFieldArenav2_fla.bigbossmusuhkenatembak_171) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class bigbossmusuhkenatembak_171 extends MovieClip { public var pic:MovieClip; } }//package BattleFieldArenav2_fla
Section 17
//bomb_smoker3_207 (BattleFieldArenav2_fla.bomb_smoker3_207) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class bomb_smoker3_207 extends MovieClip { public var sm:MovieClip; } }//package BattleFieldArenav2_fla
Section 18
//bomb_smoker4_206 (BattleFieldArenav2_fla.bomb_smoker4_206) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class bomb_smoker4_206 extends MovieClip { public var sm:MovieClip; public function bomb_smoker4_206(){ addFrameScript(30, frame31); } function frame31(){ stop(); } } }//package BattleFieldArenav2_fla
Section 19
//BossDown_314 (BattleFieldArenav2_fla.BossDown_314) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class BossDown_314 extends MovieClip { public var par; public var par2; public function BossDown_314(){ addFrameScript(49, frame50, 106, frame107); } function frame107(){ stop(); par = this.parent.parent; par.gotoAndStop("ending"); } function frame50(){ par2 = this.parent; par2.playSound("build"); } } }//package BattleFieldArenav2_fla
Section 20
//Btn16_249 (BattleFieldArenav2_fla.Btn16_249) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Btn16_249 extends MovieClip { public var btnb:MovieClip; public var btna:MovieClip; public var par; public function Btn16_249(){ addFrameScript(0, frame1); } function frame1(){ stop(); par = this.parent; if (par.par.FARSTAGE == 1){ btna.gotoAndStop(2); }; if (par.par.FARSTAGE == 6){ btnb.gotoAndStop(2); }; btna.visible = false; btnb.visible = false; if (par.par.FARSTAGE >= 1){ btna.visible = true; }; if (par.par.FARSTAGE >= 6){ btnb.visible = true; gotoAndStop(2); }; } } }//package BattleFieldArenav2_fla
Section 21
//Btn27_247 (BattleFieldArenav2_fla.Btn27_247) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Btn27_247 extends MovieClip { public var btnb:MovieClip; public var btna:MovieClip; public var par; public function Btn27_247(){ addFrameScript(0, frame1); } function frame1(){ stop(); par = this.parent; if (par.par.FARSTAGE == 2){ btna.gotoAndStop(2); }; if (par.par.FARSTAGE == 7){ btnb.gotoAndStop(2); }; btna.visible = false; btnb.visible = false; if (par.par.FARSTAGE >= 2){ btna.visible = true; }; if (par.par.FARSTAGE >= 7){ btnb.visible = true; gotoAndStop(2); }; } } }//package BattleFieldArenav2_fla
Section 22
//Btn38_245 (BattleFieldArenav2_fla.Btn38_245) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Btn38_245 extends MovieClip { public var btnb:MovieClip; public var btna:MovieClip; public var par; public function Btn38_245(){ addFrameScript(0, frame1); } function frame1(){ stop(); par = this.parent; if (par.par.FARSTAGE == 3){ btna.gotoAndStop(2); }; if (par.par.FARSTAGE == 8){ btnb.gotoAndStop(2); }; btna.visible = false; btnb.visible = false; if (par.par.FARSTAGE >= 3){ btna.visible = true; }; if (par.par.FARSTAGE >= 8){ btnb.visible = true; gotoAndStop(2); }; } } }//package BattleFieldArenav2_fla
Section 23
//Btn49_243 (BattleFieldArenav2_fla.Btn49_243) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Btn49_243 extends MovieClip { public var btnb:MovieClip; public var btna:MovieClip; public var par; public function Btn49_243(){ addFrameScript(0, frame1); } function frame1(){ stop(); par = this.parent; if (par.par.FARSTAGE == 4){ btna.gotoAndStop(2); }; if (par.par.FARSTAGE == 9){ btnb.gotoAndStop(2); }; btna.visible = false; btnb.visible = false; if (par.par.FARSTAGE >= 4){ btna.visible = true; }; if (par.par.FARSTAGE >= 9){ btnb.visible = true; gotoAndStop(2); }; } } }//package BattleFieldArenav2_fla
Section 24
//Btn510_240 (BattleFieldArenav2_fla.Btn510_240) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Btn510_240 extends MovieClip { public var btnb:MovieClip; public var btna:MovieClip; public var par; public function Btn510_240(){ addFrameScript(0, frame1); } function frame1(){ stop(); par = this.parent; if (par.par.FARSTAGE == 5){ btna.gotoAndStop(2); }; if (par.par.FARSTAGE == 10){ btnb.gotoAndStop(2); }; btna.visible = false; btnb.visible = false; if (par.par.FARSTAGE >= 5){ btna.visible = true; }; if (par.par.FARSTAGE >= 10){ btnb.visible = true; gotoAndStop(2); }; } } }//package BattleFieldArenav2_fla
Section 25
//BtnAirUnit_333 (BattleFieldArenav2_fla.BtnAirUnit_333) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BtnAirUnit_333 extends MovieClip { public var unit1:SimpleButton; public var unit2:SimpleButton; } }//package BattleFieldArenav2_fla
Section 26
//BtnLandUnit_336 (BattleFieldArenav2_fla.BtnLandUnit_336) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BtnLandUnit_336 extends MovieClip { public var unit1:SimpleButton; public var unit2:SimpleButton; public var unit4:SimpleButton; public var unit3:SimpleButton; } }//package BattleFieldArenav2_fla
Section 27
//BtnMuteMc_370 (BattleFieldArenav2_fla.BtnMuteMc_370) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BtnMuteMc_370 extends MovieClip { public function BtnMuteMc_370(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 28
//BtnPlayMC_373 (BattleFieldArenav2_fla.BtnPlayMC_373) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BtnPlayMC_373 extends MovieClip { public function BtnPlayMC_373(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 29
//BtnStage_241 (BattleFieldArenav2_fla.BtnStage_241) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BtnStage_241 extends MovieClip { public function BtnStage_241(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 30
//BtnStruc_341 (BattleFieldArenav2_fla.BtnStruc_341) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BtnStruc_341 extends MovieClip { public var goldbtn:SimpleButton; public var mainbtn:SimpleButton; public var tower1:SimpleButton; public var tower2:SimpleButton; public var tower3:SimpleButton; public var landbtn:SimpleButton; public var airbtn:SimpleButton; public var storebtn:SimpleButton; } }//package BattleFieldArenav2_fla
Section 31
//BuildingMC_260 (BattleFieldArenav2_fla.BuildingMC_260) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class BuildingMC_260 extends MovieClip { public var gun:MovieClip; public function BuildingMC_260(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 32
//CekBox_412 (BattleFieldArenav2_fla.CekBox_412) package BattleFieldArenav2_fla { import flash.events.*; import flash.display.*; public dynamic class CekBox_412 extends MovieClip { public var STAT:Boolean; public function CekBox_412(){ addFrameScript(0, frame1, 1, frame2); } public function RESET():void{ this.removeEventListener(MouseEvent.CLICK, thisklik); } function frame1(){ stop(); } public function SET(_arg1:Boolean=false):void{ STAT = _arg1; if (_arg1 == false){ gotoAndStop(2); } else { gotoAndStop(1); }; this.addEventListener(MouseEvent.CLICK, thisklik); } function frame2(){ stop(); } public function thisklik(_arg1:MouseEvent):void{ play(); STAT = !(STAT); } } }//package BattleFieldArenav2_fla
Section 33
//constructtowerlistrik_60 (BattleFieldArenav2_fla.constructtowerlistrik_60) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class constructtowerlistrik_60 extends MovieClip { public var par; public function constructtowerlistrik_60(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 34
//constructtowerrudal_54 (BattleFieldArenav2_fla.constructtowerrudal_54) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class constructtowerrudal_54 extends MovieClip { public var par; public function constructtowerrudal_54(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 35
//constructtowershot_57 (BattleFieldArenav2_fla.constructtowershot_57) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class constructtowershot_57 extends MovieClip { public var par; public function constructtowershot_57(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 36
//Credit_227 (BattleFieldArenav2_fla.Credit_227) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Credit_227 extends MovieClip { public var btnlogo:SimpleButton; public var logoab:SimpleButton; public var btnfb:SimpleButton; public var closebtn:SimpleButton; public function Credit_227(){ addFrameScript(0, frame1); } public function clickFB(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.facebook.com/smallfarmstudio"); navigateToURL(_local2, "_blank"); } public function goHide(_arg1:MouseEvent):void{ var _local2:*; _local2 = this.parent; _local2.play(); } function frame1(){ closebtn.addEventListener(MouseEvent.CLICK, goHide); logoab.addEventListener(MouseEvent.CLICK, clickMore2ab); btnlogo.addEventListener(MouseEvent.CLICK, clickMore); btnfb.addEventListener(MouseEvent.CLICK, clickFB); } public function clickMore2ab(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.arcadebomb.com"); navigateToURL(_local2, "_blank"); } public function clickMore(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.smallfarmstudio.com"); navigateToURL(_local2, "_blank"); } } }//package BattleFieldArenav2_fla
Section 37
//CreditAnimasi_226 (BattleFieldArenav2_fla.CreditAnimasi_226) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class CreditAnimasi_226 extends MovieClip { public function CreditAnimasi_226(){ addFrameScript(0, frame1, 6, frame7); } function frame7(){ stop(); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 38
//Ending_413 (BattleFieldArenav2_fla.Ending_413) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Ending_413 extends MovieClip { public var par; public function Ending_413(){ addFrameScript(740, frame741); } function frame741(){ stop(); par = this.parent; par.submitpanel.showSubmit(); } } }//package BattleFieldArenav2_fla
Section 39
//gamesfre_pre_preloader_gamesfree_204 (BattleFieldArenav2_fla.gamesfre_pre_preloader_gamesfree_204) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class gamesfre_pre_preloader_gamesfree_204 extends MovieClip { public var par; public function gamesfre_pre_preloader_gamesfree_204(){ addFrameScript(0, frame1, 157, frame158); } function frame158(){ stop(); par = this.parent; par.gotoAndStop("sfsplash"); } function frame1(){ addEventListener(MouseEvent.CLICK, clickMore); } public function clickMore(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.arcadebomb.com"); navigateToURL(_local2, "_blank"); } } }//package BattleFieldArenav2_fla
Section 40
//Hiscorepanel_415 (BattleFieldArenav2_fla.Hiscorepanel_415) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Hiscorepanel_415 extends MovieClip { public var loader:URLLoader; public var btnback:SimpleButton; public var requestku:URLRequest; public var baris4:MovieClip; public var baris1:MovieClip; public var baris3:MovieClip; public var baris5:MovieClip; public var baris9:MovieClip; public var baris7:MovieClip; public var baris8:MovieClip; public var baris10:MovieClip; public var baris2:MovieClip; public var baris6:MovieClip; public var btn1:MovieClip; public var btnsub:SimpleButton; public var btn2:MovieClip; public var nama:TextField; public var score:TextField; public var par; public var nilaiASAL:Number; public var nilaiTOTAL:Number; public var btncancel:SimpleButton; public function Hiscorepanel_415(){ addFrameScript(0, frame1, 1, frame2); } public function hideSubmit(_arg1:MouseEvent):void{ visible = false; gotoAndStop(1); par.gotoAndStop("playing"); } public function cleartxt(_arg1:MouseEvent){ _arg1.target.text = ""; _arg1.target.removeEventListener(MouseEvent.CLICK, cleartxt); } function frame2(){ stop(); btnback.addEventListener(MouseEvent.CLICK, hideSubmit); showWorldScore(); btn1.addEventListener(MouseEvent.CLICK, clickbtl1); btn2.addEventListener(MouseEvent.CLICK, clickbtl2); } public function showSubmit():void{ visible = true; nilaiTOTAL = par.PointTotal; score.text = String(nilaiTOTAL); } function frame1(){ stop(); par = this.parent; requestku = new URLRequest(); loader = new URLLoader(); nilaiASAL = 0; nilaiTOTAL = 0; visible = false; nama.addEventListener(MouseEvent.CLICK, cleartxt, false, 0, true); btnsub.addEventListener(MouseEvent.CLICK, submitScore, false, 0, true); btncancel.addEventListener(MouseEvent.CLICK, hideSubmit); } public function clickbtl1(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://arcadebomb.com/play/battlefield.html"); navigateToURL(_local2, "_blank"); } public function clickbtl2(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://arcadebomb.com/play/battlefield_2.html"); navigateToURL(_local2, "_blank"); } public function submitScore(_arg1:MouseEvent):void{ var variables:URLVariables; var e = _arg1; par.submitscore = true; par.saveGame(); variables = new URLVariables(); variables.kode_game = "BA"; variables.name = nama.text; variables.flash = 1; variables.score = nilaiTOTAL; variables.level = 10; requestku = new URLRequest(); requestku.url = "http://www.smallfarmstudio.com/latihan/new_score3.php"; requestku.method = URLRequestMethod.POST; requestku.data = variables; try { trace("try"); URLRequestMethodExample(); } catch(e:Error) { }; } public function completeHandler(_arg1:Event):void{ nextFrame(); } public function URLRequestMethodExample():void{ var _local1:String; loader = new URLLoader(); _local1 = URLLoaderDataFormat.VARIABLES; loader.dataFormat = _local1; loader.load(requestku); loader.addEventListener(Event.COMPLETE, completeHandler); } public function showWorldScore():void{ var _local1:*; var _local2:*; var _local3:Number; if (loader.data[("name" + 1)] != null){ trace("valid"); _local1 = 1; while (_local1 <= 10) { _local2 = getChildByName(("baris" + _local1)); if (loader.data[("name" + _local1)] != null){ _local2.visible = true; _local3 = (int(loader.data.awal) + _local1); _local2.no.text = _local3; _local2.nama.text = loader.data[("name" + _local1)]; _local2.score.text = loader.data[("score" + _local1)]; if (loader.data.rank == _local3){ _local2.no.textColor = 0xFFFFFF; _local2.nama.textColor = 0xFFFFFF; _local2.score.textColor = 0xFFFFFF; } else { _local2.no.textColor = 16691969; _local2.nama.textColor = 16691969; _local2.score.textColor = 16691969; }; } else { _local2.visible = false; }; _local1++; }; } else { trace("ga valid"); visible = false; }; } } }//package BattleFieldArenav2_fla
Section 41
//HiscoreText_418 (BattleFieldArenav2_fla.HiscoreText_418) package BattleFieldArenav2_fla { import flash.display.*; import flash.text.*; public dynamic class HiscoreText_418 extends MovieClip { public var nama:TextField; public var score:TextField; public var no:TextField; } }//package BattleFieldArenav2_fla
Section 42
//HpBarBoss_360 (BattleFieldArenav2_fla.HpBarBoss_360) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class HpBarBoss_360 extends MovieClip { public var hp:MovieClip; public var par; public var Target; public function HpBarBoss_360(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ if (Target.health > 0){ hp.gotoAndStop(Target.hpRatio()); }; }; } } }//package BattleFieldArenav2_fla
Section 43
//idle_167 (BattleFieldArenav2_fla.idle_167) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class idle_167 extends MovieClip { public var pic:MovieClip; } }//package BattleFieldArenav2_fla
Section 44
//kapten_294 (BattleFieldArenav2_fla.kapten_294) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class kapten_294 extends MovieClip { public var theText:String; public var textlength:Number; public var texting:TextField; public var par; public var text3:String; public var text4:String; public var text5:String; public var text2:String; public var text1:String; public var doneCHAT:Boolean; public function kapten_294(){ addFrameScript(0, frame1, 21, frame22, 27, frame28); } public function clickChat(_arg1:MouseEvent):void{ if (doneCHAT == true){ stage.removeEventListener(MouseEvent.CLICK, clickChat); par.nextAnimTo(); } else { texting.text = theText; removeEventListener(Event.ENTER_FRAME, doType); doneCHAT = true; }; } function frame22(){ stop(); textlength = 0; texting.text = ""; addEventListener(Event.ENTER_FRAME, doType); doneCHAT = false; stage.addEventListener(MouseEvent.CLICK, clickChat); } public function doType(_arg1:Event):void{ par.playSound("beep"); texting.appendText(theText.charAt(textlength)); if (textlength < theText.length){ textlength++; } else { removeEventListener(Event.ENTER_FRAME, doType); doneCHAT = true; return; }; texting.appendText(theText.charAt(textlength)); if (textlength < theText.length){ textlength++; } else { removeEventListener(Event.ENTER_FRAME, doType); doneCHAT = true; return; }; texting.appendText(theText.charAt(textlength)); if (textlength < theText.length){ textlength++; } else { removeEventListener(Event.ENTER_FRAME, doType); doneCHAT = true; return; }; } function frame1(){ text1 = "Welcome to plain desert. This is our base. Use as you wish all the source but remember your mission."; text2 = "This where the last spot of our supply tank. Your mission is to retrieve that supply tank. Protect this tank at all cost."; text3 = "This is the supply tank route should be. You must escort supply tank to this point."; text4 = "This where the enemy base. Be careful this is very high defense base."; text5 = "Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos Was wes wos was wes wos"; theText = ""; par = this.parent; switch (par.textKe){ case 1: theText = text1; break; case 2: theText = text2; break; case 3: theText = text3; break; case 4: theText = text4; break; case 5: theText = text5; break; }; } function frame28(){ stop(); } } }//package BattleFieldArenav2_fla
Section 45
//Kursor_6 (BattleFieldArenav2_fla.Kursor_6) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Kursor_6 extends MovieClip { public function Kursor_6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 46
//kursor2_264 (BattleFieldArenav2_fla.kursor2_264) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class kursor2_264 extends MovieClip { public function kursor2_264(){ addFrameScript(21, frame22); } function frame22(){ stop(); } } }//package BattleFieldArenav2_fla
Section 47
//Main_238 (BattleFieldArenav2_fla.Main_238) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Main_238 extends MovieClip { public const SIZE = 25; public const key1:Number = 49; public const key2:Number = 50; public const key3:Number = 51; public const key4:Number = 52; public const key5:Number = 53; public const key6:Number = 54; public const key8:Number = 56; public const keyA:Number = 65; public const keyB:Number = 66; public const keyD:Number = 68; public const keyF:Number = 70; public const keyG:Number = 71; public const keyH:Number = 72; public const keyI:Number = 73; public const keyE:Number = 69; public const keyM:Number = 77; public const key7:Number = 55; public const keyP:Number = 80; public const keyQ:Number = 81; public const keyR:Number = 82; public const keyS:Number = 83; public const keyT:Number = 84; public const keyU:Number = 85; public const keyV:Number = 86; public const keyW:Number = 87; public const keyX:Number = 88; public const keyY:Number = 89; public const ROWS = 48; public const keyZ:Number = 90; public const keyC:Number = 67; public const COLS = 64; public const keyf1:Number = 112; public const keyf2:Number = 113; public var mbuild10:Boolean; public var def:MovieClip; public var key8IsDown:Boolean; public var dKeyIsDown:Boolean; public var mapUnitAir; public var atasCtr:Number; public var ctrSOUNDMOVE:Number; public var defbarr; public var defpos:Point; public var mouseScrollIsUp:Boolean; public var vKeyIsDown:Boolean; public var GOLD:Array; public var mmines5:Boolean; public var atasOn:Boolean; public var costTower1:Number; public var costTower2:Number; public var costTower3:Number; public var key2IsDown:Boolean; public var bawahOn:Boolean; public var atk2:MovieClip; public var par; public var showObject:Boolean; public var UnitCreated:Number; public var MONEY:Number; public var hideMINI:Boolean; public var costEnemyLand1:Number; public var costEnemyLand2:Number; public var costEnemyLand3:Number; public var costEnemyLand4:Number; public var formation:Array; public var atkpos:Point; public var fog:MovieClip; public var ketmap:MovieClip; public var keyPressed:uint; public var key7IsDown:Boolean; public var jumMinerE:Number; public var kananOn:Boolean; public var aKeyIsDown:Boolean; public var kiriOn:Boolean; public var UnitDestroyed:Number; public var rallyflag:MovieClip; public var zKeyIsDown:Boolean; public var costBarrack:Number; public var towerBUILD:Number; public var Populasi:Number; public var sKeyIsDown:Boolean; public var mapUnit; public var tower1Build:Boolean; public var RoketA:Array; public var hangerBuild:Boolean; public var Tank:Array; public var mtower7:Boolean; public var costStore:Number; public var BuildingEnemy:Array; public var waveNow:Number; public var PopulasiAtas:Number; public var range:MovieClip; public var key1IsDown:Boolean; public var btnback:SimpleButton; public var eKeyIsDown:Boolean; public var btn1:MovieClip; public var btn2:MovieClip; public var btn3:MovieClip; public var btn4:MovieClip; public var map; public var air:MovieClip; public var atkbarr; public var rightKeyIsDown:Boolean; public var btn5:MovieClip; public var isSHIFT:Boolean; public var wKeyIsDown:Boolean; public var terrain_bmp; public var key6IsDown:Boolean; public var delay; public var effect:MovieClip; public var sendWaveWhen:Number; public var BuildingCreated:Number; public var tower2Build:Boolean; public var downKeyIsDown:Boolean; public var BuildingDestroyed:Number; public var spaceKeyIsDown:Boolean; public var btnskip:MovieClip; public var kiriCtr:Number; public var land:MovieClip; public var buildGold3:Number; public var MAXPOPULASI:Number; public var tKeyIsDown:Boolean; public var btnmedal:SimpleButton; public var terrain_bmp2; public var tower3Build:Boolean; public var key5IsDown:Boolean; public var terrain_bmpd; public var map1:MovieClip; public var ket:MovieClip; public var fKeyIsDown:Boolean; public var canControl4:Boolean; public var EnemyUnitDestroyed:Number; public var cekSilo:Boolean; public var costEnemyAir2:Number; public var safet:Safety; public var costEnemyAir1:Number; public var kettext:MovieClip; public var atk:MovieClip; public var xKeyIsDown:Boolean; public var mapt:MovieClip; public var ctrRate:Number; public var GoldTotal:Number; public var SELECTEDUNIT:Array; public var ctrefek:Number; public var malltech:Boolean; public var PopulasiAtasEnemy:Number; public var NAMAF:String; public var end4:MovieClip; public var movek:MovieClip; public var bangunan:MovieClip; public var costUnitAir1:Number; public var qKeyIsDown:Boolean; public var air2Train:Boolean; public var costMiner:Number; public var land2Train:Boolean; public var oriKor; public var costUnitAir2:Number; public var Building:Array; public var MONEYEnemy:Number; public var enemyWave:Array; public var mdestroy500:Boolean; public var key4IsDown:Boolean; public var terrain_bmpd2; public var logoab:SimpleButton; public var fadeinout:MovieClip; public var cKeyIsDown:Boolean; public var theWave:Number; public var pauseGame:Boolean; public var jumMiner:Number; public var costMain:Number; public var costBarrackAir:Number; public var costUnitLand1:Number; public var uKeyIsDown:Boolean; public var costUnitLand3:Number; public var costUnitLand2:Number; public var minerBUILD:Number; public var costUnitLand4:Number; public var land3Train:Boolean; public var timerEnemy:Number; public var EnemyBuildingDestroyed:Number; public var command:String; public var timerLevel:Number; public var btnnext:SimpleButton; public var CEKETTMA:Point; public var char:MovieClip; public var targetBuild; public var mouseScrollIsDown:Boolean; public var textKe:Number; public var behae:String; public var boss:Boss; public var bawahCtr:Number; public var LEVEL:Number; public var obst:MovieClip; public var gKeyIsDown:Boolean; public var leftClikIsDown:Boolean; public var char2:MovieClip; public var Enemy:Array; public var yKeyIsDown:Boolean; public var PointTotal:Number; public var key3IsDown:Boolean; public var dragarea:MovieClip; public var upKeyIsDown:Boolean; public var PopulasiEnemy:Number; public var kananCtr:Number; public var land4Train:Boolean; public var rKeyIsDown:Boolean; public var leftKeyIsDown:Boolean; public var mdestroy100:Boolean; public function Main_238(){ addFrameScript(0, frame1, 1, frame2, 6, frame7, 11, frame12, 16, frame17, 21, frame22, 22, frame23, 26, frame27, 32, frame33, 37, frame38, 43, frame44, 49, frame50, 54, frame55, 59, frame60, 64, frame65, 69, frame70); } public function resumeBtn(_arg1:MouseEvent):void{ pauseGO(); } public function showKetUuLand3(_arg1:MouseEvent):void{ par.panel.showKet(18); } public function changeMINI(_arg1:MouseEvent):void{ changeMINIMAP(); } public function goldDigger(_arg1:MovieClip):void{ removeChild(_arg1); GOLD = new Array(); GOLD = getAllGold(); } public function showKetUuLand4(_arg1:MouseEvent):void{ par.panel.showKet(19); } public function getObstacle():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < obst.numChildren) { _local3 = obst.getChildAt(_local2); if ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((_local3 is Obs1)) || ((_local3 is Obs2)))) || ((_local3 is Obs3)))) || ((_local3 is Obs4)))) || ((_local3 is Obs5)))) || ((_local3 is Obs6)))) || ((_local3 is Obs7)))) || ((_local3 is Obs8)))) || ((_local3 is Obs9)))) || ((_local3 is Obs10)))) || ((_local3 is Obs11)))) || ((_local3 is Obs12)))) || ((_local3 is Obs13)))) || ((_local3 is Obs14)))) || ((_local3 is Huge1)))) || ((_local3 is Huge2)))) || ((_local3 is Huge3)))) || ((_local3 is Huge4)))) || ((_local3 is Huge5)))) || ((_local3 is Huge6)))) || ((_local3 is Huge7)))) || ((_local3 is Huge8)))) || ((_local3 is Huge9)))) || ((_local3 is Huge10)))) || ((_local3 is Huge11)))) || ((_local3 is Huge12)))) || ((_local3 is Huge13)))) || ((_local3 is Huge14)))) || ((_local3 is Huge15)))) || ((_local3 is Huge16)))){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function allyTank(_arg1:Number, _arg2:MovieClip):void{ var _local3:*; var _local4:DisplayObject; var _local5:Number; var _local6:*; var _local7:*; var _local8:*; var _local9:*; switch (_arg1){ case 1: _local3 = new Unit(); break; case 2: _local3 = new Unit1(); break; case 3: _local3 = new Unit2(); break; case 4: _local3 = new Unit3(); break; }; _local4 = getChildByName("land"); _local5 = getChildIndex(_local4); _local6 = (_arg2.x / SIZE); _local7 = (_arg2.y / SIZE); _local8 = randomPos16(_local6, _local7); _local3.x = (_local8.x * SIZE); _local3.y = (_local8.y * SIZE); addChildAt(_local3, (_local5 + 1)); _local3.Move(mapUnit, Enemy, BuildingEnemy); if ((((_arg2.rallyX == Math.round((_arg2.x / SIZE)))) && ((_arg2.rallyY == Math.round((_arg2.y / SIZE)))))){ } else { _local3.gotoMove(_arg2.rallyX, _arg2.rallyY); }; if ((((LEVEL == 0)) && ((par.tutor.currentLabel == "unit")))){ par.tutor.nextFrame(); }; Tank = new Array(); Tank = getAllTheUnit(); _local9 = new HpBar(); _local9.Target = _local3; addChildAt(_local9, (_local5 + 1)); par.panel.mini.addMINI("unit", _local3); playSound("rede"); UnitCreated++; } public function showKetGold(_arg1:MouseEvent):void{ par.panel.showKet(5); } public function showThisMapB2(_arg1:Number, _arg2:Number):void{ var _local3:*; var _local4:Matrix; _local3 = new Fog2(); _local4 = new Matrix(); _local4.translate((_arg1 - terrain_bmp2.x), (_arg2 - terrain_bmp2.y)); terrain_bmpd2.draw(_local3, _local4, null, BlendMode.ERASE); } public function showThisMap(_arg1:Number, _arg2:Number):void{ var _local3:*; var _local4:Matrix; _local3 = new FogC(); _local4 = new Matrix(); _local4.translate((_arg1 - terrain_bmp.x), (_arg2 - terrain_bmp.y)); terrain_bmpd.draw(_local3, _local4, null, BlendMode.ERASE); } public function showKetUuLand2(_arg1:MouseEvent):void{ par.panel.showKet(17); } public function changeBEHA():void{ if (behae == "agresif"){ behae = "obey"; } else { behae = "agresif"; }; } public function showThisMapC2(_arg1:Number, _arg2:Number):void{ var _local3:*; var _local4:Matrix; _local3 = new FogC(); _local4 = new Matrix(); _local4.translate((_arg1 - terrain_bmp2.x), (_arg2 - terrain_bmp2.y)); terrain_bmpd2.draw(_local3, _local4, null, BlendMode.ERASE); } public function okObject(_arg1:MouseEvent):void{ showObject = false; pauseGame = false; par.panel.textStage.visible = false; stage.removeEventListener(MouseEvent.CLICK, okObject); } public function outBtn(_arg1:MouseEvent):void{ ketmap.visible = false; } public function noneg(_arg1:Number):Number{ if (_arg1 < 0){ return (0); }; return (_arg1); } public function showThisMapC(_arg1:Number, _arg2:Number):void{ var _local3:*; var _local4:Matrix; _local3 = new FogC(); _local4 = new Matrix(); _local4.translate((_arg1 - terrain_bmp.x), (_arg2 - terrain_bmp.y)); terrain_bmpd.draw(_local3, _local4, null, BlendMode.ERASE); } public function buyUnit2(_arg1:MouseEvent):void{ buyUpgrade(3); } public function buyUnit3(_arg1:MouseEvent):void{ buyUpgrade(4); } public function buyUnit4(_arg1:MouseEvent):void{ buyUpgrade(5); } public function changeBeha(_arg1:MouseEvent):void{ changeBEHA(); } public function showKetUAir(_arg1:MouseEvent):void{ par.panel.showKet(15); } function frame17(){ init(); } function frame12(){ init(); } public function endBrief(_arg1:MouseEvent):void{ btnskip.removeEventListener(MouseEvent.CLICK, endBrief); mapt.gotoAndStop("end"); } public function initLevel():void{ timerLevel = 0; par.panel.Time.visible = false; switch (LEVEL){ case 0: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(1, 1, 1, 1, 1); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 3; MONEY = 500; MONEYEnemy = 0; y = 0; x = 0; buildGold(3, 3); GOLD = new Array(); GOLD = getAllGold(); buildEnemy(45, 3, "main"); buildBuildingWhere(3, 7, "main"); buildBuildingWhere(7, 9, "barrack"); break; case 1: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(1, 1, 1, 1, 1); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 3; MONEY = 500; MONEYEnemy = 0; y = -470; x = 0; buildGold(48, 3); buildGold(7, 33); GOLD = new Array(); GOLD = getAllGold(); buildEnemy(45, 3, "main"); buildEnemy(41, 7, "barrack", 42, 17); buildEnemy(48, 3, "miner"); buildBuildingWhere(7, 29, "main"); buildBuildingWhere(7, 33, "miner"); break; case 2: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(1, 1, 2, 1, 1, 2); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 5; MONEY = 600; MONEYEnemy = 200; y = 0; x = 0; buildGold(50, 37); buildGold(6, 7); GOLD = new Array(); GOLD = getAllGold(); buildEnemy(49, 34, "main"); buildEnemy(45, 33, "barrack", 42, 23); buildEnemy(50, 37, "miner"); buildBuildingWhere(6, 11, "main"); buildBuildingWhere(6, 7, "miner"); break; case 3: PopulasiAtas = 10; PopulasiAtasEnemy = 15; enemyWave = new Array(1, 2, 1, 2, 1, 2, 1, 2); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 5; MONEY = 900; MONEYEnemy = 0; buildGold3 = ((24 * 5) * 60); y = -470; x = 0; buildGold(50, 3); buildGold(7, 33); buildGold(50, 37); buildGold(16, 5); GOLD = new Array(); GOLD = getAllGold(); buildEnemy(45, 3, "main"); buildEnemy(45, 7, "barrack", 16, 10, "atk"); buildEnemy(50, 3, "miner"); buildEnemy(50, 8, "store"); defpos = new Point(43, 5); buildEnemy(49, 34, "main"); buildEnemy(45, 33, "barrack", 41, 30, "def"); buildEnemy(50, 37, "miner"); buildEnemy(45, 37, "store"); buildBuildingWhere(7, 29, "main"); buildBuildingWhere(7, 33, "miner"); break; case 4: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(2, 2, 2, 2, 2, 2); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 2; MONEY = 1300; MONEYEnemy = 200; y = 0; x = 0; buildGold(3, 3); buildGold(36, 20); GOLD = new Array(); GOLD = getAllGold(); canControl4 = false; buildBuildingWhere(10, 3, "main"); buildBuildingWhere(6, 3, "miner"); buildEnemy(35, 16, "main"); buildEnemy(30, 18, "barrack", 24, 9); buildEnemy(36, 20, "miner"); buildEnemy(25, 18, "tower1"); buildEnemy(25, 14, "tower1"); buildEnemy(28, 13, "tower1"); buildEnemy(31, 13, "tower1"); buildEnemy(34, 12, "tower1"); buildEnemy(28, 22, "store"); buildEnemy(33, 22, "store"); buildEnemy(25, 25, "tower1"); buildEnemy(28, 25, "tower1"); buildEnemy(31, 25, "tower1"); buildEnemy(34, 25, "tower1"); buildEnemy(22, 24, "tower1"); break; case 5: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(2, 3, 2, 3, 2, 1, 2, 3, 2, 1, 2); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 5; MONEY = 1800; MONEYEnemy = 500; y = -470; x = 0; buildGold(3, 3); buildGold(2, 33); buildGold(49, 2); buildGold(49, 36); GOLD = new Array(); GOLD = getAllGold(); buildBuildingWhere(10, 29, "barrack"); buildBuildingWhere(6, 29, "main"); buildEnemy(49, 4, "main"); buildEnemy(45, 2, "barrack", 7, 6); buildEnemy(49, 2, "miner"); buildEnemy(3, 3, "miner"); buildEnemy(49, 36, "miner"); buildEnemy(46, 9, "store"); buildEnemy(50, 8, "store"); buildEnemy(2, 4, "tower1"); buildEnemy(5, 2, "tower2"); buildEnemy(45, 34, "tower1"); break; case 6: timerLevel = ((24 * 5) * 60); par.panel.Time.visible = true; PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(2, 3, 5, 2, 3, 5, 1, 2, 1, 5, 3, 3, 5); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 5; MONEY = 1400; MONEYEnemy = 1000; y = -340; x = -320; buildGold(4, 34); buildGold(3, 3); buildGold(47, 2); buildGold(48, 36); buildGold(23, 21); buildGold(35, 22); GOLD = new Array(); GOLD = getAllGold(); buildBuildingWhere(27, 25, "main"); buildBuildingWhere(27, 21, "barrack"); buildBuildingWhere(23, 21, "miner"); buildEnemy(4, 34, "miner"); buildEnemy(47, 2, "miner"); buildEnemy(7, 36, "main"); buildEnemy(44, 2, "main"); buildEnemy(44, 6, "barrack", 41, 6); buildEnemy(1, 36, "air", 10, 32); buildEnemy(4, 31, "tower2"); buildEnemy(9, 33, "tower2"); buildEnemy(40, 3, "tower2"); buildEnemy(48, 5, "store"); buildEnemy(2, 31, "store"); buildEnemy(4, 37, "store"); break; case 7: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(2, 3, 5, 2, 3, 5, 1, 2, 1, 5, 3, 3, 5); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 5; MONEY = 2000; MONEYEnemy = -3500; y = -470; x = 0; buildGold(6, 33); buildGold(47, 2); buildGold(48, 36); GOLD = new Array(); GOLD = getAllGold(); buildBuildingWhere(6, 29, "main"); buildBuildingWhere(10, 33, "barrack"); buildBuildingWhere(6, 33, "miner"); buildEnemy(48, 36, "miner"); buildEnemy(47, 2, "miner"); buildEnemy(45, 32, "main"); buildEnemy(44, 2, "main"); buildEnemy(44, 6, "barrack", 39, 13); buildEnemy(44, 35, "air", 39, 28); buildEnemy(40, 31, "tower2"); buildEnemy(44, 27, "tower2"); buildEnemy(39, 6, "tower2"); buildEnemy(44, 10, "tower2"); buildEnemy(48, 5, "store"); buildEnemy(49, 9, "store"); buildEnemy(49, 33, "store"); break; case 8: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(3, 4, 5, 3, 4, 6, 2, 3, 2, 6, 4, 3, 5); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 5; MONEY = 1800; MONEYEnemy = 800; buildGold3 = (24 * 60); y = -140; x = 0; buildGold(8, 14); buildGold(26, 11); buildGold(23, 29); buildGold(44, 19); GOLD = new Array(); GOLD = getAllGold(); buildBuildingWhere(12, 18, "main"); buildBuildingWhere(12, 14, "barrack"); buildBuildingWhere(8, 14, "miner"); buildBuildingWhere(7, 10, "air"); buildBuildingWhere(8, 18, "store"); buildEnemy(44, 19, "miner"); buildEnemy(44, 22, "main"); buildEnemy(40, 19, "barrack", 24, 25); buildEnemy(40, 26, "barrack", 26, 15); buildEnemy(44, 16, "air", 25, 20); buildEnemy(45, 13, "store"); buildEnemy(40, 22, "store"); buildEnemy(44, 25, "store"); buildEnemy(38, 29, "tower3"); buildEnemy(42, 28, "tower3"); buildEnemy(44, 10, "tower3"); buildEnemy(41, 10, "tower3"); break; case 9: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(2, 2, 2, 2, 2, 5, 4, 5, 6, 4, 6, 4, 5, 4, 6, 4, 6, 5); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 4; MONEY = 1200; MONEYEnemy = 1500; buildGold3 = (24 * 60); y = -470; x = 0; buildGold(2, 36); buildGold(5, 18); buildGold(16, 2); buildGold(44, 5); buildGold(48, 20); buildGold(42, 34); GOLD = new Array(); GOLD = getAllGold(); buildBuildingWhere(6, 32, "main"); buildBuildingWhere(10, 32, "barrack"); buildBuildingWhere(2, 36, "miner"); buildBuildingWhere(10, 28, "air"); buildEnemy(48, 20, "miner"); buildEnemy(44, 5, "miner"); buildEnemy(42, 34, "miner"); buildEnemy(48, 15, "main"); buildEnemy(46, 2, "main"); buildEnemy(46, 31, "main"); buildEnemy(42, 29, "barrack", 0, 0); buildEnemy(42, 8, "barrack", 16, 6); buildEnemy(44, 18, "barrack", 16, 6); buildEnemy(41, 2, "air", 16, 6); buildEnemy(49, 28, "store"); buildEnemy(49, 2, "store"); buildEnemy(49, 10, "store"); buildEnemy(46, 25, "store"); buildEnemy(33, 19, "tower2"); buildEnemy(33, 14, "tower3"); buildEnemy(30, 35, "tower2"); buildEnemy(30, 28, "tower3"); buildEnemy(40, 17, "tower3"); buildEnemy(34, 8, "tower2"); buildEnemy(35, 4, "tower3"); break; case 10: PopulasiAtas = 10; PopulasiAtasEnemy = 10; enemyWave = new Array(3, 4, 6, 4, 3, 5); timerEnemy = 200; theWave = 100; waveNow = 0; sendWaveWhen = 4; MONEY = 1500; MONEYEnemy = 9999; buildGold3 = (24 * 60); y = -470; x = -640; buildGold(3, 3); buildGold(26, 3); buildGold(49, 3); buildGold(49, 36); buildGold(49, 19); buildGold(3, 35); buildGold(3, 19); buildGold(25, 36); GOLD = new Array(); GOLD = getAllGold(); buildBuildingWhere(45, 32, "main"); buildBuildingWhere(41, 32, "barrack"); buildBuildingWhere(49, 36, "miner"); buildBuildingWhere(45, 28, "air"); buildEnemy(7, 9, "barrack", 0, 0); buildEnemy(10, 4, "barrack", 0, 0); buildEnemy(6, 6, "air", 0, 0); buildEnemy(7, 2, "store"); buildEnemy(2, 6, "store"); buildEnemy(2, 10, "store"); break; }; } function frame7(){ init(); } function frame1(){ stop(); mouseScrollIsUp = false; mouseScrollIsDown = false; isSHIFT = false; ctrSOUNDMOVE = 0; par = this.parent; par.panel.visible = false; movek.mouseEnabled = false; par.stopSound(); command = "idle"; MONEY = 0; MONEYEnemy = 0; MAXPOPULASI = 40; Populasi = 0; PopulasiEnemy = 0; PopulasiAtas = 0; PopulasiAtasEnemy = 0; LEVEL = 1; pauseGame = false; ctrRate = 10; ctrefek = 3; cekSilo = false; delay = 0; hangerBuild = false; tower1Build = false; tower2Build = false; tower3Build = false; land2Train = false; land3Train = false; land4Train = false; air2Train = false; showObject = false; behae = "agresif"; formation = new Array(new Point(0, 0), new Point(1, 0), new Point(-1, 0), new Point(0, 1), new Point(0, -1), new Point(-1, -1), new Point(1, -1), new Point(1, 1), new Point(-1, 1), new Point(2, 0), new Point(-2, 0), new Point(0, -2), new Point(0, 2), new Point(-2, -2), new Point(2, -2), new Point(2, 2), new Point(-2, 2), new Point(2, -1), new Point(2, 1), new Point(1, 2), new Point(-1, 2), new Point(-2, 1), new Point(-2, -1), new Point(-1, -2), new Point(1, -2)); terrain_bmpd = new BitmapData(0x0500, 960, true, 4278190080); terrain_bmp = new Bitmap(terrain_bmpd); terrain_bmpd2 = new BitmapData(0x0500, 960, true, 1996488704); terrain_bmp2 = new Bitmap(terrain_bmpd2); costBarrackAir = 200; costBarrack = 150; costMain = 400; costMiner = 100; costTower1 = 200; costTower2 = 300; costTower3 = 400; costStore = 100; costUnitLand1 = 100; costUnitLand2 = 150; costUnitLand3 = 250; costUnitLand4 = 180; costUnitAir1 = 250; costUnitAir2 = 100; costEnemyLand1 = 100; costEnemyLand2 = 150; costEnemyLand3 = 180; costEnemyLand4 = 250; costEnemyAir1 = 100; costEnemyAir2 = 250; canControl4 = false; timerLevel = 0; UnitCreated = 0; UnitDestroyed = 0; BuildingCreated = 0; BuildingDestroyed = 0; EnemyUnitDestroyed = 0; EnemyBuildingDestroyed = 0; GoldTotal = 0; PointTotal = 0; kananOn = false; bawahOn = false; kiriOn = false; atasOn = false; kiriCtr = 0; kananCtr = 0; bawahCtr = 0; atasCtr = 0; minerBUILD = 0; towerBUILD = 0; mdestroy100 = false; mdestroy500 = false; malltech = false; mbuild10 = false; mtower7 = false; mmines5 = false; btn2.visible = false; btn3.visible = false; btn4.visible = false; btn5.visible = false; logoab.visible = false; if (par.FARSTAGE >= 2){ btn2.visible = true; }; if (par.FARSTAGE >= 3){ logoab.visible = true; btn3.visible = true; }; if (par.FARSTAGE >= 4){ btn4.visible = true; }; if (par.FARSTAGE >= 5){ btn5.visible = true; }; btn1.btna.addEventListener(MouseEvent.CLICK, goPlay1); btn1.btnb.addEventListener(MouseEvent.CLICK, goPlay6); btn2.btna.addEventListener(MouseEvent.CLICK, goPlay2); btn2.btnb.addEventListener(MouseEvent.CLICK, goPlay7); btn3.btna.addEventListener(MouseEvent.CLICK, goPlay3); btn3.btnb.addEventListener(MouseEvent.CLICK, goPlay8); btn4.btna.addEventListener(MouseEvent.CLICK, goPlay4); btn4.btnb.addEventListener(MouseEvent.CLICK, goPlay9); btn5.btna.addEventListener(MouseEvent.CLICK, goPlay5); btn5.btnb.addEventListener(MouseEvent.CLICK, goPlay10); btnnext.addEventListener(MouseEvent.CLICK, goPlayNext); btnmedal.addEventListener(MouseEvent.CLICK, goMedal); btnback.addEventListener(MouseEvent.CLICK, goBack); btnnext.addEventListener(MouseEvent.MOUSE_OVER, goSound); btnmedal.addEventListener(MouseEvent.MOUSE_OVER, goSound); btnback.addEventListener(MouseEvent.MOUSE_OVER, goSound); ketmap.visible = false; btn1.btna.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn1.btnb.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn2.btna.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn2.btnb.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn3.btna.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn3.btnb.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn4.btna.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn4.btnb.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn5.btna.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn5.btnb.addEventListener(MouseEvent.MOUSE_OVER, overBtn); btn1.btna.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn1.btnb.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn2.btna.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn2.btnb.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn3.btna.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn3.btnb.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn4.btna.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn4.btnb.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn5.btna.addEventListener(MouseEvent.MOUSE_OUT, outBtn); btn5.btnb.addEventListener(MouseEvent.MOUSE_OUT, outBtn); par.playSound("map"); if (par.FARSTAGE == 0){ goPlayTO(par.FARSTAGE); }; logoab.addEventListener(MouseEvent.CLICK, clickMore2ab); buildGold3 = ((24 * 5) * 60); NAMAF = ""; hideMINI = false; } function frame2(){ init(); par.tutor.gotoAndStop(1); } function frame22(){ char.gotoAndStop("end"); char2.gotoAndStop("end"); textKe = 1; btnskip.addEventListener(MouseEvent.CLICK, endBrief); } public function buyTower1(_arg1:MouseEvent):void{ buyUpgrade(6); } public function buyTower2(_arg1:MouseEvent):void{ buyUpgrade(7); } public function buyTower3(_arg1:MouseEvent):void{ buyUpgrade(8); } public function isPesawat(_arg1:MovieClip):Boolean{ if ((((((((((_arg1 is Air1)) || ((_arg1 is Air2)))) || ((_arg1 is Air3)))) || ((_arg1 is Air4)))) || ((_arg1 is Boss)))){ return (true); }; return (false); } function frame23(){ init(); } public function getAllBuildingEnemy():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((((((((((((((((_local3 is BarrackEnemy)) || ((_local3 is BarrackAirEnemy)))) || ((_local3 is MinerEnemy)))) || ((_local3 is MainEnemyBuilding)))) || ((_local3 is Tower1E)))) || ((_local3 is Tower2E)))) || ((_local3 is Tower3E)))) || ((_local3 is StoreEnemy)))){ _local1.push(_local3); }; _local2++; }; return (_local1); } function frame27(){ showWarn(); init(); } public function randomPos16(_arg1:Number, _arg2:Number):Point{ switch (randRange(1, 16)){ case 1: _arg1 = (_arg1 - 2); _arg2 = (_arg2 - 2); break; case 2: _arg1--; _arg2 = (_arg2 - 2); break; case 3: _arg2 = (_arg2 - 2); break; case 4: _arg1 = (_arg1 + 1); _arg2 = (_arg2 - 2); break; case 5: _arg1 = (_arg1 + 2); _arg2 = (_arg2 - 2); break; case 6: _arg1 = (_arg1 + 2); _arg2--; break; case 7: _arg1 = (_arg1 + 2); break; case 8: _arg1 = (_arg1 + 2); _arg2 = (_arg2 + 1); break; case 9: _arg1 = (_arg1 + 2); _arg2 = (_arg2 + 2); break; case 10: _arg1 = (_arg1 + 1); _arg2 = (_arg2 + 2); break; case 11: _arg2 = (_arg2 + 2); break; case 12: _arg1--; _arg2 = (_arg2 + 2); break; case 13: _arg1 = (_arg1 - 2); _arg2 = (_arg2 + 2); break; case 14: _arg1 = (_arg1 - 2); _arg2 = (_arg2 + 1); break; case 15: _arg1 = (_arg1 - 2); break; case 16: _arg1 = (_arg1 - 2); _arg2--; break; }; return (new Point(_arg1, _arg2)); } function frame33(){ showWarn(); init(); } public function getAllTheRoket():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is Roket)){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function enemyTank(_arg1:Number, _arg2:MovieClip):void{ var _local3:*; var _local4:DisplayObject; var _local5:Number; var _local6:*; var _local7:*; var _local8:*; var _local9:*; switch (_arg1){ case 1: _local3 = new Unit4(); break; case 2: _local3 = new Unit5(); break; case 3: _local3 = new Unit6(); break; case 4: _local3 = new Unit7(); break; }; _local4 = getChildByName("land"); _local5 = getChildIndex(_local4); _local6 = (_arg2.x / SIZE); _local7 = (_arg2.y / SIZE); _local8 = randomPos16(_local6, _local7); _local3.x = (_local8.x * SIZE); _local3.y = (_local8.y * SIZE); addChildAt(_local3, (_local5 + 1)); _local3.Move(mapUnit, Tank, Building); if (((!((_arg2.rallyX == (_arg2.x / SIZE)))) && (!((_arg2.rallyY == (_arg2.y / SIZE)))))){ _local3.gotoMove(_arg2.rallyX, _arg2.rallyY); }; Enemy = new Array(); Enemy = getAllTheEnemy(); _local9 = new HpBarE(); _local9.Target = _local3; addChildAt(_local9, (_local5 + 1)); par.panel.mini.addMINI("enemy", _local3); } public function addMoney(_arg1:Number=0):void{ MONEY = (MONEY + _arg1); GoldTotal++; if (MONEY > 9999){ MONEY = 9999; }; } public function enemyAir(_arg1:Number, _arg2:MovieClip):void{ var _local3:*; var _local4:DisplayObject; var _local5:Number; var _local6:*; switch (_arg1){ case 1: _local3 = new Air3(); break; case 2: _local3 = new Air4(); break; }; _local4 = getChildByName("air"); _local5 = getChildIndex(_local4); _local3.x = (_arg2.x + 10); _local3.y = (_arg2.y + 10); _local3.rotation = (_local3.rotation + 180); addChildAt(_local3, (_local5 + 1)); _local3.Move(mapUnitAir, Tank, Building); _local3.gotoMove(_arg2.rallyX, _arg2.rallyY); Enemy = new Array(); Enemy = getAllTheEnemy(); _local6 = new HpBarE(); _local6.Target = _local3; addChildAt(_local6, (_local5 + 1)); par.panel.mini.addMINI("enemy", _local3); } public function nexttt(_arg1:MouseEvent):void{ removeEventListener(MouseEvent.CLICK, nexttt); gotoAndStop(1); } public function buyUpgrade(_arg1:Number):void{ var _local2:Boolean; _local2 = true; switch (_arg1){ case 1: if (MONEY >= par.costhangerBuild){ hangerBuild = true; MONEY = (MONEY - par.costhangerBuild); _local2 = false; }; break; case 2: if (MONEY >= par.costair2Train){ air2Train = true; MONEY = (MONEY - par.costair2Train); _local2 = false; }; break; case 3: if (MONEY >= par.costland2Train){ land2Train = true; MONEY = (MONEY - par.costland2Train); _local2 = false; }; break; case 4: if (MONEY >= par.costland3Train){ land3Train = true; MONEY = (MONEY - par.costland3Train); _local2 = false; }; break; case 5: if (MONEY >= par.costland4Train){ land4Train = true; MONEY = (MONEY - par.costland4Train); _local2 = false; }; break; case 6: if (MONEY >= par.costtower1Build){ tower1Build = true; MONEY = (MONEY - par.costtower1Build); _local2 = false; }; break; case 7: if (MONEY >= par.costtower2Build){ tower2Build = true; MONEY = (MONEY - par.costtower2Build); _local2 = false; }; break; case 8: if (MONEY >= par.costtower3Build){ tower3Build = true; MONEY = (MONEY - par.costtower3Build); _local2 = false; }; break; }; if (_local2 == true){ par.panel.funds.gotoAndPlay(1); playSound("fund"); playSound("not"); } else { par.panel.updatePanel(); }; } function frame38(){ init(); } public function hidebeha(_arg1:MouseEvent):void{ par.panel.hideBeha(); } public function getAllTheUnit():Array{ var _local1:Array; var _local2:*; var _local3:*; var _local4:*; var _local5:Matrix; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((((((((((((_local3 is Unit)) || ((_local3 is Unit1)))) || ((_local3 is Unit2)))) || ((_local3 is Unit3)))) || ((_local3 is Air1)))) || ((_local3 is Air2)))){ _local4 = new FogC(); _local5 = new Matrix(); _local5.translate((_local3.x - terrain_bmp.x), (_local3.y - terrain_bmp.y)); terrain_bmpd.draw(_local4, _local5, null, BlendMode.ERASE); _local1.push(_local3); }; _local2++; }; if (LEVEL == 4){ if (canControl4 == true){ _local1.push(safet); }; }; return (_local1); } function frame55(){ showWarn(); init(); } function frame50(){ init(); } public function showKetStore(_arg1:MouseEvent):void{ par.panel.showKet(3); } public function releaseKey(_arg1:KeyboardEvent):void{ var _local2:uint; _local2 = _arg1.keyCode; switch (_local2){ case Keyboard.RIGHT: rightKeyIsDown = false; break; case Keyboard.LEFT: leftKeyIsDown = false; break; case Keyboard.UP: upKeyIsDown = false; break; case Keyboard.DOWN: downKeyIsDown = false; break; case keyA: aKeyIsDown = false; break; case keyD: dKeyIsDown = false; break; case keyQ: changeBEHA(); qKeyIsDown = false; break; case keyE: eKeyIsDown = false; break; case keyW: wKeyIsDown = false; break; case keyS: sKeyIsDown = false; break; case keyR: rKeyIsDown = false; break; case keyT: tKeyIsDown = false; break; case keyY: yKeyIsDown = false; break; case keyU: uKeyIsDown = false; break; case keyI: break; case key1: if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("main"); bangunan.visible = true; }; if (command == "buildingselect"){ if ((targetBuild is Barrack)){ targetBuild.trainWhat(1); }; if ((targetBuild is BarrackAir)){ targetBuild.trainWhat(1); }; }; key1IsDown = false; break; case key2: if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("barrack"); bangunan.visible = true; }; if (command == "buildingselect"){ if ((targetBuild is Barrack)){ if (land2Train == true){ targetBuild.trainWhat(2); }; }; if ((targetBuild is BarrackAir)){ if (air2Train == true){ targetBuild.trainWhat(2); }; }; }; key2IsDown = false; break; case key3: if (hangerBuild == true){ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("air"); bangunan.visible = true; }; }; if (command == "buildingselect"){ if ((targetBuild is Barrack)){ if (land4Train == true){ targetBuild.trainWhat(4); }; }; }; key3IsDown = false; break; case key4: if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("miner"); bangunan.visible = true; }; key4IsDown = false; if (command == "buildingselect"){ if ((targetBuild is Barrack)){ if (land3Train == true){ targetBuild.trainWhat(3); }; }; }; break; case key5: if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("store"); bangunan.visible = true; }; key5IsDown = false; break; case key6: if (tower1Build == true){ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("tower1"); bangunan.visible = true; }; }; key6IsDown = false; break; case key7: if (tower2Build == true){ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("tower2"); bangunan.visible = true; }; }; key7IsDown = false; break; case key8: if (tower3Build == true){ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("tower3"); bangunan.visible = true; }; }; key8IsDown = false; break; case keyF: fKeyIsDown = false; break; case keyf2: break; case keyH: break; case keyG: gKeyIsDown = false; break; case keyM: break; case keyP: pauseGO(); break; case Keyboard.SPACE: break; case Keyboard.SHIFT: isSHIFT = false; break; case 8: break; case 118: break; case 27: if (LEVEL == 0){ par.tutor.gotoAndStop("end"); }; break; }; } function frame44(){ init(); } function frame60(){ nextpls(); } public function overBtn(_arg1:MouseEvent):void{ var _local2:*; playSound("movebtn"); ketmap.visible = true; _local2 = _arg1.currentTarget; switch (_local2.parent.name){ case "btn1": if (_local2.name == "btna"){ ketmap.tax.text = "AREA 1"; ketmap.score.text = String(par.pointStage1); } else { ketmap.tax.text = "AREA 6"; ketmap.score.text = String(par.pointStage6); }; break; case "btn2": if (_local2.name == "btna"){ ketmap.tax.text = "AREA 2"; ketmap.score.text = String(par.pointStage2); } else { ketmap.tax.text = "AREA 7"; ketmap.score.text = String(par.pointStage7); }; break; case "btn3": if (_local2.name == "btna"){ ketmap.tax.text = "AREA 3"; ketmap.score.text = String(par.pointStage3); } else { ketmap.tax.text = "AREA 8"; ketmap.score.text = String(par.pointStage8); }; break; case "btn4": if (_local2.name == "btna"){ ketmap.tax.text = "AREA 4"; ketmap.score.text = String(par.pointStage4); } else { ketmap.tax.text = "AREA 9"; ketmap.score.text = String(par.pointStage9); }; break; case "btn5": if (_local2.name == "btna"){ ketmap.tax.text = "AREA 5"; ketmap.score.text = String(par.pointStage5); } else { ketmap.tax.text = "AREA 10"; ketmap.score.text = String(par.pointStage10); }; break; }; } public function buyAir(_arg1:MouseEvent):void{ buyUpgrade(1); } function frame65(){ par.playSound("lose", 1); addEventListener(MouseEvent.CLICK, nextt); } public function showbeha(_arg1:MouseEvent):void{ par.panel.showBeha(); } public function kananatasover(_arg1:MouseEvent):void{ kananOn = true; atasOn = true; } public function goSound(_arg1:MouseEvent):void{ playSound("movebtn"); } public function init():void{ var _local1:*; var _local2:*; var _local3:DisplayObject; var _local4:Number; var _local5:*; kettext.visible = false; if (LEVEL == 10){ par.playSound("boss"); } else { par.playSound("ingame"); }; hangerBuild = par.hangerBuild; tower1Build = par.tower1Build; tower2Build = par.tower2Build; tower3Build = par.tower3Build; land2Train = par.land2Train; land3Train = par.land3Train; land4Train = par.land4Train; air2Train = par.air2Train; UnitCreated = 0; UnitDestroyed = 0; EnemyUnitDestroyed = 0; EnemyBuildingDestroyed = 0; GoldTotal = 0; PointTotal = 0; kananOn = false; bawahOn = false; kiriOn = false; atasOn = false; minerBUILD = 0; towerBUILD = 0; par.panel.visible = true; pauseGame = false; ctrRate = 10; terrain_bmpd = new BitmapData(0x0500, 960, true, 4278190080); terrain_bmp = new Bitmap(terrain_bmpd); fog.addChild(terrain_bmp); terrain_bmpd2 = new BitmapData(0x0500, 960, true, 1996488704); terrain_bmp2 = new Bitmap(terrain_bmpd2); fog.addChild(terrain_bmp2); fog.mouseEnabled = false; par.panel.mini.terrain_bmpd = terrain_bmpd.clone(); par.panel.mini.terrain_bmp = new Bitmap(par.panel.mini.terrain_bmpd); par.panel.mini.fog.addChild(par.panel.mini.terrain_bmp); par.panel.mini.terrain_bmpd2 = terrain_bmpd2.clone(); par.panel.mini.terrain_bmp2 = new Bitmap(par.panel.mini.terrain_bmpd2); par.panel.mini.fog.addChild(par.panel.mini.terrain_bmp2); par.panel.mini.fog.width = 128; par.panel.mini.fog.height = 96; par.panel.funds.gotoAndStop("end"); par.panel.siloo.gotoAndStop("end"); par.panel.updatePanel(); rallyflag.mouseEnabled = false; range.mouseEnabled = false; initKey(); map = new Array(COLS); _local1 = 0; while (_local1 < COLS) { map[_local1] = new Array(ROWS); _local2 = 0; while (_local2 < ROWS) { map[_local1][_local2] = false; if ((((((_local1 == 0)) && ((_local2 == 0)))) || ((((_local1 == (COLS - 1))) && ((_local2 == (ROWS - 1))))))){ map[_local1][_local2] = true; }; _local2++; }; _local1++; }; Tank = getAllTheUnit(); Enemy = getAllTheEnemy(); initLevel(); drawMap(); initPanel(); if (LEVEL == 4){ _local3 = getChildByName("land"); _local4 = getChildIndex(_local3); _local5 = new HpBar(); _local5.Target = safet; addChildAt(_local5, (_local4 + 1)); par.panel.mini.addMINI("unit", safet); }; bangunan.addEventListener(MouseEvent.CLICK, klikBangunan); par.panel.hpboss.visible = false; addEventListener(Event.ENTER_FRAME, loopMain); if (LEVEL == 10){ par.panel.hpboss.visible = true; par.panel.hpboss.Target = boss; par.panel.mini.addMINI("boss", boss); }; par.panel.newtech.gotoAndStop("end"); par.panel.newmedal.gotoAndStop("end"); if (LEVEL == 3){ if (land2Train == false){ par.panel.newtech.gotoAndPlay(1); }; }; if (LEVEL == 4){ if (land3Train == false){ par.panel.newtech.gotoAndPlay(1); }; }; if (LEVEL == 5){ if ((((land4Train == false)) || ((tower1Build == false)))){ par.panel.newtech.gotoAndPlay(1); }; }; if (LEVEL == 6){ if (hangerBuild == false){ par.panel.newtech.gotoAndPlay(1); }; }; if (LEVEL == 7){ if ((((tower2Build == false)) || ((air2Train == false)))){ par.panel.newtech.gotoAndPlay(1); }; }; if (LEVEL == 8){ if (tower3Build == false){ par.panel.newtech.gotoAndPlay(1); }; }; mdestroy100 = par.destroy100; mdestroy500 = par.destroy500; malltech = par.alltech; mbuild10 = par.build10; mtower7 = par.tower7; mmines5 = par.mines5; } public function scUp():void{ if (LEVEL != 0){ if (this.y < 0){ this.y = (this.y + 10); }; }; } public function deinit(_arg1:String="lose"):void{ removeEventListener(Event.ENTER_FRAME, loopMain); bangunan.removeEventListener(MouseEvent.CLICK, klikBangunan); deinitPanel(); deinitKey(); fadeinout.whereTo = _arg1; fadeinout.play(); } public function buyUnit2a(_arg1:MouseEvent):void{ buyUpgrade(2); } function frame70(){ stop(); par.panel.visible = false; } public function getAllTheEnemy():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((((((((((((_local3 is Unit6)) || ((_local3 is Unit7)))) || ((_local3 is Unit4)))) || ((_local3 is Unit5)))) || ((_local3 is Air3)))) || ((_local3 is Air4)))){ _local1.push(_local3); }; _local2++; }; if (LEVEL == 10){ _local1.push(boss); }; return (_local1); } public function kananbawahover(_arg1:MouseEvent):void{ kananOn = true; bawahOn = true; } public function thisBuildingClick(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; if ((((command == "idle")) || ((command == "buildingselect")))){ _local2 = _arg1.currentTarget; _local3 = _local2.parent.localToGlobal(new Point(_local2.x, (_local2.y - 70))); CEKETTMA = new Point(_local2.x, (_local2.y - 70)); _local3 = par.panel.globalToLocal(_local3); par.panel.picbuild.x = _local3.x; par.panel.picbuild.y = _local3.y; par.panel.pic.x = (par.panel.picbuild.x + 35.8); par.panel.pic.y = (par.panel.picbuild.y - 26.7); if ((_local2 is Barrack)){ par.panel.helppic = "Barrack"; NAMAF = "FACTORY"; if ((((LEVEL == 0)) && ((par.tutor.currentLabel == "select")))){ par.tutor.nextFrame(); }; }; if ((_local2 is BarrackAir)){ par.panel.helppic = "BarrackAir"; NAMAF = "HANGAR"; }; if ((_local2 is MainBuilding)){ par.panel.helppic = "MAIN"; NAMAF = "BASE"; }; if ((_local2 is Miner)){ par.panel.helppic = "MINER"; NAMAF = "MINER"; }; if ((_local2 is Tower1)){ par.panel.helppic = "Tower1"; NAMAF = "MISSILE"; }; if ((_local2 is Tower2)){ par.panel.helppic = "Tower2"; NAMAF = "TURRET"; }; if ((_local2 is Tower3)){ par.panel.helppic = "Tower3"; NAMAF = "RAPID"; }; if ((_local2 is Store)){ par.panel.helppic = "Store"; NAMAF = "SILO"; }; targetBuild = _local2; command = "buildingselect"; }; } public function downmouse(_arg1:MouseEvent):void{ stage.addEventListener(MouseEvent.MOUSE_UP, upmouse); if (command == "idle"){ dragarea.x = mouseX; dragarea.y = mouseY; dragarea.scaleX = 0; dragarea.scaleY = 0; dragarea.visible = true; oriKor = new Point(mouseX, mouseY); SELECTEDUNIT = new Array(); }; } public function getBarrack():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is BarrackEnemy)){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function nextAnimTo():void{ if (char.currentLabel != "end"){ char.play(); }; if (char2.currentLabel != "end"){ char2.play(); }; mapt.play(); textKe++; } public function pauseGO():void{ if (showObject == false){ command = "idle"; playSound("pause"); if (par.ctr == 25){ pauseGame = !(pauseGame); if (pauseGame){ par.menupause.showmenu(); par.grayed(); par.panel.btnplay.gotoAndStop(2); } else { par.menupause.hidemenu(); par.normalised(); par.panel.btnplay.gotoAndStop(1); }; }; }; } public function getAllGold():Array{ var _local1:Array; var _local2:*; var _local3:*; par.panel.mini.deleteAllGOld(); _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is Gold)){ _local1.push(_local3); par.panel.mini.addMINI("gold", _local3); }; _local2++; }; return (_local1); } public function showKetMain(_arg1:MouseEvent):void{ par.panel.showKet(2); } public function trainingUnit(_arg1:Number):void{ var _local2:Array; var _local3:*; var _local4:*; var _local5:Number; _local2 = new Array(); if (_arg1 > 4){ _local2 = getBarrackAir(); if (_local2.length > 0){ for (_local4 in _local2) { if (_local2[_local4].isBusy() == 0){ _local3 = _local2[_local4]; break; } else { if (_local3 != null){ if (_local3.isBusy() > _local2[_local4].isBusy()){ _local3 = _local2[_local4]; }; } else { _local3 = _local2[_local4]; }; }; }; _local3.trainWhat((_arg1 - 4)); }; } else { if ((((((((((((((((((LEVEL == 1)) || ((LEVEL == 2)))) || ((LEVEL == 4)))) || ((LEVEL == 5)))) || ((LEVEL == 6)))) || ((LEVEL == 7)))) || ((LEVEL == 8)))) || ((LEVEL == 9)))) || ((LEVEL == 10)))){ _local2 = getBarrack(); if (_local2.length > 0){ for (_local4 in _local2) { if (_local2[_local4].isBusy() == 0){ _local3 = _local2[_local4]; break; } else { if (_local3 != null){ if (_local3.isBusy() > _local2[_local4].isBusy()){ _local3 = _local2[_local4]; }; } else { _local3 = _local2[_local4]; }; }; }; _local3.trainWhat(_arg1); if (LEVEL == 4){ if (canControl4 == true){ if (_local3.rallyX == 19){ _local3.rallyX = 24; _local3.rallyY = 9; } else { _local3.rallyX = 19; _local3.rallyY = 34; }; }; }; if (LEVEL == 5){ if (_local3.rallyX == 7){ _local3.rallyX = 47; _local3.rallyY = 35; } else { _local3.rallyX = 7; _local3.rallyY = 6; }; }; }; }; if (LEVEL == 3){ if (_arg1 != 2){ if (atkbarr.isDead == false){ atkbarr.trainWhat(_arg1); } else { defbarr.trainWhat(_arg1); }; } else { if (defbarr.isDead == false){ _local5 = 0; for (_local4 in Enemy) { if ((Enemy[_local4] is Unit5)){ _local5++; }; }; if (_local5 < 10){ defbarr.trainWhat(_arg1); }; } else { atkbarr.trainWhat(_arg1); }; }; }; }; } public function drawMap():void{ var _local1:Array; var _local2:*; var _local3:*; var _local4:*; obst.mouseChildren = false; obst.mouseEnabled = false; _local1 = new Array(); _local1 = getObstacle(); for (_local2 in _local1) { _local3 = Math.round((_local1[_local2].x / SIZE)); _local4 = Math.round((_local1[_local2].y / SIZE)); map[noneg(_local3)][noneg(_local4)] = true; if ((_local1[_local2] is Huge1)){ map[noneg(_local3)][noneg((_local4 - 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; map[noneg(_local3)][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 3))][noneg(_local4)] = true; map[noneg((_local3 - 2))][noneg(_local4)] = true; map[noneg((_local3 - 1))][noneg(_local4)] = true; map[noneg((_local3 + 1))][noneg(_local4)] = true; map[noneg(_local3)][noneg((_local4 + 2))] = true; map[noneg((_local3 - 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 1))] = true; map[noneg(_local3)][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 2))] = true; }; if ((_local1[_local2] is Huge2)){ map[noneg((_local3 + 1))][noneg(_local4)] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; map[noneg(_local3)][noneg((_local4 - 1))] = true; map[noneg((_local3 - 1))][noneg(_local4)] = true; map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; }; if ((_local1[_local2] is Huge3)){ map[_local3][(_local4 + 1)] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 2)][(_local4 + 1)] = true; map[(_local3 + 1)][(_local4 + 2)] = true; map[(_local3 + 1)][(_local4 + 3)] = true; map[(_local3 + 2)][(_local4 + 2)] = true; }; if ((_local1[_local2] is Huge4)){ map[(_local3 - 1)][(_local4 - 1)] = true; map[_local3][(_local4 - 1)] = true; map[(_local3 + 1)][(_local4 - 1)] = true; map[(_local3 - 1)][_local4] = true; map[(_local3 + 1)][_local4] = true; map[(_local3 - 1)][(_local4 + 1)] = true; map[_local3][(_local4 + 1)] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 - 2)][(_local4 - 2)] = true; map[(_local3 - 1)][(_local4 - 2)] = true; map[_local3][(_local4 - 2)] = true; map[(_local3 + 1)][(_local4 - 2)] = true; map[(_local3 + 2)][(_local4 - 2)] = true; map[(_local3 - 2)][(_local4 - 1)] = true; map[(_local3 + 2)][(_local4 - 1)] = true; map[(_local3 - 2)][_local4] = true; map[(_local3 + 2)][_local4] = true; map[(_local3 - 2)][(_local4 + 1)] = true; map[(_local3 + 2)][(_local4 + 1)] = true; map[(_local3 - 2)][(_local4 + 2)] = true; map[(_local3 - 1)][(_local4 + 2)] = true; map[_local3][(_local4 + 2)] = true; map[(_local3 + 1)][(_local4 + 2)] = true; map[(_local3 + 2)][(_local4 + 2)] = true; }; if ((((((((((_local1[_local2] is Huge5)) || ((_local1[_local2] is Huge6)))) || ((_local1[_local2] is Huge10)))) || ((_local1[_local2] is Huge15)))) || ((_local1[_local2] is Huge16)))){ map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; map[noneg(_local3)][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 1))][noneg(_local4)] = true; map[noneg((_local3 + 1))][noneg(_local4)] = true; map[noneg((_local3 - 1))][noneg((_local4 + 1))] = true; map[noneg(_local3)][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; }; if ((_local1[_local2] is Huge7)){ map[noneg((_local3 + 1))][noneg((_local4 - 4))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 4))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 3))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 3))] = true; map[noneg((_local3 + 4))][noneg((_local4 - 3))] = true; map[noneg((_local3 + 4))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 4))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 3))][_local4] = true; map[noneg((_local3 + 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 2))][_local4] = true; map[noneg((_local3 + 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 3))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][_local4] = true; map[noneg((_local3 + 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 2))] = true; map[_local3][noneg((_local4 - 3))] = true; map[_local3][noneg((_local4 + 1))] = true; map[_local3][noneg((_local4 - 1))] = true; map[_local3][noneg((_local4 - 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 3))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 2))] = true; map[_local3][noneg((_local4 + 3))] = true; map[_local3][noneg((_local4 + 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 1))][_local4] = true; map[noneg((_local3 - 1))][noneg((_local4 + 3))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 2))][_local4] = true; map[noneg((_local3 - 2))][noneg((_local4 + 3))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 3))][_local4] = true; map[noneg((_local3 - 3))][noneg((_local4 + 3))] = true; map[noneg((_local3 - 3))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 4))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 4))][_local4] = true; map[noneg((_local3 - 4))][noneg((_local4 + 3))] = true; map[noneg((_local3 - 4))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 4))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 5))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 5))][_local4] = true; map[noneg((_local3 - 5))][(_local4 - 1)] = true; }; if ((_local1[_local2] is Huge8)){ map[noneg((_local3 + 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 5))][_local4] = true; map[noneg((_local3 + 4))][_local4] = true; map[noneg((_local3 + 4))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 4))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 3))][_local4] = true; map[noneg((_local3 + 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 2))][_local4] = true; map[noneg((_local3 + 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][_local4] = true; map[noneg((_local3 + 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 3))] = true; map[_local3][noneg((_local4 + 2))] = true; map[_local3][noneg((_local4 + 1))] = true; map[_local3][noneg((_local4 + 3))] = true; map[_local3][noneg((_local4 - 1))] = true; map[_local3][noneg((_local4 - 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 3))] = true; map[noneg((_local3 - 1))][_local4] = true; map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 2))][_local4] = true; map[noneg((_local3 - 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 3))][_local4] = true; map[noneg((_local3 + 5))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 2))] = true; map[_local3][noneg((_local4 - 3))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 3))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 4))][_local4] = true; map[noneg((_local3 - 4))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 3))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 3))] = true; map[noneg((_local3 + 4))][noneg((_local4 - 1))] = true; }; if ((_local1[_local2] is Huge9)){ map[noneg((_local3 - 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 4))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 5))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 5))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 5))][_local4] = true; map[noneg((_local3 - 6))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 6))][_local4] = true; map[noneg((_local3 - 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 4))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 2))][_local4] = true; map[noneg((_local3 - 3))][_local4] = true; map[noneg((_local3 - 4))][_local4] = true; map[noneg((_local3 - 5))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 4))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 3))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 4))][noneg((_local4 + 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 1))][_local4] = true; map[noneg((_local3 - 1))][noneg((_local4 + 1))] = true; map[_local3][noneg((_local4 - 2))] = true; map[_local3][noneg((_local4 - 1))] = true; map[_local3][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][_local4] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 2))][_local4] = true; map[noneg((_local3 + 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 3))][_local4] = true; map[noneg((_local3 + 3))][noneg((_local4 + 1))] = true; map[_local3][noneg((_local4 - 3))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 1))][noneg((_local4 + 2))] = true; map[_local3][noneg((_local4 + 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 4))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 4))][_local4] = true; map[noneg((_local3 + 4))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 4))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 3))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 3))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 3))] = true; map[noneg((_local3 + 4))][noneg((_local4 + 3))] = true; map[_local3][noneg((_local4 + 3))] = true; map[noneg((_local3 + 5))][_local4] = true; map[noneg((_local3 + 5))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 5))][noneg((_local4 + 2))] = true; }; if ((_local1[_local2] is Huge11)){ map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; map[(_local3 + 1)][(_local4 + 1)] = true; }; if ((_local1[_local2] is Huge12)){ map[(_local3 - 1)][_local4] = true; map[(_local3 + 1)][_local4] = true; map[(_local3 - 1)][(_local4 + 1)] = true; map[_local3][(_local4 + 1)] = true; map[(_local3 + 1)][(_local4 + 1)] = true; }; if ((_local1[_local2] is Huge13)){ map[noneg((_local3 - 3))][_local4] = true; map[noneg((_local3 - 2))][_local4] = true; map[noneg((_local3 - 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 1))][_local4] = true; map[noneg((_local3 - 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; map[_local3][noneg((_local4 - 1))] = true; map[_local3][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][_local4] = true; map[noneg((_local3 + 1))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 2))][_local4] = true; map[noneg((_local3 + 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 3))][_local4] = true; map[noneg((_local3 + 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 + 3))][noneg((_local4 - 2))] = true; }; if ((_local1[_local2] is Huge14)){ map[noneg((_local3 - 2))][noneg((_local4 - 4))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 4))] = true; map[_local3][noneg((_local4 - 4))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 3))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 3))] = true; map[_local3][noneg((_local4 - 3))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 2))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 2))] = true; map[_local3][noneg((_local4 - 2))] = true; map[noneg((_local3 - 3))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 2))][noneg((_local4 - 1))] = true; map[noneg((_local3 - 1))][noneg((_local4 - 1))] = true; map[_local3][noneg((_local4 - 1))] = true; map[noneg((_local3 - 3))][_local4] = true; map[noneg((_local3 - 2))][_local4] = true; map[noneg((_local3 - 1))][_local4] = true; map[noneg((_local3 + 1))][_local4] = true; map[noneg((_local3 + 2))][_local4] = true; map[_local3][noneg((_local4 + 1))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 1))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 1))] = true; map[_local3][noneg((_local4 + 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 2))] = true; map[noneg((_local3 + 1))][noneg((_local4 + 3))] = true; map[noneg((_local3 + 2))][noneg((_local4 + 3))] = true; map[noneg((_local3 + 3))][noneg((_local4 + 3))] = true; }; }; } public function kiriatasover(_arg1:MouseEvent):void{ kiriOn = true; atasOn = true; } public function efekBlow(_arg1:Number, _arg2:Number):void{ var _local3:*; var _local4:*; _local4 = randRange(1, 2); switch (_local4){ case 1: _local3 = new Blow1(); break; case 2: _local3 = new Blow2(); break; }; _local3.x = _arg1; _local3.y = _arg2; addChild(_local3); playSound("explo", _local3); } public function nextAnim2(_arg1:MouseEvent):void{ mapt.play(); removeEventListener(MouseEvent.CLICK, nextAnim2); char2.play(); } public function scRight():void{ if (LEVEL != 0){ if (this.x > -640){ this.x = (this.x - 10); }; }; } public function showKetLand(_arg1:MouseEvent):void{ par.panel.showKet(1); } public function buildEnemy(_arg1:Number, _arg2:Number, _arg3:String, _arg4:Number=0, _arg5:Number=0, _arg6:String="eee"):void{ var _local7:*; var _local8:DisplayObject; var _local9:Number; var _local10:*; if (_arg3 == "air"){ _local7 = new BarrackAirEnemy(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; if ((((_arg4 == 0)) && ((_arg5 == 0)))){ _local7.rallyX = _arg1; _local7.rallyY = _arg2; } else { _local7.rallyX = _arg4; _local7.rallyY = _arg5; }; }; if (_arg3 == "barrack"){ _local7 = new BarrackEnemy(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; map[_arg1][(_arg2 - 1)] = true; map[(_arg1 + 1)][(_arg2 - 1)] = true; map[(_arg1 - 1)][(_arg2 + 1)] = true; map[(_arg1 - 1)][_arg2] = true; map[(_arg1 - 1)][(_arg2 - 1)] = true; if ((((_arg4 == 0)) && ((_arg5 == 0)))){ _local7.rallyX = _arg1; _local7.rallyY = _arg2; } else { _local7.rallyX = _arg4; _local7.rallyY = _arg5; }; }; if (_arg3 == "main"){ _local7 = new MainEnemyBuilding(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; map[_arg1][(_arg2 - 1)] = true; map[(_arg1 + 1)][(_arg2 - 1)] = true; map[(_arg1 - 1)][(_arg2 + 1)] = true; map[(_arg1 - 1)][_arg2] = true; map[(_arg1 - 1)][(_arg2 - 1)] = true; }; if (_arg3 == "miner"){ _local7 = new MinerEnemy(); }; if (_arg3 == "tower1"){ _local7 = new Tower1E(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; }; if (_arg3 == "tower2"){ _local7 = new Tower2E(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; }; if (_arg3 == "tower3"){ _local7 = new Tower3E(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; }; if (_arg3 == "store"){ _local7 = new StoreEnemy(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; map[_arg1][(_arg2 - 1)] = true; map[(_arg1 + 1)][(_arg2 - 1)] = true; map[(_arg1 - 1)][(_arg2 + 1)] = true; map[(_arg1 - 1)][_arg2] = true; map[(_arg1 - 1)][(_arg2 - 1)] = true; }; _local8 = getChildByName("bangunan"); _local9 = getChildIndex(_local8); _local7.x = (_arg1 * SIZE); _local7.y = (_arg2 * SIZE); addChildAt(_local7, (_local9 + 1)); if (_arg3 == "miner"){ for (_local10 in GOLD) { if (GOLD[_local10].theHost == null){ if (_local7.hitTestObject(GOLD[_local10])){ GOLD[_local10].theHost = _local7; }; }; }; }; if (LEVEL == 3){ if (_arg6 == "def"){ defbarr = _local7; }; if (_arg6 == "atk"){ atkbarr = _local7; }; }; BuildingEnemy = new Array(); BuildingEnemy = getAllBuildingEnemy(); par.panel.mini.addMINI("buildE", _local7); } public function newGoldDigger():MovieClip{ var _local1:*; var _local2:*; var _local3:*; var _local4:Boolean; _local2 = new Array(); _local4 = false; for (_local1 in GOLD) { _local4 = true; if (GOLD[_local1].visible == true){ _local2.push(GOLD[_local1]); }; }; if (_local2.length >= 1){ if (_local2.length == 1){ _local3 = _local2[0]; } else { _local3 = _local2[randRange(0, (_local2.length - 1))]; }; } else { if (_local4){ if (GOLD.length == 1){ _local3 = GOLD[0]; } else { _local3 = GOLD[randRange(0, (GOLD.length - 1))]; }; }; }; return (_local3); } public function clickMore2ab(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.arcadebomb.com"); navigateToURL(_local2, "_blank"); } public function goPlayNext(_arg1:MouseEvent):void{ goPlayTO(par.FARSTAGE); } public function getMainAlly():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is MainBuilding)){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function deLastClean(_arg1:String="lose"):void{ var _local2:*; for (_local2 in Tank) { Tank[_local2].isDead = true; removeChild(Tank[_local2]); }; for (_local2 in Enemy) { Enemy[_local2].isDead = true; removeChild(Enemy[_local2]); }; for (_local2 in GOLD) { GOLD[_local2].isDead = true; removeChild(GOLD[_local2]); }; for (_local2 in Building) { Building[_local2].isDead = true; Building[_local2].removeEventListener(MouseEvent.CLICK, thisBuildingClick); Building[_local2].removeEventListener(MouseEvent.MOUSE_OVER, thisBuildingOver); Building[_local2].removeEventListener(MouseEvent.MOUSE_OUT, thisBuildingOut); removeChild(Building[_local2]); }; for (_local2 in BuildingEnemy) { BuildingEnemy[_local2].isDead = true; removeChild(BuildingEnemy[_local2]); }; RoketA = getAllTheRoket(); for (_local2 in RoketA) { removeChild(RoketA[_local2]); }; if (LEVEL == 4){ if (safet.isDead == false){ safet.isDead = true; removeChild(safet); }; }; if (LEVEL == 10){ if (boss.isDead == false){ boss.isDead = true; removeChild(boss); }; par.panel.hpboss.Target = null; }; fog.removeChild(terrain_bmp); fog.removeChild(terrain_bmp2); par.panel.mini.fog.removeChild(par.panel.mini.terrain_bmp); par.panel.mini.fog.removeChild(par.panel.mini.terrain_bmp2); y = 0; x = 0; par.panel.visible = false; if (_arg1 == "win"){ gotoAndStop("win"); }; if (_arg1 == "lose"){ gotoAndStop("lose"); }; if (_arg1 == "skip"){ gotoAndStop(1); }; } public function goBack(_arg1:MouseEvent):void{ clean(); par.gotoAndStop("menu"); } public function showKetAir(_arg1:MouseEvent):void{ par.panel.showKet(4); } public function yesBtn(_arg1:MouseEvent):void{ pauseGO(); deinit("skip"); } public function atasover(_arg1:MouseEvent):void{ atasOn = true; } public function klikMenuGold(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("miner"); bangunan.visible = true; }; } public function mutebtn(_arg1:MouseEvent):void{ par.muteALL(); } public function efekBlowB(_arg1:Number, _arg2:Number, _arg3:Number=0):void{ var _local4:*; var _local5:*; var _local6:DisplayObject; var _local7:Number; _local5 = 1; switch (_local5){ case 1: _local4 = new BlowBuild1(); break; }; _local4.x = _arg1; _local4.y = _arg2; _local4.rotation = randRange(-180, 180); addChild(_local4); _local6 = getChildByName("land"); _local7 = getChildIndex(_local6); if (_arg3 == 0){ _local4 = new BlowEfek(); } else { _local4 = new BlowEfek2(); }; _local4.x = _arg1; _local4.y = _arg2; _local4.rotation = randRange(-180, 180); addChildAt(_local4, (_local7 + 1)); playSound("build", _local4); } public function klikBangunan(_arg1:MouseEvent):void{ buildBuilding(); } public function enemyDO():void{ var _local1:*; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Array; var _local6:Number; var _local7:Array; var _local8:Array; var _local9:Array; if ((((((LEVEL == 3)) || ((LEVEL == 8)))) || ((LEVEL == 9)))){ if (buildGold3 > 0){ buildGold3--; } else { if (LEVEL == 3){ buildGold3 = ((24 * 2) * 60); }; if ((((LEVEL == 8)) || ((LEVEL == 9)))){ buildGold3 = (24 * 60); }; for (_local1 in GOLD) { if (GOLD[_local1].visible == true){ buildEnemy((GOLD[_local1].x / 25), (GOLD[_local1].y / 25), "miner"); break; }; }; }; }; if (timerEnemy > 0){ timerEnemy--; } else { if (MONEYEnemy >= costEnemy(enemyWave[waveNow])){ trainingUnit(enemyWave[waveNow]); if (waveNow < (enemyWave.length - 1)){ waveNow++; } else { waveNow = 0; }; }; _local2 = 0; _local3 = 0; _local4 = 0; _local5 = new Array(); _local6 = sendWaveWhen; _local7 = new Array(); _local8 = new Array(); _local2 = 0; _local3 = 0; _local6 = sendWaveWhen; _local4 = 0; for (_local1 in Enemy) { if ((((((LEVEL == 6)) || ((LEVEL == 7)))) || ((LEVEL == 10)))){ if (Enemy[_local1].State == "idle"){ _local5.push(Enemy[_local1]); _local2++; }; }; if (LEVEL == 1){ if (Enemy[_local1].State == "idle"){ if (atk.hitTestObject(Enemy[_local1])){ _local7.push(Enemy[_local1]); _local3++; } else { _local8.push(Enemy[_local1]); _local4++; }; }; }; if (LEVEL == 9){ if (Enemy[_local1].State == "idle"){ if (atk.hitTestObject(Enemy[_local1])){ _local5.push(Enemy[_local1]); _local2++; } else { _local7.push(Enemy[_local1]); _local3++; }; }; }; if (LEVEL == 2){ if (Enemy[_local1].State == "idle"){ if (atk.hitTestObject(Enemy[_local1])){ _local7.push(Enemy[_local1]); _local3++; } else { _local5.push(Enemy[_local1]); _local2++; }; }; }; if (LEVEL == 3){ if (Enemy[_local1].State == "idle"){ if (atk.hitTestObject(Enemy[_local1])){ _local5.push(Enemy[_local1]); _local2++; } else { if (def.hitTestObject(Enemy[_local1])){ _local6--; } else { _local7.push(Enemy[_local1]); }; }; }; }; if (LEVEL == 4){ if (Enemy[_local1].State == "idle"){ if (atk.hitTestObject(Enemy[_local1])){ _local5.push(Enemy[_local1]); _local2++; }; }; }; if (LEVEL == 5){ if (Enemy[_local1].State == "idle"){ if (atk.hitTestObject(Enemy[_local1])){ _local5.push(Enemy[_local1]); _local2++; } else { if (atk2.hitTestObject(Enemy[_local1])){ _local7.push(Enemy[_local1]); _local3++; } else { _local8.push(Enemy[_local1]); _local4++; }; }; }; }; if (LEVEL == 8){ if (Enemy[_local1].State == "idle"){ if (atk.hitTestObject(Enemy[_local1])){ _local5.push(Enemy[_local1]); _local2++; } else { if (atk2.hitTestObject(Enemy[_local1])){ _local7.push(Enemy[_local1]); _local3++; } else { _local8.push(Enemy[_local1]); _local4++; }; }; }; }; }; if (_local2 > sendWaveWhen){ _local9 = new Array(); _local9 = getMainAlly(); for (_local1 in _local5) { _local5[_local1].gotoMove((_local9[0].x / SIZE), (_local9[0].y / SIZE)); }; }; if (LEVEL == 1){ if (_local3 > sendWaveWhen){ for (_local1 in _local7) { _local7[_local1].gotoMove((atk2.x / SIZE), (atk2.y / SIZE)); }; }; if (_local4 > sendWaveWhen){ for (_local1 in _local8) { _local8[_local1].gotoMove((atk.x / SIZE), (atk.y / SIZE)); }; }; }; if (LEVEL == 2){ if (_local3 > sendWaveWhen){ _local9 = new Array(); _local9 = getMainAlly(); for (_local1 in _local7) { if (_local1 < 3){ _local7[_local1].gotoMove((_local9[0].x / SIZE), (_local9[0].y / SIZE)); } else { _local7[_local1].gotoMove(25, 15); }; }; }; }; if ((((LEVEL == 5)) || ((LEVEL == 8)))){ if (_local3 > sendWaveWhen){ _local9 = new Array(); _local9 = getMainAlly(); for (_local1 in _local7) { _local7[_local1].gotoMove((_local9[0].x / SIZE), (_local9[0].y / SIZE)); }; }; if (_local4 > sendWaveWhen){ _local9 = new Array(); _local9 = getMainAlly(); for (_local1 in _local8) { _local8[_local1].gotoMove((_local9[0].x / SIZE), (_local9[0].y / SIZE)); }; }; }; if (LEVEL == 3){ if (_local6 >= 0){ _local9 = new Array(); _local9 = getMainAlly(); for (_local1 in _local7) { if (atkbarr.isDead == false){ _local7[_local1].gotoMove(defpos.x, defpos.y); } else { _local7[_local1].gotoMove((_local9[0].x / SIZE), (_local9[0].y / SIZE)); }; }; }; }; if (LEVEL == 9){ if (_local3 > sendWaveWhen){ _local9 = getMinerAlly(); if (_local9.length > 0){ for (_local1 in _local7) { _local7[_local1].gotoMove((_local9[0].x / SIZE), (_local9[0].y / SIZE)); }; } else { _local9 = getMainAlly(); for (_local1 in _local7) { _local7[_local1].gotoMove((_local9[0].x / SIZE), (_local9[0].y / SIZE)); }; }; }; }; timerEnemy = theWave; if (LEVEL == 5){ if (jumMinerE > 1){ timerEnemy = (timerEnemy * jumMinerE); }; }; }; } public function nextpls():void{ var _local1:Boolean; saving(); par.playSound("result", 1); _local1 = false; if (par.FARSTAGE == LEVEL){ par.FARSTAGE++; if (par.FARSTAGE > 10){ par.FARSTAGE = 10; par.saveGame(); gotoAndStop("bossdown"); _local1 = true; return; }; }; par.saveGame(); if (_local1 == false){ }; if (LEVEL == 0){ removeEventListener(MouseEvent.CLICK, nextt); gotoAndStop(1); }; } public function addMoneyEnemy(_arg1:Number=0):void{ MONEYEnemy = (MONEYEnemy + _arg1); } public function playSound(_arg1:String="", _arg2:MovieClip=null):void{ var efekSound:Sound; var okSound:Boolean; var tt = _arg1; var taa = _arg2; okSound = true; if ((((tt == "redeb")) && (!((delay == 0))))){ okSound = false; }; if ((((tt == "danger")) && (!((delay == 0))))){ okSound = false; }; if (((!((tt == ""))) && ((okSound == true)))){ if (par.muteSFX == false){ switch (tt){ case "explo": switch (randRange(1, 2)){ case 1: efekSound = new Explo1(); break; case 2: efekSound = new Explo2(); break; }; break; case "build": switch (randRange(1, 5)){ case 1: efekSound = new ExploBig(); break; case 2: efekSound = new ExploBig1(); break; case 3: efekSound = new ExploBig2(); break; case 4: efekSound = new ExploBig3(); break; case 5: efekSound = new ExploBig4(); break; }; break; case "gun1": efekSound = new Gun1(); break; case "gun2": efekSound = new Gun2(); break; case "gun3": efekSound = new Gun3(); break; case "gun4": efekSound = new Gun4(); break; case "gun5": efekSound = new Gun5(); break; case "gun6": efekSound = new Gun6(); break; case "bossshot": efekSound = new BossShot(); break; case "bossshot2": efekSound = new BossShot2(); break; case "bossmove": efekSound = new BossMove(); break; case "bossdrain": efekSound = new Drain(); break; case "move": switch (randRange(1, 25)){ case 1: efekSound = new NewMove1(); break; case 2: efekSound = new NewMove2(); break; case 3: efekSound = new NewMove3(); break; case 4: efekSound = new NewMove4(); break; case 5: efekSound = new NewMove5(); break; case 6: efekSound = new NewMove6(); break; case 7: efekSound = new NewMove7(); break; case 8: efekSound = new NewMove8(); break; case 9: efekSound = new NewMove9(); break; case 10: efekSound = new NewMove10(); break; case 11: efekSound = new NewMove11(); break; case 12: efekSound = new NewMove12(); break; case 13: efekSound = new NewMove13(); break; case 14: efekSound = new NewMove14(); break; case 15: efekSound = new NewMove15(); break; case 16: efekSound = new NewMove16(); break; case 17: efekSound = new NewMove17(); break; case 18: efekSound = new NewMove18(); break; case 19: efekSound = new NewMove19(); break; case 20: efekSound = new NewMove20(); break; case 21: efekSound = new NewMove21(); break; case 22: efekSound = new NewMove22(); break; case 23: efekSound = new NewMove23(); break; case 24: efekSound = new NewMove24(); break; case 25: efekSound = new NewMove25(); break; }; break; case "rally": efekSound = new RallySound(); break; case "rede": switch (randRange(1, 2)){ case 1: efekSound = new Rede1(); break; case 2: efekSound = new Rede2(); break; }; break; case "selected": switch (randRange(1, 9)){ case 1: efekSound = new Select1(); break; case 2: efekSound = new Select2(); break; case 3: efekSound = new Select3(); break; case 4: efekSound = new Select4(); break; case 5: efekSound = new Select5(); break; case 6: efekSound = new Select6(); break; case 7: efekSound = new Select7(); break; case 8: efekSound = new Select8(); break; case 9: efekSound = new Select9(); break; }; break; case "lost": efekSound = new Blost(); break; case "redeb": efekSound = new Brede(); delay = 5; break; case "fund": efekSound = new Goldless(); break; case "msilo": efekSound = new Bsilo(); break; case "max": efekSound = new Bsilo2(); break; case "danger": efekSound = new Danger(); delay = (24 * 5); break; case "sirene": efekSound = new Sirene(); break; case "okay": efekSound = new OkayBtn(); break; case "not": efekSound = new NotBtn(); break; case "pause": efekSound = new Pause(); break; case "movebtn": efekSound = new MoveBtn(); break; case "beep": efekSound = new Beep(); break; }; try { if (taa == null){ efekSound.play(0, 1, new SoundTransform(par.soundSFX)); } else { if (taa.hitTestObject(par.panel)){ efekSound.play(0, 1, new SoundTransform(par.soundSFX)); } else { efekSound.play(0, 1, new SoundTransform((par.soundSFX * 0.25))); }; }; } catch(e:Error) { efekSound.play(0, 1, new SoundTransform((par.soundSFX * 0.25))); }; }; }; } public function getAllBuilding():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((((((((((((((((_local3 is Barrack)) || ((_local3 is BarrackAir)))) || ((_local3 is Miner)))) || ((_local3 is MainBuilding)))) || ((_local3 is Tower1)))) || ((_local3 is Tower2)))) || ((_local3 is Tower3)))) || ((_local3 is Store)))){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function whatunit(_arg1:MovieClip):Number{ if ((_arg1 is Unit)){ return (1); }; if ((_arg1 is Unit1)){ return (2); }; if ((_arg1 is Unit2)){ return (3); }; if ((_arg1 is Unit3)){ return (4); }; if ((_arg1 is Air1)){ return (5); }; if ((_arg1 is Air2)){ return (6); }; if ((_arg1 is Safety)){ return (1); }; return (1); } public function showKetUTower1(_arg1:MouseEvent):void{ par.panel.showKet(20); } public function clean():void{ btn1.btna.removeEventListener(MouseEvent.CLICK, goPlay1); btn1.btnb.removeEventListener(MouseEvent.CLICK, goPlay6); btn2.btna.removeEventListener(MouseEvent.CLICK, goPlay2); btn2.btnb.removeEventListener(MouseEvent.CLICK, goPlay7); btn3.btna.removeEventListener(MouseEvent.CLICK, goPlay3); btn3.btnb.removeEventListener(MouseEvent.CLICK, goPlay8); btn4.btna.removeEventListener(MouseEvent.CLICK, goPlay4); btn4.btnb.removeEventListener(MouseEvent.CLICK, goPlay9); btn5.btna.removeEventListener(MouseEvent.CLICK, goPlay5); btn5.btnb.removeEventListener(MouseEvent.CLICK, goPlay10); btnnext.removeEventListener(MouseEvent.CLICK, goPlayNext); btnmedal.removeEventListener(MouseEvent.CLICK, goMedal); btnback.removeEventListener(MouseEvent.CLICK, goBack); btnnext.removeEventListener(MouseEvent.MOUSE_OVER, goSound); btnmedal.removeEventListener(MouseEvent.MOUSE_OVER, goSound); btnback.removeEventListener(MouseEvent.MOUSE_OVER, goSound); btn1.btna.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn1.btnb.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn2.btna.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn2.btnb.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn3.btna.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn3.btnb.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn4.btna.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn4.btnb.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn5.btna.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn5.btnb.removeEventListener(MouseEvent.MOUSE_OVER, overBtn); btn1.btna.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn1.btnb.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn2.btna.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn2.btnb.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn3.btna.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn3.btnb.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn4.btna.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn4.btnb.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn5.btna.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); btn5.btnb.removeEventListener(MouseEvent.MOUSE_OUT, outBtn); logoab.removeEventListener(MouseEvent.CLICK, clickMore2ab); } public function showKetUTower2(_arg1:MouseEvent):void{ par.panel.showKet(21); } public function hideketOut(_arg1:MouseEvent):void{ par.panel.hideKet(); } public function kananover(_arg1:MouseEvent):void{ kananOn = true; } public function firstInitial():void{ hideMINI = false; par.panel.mini.y = -357; par.panel.minihold.y = (par.panel.mini.y - 1); showObject = false; switch (LEVEL){ case 0: gotoAndStop("tutor"); par.panel.mini.gotoAndStop("tutor"); break; case 1: gotoAndStop("stage1"); par.panel.mini.gotoAndStop("stage1"); break; case 2: gotoAndStop("stage2"); par.panel.mini.gotoAndStop("stage2"); break; case 3: gotoAndStop("stage3"); par.panel.mini.gotoAndStop("stage3"); break; case 4: gotoAndStop("stage4"); par.panel.mini.gotoAndStop("stage4"); break; case 5: gotoAndStop("stage5"); par.panel.mini.gotoAndStop("stage5"); break; case 6: gotoAndStop("stage6"); par.panel.mini.gotoAndStop("stage6"); break; case 7: gotoAndStop("stage7"); par.panel.mini.gotoAndStop("stage7"); break; case 8: gotoAndStop("stage8"); par.panel.mini.gotoAndStop("stage8"); break; case 9: gotoAndStop("stage9"); par.panel.mini.gotoAndStop("stage9"); break; case 10: gotoAndStop("stage10"); par.panel.mini.gotoAndStop("stage10"); break; }; } public function scLeft():void{ if (LEVEL != 0){ if (this.x < 0){ this.x = (this.x + 10); }; }; } public function kiriover(_arg1:MouseEvent):void{ kiriOn = true; } public function loopMain(_arg1:Event):void{ var _local2:*; var _local3:Boolean; var _local4:String; var _local5:Boolean; var _local6:Boolean; var _local7:Boolean; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:Boolean; var _local13:Boolean; var _local14:*; var _local15:*; var _local16:*; if (pauseGame == false){ if (((dKeyIsDown) || (rightKeyIsDown))){ scRight(); scRight(); }; if (((aKeyIsDown) || (leftKeyIsDown))){ scLeft(); scLeft(); }; if (((sKeyIsDown) || (downKeyIsDown))){ scDown(); scDown(); }; if (((wKeyIsDown) || (upKeyIsDown))){ scUp(); scUp(); }; par.panel.textStage.visible = false; if (ctrSOUNDMOVE > 0){ ctrSOUNDMOVE--; }; if (delay > 0){ delay--; }; par.commandtext.text = command; par.panel.duit.text = MONEY; par.duite.text = MONEYEnemy; par.ner.text = jumMiner; Populasi = Tank.length; PopulasiEnemy = Enemy.length; if (Populasi > PopulasiAtas){ Populasi = PopulasiAtas; }; par.panel.pop.text = ((Populasi + "/") + PopulasiAtas); par.pope.text = ((PopulasiEnemy + "/") + PopulasiAtasEnemy); if (Populasi != PopulasiAtas){ cekSilo = false; }; par.panel.mini.updateFrame(this); if (hideMINI == false){ par.panel.minimaphide.gotoAndStop(1); if (par.panel.mini.y < -357){ par.panel.mini.y = (par.panel.mini.y + 20); } else { par.panel.mini.y = -357; }; par.panel.minihold.y = (par.panel.mini.y - 1); } else { par.panel.minimaphide.gotoAndStop(2); if (par.panel.mini.y > -477){ par.panel.mini.y = (par.panel.mini.y - 20); } else { par.panel.mini.y = -477; }; par.panel.minihold.y = (par.panel.mini.y - 1); }; if (ctrRate <= 0){ ctrRate = 10; par.panel.mini.fog.removeChild(par.panel.mini.terrain_bmp); par.panel.mini.terrain_bmpd = terrain_bmpd.clone(); par.panel.mini.terrain_bmp = new Bitmap(par.panel.mini.terrain_bmpd); par.panel.mini.fog.addChild(par.panel.mini.terrain_bmp); par.panel.mini.fog.removeChild(par.panel.mini.terrain_bmp2); par.panel.mini.terrain_bmpd2 = terrain_bmpd2.clone(); par.panel.mini.terrain_bmp2 = new Bitmap(par.panel.mini.terrain_bmpd2); par.panel.mini.fog.addChild(par.panel.mini.terrain_bmp2); } else { ctrRate--; }; if (ctrRate <= 0){ fog.removeChild(terrain_bmp2); terrain_bmpd2 = new BitmapData(0x0500, 960, true, 1996488704); terrain_bmp2 = new Bitmap(terrain_bmpd2); fog.addChild(terrain_bmp2); }; par.panel.beha.gotoAndStop(behae); if (behae == "obey"){ par.panel.behatext.beha.text = "Obey"; }; if (behae == "agresif"){ par.panel.behatext.beha.text = "Aggressive"; }; par.panel.textcancel.visible = true; switch (command){ case "idle": par.panel.picbuild.gotoAndStop("empty"); par.panel.selectTEKS.text = "GENERAL"; par.panel.btnstruc.visible = true; par.panel.btnunit.visible = false; par.panel.btnairunit.visible = false; par.panel.upgradeBtn.visible = false; par.panel.pic.visible = false; rallyflag.visible = false; par.panel.picselect.visible = false; par.panel.textcancel.visible = false; range.visible = false; break; case "buildingselect": par.panel.btnstruc.visible = false; par.panel.btnunit.visible = false; par.panel.btnairunit.visible = false; par.panel.pic.progres.visible = false; par.panel.upgradeBtn.visible = false; _local8 = targetBuild.parent.localToGlobal(new Point(CEKETTMA.x, CEKETTMA.y)); _local8 = par.panel.globalToLocal(_local8); par.panel.picbuild.x = _local8.x; par.panel.picbuild.y = _local8.y; par.panel.pic.x = (par.panel.picbuild.x + 35.8); par.panel.pic.y = (par.panel.picbuild.y - 26.7); rallyflag.visible = false; range.visible = false; par.panel.picselect.visible = false; for (_local2 in par.panel.pic.trainUnit) { par.panel.pic.trainUnit[_local2].gotoAndStop("empty"); }; par.panel.picbuild.gotoAndStop(par.panel.helppic); par.panel.selectTEKS.text = NAMAF; par.panel.pic.x = (par.panel.picbuild.x + 35.8); par.panel.pic.y = (par.panel.picbuild.y - 26.7); par.panel.pic.train.gotoAndStop("empty"); if (targetBuild.currentFrame != 1){ if ((targetBuild is Barrack)){ par.panel.btnunit.visible = true; par.panel.pic.visible = true; rallyflag.visible = true; rallyflag.x = (targetBuild.rallyX * SIZE); rallyflag.y = (targetBuild.rallyY * SIZE); if (targetBuild.theTank != 0){ par.panel.pic.train.gotoAndStop(targetBuild.theTank); par.panel.pic.progres.visible = true; par.panel.pic.progres.gotoAndStop(targetBuild.getProgres()); } else { par.panel.pic.train.gotoAndStop("empty"); par.panel.pic.progres.visible = false; }; for (_local2 in targetBuild.antrianUnit) { par.panel.pic.trainUnit[_local2].gotoAndStop(targetBuild.antrianUnit[_local2]); }; }; if ((targetBuild is BarrackAir)){ par.panel.btnairunit.visible = true; par.panel.pic.visible = true; rallyflag.visible = true; rallyflag.x = (targetBuild.rallyX * SIZE); rallyflag.y = (targetBuild.rallyY * SIZE); if (targetBuild.thePlane != 0){ par.panel.pic.train.gotoAndStop((targetBuild.thePlane + 4)); par.panel.pic.progres.visible = true; par.panel.pic.progres.gotoAndStop(targetBuild.getProgres()); } else { par.panel.pic.train.gotoAndStop("empty"); par.panel.pic.progres.visible = false; }; for (_local2 in targetBuild.antrianUnit) { par.panel.pic.trainUnit[_local2].gotoAndStop((targetBuild.antrianUnit[_local2] + 4)); }; }; if ((targetBuild is MainBuilding)){ par.panel.upgradeBtn.visible = true; }; } else { par.panel.pic.visible = true; par.panel.pic.train.gotoAndStop("empty"); if ((((((((((targetBuild is Barrack)) || ((targetBuild is BarrackAir)))) || ((targetBuild is MainBuilding)))) || ((targetBuild is Miner)))) || ((targetBuild is Store)))){ par.panel.pic.progres.visible = true; par.panel.pic.progres.gotoAndStop(targetBuild.pic.currentFrame); }; if ((((((targetBuild is Tower1)) || ((targetBuild is Tower2)))) || ((targetBuild is Tower3)))){ range.visible = true; _local9 = targetBuild.theRANGE(); range.x = _local9.x; range.y = _local9.y; range.width = ((targetBuild.range - 5) * 2); range.height = ((targetBuild.range - 5) * 2); }; }; if (par.panel.picbuild.health != null){ par.panel.picbuild.health.gotoAndStop(targetBuild.hpbar.currentFrame); }; if (targetBuild.isDead == true){ command = "idle"; }; break; case "selected": par.panel.picbuild.gotoAndStop("empty"); par.panel.selectTEKS.text = "UNIT SELECTED"; par.panel.btnstruc.visible = false; par.panel.btnunit.visible = false; par.panel.btnairunit.visible = false; par.panel.pic.visible = false; par.panel.upgradeBtn.visible = false; rallyflag.visible = false; par.panel.picselect.visible = false; par.panel.textcancel.visible = true; range.visible = false; for (_local2 in par.panel.picselect.trainUnit) { par.panel.picselect.trainUnit[_local2].gotoAndStop("empty"); }; for (_local2 in SELECTEDUNIT) { par.panel.picselect.trainUnit[_local2].gotoAndStop(whatunit(SELECTEDUNIT[_local2])); }; par.panel.picselect.visible = true; break; }; _local3 = false; if (kiriOn == true){ kiriCtr++; } else { kiriCtr = 0; }; if (kananOn == true){ kananCtr++; } else { kananCtr = 0; }; if (bawahOn == true){ bawahCtr++; } else { bawahCtr = 0; }; if (atasOn == true){ atasCtr++; } else { atasCtr = 0; }; _local4 = ""; if (kiriCtr > 24){ scLeft(); scLeft(); _local4 = (_local4 + "kiri"); }; if (kananCtr > 24){ scRight(); scRight(); _local4 = (_local4 + "kanan"); }; if (atasCtr > 24){ scUp(); scUp(); _local4 = (_local4 + "atas"); }; if (bawahCtr > 24){ scDown(); scDown(); _local4 = (_local4 + "bawah"); }; if (_local4 != ""){ par.pointe.visible = true; par.kursor.visible = false; trace(_local4); switch (_local4){ case "kiri": par.pointe.rotation = 180; break; case "kanan": par.pointe.rotation = 0; break; case "atas": par.pointe.rotation = -90; break; case "bawah": par.pointe.rotation = 90; break; case "kiriatas": par.pointe.rotation = -135; break; case "kananatas": par.pointe.rotation = -45; break; case "kiribawah": par.pointe.rotation = 135; break; case "kananbawah": par.pointe.rotation = 45; break; }; } else { par.pointe.visible = false; par.kursor.visible = true; }; mapUnit = new Array(COLS); _local2 = 0; while (_local2 < COLS) { mapUnit[_local2] = new Array(ROWS); _local10 = 0; while (_local10 < ROWS) { mapUnit[_local2][_local10] = map[_local2][_local10]; _local10++; }; _local2++; }; mapUnitAir = new Array(COLS); _local2 = 0; while (_local2 < COLS) { mapUnitAir[_local2] = new Array(ROWS); _local10 = 0; while (_local10 < ROWS) { mapUnitAir[_local2][_local10] = false; _local10++; }; _local2++; }; for (_local2 in Tank) { if ((((Tank[_local2].State == "idle")) || ((Tank[_local2].State == "attack")))){ if (isPesawat(Tank[_local2]) == true){ mapUnitAir[Tank[_local2].whereBoxX()][Tank[_local2].whereBoxY()] = true; } else { mapUnit[Tank[_local2].whereBoxX()][Tank[_local2].whereBoxY()] = true; }; }; if (ctrRate <= 0){ showThisMapC2(Tank[_local2].x, Tank[_local2].y); }; Tank[_local2].changeBehaviour(behae); }; for (_local2 in Enemy) { if ((Enemy[_local2] is Boss)){ } else { if ((((Enemy[_local2].State == "idle")) || ((Enemy[_local2].State == "attack")))){ if (isPesawat(Enemy[_local2]) == true){ mapUnitAir[Enemy[_local2].whereBoxX()][Enemy[_local2].whereBoxY()] = true; } else { mapUnit[Enemy[_local2].whereBoxX()][Enemy[_local2].whereBoxY()] = true; }; }; }; if (ctrRate <= 0){ if (Enemy[_local2].State == "attack"){ showThisMapC2(Enemy[_local2].x, Enemy[_local2].y); }; }; if (terrain_bmpd2.hitTest(new Point(terrain_bmp2.x, terrain_bmp2.y), 1, new Point(Enemy[_local2].x, Enemy[_local2].y))){ Enemy[_local2].visible = false; } else { Enemy[_local2].visible = true; }; }; for (_local2 in GOLD) { if (GOLD[_local2].theHost == null){ GOLD[_local2].visible = true; } else { GOLD[_local2].visible = false; if (GOLD[_local2].theHost.isDead == true){ GOLD[_local2].theHost = null; }; }; }; _local3 = false; ctrefek--; for (_local2 in Tank) { if (isPesawat(Tank[_local2]) == true){ Tank[_local2].Move(mapUnitAir, Enemy, BuildingEnemy, Tank, Building); } else { Tank[_local2].Move(mapUnit, Enemy, BuildingEnemy, Tank, Building); if ((((LEVEL == 3)) || ((LEVEL == 8)))){ if (Tank[_local2].State == "move"){ if (ctrefek <= 0){ efecAir(Tank[_local2].x, Tank[_local2].y); }; }; }; }; if (LEVEL == 4){ if (canControl4 == false){ if (Tank[_local2].hitTestObject(def)){ canControl4 = true; _local3 = true; }; }; }; if (Tank[_local2].isDead == true){ _local3 = true; efekBlow(Tank[_local2].x, Tank[_local2].y); UnitDestroyed++; removeChild(Tank[_local2]); }; }; if (_local3){ Tank = new Array(); Tank = getAllTheUnit(); SELECTEDUNIT = new Array(); for (_local2 in Tank) { if (Tank[_local2].selec.visible == true){ SELECTEDUNIT.push(Tank[_local2]); }; }; }; _local3 = false; for (_local2 in Enemy) { if (isPesawat(Enemy[_local2]) == true){ Enemy[_local2].Move(mapUnitAir, Tank, Building, Enemy, BuildingEnemy); } else { Enemy[_local2].Move(mapUnit, Tank, Building, Enemy, BuildingEnemy); if ((((LEVEL == 3)) || ((LEVEL == 8)))){ if (Enemy[_local2].State == "move"){ if (ctrefek <= 0){ if (Enemy[_local2].visible == true){ efecAir(Enemy[_local2].x, Enemy[_local2].y); }; }; }; }; }; if (Enemy[_local2].isDead == true){ _local3 = true; efekBlow(Enemy[_local2].x, Enemy[_local2].y); EnemyUnitDestroyed++; removeChild(Enemy[_local2]); }; }; if (ctrefek <= 0){ ctrefek = 3; }; if (_local3){ Enemy = new Array(); Enemy = getAllTheEnemy(); }; RoketA = getAllTheRoket(); for (_local2 in RoketA) { RoketA[_local2].Move(); }; _local3 = false; jumMiner = 0; jumMinerE = 0; for (_local2 in Building) { Building[_local2].Build(Enemy); if ((Building[_local2] is Miner)){ if (Building[_local2].currentFrame != 1){ jumMiner++; }; }; if ((((Building[_local2] is Barrack)) || ((Building[_local2] is BarrackAir)))){ for (_local10 in Tank) { if (Tank[_local10].isDead == false){ _local11 = Math.round(Math.sqrt((Math.pow((Building[_local2].x - Tank[_local10].x), 2) + Math.pow((Building[_local2].y - Tank[_local10].y), 2)))); if (_local11 < 200){ Tank[_local10].regen(0.01); }; }; }; }; if (ctrRate <= 0){ showThisMapB2(Building[_local2].x, Building[_local2].y); }; if (Building[_local2].isDead == true){ _local3 = true; efekBlowB(Building[_local2].x, Building[_local2].y, unbuild(Building[_local2])); Building[_local2].removeEventListener(MouseEvent.CLICK, thisBuildingClick); Building[_local2].removeEventListener(MouseEvent.MOUSE_OVER, thisBuildingOver); Building[_local2].removeEventListener(MouseEvent.MOUSE_OUT, thisBuildingOut); if ((Building[_local2] is Store)){ Building[_local2].subPop(); }; playSound("lost"); removeChild(Building[_local2]); BuildingDestroyed++; }; }; if (_local3){ Building = new Array(); Building = getAllBuilding(); }; _local3 = false; for (_local2 in BuildingEnemy) { BuildingEnemy[_local2].Build(Tank); if ((BuildingEnemy[_local2] is MinerEnemy)){ if (BuildingEnemy[_local2].currentFrame != 1){ jumMinerE++; }; }; if (BuildingEnemy[_local2].isDead == true){ _local3 = true; efekBlowB(BuildingEnemy[_local2].x, BuildingEnemy[_local2].y, unbuild(BuildingEnemy[_local2])); if ((BuildingEnemy[_local2] is StoreEnemy)){ BuildingEnemy[_local2].subPop(); }; EnemyBuildingDestroyed++; removeChild(BuildingEnemy[_local2]); }; }; if (_local3){ BuildingEnemy = new Array(); BuildingEnemy = getAllBuildingEnemy(); }; enemyDO(); _local5 = true; _local6 = true; if ((((((((((((((((((LEVEL == 0)) || ((LEVEL == 1)))) || ((LEVEL == 2)))) || ((LEVEL == 3)))) || ((LEVEL == 4)))) || ((LEVEL == 6)))) || ((LEVEL == 7)))) || ((LEVEL == 8)))) || ((LEVEL == 9)))){ for (_local2 in BuildingEnemy) { if ((BuildingEnemy[_local2] is MainEnemyBuilding)){ _local6 = false; }; }; }; for (_local2 in Building) { if ((Building[_local2] is MainBuilding)){ _local5 = false; }; }; if (LEVEL == 4){ if (safet.hitTestObject(end4)){ _local6 = true; } else { _local6 = false; }; if (safet.isDead == true){ _local5 = true; }; }; if (LEVEL == 5){ _local12 = true; _local13 = false; for (_local2 in BuildingEnemy) { if ((BuildingEnemy[_local2] is MainEnemyBuilding)){ _local12 = false; }; }; if (jumMiner >= 3){ _local13 = true; }; if (((_local12) && (_local13))){ _local6 = true; } else { _local6 = false; }; }; if (LEVEL == 6){ timerLevel--; _local14 = Math.floor((Math.round((timerLevel / 24)) / 60)); _local15 = Math.floor((Math.round((timerLevel / 24)) % 60)); if (_local15 < 10){ _local15 = ("0" + _local15); }; par.panel.Time.text = ((String(_local14) + ":") + String(_local15)); if (timerLevel <= 0){ _local6 = true; }; }; if (LEVEL == 10){ _local16 = getAllPeluruNyasar(); for (_local2 in _local16) { _local16[_local2].Move(Tank, Building); }; if (boss.isDead == false){ _local6 = false; }; if (GOLD.length <= 0){ _local5 = true; }; }; if ((((LEVEL == 0)) && ((par.tutor.currentLabel == "end")))){ deinit("win"); }; if (_local6){ pauseGame = true; deinit("win"); }; if (_local5){ pauseGame = true; deinit("lose"); }; _local7 = false; if (EnemyUnitDestroyed >= 50){ if (mdestroy100 == false){ mdestroy100 = true; _local7 = true; }; }; if ((par.EnemyUnitDestroyed + EnemyUnitDestroyed) >= 250){ if (mdestroy500 == false){ mdestroy500 = true; _local7 = true; }; }; if (BuildingCreated >= 5){ if (mbuild10 == false){ mbuild10 = true; _local7 = true; }; }; if ((((((((((((((((tower1Build == true)) && ((tower2Build == true)))) && ((tower3Build == true)))) && ((land2Train == true)))) && ((land3Train == true)))) && ((land4Train == true)))) && ((air2Train == true)))) && (hangerBuild))){ if (malltech == false){ malltech = true; _local7 = true; }; }; if (towerBUILD >= 7){ if (mtower7 == false){ mtower7 = true; _local7 = true; }; }; if (minerBUILD >= 4){ if (mmines5 == false){ mmines5 = true; _local7 = true; }; }; if (_local7 == true){ par.panel.newmedal.gotoAndPlay(1); }; }; if (showObject == true){ pauseGame = true; par.panel.textStage.visible = true; }; } public function showKetUTower3(_arg1:MouseEvent):void{ par.panel.showKet(22); } public function getAllPeluruNyasar():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is PeluruBigSplash)){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function playbtn(_arg1:MouseEvent):void{ pauseGO(); } public function thisBuildingOut(_arg1:MouseEvent):void{ kettext.visible = false; } public function buildBuildingWhere(_arg1:Number, _arg2:Number, _arg3:String):void{ var _local4:*; var _local5:DisplayObject; var _local6:Number; var _local7:*; var _local8:Matrix; var _local9:*; var _local10:*; if (_arg3 == "air"){ _local4 = new BarrackAir(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; _local4.rallyX = _arg1; _local4.rallyY = _arg2; }; if (_arg3 == "barrack"){ _local4 = new Barrack(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; map[_arg1][(_arg2 - 1)] = true; map[(_arg1 + 1)][(_arg2 - 1)] = true; map[(_arg1 - 1)][(_arg2 + 1)] = true; map[(_arg1 - 1)][_arg2] = true; map[(_arg1 - 1)][(_arg2 - 1)] = true; _local4.rallyX = _arg1; _local4.rallyY = _arg2; }; if (_arg3 == "main"){ _local4 = new MainBuilding(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; map[_arg1][(_arg2 - 1)] = true; map[(_arg1 + 1)][(_arg2 - 1)] = true; map[(_arg1 - 1)][(_arg2 + 1)] = true; map[(_arg1 - 1)][_arg2] = true; map[(_arg1 - 1)][(_arg2 - 1)] = true; }; if (_arg3 == "miner"){ _local4 = new Miner(); }; if (_arg3 == "tower1"){ _local4 = new Tower1(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; }; if (_arg3 == "tower2"){ _local4 = new Tower2(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; }; if (_arg3 == "tower3"){ _local4 = new Tower3(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; }; if (_arg3 == "store"){ _local4 = new Store(); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; map[_arg1][(_arg2 - 1)] = true; map[(_arg1 + 1)][(_arg2 - 1)] = true; map[(_arg1 - 1)][(_arg2 + 1)] = true; map[(_arg1 - 1)][_arg2] = true; map[(_arg1 - 1)][(_arg2 - 1)] = true; }; _local5 = getChildByName("bangunan"); _local6 = getChildIndex(_local5); _local4.x = (_arg1 * SIZE); _local4.y = (_arg2 * SIZE); _local7 = new Fog2(); _local8 = new Matrix(); _local8.translate((_local4.x - terrain_bmp.x), (_local4.y - terrain_bmp.y)); terrain_bmpd.draw(_local7, _local8, null, BlendMode.ERASE); _local4.addEventListener(MouseEvent.CLICK, thisBuildingClick); _local4.addEventListener(MouseEvent.MOUSE_OVER, thisBuildingOver); _local4.addEventListener(MouseEvent.MOUSE_OUT, thisBuildingOut); addChildAt(_local4, (_local6 + 1)); par.panel.mini.addMINI("build", _local4); Building = new Array(); Building = getAllBuilding(); if (_arg3 == "miner"){ for (_local9 in GOLD) { if (GOLD[_local9].theHost == null){ if (_local4.hitTestObject(GOLD[_local9])){ _local10 = GOLD[_local9]; _local10.theHost = _local4; }; }; }; }; } public function showKetTower2(_arg1:MouseEvent):void{ par.panel.showKet(7); } public function showKetTower1(_arg1:MouseEvent):void{ par.panel.showKet(6); } public function showKetTower3(_arg1:MouseEvent):void{ par.panel.showKet(8); } public function initPanel():void{ par.panel.btnstruc.landbtn.addEventListener(MouseEvent.CLICK, klikMenuLand); par.panel.btnstruc.mainbtn.addEventListener(MouseEvent.CLICK, klikMenuMain); par.panel.btnstruc.storebtn.addEventListener(MouseEvent.CLICK, klikMenuStore); par.panel.btnstruc.airbtn.addEventListener(MouseEvent.CLICK, klikMenuAir); par.panel.btnstruc.goldbtn.addEventListener(MouseEvent.CLICK, klikMenuGold); par.panel.btnstruc.tower1.addEventListener(MouseEvent.CLICK, klikMenuTower1); par.panel.btnstruc.tower2.addEventListener(MouseEvent.CLICK, klikMenuTower2); par.panel.btnstruc.tower3.addEventListener(MouseEvent.CLICK, klikMenuTower3); par.panel.btnunit.unit1.addEventListener(MouseEvent.CLICK, train1); par.panel.btnunit.unit2.addEventListener(MouseEvent.CLICK, train2); par.panel.btnunit.unit3.addEventListener(MouseEvent.CLICK, train3); par.panel.btnunit.unit4.addEventListener(MouseEvent.CLICK, train4); par.panel.btnairunit.unit1.addEventListener(MouseEvent.CLICK, train1); par.panel.btnairunit.unit2.addEventListener(MouseEvent.CLICK, train2); par.panel.beha.addEventListener(MouseEvent.CLICK, changeBeha); par.panel.minimaphide.addEventListener(MouseEvent.CLICK, changeMINI); par.panel.pic.train1.addEventListener(MouseEvent.CLICK, untrain1); par.panel.pic.train2.addEventListener(MouseEvent.CLICK, untrain2); par.panel.pic.train3.addEventListener(MouseEvent.CLICK, untrain3); par.panel.pic.train4.addEventListener(MouseEvent.CLICK, untrain4); par.panel.pic.train5.addEventListener(MouseEvent.CLICK, untrain5); par.panel.upgradeBtn.airbtn.addEventListener(MouseEvent.CLICK, buyAir); par.panel.upgradeBtn.unit2a.addEventListener(MouseEvent.CLICK, buyUnit2a); par.panel.upgradeBtn.unit2.addEventListener(MouseEvent.CLICK, buyUnit2); par.panel.upgradeBtn.unit3.addEventListener(MouseEvent.CLICK, buyUnit3); par.panel.upgradeBtn.unit4.addEventListener(MouseEvent.CLICK, buyUnit4); par.panel.upgradeBtn.tower1.addEventListener(MouseEvent.CLICK, buyTower1); par.panel.upgradeBtn.tower2.addEventListener(MouseEvent.CLICK, buyTower2); par.panel.upgradeBtn.tower3.addEventListener(MouseEvent.CLICK, buyTower3); par.panel.beha.addEventListener(MouseEvent.MOUSE_OUT, hidebeha); par.panel.btnstruc.landbtn.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.mainbtn.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.storebtn.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.airbtn.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.goldbtn.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.tower1.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.tower2.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.tower3.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit1.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit2.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit3.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit4.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnairunit.unit1.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnairunit.unit2.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.airbtn.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit2a.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit2.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit3.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit4.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.tower1.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.tower2.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.tower3.addEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.beha.addEventListener(MouseEvent.MOUSE_OVER, showbeha); par.panel.btnstruc.landbtn.addEventListener(MouseEvent.MOUSE_OVER, showKetLand); par.panel.btnstruc.mainbtn.addEventListener(MouseEvent.MOUSE_OVER, showKetMain); par.panel.btnstruc.storebtn.addEventListener(MouseEvent.MOUSE_OVER, showKetStore); par.panel.btnstruc.airbtn.addEventListener(MouseEvent.MOUSE_OVER, showKetAir); par.panel.btnstruc.goldbtn.addEventListener(MouseEvent.MOUSE_OVER, showKetGold); par.panel.btnstruc.tower1.addEventListener(MouseEvent.MOUSE_OVER, showKetTower1); par.panel.btnstruc.tower2.addEventListener(MouseEvent.MOUSE_OVER, showKetTower2); par.panel.btnstruc.tower3.addEventListener(MouseEvent.MOUSE_OVER, showKetTower3); par.panel.btnunit.unit1.addEventListener(MouseEvent.MOUSE_OVER, showKetUnit1L); par.panel.btnunit.unit2.addEventListener(MouseEvent.MOUSE_OVER, showKetUnit2L); par.panel.btnunit.unit3.addEventListener(MouseEvent.MOUSE_OVER, showKetUnit3L); par.panel.btnunit.unit4.addEventListener(MouseEvent.MOUSE_OVER, showKetUnit4L); par.panel.btnairunit.unit1.addEventListener(MouseEvent.MOUSE_OVER, showKetUnit1A); par.panel.btnairunit.unit2.addEventListener(MouseEvent.MOUSE_OVER, showKetUnit2A); par.panel.upgradeBtn.airbtn.addEventListener(MouseEvent.MOUSE_OVER, showKetUAir); par.panel.upgradeBtn.unit2a.addEventListener(MouseEvent.MOUSE_OVER, showKetUuAir2); par.panel.upgradeBtn.unit2.addEventListener(MouseEvent.MOUSE_OVER, showKetUuLand2); par.panel.upgradeBtn.unit3.addEventListener(MouseEvent.MOUSE_OVER, showKetUuLand3); par.panel.upgradeBtn.unit4.addEventListener(MouseEvent.MOUSE_OVER, showKetUuLand4); par.panel.upgradeBtn.tower1.addEventListener(MouseEvent.MOUSE_OVER, showKetUTower1); par.panel.upgradeBtn.tower2.addEventListener(MouseEvent.MOUSE_OVER, showKetUTower2); par.panel.upgradeBtn.tower3.addEventListener(MouseEvent.MOUSE_OVER, showKetUTower3); par.menupause.menupause.rsm.addEventListener(MouseEvent.CLICK, resumeBtn); par.menupause.menupause.yes.addEventListener(MouseEvent.CLICK, yesBtn); par.menupause.menupause.rsm.addEventListener(MouseEvent.MOUSE_OVER, goSound); par.menupause.menupause.yes.addEventListener(MouseEvent.MOUSE_OVER, goSound); par.menupause.menupause.no.addEventListener(MouseEvent.MOUSE_OVER, goSound); par.menupause.menupause.btm.addEventListener(MouseEvent.MOUSE_OVER, goSound); par.panel.btnplay.addEventListener(MouseEvent.CLICK, playbtn); par.panel.btnmute.addEventListener(MouseEvent.CLICK, mutebtn); par.panel.btnplay.addEventListener(MouseEvent.MOUSE_OVER, goSound); par.panel.btnmute.addEventListener(MouseEvent.MOUSE_OVER, goSound); par.panel.kiri.addEventListener(MouseEvent.MOUSE_OVER, kiriover); par.panel.kanan.addEventListener(MouseEvent.MOUSE_OVER, kananover); par.panel.atas.addEventListener(MouseEvent.MOUSE_OVER, atasover); par.panel.bawah.addEventListener(MouseEvent.MOUSE_OVER, bawahover); par.panel.kiriatas.addEventListener(MouseEvent.MOUSE_OVER, kiriatasover); par.panel.kananatas.addEventListener(MouseEvent.MOUSE_OVER, kananatasover); par.panel.kiribawah.addEventListener(MouseEvent.MOUSE_OVER, kiribawahover); par.panel.kananbawah.addEventListener(MouseEvent.MOUSE_OVER, kananbawahover); par.panel.kiri.addEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kanan.addEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.atas.addEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.bawah.addEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kiriatas.addEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kananatas.addEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kiribawah.addEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kananbawah.addEventListener(MouseEvent.MOUSE_OUT, outall); } public function upmouse(_arg1:MouseEvent):void{ var _local2:*; var _local3:Boolean; var _local4:Boolean; var _local5:*; var _local6:*; var _local7:Number; var _local8:*; var _local9:*; var _local10:*; var _local11:*; stage.removeEventListener(MouseEvent.MOUSE_UP, upmouse); switch (command){ case "idle": dragarea.visible = false; _local2 = 0; if (Tank != null){ if (Tank.length > 0){ for (_local9 in Tank) { if (dragarea.hitTestObject(Tank[_local9])){ command = "selected"; SELECTEDUNIT.push(Tank[_local9]); Tank[_local9].selec.visible = true; _local2++; if (_local2 > 9){ break; }; }; }; if (command == "selected"){ playSound("selected"); }; }; }; break; case "selected": _local3 = false; _local4 = false; _local5 = Math.round((mouseX / SIZE)); _local6 = Math.round((mouseY / SIZE)); _local7 = 0; if (behae == "obey"){ for (_local9 in Enemy) { if ((((Enemy[_local9].whereBoxX() == _local5)) && ((Enemy[_local9].whereBoxY() == _local6)))){ _local8 = Enemy[_local9]; }; }; }; for (_local9 in SELECTEDUNIT) { _local10 = (_local5 + formation[_local7].x); _local11 = (_local6 + formation[_local7].y); if ((((_local10 > 0)) && ((_local11 > 0)))){ SELECTEDUNIT[_local9].gotoMove(_local10, _local11); } else { SELECTEDUNIT[_local9].gotoMove(_local5, _local6); }; if (behae == "obey"){ if ((SELECTEDUNIT[_local9] is Safety)){ } else { SELECTEDUNIT[_local9].TargetFire = _local8; }; }; _local7++; }; if (ctrSOUNDMOVE <= 0){ playSound("move"); ctrSOUNDMOVE = 36; }; movek.x = mouseX; movek.y = mouseY; movek.pic.gotoAndPlay(1); break; case "buildingselect": if (isSHIFT == true){ if (targetBuild.currentFrame != 1){ if ((((targetBuild is Barrack)) || ((targetBuild is BarrackAir)))){ targetBuild.rallyX = Math.round((mouseX / SIZE)); targetBuild.rallyY = Math.round((mouseY / SIZE)); playSound("rally"); if ((((LEVEL == 0)) && ((par.tutor.currentLabel == "rally")))){ par.tutor.nextFrame(); }; }; }; }; break; }; } public function untrain1(_arg1:MouseEvent):void{ if (command == "buildingselect"){ targetBuild.untrainWhat(0); }; } public function untrain3(_arg1:MouseEvent):void{ if (command == "buildingselect"){ targetBuild.untrainWhat(2); }; } public function untrain4(_arg1:MouseEvent):void{ if (command == "buildingselect"){ targetBuild.untrainWhat(3); }; } public function goMedal(_arg1:MouseEvent):void{ par.achi.goShow(); } public function scDown():void{ if (LEVEL != 0){ if (this.y > -480){ this.y = (this.y - 10); }; }; } public function klikMenuMain(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("main"); bangunan.visible = true; }; } public function pressKey(_arg1:KeyboardEvent):void{ var _local2:*; keyPressed = _arg1.keyCode; switch (keyPressed){ case Keyboard.RIGHT: rightKeyIsDown = true; break; case Keyboard.LEFT: leftKeyIsDown = true; break; case Keyboard.UP: upKeyIsDown = true; break; case Keyboard.DOWN: downKeyIsDown = true; break; case keyQ: qKeyIsDown = true; break; case keyE: eKeyIsDown = true; break; case keyW: wKeyIsDown = true; break; case keyR: rKeyIsDown = true; break; case keyT: tKeyIsDown = true; break; case keyY: yKeyIsDown = true; break; case keyU: uKeyIsDown = true; break; case keyA: aKeyIsDown = true; break; case keyS: sKeyIsDown = true; break; case keyD: dKeyIsDown = true; break; case keyF: fKeyIsDown = true; break; case keyG: gKeyIsDown = true; break; case key1: key1IsDown = true; break; case key2: key2IsDown = true; break; case key3: key3IsDown = true; break; case key4: key4IsDown = true; break; case key5: key5IsDown = true; break; case key6: key6IsDown = true; break; case key7: key7IsDown = true; break; case key8: key8IsDown = true; break; case keyX: xKeyIsDown = true; break; case keyZ: zKeyIsDown = true; break; case keyC: cKeyIsDown = true; break; case keyV: vKeyIsDown = true; break; case Keyboard.SPACE: if (command == "selected"){ for (_local2 in SELECTEDUNIT) { SELECTEDUNIT[_local2].selec.visible = false; }; }; command = "idle"; bangunan.visible = false; spaceKeyIsDown = true; break; case Keyboard.SHIFT: isSHIFT = true; break; }; } public function untrain5(_arg1:MouseEvent):void{ if (command == "buildingselect"){ targetBuild.untrainWhat(4); }; } public function showWarn():void{ showObject = true; if (LEVEL == 5){ par.panel.textStage.gotoAndStop(1); }; if (LEVEL == 6){ par.panel.textStage.gotoAndStop(2); }; if (LEVEL == 10){ par.panel.textStage.gotoAndStop(3); }; stage.addEventListener(MouseEvent.CLICK, okObject); } public function untrain2(_arg1:MouseEvent):void{ if (command == "buildingselect"){ targetBuild.untrainWhat(1); }; } public function gotoXYMAP(_arg1:Number, _arg2:Number):void{ this.x = ((_arg1 * 10) * -1); this.y = ((_arg2 * 10) * -1); if (this.x >= 0){ this.x = 0; }; if (this.x <= -640){ this.x = -640; }; if (this.y <= -480){ this.y = -480; }; if (this.y >= 0){ this.y = 0; }; } public function train1(_arg1:MouseEvent):void{ if (command == "buildingselect"){ if ((targetBuild is Barrack)){ targetBuild.trainWhat(1); }; if ((targetBuild is BarrackAir)){ targetBuild.trainWhat(1); }; }; } public function klikMenuTower3(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("tower3"); bangunan.visible = true; }; } public function initKey():void{ addEventListener(MouseEvent.MOUSE_DOWN, downmouse); stage.addEventListener(MouseEvent.MOUSE_MOVE, movemouse); stage.addEventListener(KeyboardEvent.KEY_DOWN, pressKey); stage.addEventListener(KeyboardEvent.KEY_UP, releaseKey); dragarea.visible = false; } public function klikMenuTower1(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("tower1"); bangunan.visible = true; }; } public function allyAir(_arg1:Number, _arg2:MovieClip):void{ var _local3:*; var _local4:DisplayObject; var _local5:Number; var _local6:*; switch (_arg1){ case 1: _local3 = new Air1(); break; case 2: _local3 = new Air2(); break; }; _local4 = getChildByName("air"); _local5 = getChildIndex(_local4); _local3.x = (_arg2.x + 10); _local3.y = (_arg2.y + 10); _local3.rotation = (_local3.rotation + 180); addChildAt(_local3, (_local5 + 1)); _local3.Move(mapUnitAir, Enemy, BuildingEnemy); _local3.gotoMove(_arg2.rallyX, _arg2.rallyY); Tank = new Array(); Tank = getAllTheUnit(); _local6 = new HpBar(); _local6.Target = _local3; addChildAt(_local6, (_local5 + 1)); par.panel.mini.addMINI("unit", _local3); playSound("rede"); UnitCreated++; } public function train4(_arg1:MouseEvent):void{ if (command == "buildingselect"){ if ((targetBuild is Barrack)){ targetBuild.trainWhat(4); }; }; } public function train2(_arg1:MouseEvent):void{ if (command == "buildingselect"){ if ((targetBuild is Barrack)){ targetBuild.trainWhat(2); }; if ((targetBuild is BarrackAir)){ targetBuild.trainWhat(2); }; }; } public function klikMenuTower2(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("tower2"); bangunan.visible = true; }; } public function showKetUnit1L(_arg1:MouseEvent):void{ par.panel.showKet(9); } public function buildBuilding():void{ var _local1:Boolean; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:DisplayObject; var _local9:Number; var _local10:*; var _local11:Matrix; _local1 = false; mapUnit = new Array(COLS); _local2 = 0; while (_local2 < COLS) { mapUnit[_local2] = new Array(ROWS); _local5 = 0; while (_local5 < ROWS) { mapUnit[_local2][_local5] = map[_local2][_local5]; _local5++; }; _local2++; }; for (_local2 in Tank) { if (isPesawat(Tank[_local2]) == false){ if ((((Tank[_local2].State == "idle")) || ((Tank[_local2].State == "attack")))){ mapUnit[Tank[_local2].whereBoxX()][Tank[_local2].whereBoxY()] = true; }; }; }; _local3 = Math.round((bangunan.x / SIZE)); _local4 = Math.round((bangunan.y / SIZE)); if (!terrain_bmpd2.hitTest(new Point(terrain_bmp2.x, terrain_bmp2.y), 1, new Point(bangunan.x, bangunan.y))){ if ((((((((_local3 > 1)) && ((_local4 > 1)))) && ((_local3 < (COLS - 1))))) && ((_local4 < (ROWS - 1))))){ if (bangunan.currentLabel != "miner"){ if ((((((((bangunan.currentLabel == "air")) || ((bangunan.currentLabel == "tower1")))) || ((bangunan.currentLabel == "tower2")))) || ((bangunan.currentLabel == "tower3")))){ if ((((((((mapUnit[_local3][_local4] == false)) && ((mapUnit[(_local3 + 1)][(_local4 + 1)] == false)))) && ((mapUnit[(_local3 + 1)][_local4] == false)))) && ((mapUnit[_local3][(_local4 + 1)] == false)))){ if ((((((((((((((((((((((((map[(_local3 - 1)][(_local4 - 1)] == false)) && ((map[_local3][(_local4 - 1)] == false)))) && ((map[(_local3 + 1)][(_local4 - 1)] == false)))) && ((map[(_local3 + 2)][(_local4 - 1)] == false)))) && ((map[(_local3 + 2)][_local4] == false)))) && ((map[(_local3 + 2)][(_local4 + 1)] == false)))) && ((map[(_local3 + 2)][(_local4 + 2)] == false)))) && ((map[(_local3 + 1)][(_local4 + 2)] == false)))) && ((map[_local3][(_local4 + 2)] == false)))) && ((map[(_local3 - 1)][(_local4 + 2)] == false)))) && ((map[(_local3 - 1)][(_local4 + 1)] == false)))) && ((map[(_local3 - 1)][_local4] == false)))){ _local1 = true; }; }; } else { if ((((((((((((((((mapUnit[_local3][_local4] == false)) && ((mapUnit[(_local3 + 1)][(_local4 + 1)] == false)))) && ((mapUnit[(_local3 + 1)][_local4] == false)))) && ((mapUnit[_local3][(_local4 + 1)] == false)))) && ((mapUnit[_local3][(_local4 - 1)] == false)))) && ((mapUnit[(_local3 + 1)][(_local4 - 1)] == false)))) && ((mapUnit[(_local3 - 1)][(_local4 + 1)] == false)))) && ((mapUnit[(_local3 - 1)][_local4] == false)))){ if ((((((((((((((((((((((((((((((((map[(_local3 - 2)][(_local4 - 2)] == false)) && ((map[(_local3 - 1)][(_local4 - 2)] == false)))) && ((map[_local3][(_local4 - 2)] == false)))) && ((map[(_local3 + 1)][(_local4 - 2)] == false)))) && ((map[(_local3 + 2)][(_local4 - 2)] == false)))) && ((map[(_local3 + 2)][(_local4 - 1)] == false)))) && ((map[(_local3 + 2)][_local4] == false)))) && ((map[(_local3 + 2)][(_local4 + 1)] == false)))) && ((map[(_local3 + 2)][(_local4 + 2)] == false)))) && ((map[(_local3 + 1)][(_local4 + 2)] == false)))) && ((map[_local3][(_local4 + 2)] == false)))) && ((map[(_local3 - 1)][(_local4 + 2)] == false)))) && ((map[(_local3 - 2)][(_local4 + 2)] == false)))) && ((map[(_local3 - 2)][(_local4 + 1)] == false)))) && ((map[(_local3 - 2)][_local4] == false)))) && ((map[(_local3 - 2)][(_local4 - 1)] == false)))){ _local1 = true; }; }; }; } else { for (_local2 in GOLD) { if (GOLD[_local2].theHost == null){ if (bangunan.hitTestObject(GOLD[_local2])){ _local1 = true; _local6 = GOLD[_local2]; }; }; }; }; }; }; if (_local1 == true){ if (command == "build"){ command = "idle"; bangunan.visible = false; if (canbuythisBuilding(bangunan.currentLabel)){ if (bangunan.currentLabel == "air"){ _local7 = new BarrackAir(); map[_local3][_local4] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; _local7.rallyX = _local3; _local7.rallyY = _local4; }; if (bangunan.currentLabel == "barrack"){ _local7 = new Barrack(); map[_local3][_local4] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; map[_local3][(_local4 - 1)] = true; map[(_local3 + 1)][(_local4 - 1)] = true; map[(_local3 - 1)][(_local4 + 1)] = true; map[(_local3 - 1)][_local4] = true; map[(_local3 - 1)][(_local4 - 1)] = true; _local7.rallyX = _local3; _local7.rallyY = _local4; }; if (bangunan.currentLabel == "main"){ _local7 = new MainBuilding(); map[_local3][_local4] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; map[_local3][(_local4 - 1)] = true; map[(_local3 + 1)][(_local4 - 1)] = true; map[(_local3 - 1)][(_local4 + 1)] = true; map[(_local3 - 1)][_local4] = true; map[(_local3 - 1)][(_local4 - 1)] = true; }; if (bangunan.currentLabel == "miner"){ _local7 = new Miner(); minerBUILD++; _local6.theHost = _local7; }; if (bangunan.currentLabel == "tower1"){ _local7 = new Tower1(); towerBUILD++; map[_local3][_local4] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; }; if (bangunan.currentLabel == "tower2"){ _local7 = new Tower2(); towerBUILD++; map[_local3][_local4] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; }; if (bangunan.currentLabel == "tower3"){ _local7 = new Tower3(); towerBUILD++; map[_local3][_local4] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; }; if (bangunan.currentLabel == "store"){ _local7 = new Store(); map[_local3][_local4] = true; map[(_local3 + 1)][(_local4 + 1)] = true; map[(_local3 + 1)][_local4] = true; map[_local3][(_local4 + 1)] = true; map[_local3][(_local4 - 1)] = true; map[(_local3 + 1)][(_local4 - 1)] = true; map[(_local3 - 1)][(_local4 + 1)] = true; map[(_local3 - 1)][_local4] = true; map[(_local3 - 1)][(_local4 - 1)] = true; }; _local8 = getChildByName("bangunan"); _local9 = getChildIndex(_local8); _local7.x = bangunan.x; _local7.y = bangunan.y; _local10 = new Fog2(); _local11 = new Matrix(); _local11.translate((_local7.x - terrain_bmp.x), (_local7.y - terrain_bmp.y)); terrain_bmpd.draw(_local10, _local11, null, BlendMode.ERASE); _local7.addEventListener(MouseEvent.CLICK, thisBuildingClick); _local7.addEventListener(MouseEvent.MOUSE_OVER, thisBuildingOver); _local7.addEventListener(MouseEvent.MOUSE_OUT, thisBuildingOut); addChildAt(_local7, (_local9 + 1)); par.panel.mini.addMINI("build", _local7); BuildingCreated++; Building = new Array(); Building = getAllBuilding(); playSound("okay"); }; }; } else { playSound("not"); }; } public function showKetUnit1A(_arg1:MouseEvent):void{ par.panel.showKet(13); } public function klikMenuLand(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("barrack"); bangunan.visible = true; }; } public function canbuythisBuilding(_arg1:String):Boolean{ switch (_arg1){ case "air": if (MONEY >= costBarrackAir){ MONEY = (MONEY - costBarrackAir); return (true); }; break; case "barrack": if (MONEY >= costBarrack){ MONEY = (MONEY - costBarrack); return (true); }; break; case "main": if (MONEY >= costMain){ MONEY = (MONEY - costMain); return (true); }; break; case "miner": if (MONEY >= costMiner){ MONEY = (MONEY - costMiner); return (true); }; break; case "tower1": if (MONEY >= costTower1){ MONEY = (MONEY - costTower1); return (true); }; break; case "tower2": if (MONEY >= costTower2){ MONEY = (MONEY - costTower2); return (true); }; break; case "tower3": if (MONEY >= costTower3){ MONEY = (MONEY - costTower3); return (true); }; break; case "store": if (MONEY >= costStore){ MONEY = (MONEY - costStore); return (true); }; break; }; par.panel.funds.gotoAndPlay(1); playSound("fund"); playSound("not"); return (false); } public function showKetUnit2A(_arg1:MouseEvent):void{ par.panel.showKet(14); } public function train3(_arg1:MouseEvent):void{ if (command == "buildingselect"){ if ((targetBuild is Barrack)){ targetBuild.trainWhat(3); }; }; } public function goPlay10(_arg1:MouseEvent):void{ goPlayTO(10); } public function showKetUuAir2(_arg1:MouseEvent):void{ par.panel.showKet(16); } public function movemouse(_arg1:MouseEvent):void{ var _local2:Boolean; var _local3:*; var _local4:*; var _local5:GlowFilter; var _local6:*; if (command == "idle"){ if (dragarea.visible == true){ dragarea.scaleX = ((mouseX - oriKor.x) / 100); dragarea.scaleY = ((mouseY - oriKor.y) / 100); }; }; if (command == "build"){ bangunan.x = (Math.round((mouseX / SIZE)) * SIZE); bangunan.y = (Math.round((mouseY / SIZE)) * SIZE); _local2 = false; _local3 = Math.round((bangunan.x / SIZE)); _local4 = Math.round((bangunan.y / SIZE)); if (!terrain_bmpd2.hitTest(new Point(terrain_bmp2.x, terrain_bmp2.y), 1, new Point(bangunan.x, bangunan.y))){ if ((((((((_local3 > 1)) && ((_local4 > 1)))) && ((_local3 < (COLS - 1))))) && ((_local4 < (ROWS - 1))))){ if (bangunan.currentLabel != "miner"){ if ((((((((bangunan.currentLabel == "air")) || ((bangunan.currentLabel == "tower1")))) || ((bangunan.currentLabel == "tower2")))) || ((bangunan.currentLabel == "tower3")))){ if ((((((((mapUnit[_local3][_local4] == false)) && ((mapUnit[(_local3 + 1)][(_local4 + 1)] == false)))) && ((mapUnit[(_local3 + 1)][_local4] == false)))) && ((mapUnit[_local3][(_local4 + 1)] == false)))){ if ((((((((((((((((((((((((map[(_local3 - 1)][(_local4 - 1)] == false)) && ((map[_local3][(_local4 - 1)] == false)))) && ((map[(_local3 + 1)][(_local4 - 1)] == false)))) && ((map[(_local3 + 2)][(_local4 - 1)] == false)))) && ((map[(_local3 + 2)][_local4] == false)))) && ((map[(_local3 + 2)][(_local4 + 1)] == false)))) && ((map[(_local3 + 2)][(_local4 + 2)] == false)))) && ((map[(_local3 + 1)][(_local4 + 2)] == false)))) && ((map[_local3][(_local4 + 2)] == false)))) && ((map[(_local3 - 1)][(_local4 + 2)] == false)))) && ((map[(_local3 - 1)][(_local4 + 1)] == false)))) && ((map[(_local3 - 1)][_local4] == false)))){ _local2 = true; }; }; } else { if ((((((((((((((((mapUnit[_local3][_local4] == false)) && ((mapUnit[(_local3 + 1)][(_local4 + 1)] == false)))) && ((mapUnit[(_local3 + 1)][_local4] == false)))) && ((mapUnit[_local3][(_local4 + 1)] == false)))) && ((mapUnit[_local3][(_local4 - 1)] == false)))) && ((mapUnit[(_local3 + 1)][(_local4 - 1)] == false)))) && ((mapUnit[(_local3 - 1)][(_local4 + 1)] == false)))) && ((mapUnit[(_local3 - 1)][_local4] == false)))){ if ((((((((((((((((((((((((((((((((map[(_local3 - 2)][(_local4 - 2)] == false)) && ((map[(_local3 - 1)][(_local4 - 2)] == false)))) && ((map[_local3][(_local4 - 2)] == false)))) && ((map[(_local3 + 1)][(_local4 - 2)] == false)))) && ((map[(_local3 + 2)][(_local4 - 2)] == false)))) && ((map[(_local3 + 2)][(_local4 - 1)] == false)))) && ((map[(_local3 + 2)][_local4] == false)))) && ((map[(_local3 + 2)][(_local4 + 1)] == false)))) && ((map[(_local3 + 2)][(_local4 + 2)] == false)))) && ((map[(_local3 + 1)][(_local4 + 2)] == false)))) && ((map[_local3][(_local4 + 2)] == false)))) && ((map[(_local3 - 1)][(_local4 + 2)] == false)))) && ((map[(_local3 - 2)][(_local4 + 2)] == false)))) && ((map[(_local3 - 2)][(_local4 + 1)] == false)))) && ((map[(_local3 - 2)][_local4] == false)))) && ((map[(_local3 - 2)][(_local4 - 1)] == false)))){ _local2 = true; }; }; }; }; }; }; if (bangunan.currentLabel == "miner"){ for (_local6 in GOLD) { if (GOLD[_local6].theHost == null){ if (!terrain_bmpd2.hitTest(new Point(terrain_bmp2.x, terrain_bmp2.y), 1, new Point(GOLD[_local6].x, GOLD[_local6].y))){ if (bangunan.hitTestObject(GOLD[_local6])){ bangunan.x = GOLD[_local6].x; bangunan.y = GOLD[_local6].y; _local2 = true; }; }; }; }; }; _local5 = new GlowFilter(); _local5.alpha = 1; _local5.blurX = 5; _local5.blurY = 5; _local5.quality = BitmapFilterQuality.MEDIUM; _local5.strength = 3; if (_local2){ _local5.color = 0xFF00; bangunan.filters = [_local5]; } else { _local5.color = 0xFF0000; bangunan.filters = [_local5]; }; } else { bangunan.x = -100; bangunan.y = -100; }; if (kettext.visible == true){ kettext.x = mouseX; kettext.y = mouseY; }; } public function goPlay1(_arg1:MouseEvent):void{ goPlayTO(1); } public function goPlay2(_arg1:MouseEvent):void{ goPlayTO(2); } public function goPlay3(_arg1:MouseEvent):void{ goPlayTO(3); } public function goPlay4(_arg1:MouseEvent):void{ goPlayTO(4); } public function goPlay5(_arg1:MouseEvent):void{ goPlayTO(5); } public function goPlay6(_arg1:MouseEvent):void{ goPlayTO(6); } public function goPlay9(_arg1:MouseEvent):void{ goPlayTO(9); } public function showKetUnit3L(_arg1:MouseEvent):void{ par.panel.showKet(11); } public function unbuild(_arg1:MovieClip):Number{ var _local2:*; var _local3:*; _local2 = (_arg1.x / SIZE); _local3 = (_arg1.y / SIZE); if ((((((((((((((((_arg1 is BarrackAir)) || ((_arg1 is BarrackAirEnemy)))) || ((_arg1 is Tower1)))) || ((_arg1 is Tower2)))) || ((_arg1 is Tower3)))) || ((_arg1 is Tower1E)))) || ((_arg1 is Tower2E)))) || ((_arg1 is Tower3E)))){ map[_local2][_local3] = false; map[(_local2 + 1)][(_local3 + 1)] = false; map[(_local2 + 1)][_local3] = false; map[_local2][(_local3 + 1)] = false; return (1); }; if ((((_arg1 is Barrack)) || ((_arg1 is BarrackEnemy)))){ map[_local2][_local3] = false; map[(_local2 + 1)][(_local3 + 1)] = false; map[(_local2 + 1)][_local3] = false; map[_local2][(_local3 + 1)] = false; map[_local2][(_local3 - 1)] = false; map[(_local2 + 1)][(_local3 - 1)] = false; map[(_local2 - 1)][(_local3 + 1)] = false; map[(_local2 - 1)][_local3] = false; map[(_local2 - 1)][(_local3 - 1)] = false; }; if ((((((((_arg1 is MainBuilding)) || ((_arg1 is MainEnemyBuilding)))) || ((_arg1 is Store)))) || ((_arg1 is StoreEnemy)))){ map[_local2][_local3] = false; map[(_local2 + 1)][(_local3 + 1)] = false; map[(_local2 + 1)][_local3] = false; map[_local2][(_local3 + 1)] = false; map[_local2][(_local3 - 1)] = false; map[(_local2 + 1)][(_local3 - 1)] = false; map[(_local2 - 1)][(_local3 + 1)] = false; map[(_local2 - 1)][_local3] = false; map[(_local2 - 1)][(_local3 - 1)] = false; }; if ((((_arg1 is Miner)) || ((_arg1 is MinerEnemy)))){ }; return (0); } public function deinitKey():void{ removeEventListener(MouseEvent.MOUSE_DOWN, downmouse); stage.removeEventListener(MouseEvent.MOUSE_MOVE, movemouse); stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressKey); stage.removeEventListener(KeyboardEvent.KEY_UP, releaseKey); dragarea.visible = false; } public function showKetUnit4L(_arg1:MouseEvent):void{ par.panel.showKet(12); } public function getMinerAlly():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is Miner)){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function canbuythisEnemy(_arg1:Number):Boolean{ if (PopulasiEnemy < PopulasiAtasEnemy){ if (LEVEL == 10){ return (true); }; switch (_arg1){ case 1: if (MONEYEnemy >= costEnemyLand1){ MONEYEnemy = (MONEYEnemy - costEnemyLand1); return (true); }; break; case 2: if (MONEYEnemy >= costEnemyLand2){ MONEYEnemy = (MONEYEnemy - costEnemyLand2); return (true); }; break; case 3: if (MONEYEnemy >= costEnemyLand3){ MONEYEnemy = (MONEYEnemy - costEnemyLand3); return (true); }; break; case 4: if (MONEYEnemy >= costEnemyLand4){ MONEYEnemy = (MONEYEnemy - costEnemyLand4); return (true); }; break; case 5: if (MONEYEnemy >= costEnemyAir1){ MONEYEnemy = (MONEYEnemy - costEnemyAir1); return (true); }; break; case 6: if (MONEYEnemy >= costEnemyAir2){ MONEYEnemy = (MONEYEnemy - costEnemyAir2); return (true); }; break; }; }; return (false); } public function goPlay7(_arg1:MouseEvent):void{ goPlayTO(7); } public function goPlay8(_arg1:MouseEvent):void{ goPlayTO(8); } public function thisBuildingOver(_arg1:MouseEvent):void{ var _local2:*; _local2 = _arg1.currentTarget; if ((_local2 is Barrack)){ kettext.teks.text = "FACTORY"; kettext.sub.text = "build land unit"; }; if ((_local2 is BarrackAir)){ kettext.teks.text = "HANGAR"; kettext.sub.text = "build air unit"; }; if ((_local2 is MainBuilding)){ kettext.teks.text = "BASE"; kettext.sub.text = "buy technologies"; }; if ((_local2 is Miner)){ kettext.teks.text = "MINER"; kettext.sub.text = "mining gold"; }; if ((_local2 is Tower1)){ kettext.teks.text = "Missile"; kettext.sub.text = "tower"; }; if ((_local2 is Tower2)){ kettext.teks.text = "Turret"; kettext.sub.text = "tower"; }; if ((_local2 is Tower3)){ kettext.teks.text = "Rapid"; kettext.sub.text = "tower"; }; if ((_local2 is Store)){ kettext.teks.text = "SILO"; kettext.sub.text = "inc population"; }; kettext.visible = true; } public function bawahover(_arg1:MouseEvent):void{ bawahOn = true; } public function getBarrackAir():Array{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is BarrackAirEnemy)){ _local1.push(_local3); }; _local2++; }; return (_local1); } public function nextAnim(_arg1:MouseEvent):void{ mapt.play(); removeEventListener(MouseEvent.CLICK, nextAnim); char.play(); } public function goPlayTO(_arg1:Number):void{ clean(); LEVEL = _arg1; if (LEVEL != 0){ par.animasi.goAnimasi(_arg1); } else { firstInitial(); }; } public function costEnemy(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (costEnemyLand1); case 2: return (costEnemyLand2); case 3: return (costEnemyLand3); case 4: return (costEnemyLand4); case 5: return (costEnemyAir1); case 6: return (costEnemyAir2); }; return (100); } public function klikMenuStore(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("store"); bangunan.visible = true; }; } public function deinitPanel():void{ par.panel.beha.removeEventListener(MouseEvent.MOUSE_OUT, hidebeha); par.panel.btnstruc.landbtn.removeEventListener(MouseEvent.CLICK, klikMenuLand); par.panel.btnstruc.mainbtn.removeEventListener(MouseEvent.CLICK, klikMenuMain); par.panel.btnstruc.storebtn.removeEventListener(MouseEvent.CLICK, klikMenuStore); par.panel.btnstruc.airbtn.removeEventListener(MouseEvent.CLICK, klikMenuAir); par.panel.btnstruc.goldbtn.removeEventListener(MouseEvent.CLICK, klikMenuGold); par.panel.btnstruc.tower1.removeEventListener(MouseEvent.CLICK, klikMenuTower1); par.panel.btnstruc.tower2.removeEventListener(MouseEvent.CLICK, klikMenuTower2); par.panel.btnstruc.tower3.removeEventListener(MouseEvent.CLICK, klikMenuTower3); par.panel.btnunit.unit1.removeEventListener(MouseEvent.CLICK, train1); par.panel.btnunit.unit2.removeEventListener(MouseEvent.CLICK, train2); par.panel.btnunit.unit3.removeEventListener(MouseEvent.CLICK, train3); par.panel.btnunit.unit4.removeEventListener(MouseEvent.CLICK, train4); par.panel.btnairunit.unit1.removeEventListener(MouseEvent.CLICK, train1); par.panel.btnairunit.unit2.removeEventListener(MouseEvent.CLICK, train2); par.panel.beha.removeEventListener(MouseEvent.CLICK, changeBeha); par.panel.minimaphide.removeEventListener(MouseEvent.CLICK, changeMINI); par.panel.pic.train1.removeEventListener(MouseEvent.CLICK, untrain1); par.panel.pic.train2.removeEventListener(MouseEvent.CLICK, untrain2); par.panel.pic.train3.removeEventListener(MouseEvent.CLICK, untrain3); par.panel.pic.train4.removeEventListener(MouseEvent.CLICK, untrain4); par.panel.pic.train5.removeEventListener(MouseEvent.CLICK, untrain5); par.panel.upgradeBtn.airbtn.removeEventListener(MouseEvent.CLICK, buyAir); par.panel.upgradeBtn.unit2a.removeEventListener(MouseEvent.CLICK, buyUnit2a); par.panel.upgradeBtn.unit2.removeEventListener(MouseEvent.CLICK, buyUnit2); par.panel.upgradeBtn.unit3.removeEventListener(MouseEvent.CLICK, buyUnit3); par.panel.upgradeBtn.unit4.removeEventListener(MouseEvent.CLICK, buyUnit4); par.panel.upgradeBtn.tower1.removeEventListener(MouseEvent.CLICK, buyTower1); par.panel.upgradeBtn.tower2.removeEventListener(MouseEvent.CLICK, buyTower2); par.panel.upgradeBtn.tower3.removeEventListener(MouseEvent.CLICK, buyTower3); par.panel.beha.removeEventListener(MouseEvent.MOUSE_OVER, showbeha); par.panel.btnstruc.landbtn.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.mainbtn.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.storebtn.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.airbtn.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.goldbtn.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.tower1.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.tower2.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.tower3.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit1.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit2.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit3.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnunit.unit4.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnairunit.unit1.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnairunit.unit2.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.airbtn.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit2a.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit2.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit3.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.unit4.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.tower1.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.tower2.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.upgradeBtn.tower3.removeEventListener(MouseEvent.MOUSE_OUT, hideketOut); par.panel.btnstruc.landbtn.removeEventListener(MouseEvent.MOUSE_OVER, showKetLand); par.panel.btnstruc.mainbtn.removeEventListener(MouseEvent.MOUSE_OVER, showKetMain); par.panel.btnstruc.storebtn.removeEventListener(MouseEvent.MOUSE_OVER, showKetStore); par.panel.btnstruc.airbtn.removeEventListener(MouseEvent.MOUSE_OVER, showKetAir); par.panel.btnstruc.goldbtn.removeEventListener(MouseEvent.MOUSE_OVER, showKetGold); par.panel.btnstruc.tower1.removeEventListener(MouseEvent.MOUSE_OVER, showKetTower1); par.panel.btnstruc.tower2.removeEventListener(MouseEvent.MOUSE_OVER, showKetTower2); par.panel.btnstruc.tower3.removeEventListener(MouseEvent.MOUSE_OVER, showKetTower3); par.panel.btnunit.unit1.removeEventListener(MouseEvent.MOUSE_OVER, showKetUnit1L); par.panel.btnunit.unit2.removeEventListener(MouseEvent.MOUSE_OVER, showKetUnit2L); par.panel.btnunit.unit3.removeEventListener(MouseEvent.MOUSE_OVER, showKetUnit3L); par.panel.btnunit.unit4.removeEventListener(MouseEvent.MOUSE_OVER, showKetUnit4L); par.panel.btnairunit.unit1.removeEventListener(MouseEvent.MOUSE_OVER, showKetUnit1A); par.panel.btnairunit.unit2.removeEventListener(MouseEvent.MOUSE_OVER, showKetUnit2A); par.panel.upgradeBtn.airbtn.removeEventListener(MouseEvent.MOUSE_OVER, showKetUAir); par.panel.upgradeBtn.unit2a.removeEventListener(MouseEvent.MOUSE_OVER, showKetUuAir2); par.panel.upgradeBtn.unit2.removeEventListener(MouseEvent.MOUSE_OVER, showKetUuLand2); par.panel.upgradeBtn.unit3.removeEventListener(MouseEvent.MOUSE_OVER, showKetUuLand3); par.panel.upgradeBtn.unit4.removeEventListener(MouseEvent.MOUSE_OVER, showKetUuLand4); par.panel.upgradeBtn.tower1.removeEventListener(MouseEvent.MOUSE_OVER, showKetUTower1); par.panel.upgradeBtn.tower2.removeEventListener(MouseEvent.MOUSE_OVER, showKetUTower2); par.panel.upgradeBtn.tower3.removeEventListener(MouseEvent.MOUSE_OVER, showKetUTower3); par.menupause.menupause.rsm.removeEventListener(MouseEvent.CLICK, resumeBtn); par.menupause.menupause.yes.removeEventListener(MouseEvent.CLICK, yesBtn); par.menupause.menupause.rsm.removeEventListener(MouseEvent.MOUSE_OVER, goSound); par.menupause.menupause.yes.removeEventListener(MouseEvent.MOUSE_OVER, goSound); par.menupause.menupause.no.removeEventListener(MouseEvent.MOUSE_OVER, goSound); par.menupause.menupause.btm.removeEventListener(MouseEvent.MOUSE_OVER, goSound); par.panel.btnplay.removeEventListener(MouseEvent.CLICK, playbtn); par.panel.btnmute.removeEventListener(MouseEvent.CLICK, mutebtn); par.panel.btnplay.removeEventListener(MouseEvent.MOUSE_OVER, goSound); par.panel.btnmute.removeEventListener(MouseEvent.MOUSE_OVER, goSound); par.panel.kiri.removeEventListener(MouseEvent.MOUSE_OVER, kiriover); par.panel.kanan.removeEventListener(MouseEvent.MOUSE_OVER, kananover); par.panel.atas.removeEventListener(MouseEvent.MOUSE_OVER, atasover); par.panel.bawah.removeEventListener(MouseEvent.MOUSE_OVER, bawahover); par.panel.kiriatas.removeEventListener(MouseEvent.MOUSE_OVER, kiriatasover); par.panel.kananatas.removeEventListener(MouseEvent.MOUSE_OVER, kananatasover); par.panel.kiribawah.removeEventListener(MouseEvent.MOUSE_OVER, kiribawahover); par.panel.kananbawah.removeEventListener(MouseEvent.MOUSE_OVER, kananbawahover); par.panel.kiri.removeEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kanan.removeEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.atas.removeEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.bawah.removeEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kiriatas.removeEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kananatas.removeEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kiribawah.removeEventListener(MouseEvent.MOUSE_OUT, outall); par.panel.kananbawah.removeEventListener(MouseEvent.MOUSE_OUT, outall); } public function efecAir(_arg1:Number, _arg2:Number):void{ var _local3:*; _local3 = new Water(); _local3.x = _arg1; _local3.y = _arg2; effect.addChild(_local3); } public function outall(_arg1:MouseEvent):void{ kananOn = false; bawahOn = false; kiriOn = false; atasOn = false; } public function showKetUnit2L(_arg1:MouseEvent):void{ par.panel.showKet(10); } public function klikMenuAir(_arg1:MouseEvent):void{ if ((((command == "idle")) || ((command == "build")))){ command = "build"; bangunan.gotoAndStop("air"); bangunan.visible = true; }; } public function kiribawahover(_arg1:MouseEvent):void{ kiriOn = true; bawahOn = true; } public function nextt(_arg1:MouseEvent):void{ removeEventListener(MouseEvent.CLICK, nextt); addEventListener(MouseEvent.CLICK, nexttt); } public function saving():void{ var _local1:Boolean; if (LEVEL >= 6){ par.hangerBuild = hangerBuild; }; if (LEVEL >= 5){ par.tower1Build = tower1Build; }; if (LEVEL >= 7){ par.tower2Build = tower2Build; }; if (LEVEL >= 8){ par.tower3Build = tower3Build; }; if (LEVEL >= 3){ par.land2Train = land2Train; }; if (LEVEL >= 4){ par.land4Train = land4Train; }; if (LEVEL >= 5){ par.land3Train = land3Train; }; if (LEVEL >= 7){ par.air2Train = air2Train; }; par.UnitCreated = (par.UnitCreated + UnitCreated); par.UnitDestroyed = (par.UnitDestroyed + UnitDestroyed); par.BuildingCreated = (par.BuildingCreated + BuildingCreated); par.BuildingDestroyed = (par.BuildingDestroyed + BuildingDestroyed); par.EnemyUnitDestroyed = (par.EnemyUnitDestroyed + EnemyUnitDestroyed); par.EnemyBuildingDestroyed = (par.EnemyBuildingDestroyed + EnemyBuildingDestroyed); GoldTotal = (GoldTotal * 100); par.GoldTotal = (par.GoldTotal + GoldTotal); PointTotal = ((((UnitCreated * 50) + (EnemyUnitDestroyed * 100)) + (EnemyBuildingDestroyed * 100)) + GoldTotal); par.PointTotal = (par.PointTotal + PointTotal); switch (LEVEL){ case 1: if (PointTotal > par.pointStage1){ par.pointStage1 = PointTotal; }; break; case 2: if (PointTotal > par.pointStage2){ par.pointStage2 = PointTotal; }; break; case 3: if (PointTotal > par.pointStage3){ par.pointStage3 = PointTotal; }; break; case 4: if (PointTotal > par.pointStage4){ par.pointStage4 = PointTotal; }; break; case 5: if (PointTotal > par.pointStage5){ par.pointStage5 = PointTotal; }; break; case 6: if (PointTotal > par.pointStage6){ par.pointStage6 = PointTotal; }; break; case 7: if (PointTotal > par.pointStage7){ par.pointStage7 = PointTotal; }; break; case 8: if (PointTotal > par.pointStage8){ par.pointStage8 = PointTotal; }; break; case 9: if (PointTotal > par.pointStage9){ par.pointStage9 = PointTotal; }; break; case 10: if (PointTotal > par.pointStage10){ par.pointStage10 = PointTotal; }; break; }; ket.uc.text = String(UnitCreated); ket.ud.text = String(UnitDestroyed); ket.eud.text = String(EnemyUnitDestroyed); ket.ebd.text = String(EnemyBuildingDestroyed); ket.goe.text = String(GoldTotal); ket.tp.text = String(PointTotal); if (LEVEL != 10){ addEventListener(MouseEvent.CLICK, nextt); }; _local1 = true; if (EnemyUnitDestroyed >= 50){ if (par.destroy100 == false){ par.destroy100 = true; _local1 = false; }; }; if (par.EnemyUnitDestroyed >= 250){ if (par.destroy500 == false){ par.destroy500 = true; _local1 = false; }; }; if (BuildingCreated >= 5){ if (par.build10 == false){ par.build10 = true; _local1 = false; }; }; if ((((((((((((((((tower1Build == true)) && ((tower2Build == true)))) && ((tower3Build == true)))) && ((land2Train == true)))) && ((land3Train == true)))) && ((land4Train == true)))) && ((air2Train == true)))) && (hangerBuild))){ if (par.alltech == false){ par.alltech = true; _local1 = false; }; }; if (towerBUILD >= 7){ if (par.tower7 == false){ par.tower7 = true; _local1 = false; }; }; if (minerBUILD >= 4){ if (par.miner5 == false){ par.mines5 = true; _local1 = false; }; }; if (_local1 == true){ ket.medaltext.visible = false; } else { ket.medaltext.visible = true; }; par.saveGame(); } public function changeMINIMAP():void{ hideMINI = !(hideMINI); } public function buildGold(_arg1:Number, _arg2:Number):void{ var _local3:*; var _local4:DisplayObject; var _local5:Number; _local3 = new Gold(); _local4 = getChildByName("bangunan"); _local5 = getChildIndex(_local4); _local3.x = (_arg1 * SIZE); _local3.y = (_arg2 * SIZE); map[_arg1][_arg2] = true; map[(_arg1 + 1)][(_arg2 + 1)] = true; map[(_arg1 + 1)][_arg2] = true; map[_arg1][(_arg2 + 1)] = true; map[_arg1][(_arg2 - 1)] = true; map[(_arg1 + 1)][(_arg2 - 1)] = true; map[(_arg1 - 1)][(_arg2 + 1)] = true; map[(_arg1 - 1)][_arg2] = true; map[(_arg1 - 1)][(_arg2 - 1)] = true; addChildAt(_local3, (_local5 + 1)); } public function canbuythisUnit(_arg1:Number):Boolean{ var _local2:Boolean; _local2 = false; if (Populasi < PopulasiAtas){ _local2 = true; switch (_arg1){ case 1: if (MONEY >= costUnitLand1){ MONEY = (MONEY - costUnitLand1); return (true); }; break; case 2: if (MONEY >= costUnitLand2){ MONEY = (MONEY - costUnitLand2); return (true); }; break; case 3: if (MONEY >= costUnitLand3){ MONEY = (MONEY - costUnitLand3); return (true); }; break; case 4: if (MONEY >= costUnitLand4){ MONEY = (MONEY - costUnitLand4); return (true); }; break; case 5: if (MONEY >= costUnitAir1){ MONEY = (MONEY - costUnitAir1); return (true); }; break; case 6: if (MONEY >= costUnitAir2){ MONEY = (MONEY - costUnitAir2); return (true); }; break; }; }; if (_local2 == false){ if (cekSilo == false){ par.panel.siloo.gotoAndPlay(1); if (PopulasiAtas < MAXPOPULASI){ playSound("msilo"); } else { playSound("max"); }; playSound("not"); cekSilo = true; }; }; return (false); } } }//package BattleFieldArenav2_fla
Section 48
//MainMenu_212 (BattleFieldArenav2_fla.MainMenu_212) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class MainMenu_212 extends MovieClip { public var playbtn:SimpleButton; public var creditbtn:SimpleButton; public var morebtn:SimpleButton; public var contbtn:SimpleButton; } }//package BattleFieldArenav2_fla
Section 49
//MainTimeline (BattleFieldArenav2_fla.MainTimeline) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var panel:MovieClip; public var btnlogo:SimpleButton; public var bar:MovieClip; public var normalElement:Array; public var tplus:Array; public var ctr; public var costland2Train:Number; public var pope:TextField; public var tower3Build:Boolean; public var costtower3Build:Number; public var FARSTAGE:Number; public var kursor:MovieClip; public var duite:TextField; public var so:SharedObject; public var EnemyUnitDestroyed:Number; public var tower7:Boolean; public var loader2:URLLoader; public var warn:MovieClip; public var land2Train:Boolean; public var achi:MovieClip; public var UnitCreated:Number; public var pointStage3:Number; public var pointStage4:Number; public var pointStage6:Number; public var pointStage7:Number; public var pointStage8:Number; public var GoldTotal:Number; public var pointStage9:Number; public var pointStage1:Number; public var pointStage5:Number; public var destroy500:Boolean; public var animasi:MovieClip; public var air2Train:Boolean; public var costland3Train:Number; public var pointStage2:Number; public var soundChannelMain:SoundChannel; public var pointe:MovieClip; public var submitpanel:MovieClip; public var UnitDestroyed:Number; public var soundSFX:Number; public var credit:MovieClip; public var commandtext:TextField; public var delayLoad:int; public var tower1Build:Boolean; public var build10:Boolean; public var costtower1Build:Number; public var logoab:SimpleButton; public var hangerBuild:Boolean; public var grayElement:Array; public var costhangerBuild:Number; public var canCont:Boolean; public var animasiop:MovieClip; public var sound:Sound; public var curElement:Array; public var soundBGM:Number; public var tutor:MovieClip; public var EnemyBuildingDestroyed:Number; public var land3Train:Boolean; public var menu:MovieClip; public var costland4Train:Number; public var submitscore:Boolean; public var BuildingCreated:Number; public var customContextMenu:ContextMenu; public var request2:URLRequest; public var ner:TextField; public var variables2:URLVariables; public var tower2Build:Boolean; public var logo:MovieClip; public var muteSFX:Boolean; public var PointTotal:Number; public var costair2Train:Number; public var destroy100:Boolean; public var main:MovieClip; public var mines5:Boolean; public var BuildingDestroyed:Number; public var opencredit:Boolean; public var alltech:Boolean; public var costtower2Build:Number; public var temp; public var btnskip:MovieClip; public var land4Train:Boolean; public var pointStage10:Number; public var muteBGM:Boolean; public var menupause:MovieClip; public function MainTimeline(){ addFrameScript(0, frame1, 6, frame7, 7, frame8, 13, frame14, 19, frame20, 24, frame25, 29, frame30, 30, frame31, 40, frame41); } public function clikfarm(_arg1:ContextMenuEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.smallfarmstudio.com"); navigateToURL(_local2, "_blank"); } public function stopSound():void{ if (soundChannelMain != null){ soundChannelMain.stop(); }; } public function onComplete(_arg1:Event):void{ gotoAndStop("load"); } public function playSound(_arg1:String, _arg2:Number=0):void{ stopSound(); if (muteBGM == false){ switch (_arg1){ case "ingame": sound = new InGame(); break; case "boss": sound = new BossBattle(); break; case "map": sound = new MapSelect(); break; case "menu": sound = new MenuUtama(); break; case "op": sound = new Op(); break; case "ed": sound = new ED(); break; case "lose": sound = new Lose(); break; case "result": sound = new Result(); break; }; if (_arg2 == 0){ soundChannelMain = sound.play(0, 9999, new SoundTransform(soundBGM)); } else { soundChannelMain = sound.play(0, _arg2, new SoundTransform(soundBGM)); }; }; } public function decSound():void{ var _local1:*; if (muteBGM == false){ _local1 = new SoundTransform((soundBGM * 0.5)); soundChannelMain.soundTransform = _local1; }; } public function grayed():void{ var _local1:*; addEventListener(Event.ENTER_FRAME, animgray); _local1 = 0; while (_local1 < tplus.length) { tplus[_local1] = ((normalElement[_local1] - grayElement[_local1]) / ctr); _local1++; }; } function frame14(){ stop(); } public function playEfek(_arg1:String):void{ var _local2:Sound; if (muteSFX == false){ switch (_arg1){ case "okay": _local2 = new OkayBtn(); break; case "not": _local2 = new NotBtn(); break; case "pause": _local2 = new Pause(); break; case "movebtn": _local2 = new MoveBtn(); break; }; }; _local2.play(0, 1, new SoundTransform(soundSFX)); } function frame7(){ hangerBuild = false; tower1Build = false; tower2Build = false; tower3Build = false; land2Train = false; land3Train = false; land4Train = false; air2Train = false; costland2Train = 200; costland3Train = 500; costland4Train = 450; costtower1Build = 450; costhangerBuild = 400; costtower2Build = 550; costair2Train = 350; costtower3Build = 600; soundSFX = 1; soundBGM = 1; muteSFX = false; muteBGM = false; FARSTAGE = 0; UnitCreated = 0; UnitDestroyed = 0; EnemyUnitDestroyed = 0; EnemyBuildingDestroyed = 0; GoldTotal = 0; PointTotal = 0; BuildingCreated = 0; BuildingDestroyed = 0; pointStage1 = 0; pointStage2 = 0; pointStage3 = 0; pointStage4 = 0; pointStage5 = 0; pointStage6 = 0; pointStage7 = 0; pointStage8 = 0; pointStage9 = 0; pointStage10 = 0; build10 = false; destroy100 = false; destroy500 = false; opencredit = false; mines5 = false; alltech = false; tower7 = false; submitscore = false; canCont = false; so = SharedObject.getLocal("BA01"); gotoAndStop("absplash"); } function frame25(){ if (so.data.FARSTAGE != null){ loadGame(); } else { resetGame(); }; } function frame1(){ Mouse.hide(); kursor.mouseEnabled = false; pointe.mouseEnabled = false; pointe.visible = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, moveKursor); stage.addEventListener(MouseEvent.MOUSE_DOWN, downKursor); stop(); logoab.addEventListener(MouseEvent.CLICK, clickAB); stage.scaleMode = StageScaleMode.NO_SCALE; addEventListener(Event.ENTER_FRAME, onProgress); delayLoad = 0; customContextMenu = new ContextMenu(); customContextMenu.hideBuiltInItems(); temp = new ContextMenuItem("Small Farm Studio"); temp.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clikfarm); customContextMenu.customItems.push(temp); contextMenu = customContextMenu; stage.showDefaultContextMenu = false; if (loaderInfo.url.substring(0, 4) != "file"){ Security.allowDomain("*"); Security.loadPolicyFile("http://track.g-bot.net/crossdomain.xml"); variables2 = new URLVariables(); variables2.id = "battlefieldarena"; variables2.ui = loaderInfo.url; request2 = new URLRequest("http://track.g-bot.net/track.php"); request2.method = "POST"; request2.data = variables2; loader2 = new URLLoader(); loader2.load(request2); }; } public function soundOver(_arg1:MouseEvent):void{ playEfek("movebtn"); } function frame30(){ stop(); playSound("op", 1); btnskip.addEventListener(MouseEvent.CLICK, nextPlay); } function frame31(){ achi.visible = false; tutor.gotoAndStop("end"); stop(); normalElement = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; grayElement = [0.2, 0.5, 0, 0, 0, 0.2, 0.5, 0, 0, 0, 0.2, 0.5, 0, 0, 0, 0, 0, 0, 1, 0]; tplus = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; curElement = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; ctr = 25; } public function goNO(_arg1:MouseEvent):void{ warn.yes.removeEventListener(MouseEvent.CLICK, goNEW); warn.no.removeEventListener(MouseEvent.CLICK, goNO); warn.visible = false; } public function normalised():void{ var _local1:*; addEventListener(Event.ENTER_FRAME, animgray); _local1 = 0; while (_local1 < tplus.length) { tplus[_local1] = ((grayElement[_local1] - normalElement[_local1]) / ctr); _local1++; }; } function frame41(){ playSound("ed", 1); } public function nextPlay(_arg1:MouseEvent):void{ btnskip.removeEventListener(MouseEvent.CLICK, nextPlay); animasiop.gotoAndStop("end"); } public function muteALL():void{ var _local1:*; muteBGM = !(muteBGM); muteSFX = muteBGM; trace(((muteBGM + " ") + muteSFX)); if (muteBGM == false){ _local1 = new SoundTransform(soundBGM); soundChannelMain.soundTransform = _local1; panel.btnmute.gotoAndStop(1); }; if (muteBGM == true){ _local1 = new SoundTransform(0); soundChannelMain.soundTransform = _local1; panel.btnmute.gotoAndStop(2); }; } function frame8(){ stop(); } function frame20(){ stop(); playSound("menu"); warn.visible = false; menu.playbtn.addEventListener(MouseEvent.CLICK, btnplay); menu.creditbtn.addEventListener(MouseEvent.CLICK, btncred); menu.morebtn.addEventListener(MouseEvent.CLICK, btnmore); menu.playbtn.addEventListener(MouseEvent.MOUSE_OVER, soundOver); menu.morebtn.addEventListener(MouseEvent.MOUSE_OVER, soundOver); menu.creditbtn.addEventListener(MouseEvent.MOUSE_OVER, soundOver); if (so.data.FARSTAGE != null){ canCont = true; menu.contbtn.addEventListener(MouseEvent.CLICK, btncont); menu.contbtn.addEventListener(MouseEvent.MOUSE_OVER, soundOver); menu.contbtn.enabled = true; } else { canCont = false; menu.contbtn.enabled = false; }; logoab.addEventListener(MouseEvent.CLICK, clickMore2ab); btnlogo.addEventListener(MouseEvent.CLICK, clickMore); } public function clickMore(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.smallfarmstudio.com"); navigateToURL(_local2, "_blank"); } public function onProgress(_arg1:Event):void{ var _local2:Number; var _local3:Number; var _local4:Number; _local2 = this.stage.loaderInfo.bytesLoaded; _local3 = this.stage.loaderInfo.bytesTotal; _local4 = (_local2 / _local3); if (delayLoad < ((_local2 / _local3) * 100)){ delayLoad++; bar.gotoAndStop(delayLoad); if (delayLoad >= 100){ removeEventListener(Event.ENTER_FRAME, onProgress); gotoAndStop("load"); }; }; } public function saveGame():void{ so.data.FARSTAGE = FARSTAGE; so.data.hangerBuild = hangerBuild; so.data.tower1Build = tower1Build; so.data.tower2Build = tower2Build; so.data.tower3Build = tower3Build; so.data.land2Train = land2Train; so.data.land3Train = land3Train; so.data.land4Train = land4Train; so.data.air2Train = air2Train; so.data.UnitCreated = UnitCreated; so.data.UnitDestroyed = UnitDestroyed; so.data.BuildingCreated = BuildingCreated; so.data.BuildingDestroyed = BuildingDestroyed; so.data.EnemyUnitDestroyed = EnemyUnitDestroyed; so.data.EnemyBuildingDestroyed = EnemyBuildingDestroyed; so.data.GoldTotal = GoldTotal; so.data.pointStage1 = pointStage1; so.data.pointStage2 = pointStage2; so.data.pointStage3 = pointStage3; so.data.pointStage4 = pointStage4; so.data.pointStage5 = pointStage5; so.data.pointStage6 = pointStage6; so.data.pointStage7 = pointStage7; so.data.pointStage8 = pointStage8; so.data.pointStage9 = pointStage9; so.data.pointStage10 = pointStage10; so.data.PointTotal = PointTotal; so.data.build10 = build10; so.data.destroy100 = destroy100; so.data.destroy500 = destroy500; so.data.opencredit = opencredit; so.data.mines5 = mines5; so.data.alltech = alltech; so.data.tower7 = tower7; so.data.submitscore = submitscore; so.flush(); } public function moveKursor(_arg1:MouseEvent):void{ kursor.x = mouseX; kursor.y = mouseY; pointe.x = kursor.x; pointe.y = kursor.y; } public function btncont(_arg1:MouseEvent):void{ ilanginBtn(); loadGame(); playEfek("okay"); gotoAndStop("playing"); } public function ilanginBtn():void{ menu.playbtn.removeEventListener(MouseEvent.CLICK, btnplay); menu.contbtn.removeEventListener(MouseEvent.CLICK, btncont); menu.playbtn.removeEventListener(MouseEvent.MOUSE_OVER, soundOver); menu.contbtn.removeEventListener(MouseEvent.MOUSE_OVER, soundOver); menu.morebtn.removeEventListener(MouseEvent.MOUSE_OVER, soundOver); menu.creditbtn.removeEventListener(MouseEvent.MOUSE_OVER, soundOver); menu.creditbtn.removeEventListener(MouseEvent.CLICK, btncred); menu.morebtn.removeEventListener(MouseEvent.CLICK, btnmore); logoab.removeEventListener(MouseEvent.CLICK, clickMore2ab); btnlogo.removeEventListener(MouseEvent.CLICK, clickMore); } public function downKursor(_arg1:MouseEvent):void{ kursor.play(); } public function newGAME():void{ playEfek("okay"); ilanginBtn(); resetGame(); gotoAndStop("opening"); } public function btnplay(_arg1:MouseEvent):void{ if (canCont == false){ newGAME(); } else { warn.visible = true; warn.yes.addEventListener(MouseEvent.CLICK, goNEW); warn.no.addEventListener(MouseEvent.CLICK, goNO); }; } public function goNEW(_arg1:MouseEvent):void{ warn.yes.removeEventListener(MouseEvent.CLICK, goNEW); warn.no.removeEventListener(MouseEvent.CLICK, goNO); newGAME(); } public function clickAB(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.arcadebomb.com"); navigateToURL(_local2, "_blank"); } public function btnmore(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.arcadebomb.com"); navigateToURL(_local2, "_blank"); } public function btncred(_arg1:MouseEvent):void{ if (credit.currentFrame == 1){ opencredit = true; saveGame(); credit.play(); }; } public function clickMore2ab(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.arcadebomb.com"); navigateToURL(_local2, "_blank"); } public function incSound():void{ var _local1:*; if (muteBGM == false){ _local1 = new SoundTransform(soundBGM); soundChannelMain.soundTransform = _local1; }; } public function resetGame():void{ so.data.FARSTAGE = 0; so.data.hangerBuild = false; so.data.tower1Build = false; so.data.tower2Build = false; so.data.tower3Build = false; so.data.land2Train = false; so.data.land3Train = false; so.data.land4Train = false; so.data.air2Train = false; so.data.UnitCreated = 0; so.data.UnitDestroyed = 0; so.data.BuildingCreated = 0; so.data.BuildingDestroyed = 0; so.data.EnemyUnitDestroyed = 0; so.data.EnemyBuildingDestroyed = 0; so.data.GoldTotal = 0; so.data.PointTotal = 0; so.data.pointStage1 = 0; so.data.pointStage2 = 0; so.data.pointStage3 = 0; so.data.pointStage4 = 0; so.data.pointStage5 = 0; so.data.pointStage6 = 0; so.data.pointStage7 = 0; so.data.pointStage8 = 0; so.data.pointStage9 = 0; so.data.pointStage10 = 0; so.data.build10 = false; so.data.destroy100 = false; so.data.destroy500 = false; so.data.opencredit = false; so.data.mines5 = false; so.data.alltech = false; so.data.tower7 = false; so.data.submitscore = false; so.flush(); loadGame(); } public function animgray(_arg1:Event){ var _local2:*; var _local3:ColorMatrixFilter; if (--ctr > 0){ _local2 = 0; while (_local2 < curElement.length) { curElement[_local2] = (curElement[_local2] - tplus[_local2]); _local2++; }; _local3 = new ColorMatrixFilter(curElement); main.filters = [_local3]; panel.filters = [_local3]; } else { ctr = 25; removeEventListener(Event.ENTER_FRAME, animgray); }; } public function loadGame():void{ FARSTAGE = so.data.FARSTAGE; hangerBuild = so.data.hangerBuild; tower1Build = so.data.tower1Build; tower2Build = so.data.tower2Build; tower3Build = so.data.tower3Build; land2Train = so.data.land2Train; land3Train = so.data.land3Train; land4Train = so.data.land4Train; air2Train = so.data.air2Train; UnitCreated = so.data.UnitCreated; UnitDestroyed = so.data.UnitDestroyed; BuildingCreated = so.data.BuildingCreated; BuildingDestroyed = so.data.BuildingDestroyed; EnemyUnitDestroyed = so.data.EnemyUnitDestroyed; EnemyBuildingDestroyed = so.data.EnemyBuildingDestroyed; GoldTotal = so.data.GoldTotal; pointStage1 = so.data.pointStage1; pointStage2 = so.data.pointStage2; pointStage3 = so.data.pointStage3; pointStage4 = so.data.pointStage4; pointStage5 = so.data.pointStage5; pointStage6 = so.data.pointStage6; pointStage7 = so.data.pointStage7; pointStage8 = so.data.pointStage8; pointStage9 = so.data.pointStage9; pointStage10 = so.data.pointStage10; PointTotal = so.data.PointTotal; build10 = so.data.build10; destroy100 = so.data.destroy100; destroy500 = so.data.destroy500; opencredit = so.data.opencredit; mines5 = so.data.mines5; alltech = so.data.alltech; tower7 = so.data.tower7; submitscore = so.data.submitscore; } } }//package BattleFieldArenav2_fla
Section 50
//Map10Mini_389 (BattleFieldArenav2_fla.Map10Mini_389) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Map10Mini_389 extends MovieClip { public var map1:MovieClip; public var obst:MovieClip; } }//package BattleFieldArenav2_fla
Section 51
//Map1Mini_379 (BattleFieldArenav2_fla.Map1Mini_379) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Map1Mini_379 extends MovieClip { public var map1:MovieClip; public var obst:MovieClip; } }//package BattleFieldArenav2_fla
Section 52
//Map6Mini_385 (BattleFieldArenav2_fla.Map6Mini_385) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Map6Mini_385 extends MovieClip { public var map1:MovieClip; public var obst:MovieClip; } }//package BattleFieldArenav2_fla
Section 53
//Map7Mini_386 (BattleFieldArenav2_fla.Map7Mini_386) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Map7Mini_386 extends MovieClip { public var map1:MovieClip; public var obst:MovieClip; } }//package BattleFieldArenav2_fla
Section 54
//Map8Mini_387 (BattleFieldArenav2_fla.Map8Mini_387) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Map8Mini_387 extends MovieClip { public var map1:MovieClip; public var obst:MovieClip; } }//package BattleFieldArenav2_fla
Section 55
//Map9Mini_388 (BattleFieldArenav2_fla.Map9Mini_388) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Map9Mini_388 extends MovieClip { public var map1:MovieClip; public var obst:MovieClip; } }//package BattleFieldArenav2_fla
Section 56
//maparray_278 (BattleFieldArenav2_fla.maparray_278) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class maparray_278 extends MovieClip { public var par; public function maparray_278(){ addFrameScript(0, frame1, 51, frame52, 124, frame125, 225, frame226, 314, frame315, 316, frame317); } function frame317(){ stop(); par.nextFrame(); } function frame315(){ stop(); par.char.play(); } function frame226(){ stop(); par.char.play(); } function frame1(){ par = this.parent; } function frame125(){ stop(); par.char.play(); } function frame52(){ stop(); par.char.play(); } } }//package BattleFieldArenav2_fla
Section 57
//MedalAlert_365 (BattleFieldArenav2_fla.MedalAlert_365) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class MedalAlert_365 extends MovieClip { public function MedalAlert_365(){ addFrameScript(160, frame161); } function frame161(){ stop(); } } }//package BattleFieldArenav2_fla
Section 58
//MiniMap_378 (BattleFieldArenav2_fla.MiniMap_378) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniMap_378 extends MovieClip { public var terrain_bmpd2; public var terrain_bmp2; public var terrain_bmpd; public var inde:MovieClip; public var frame:MovieClip; public var map1:MovieClip; public var terrain_bmp; public var fog:MovieClip; public function MiniMap_378(){ addFrameScript(0, frame1); } public function updateFrame(_arg1:MovieClip):void{ frame.x = ((_arg1.x / 10) * -1); frame.y = ((_arg1.y / 10) * -1); } public function deleteAllGOld():void{ var _local1:Array; var _local2:*; var _local3:*; _local1 = new Array(); _local2 = 0; while (_local2 < this.numChildren) { _local3 = this.getChildAt(_local2); if ((_local3 is MiniE)){ _local1.push(_local3); }; _local2++; }; for (_local2 in _local1) { _local1[_local2].deleteTHIS(); }; } function frame1(){ addEventListener(MouseEvent.CLICK, tracee); } public function addMINI(_arg1:String, _arg2:MovieClip=null):void{ var _local3:*; var _local4:DisplayObject; var _local5:Number; switch (_arg1){ case "unit": _local3 = new MiniA(); break; case "build": _local3 = new MiniB(); break; case "enemy": _local3 = new MiniC(); break; case "buildE": _local3 = new MiniD(); break; case "gold": _local3 = new MiniE(); break; case "boss": _local3 = new MiniF(); break; }; _local3.Target = _arg2; _local4 = getChildByName("inde"); _local5 = getChildIndex(_local4); addChildAt(_local3, (_local5 + 1)); } public function addMINIG(_arg1:Number, _arg2:Number):void{ var _local3:*; var _local4:DisplayObject; var _local5:Number; var _local6:*; _local3 = new MiniGlow(); _local4 = getChildByName("inde"); _local5 = getChildIndex(_local4); _local3.x = (_arg1 / 10); _local3.y = (_arg2 / 10); addChildAt(_local3, (_local5 + 1)); _local6 = this.parent.parent; } public function tracee(_arg1:MouseEvent):void{ var _local2:*; _local2 = this.parent.parent; if (_local2.main.LEVEL != 0){ _local2.main.gotoXYMAP((mouseX - 32), (mouseY - 24)); }; } } }//package BattleFieldArenav2_fla
Section 59
//MiniMapbtn_376 (BattleFieldArenav2_fla.MiniMapbtn_376) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class MiniMapbtn_376 extends MovieClip { public function MiniMapbtn_376(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 60
//MoneyAlert_355 (BattleFieldArenav2_fla.MoneyAlert_355) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class MoneyAlert_355 extends MovieClip { public function MoneyAlert_355(){ addFrameScript(64, frame65); } function frame65(){ stop(); } } }//package BattleFieldArenav2_fla
Section 61
//moneypointbaselakon_40 (BattleFieldArenav2_fla.moneypointbaselakon_40) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class moneypointbaselakon_40 extends MovieClip { public var par; public function moneypointbaselakon_40(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 62
//moneypointbasemusuh_45 (BattleFieldArenav2_fla.moneypointbasemusuh_45) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class moneypointbasemusuh_45 extends MovieClip { public var par; public function moneypointbasemusuh_45(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); } } }//package BattleFieldArenav2_fla
Section 63
//MoveKursor_263 (BattleFieldArenav2_fla.MoveKursor_263) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class MoveKursor_263 extends MovieClip { public var pic:MovieClip; } }//package BattleFieldArenav2_fla
Section 64
//OpeningMovie_236 (BattleFieldArenav2_fla.OpeningMovie_236) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class OpeningMovie_236 extends MovieClip { public var par; public function OpeningMovie_236(){ addFrameScript(1681, frame1682); } function frame1682(){ stop(); par = this.parent; par.play(); } } }//package BattleFieldArenav2_fla
Section 65
//Panel_324 (BattleFieldArenav2_fla.Panel_324) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Panel_324 extends MovieClip { public var kanan:Cek4; public var kiri:Cek4; public var newtech:MovieClip; public var bawah:Cek4; public var mini:MovieClip; public var pop:TextField; public var funds:MovieClip; public var ket:MovieClip; public var minimaphide:MovieClip; public var btnmute:MovieClip; public var hpboss:MovieClip; public var beha:MovieClip; public var selectTEKS:TextField; public var par; public var upgradeBtn:MovieClip; public var helppic:String; public var Time:TextField; public var picselect:MovieClip; public var kananatas:Cek4; public var picbuild:MovieClip; public var siloo:MovieClip; public var kiriatas:Cek4; public var newmedal:MovieClip; public var kananbawah:Cek4; public var kiribawah:Cek4; public var duit:TextField; public var pic:MovieClip; public var btnplay:MovieClip; public var minihold:MovieClip; public var behatext:MovieClip; public var btnstruc:MovieClip; public var atas:Cek4; public var textStage:MovieClip; public var btnunit:MovieClip; public var textcancel:MovieClip; public var btnairunit:MovieClip; public function Panel_324(){ addFrameScript(0, frame1); } public function showKet(_arg1:Number):void{ ket.visible = true; ket.pic.gotoAndStop("empty"); ket.maxtext.visible = false; par.main.playSound("movebtn"); switch (_arg1){ case 1: ket.cost.text = par.main.costBarrack; ket.head.text = "Factory"; ket.ket.text = "You can build tank with this building (Key:2)"; ket.pic.gotoAndStop("barrack"); break; case 2: ket.cost.text = par.main.costMain; ket.head.text = "Base"; ket.ket.text = "Your main base (Key:1)"; ket.pic.gotoAndStop("main"); break; case 3: ket.cost.text = par.main.costStore; ket.head.text = "Silo"; ket.ket.text = "Increase population of unit (Key:5)"; if (par.main.PopulasiAtas == par.main.MAXPOPULASI){ ket.maxtext.visible = true; }; ket.pic.gotoAndStop("store"); break; case 4: ket.cost.text = par.main.costBarrackAir; ket.head.text = "Hangar"; ket.ket.text = "You can build plane with this building (Key:3)"; ket.pic.gotoAndStop("air"); break; case 5: ket.cost.text = par.main.costMiner; ket.head.text = "Miner"; ket.ket.text = "Only can build at gold mine. Produce gold (Key:4)"; ket.pic.gotoAndStop("miner"); break; case 6: ket.cost.text = par.main.costTower1; ket.head.text = "Missile"; ket.ket.text = "Low armor defense structure, medium range and firing (Key:6)"; ket.pic.gotoAndStop("tower1"); break; case 7: ket.cost.text = par.main.costTower2; ket.head.text = "Turret"; ket.ket.text = "Low armor defense structure, huge range but slow firing (Key:7)"; ket.pic.gotoAndStop("tower2"); break; case 8: ket.cost.text = par.main.costTower3; ket.head.text = "Rapid"; ket.ket.text = "Best armor defense structure, small range but rapid firing (Key:8)"; ket.pic.gotoAndStop("tower3"); break; case 9: ket.cost.text = par.main.costUnitLand1; ket.head.text = "Lightcross"; ket.ket.text = "Light armor tank (Key:1)"; ket.pic.gotoAndStop("tank1"); break; case 10: ket.cost.text = par.main.costUnitLand2; ket.head.text = "Starcross"; ket.ket.text = "Light armor tank utilized for its speed. only attack land units (Key:2)"; ket.pic.gotoAndStop("tank2"); break; case 11: ket.cost.text = par.main.costUnitLand3; ket.head.text = "Voidcross"; ket.ket.text = "Heavy damage tank, slow but had very huge range area (Key:3)"; ket.pic.gotoAndStop("tank3"); break; case 12: ket.cost.text = par.main.costUnitLand4; ket.head.text = "Heavycross"; ket.ket.text = "Well balanced tank, had good damage and strong armor (Key:4)"; ket.pic.gotoAndStop("tank4"); break; case 13: ket.cost.text = par.main.costUnitAir1; ket.head.text = "F-471"; ket.ket.text = "Light fighter fast movement and rapid firing ability (Key:1)"; ket.pic.gotoAndStop("plane1"); break; case 14: ket.cost.text = par.main.costUnitAir2; ket.head.text = "F-283"; ket.ket.text = "Heavy fighter slow heavy damage had building bombing ability (Key:2)"; ket.pic.gotoAndStop("plane2"); break; case 15: ket.cost.text = par.costhangerBuild; ket.head.text = "Hangar"; ket.ket.text = "Unlock Hangar.\nYou can build a Hangar"; ket.pic.gotoAndStop("air"); break; case 16: ket.cost.text = par.costair2Train; ket.head.text = "F-283"; ket.ket.text = "Unlock F-283.\nYou can build a F-283"; ket.pic.gotoAndStop("plane2"); break; case 17: ket.cost.text = par.costland2Train; ket.head.text = "Starcross"; ket.ket.text = "Unlock Starcross.\nYou can build a Starcross"; ket.pic.gotoAndStop("tank2"); break; case 18: ket.cost.text = par.costland3Train; ket.head.text = "Voidcross"; ket.ket.text = "Unlock Voidcross.\nYou can build a Voidcross"; ket.pic.gotoAndStop("tank3"); break; case 19: ket.cost.text = par.costland4Train; ket.head.text = "Heavycross"; ket.ket.text = "Unlock Heavycross.\nYou can build a Heavycross"; ket.pic.gotoAndStop("tank4"); break; case 20: ket.cost.text = par.costtower1Build; ket.head.text = "Missile"; ket.ket.text = "Unlock Missile.\nYou can build a Missile"; ket.pic.gotoAndStop("tower1"); break; case 21: ket.cost.text = par.costtower2Build; ket.head.text = "Turret"; ket.ket.text = "Unlock Turret.\nYou can build a Turret"; ket.pic.gotoAndStop("tower2"); break; case 22: ket.cost.text = par.costtower3Build; ket.head.text = "Rapid"; ket.ket.text = "Unlock Rapid.\nYou can build a Rapid"; ket.pic.gotoAndStop("tower3"); break; }; } function frame1(){ par = this.parent; ket.visible = false; behatext.visible = false; visible = false; } public function updatePanel():void{ btnairunit.unit2.visible = true; btnunit.unit2.visible = true; btnunit.unit3.visible = true; btnunit.unit4.visible = true; btnstruc.airbtn.visible = true; btnstruc.tower1.visible = true; btnstruc.tower2.visible = true; btnstruc.tower3.visible = true; upgradeBtn.unit2.visible = false; upgradeBtn.unit2a.visible = false; upgradeBtn.unit3.visible = false; upgradeBtn.unit4.visible = false; upgradeBtn.airbtn.visible = false; upgradeBtn.tower1.visible = false; upgradeBtn.tower2.visible = false; upgradeBtn.tower3.visible = false; upgradeBtn.lockunit2.visible = true; upgradeBtn.lockunit2a.visible = true; upgradeBtn.lockunit3.visible = true; upgradeBtn.lockunit4.visible = true; upgradeBtn.lockairbtn.visible = true; upgradeBtn.locktower1.visible = true; upgradeBtn.locktower2.visible = true; upgradeBtn.locktower3.visible = true; if (par.main.hangerBuild == false){ btnstruc.airbtn.visible = false; upgradeBtn.airbtn.visible = true; }; if (par.main.tower1Build == false){ btnstruc.tower1.visible = false; upgradeBtn.tower1.visible = true; }; if (par.main.tower2Build == false){ btnstruc.tower2.visible = false; upgradeBtn.tower2.visible = true; }; if (par.main.tower3Build == false){ btnstruc.tower3.visible = false; upgradeBtn.tower3.visible = true; }; if (par.main.land2Train == false){ btnunit.unit2.visible = false; upgradeBtn.unit2.visible = true; }; if (par.main.land3Train == false){ btnunit.unit3.visible = false; upgradeBtn.unit3.visible = true; }; if (par.main.land4Train == false){ btnunit.unit4.visible = false; upgradeBtn.unit4.visible = true; }; if (par.main.air2Train == false){ btnairunit.unit2.visible = false; upgradeBtn.unit2a.visible = true; }; if (par.FARSTAGE >= 3){ upgradeBtn.lockunit2.visible = false; }; if (par.FARSTAGE >= 4){ upgradeBtn.lockunit3.visible = false; }; if (par.FARSTAGE >= 5){ upgradeBtn.lockunit4.visible = false; }; if (par.FARSTAGE >= 5){ upgradeBtn.locktower1.visible = false; }; if (par.FARSTAGE >= 6){ upgradeBtn.lockairbtn.visible = false; }; if (par.FARSTAGE >= 7){ upgradeBtn.lockunit2a.visible = false; }; if (par.FARSTAGE >= 7){ upgradeBtn.locktower2.visible = false; }; if (par.FARSTAGE >= 8){ upgradeBtn.locktower3.visible = false; }; } public function hideBeha():void{ behatext.visible = false; } public function showBeha():void{ behatext.visible = true; par.main.playSound("movebtn"); } public function hideKet():void{ ket.visible = false; } } }//package BattleFieldArenav2_fla
Section 66
//PanelKet_252 (BattleFieldArenav2_fla.PanelKet_252) package BattleFieldArenav2_fla { import flash.display.*; import flash.text.*; public dynamic class PanelKet_252 extends MovieClip { public var score:TextField; public var tax:TextField; } }//package BattleFieldArenav2_fla
Section 67
//PanelKetNEW_361 (BattleFieldArenav2_fla.PanelKetNEW_361) package BattleFieldArenav2_fla { import flash.display.*; import flash.text.*; public dynamic class PanelKetNEW_361 extends MovieClip { public var ket:TextField; public var pic:MovieClip; public var maxtext:TextField; public var cost:TextField; public var head:TextField; } }//package BattleFieldArenav2_fla
Section 68
//Pausegame_407 (BattleFieldArenav2_fla.Pausegame_407) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Pausegame_407 extends MovieClip { public var menupause:MovieClip; public var par; public function Pausegame_407(){ addFrameScript(0, frame1); } public function showmenu():void{ visible = true; cekQual(); hideyesno(); menupause.ql.addEventListener(MouseEvent.CLICK, klikqual); menupause.qm.addEventListener(MouseEvent.CLICK, klikqual); menupause.qh.addEventListener(MouseEvent.CLICK, klikqual); addEventListener(MouseEvent.MOUSE_MOVE, thisMouseMove); menupause.slidemusic.SET(par.soundBGM); menupause.slidesfx.SET(par.soundSFX); par.decSound(); } public function showyesno():void{ menupause.yes.visible = true; menupause.no.visible = true; } public function klikqual(_arg1:MouseEvent):void{ var _local2:*; _local2 = _arg1.currentTarget.name; if (_local2.substr(1) == "l"){ stage.quality = "LOW"; }; if (_local2.substr(1) == "m"){ stage.quality = "MEDIUM"; }; if (_local2.substr(1) == "h"){ stage.quality = "HIGH"; }; cekQual(); } public function thisMouseMove(_arg1:MouseEvent):void{ var _local2:SoundTransform; if (menupause.slidemusic.STAT == true){ par.soundBGM = (menupause.slidemusic.bar.x / 100); if (par.muteBGM == false){ _local2 = new SoundTransform((par.soundBGM * 0.7)); par.soundChannelMain.soundTransform = _local2; }; }; if (menupause.slidesfx.STAT == true){ par.soundSFX = (menupause.slidesfx.bar.x / 100); }; } public function cekQual():void{ menupause.ql.gotoAndStop(1); menupause.qm.gotoAndStop(1); menupause.qh.gotoAndStop(1); if (stage.quality == "LOW"){ menupause.ql.gotoAndStop(2); }; if (stage.quality == "MEDIUM"){ menupause.qm.gotoAndStop(2); }; if (stage.quality == "HIGH"){ menupause.qh.gotoAndStop(2); }; } public function hidee(_arg1:MouseEvent):void{ hideyesno(); } function frame1(){ stop(); par = this.parent; hideyesno(); menupause.btm.addEventListener(MouseEvent.CLICK, hidew); menupause.no.addEventListener(MouseEvent.CLICK, hidee); visible = false; } public function hidew(_arg1:MouseEvent):void{ showyesno(); } public function hidemenu():void{ visible = false; menupause.ql.removeEventListener(MouseEvent.CLICK, klikqual); menupause.qm.removeEventListener(MouseEvent.CLICK, klikqual); menupause.qh.removeEventListener(MouseEvent.CLICK, klikqual); removeEventListener(MouseEvent.MOUSE_MOVE, thisMouseMove); menupause.slidemusic.RESET(); menupause.slidesfx.RESET(); par.incSound(); } public function hideyesno():void{ menupause.yes.visible = false; menupause.no.visible = false; } } }//package BattleFieldArenav2_fla
Section 69
//PauseGame_408 (BattleFieldArenav2_fla.PauseGame_408) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class PauseGame_408 extends MovieClip { public var qh:MovieClip; public var slidemusic:MovieClip; public var qm:MovieClip; public var ql:MovieClip; public var slidesfx:MovieClip; public var rsm:SimpleButton; public var btm:SimpleButton; public var no:SimpleButton; public var yes:SimpleButton; } }//package BattleFieldArenav2_fla
Section 70
//pelurubigbossmusuh_135 (BattleFieldArenav2_fla.pelurubigbossmusuh_135) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class pelurubigbossmusuh_135 extends MovieClip { public function pelurubigbossmusuh_135(){ addFrameScript(7, frame8); } function frame8(){ stop(); } } }//package BattleFieldArenav2_fla
Section 71
//PicBuilding_328 (BattleFieldArenav2_fla.PicBuilding_328) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class PicBuilding_328 extends MovieClip { public var health:MovieClip; public function PicBuilding_328(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 72
//PicKet_362 (BattleFieldArenav2_fla.PicKet_362) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class PicKet_362 extends MovieClip { public function PicKet_362(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 73
//PicSelected_326 (BattleFieldArenav2_fla.PicSelected_326) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class PicSelected_326 extends MovieClip { public var train1:MovieClip; public var train3:MovieClip; public var train4:MovieClip; public var train5:MovieClip; public var train6:MovieClip; public var train8:MovieClip; public var train2:MovieClip; public var train7:MovieClip; public var train9:MovieClip; public var train10:MovieClip; public var trainUnit:Array; public function PicSelected_326(){ addFrameScript(0, frame1); } function frame1(){ trainUnit = new Array(); trainUnit.push(train1); trainUnit.push(train2); trainUnit.push(train3); trainUnit.push(train4); trainUnit.push(train5); trainUnit.push(train6); trainUnit.push(train7); trainUnit.push(train8); trainUnit.push(train9); trainUnit.push(train10); } } }//package BattleFieldArenav2_fla
Section 74
//PicUnitAll_331 (BattleFieldArenav2_fla.PicUnitAll_331) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class PicUnitAll_331 extends MovieClip { public var progres:MovieClip; public var train:MovieClip; public var train1:MovieClip; public var train3:MovieClip; public var train4:MovieClip; public var train5:MovieClip; public var train2:MovieClip; public var trainUnit:Array; public function PicUnitAll_331(){ addFrameScript(0, frame1); } function frame1(){ trainUnit = new Array(); trainUnit.push(train1); trainUnit.push(train2); trainUnit.push(train3); trainUnit.push(train4); trainUnit.push(train5); } } }//package BattleFieldArenav2_fla
Section 75
//plustopopolation_51 (BattleFieldArenav2_fla.plustopopolation_51) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class plustopopolation_51 extends MovieClip { public var par; public function plustopopolation_51(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.addPop(); } } }//package BattleFieldArenav2_fla
Section 76
//plustopopulationlakon_48 (BattleFieldArenav2_fla.plustopopulationlakon_48) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class plustopopulationlakon_48 extends MovieClip { public var par; public function plustopopulationlakon_48(){ addFrameScript(99, frame100); } function frame100(){ stop(); par = this.parent; par.nextFrame(); par.addPop(); par.parent.playSound("redeb"); } } }//package BattleFieldArenav2_fla
Section 77
//PopulasiAlert_352 (BattleFieldArenav2_fla.PopulasiAlert_352) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class PopulasiAlert_352 extends MovieClip { public function PopulasiAlert_352(){ addFrameScript(64, frame65); } function frame65(){ stop(); } } }//package BattleFieldArenav2_fla
Section 78
//Result_309 (BattleFieldArenav2_fla.Result_309) package BattleFieldArenav2_fla { import flash.display.*; import flash.text.*; public dynamic class Result_309 extends MovieClip { public var ebd:TextField; public var tp:TextField; public var goe:TextField; public var uc:TextField; public var ud:TextField; public var medaltext:MovieClip; public var eud:TextField; } }//package BattleFieldArenav2_fla
Section 79
//Slider_410 (BattleFieldArenav2_fla.Slider_410) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; public dynamic class Slider_410 extends MovieClip { public var bar:MovieClip; public var STAT:Boolean; public function Slider_410(){ addFrameScript(0, frame1); } public function statUp(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_UP, statUp); bar.stopDrag(); STAT = false; } public function statDown(_arg1:MouseEvent):void{ bar.startDrag(false, new Rectangle(0, 0, 100, 0)); stage.addEventListener(MouseEvent.MOUSE_UP, statUp); STAT = true; } public function RESET():void{ bar.removeEventListener(MouseEvent.MOUSE_DOWN, statDown); } function frame1(){ } public function SET(_arg1:Number):void{ bar.x = (_arg1 * 100); bar.addEventListener(MouseEvent.MOUSE_DOWN, statDown); } } }//package BattleFieldArenav2_fla
Section 80
//SoundPreloader_203 (BattleFieldArenav2_fla.SoundPreloader_203) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class SoundPreloader_203 extends MovieClip { public function SoundPreloader_203(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 81
//splasha_209 (BattleFieldArenav2_fla.splasha_209) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class splasha_209 extends MovieClip { public var par; public function splasha_209(){ addFrameScript(0, frame1, 96, frame97); } function frame97(){ stop(); par = this.parent; par.gotoAndStop("menu"); } function frame1(){ addEventListener(MouseEvent.CLICK, clickMore); } public function clickMore(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.smallfarmstudio.com"); navigateToURL(_local2, "_blank"); } } }//package BattleFieldArenav2_fla
Section 82
//teksboard_296 (BattleFieldArenav2_fla.teksboard_296) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class teksboard_296 extends MovieClip { public function teksboard_296(){ addFrameScript(14, frame15); } function frame15(){ stop(); } } }//package BattleFieldArenav2_fla
Section 83
//Test_363 (BattleFieldArenav2_fla.Test_363) package BattleFieldArenav2_fla { import flash.display.*; import flash.text.*; public dynamic class Test_363 extends MovieClip { public var beha:TextField; } }//package BattleFieldArenav2_fla
Section 84
//Test2_266 (BattleFieldArenav2_fla.Test2_266) package BattleFieldArenav2_fla { import flash.display.*; import flash.text.*; public dynamic class Test2_266 extends MovieClip { public var sub:TextField; public var teks:TextField; } }//package BattleFieldArenav2_fla
Section 85
//Test3_364 (BattleFieldArenav2_fla.Test3_364) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Test3_364 extends MovieClip { public function Test3_364(){ addFrameScript(132, frame133); } function frame133(){ stop(); } } }//package BattleFieldArenav2_fla
Section 86
//TextStage_390 (BattleFieldArenav2_fla.TextStage_390) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class TextStage_390 extends MovieClip { public function TextStage_390(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 87
//Tirai_267 (BattleFieldArenav2_fla.Tirai_267) package BattleFieldArenav2_fla { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Tirai_267 extends MovieClip { public var par; public var whereTo:String; public function Tirai_267(){ addFrameScript(0, frame1, 24, frame25); } function frame1(){ stop(); } function frame25(){ par = this.parent; par.deLastClean(whereTo); } } }//package BattleFieldArenav2_fla
Section 88
//TutorNEW_402 (BattleFieldArenav2_fla.TutorNEW_402) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class TutorNEW_402 extends MovieClip { public function TutorNEW_402(){ addFrameScript(0, frame1, 3, frame4); } function frame1(){ stop(); } function frame4(){ stop(); } } }//package BattleFieldArenav2_fla
Section 89
//Tween3_168 (BattleFieldArenav2_fla.Tween3_168) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Tween3_168 extends MovieClip { public function Tween3_168(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package BattleFieldArenav2_fla
Section 90
//UpgradeMain_350 (BattleFieldArenav2_fla.UpgradeMain_350) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class UpgradeMain_350 extends MovieClip { public var lockunit2:MovieClip; public var lockunit3:MovieClip; public var unit2a:SimpleButton; public var unit2:SimpleButton; public var unit4:SimpleButton; public var locktower1:MovieClip; public var locktower3:MovieClip; public var unit3:SimpleButton; public var locktower2:MovieClip; public var tower1:SimpleButton; public var tower2:SimpleButton; public var tower3:SimpleButton; public var lockairbtn:MovieClip; public var airbtn:SimpleButton; public var lockunit2a:MovieClip; public var lockunit4:MovieClip; } }//package BattleFieldArenav2_fla
Section 91
//Warn_222 (BattleFieldArenav2_fla.Warn_222) package BattleFieldArenav2_fla { import flash.display.*; public dynamic class Warn_222 extends MovieClip { public var no:SimpleButton; public var yes:SimpleButton; } }//package BattleFieldArenav2_fla
Section 92
//Air1 (Air1) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Air1 extends MovieClip { const MAXHP:Number = 100; const RELOADTIME:Number = 24; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 4 var health:Number;// = 100 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 var BOMB:Boolean;// = false public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var yhelp:Number; var range:Number;// = 70 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 10 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Air1():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 4; arahX = 0; arahY = 0; range = 70; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 10; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; BOMB = false; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ if (currentLabel != "idle"){ gotoAndStop("idle"); }; counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if (currentLabel != "move"){ gotoAndStop("move"); }; if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; par.showThisMapC(x, y); }; if ((((okX == true)) && ((okY == true)))){ calcMove(); par.showThisMap(x, y); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > range){ State = "idle"; }; }; _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru1(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun1", this); gotoAndPlay("fire"); }; }; }; } } }//package
Section 93
//Air2 (Air2) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Air2 extends MovieClip { const MAXHP:Number = 200; const RELOADTIME:Number = 80; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 2 var health:Number;// = 200 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 var BOMB:Boolean;// = false public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var yhelp:Number; var range:Number;// = 100 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 35 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Air2():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 2; arahX = 0; arahY = 0; range = 100; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 35; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; BOMB = false; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ if (currentLabel != "idle"){ gotoAndStop("idle"); }; counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; BOMB = false; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; BOMB = true; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; BOMB = false; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; BOMB = true; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; BOMB = false; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; BOMB = true; }; }; }; }; if (State == "move"){ if (currentLabel != "move"){ gotoAndStop("move"); }; if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; par.showThisMapC(x, y); }; if ((((okX == true)) && ((okY == true)))){ calcMove(); par.showThisMap(x, y); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > range){ State = "idle"; }; }; _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; if (BOMB){ _local13 = new Peluru9(x, y, TargetFire.x, TargetFire.y, TargetFire, (damage * 2)); } else { _local13 = new Peluru7(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); }; par.addChild(_local13); par.playSound("gun6", this); gotoAndPlay("fire"); }; }; }; } } }//package
Section 94
//Air3 (Air3) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Air3 extends MovieClip { const MAXHP:Number = 200; const RELOADTIME:Number = 80; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 2 var health:Number;// = 200 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 var BOMB:Boolean;// = false public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var yhelp:Number; var range:Number;// = 100 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 35 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Air3():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 2; arahX = 0; arahY = 0; range = 100; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 35; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; BOMB = false; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ if (currentLabel != "idle"){ gotoAndStop("idle"); }; counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; BOMB = false; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; BOMB = true; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; BOMB = false; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; BOMB = true; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; BOMB = false; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; BOMB = true; }; }; }; }; if (State == "move"){ if (currentLabel != "move"){ gotoAndStop("move"); }; if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; }; if ((((okX == true)) && ((okY == true)))){ calcMove(); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > range){ State = "idle"; }; }; _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; if (BOMB){ _local13 = new Peluru10(x, y, TargetFire.x, TargetFire.y, TargetFire, (damage * 2)); } else { _local13 = new Peluru8(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); }; par.playSound("gun6", this); par.addChild(_local13); gotoAndPlay("fire"); }; }; }; } } }//package
Section 95
//Air4 (Air4) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Air4 extends MovieClip { const MAXHP:Number = 100; const RELOADTIME:Number = 24; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 4 var health:Number;// = 100 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var yhelp:Number; var range:Number;// = 50 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 10 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Air4():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 4; arahX = 0; arahY = 0; range = 50; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 10; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ if (currentLabel != "idle"){ gotoAndStop("idle"); }; counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if (currentLabel != "move"){ gotoAndStop("move"); }; if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; }; if ((((okX == true)) && ((okY == true)))){ calcMove(); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > range){ State = "idle"; }; }; _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru2(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun1", this); gotoAndPlay("fire"); }; }; }; } } }//package
Section 96
//Barrack (Barrack) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Barrack extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 public var rallyX:Number;// = 0 public var antrianUnit:Array; public var rallyY:Number;// = 0 var MAXHP:Number;// = 2500 var maxBuildTime;// = 100 var buildTime;// = 100 var timeUnit3:Number;// = 220 var timeUnit4:Number;// = 180 var health:Number; var timeUnit2:Number;// = 150 public var theTank:Number;// = 0 public var pic:MovieClip; var timeUnit1:Number;// = 110 var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function Barrack():void{ isDead = false; buildTime = 100; theTank = 0; maxBuildTime = 100; timeUnit1 = 110; timeUnit2 = 150; timeUnit3 = 220; timeUnit4 = 180; antrianUnit = new Array(); MAXHP = 2500; health = MAXHP; rallyX = 0; rallyY = 0; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); } public function trainWhat(_arg1:Number):void{ if (currentFrame != 1){ if (antrianUnit.length < 5){ antrianUnit.push(_arg1); }; }; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function isBusy():Number{ if (theTank == 0){ return (0); }; return (antrianUnit.length); } public function Build(_arg1:Array=null):void{ var _local2:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ if (theTank != 0){ if (buildTime > 0){ buildTime--; } else { buildTime = 100; par.allyTank(theTank, this); theTank = 0; }; } else { if (antrianUnit.length > 0){ if (par.canbuythisUnit(antrianUnit[0])){ _local2 = antrianUnit.splice(0, 1); theTank = _local2[0]; switch (theTank){ case 1: buildTime = timeUnit1; break; case 2: buildTime = timeUnit2; break; case 3: buildTime = timeUnit3; break; case 4: buildTime = timeUnit4; break; }; }; }; }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } public function untrainWhat(_arg1:Number):void{ if (currentFrame != 1){ antrianUnit.splice(_arg1, 1); }; } public function getProgres():Number{ var _local1:*; var _local2:*; switch (theTank){ case 1: _local1 = timeUnit1; break; case 2: _local1 = timeUnit2; break; case 3: _local1 = timeUnit3; break; case 4: _local1 = timeUnit4; break; }; _local2 = (100 - Math.round(((buildTime / _local1) * 100))); if (_local2 == 0){ return (1); }; return (_local2); } } }//package
Section 97
//BarrackAir (BarrackAir) package { import flash.events.*; import flash.display.*; import flash.media.*; public class BarrackAir extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 public var rallyX:Number;// = 0 public var antrianUnit:Array; public var rallyY:Number;// = 0 var MAXHP:Number;// = 2500 var maxBuildTime;// = 100 public var buildTime;// = 100 public var thePlane:Number;// = 0 var timeUnit2:Number;// = 150 public var pic:MovieClip; var health:Number; var timeUnit1:Number;// = 200 var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function BarrackAir():void{ isDead = false; buildTime = 100; thePlane = 0; maxBuildTime = 100; timeUnit1 = 200; timeUnit2 = 150; antrianUnit = new Array(); MAXHP = 2500; health = MAXHP; rallyX = 0; rallyY = 0; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1, 1, frame2, 2, frame3); } public function trainWhat(_arg1:Number):void{ if (currentFrame != 1){ if (antrianUnit.length < 5){ antrianUnit.push(_arg1); }; }; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function isBusy():Number{ if (thePlane == 0){ return (0); }; return (antrianUnit.length); } public function Build(_arg1:Array=null):void{ var _local2:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ if (thePlane != 0){ if (buildTime > 0){ buildTime--; } else { if (buildTime == 0){ if (currentFrame != 3){ gotoAndStop(3); }; }; if (buildTime < 0){ buildTime = 100; gotoAndStop(2); par.allyAir(thePlane, this); thePlane = 0; }; }; } else { if (antrianUnit.length > 0){ if (par.canbuythisUnit((antrianUnit[0] + 4))){ _local2 = antrianUnit.splice(0, 1); thePlane = _local2[0]; switch (thePlane){ case 1: buildTime = timeUnit1; break; case 2: buildTime = timeUnit2; break; }; }; }; }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame3(){ stop(); pic.animasi.gotoAndStop(thePlane); } function frame1(){ stop(); } function frame2(){ } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } public function untrainWhat(_arg1:Number):void{ if (currentFrame != 1){ antrianUnit.splice(_arg1, 1); }; } public function getProgres():Number{ var _local1:*; var _local2:*; switch (thePlane){ case 1: _local1 = timeUnit1; break; case 2: _local1 = timeUnit2; break; }; _local2 = (100 - Math.round(((buildTime / _local1) * 100))); if (_local2 == 0){ return (1); }; return (_local2); } } }//package
Section 98
//BarrackAirEnemy (BarrackAirEnemy) package { import flash.events.*; import flash.display.*; import flash.media.*; public class BarrackAirEnemy extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 public var rallyX:Number;// = 0 var antrianUnit:Array; public var rallyY:Number;// = 0 var MAXHP:Number;// = 2500 var maxBuildTime;// = 100 public var buildTime;// = 100 var thePlane:Number;// = 0 var timeUnit2:Number;// = 150 public var pic:MovieClip; var health:Number; var timeUnit1:Number;// = 200 var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function BarrackAirEnemy():void{ isDead = false; buildTime = 100; thePlane = 0; maxBuildTime = 100; timeUnit1 = 200; timeUnit2 = 150; antrianUnit = new Array(); MAXHP = 2500; health = MAXHP; rallyX = 0; rallyY = 0; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1, 1, frame2, 2, frame3); } public function trainWhat(_arg1:Number):void{ if (currentFrame != 1){ if (antrianUnit.length < 5){ antrianUnit.push(_arg1); }; }; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function isBusy():Number{ if (thePlane == 0){ return (0); }; return (antrianUnit.length); } public function Build(_arg1:Array=null):void{ var _local2:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ if (thePlane != 0){ if (buildTime > 0){ buildTime--; } else { if (buildTime == 0){ if (currentFrame != 3){ gotoAndStop(3); }; }; if (buildTime < 0){ buildTime = 100; gotoAndStop(2); par.enemyAir(thePlane, this); thePlane = 0; }; }; } else { if (antrianUnit.length > 0){ if (par.canbuythisEnemy(antrianUnit[0])){ _local2 = antrianUnit.splice(0, 1); thePlane = _local2[0]; switch (thePlane){ case 1: buildTime = timeUnit1; break; case 2: buildTime = timeUnit2; break; }; }; }; }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame3(){ stop(); } function frame1(){ stop(); } function frame2(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 99
//BarrackEnemy (BarrackEnemy) package { import flash.events.*; import flash.display.*; import flash.media.*; public class BarrackEnemy extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 public var rallyX:Number;// = 0 var antrianUnit:Array; public var rallyY:Number;// = 0 var MAXHP:Number;// = 2500 var maxBuildTime;// = 100 var buildTime;// = 100 var timeUnit3:Number;// = 220 var timeUnit4:Number;// = 180 var health:Number; var timeUnit2:Number;// = 150 var theTank:Number;// = 0 public var pic:MovieClip; var timeUnit1:Number;// = 110 var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function BarrackEnemy():void{ isDead = false; buildTime = 100; theTank = 0; maxBuildTime = 100; timeUnit1 = 110; timeUnit2 = 150; timeUnit3 = 220; timeUnit4 = 180; antrianUnit = new Array(); MAXHP = 2500; health = MAXHP; rallyX = 0; rallyY = 0; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); } public function trainWhat(_arg1:Number):void{ if (currentFrame != 1){ if (antrianUnit.length < 5){ antrianUnit.push(_arg1); }; }; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function isBusy():Number{ if (theTank == 0){ return (0); }; return (antrianUnit.length); } public function Build(_arg1:Array=null):void{ var _local2:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ if (theTank != 0){ if (buildTime > 0){ buildTime--; } else { buildTime = 100; par.enemyTank(theTank, this); theTank = 0; }; } else { if (antrianUnit.length > 0){ if (par.canbuythisEnemy(antrianUnit[0])){ _local2 = antrianUnit.splice(0, 1); theTank = _local2[0]; switch (theTank){ case 1: buildTime = timeUnit1; break; case 2: buildTime = timeUnit2; break; case 3: buildTime = timeUnit3; break; case 4: buildTime = timeUnit4; break; }; }; }; }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 100
//Beep (Beep) package { import flash.media.*; public dynamic class Beep extends Sound { } }//package
Section 101
//Blost (Blost) package { import flash.media.*; public dynamic class Blost extends Sound { } }//package
Section 102
//Blow1 (Blow1) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Blow1 extends MovieClip { public var par; public function Blow1(){ addFrameScript(14, frame15); } function frame15(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 103
//Blow2 (Blow2) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Blow2 extends MovieClip { public var par; public function Blow2(){ addFrameScript(20, frame21); } function frame21(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 104
//BlowBuild1 (BlowBuild1) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class BlowBuild1 extends MovieClip { public var char:MovieClip; public var par; public function BlowBuild1(){ addFrameScript(18, frame19); } function frame19(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 105
//BlowEfek (BlowEfek) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class BlowEfek extends MovieClip { public var timing:Number; public var par; public function BlowEfek(){ addFrameScript(0, frame1); } public function loopmin(_arg1:Event):void{ if (par.pauseGame == false){ if (timing > 0){ timing--; } else { alpha = (alpha - 0.05); }; if (alpha <= 0){ removeEventListener(Event.ENTER_FRAME, loopmin); par.removeChild(this); }; }; } function frame1(){ par = this.parent; timing = 72; addEventListener(Event.ENTER_FRAME, loopmin); } } }//package
Section 106
//BlowEfek2 (BlowEfek2) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class BlowEfek2 extends MovieClip { public var timing:Number; public var par; public function BlowEfek2(){ addFrameScript(0, frame1); } public function loopmin(_arg1:Event):void{ if (par.pauseGame == false){ if (timing > 0){ timing--; } else { alpha = (alpha - 0.05); }; if (alpha <= 0){ removeEventListener(Event.ENTER_FRAME, loopmin); par.removeChild(this); }; }; } function frame1(){ par = this.parent; timing = 72; addEventListener(Event.ENTER_FRAME, loopmin); } } }//package
Section 107
//Boss (Boss) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Boss extends MovieClip { const MAXHP:Number = 30000; const RELOADTIME:Number = 10; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 public var hpbar:MovieClip; var timeBig:Number;// = 0 var MAXdrainTime:Number;// = 1440 var MAXdrainSound:Number;// = 120 var range:Number;// = 175 var speed:Number;// = 0.5 var needHelp:Boolean;// = false public var health:Number;// = 30000 public var State:String;// = "idle" var damage:Number;// = 200 public var TargetFire;// = null public var pic:MovieClip; var par; var timeSplash:Number;// = 240 public var TargetGold; public var isDead:Boolean;// = false var bigHit:Number;// = 3 var drainSound:Number; var drainTime:Number;// = 0 public function Boss():void{ State = "idle"; isDead = false; speed = 0.5; range = 175; TargetFire = null; reloadTime = 0; health = MAXHP; damage = 200; hpshow = 0; timeSplash = 240; timeBig = 0; bigHit = 3; drainTime = 0; MAXdrainTime = (24 * 60); needHelp = false; MAXdrainSound = (24 * 5); drainSound = MAXdrainSound; super(); addFrameScript(0, frame1); } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function okayHelp():void{ } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function frame1(){ stop(); } function attackSplash():void{ var _local1:Number; var _local2:Number; var _local3:*; var _local4:*; var _local5:Number; _local1 = 0; _local2 = (360 / 12); _local3 = 0; while (_local3 < 12) { _local4 = new PeluruBigSplash(x, y, _local1, damage); _local5 = par.getChildIndex(this); par.addChildAt(_local4, (_local5 + 1)); _local1 = (_local1 + _local2); _local3++; }; if (currentLabel != "drain"){ pic.pic.play(); }; par.playSound("bossshot", this); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; }; } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:*; var _local15:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; }; if (timeSplash > 0){ timeSplash--; if (timeSplash == 96){ par.playSound("sirene", this); }; } else { timeSplash = 240; attackSplash(); }; if (State != "drain"){ if (currentLabel != "idle"){ gotoAndStop("idle"); }; if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ if (timeBig > 0){ timeBig--; } else { if (bigHit > 0){ if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; bigHit--; _local8 = new PeluruBig(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); _local9 = par.getChildIndex(this); par.addChildAt(_local8, (_local9 + 1)); par.playSound("bossshot2", this); if (currentLabel != "drain"){ pic.pic.play(); }; }; } else { timeBig = 480; bigHit = 3; }; }; }; if (TargetGold != null){ _local10 = (TargetGold.x - x); _local11 = (TargetGold.y - y); _local12 = Math.atan2(_local11, _local10); _local13 = ((_local12 * 180) / Math.PI); _local14 = (Math.cos(((_local13 * Math.PI) / 180)) * speed); _local15 = (Math.sin(((_local13 * Math.PI) / 180)) * speed); x = (x + _local14); y = (y + _local15); if ((((((((TargetGold.x > (x - 5))) && ((TargetGold.x < (x + 5))))) && ((TargetGold.y > (y - 5))))) && ((TargetGold.y < (y + 5))))){ State = "drain"; }; } else { TargetGold = par.newGoldDigger(); par.playSound("bossmove", this); }; } else { if (currentLabel != "drain"){ gotoAndStop("drain"); drainSound = MAXdrainSound; }; drainTime++; if (drainTime >= MAXdrainTime){ par.goldDigger(TargetGold); TargetGold = par.newGoldDigger(); par.playSound("bossmove", this); drainTime = 0; State = "idle"; } else { if (drainSound >= MAXdrainSound){ par.playSound("bossdrain", this); drainSound = 0; } else { drainSound++; }; }; }; }; } } }//package
Section 108
//BossBattle (BossBattle) package { import flash.media.*; public dynamic class BossBattle extends Sound { } }//package
Section 109
//BossMove (BossMove) package { import flash.media.*; public dynamic class BossMove extends Sound { } }//package
Section 110
//BossShot (BossShot) package { import flash.media.*; public dynamic class BossShot extends Sound { } }//package
Section 111
//BossShot2 (BossShot2) package { import flash.media.*; public dynamic class BossShot2 extends Sound { } }//package
Section 112
//Brede (Brede) package { import flash.media.*; public dynamic class Brede extends Sound { } }//package
Section 113
//Bsilo (Bsilo) package { import flash.media.*; public dynamic class Bsilo extends Sound { } }//package
Section 114
//Bsilo2 (Bsilo2) package { import flash.media.*; public dynamic class Bsilo2 extends Sound { } }//package
Section 115
//Cek2 (Cek2) package { import flash.display.*; public dynamic class Cek2 extends MovieClip { } }//package
Section 116
//Cek4 (Cek4) package { import flash.display.*; public dynamic class Cek4 extends MovieClip { } }//package
Section 117
//Danger (Danger) package { import flash.media.*; public dynamic class Danger extends Sound { } }//package
Section 118
//Drain (Drain) package { import flash.media.*; public dynamic class Drain extends Sound { } }//package
Section 119
//ED (ED) package { import flash.media.*; public dynamic class ED extends Sound { } }//package
Section 120
//Explo1 (Explo1) package { import flash.media.*; public dynamic class Explo1 extends Sound { } }//package
Section 121
//Explo2 (Explo2) package { import flash.media.*; public dynamic class Explo2 extends Sound { } }//package
Section 122
//ExploBig (ExploBig) package { import flash.media.*; public dynamic class ExploBig extends Sound { } }//package
Section 123
//ExploBig1 (ExploBig1) package { import flash.media.*; public dynamic class ExploBig1 extends Sound { } }//package
Section 124
//ExploBig2 (ExploBig2) package { import flash.media.*; public dynamic class ExploBig2 extends Sound { } }//package
Section 125
//ExploBig3 (ExploBig3) package { import flash.media.*; public dynamic class ExploBig3 extends Sound { } }//package
Section 126
//ExploBig4 (ExploBig4) package { import flash.media.*; public dynamic class ExploBig4 extends Sound { } }//package
Section 127
//Fog2 (Fog2) package { import flash.display.*; public dynamic class Fog2 extends MovieClip { } }//package
Section 128
//FogAll (FogAll) package { import flash.display.*; public dynamic class FogAll extends MovieClip { } }//package
Section 129
//FogC (FogC) package { import flash.display.*; public dynamic class FogC extends MovieClip { } }//package
Section 130
//Gold (Gold) package { import flash.display.*; public dynamic class Gold extends MovieClip { public var theHost; public function Gold(){ addFrameScript(0, frame1); } function frame1(){ } } }//package
Section 131
//Goldless (Goldless) package { import flash.media.*; public dynamic class Goldless extends Sound { } }//package
Section 132
//Gun1 (Gun1) package { import flash.media.*; public dynamic class Gun1 extends Sound { } }//package
Section 133
//Gun2 (Gun2) package { import flash.media.*; public dynamic class Gun2 extends Sound { } }//package
Section 134
//Gun3 (Gun3) package { import flash.media.*; public dynamic class Gun3 extends Sound { } }//package
Section 135
//Gun4 (Gun4) package { import flash.media.*; public dynamic class Gun4 extends Sound { } }//package
Section 136
//Gun5 (Gun5) package { import flash.media.*; public dynamic class Gun5 extends Sound { } }//package
Section 137
//Gun6 (Gun6) package { import flash.media.*; public dynamic class Gun6 extends Sound { } }//package
Section 138
//Hit (Hit) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Hit extends MovieClip { public var par; public function Hit(){ addFrameScript(5, frame6); } function frame6(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 139
//HpBar (HpBar) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class HpBar extends MovieClip { public var hp:MovieClip; public var par; public var Target; public function HpBar(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ if (Target.health > 0){ if (Target.hpshow > 0){ x = Target.x; y = Target.y; hp.visible = true; hp.gotoAndStop(Target.hpRatio()); } else { hp.visible = false; }; } else { removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); }; }; } } }//package
Section 140
//HpBarE (HpBarE) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class HpBarE extends MovieClip { public var hp:MovieClip; public var par; public var Target; public function HpBarE(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ if (Target.health > 0){ if (Target.hpshow > 0){ x = Target.x; y = Target.y; hp.visible = true; hp.gotoAndStop(Target.hpRatio()); } else { hp.visible = false; }; } else { removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); }; }; } } }//package
Section 141
//Huge1 (Huge1) package { import flash.display.*; public dynamic class Huge1 extends MovieClip { } }//package
Section 142
//Huge10 (Huge10) package { import flash.display.*; public dynamic class Huge10 extends MovieClip { } }//package
Section 143
//Huge11 (Huge11) package { import flash.display.*; public dynamic class Huge11 extends MovieClip { } }//package
Section 144
//Huge12 (Huge12) package { import flash.display.*; public dynamic class Huge12 extends MovieClip { } }//package
Section 145
//Huge13 (Huge13) package { import flash.display.*; public dynamic class Huge13 extends MovieClip { } }//package
Section 146
//Huge14 (Huge14) package { import flash.display.*; public dynamic class Huge14 extends MovieClip { } }//package
Section 147
//Huge15 (Huge15) package { import flash.display.*; public dynamic class Huge15 extends MovieClip { } }//package
Section 148
//Huge16 (Huge16) package { import flash.display.*; public dynamic class Huge16 extends MovieClip { } }//package
Section 149
//Huge2 (Huge2) package { import flash.display.*; public dynamic class Huge2 extends MovieClip { } }//package
Section 150
//Huge3 (Huge3) package { import flash.display.*; public dynamic class Huge3 extends MovieClip { } }//package
Section 151
//Huge4 (Huge4) package { import flash.display.*; public dynamic class Huge4 extends MovieClip { } }//package
Section 152
//Huge5 (Huge5) package { import flash.display.*; public dynamic class Huge5 extends MovieClip { } }//package
Section 153
//Huge6 (Huge6) package { import flash.display.*; public dynamic class Huge6 extends MovieClip { } }//package
Section 154
//Huge7 (Huge7) package { import flash.display.*; public dynamic class Huge7 extends MovieClip { } }//package
Section 155
//Huge8 (Huge8) package { import flash.display.*; public dynamic class Huge8 extends MovieClip { } }//package
Section 156
//Huge9 (Huge9) package { import flash.display.*; public dynamic class Huge9 extends MovieClip { } }//package
Section 157
//InGame (InGame) package { import flash.media.*; public dynamic class InGame extends Sound { } }//package
Section 158
//Lose (Lose) package { import flash.media.*; public dynamic class Lose extends Sound { } }//package
Section 159
//MainBuilding (MainBuilding) package { import flash.events.*; import flash.display.*; import flash.media.*; public class MainBuilding extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 var MAXHP:Number;// = 4000 var health:Number; public var pic:MovieClip; var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function MainBuilding():void{ isDead = false; MAXHP = 4000; health = MAXHP; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); par.playSound("danger"); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 160
//MainEnemyBuilding (MainEnemyBuilding) package { import flash.events.*; import flash.display.*; import flash.media.*; public class MainEnemyBuilding extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 var MAXHP:Number;// = 4000 var health:Number; public var pic:MovieClip; var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function MainEnemyBuilding():void{ isDead = false; MAXHP = 4000; health = MAXHP; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 161
//MapSelect (MapSelect) package { import flash.media.*; public dynamic class MapSelect extends Sound { } }//package
Section 162
//MenuUtama (MenuUtama) package { import flash.media.*; public dynamic class MenuUtama extends Sound { } }//package
Section 163
//Miner (Miner) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Miner extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 public var anim:MovieClip; var MAXHP:Number;// = 1000 var coolDOWN:Number;// = 150 public var pic:MovieClip; var health:Number; var gold:Number;// = 100 var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 var timeMine:Number; public function Miner():void{ isDead = false; coolDOWN = 150; timeMine = coolDOWN; gold = 100; MAXHP = 1000; health = MAXHP; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); timeMine = coolDOWN; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ if (timeMine > 0){ timeMine--; } else { timeMine = coolDOWN; par.addMoney(gold); anim.play(); }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 164
//MinerEnemy (MinerEnemy) package { import flash.events.*; import flash.display.*; import flash.media.*; public class MinerEnemy extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 var MAXHP:Number;// = 1000 var coolDOWN:Number;// = 150 public var pic:MovieClip; var health:Number; var gold:Number;// = 100 var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 var timeMine:Number; public function MinerEnemy():void{ isDead = false; coolDOWN = 150; timeMine = coolDOWN; gold = 100; MAXHP = 1000; health = MAXHP; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); timeMine = coolDOWN; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ if (timeMine > 0){ timeMine--; } else { timeMine = coolDOWN; par.addMoneyEnemy(gold); }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 165
//MiniA (MiniA) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniA extends MovieClip { public var par; public var Target; public function MiniA(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ if (Target.isDead == false){ y = Math.round((Target.y / 10)); x = Math.round((Target.x / 10)); } else { visible = false; }; if (visible == false){ removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); }; }; } } }//package
Section 166
//MiniB (MiniB) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniB extends MovieClip { public var par; public var Target; public function MiniB(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ if (Target.isDead == false){ y = Math.round((Target.y / 10)); x = Math.round((Target.x / 10)); } else { visible = false; }; if (visible == false){ removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); }; }; } } }//package
Section 167
//MiniC (MiniC) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniC extends MovieClip { public var par; public var Target; public function MiniC(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ visible = Target.visible; if (Target.isDead == false){ y = Math.round((Target.y / 10)); x = Math.round((Target.x / 10)); } else { visible = false; }; if ((((visible == false)) && ((Target.isDead == true)))){ removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); }; }; } } }//package
Section 168
//MiniD (MiniD) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniD extends MovieClip { public var par; public var Target; public function MiniD(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ if (Target.isDead == false){ y = Math.round((Target.y / 10)); x = Math.round((Target.x / 10)); } else { visible = false; }; if (visible == false){ removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); }; }; } } }//package
Section 169
//MiniE (MiniE) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniE extends MovieClip { public var par; public var Target; public function MiniE(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function deleteTHIS():void{ removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); } public function Folow(_arg1:Event):void{ if (Target != null){ y = Math.round((Target.y / 10)); x = Math.round((Target.x / 10)); visible = Target.visible; }; } } }//package
Section 170
//MiniF (MiniF) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniF extends MovieClip { public var par; public var Target; public function MiniF(){ addFrameScript(0, frame1); } function frame1(){ par = this.parent; addEventListener(Event.ENTER_FRAME, Folow); } public function Folow(_arg1:Event):void{ if (Target != null){ visible = Target.visible; if (Target.isDead == false){ y = Math.round((Target.y / 10)); x = Math.round((Target.x / 10)); } else { visible = false; }; if ((((visible == false)) && ((Target.isDead == true)))){ removeEventListener(Event.ENTER_FRAME, Folow); par.removeChild(this); }; }; } } }//package
Section 171
//MiniGlow (MiniGlow) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class MiniGlow extends MovieClip { public var par; public function MiniGlow(){ addFrameScript(9, frame10); } function frame10(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 172
//Move1 (Move1) package { import flash.media.*; public dynamic class Move1 extends Sound { } }//package
Section 173
//Move2 (Move2) package { import flash.media.*; public dynamic class Move2 extends Sound { } }//package
Section 174
//Move3 (Move3) package { import flash.media.*; public dynamic class Move3 extends Sound { } }//package
Section 175
//Move4 (Move4) package { import flash.media.*; public dynamic class Move4 extends Sound { } }//package
Section 176
//MoveBtn (MoveBtn) package { import flash.media.*; public dynamic class MoveBtn extends Sound { } }//package
Section 177
//NewMove1 (NewMove1) package { import flash.media.*; public dynamic class NewMove1 extends Sound { } }//package
Section 178
//NewMove10 (NewMove10) package { import flash.media.*; public dynamic class NewMove10 extends Sound { } }//package
Section 179
//NewMove11 (NewMove11) package { import flash.media.*; public dynamic class NewMove11 extends Sound { } }//package
Section 180
//NewMove12 (NewMove12) package { import flash.media.*; public dynamic class NewMove12 extends Sound { } }//package
Section 181
//NewMove13 (NewMove13) package { import flash.media.*; public dynamic class NewMove13 extends Sound { } }//package
Section 182
//NewMove14 (NewMove14) package { import flash.media.*; public dynamic class NewMove14 extends Sound { } }//package
Section 183
//NewMove15 (NewMove15) package { import flash.media.*; public dynamic class NewMove15 extends Sound { } }//package
Section 184
//NewMove16 (NewMove16) package { import flash.media.*; public dynamic class NewMove16 extends Sound { } }//package
Section 185
//NewMove17 (NewMove17) package { import flash.media.*; public dynamic class NewMove17 extends Sound { } }//package
Section 186
//NewMove18 (NewMove18) package { import flash.media.*; public dynamic class NewMove18 extends Sound { } }//package
Section 187
//NewMove19 (NewMove19) package { import flash.media.*; public dynamic class NewMove19 extends Sound { } }//package
Section 188
//NewMove2 (NewMove2) package { import flash.media.*; public dynamic class NewMove2 extends Sound { } }//package
Section 189
//NewMove20 (NewMove20) package { import flash.media.*; public dynamic class NewMove20 extends Sound { } }//package
Section 190
//NewMove21 (NewMove21) package { import flash.media.*; public dynamic class NewMove21 extends Sound { } }//package
Section 191
//NewMove22 (NewMove22) package { import flash.media.*; public dynamic class NewMove22 extends Sound { } }//package
Section 192
//NewMove23 (NewMove23) package { import flash.media.*; public dynamic class NewMove23 extends Sound { } }//package
Section 193
//NewMove24 (NewMove24) package { import flash.media.*; public dynamic class NewMove24 extends Sound { } }//package
Section 194
//NewMove25 (NewMove25) package { import flash.media.*; public dynamic class NewMove25 extends Sound { } }//package
Section 195
//NewMove3 (NewMove3) package { import flash.media.*; public dynamic class NewMove3 extends Sound { } }//package
Section 196
//NewMove4 (NewMove4) package { import flash.media.*; public dynamic class NewMove4 extends Sound { } }//package
Section 197
//NewMove5 (NewMove5) package { import flash.media.*; public dynamic class NewMove5 extends Sound { } }//package
Section 198
//NewMove6 (NewMove6) package { import flash.media.*; public dynamic class NewMove6 extends Sound { } }//package
Section 199
//NewMove7 (NewMove7) package { import flash.media.*; public dynamic class NewMove7 extends Sound { } }//package
Section 200
//NewMove8 (NewMove8) package { import flash.media.*; public dynamic class NewMove8 extends Sound { } }//package
Section 201
//NewMove9 (NewMove9) package { import flash.media.*; public dynamic class NewMove9 extends Sound { } }//package
Section 202
//NotBtn (NotBtn) package { import flash.media.*; public dynamic class NotBtn extends Sound { } }//package
Section 203
//Obs1 (Obs1) package { import flash.display.*; public dynamic class Obs1 extends MovieClip { } }//package
Section 204
//Obs10 (Obs10) package { import flash.display.*; public dynamic class Obs10 extends MovieClip { } }//package
Section 205
//Obs11 (Obs11) package { import flash.display.*; public dynamic class Obs11 extends MovieClip { } }//package
Section 206
//Obs12 (Obs12) package { import flash.display.*; public dynamic class Obs12 extends MovieClip { } }//package
Section 207
//Obs13 (Obs13) package { import flash.display.*; public dynamic class Obs13 extends MovieClip { } }//package
Section 208
//Obs14 (Obs14) package { import flash.display.*; public dynamic class Obs14 extends MovieClip { } }//package
Section 209
//Obs2 (Obs2) package { import flash.display.*; public dynamic class Obs2 extends MovieClip { } }//package
Section 210
//Obs3 (Obs3) package { import flash.display.*; public dynamic class Obs3 extends MovieClip { } }//package
Section 211
//Obs4 (Obs4) package { import flash.display.*; public dynamic class Obs4 extends MovieClip { } }//package
Section 212
//Obs5 (Obs5) package { import flash.display.*; public dynamic class Obs5 extends MovieClip { } }//package
Section 213
//Obs6 (Obs6) package { import flash.display.*; public dynamic class Obs6 extends MovieClip { } }//package
Section 214
//Obs7 (Obs7) package { import flash.display.*; public dynamic class Obs7 extends MovieClip { } }//package
Section 215
//Obs8 (Obs8) package { import flash.display.*; public dynamic class Obs8 extends MovieClip { } }//package
Section 216
//Obs9 (Obs9) package { import flash.display.*; public dynamic class Obs9 extends MovieClip { } }//package
Section 217
//OkayBtn (OkayBtn) package { import flash.media.*; public dynamic class OkayBtn extends Sound { } }//package
Section 218
//Op (Op) package { import flash.media.*; public dynamic class Op extends Sound { } }//package
Section 219
//Pause (Pause) package { import flash.media.*; public dynamic class Pause extends Sound { } }//package
Section 220
//Peluru1 (Peluru1) package { import flash.display.*; public class Peluru1 extends Roket { public function Peluru1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 221
//Peluru10 (Peluru10) package { import flash.geom.*; import flash.events.*; import flash.display.*; public class Peluru10 extends Roket { var aaa:Number; public function Peluru10(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ var _local7:*; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); _local7 = Math.sqrt((Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2))); speed = 0; _local8 = (target.x - _arg1); _local9 = (target.y - _arg2); _local10 = Math.atan2(_local9, _local8); _local11 = ((_local10 * 180) / Math.PI); xSpeed = (Math.cos(((_local11 * Math.PI) / 180)) * speed); ySpeed = (Math.sin(((_local11 * Math.PI) / 180)) * speed); lifeTime = 10; aaa = ((2 * _local7) / 100); } override public function Move():void{ var _local1:*; var _local2:*; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; _local1 = this.parent; _local2 = new Smoke(); _local2.x = (x + randRange(-5, 5)); _local2.y = (y + randRange(-5, 5)); _local1.addChild(_local2); _local2 = new Smoke(); _local2.x = (x + randRange(-5, 5)); _local2.y = (y + randRange(-5, 5)); _local1.addChild(_local2); _local2 = new Smoke(); _local2.x = (x + randRange(-5, 5)); _local2.y = (y + randRange(-5, 5)); _local1.addChild(_local2); super.Move(); speed = (speed + aaa); _local3 = (Target.x - x); _local4 = (Target.y - y); _local5 = Math.atan2(_local4, _local3); _local6 = ((_local5 * 180) / Math.PI); xSpeed = (Math.cos(((_local6 * Math.PI) / 180)) * speed); ySpeed = (Math.sin(((_local6 * Math.PI) / 180)) * speed); } } }//package
Section 222
//Peluru2 (Peluru2) package { import flash.display.*; public class Peluru2 extends Roket { public function Peluru2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 223
//Peluru3 (Peluru3) package { import flash.display.*; public class Peluru3 extends Roket { public function Peluru3(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 224
//Peluru4 (Peluru4) package { import flash.display.*; public class Peluru4 extends Roket { public function Peluru4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 225
//Peluru5 (Peluru5) package { import flash.display.*; public class Peluru5 extends Roket { public function Peluru5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 226
//Peluru6 (Peluru6) package { import flash.display.*; public class Peluru6 extends Roket { public function Peluru6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 227
//Peluru7 (Peluru7) package { import flash.display.*; public class Peluru7 extends Roket { public function Peluru7(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 228
//Peluru8 (Peluru8) package { import flash.display.*; public class Peluru8 extends Roket { public function Peluru8(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 229
//Peluru9 (Peluru9) package { import flash.geom.*; import flash.events.*; import flash.display.*; public class Peluru9 extends Roket { var aaa:Number; public function Peluru9(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ var _local7:*; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); _local7 = Math.sqrt((Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2))); speed = 0; _local8 = (target.x - _arg1); _local9 = (target.y - _arg2); _local10 = Math.atan2(_local9, _local8); _local11 = ((_local10 * 180) / Math.PI); xSpeed = (Math.cos(((_local11 * Math.PI) / 180)) * speed); ySpeed = (Math.sin(((_local11 * Math.PI) / 180)) * speed); lifeTime = 10; aaa = ((2 * _local7) / 100); } override public function Move():void{ var _local1:*; var _local2:*; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; _local1 = this.parent; _local2 = new Smoke(); _local2.x = (x + randRange(-5, 5)); _local2.y = (y + randRange(-5, 5)); _local1.addChild(_local2); _local2 = new Smoke(); _local2.x = (x + randRange(-5, 5)); _local2.y = (y + randRange(-5, 5)); _local1.addChild(_local2); _local2 = new Smoke(); _local2.x = (x + randRange(-5, 5)); _local2.y = (y + randRange(-5, 5)); _local1.addChild(_local2); super.Move(); speed = (speed + aaa); _local3 = (Target.x - x); _local4 = (Target.y - y); _local5 = Math.atan2(_local4, _local3); _local6 = ((_local5 * 180) / Math.PI); xSpeed = (Math.cos(((_local6 * Math.PI) / 180)) * speed); ySpeed = (Math.sin(((_local6 * Math.PI) / 180)) * speed); } } }//package
Section 230
//PeluruBig (PeluruBig) package { import flash.display.*; public class PeluruBig extends Roket { public function PeluruBig(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } } }//package
Section 231
//PeluruBigSplash (PeluruBigSplash) package { import flash.geom.*; import flash.events.*; import flash.display.*; public class PeluruBigSplash extends MovieClip { var yf:Number; var ySpeed:Number; var speed:Number; var damage:Number; var xSpeed:Number; var lifeTime:Number; var xf:Number; public function PeluruBigSplash(_arg1:Number, _arg2:Number, _arg3:Number=0, _arg4:Number=0):void{ x = _arg1; y = _arg2; lifeTime = 8; speed = 25; rotation = _arg3; xSpeed = (Math.cos(((rotation * Math.PI) / 180)) * speed); ySpeed = (Math.sin(((rotation * Math.PI) / 180)) * speed); damage = _arg4; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } function delBulet():void{ var _local1:*; _local1 = this.parent; _local1.removeChild(this); } public function deleteBullet():void{ lifeTime = -1; } public function Move(_arg1:Array=null, _arg2:Array=null):void{ var _local3:Boolean; var _local4:*; _local3 = false; if (lifeTime < 0){ delBulet(); return; }; _local3 = true; if (_local3){ lifeTime--; x = (x + xSpeed); y = (y + ySpeed); for (_local4 in _arg1) { if (_arg1[_local4].hitTestObject(this)){ _arg1[_local4].Damage(damage, x, y); lifeTime = 0; return; }; }; for (_local4 in _arg2) { if (_arg2[_local4].hitTestObject(this)){ _arg2[_local4].Damage(damage, x, y); lifeTime = 0; return; }; }; }; } } }//package
Section 232
//RallySound (RallySound) package { import flash.media.*; public dynamic class RallySound extends Sound { } }//package
Section 233
//Rede1 (Rede1) package { import flash.media.*; public dynamic class Rede1 extends Sound { } }//package
Section 234
//Rede2 (Rede2) package { import flash.media.*; public dynamic class Rede2 extends Sound { } }//package
Section 235
//Result (Result) package { import flash.media.*; public dynamic class Result extends Sound { } }//package
Section 236
//Roket (Roket) package { import flash.geom.*; import flash.events.*; import flash.display.*; public class Roket extends MovieClip { var yf:Number; var ySpeed:Number; var speed:Number; var damage:Number; var target; var xSpeed:Number; var Target; var lifeTime:Number; var xf:Number; public function Roket(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip=null, _arg6:Number=0):void{ var _local7:*; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; super(); x = _arg1; y = _arg2; xf = _arg1; yf = _arg2; target = new Point(_arg3, _arg4); lifeTime = 3; _local7 = Math.sqrt((Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2))); speed = (_local7 / lifeTime); _local8 = (target.x - _arg1); _local9 = (target.y - _arg2); _local10 = Math.atan2(_local9, _local8); _local11 = ((_local10 * 180) / Math.PI); xSpeed = (Math.cos(((_local11 * Math.PI) / 180)) * speed); ySpeed = (Math.sin(((_local11 * Math.PI) / 180)) * speed); rotation = _local11; lifeTime--; Target = _arg5; damage = _arg6; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } function delBulet():void{ var _local1:*; _local1 = this.parent; if (Target.isDead == false){ Target.Damage(damage, Math.round((xf / _local1.SIZE)), Math.round((yf / _local1.SIZE))); }; _local1.showThisMapC(x, y); _local1.showThisMapC2(x, y); _local1.removeChild(this); } public function deleteBullet():void{ lifeTime = -1; } public function Move():void{ var _local1:Boolean; _local1 = false; if (lifeTime < 0){ delBulet(); return; }; _local1 = true; if (_local1){ lifeTime--; x = (x + xSpeed); y = (y + ySpeed); }; } } }//package
Section 237
//Safety (Safety) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Safety extends MovieClip { const MAXHP:Number = 75; const RELOADTIME:Number = 48; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 1 var health:Number;// = 75 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var yhelp:Number; var range:Number;// = 100 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 10 var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Safety():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 1; arahX = 0; arahY = 0; range = 100; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 10; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; par.showThisMapC(x, y); }; if ((((okX == true)) && ((okY == true)))){ calcMove(); par.showThisMap(x, y); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; }; } } }//package
Section 238
//Select1 (Select1) package { import flash.media.*; public dynamic class Select1 extends Sound { } }//package
Section 239
//Select2 (Select2) package { import flash.media.*; public dynamic class Select2 extends Sound { } }//package
Section 240
//Select3 (Select3) package { import flash.media.*; public dynamic class Select3 extends Sound { } }//package
Section 241
//Select4 (Select4) package { import flash.media.*; public dynamic class Select4 extends Sound { } }//package
Section 242
//Select5 (Select5) package { import flash.media.*; public dynamic class Select5 extends Sound { } }//package
Section 243
//Select6 (Select6) package { import flash.media.*; public dynamic class Select6 extends Sound { } }//package
Section 244
//Select7 (Select7) package { import flash.media.*; public dynamic class Select7 extends Sound { } }//package
Section 245
//Select8 (Select8) package { import flash.media.*; public dynamic class Select8 extends Sound { } }//package
Section 246
//Select9 (Select9) package { import flash.media.*; public dynamic class Select9 extends Sound { } }//package
Section 247
//Sirene (Sirene) package { import flash.media.*; public dynamic class Sirene extends Sound { } }//package
Section 248
//Smoke (Smoke) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Smoke extends MovieClip { public var par; public function Smoke(){ addFrameScript(9, frame10); } function frame10(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 249
//Splash (Splash) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Splash extends MovieClip { public var i; public var damage; public var enemy; public var par; public var area:MovieClip; public function Splash(){ addFrameScript(0, frame1, 16, frame17, 18, frame19, 20, frame21, 22, frame23, 24, frame25, 26, frame27, 28, frame29, 30, frame31, 32, frame33); } function frame1(){ } function frame19(){ addSpark(); } function frame25(){ addSpark(); } function frame17(){ addSpark(); } function frame29(){ addSpark(); } function frame21(){ addSpark(); } function frame27(){ addSpark(); } function frame23(){ addSpark(); } function frame31(){ addSpark(); } function frame33(){ stop(); par = this.parent; for (i in enemy) { if (enemy[i].isDead == false){ if (area.hitTestObject(enemy[i])){ enemy[i].Damage(damage, Math.round((x / par.SIZE)), Math.round((y / par.SIZE))); }; }; }; } public function addSpark():void{ var _local1:Number; var _local2:Number; var _local3:*; var _local4:*; _local1 = -180; _local2 = (360 / 12); _local3 = 0; while (_local3 < 12) { _local4 = new SplashBuletFade(); _local4.rotation = _local1; addChild(_local4); _local1 = (_local1 + _local2); _local3++; }; } } }//package
Section 250
//SplashBuletFade (SplashBuletFade) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class SplashBuletFade extends MovieClip { public var par; public function SplashBuletFade(){ addFrameScript(14, frame15); } function frame15(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 251
//SplashBuletFadeE (SplashBuletFadeE) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class SplashBuletFadeE extends MovieClip { public var par; public function SplashBuletFadeE(){ addFrameScript(14, frame15); } function frame15(){ stop(); par = this.parent; par.removeChild(this); } } }//package
Section 252
//SplashE (SplashE) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class SplashE extends MovieClip { public var i; public var damage; public var enemy; public var par; public var area:MovieClip; public function SplashE(){ addFrameScript(0, frame1, 16, frame17, 18, frame19, 20, frame21, 22, frame23, 24, frame25, 26, frame27, 28, frame29, 30, frame31, 32, frame33); } function frame1(){ } function frame19(){ addSpark(); } function frame25(){ addSpark(); } function frame17(){ addSpark(); } function frame29(){ addSpark(); } function frame21(){ addSpark(); } function frame27(){ addSpark(); } function frame23(){ addSpark(); } function frame31(){ addSpark(); } function frame33(){ stop(); par = this.parent; for (i in enemy) { if (enemy[i].isDead == false){ if (area.hitTestObject(enemy[i])){ enemy[i].Damage(damage, Math.round((x / par.SIZE)), Math.round((y / par.SIZE))); }; }; }; } public function addSpark():void{ var _local1:Number; var _local2:Number; var _local3:*; var _local4:*; _local1 = -180; _local2 = (360 / 12); _local3 = 0; while (_local3 < 12) { _local4 = new SplashBuletFadeE(); _local4.rotation = _local1; addChild(_local4); _local1 = (_local1 + _local2); _local3++; }; } } }//package
Section 253
//Store (Store) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Store extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 var MAXHP:Number;// = 1500 var health:Number; public var pic:MovieClip; var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function Store():void{ isDead = false; MAXHP = 1500; health = MAXHP; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); } public function addPop():void{ if (par.PopulasiAtas < par.MAXPOPULASI){ par.PopulasiAtas = (par.PopulasiAtas + 10); }; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } public function subPop():void{ if (par.PopulasiAtas > 0){ par.PopulasiAtas = (par.PopulasiAtas - 10); }; } } }//package
Section 254
//StoreEnemy (StoreEnemy) package { import flash.events.*; import flash.display.*; import flash.media.*; public class StoreEnemy extends MovieClip { var hpshow:Number;// = 0 var needHelp:Boolean;// = false public var hpbar:MovieClip; var rangeHelp:Number;// = 100 var MAXHP:Number;// = 1500 var health:Number; public var pic:MovieClip; var yhelp:Number; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 public function StoreEnemy():void{ isDead = false; MAXHP = 1500; health = MAXHP; hpshow = 0; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); } public function addPop():void{ if (par.PopulasiAtasEnemy < par.MAXPOPULASI){ par.PopulasiAtasEnemy = (par.PopulasiAtasEnemy + 10); }; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } public function subPop():void{ if (par.PopulasiAtasEnemy > 0){ par.PopulasiAtasEnemy = (par.PopulasiAtasEnemy - 10); }; } } }//package
Section 255
//Tower1 (Tower1) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Tower1 extends MovieClip { var hpshow:Number;// = 0 var reloadTime:Number;// = 0 public var hpbar:MovieClip; var rangeHelp:Number;// = 150 var needHelp:Boolean;// = false public var range:Number;// = 150 var MAXHP:Number;// = 500 var health:Number; public var gun:MovieClip; var State:String;// = "idle" var damage:Number;// = 30 public var pic:MovieClip; var yhelp:Number; var TargetFire; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 var RELOADTIME:Number;// = 48 public function Tower1():void{ isDead = false; MAXHP = 500; health = MAXHP; hpshow = 0; damage = 30; reloadTime = 0; range = 150; State = "idle"; RELOADTIME = 48; needHelp = false; rangeHelp = 150; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); hpbar.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function theRANGE():Point{ var _local1:*; _local1 = new Point((x + 32.4), (y + 11.2)); return (_local1); } public function Build(_arg1:Array=null):void{ var _local2:*; var _local3:*; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ for (_local2 in _arg1) { _local3 = Math.round(Math.sqrt((Math.pow((_arg1[_local2].x - x), 2) + Math.pow((_arg1[_local2].y - y), 2)))); if (_local3 < range){ TargetFire = _arg1[_local2]; State = "attack"; }; }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local3 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local3 > range){ State = "idle"; }; }; _local4 = (TargetFire.x - x); _local5 = (TargetFire.y - y); _local6 = Math.atan2(_local5, _local4); _local7 = ((_local6 * 180) / Math.PI); gun.rotation = _local7; if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local8 = new Peluru7((x + gun.x), (y + gun.y), TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local8); }; }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 256
//Tower1E (Tower1E) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Tower1E extends MovieClip { var hpshow:Number;// = 0 var reloadTime:Number;// = 0 public var hpbar:MovieClip; var rangeHelp:Number;// = 150 var needHelp:Boolean;// = false var range:Number;// = 150 var MAXHP:Number;// = 500 var health:Number; public var gun:MovieClip; var State:String;// = "idle" var damage:Number;// = 30 var yhelp:Number; var TargetFire; var par; public var isDead:Boolean;// = false var xhelp:Number; var RELOADTIME:Number;// = 48 public function Tower1E():void{ isDead = false; MAXHP = 500; health = MAXHP; hpshow = 0; damage = 30; reloadTime = 0; range = 150; State = "idle"; RELOADTIME = 48; needHelp = false; rangeHelp = 150; super(); hpbar.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ var _local2:*; var _local3:*; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; for (_local2 in _arg1) { _local3 = Math.round(Math.sqrt((Math.pow((_arg1[_local2].x - x), 2) + Math.pow((_arg1[_local2].y - y), 2)))); if (_local3 < range){ TargetFire = _arg1[_local2]; State = "attack"; }; }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local3 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local3 > range){ State = "idle"; }; }; _local4 = (TargetFire.x - x); _local5 = (TargetFire.y - y); _local6 = Math.atan2(_local5, _local4); _local7 = ((_local6 * 180) / Math.PI); gun.rotation = (_local7 - 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local8 = new Peluru8((x + gun.x), (y + gun.y), TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local8); }; }; }; } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 257
//Tower2 (Tower2) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Tower2 extends MovieClip { var hpshow:Number;// = 0 var reloadTime:Number;// = 0 public var hpbar:MovieClip; var rangeHelp:Number;// = 225 var needHelp:Boolean;// = false public var range:Number;// = 225 var MAXHP:Number;// = 500 var health:Number; public var gun:MovieClip; var State:String;// = "idle" var damage:Number;// = 50 public var pic:MovieClip; var yhelp:Number; var TargetFire; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 var RELOADTIME:Number;// = 60 public function Tower2():void{ isDead = false; MAXHP = 500; health = MAXHP; hpshow = 0; damage = 50; reloadTime = 0; range = 225; State = "idle"; RELOADTIME = 60; needHelp = false; rangeHelp = 225; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); hpbar.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function theRANGE():Point{ var _local1:*; _local1 = new Point((x + 14.4), (y + 12.6)); return (_local1); } public function Build(_arg1:Array=null):void{ var _local2:*; var _local3:*; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ for (_local2 in _arg1) { _local3 = Math.round(Math.sqrt((Math.pow((_arg1[_local2].x - x), 2) + Math.pow((_arg1[_local2].y - y), 2)))); if (_local3 < range){ TargetFire = _arg1[_local2]; State = "attack"; }; }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local3 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local3 > range){ State = "idle"; }; }; _local4 = (TargetFire.x - x); _local5 = (TargetFire.y - y); _local6 = Math.atan2(_local5, _local4); _local7 = ((_local6 * 180) / Math.PI); gun.rotation = _local7; if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local8 = new Peluru5((x + gun.x), (y + gun.y), TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local8); }; }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 258
//Tower2E (Tower2E) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Tower2E extends MovieClip { var hpshow:Number;// = 0 var reloadTime:Number;// = 0 public var hpbar:MovieClip; var rangeHelp:Number;// = 225 var needHelp:Boolean;// = false var range:Number;// = 225 var MAXHP:Number;// = 500 var health:Number; public var gun:MovieClip; var State:String;// = "idle" var damage:Number;// = 50 var yhelp:Number; var TargetFire; var par; public var isDead:Boolean;// = false var xhelp:Number; var RELOADTIME:Number;// = 60 public function Tower2E():void{ isDead = false; MAXHP = 500; health = MAXHP; hpshow = 0; damage = 50; reloadTime = 0; range = 225; State = "idle"; RELOADTIME = 60; needHelp = false; rangeHelp = 225; super(); hpbar.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ var _local2:*; var _local3:*; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; for (_local2 in _arg1) { _local3 = Math.round(Math.sqrt((Math.pow((_arg1[_local2].x - x), 2) + Math.pow((_arg1[_local2].y - y), 2)))); if (_local3 < range){ TargetFire = _arg1[_local2]; State = "attack"; }; }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local3 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local3 > range){ State = "idle"; }; }; _local4 = (TargetFire.x - x); _local5 = (TargetFire.y - y); _local6 = Math.atan2(_local5, _local4); _local7 = ((_local6 * 180) / Math.PI); gun.rotation = (_local7 - 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local8 = new Peluru6((x + gun.x), (y + gun.y), TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local8); }; }; }; } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 259
//Tower3 (Tower3) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Tower3 extends MovieClip { var hpshow:Number;// = 0 var reloadTime:Number;// = 0 public var hpbar:MovieClip; var rangeHelp:Number;// = 100 var needHelp:Boolean;// = false public var range:Number;// = 100 var MAXHP:Number;// = 1000 var health:Number; public var gun:Cek2; var State:String;// = "idle" var damage:Number;// = 30 public var pic:MovieClip; var yhelp:Number; var TargetFire; var par; var buildingTime;// = 0 public var isDead:Boolean;// = false var xhelp:Number; var MAXBUILDINGTIME;// = 100 var RELOADTIME:Number;// = 15 public function Tower3():void{ isDead = false; MAXHP = 1000; health = MAXHP; hpshow = 0; damage = 30; reloadTime = 0; range = 100; State = "idle"; RELOADTIME = 15; needHelp = false; rangeHelp = 100; buildingTime = 0; MAXBUILDINGTIME = 100; super(); addFrameScript(0, frame1); hpbar.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function theRANGE():Point{ var _local1:*; _local1 = new Point((x + 13.9), (y + 16.9)); return (_local1); } public function Build(_arg1:Array=null):void{ var _local2:*; var _local3:*; var _local4:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; if (currentFrame != 1){ for (_local2 in _arg1) { _local3 = Math.round(Math.sqrt((Math.pow((_arg1[_local2].x - x), 2) + Math.pow((_arg1[_local2].y - y), 2)))); if (_local3 < range){ TargetFire = _arg1[_local2]; State = "attack"; }; }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local3 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local3 > range){ State = "idle"; }; }; if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local4 = new Peluru1((x + gun.x), (y + gun.y), TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local4); }; }; } else { buildingTime++; pic.gotoAndStop(Math.round(((buildingTime / MAXBUILDINGTIME) * 100))); }; }; } function frame1(){ stop(); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; par.par.panel.mini.addMINIG(x, y); if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 260
//Tower3E (Tower3E) package { import flash.events.*; import flash.display.*; import flash.media.*; public class Tower3E extends MovieClip { var hpshow:Number;// = 0 var reloadTime:Number;// = 0 public var hpbar:MovieClip; var rangeHelp:Number;// = 100 var needHelp:Boolean;// = false var range:Number;// = 100 var MAXHP:Number;// = 1000 var health:Number; public var gun:Cek2; var State:String;// = "idle" var damage:Number;// = 30 var yhelp:Number; var TargetFire; var par; public var isDead:Boolean;// = false var xhelp:Number; var RELOADTIME:Number;// = 15 public function Tower3E():void{ isDead = false; MAXHP = 1000; health = MAXHP; hpshow = 0; damage = 30; reloadTime = 0; range = 100; State = "idle"; RELOADTIME = 15; needHelp = false; rangeHelp = 100; super(); hpbar.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function Build(_arg1:Array=null):void{ var _local2:*; var _local3:*; var _local4:*; par = this.parent; if (isDead == false){ hpbar.gotoAndStop(Math.round(((health / MAXHP) * 100))); if (hpshow > 0){ hpshow--; hpbar.visible = true; } else { hpbar.visible = false; needHelp = false; }; for (_local2 in _arg1) { _local3 = Math.round(Math.sqrt((Math.pow((_arg1[_local2].x - x), 2) + Math.pow((_arg1[_local2].y - y), 2)))); if (_local3 < range){ TargetFire = _arg1[_local2]; State = "attack"; }; }; if (State == "attack"){ if (TargetFire != null){ if (TargetFire.isDead == true){ State = "idle"; }; _local3 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local3 > range){ State = "idle"; }; }; if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local4 = new Peluru2((x + gun.x), (y + gun.y), TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local4); }; }; }; } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } } }//package
Section 261
//Unit (Unit) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit extends MovieClip { const MAXHP:Number = 75; const RELOADTIME:Number = 48; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 1.5 var health:Number;// = 75 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 100 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 10 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 1.5; arahX = 0; arahY = 0; range = 100; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 10; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; par.showThisMapC(x, y); }; if ((((okX == true)) && ((okY == true)))){ calcMove(); par.showThisMap(x, y); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru1(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun1", this); play(); }; }; }; }; } } }//package
Section 262
//Unit1 (Unit1) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit1 extends MovieClip { const MAXHP:Number = 100; const RELOADTIME:Number = 12; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 2.5 var health:Number;// = 100 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 50 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 10 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit1():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 2.5; arahX = 0; arahY = 0; range = 50; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 10; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { if (!par.isPesawat(_arg2[_local6])){ rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { if (!par.isPesawat(_arg2[_local6])){ rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { if (!par.isPesawat(_arg2[_local6])){ rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; par.showThisMapC(x, y); }; if ((((okX == true)) && ((okY == true)))){ calcMove(); par.showThisMap(x, y); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ if (!par.isPesawat(TargetFire)){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru3(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun3", this); play(); }; }; }; }; } } }//package
Section 263
//Unit2 (Unit2) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit2 extends MovieClip { const MAXHP:Number = 100; const RELOADTIME:Number = 70; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 200 var leftPLUS:Number;// = 0 var speed:Number;// = 1.5 var health:Number;// = 100 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 200 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 50 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit2():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 1.5; arahX = 0; arahY = 0; range = 200; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 50; hpshow = 0; needHelp = false; rangeHelp = 200; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { rangeBuild = 0; _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; par.showThisMapC(x, y); }; if ((((okX == true)) && ((okY == true)))){ calcMove(); par.showThisMap(x, y); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru5(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun5", this); play(); }; }; }; }; } } }//package
Section 264
//Unit3 (Unit3) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit3 extends MovieClip { const MAXHP:Number = 150; const RELOADTIME:Number = 30; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 2.5 var health:Number;// = 150 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 75 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 30 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit3():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 2.5; arahX = 0; arahY = 0; range = 75; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 30; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; par.showThisMapC(x, y); }; if ((((okX == true)) && ((okY == true)))){ calcMove(); par.showThisMap(x, y); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru7(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun6", this); play(); }; }; }; }; } } }//package
Section 265
//Unit4 (Unit4) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit4 extends MovieClip { const MAXHP:Number = 75; const RELOADTIME:Number = 48; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 1.5 var health:Number;// = 75 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 100 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 10 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit4():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 1.5; arahX = 0; arahY = 0; range = 100; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 10; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { rangeBuild = 10; _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; }; if ((((okX == true)) && ((okY == true)))){ calcMove(); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru2(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun1", this); play(); }; }; }; }; } } }//package
Section 266
//Unit5 (Unit5) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit5 extends MovieClip { const MAXHP:Number = 100; const RELOADTIME:Number = 24; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 2.5 var health:Number;// = 100 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 70 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 10 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit5():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 2.5; arahX = 0; arahY = 0; range = 70; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 10; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { if (!par.isPesawat(_arg2[_local6])){ _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { if (!par.isPesawat(_arg2[_local6])){ _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { if (!par.isPesawat(_arg2[_local6])){ _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; }; if ((((okX == true)) && ((okY == true)))){ calcMove(); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ if (!par.isPesawat(TargetFire)){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru4(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun3", this); play(); }; }; }; }; } } }//package
Section 267
//Unit6 (Unit6) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit6 extends MovieClip { const MAXHP:Number = 100; const RELOADTIME:Number = 70; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 200 var leftPLUS:Number;// = 0 var speed:Number;// = 1.5 var health:Number;// = 100 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 200 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 50 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit6():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 1.5; arahX = 0; arahY = 0; range = 200; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 50; hpshow = 0; needHelp = false; rangeHelp = 200; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; }; if ((((okX == true)) && ((okY == true)))){ calcMove(); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru6(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun5", this); play(); }; }; }; }; } } }//package
Section 268
//Unit7 (Unit7) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; public class Unit7 extends MovieClip { const MAXHP:Number = 150; const RELOADTIME:Number = 30; public var hpshow:Number;// = 0 var reloadTime:Number;// = 0 var rangeHelp:Number;// = 100 var leftPLUS:Number;// = 0 var speed:Number;// = 2.5 var health:Number;// = 150 public var State:String;// = "idle" public var selec:MovieClip; var par; var MOVEX:Number;// = 0 var MOVEY:Number;// = 0 public var isDead:Boolean;// = false var behaviour:String;// = "agresif" var oldPath:Number;// = 0 var needHelp:Boolean;// = false var helping:Boolean;// = false var far:Number;// = 0 var rangeBuild:Number;// = 0 var yhelp:Number; var range:Number;// = 75 var arahX:Number;// = 0 var arahY:Number;// = 0 var counterHelp:Number;// = 0 var map; var damage:Number;// = 30 public var TargetFire;// = null public var body:MovieClip; var rightPLUS:Number;// = 0 var xhelp:Number; var nextX:Number;// = 0 var nextY:Number;// = 0 var counterHit:Number;// = 0 var okX:Boolean;// = false var okY:Boolean;// = false public function Unit7():void{ State = "idle"; isDead = false; far = 0; MOVEX = 0; MOVEY = 0; nextX = 0; nextY = 0; speed = 2.5; arahX = 0; arahY = 0; range = 75; TargetFire = null; okX = false; okY = false; leftPLUS = 0; rightPLUS = 0; oldPath = 0; counterHit = 0; behaviour = "agresif"; reloadTime = 0; health = MAXHP; damage = 30; hpshow = 0; needHelp = false; rangeHelp = 100; helping = false; counterHelp = 0; rangeBuild = 0; super(); addFrameScript(0, frame1); selec.visible = false; } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((((Math.random() * _arg2) - _arg1) + 1)) + _arg1); return (_local3); } public function regen(_arg1:Number):void{ health = (health + _arg1); if (health >= MAXHP){ health = MAXHP; }; } function counterPath(_arg1:Number=0):Number{ switch (_arg1){ case 1: return (5); case 2: return (6); case 3: return (7); case 4: return (8); case 5: return (1); case 6: return (2); case 7: return (3); case 8: return (4); }; return (0); } function goRotate(_arg1:Number=0, _arg2:Number=0):void{ if ((((_arg1 == 1)) && ((_arg2 == 1)))){ rotation = 135; }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ rotation = -45; }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ rotation = 45; }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ rotation = -135; }; if (_arg1 == 0){ if (_arg2 == 1){ rotation = 180; } else { rotation = 0; }; }; if (_arg2 == 0){ if (_arg1 == 1){ rotation = 90; } else { rotation = -90; }; }; } function frame1(){ stop(); } public function okayHelp():void{ counterHelp++; if (counterHelp > 9){ needHelp = false; counterHelp = 0; }; } public function changeBehaviour(_arg1:String):void{ behaviour = _arg1; } function nextXY(_arg1:Number=0, _arg2:Number=0):Number{ if ((((_arg1 == 0)) && ((_arg2 == -1)))){ return (1); }; if ((((_arg1 == 1)) && ((_arg2 == -1)))){ return (2); }; if ((((_arg1 == 1)) && ((_arg2 == 0)))){ return (3); }; if ((((_arg1 == 1)) && ((_arg2 == 1)))){ return (4); }; if ((((_arg1 == 0)) && ((_arg2 == 1)))){ return (5); }; if ((((_arg1 == -1)) && ((_arg2 == 1)))){ return (6); }; if ((((_arg1 == -1)) && ((_arg2 == 0)))){ return (7); }; if ((((_arg1 == -1)) && ((_arg2 == -1)))){ return (8); }; return (0); } function nextMOVE(_arg1:Number=0, _arg2:Number=0, _arg3:Boolean=false):Number{ var _local4:*; _local4 = nextT(_arg1); if (((((((((whereBoxX() + _local4.x) > 0)) && (((whereBoxY() + _local4.y) > 0)))) && (((whereBoxX() + _local4.x) < (par.COLS - 1))))) && (((whereBoxY() + _local4.y) < (par.ROWS - 1))))){ if (map[(whereBoxX() + _local4.x)][(whereBoxY() + _local4.y)] == false){ return (_arg2); }; _arg2 = (_arg2 + 1); if (_arg2 > 4){ return (12); }; return (nextMOVE(normalisasiFormasi(_arg1, _arg3), _arg2, _arg3)); //unresolved jump }; return (1000); } public function whereBoxY():Number{ par = this.parent; return (Math.round((y / par.SIZE))); } public function whereBoxX():Number{ par = this.parent; return (Math.round((x / par.SIZE))); } public function Damage(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:*; health = (health - _arg1); hpshow = 48; if (health <= 0){ isDead = true; } else { needHelp = true; xhelp = _arg2; yhelp = _arg3; }; _local4 = new Hit(); _local4.x = x; _local4.y = y; _local4.rotation = randRange(0, 360); par.addChild(_local4); } function nextT(_arg1:Number):Point{ switch (_arg1){ case 1: return (new Point(0, -1)); case 2: return (new Point(1, -1)); case 3: return (new Point(1, 0)); case 4: return (new Point(1, 1)); case 5: return (new Point(0, 1)); case 6: return (new Point(-1, 1)); case 7: return (new Point(-1, 0)); case 8: return (new Point(-1, -1)); }; return (new Point(0, 0)); } public function gotoMove(_arg1:Number, _arg2:Number, _arg3:Boolean=false):void{ par = this.parent; MOVEX = _arg1; MOVEY = _arg2; if ((((((((MOVEX > par.COLS)) || ((MOVEX < 0)))) || ((MOVEY > par.ROWS)))) || ((MOVEY < 0)))){ State = "idle"; } else { State = "move"; helping = _arg3; calcMove(); }; } function calcMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; okX = false; okY = false; if (whereBoxX() < MOVEX){ _local1 = 1; }; if (whereBoxX() > MOVEX){ _local1 = -1; }; if (whereBoxX() == MOVEX){ okX = true; _local1 = 0; }; if (whereBoxY() < MOVEY){ _local2 = 1; }; if (whereBoxY() > MOVEY){ _local2 = -1; }; if (whereBoxY() == MOVEY){ okY = true; _local2 = 0; }; _local3 = nextXY(_local1, _local2); if ((((map[(whereBoxX() + _local1)][(whereBoxY() + _local2)] == false)) && (!((counterPath(oldPath) == _local3))))){ oldPath = _local3; nextX = ((whereBoxX() + _local1) * par.SIZE); nextY = ((whereBoxY() + _local2) * par.SIZE); } else { if (((((whereBoxX() + _local1) == MOVEX)) && (((whereBoxY() + _local2) == MOVEY)))){ State = "idle"; }; if (counterHit > 30){ State = "idle"; } else { counterHit++; }; okX = false; okY = false; _local4 = nextMOVE(normalisasiFormasi(_local3, true), 1, true); _local5 = nextMOVE(normalisasiFormasi(_local3, false), 1, false); _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; _local6 = _local3; _local7 = _local3; _local10 = 0; while (_local10 < _local4) { _local6 = normalisasiFormasi(_local6, true); _local10++; }; _local10 = 0; while (_local10 < _local5) { _local7 = normalisasiFormasi(_local7, false); _local10++; }; _local11 = counterPath(oldPath); if (_local6 == _local11){ _local8 = (_local8 + 30); }; if (_local7 == _local11){ _local9 = (_local9 + 30); }; if (((_local4 + rightPLUS) + _local8) <= ((_local5 + leftPLUS) + _local9)){ _local3 = _local6; } else { _local3 = _local7; }; _local12 = nextT(_local3); oldPath = _local3; nextX = ((whereBoxX() + _local12.x) * par.SIZE); nextY = ((whereBoxY() + _local12.y) * par.SIZE); }; } public function hpRatio():Number{ var _local1:*; _local1 = Math.round(((health / MAXHP) * 100)); return (_local1); } function normalisasiFormasi(_arg1:Number, _arg2:Boolean):Number{ if (_arg2){ _arg1--; if (_arg1 < 1){ _arg1 = 8; }; } else { _arg1 = (_arg1 + 1); if (_arg1 > 8){ _arg1 = 1; }; }; return (_arg1); } public function Move(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null, _arg4:Array=null, _arg5:Array=null):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:*; par = this.parent; map = _arg1; if (isDead == false){ if (hpshow > 0){ hpshow--; } else { needHelp = false; counterHelp = 0; }; if (State == "idle"){ counterHit = 0; helping = false; if (behaviour == "obey"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "idle"){ for (_local6 in _arg4) { if (_arg4[_local6].isDead == false){ if (_arg4[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg4[_local6].x - x), 2) + Math.pow((_arg4[_local6].y - y), 2)))); if (_local7 < rangeHelp){ _local8 = par.formation[_arg4[_local6].counterHelp]; gotoMove((_arg4[_local6].xhelp + _local8.x), (_arg4[_local6].yhelp + _local8.y), true); _arg4[_local6].okayHelp(); }; }; }; }; }; if (State == "idle"){ for (_local6 in _arg5) { if (_arg5[_local6].isDead == false){ if (_arg5[_local6].needHelp == true){ _local7 = Math.round(Math.sqrt((Math.pow((_arg5[_local6].x - x), 2) + Math.pow((_arg5[_local6].y - y), 2)))); if (_local7 < rangeHelp){ gotoMove(_arg5[_local6].xhelp, _arg5[_local6].yhelp, true); }; }; }; }; }; }; if (behaviour == "agresif"){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (helping == true){ if (State != "attack"){ for (_local6 in _arg2) { _local7 = Math.round(Math.sqrt((Math.pow((_arg2[_local6].x - x), 2) + Math.pow((_arg2[_local6].y - y), 2)))); rangeBuild = 0; if (_local7 < range){ TargetFire = _arg2[_local6]; State = "attack"; }; }; }; if (State != "attack"){ for (_local6 in _arg3) { _local7 = Math.round(Math.sqrt((Math.pow((_arg3[_local6].x - x), 2) + Math.pow((_arg3[_local6].y - y), 2)))); rangeBuild = 10; if (_local7 < (range + rangeBuild)){ TargetFire = _arg3[_local6]; State = "attack"; }; }; }; }; if (State == "move"){ if ((((whereBoxX() == MOVEX)) && ((whereBoxY() == MOVEY)))){ State = "idle"; }; if ((((okX == true)) && ((okY == true)))){ calcMove(); }; arahX = 0; arahY = 0; if (okX == false){ if (x < nextX){ x = (x + speed); arahX = 1; if (x >= nextX){ okX = true; }; } else { x = (x - speed); arahX = -1; if (x <= nextX){ okX = true; }; }; }; if (okY == false){ if (y < nextY){ arahY = 1; y = (y + speed); if (y >= nextY){ okY = true; }; } else { arahY = -1; y = (y - speed); if (y <= nextY){ okY = true; }; }; }; goRotate(arahX, arahY); }; if (behaviour == "obey"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 <= range){ State = "attack"; }; }; }; if (State == "attack"){ if (TargetFire != null){ _local7 = Math.round(Math.sqrt((Math.pow((TargetFire.x - x), 2) + Math.pow((TargetFire.y - y), 2)))); if (_local7 > (range + rangeBuild)){ State = "idle"; }; if (TargetFire.isDead == true){ State = "idle"; TargetFire = null; }; }; if (State == "attack"){ _local9 = (TargetFire.x - x); _local10 = (TargetFire.y - y); _local11 = Math.atan2(_local10, _local9); _local12 = ((_local11 * 180) / Math.PI); rotation = (_local12 + 90); if (reloadTime > 0){ reloadTime--; } else { reloadTime = RELOADTIME; _local13 = new Peluru7(x, y, TargetFire.x, TargetFire.y, TargetFire, damage); par.addChild(_local13); par.playSound("gun6", this); play(); }; }; }; }; } } }//package
Section 269
//Water (Water) package { import flash.geom.*; import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.utils.*; import flash.xml.*; public dynamic class Water extends MovieClip { public var par; public function Water(){ addFrameScript(21, frame22); } function frame22(){ stop(); par = this.parent; par.removeChild(this); } } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:3
Symbol 3 MovieClipUses:2Used by:4 36 1007
Symbol 4 MovieClipUses:3Used by:14 21 28 35 610 620
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:7
Symbol 7 MovieClipUses:6Used by:14
Symbol 8 GraphicUsed by:9 114 330 480 732 742 778 799 803 1056 1272 1418 1422 1423 1424 1425 1426 1427 1428 1429 1430
Symbol 9 MovieClipUses:8Used by:14 21 28 35 44 52 59 66 80 591 601 610 620 778 1216 1217 1247 1324 1496
Symbol 10 BitmapUsed by:12 19 26 33
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:10 11Used by:13
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClip {Unit7}Uses:4 7 9 13Used by:Timeline
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:17
Symbol 17 MovieClipUses:16Used by:21
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:10 18Used by:20
Symbol 20 MovieClipUses:19Used by:21
Symbol 21 MovieClip {Unit6}Uses:4 17 9 20Used by:Timeline
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:24
Symbol 24 MovieClipUses:23Used by:28
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:10 25Used by:27
Symbol 27 MovieClipUses:26Used by:28
Symbol 28 MovieClip {Unit5}Uses:4 24 9 27Used by:Timeline
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:31
Symbol 31 MovieClipUses:30Used by:35
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:10 32Used by:34
Symbol 34 MovieClipUses:33Used by:35
Symbol 35 MovieClip {Unit4}Uses:4 31 9 34Used by:Timeline
Symbol 36 MovieClipUses:3Used by:44 52 59 66 591 601
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:39
Symbol 39 MovieClipUses:38Used by:44
Symbol 40 BitmapUsed by:42 50
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:40 41Used by:43
Symbol 43 MovieClipUses:42Used by:44
Symbol 44 MovieClip {Unit3}Uses:36 39 9 43Used by:Timeline
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:47
Symbol 47 MovieClipUses:46Used by:52
Symbol 48 BitmapUsed by:50
Symbol 49 BitmapUsed by:50 57 64
Symbol 50 GraphicUses:40 48 49Used by:51
Symbol 51 MovieClipUses:50Used by:52
Symbol 52 MovieClip {Unit2}Uses:36 47 9 51Used by:Timeline
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:55
Symbol 55 MovieClipUses:54Used by:59
Symbol 56 BitmapUsed by:57
Symbol 57 GraphicUses:49 56Used by:58
Symbol 58 MovieClipUses:57Used by:59
Symbol 59 MovieClip {Unit1}Uses:36 55 9 58Used by:Timeline
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:62
Symbol 62 MovieClipUses:61Used by:66
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:49 63Used by:65
Symbol 65 MovieClipUses:64Used by:66
Symbol 66 MovieClip {Unit}Uses:36 62 9 65Used by:Timeline
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:69 73
Symbol 69 MovieClipUses:68Used by:73
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:73
Symbol 73 MovieClipUses:69 72 68Used by:80
Symbol 74 BitmapUsed by:75
Symbol 75 GraphicUses:74Used by:76
Symbol 76 MovieClipUses:75Used by:80
Symbol 77 BitmapUsed by:78
Symbol 78 GraphicUses:77Used by:79
Symbol 79 MovieClipUses:78Used by:80
Symbol 80 MovieClip {Safety}Uses:73 76 9 79Used by:1217  Timeline
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 MovieClip {FogC}Uses:82Used by:Timeline
Symbol 84 GraphicUsed by:85 1155 1215
Symbol 85 MovieClip {FogAll}Uses:84Used by:Timeline
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:88
Symbol 88 MovieClip {Fog2}Uses:87Used by:Timeline
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:Timeline
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:95
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:93Used by:95
Symbol 95 MovieClipUses:92 94Used by:Timeline
Symbol 96 GraphicUsed by:100
Symbol 97 GraphicUsed by:100
Symbol 98 GraphicUsed by:100
Symbol 99 GraphicUsed by:100
Symbol 100 ButtonUses:96 97 98 99Used by:Timeline
Symbol 101 GraphicUsed by:104
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClipUses:102Used by:104
Symbol 104 MovieClipUses:101 103Used by:Timeline
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses:105Used by:107 1415
Symbol 107 MovieClip {BattleFieldArenav2_fla.Kursor_6}Uses:106Used by:Timeline
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:108Used by:Timeline
Symbol 110 GraphicUsed by:Timeline
Symbol 111 ShapeTweeningUsed by:114
Symbol 112 ShapeTweeningUsed by:114
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:8 111 112 113Used by:115 116 131 165 183 196 213 229 245 257 269 275 289 304 316 321 326 329 1269
Symbol 115 MovieClip {HpBar}Uses:114Used by:Timeline
Symbol 116 MovieClip {HpBarE}Uses:114Used by:Timeline
Symbol 117 BitmapUsed by:118 127 999
Symbol 118 GraphicUses:117Used by:126
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:126
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:126
Symbol 123 BitmapUsed by:125 130 999
Symbol 124 BitmapUsed by:125 128 999
Symbol 125 GraphicUses:123 124Used by:126
Symbol 126 MovieClip {BattleFieldArenav2_fla.bangunanutamalakon1_13}Uses:118 120 122 125Used by:131
Symbol 127 GraphicUses:117Used by:131
Symbol 128 GraphicUses:124Used by:129
Symbol 129 MovieClipUses:128Used by:131
Symbol 130 GraphicUses:123Used by:131
Symbol 131 MovieClip {Barrack}Uses:126 114 127 129 130Used by:Timeline
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:140
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:140
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:140
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:140
Symbol 140 MovieClip {BattleFieldArenav2_fla.animasibangunairplane_16}Uses:133 135 137 139Used by:165
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:155 162 165 1000
Symbol 143 BitmapUsed by:144
Symbol 144 GraphicUses:143Used by:145 150 1000
Symbol 145 MovieClipUses:144Used by:165
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:164 165 1000
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:164 165 1000
Symbol 150 MovieClipUses:144Used by:164
Symbol 151 BitmapUsed by:152
Symbol 152 GraphicUses:151Used by:155
Symbol 153 BitmapUsed by:154
Symbol 154 GraphicUses:153Used by:155
Symbol 155 MovieClipUses:142 152 154Used by:163
Symbol 156 BitmapUsed by:157 593 595
Symbol 157 GraphicUses:156Used by:162
Symbol 158 BitmapUsed by:159 160 161 595 599
Symbol 159 GraphicUses:158Used by:162
Symbol 160 GraphicUses:158Used by:162
Symbol 161 GraphicUses:158Used by:162
Symbol 162 MovieClipUses:142 157 159 160 161Used by:163
Symbol 163 MovieClip {BattleFieldArenav2_fla.AnimasiCreate_20}Uses:155 162Used by:164
Symbol 164 MovieClip {BattleFieldArenav2_fla.airlandlakon_18}Uses:150 163 147 149Used by:165
Symbol 165 MovieClip {BarrackAir}Uses:140 114 142 145 147 149 164Used by:Timeline
Symbol 166 BitmapUsed by:167
Symbol 167 GraphicUses:166Used by:174
Symbol 168 BitmapUsed by:169
Symbol 169 GraphicUses:168Used by:174
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:174
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:174
Symbol 174 MovieClip {BattleFieldArenav2_fla.animasibangunairplanemusuh_24}Uses:167 169 171 173Used by:183
Symbol 175 BitmapUsed by:176
Symbol 176 GraphicUses:175Used by:182 183
Symbol 177 BitmapUsed by:178 180
Symbol 178 GraphicUses:177Used by:179
Symbol 179 MovieClipUses:178Used by:183
Symbol 180 GraphicUses:177Used by:181
Symbol 181 MovieClipUses:180Used by:182
Symbol 182 MovieClip {BattleFieldArenav2_fla.airlandmusuh_26}Uses:176 181Used by:183
Symbol 183 MovieClip {BarrackAirEnemy}Uses:174 114 176 179 182Used by:Timeline
Symbol 184 BitmapUsed by:185 193
Symbol 185 GraphicUses:184Used by:192
Symbol 186 BitmapUsed by:187 193
Symbol 187 GraphicUses:186Used by:192
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:192
Symbol 190 BitmapUsed by:191 194
Symbol 191 GraphicUses:190Used by:192
Symbol 192 MovieClip {BattleFieldArenav2_fla.bangunanmusuhutama2_29}Uses:185 187 189 191Used by:196
Symbol 193 GraphicUses:186 184Used by:196
Symbol 194 GraphicUses:190Used by:195
Symbol 195 MovieClipUses:194Used by:196
Symbol 196 MovieClip {BarrackEnemy}Uses:192 114 193 195Used by:Timeline
Symbol 197 BitmapUsed by:198
Symbol 198 GraphicUses:197Used by:199
Symbol 199 MovieClipUses:198Used by:200
Symbol 200 MovieClip {Gold}Uses:199Used by:Timeline
Symbol 201 BitmapUsed by:202 210 998
Symbol 202 GraphicUses:201Used by:209
Symbol 203 BitmapUsed by:204 210 998
Symbol 204 GraphicUses:203Used by:209
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:209
Symbol 207 BitmapUsed by:208 211 998
Symbol 208 GraphicUses:207Used by:209
Symbol 209 MovieClip {BattleFieldArenav2_fla.bangunanutamalakon_34}Uses:202 204 206 208Used by:213
Symbol 210 GraphicUses:203 201Used by:213
Symbol 211 GraphicUses:207Used by:212
Symbol 212 MovieClipUses:211Used by:213
Symbol 213 MovieClip {MainBuilding}Uses:209 114 210 212Used by:Timeline
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:226 229
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:226 229
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:226 229
Symbol 220 BitmapUsed by:221
Symbol 221 GraphicUses:220Used by:226 229
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:226 229
Symbol 224 BitmapUsed by:225 227
Symbol 225 GraphicUses:224Used by:226
Symbol 226 MovieClip {BattleFieldArenav2_fla.bangunanutamamusuh_37}Uses:215 217 219 221 223 225Used by:229
Symbol 227 GraphicUses:224Used by:228
Symbol 228 MovieClipUses:227Used by:229
Symbol 229 MovieClip {MainEnemyBuilding}Uses:226 114 228 219 221 223 215 217Used by:Timeline
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:238
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:238
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:238
Symbol 236 BitmapUsed by:237 243
Symbol 237 GraphicUses:236Used by:238
Symbol 238 MovieClip {BattleFieldArenav2_fla.moneypointbaselakon_40}Uses:231 233 235 237Used by:245
Symbol 239 FontUsed by:240
Symbol 240 TextUses:239Used by:241
Symbol 241 MovieClipUses:240Used by:242
Symbol 242 MovieClip {BattleFieldArenav2_fla.AddGoldAnimasi_41}Uses:241Used by:245
Symbol 243 GraphicUses:236Used by:244
Symbol 244 MovieClipUses:243Used by:245 1000
Symbol 245 MovieClip {Miner}Uses:238 242 114 244Used by:Timeline
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:254
Symbol 248 BitmapUsed by:249
Symbol 249 GraphicUses:248Used by:254
Symbol 250 BitmapUsed by:251
Symbol 251 GraphicUses:250Used by:254
Symbol 252 BitmapUsed by:253 255
Symbol 253 GraphicUses:252Used by:254
Symbol 254 MovieClip {BattleFieldArenav2_fla.moneypointbasemusuh_45}Uses:247 249 251 253Used by:257
Symbol 255 GraphicUses:252Used by:256
Symbol 256 MovieClipUses:255Used by:257
Symbol 257 MovieClip {MinerEnemy}Uses:254 114 256Used by:Timeline
Symbol 258 BitmapUsed by:259 267 273
Symbol 259 GraphicUses:258Used by:266 272
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:266 272
Symbol 262 BitmapUsed by:263
Symbol 263 GraphicUses:262Used by:266 272
Symbol 264 BitmapUsed by:265 267
Symbol 265 GraphicUses:264Used by:266
Symbol 266 MovieClip {BattleFieldArenav2_fla.plustopopulationlakon_48}Uses:259 261 263 265Used by:269
Symbol 267 GraphicUses:264 258Used by:268
Symbol 268 MovieClipUses:267Used by:269 1000
Symbol 269 MovieClip {Store}Uses:266 114 268Used by:Timeline
Symbol 270 BitmapUsed by:271 273
Symbol 271 GraphicUses:270Used by:272
Symbol 272 MovieClip {BattleFieldArenav2_fla.plustopopolation_51}Uses:259 261 263 271Used by:275
Symbol 273 GraphicUses:270 258Used by:274
Symbol 274 MovieClipUses:273Used by:275
Symbol 275 MovieClip {StoreEnemy}Uses:272 114 274Used by:Timeline
Symbol 276 BitmapUsed by:277
Symbol 277 GraphicUses:276Used by:282
Symbol 278 BitmapUsed by:279
Symbol 279 GraphicUses:278Used by:282
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:282
Symbol 282 MovieClip {BattleFieldArenav2_fla.constructtowerrudal_54}Uses:277 279 281Used by:289
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:289 1000
Symbol 285 BitmapUsed by:287
Symbol 286 BitmapUsed by:287
Symbol 287 GraphicUses:285 286Used by:288
Symbol 288 MovieClipUses:287Used by:289 1000
Symbol 289 MovieClip {Tower1}Uses:282 114 284 288Used by:Timeline
Symbol 290 BitmapUsed by:291
Symbol 291 GraphicUses:290Used by:296
Symbol 292 BitmapUsed by:293
Symbol 293 GraphicUses:292Used by:296
Symbol 294 BitmapUsed by:295
Symbol 295 GraphicUses:294Used by:296
Symbol 296 MovieClip {BattleFieldArenav2_fla.constructtowershot_57}Uses:291 293 295Used by:304
Symbol 297 BitmapUsed by:300
Symbol 298 BitmapUsed by:300
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:297 298 299Used by:304 1000
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:303
Symbol 303 MovieClipUses:302Used by:304 1000
Symbol 304 MovieClip {Tower2}Uses:296 114 300 303Used by:Timeline
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:311
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:311
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:311
Symbol 311 MovieClip {BattleFieldArenav2_fla.constructtowerlistrik_60}Uses:306 308 310Used by:316
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClip {Cek2}Uses:312Used by:316 329 920  Timeline
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:316 1000
Symbol 316 MovieClip {Tower3}Uses:311 313 114 315Used by:Timeline
Symbol 317 BitmapUsed by:319
Symbol 318 BitmapUsed by:319
Symbol 319 GraphicUses:317 318Used by:320
Symbol 320 MovieClipUses:319Used by:321
Symbol 321 MovieClip {Tower1E}Uses:320 114Used by:Timeline
Symbol 322 BitmapUsed by:324
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:322 323Used by:325
Symbol 325 MovieClipUses:324Used by:326
Symbol 326 MovieClip {Tower2E}Uses:325 114Used by:Timeline
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:329
Symbol 329 MovieClip {Tower3E}Uses:328 313 114Used by:Timeline
Symbol 330 MovieClip {Cek4}Uses:8Used by:794 1017 1125 1440 1519  Timeline
Symbol 331 BitmapUsed by:332
Symbol 332 GraphicUses:331Used by:343
Symbol 333 BitmapUsed by:334
Symbol 334 GraphicUses:333Used by:343
Symbol 335 BitmapUsed by:336
Symbol 336 GraphicUses:335Used by:343
Symbol 337 BitmapUsed by:338
Symbol 338 GraphicUses:337Used by:343
Symbol 339 BitmapUsed by:340
Symbol 340 GraphicUses:339Used by:343
Symbol 341 BitmapUsed by:342
Symbol 342 GraphicUses:341Used by:343
Symbol 343 MovieClipUses:332 334 336 338 340 342Used by:344
Symbol 344 MovieClip {Blow1}Uses:343Used by:Timeline
Symbol 345 BitmapUsed by:346
Symbol 346 GraphicUses:345Used by:385
Symbol 347 BitmapUsed by:348
Symbol 348 GraphicUses:347Used by:385
Symbol 349 BitmapUsed by:350
Symbol 350 GraphicUses:349Used by:385
Symbol 351 BitmapUsed by:352
Symbol 352 GraphicUses:351Used by:385
Symbol 353 BitmapUsed by:354
Symbol 354 GraphicUses:353Used by:385
Symbol 355 BitmapUsed by:356
Symbol 356 GraphicUses:355Used by:385
Symbol 357 BitmapUsed by:358
Symbol 358 GraphicUses:357Used by:385
Symbol 359 BitmapUsed by:360
Symbol 360 GraphicUses:359Used by:385
Symbol 361 BitmapUsed by:362
Symbol 362 GraphicUses:361Used by:385
Symbol 363 BitmapUsed by:364
Symbol 364 GraphicUses:363Used by:385
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:385
Symbol 367 BitmapUsed by:368
Symbol 368 GraphicUses:367Used by:385
Symbol 369 BitmapUsed by:370
Symbol 370 GraphicUses:369Used by:385
Symbol 371 BitmapUsed by:372
Symbol 372 GraphicUses:371Used by:385
Symbol 373 BitmapUsed by:374
Symbol 374 GraphicUses:373Used by:385
Symbol 375 BitmapUsed by:376
Symbol 376 GraphicUses:375Used by:385
Symbol 377 BitmapUsed by:378
Symbol 378 GraphicUses:377Used by:385
Symbol 379 BitmapUsed by:380
Symbol 380 GraphicUses:379Used by:385
Symbol 381 BitmapUsed by:382
Symbol 382 GraphicUses:381Used by:385
Symbol 383 BitmapUsed by:384
Symbol 384 GraphicUses:383Used by:385
Symbol 385 MovieClipUses:346 348 350 352 354 356 358 360 362 364 366 368 370 372 374 376 378 380 382 384Used by:386
Symbol 386 MovieClip {Blow2}Uses:385Used by:Timeline
Symbol 387 BitmapUsed by:388
Symbol 388 GraphicUses:387Used by:423
Symbol 389 BitmapUsed by:390
Symbol 390 GraphicUses:389Used by:423
Symbol 391 BitmapUsed by:392
Symbol 392 GraphicUses:391Used by:423
Symbol 393 BitmapUsed by:394
Symbol 394 GraphicUses:393Used by:423
Symbol 395 BitmapUsed by:396
Symbol 396 GraphicUses:395Used by:423
Symbol 397 BitmapUsed by:398
Symbol 398 GraphicUses:397Used by:423
Symbol 399 BitmapUsed by:400
Symbol 400 GraphicUses:399Used by:423
Symbol 401 BitmapUsed by:402
Symbol 402 GraphicUses:401Used by:423
Symbol 403 BitmapUsed by:404
Symbol 404 GraphicUses:403Used by:423
Symbol 405 BitmapUsed by:406
Symbol 406 GraphicUses:405Used by:423
Symbol 407 BitmapUsed by:408
Symbol 408 GraphicUses:407Used by:423
Symbol 409 BitmapUsed by:410
Symbol 410 GraphicUses:409Used by:423
Symbol 411 BitmapUsed by:412
Symbol 412 GraphicUses:411Used by:423
Symbol 413 BitmapUsed by:414
Symbol 414 GraphicUses:413Used by:423
Symbol 415 BitmapUsed by:416
Symbol 416 GraphicUses:415Used by:423
Symbol 417 BitmapUsed by:418
Symbol 418 GraphicUses:417Used by:423
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:423
Symbol 421 BitmapUsed by:422
Symbol 422 GraphicUses:421Used by:423
Symbol 423 MovieClipUses:388 390 392 394 396 398 400 402 404 406 408 410 412 414 416 418 420 422Used by:424
Symbol 424 MovieClip {BlowBuild1}Uses:423Used by:Timeline
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:427 428
Symbol 427 MovieClip {BlowEfek}Uses:426Used by:Timeline
Symbol 428 MovieClip {BlowEfek2}Uses:426Used by:Timeline
Symbol 429 GraphicUsed by:433
Symbol 430 GraphicUsed by:433
Symbol 431 GraphicUsed by:433
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClipUses:429 430 431 432Used by:434
Symbol 434 MovieClip {Hit}Uses:433Used by:Timeline
Symbol 435 BitmapUsed by:436
Symbol 436 GraphicUses:435Used by:437
Symbol 437 MovieClip {Huge1}Uses:436Used by:1028 1032 1096 1105  Timeline
Symbol 438 BitmapUsed by:439
Symbol 439 GraphicUses:438Used by:440 1044
Symbol 440 MovieClip {Huge2}Uses:439Used by:1028 1038 1096 1105 1106  Timeline
Symbol 441 BitmapUsed by:442
Symbol 442 GraphicUses:441Used by:443 1043
Symbol 443 MovieClip {Huge3}Uses:442Used by:1028 1032 1038 1096 1105 1106  Timeline
Symbol 444 BitmapUsed by:445
Symbol 445 GraphicUses:444Used by:446
Symbol 446 MovieClip {Huge7}Uses:445Used by:1038 1106  Timeline
Symbol 447 BitmapUsed by:448
Symbol 448 GraphicUses:447Used by:449
Symbol 449 MovieClip {Huge8}Uses:448Used by:1038 1106  Timeline
Symbol 450 BitmapUsed by:451
Symbol 451 GraphicUses:450Used by:452
Symbol 452 MovieClip {Huge9}Uses:451Used by:1038 1106  Timeline
Symbol 453 BitmapUsed by:454
Symbol 454 GraphicUses:453Used by:455
Symbol 455 MovieClip {Huge12}Uses:454Used by:1090 1107  Timeline
Symbol 456 BitmapUsed by:457
Symbol 457 GraphicUses:456Used by:458
Symbol 458 MovieClip {Huge11}Uses:457Used by:1090 1107  Timeline
Symbol 459 BitmapUsed by:460
Symbol 460 GraphicUses:459Used by:461
Symbol 461 MovieClip {Huge13}Uses:460Used by:1090 1107  Timeline
Symbol 462 BitmapUsed by:463
Symbol 463 GraphicUses:462Used by:464
Symbol 464 MovieClip {Huge14}Uses:463Used by:1090  Timeline
Symbol 465 BitmapUsed by:466
Symbol 466 GraphicUses:465Used by:467
Symbol 467 MovieClip {Huge10}Uses:466Used by:1090 1107  Timeline
Symbol 468 BitmapUsed by:469
Symbol 469 GraphicUses:468Used by:470
Symbol 470 MovieClip {Obs10}Uses:469Used by:1090 1107  Timeline
Symbol 471 BitmapUsed by:472
Symbol 472 GraphicUses:471Used by:473
Symbol 473 MovieClip {Obs11}Uses:472Used by:1090 1107  Timeline
Symbol 474 BitmapUsed by:475
Symbol 475 GraphicUses:474Used by:476
Symbol 476 MovieClip {Obs1}Uses:475Used by:1024 1095  Timeline
Symbol 477 BitmapUsed by:478
Symbol 478 GraphicUses:477Used by:479 1042
Symbol 479 MovieClip {Obs12}Uses:478Used by:1038 1106  Timeline
Symbol 480 MovieClip {Obs14}Uses:8Used by:1032  Timeline
Symbol 481 BitmapUsed by:482
Symbol 482 GraphicUses:481Used by:483
Symbol 483 MovieClip {Obs6}Uses:482Used by:1028 1096  Timeline
Symbol 484 BitmapUsed by:485
Symbol 485 GraphicUses:484Used by:486
Symbol 486 MovieClip {Obs7}Uses:485Used by:1028 1096  Timeline
Symbol 487 BitmapUsed by:488
Symbol 488 GraphicUses:487Used by:489
Symbol 489 MovieClip {Obs8}Uses:488Used by:1028 1096  Timeline
Symbol 490 BitmapUsed by:491
Symbol 491 GraphicUses:490Used by:492
Symbol 492 MovieClip {Obs9}Uses:491Used by:1028 1096  Timeline
Symbol 493 BitmapUsed by:494
Symbol 494 GraphicUses:493Used by:495
Symbol 495 MovieClip {Obs2}Uses:494Used by:1024 1095  Timeline
Symbol 496 BitmapUsed by:497
Symbol 497 GraphicUses:496Used by:498
Symbol 498 MovieClip {Obs3}Uses:497Used by:1024 1095  Timeline
Symbol 499 BitmapUsed by:500
Symbol 500 GraphicUses:499Used by:501
Symbol 501 MovieClip {Obs4}Uses:500Used by:1024 1095  Timeline
Symbol 502 BitmapUsed by:503
Symbol 503 GraphicUses:502Used by:504
Symbol 504 MovieClip {Huge15}Uses:503Used by:1032 1105  Timeline
Symbol 505 BitmapUsed by:506
Symbol 506 GraphicUses:505Used by:507
Symbol 507 MovieClip {Huge16}Uses:506Used by:1032 1105  Timeline
Symbol 508 BitmapUsed by:509
Symbol 509 GraphicUses:508Used by:510 1054
Symbol 510 MovieClip {Obs13}Uses:509Used by:1038 1106  Timeline
Symbol 511 BitmapUsed by:512
Symbol 512 GraphicUses:511Used by:513
Symbol 513 MovieClip {Obs5}Uses:512Used by:1024 1095  Timeline
Symbol 514 BitmapUsed by:515
Symbol 515 GraphicUses:514Used by:516
Symbol 516 MovieClip {Huge4}Uses:515Used by:Timeline
Symbol 517 BitmapUsed by:518
Symbol 518 GraphicUses:517Used by:519
Symbol 519 MovieClip {Huge5}Uses:518Used by:Timeline
Symbol 520 BitmapUsed by:521
Symbol 521 GraphicUses:520Used by:522
Symbol 522 MovieClip {Huge6}Uses:521Used by:Timeline
Symbol 523 GraphicUsed by:524 525 532 572 632
Symbol 524 MovieClip {MiniA}Uses:523Used by:Timeline
Symbol 525 MovieClip {MiniB}Uses:523Used by:Timeline
Symbol 526 GraphicUsed by:527 528 531
Symbol 527 MovieClip {MiniC}Uses:526Used by:Timeline
Symbol 528 MovieClip {MiniD}Uses:526Used by:Timeline
Symbol 529 GraphicUsed by:530
Symbol 530 MovieClip {MiniE}Uses:529Used by:Timeline
Symbol 531 MovieClip {MiniF}Uses:526Used by:Timeline
Symbol 532 MovieClipUses:523Used by:533
Symbol 533 MovieClip {MiniGlow}Uses:532Used by:Timeline
Symbol 534 BitmapUsed by:535
Symbol 535 GraphicUses:534Used by:536
Symbol 536 MovieClipUses:535Used by:537 538
Symbol 537 MovieClip {Smoke}Uses:536Used by:Timeline
Symbol 538 MovieClip {Water}Uses:536Used by:Timeline
Symbol 539 BitmapUsed by:540
Symbol 540 GraphicUses:539Used by:541 573
Symbol 541 MovieClip {Peluru1}Uses:540Used by:Timeline
Symbol 542 BitmapUsed by:543
Symbol 543 GraphicUses:542Used by:544 578
Symbol 544 MovieClip {Peluru2}Uses:543Used by:Timeline
Symbol 545 BitmapUsed by:546
Symbol 546 GraphicUses:545Used by:547
Symbol 547 MovieClip {Peluru3}Uses:546Used by:Timeline
Symbol 548 BitmapUsed by:549
Symbol 549 GraphicUses:548Used by:550
Symbol 550 MovieClip {Peluru4}Uses:549Used by:Timeline
Symbol 551 BitmapUsed by:552
Symbol 552 GraphicUses:551Used by:553
Symbol 553 MovieClip {Peluru5}Uses:552Used by:Timeline
Symbol 554 BitmapUsed by:555
Symbol 555 GraphicUses:554Used by:556
Symbol 556 MovieClip {Peluru6}Uses:555Used by:Timeline
Symbol 557 BitmapUsed by:558
Symbol 558 GraphicUses:557Used by:559
Symbol 559 MovieClipUses:558Used by:560 565
Symbol 560 MovieClip {Peluru7}Uses:559Used by:Timeline
Symbol 561 BitmapUsed by:562
Symbol 562 GraphicUses:561Used by:563
Symbol 563 MovieClipUses:562Used by:564 566
Symbol 564 MovieClip {Peluru8}Uses:563Used by:Timeline
Symbol 565 MovieClip {Peluru9}Uses:559Used by:Timeline
Symbol 566 MovieClip {Peluru10}Uses:563Used by:Timeline
Symbol 567 BitmapUsed by:568
Symbol 568 GraphicUses:567Used by:569
Symbol 569 MovieClip {BattleFieldArenav2_fla.pelurubigbossmusuh_135}Uses:568Used by:570 571
Symbol 570 MovieClip {PeluruBig}Uses:569Used by:Timeline
Symbol 571 MovieClip {PeluruBigSplash}Uses:569Used by:Timeline
Symbol 572 MovieClip {Roket}Uses:523Used by:Timeline
Symbol 573 MovieClipUses:540Used by:576 577
Symbol 574 GraphicUsed by:575 1330 1342 1379 1563 1566 1582
Symbol 575 MovieClipUses:574Used by:576 580 1217
Symbol 576 MovieClip {Splash}Uses:573 575Used by:Timeline
Symbol 577 MovieClip {SplashBuletFade}Uses:573Used by:Timeline
Symbol 578 MovieClipUses:543Used by:579 580
Symbol 579 MovieClip {SplashBuletFadeE}Uses:578Used by:Timeline
Symbol 580 MovieClip {SplashE}Uses:578 575Used by:Timeline
Symbol 581 BitmapUsed by:582
Symbol 582 GraphicUses:581Used by:583
Symbol 583 MovieClipUses:582Used by:591
Symbol 584 BitmapUsed by:585
Symbol 585 GraphicUses:584Used by:586
Symbol 586 MovieClipUses:585Used by:591
Symbol 587 BitmapUsed by:589
Symbol 588 BitmapUsed by:589
Symbol 589 GraphicUses:587 588Used by:590
Symbol 590 MovieClipUses:589Used by:591
Symbol 591 MovieClip {Air1}Uses:36 583 9 586 590Used by:Timeline
Symbol 592 BitmapUsed by:593 608
Symbol 593 GraphicUses:156 592Used by:594
Symbol 594 MovieClipUses:593Used by:601
Symbol 595 GraphicUses:156 158Used by:596
Symbol 596 MovieClipUses:595Used by:601
Symbol 597 BitmapUsed by:599
Symbol 598 BitmapUsed by:599 605 608 614 618
Symbol 599 GraphicUses:597 598 158Used by:600
Symbol 600 MovieClipUses:599Used by:601
Symbol 601 MovieClip {Air2}Uses:36 594 9 596 600Used by:Timeline
Symbol 602 BitmapUsed by:603 605
Symbol 603 GraphicUses:602Used by:604
Symbol 604 MovieClipUses:603Used by:610
Symbol 605 GraphicUses:602 598Used by:606
Symbol 606 MovieClipUses:605Used by:610
Symbol 607 BitmapUsed by:608
Symbol 608 GraphicUses:607 598 592Used by:609
Symbol 609 MovieClipUses:608Used by:610
Symbol 610 MovieClip {Air3}Uses:4 604 9 606 609Used by:Timeline
Symbol 611 BitmapUsed by:612 614
Symbol 612 GraphicUses:611Used by:613
Symbol 613 MovieClipUses:612Used by:620
Symbol 614 GraphicUses:611 598Used by:615
Symbol 615 MovieClipUses:614Used by:620
Symbol 616 BitmapUsed by:618
Symbol 617 BitmapUsed by:618
Symbol 618 GraphicUses:616 617 598Used by:619
Symbol 619 MovieClipUses:618Used by:620
Symbol 620 MovieClip {Air4}Uses:4 613 9 615 619Used by:Timeline
Symbol 621 BitmapUsed by:622
Symbol 622 GraphicUses:621Used by:623
Symbol 623 MovieClipUses:622Used by:626
Symbol 624 BitmapUsed by:625
Symbol 625 GraphicUses:624Used by:626
Symbol 626 MovieClip {BattleFieldArenav2_fla.Tween3_168}Uses:623 625Used by:627
Symbol 627 MovieClip {BattleFieldArenav2_fla.idle_167}Uses:626Used by:639
Symbol 628 BitmapUsed by:629
Symbol 629 GraphicUses:628Used by:632
Symbol 630 BitmapUsed by:631
Symbol 631 GraphicUses:630Used by:632
Symbol 632 MovieClipUses:523 629 631Used by:639 1346
Symbol 633 BitmapUsed by:634
Symbol 634 GraphicUses:633Used by:635
Symbol 635 MovieClipUses:634Used by:638
Symbol 636 BitmapUsed by:637
Symbol 637 GraphicUses:636Used by:638
Symbol 638 MovieClip {BattleFieldArenav2_fla.bigbossmusuhkenatembak_171}Uses:635 637Used by:639
Symbol 639 MovieClip {Boss}Uses:627 632 638Used by:1217  Timeline
Symbol 640 Sound {Result}Used by:718
Symbol 641 Sound {InGame}Used by:718
Symbol 642 Sound {BossBattle}Used by:718
Symbol 643 Sound {MenuUtama}Used by:718
Symbol 644 Sound {MapSelect}Used by:718
Symbol 645 Sound {ED}Used by:718
Symbol 646 Sound {Lose}Used by:718
Symbol 647 Sound {Op}Used by:718
Symbol 648 Sound {BossMove}Used by:718
Symbol 649 Sound {BossShot2}Used by:718
Symbol 650 Sound {MoveBtn}Used by:718
Symbol 651 Sound {Beep}Used by:718
Symbol 652 Sound {ExploBig3}Used by:718
Symbol 653 Sound {ExploBig2}Used by:718
Symbol 654 Sound {Explo1}Used by:718
Symbol 655 Sound {Explo2}Used by:718
Symbol 656 Sound {ExploBig1}Used by:718
Symbol 657 Sound {ExploBig}Used by:718
Symbol 658 Sound {ExploBig4}Used by:718
Symbol 659 Sound {NotBtn}Used by:718
Symbol 660 Sound {OkayBtn}Used by:718
Symbol 661 Sound {Gun1}Used by:718
Symbol 662 Sound {Gun2}Used by:718
Symbol 663 Sound {Gun3}Used by:718
Symbol 664 Sound {Gun4}Used by:718
Symbol 665 Sound {Gun5}Used by:718
Symbol 666 Sound {Gun6}Used by:718
Symbol 667 Sound {BossShot}Used by:718
Symbol 668 Sound {Pause}Used by:718
Symbol 669 Sound {Sirene}Used by:718
Symbol 670 Sound {Move1}Used by:718
Symbol 671 Sound {Brede}Used by:718
Symbol 672 Sound {Bsilo}Used by:718
Symbol 673 Sound {Blost}Used by:718
Symbol 674 Sound {Danger}Used by:718
Symbol 675 Sound {Goldless}Used by:718
Symbol 676 Sound {Bsilo2}Used by:718
Symbol 677 Sound {Move2}Used by:718
Symbol 678 Sound {Move3}Used by:718
Symbol 679 Sound {Rede1}Used by:718
Symbol 680 Sound {Rede2}Used by:718
Symbol 681 Sound {Move4}Used by:718
Symbol 682 Sound {Drain}Used by:718
Symbol 683 Sound {NewMove1}Used by:718
Symbol 684 Sound {NewMove2}Used by:718
Symbol 685 Sound {NewMove3}Used by:718
Symbol 686 Sound {NewMove4}Used by:718
Symbol 687 Sound {NewMove5}Used by:718
Symbol 688 Sound {NewMove6}Used by:718
Symbol 689 Sound {NewMove7}Used by:718
Symbol 690 Sound {NewMove8}Used by:718
Symbol 691 Sound {NewMove9}Used by:718
Symbol 692 Sound {NewMove10}Used by:718
Symbol 693 Sound {NewMove11}Used by:718
Symbol 694 Sound {NewMove12}Used by:718
Symbol 695 Sound {NewMove13}Used by:718
Symbol 696 Sound {NewMove14}Used by:718
Symbol 697 Sound {NewMove15}Used by:718
Symbol 698 Sound {NewMove16}Used by:718
Symbol 699 Sound {NewMove17}Used by:718
Symbol 700 Sound {NewMove18}Used by:718
Symbol 701 Sound {NewMove19}Used by:718
Symbol 702 Sound {NewMove20}Used by:718
Symbol 703 Sound {NewMove21}Used by:718
Symbol 704 Sound {NewMove22}Used by:718
Symbol 705 Sound {NewMove23}Used by:718
Symbol 706 Sound {NewMove24}Used by:718
Symbol 707 Sound {NewMove25}Used by:718
Symbol 708 Sound {Select1}Used by:718
Symbol 709 Sound {Select2}Used by:718
Symbol 710 Sound {Select3}Used by:718
Symbol 711 Sound {Select4}Used by:718
Symbol 712 Sound {Select5}Used by:718
Symbol 713 Sound {Select6}Used by:718
Symbol 714 Sound {Select7}Used by:718
Symbol 715 Sound {Select8}Used by:718
Symbol 716 Sound {Select9}Used by:718
Symbol 717 Sound {RallySound}Used by:718
Symbol 718 MovieClip {BattleFieldArenav2_fla.SoundPreloader_203}Uses:640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717Used by:Timeline
Symbol 719 GraphicUsed by:722
Symbol 720 FontUsed by:721
Symbol 721 TextUses:720Used by:722
Symbol 722 MovieClipUses:719 721Used by:732
Symbol 723 SoundUsed by:732
Symbol 724 SoundUsed by:732
Symbol 725 SoundUsed by:732
Symbol 726 GraphicUsed by:727
Symbol 727 MovieClipUses:726Used by:728
Symbol 728 MovieClip {BattleFieldArenav2_fla.bomb_smoker3_207}Uses:727Used by:729
Symbol 729 MovieClip {BattleFieldArenav2_fla.bomb_smoker4_206}Uses:728Used by:732
Symbol 730 SoundUsed by:732
Symbol 731 SoundUsed by:732
Symbol 732 MovieClip {BattleFieldArenav2_fla.gamesfre_pre_preloader_gamesfree_204}Uses:8 722 723 724 725 729 730 731Used by:Timeline
Symbol 733 GraphicUsed by:734 803
Symbol 734 MovieClipUses:733Used by:742
Symbol 735 FontUsed by:736
Symbol 736 TextUses:735Used by:742
Symbol 737 GraphicUsed by:742 800 803
Symbol 738 GraphicUsed by:739
Symbol 739 MovieClipUses:738Used by:742
Symbol 740 SoundUsed by:742
Symbol 741 SoundUsed by:742
Symbol 742 MovieClip {BattleFieldArenav2_fla.splasha_209}Uses:8 734 736 737 739 740 741Used by:Timeline
Symbol 743 BitmapUsed by:745
Symbol 744 BitmapUsed by:745
Symbol 745 GraphicUses:743 744Used by:768
Symbol 746 GraphicUsed by:748
Symbol 747 GraphicUsed by:748
Symbol 748 MovieClipUses:746 747Used by:768
Symbol 749 BitmapUsed by:750
Symbol 750 GraphicUses:749Used by:754
Symbol 751 BitmapUsed by:752
Symbol 752 GraphicUses:751Used by:753
Symbol 753 MovieClipUses:752Used by:754
Symbol 754 MovieClip {BattleFieldArenav2_fla.animasititle_214}Uses:750 753Used by:768
Symbol 755 GraphicUsed by:759 762 764 767
Symbol 756 FontUsed by:757 760 761 763 765 766 776 991 995
Symbol 757 TextUses:756Used by:759
Symbol 758 GraphicUsed by:759 762 764 767
Symbol 759 ButtonUses:755 757 758Used by:768
Symbol 760 TextUses:756Used by:762
Symbol 761 TextUses:756Used by:762
Symbol 762 ButtonUses:755 760 758 761Used by:768
Symbol 763 TextUses:756Used by:764
Symbol 764 ButtonUses:755 763 758Used by:768
Symbol 765 TextUses:756Used by:767
Symbol 766 TextUses:756Used by:767
Symbol 767 ButtonUses:755 765 758 766Used by:768
Symbol 768 MovieClip {BattleFieldArenav2_fla.MainMenu_212}Uses:745 748 754 759 762 764 767Used by:Timeline
Symbol 769 GraphicUsed by:774
Symbol 770 GraphicUsed by:774
Symbol 771 GraphicUsed by:774
Symbol 772 GraphicUsed by:774
Symbol 773 GraphicUsed by:774
Symbol 774 ButtonUses:769 770 771 772 773Used by:830 1217  Timeline
Symbol 775 FontUsed by:776
Symbol 776 TextUses:775 756Used by:778
Symbol 777 GraphicUsed by:778
Symbol 778 ButtonUses:9 776 777 8Used by:Timeline
Symbol 779 BitmapUsed by:780 795 1108 1432 1480 1560 1572
Symbol 780 GraphicUses:779Used by:794
Symbol 781 GraphicUsed by:782 788 792 1483 1501
Symbol 782 MovieClipUses:781Used by:788 792 1483 1501
Symbol 783 GraphicUsed by:788 792
Symbol 784 FontUsed by:785 787 789 791 793 796 805 807 809 811 812 813 814 815 816 817 820 918 919 986 987 988 1019 1081 1082 1085 1122 1123 1433 1434 1435 1436 1437 1438 1481 1482 1488 1489 1490 1491 1492 1493 1494 1495 1499 1500 1508 1509 1510 1515 1516 1517 1574 1575 1576
Symbol 785 TextUses:784Used by:788
Symbol 786 GraphicUsed by:788
Symbol 787 TextUses:784Used by:788
Symbol 788 ButtonUses:782 783 785 786 787 781Used by:794 1518
Symbol 789 TextUses:784Used by:792
Symbol 790 GraphicUsed by:792
Symbol 791 TextUses:784Used by:792
Symbol 792 ButtonUses:782 783 789 790 791 781Used by:794 1518
Symbol 793 TextUses:784Used by:794
Symbol 794 MovieClip {BattleFieldArenav2_fla.Warn_222}Uses:330 780 788 792 793Used by:Timeline
Symbol 795 GraphicUses:779Used by:830
Symbol 796 TextUses:784Used by:830
Symbol 797 FontUsed by:798 804 806 808 810 818 819 829 853 854 865 876 891 900 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1345 1561 1562 1564 1565 1567 1568 1569 1570 1571 1573 1574 1575 1576 1578 1579 1580 1581 1583 1590
Symbol 798 TextUses:797Used by:830
Symbol 799 MovieClipUses:8Used by:800
Symbol 800 MovieClipUses:737 799Used by:803
Symbol 801 GraphicUsed by:802
Symbol 802 MovieClipUses:801Used by:803
Symbol 803 ButtonUses:800 733 802 737 8Used by:830
Symbol 804 TextUses:797Used by:830
Symbol 805 TextUses:784Used by:830
Symbol 806 TextUses:797Used by:830
Symbol 807 TextUses:784Used by:830
Symbol 808 TextUses:797Used by:830
Symbol 809 TextUses:784Used by:830
Symbol 810 TextUses:797Used by:830
Symbol 811 TextUses:784Used by:830
Symbol 812 TextUses:784Used by:830
Symbol 813 TextUses:784Used by:830
Symbol 814 TextUses:784Used by:830
Symbol 815 TextUses:784Used by:830
Symbol 816 TextUses:784Used by:830
Symbol 817 TextUses:784Used by:830
Symbol 818 TextUses:797Used by:830
Symbol 819 TextUses:797Used by:830
Symbol 820 TextUses:784Used by:830
Symbol 821 BitmapUsed by:822
Symbol 822 GraphicUses:821Used by:823 824
Symbol 823 MovieClipUses:822Used by:824
Symbol 824 ButtonUses:823 822Used by:830
Symbol 825 BitmapUsed by:826
Symbol 826 GraphicUses:825Used by:827 828
Symbol 827 MovieClipUses:826Used by:828
Symbol 828 ButtonUses:826 827Used by:830
Symbol 829 TextUses:797Used by:830
Symbol 830 MovieClip {BattleFieldArenav2_fla.Credit_227}Uses:795 796 798 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 824 774 828 829Used by:831
Symbol 831 MovieClip {BattleFieldArenav2_fla.CreditAnimasi_226}Uses:830Used by:Timeline
Symbol 832 GraphicUsed by:917
Symbol 833 BitmapUsed by:834
Symbol 834 GraphicUses:833Used by:917
Symbol 835 BitmapUsed by:836
Symbol 836 GraphicUses:835Used by:917
Symbol 837 BitmapUsed by:838
Symbol 838 GraphicUses:837Used by:917
Symbol 839 BitmapUsed by:840
Symbol 840 GraphicUses:839Used by:917
Symbol 841 BitmapUsed by:842
Symbol 842 GraphicUses:841Used by:917
Symbol 843 BitmapUsed by:844
Symbol 844 GraphicUses:843Used by:917
Symbol 845 BitmapUsed by:846
Symbol 846 GraphicUses:845Used by:917
Symbol 847 BitmapUsed by:848
Symbol 848 GraphicUses:847Used by:917
Symbol 849 BitmapUsed by:850
Symbol 850 GraphicUses:849Used by:917
Symbol 851 BitmapUsed by:852
Symbol 852 GraphicUses:851Used by:917
Symbol 853 TextUses:797Used by:917
Symbol 854 TextUses:797Used by:917
Symbol 855 BitmapUsed by:856
Symbol 856 GraphicUses:855Used by:917
Symbol 857 BitmapUsed by:858
Symbol 858 GraphicUses:857Used by:917
Symbol 859 BitmapUsed by:860
Symbol 860 GraphicUses:859Used by:917
Symbol 861 BitmapUsed by:862
Symbol 862 GraphicUses:861Used by:917
Symbol 863 BitmapUsed by:864
Symbol 864 GraphicUses:863Used by:917
Symbol 865 TextUses:797Used by:917
Symbol 866 BitmapUsed by:867
Symbol 867 GraphicUses:866Used by:917
Symbol 868 BitmapUsed by:869
Symbol 869 GraphicUses:868Used by:917
Symbol 870 BitmapUsed by:871
Symbol 871 GraphicUses:870Used by:917
Symbol 872 BitmapUsed by:873
Symbol 873 GraphicUses:872Used by:917
Symbol 874 BitmapUsed by:875
Symbol 875 GraphicUses:874Used by:917
Symbol 876 TextUses:797Used by:917
Symbol 877 BitmapUsed by:878
Symbol 878 GraphicUses:877Used by:917
Symbol 879 BitmapUsed by:880
Symbol 880 GraphicUses:879Used by:917
Symbol 881 BitmapUsed by:882
Symbol 882 GraphicUses:881Used by:917
Symbol 883 BitmapUsed by:884
Symbol 884 GraphicUses:883Used by:917
Symbol 885 BitmapUsed by:886
Symbol 886 GraphicUses:885Used by:917
Symbol 887 BitmapUsed by:888
Symbol 888 GraphicUses:887Used by:917
Symbol 889 BitmapUsed by:890
Symbol 890 GraphicUses:889Used by:917
Symbol 891 TextUses:797Used by:917
Symbol 892 BitmapUsed by:893
Symbol 893 GraphicUses:892Used by:917
Symbol 894 BitmapUsed by:895
Symbol 895 GraphicUses:894Used by:917
Symbol 896 BitmapUsed by:897
Symbol 897 GraphicUses:896Used by:917
Symbol 898 BitmapUsed by:899
Symbol 899 GraphicUses:898Used by:917
Symbol 900 TextUses:797Used by:917
Symbol 901 BitmapUsed by:902
Symbol 902 GraphicUses:901Used by:917
Symbol 903 BitmapUsed by:904
Symbol 904 GraphicUses:903Used by:917
Symbol 905 BitmapUsed by:906
Symbol 906 GraphicUses:905Used by:917
Symbol 907 BitmapUsed by:908
Symbol 908 GraphicUses:907Used by:917
Symbol 909 BitmapUsed by:910
Symbol 910 GraphicUses:909Used by:917
Symbol 911 BitmapUsed by:912
Symbol 912 GraphicUses:911Used by:917
Symbol 913 BitmapUsed by:914
Symbol 914 GraphicUses:913Used by:917
Symbol 915 BitmapUsed by:916
Symbol 916 GraphicUses:915Used by:917
Symbol 917 MovieClip {BattleFieldArenav2_fla.OpeningMovie_236}Uses:832 834 836 838 840 842 844 846 848 850 852 853 854 856 858 860 862 864 865 867 869 871 873 875 876 878 880 882 884 886 888 890 891 893 895 897 899 900 902 904 906 908 910 912 914 916Used by:Timeline
Symbol 918 TextUses:784Used by:920
Symbol 919 TextUses:784Used by:920
Symbol 920 MovieClipUses:313 918 919Used by:1217  Timeline
Symbol 921 BitmapUsed by:922
Symbol 922 GraphicUses:921Used by:1217
Symbol 923 MovieClipUsed by:1217 1431
Symbol 924 BitmapUsed by:925 1447 1452 1457 1462 1467
Symbol 925 GraphicUses:924Used by:1217
Symbol 926 BitmapUsed by:927
Symbol 927 GraphicUses:926Used by:936
Symbol 928 BitmapUsed by:929
Symbol 929 GraphicUses:928Used by:932
Symbol 930 BitmapUsed by:931
Symbol 931 GraphicUses:930Used by:932
Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}Uses:929 931Used by:936 942 948 954 960
Symbol 933 BitmapUsed by:934
Symbol 934 GraphicUses:933Used by:935
Symbol 935 MovieClipUses:934Used by:936
Symbol 936 MovieClip {BattleFieldArenav2_fla.Btn510_240}Uses:927 932 935Used by:1217
Symbol 937 BitmapUsed by:938
Symbol 938 GraphicUses:937Used by:942
Symbol 939 BitmapUsed by:940
Symbol 940 GraphicUses:939Used by:941
Symbol 941 MovieClipUses:940Used by:942
Symbol 942 MovieClip {BattleFieldArenav2_fla.Btn49_243}Uses:938 932 941Used by:1217
Symbol 943 BitmapUsed by:944
Symbol 944 GraphicUses:943Used by:948
Symbol 945 BitmapUsed by:946
Symbol 946 GraphicUses:945Used by:947
Symbol 947 MovieClipUses:946Used by:948
Symbol 948 MovieClip {BattleFieldArenav2_fla.Btn38_245}Uses:944 932 947Used by:1217
Symbol 949 BitmapUsed by:950
Symbol 950 GraphicUses:949Used by:954
Symbol 951 BitmapUsed by:952
Symbol 952 GraphicUses:951Used by:953
Symbol 953 MovieClipUses:952Used by:954
Symbol 954 MovieClip {BattleFieldArenav2_fla.Btn27_247}Uses:950 932 953Used by:1217
Symbol 955 BitmapUsed by:956
Symbol 956 GraphicUses:955Used by:960
Symbol 957 BitmapUsed by:958
Symbol 958 GraphicUses:957Used by:959
Symbol 959 MovieClipUses:958Used by:960
Symbol 960 MovieClip {BattleFieldArenav2_fla.Btn16_249}Uses:956 932 959Used by:1217
Symbol 961 GraphicUsed by:966
Symbol 962 GraphicUsed by:966
Symbol 963 FontUsed by:964 1015 1218
Symbol 964 TextUses:963Used by:966
Symbol 965 GraphicUsed by:966
Symbol 966 MovieClipUses:961 962 964 965Used by:1217
Symbol 967 GraphicUsed by:1217
Symbol 968 GraphicUsed by:971
Symbol 969 BitmapUsed by:970
Symbol 970 GraphicUses:969Used by:971
Symbol 971 MovieClipUses:968 970Used by:985
Symbol 972 GraphicUsed by:985
Symbol 973 GraphicUsed by:976 979
Symbol 974 BitmapUsed by:975
Symbol 975 GraphicUses:974Used by:976
Symbol 976 MovieClipUses:973 975Used by:985
Symbol 977 BitmapUsed by:978
Symbol 978 GraphicUses:977Used by:979
Symbol 979 MovieClipUses:973 978Used by:985
Symbol 980 GraphicUsed by:983
Symbol 981 BitmapUsed by:982
Symbol 982 GraphicUses:981Used by:983
Symbol 983 MovieClipUses:980 982Used by:985
Symbol 984 GraphicUsed by:985
Symbol 985 MovieClipUses:971 972 976 979 983 984Used by:989
Symbol 986 EditableTextUses:784Used by:989
Symbol 987 EditableTextUses:784Used by:989
Symbol 988 TextUses:784Used by:989
Symbol 989 MovieClip {BattleFieldArenav2_fla.PanelKet_252}Uses:985 986 987 988Used by:1217
Symbol 990 GraphicUsed by:993
Symbol 991 TextUses:756Used by:993
Symbol 992 GraphicUsed by:993
Symbol 993 ButtonUses:990 991 992Used by:1217
Symbol 994 GraphicUsed by:997
Symbol 995 TextUses:756Used by:997
Symbol 996 GraphicUsed by:997
Symbol 997 ButtonUses:994 995 996Used by:1217
Symbol 998 GraphicUses:207 203 201Used by:1000
Symbol 999 GraphicUses:123 124 117Used by:1000
Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260}Uses:998 999 144 142 147 149 244 284 288 300 303 315 268Used by:1217
Symbol 1001 GraphicUsed by:1005
Symbol 1002 GraphicUsed by:1005
Symbol 1003 GraphicUsed by:1005
Symbol 1004 GraphicUsed by:1005
Symbol 1005 MovieClipUses:1001 1002 1003 1004Used by:1006
Symbol 1006 MovieClipUses:1005Used by:1217
Symbol 1007 MovieClip {BattleFieldArenav2_fla.kursor2_264}Uses:3Used by:1008
Symbol 1008 MovieClip {BattleFieldArenav2_fla.MoveKursor_263}Uses:1007Used by:1217
Symbol 1009 BitmapUsed by:1010
Symbol 1010 GraphicUses:1009Used by:1011
Symbol 1011 MovieClipUses:1010Used by:1217
Symbol 1012 GraphicUsed by:1016
Symbol 1013 FontUsed by:1014 1473 1475 1476 1478
Symbol 1014 EditableTextUses:1013Used by:1016
Symbol 1015 EditableTextUses:963Used by:1016
Symbol 1016 MovieClip {BattleFieldArenav2_fla.Test2_266}Uses:1012 1014 1015Used by:1217
Symbol 1017 MovieClip {BattleFieldArenav2_fla.Tirai_267}Uses:330Used by:1217
Symbol 1018 GraphicUsed by:1020
Symbol 1019 TextUses:784Used by:1020
Symbol 1020 ButtonUses:1018 1019Used by:1217
Symbol 1021 BitmapUsed by:1022
Symbol 1022 GraphicUses:1021Used by:1023 1094
Symbol 1023 MovieClipUses:1022Used by:1217 1418 1426 1431
Symbol 1024 MovieClipUses:476 513 498 501 495Used by:1217 1418
Symbol 1025 BitmapUsed by:1026
Symbol 1026 GraphicUses:1025Used by:1027
Symbol 1027 MovieClipUses:1026Used by:1217 1422 1427
Symbol 1028 MovieClipUses:440 443 437 489 492 483 486Used by:1217 1422
Symbol 1029 BitmapUsed by:1030
Symbol 1030 GraphicUses:1029Used by:1031 1104
Symbol 1031 MovieClipUses:1030Used by:1217 1423
Symbol 1032 MovieClipUses:437 507 504 443 480Used by:1217 1423
Symbol 1033 BitmapUsed by:1034
Symbol 1034 GraphicUses:1033Used by:1035
Symbol 1035 MovieClipUses:1034Used by:1217 1424 1429
Symbol 1036 GraphicUsed by:1037
Symbol 1037 MovieClipUses:1036Used by:1062 1217
Symbol 1038 MovieClipUses:479 443 440 449 452 446 510Used by:1217 1424
Symbol 1039 BitmapUsed by:1041
Symbol 1040 BitmapUsed by:1041
Symbol 1041 GraphicUses:1039 1040Used by:1055
Symbol 1042 MovieClipUses:478Used by:1055
Symbol 1043 MovieClipUses:442Used by:1055
Symbol 1044 MovieClipUses:439Used by:1055
Symbol 1045 BitmapUsed by:1046
Symbol 1046 GraphicUses:1045Used by:1047
Symbol 1047 MovieClipUses:1046Used by:1055
Symbol 1048 BitmapUsed by:1049
Symbol 1049 GraphicUses:1048Used by:1050
Symbol 1050 MovieClipUses:1049Used by:1055
Symbol 1051 BitmapUsed by:1052
Symbol 1052 GraphicUses:1051Used by:1053
Symbol 1053 MovieClipUses:1052Used by:1055
Symbol 1054 MovieClipUses:509Used by:1055
Symbol 1055 MovieClipUses:1041 1042 1043 1044 1047 1050 1053 1054Used by:1071
Symbol 1056 MovieClipUses:8Used by:1067
Symbol 1057 GraphicUsed by:1058
Symbol 1058 MovieClipUses:1057Used by:1067 1071
Symbol 1059 GraphicUsed by:1060
Symbol 1060 MovieClipUses:1059Used by:1067 1071
Symbol 1061 GraphicUsed by:1062
Symbol 1062 MovieClipUses:1061 1037Used by:1067 1071
Symbol 1063 GraphicUsed by:1064
Symbol 1064 MovieClipUses:1063Used by:1067 1071
Symbol 1065 GraphicUsed by:1066
Symbol 1066 MovieClipUses:1065Used by:1067 1071
Symbol 1067 MovieClipUses:1056 1058 1060 1062 1064 1066Used by:1071
Symbol 1068 GraphicUsed by:1071
Symbol 1069 GraphicUsed by:1071
Symbol 1070 GraphicUsed by:1071
Symbol 1071 MovieClip {BattleFieldArenav2_fla.maparray_278}Uses:1055 1067 1068 1058 1069 1070 1060 1064 1062 1066Used by:1217
Symbol 1072 BitmapUsed by:1073
Symbol 1073 GraphicUses:1072Used by:1076
Symbol 1074 BitmapUsed by:1075
Symbol 1075 GraphicUses:1074Used by:1076
Symbol 1076 MovieClipUses:1073 1075Used by:1086
Symbol 1077 BitmapUsed by:1078 1079 1080
Symbol 1078 GraphicUses:1077Used by:1084
Symbol 1079 GraphicUses:1077Used by:1084
Symbol 1080 GraphicUses:1077Used by:1084
Symbol 1081 TextUses:784Used by:1083
Symbol 1082 TextUses:784Used by:1083
Symbol 1083 MovieClipUses:1081 1082Used by:1084 1125 1217 1439
Symbol 1084 MovieClip {BattleFieldArenav2_fla.teksboard_296}Uses:1078 1079 1080 1083Used by:1086
Symbol 1085 EditableTextUses:784Used by:1086
Symbol 1086 MovieClip {BattleFieldArenav2_fla.kapten_294}Uses:1076 1084 1085Used by:1217
Symbol 1087 BitmapUsed by:1088
Symbol 1088 GraphicUses:1087Used by:1089
Symbol 1089 MovieClipUses:1088Used by:1217 1425 1430
Symbol 1090 MovieClipUses:455 458 461 464 467 470 473Used by:1217 1425
Symbol 1091 BitmapUsed by:1092
Symbol 1092 GraphicUses:1091Used by:1093
Symbol 1093 MovieClipUses:1092Used by:1094
Symbol 1094 MovieClipUses:1022 1093Used by:1217
Symbol 1095 MovieClipUses:476 513 498 501 495Used by:1217 1426
Symbol 1096 MovieClipUses:440 443 437 489 492 483 486Used by:1217 1427
Symbol 1097 BitmapUsed by:1098
Symbol 1098 GraphicUses:1097Used by:1103
Symbol 1099 BitmapUsed by:1100
Symbol 1100 GraphicUses:1099Used by:1103
Symbol 1101 BitmapUsed by:1102
Symbol 1102 GraphicUses:1101Used by:1103
Symbol 1103 MovieClipUses:1098 1100 1102Used by:1104
Symbol 1104 MovieClipUses:1030 1103Used by:1217 1428
Symbol 1105 MovieClipUses:440 443 437 507 504Used by:1217 1428
Symbol 1106 MovieClipUses:479 443 440 449 452 446 510Used by:1217 1429
Symbol 1107 MovieClipUses:455 458 461 467 470 473Used by:1217 1430
Symbol 1108 GraphicUses:779Used by:1125
Symbol 1109 TextUses:797Used by:1125
Symbol 1110 TextUses:797Used by:1125
Symbol 1111 TextUses:797Used by:1125
Symbol 1112 TextUses:797Used by:1125
Symbol 1113 TextUses:797Used by:1125
Symbol 1114 TextUses:797Used by:1125
Symbol 1115 EditableTextUses:797Used by:1125
Symbol 1116 EditableTextUses:797Used by:1125
Symbol 1117 EditableTextUses:797Used by:1125
Symbol 1118 EditableTextUses:797Used by:1125
Symbol 1119 EditableTextUses:797Used by:1125
Symbol 1120 TextUses:797Used by:1125
Symbol 1121 EditableTextUses:797Used by:1125
Symbol 1122 TextUses:784Used by:1124
Symbol 1123 TextUses:784Used by:1124
Symbol 1124 MovieClipUses:1122 1123Used by:1125
Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309}Uses:330 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1083 1124Used by:1217
Symbol 1126 BitmapUsed by:1127
Symbol 1127 GraphicUses:1126Used by:1154
Symbol 1128 BitmapUsed by:1129 1132
Symbol 1129 GraphicUses:1128Used by:1154
Symbol 1130 BitmapUsed by:1131 1133
Symbol 1131 GraphicUses:1130Used by:1154
Symbol 1132 GraphicUses:1128Used by:1154
Symbol 1133 GraphicUses:1130Used by:1154
Symbol 1134 BitmapUsed by:1135
Symbol 1135 GraphicUses:1134Used by:1154
Symbol 1136 BitmapUsed by:1137
Symbol 1137 GraphicUses:1136Used by:1138
Symbol 1138 MovieClipUses:1137Used by:1154
Symbol 1139 BitmapUsed by:1140
Symbol 1140 GraphicUses:1139Used by:1154
Symbol 1141 BitmapUsed by:1142
Symbol 1142 GraphicUses:1141Used by:1154
Symbol 1143 BitmapUsed by:1144
Symbol 1144 GraphicUses:1143Used by:1154
Symbol 1145 BitmapUsed by:1146
Symbol 1146 GraphicUses:1145Used by:1154
Symbol 1147 BitmapUsed by:1148
Symbol 1148 GraphicUses:1147Used by:1149
Symbol 1149 MovieClipUses:1148Used by:1154
Symbol 1150 BitmapUsed by:1151
Symbol 1151 GraphicUses:1150Used by:1154
Symbol 1152 BitmapUsed by:1153
Symbol 1153 GraphicUses:1152Used by:1154
Symbol 1154 MovieClipUses:1127 1129 1131 1132 1133 1135 1138 1140 1142 1144 1146 1149 1151 1153Used by:1217
Symbol 1155 MovieClipUses:84Used by:1216 1450 1455 1460 1465 1470
Symbol 1156 BitmapUsed by:1157
Symbol 1157 GraphicUses:1156Used by:1158
Symbol 1158 MovieClipUses:1157Used by:1216
Symbol 1159 BitmapUsed by:1160
Symbol 1160 GraphicUses:1159Used by:1191
Symbol 1161 BitmapUsed by:1162
Symbol 1162 GraphicUses:1161Used by:1191
Symbol 1163 BitmapUsed by:1164
Symbol 1164 GraphicUses:1163Used by:1191
Symbol 1165 BitmapUsed by:1166
Symbol 1166 GraphicUses:1165Used by:1191
Symbol 1167 BitmapUsed by:1168
Symbol 1168 GraphicUses:1167Used by:1191
Symbol 1169 BitmapUsed by:1170
Symbol 1170 GraphicUses:1169Used by:1191
Symbol 1171 BitmapUsed by:1172
Symbol 1172 GraphicUses:1171Used by:1191
Symbol 1173 BitmapUsed by:1174
Symbol 1174 GraphicUses:1173Used by:1191
Symbol 1175 BitmapUsed by:1176
Symbol 1176 GraphicUses:1175Used by:1191
Symbol 1177 BitmapUsed by:1178
Symbol 1178 GraphicUses:1177Used by:1191
Symbol 1179 BitmapUsed by:1180
Symbol 1180 GraphicUses:1179Used by:1191
Symbol 1181 BitmapUsed by:1182
Symbol 1182 GraphicUses:1181Used by:1191
Symbol 1183 BitmapUsed by:1184
Symbol 1184 GraphicUses:1183Used by:1191
Symbol 1185 BitmapUsed by:1186
Symbol 1186 GraphicUses:1185Used by:1191
Symbol 1187 BitmapUsed by:1188
Symbol 1188 GraphicUses:1187Used by:1191
Symbol 1189 BitmapUsed by:1190
Symbol 1190 GraphicUses:1189Used by:1191
Symbol 1191 MovieClipUses:1160 1162 1164 1166 1168 1170 1172 1174 1176 1178 1180 1182 1184 1186 1188 1190Used by:1199
Symbol 1192 BitmapUsed by:1193
Symbol 1193 GraphicUses:1192Used by:1198
Symbol 1194 BitmapUsed by:1195
Symbol 1195 GraphicUses:1194Used by:1198
Symbol 1196 BitmapUsed by:1197
Symbol 1197 GraphicUses:1196Used by:1198
Symbol 1198 MovieClipUses:1193 1195 1197Used by:1199
Symbol 1199 MovieClipUses:1191 1198Used by:1214
Symbol 1200 BitmapUsed by:1201
Symbol 1201 GraphicUses:1200Used by:1212
Symbol 1202 BitmapUsed by:1203
Symbol 1203 GraphicUses:1202Used by:1212
Symbol 1204 BitmapUsed by:1205
Symbol 1205 GraphicUses:1204Used by:1212
Symbol 1206 BitmapUsed by:1207
Symbol 1207 GraphicUses:1206Used by:1212
Symbol 1208 BitmapUsed by:1209
Symbol 1209 GraphicUses:1208Used by:1212
Symbol 1210 BitmapUsed by:1211
Symbol 1211 GraphicUses:1210Used by:1212
Symbol 1212 MovieClipUses:1201 1203 1205 1207 1209 1211Used by:1213
Symbol 1213 MovieClipUses:1212Used by:1214
Symbol 1214 MovieClipUses:1199 1213Used by:1216
Symbol 1215 MovieClipUses:84Used by:1216
Symbol 1216 MovieClip {BattleFieldArenav2_fla.BossDown_314}Uses:9 1155 1158 1214 1215Used by:1217
Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238}Uses:922 923 925 936 942 948 954 960 966 967 989 774 993 997 575 1000 1006 1008 1011 1016 1017 1020 1023 9 1024 1027 1028 1031 1032 1035 1037 80 1038 1071 1086 920 1089 1090 1094 1095 1096 1104 1105 1106 1107 639 1125 1154 1083 1216Used by:Timeline
Symbol 1218 EditableTextUses:963Used by:Timeline
Symbol 1219 GraphicUsed by:1440
Symbol 1220 GraphicUsed by:1222
Symbol 1221 GraphicUsed by:1222
Symbol 1222 ButtonUses:1220 1221Used by:1440
Symbol 1223 FontUsed by:1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1328 1331 1334 1339 1341 1344 1377 1378 1380 1382
Symbol 1224 TextUses:1223Used by:1440
Symbol 1225 TextUses:1223Used by:1440
Symbol 1226 TextUses:1223Used by:1440
Symbol 1227 TextUses:1223Used by:1440
Symbol 1228 TextUses:1223Used by:1440
Symbol 1229 TextUses:1223Used by:1440
Symbol 1230 TextUses:1223Used by:1440
Symbol 1231 TextUses:1223Used by:1440
Symbol 1232 TextUses:1223Used by:1440
Symbol 1233 TextUses:1223Used by:1440
Symbol 1234 EditableTextUses:1223Used by:1440
Symbol 1235 BitmapUsed by:1236 1283
Symbol 1236 GraphicUses:1235Used by:1247 1284
Symbol 1237 BitmapUsed by:1238 1281
Symbol 1238 GraphicUses:1237Used by:1247 1282
Symbol 1239 BitmapUsed by:1240 1287
Symbol 1240 GraphicUses:1239Used by:1247 1288
Symbol 1241 BitmapUsed by:1242 1285
Symbol 1242 GraphicUses:1241Used by:1247 1286
Symbol 1243 BitmapUsed by:1244 1277 1278
Symbol 1244 GraphicUses:1243Used by:1247
Symbol 1245 BitmapUsed by:1246 1274 1275
Symbol 1246 GraphicUses:1245Used by:1247
Symbol 1247 MovieClipUses:9 1236 1238 1240 1242 1244 1246Used by:1248 1273
Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326}Uses:1247Used by:1440
Symbol 1249 GraphicUsed by:1252
Symbol 1250 GraphicUsed by:1251
Symbol 1251 MovieClipUses:1250Used by:1252
Symbol 1252 MovieClipUses:1249 1251Used by:1269
Symbol 1253 BitmapUsed by:1254 1353
Symbol 1254 GraphicUses:1253Used by:1269
Symbol 1255 BitmapUsed by:1256 1354
Symbol 1256 GraphicUses:1255Used by:1269
Symbol 1257 BitmapUsed by:1258 1355
Symbol 1258 GraphicUses:1257Used by:1269
Symbol 1259 BitmapUsed by:1260 1356
Symbol 1260 GraphicUses:1259Used by:1269
Symbol 1261 BitmapUsed by:1262 1357
Symbol 1262 GraphicUses:1261Used by:1269
Symbol 1263 BitmapUsed by:1264 1358
Symbol 1264 GraphicUses:1263Used by:1269
Symbol 1265 BitmapUsed by:1266 1359
Symbol 1266 GraphicUses:1265Used by:1269
Symbol 1267 BitmapUsed by:1268 1360
Symbol 1268 GraphicUses:1267Used by:1269
Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328}Uses:1252 1254 114 1256 1258 1260 1262 1264 1266 1268Used by:1440
Symbol 1270 ShapeTweeningUsed by:1272
Symbol 1271 GraphicUsed by:1272
Symbol 1272 MovieClipUses:8 1270 1271Used by:1273
Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331}Uses:1247 1272Used by:1440
Symbol 1274 GraphicUses:1245Used by:1276
Symbol 1275 GraphicUses:1245Used by:1276
Symbol 1276 ButtonUses:1274 1275Used by:1280 1325
Symbol 1277 GraphicUses:1243Used by:1279
Symbol 1278 GraphicUses:1243Used by:1279
Symbol 1279 ButtonUses:1277 1278Used by:1280
Symbol 1280 MovieClip {BattleFieldArenav2_fla.BtnAirUnit_333}Uses:1276 1279Used by:1440
Symbol 1281 GraphicUses:1237Used by:1282
Symbol 1282 ButtonUses:1238 1281Used by:1289 1325
Symbol 1283 GraphicUses:1235Used by:1284
Symbol 1284 ButtonUses:1236 1283Used by:1289
Symbol 1285 GraphicUses:1241Used by:1286
Symbol 1286 ButtonUses:1242 1285Used by:1289 1325
Symbol 1287 GraphicUses:1239Used by:1288
Symbol 1288 ButtonUses:1240 1287Used by:1289 1325
Symbol 1289 MovieClip {BattleFieldArenav2_fla.BtnLandUnit_336}Uses:1282 1284 1286 1288Used by:1440
Symbol 1290 BitmapUsed by:1291 1292
Symbol 1291 GraphicUses:1290Used by:1293
Symbol 1292 GraphicUses:1290Used by:1293
Symbol 1293 ButtonUses:1291 1292Used by:1321
Symbol 1294 BitmapUsed by:1295 1296
Symbol 1295 GraphicUses:1294Used by:1297
Symbol 1296 GraphicUses:1294Used by:1297
Symbol 1297 ButtonUses:1295 1296Used by:1321
Symbol 1298 BitmapUsed by:1299 1300
Symbol 1299 GraphicUses:1298Used by:1301
Symbol 1300 GraphicUses:1298Used by:1301
Symbol 1301 ButtonUses:1299 1300Used by:1321 1325
Symbol 1302 BitmapUsed by:1303 1304
Symbol 1303 GraphicUses:1302Used by:1305
Symbol 1304 GraphicUses:1302Used by:1305
Symbol 1305 ButtonUses:1303 1304Used by:1321
Symbol 1306 BitmapUsed by:1307 1308
Symbol 1307 GraphicUses:1306Used by:1309
Symbol 1308 GraphicUses:1306Used by:1309
Symbol 1309 ButtonUses:1307 1308Used by:1321 1325
Symbol 1310 GraphicUsed by:1312
Symbol 1311 GraphicUsed by:1312
Symbol 1312 ButtonUses:1310 1311Used by:1321 1325
Symbol 1313 BitmapUsed by:1314 1315
Symbol 1314 GraphicUses:1313Used by:1316
Symbol 1315 GraphicUses:1313Used by:1316
Symbol 1316 ButtonUses:1314 1315Used by:1321 1325
Symbol 1317 BitmapUsed by:1318 1319
Symbol 1318 GraphicUses:1317Used by:1320
Symbol 1319 GraphicUses:1317Used by:1320
Symbol 1320 ButtonUses:1318 1319Used by:1321
Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341}Uses:1293 1297 1301 1305 1309 1312 1316 1320Used by:1440
Symbol 1322 BitmapUsed by:1323
Symbol 1323 GraphicUses:1322Used by:1324
Symbol 1324 MovieClipUses:9 1323Used by:1325
Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350}Uses:1301 1309 1312 1316 1276 1282 1286 1288 1324Used by:1440
Symbol 1326 FontUsed by:1327 1329 1337
Symbol 1327 EditableTextUses:1326Used by:1440
Symbol 1328 EditableTextUses:1223Used by:1440
Symbol 1329 EditableTextUses:1326Used by:1440
Symbol 1330 MovieClipUses:574Used by:1333 1336 1381 1383 1563 1566 1582 1591
Symbol 1331 TextUses:1223Used by:1332
Symbol 1332 MovieClipUses:1331Used by:1333
Symbol 1333 MovieClip {BattleFieldArenav2_fla.PopulasiAlert_352}Uses:1330 1332Used by:1440
Symbol 1334 TextUses:1223Used by:1335
Symbol 1335 MovieClipUses:1334Used by:1336
Symbol 1336 MovieClip {BattleFieldArenav2_fla.MoneyAlert_355}Uses:1330 1335Used by:1440
Symbol 1337 TextUses:1326Used by:1440
Symbol 1338 GraphicUsed by:1340
Symbol 1339 TextUses:1223Used by:1340
Symbol 1340 MovieClipUses:1338 1339Used by:1343
Symbol 1341 TextUses:1223Used by:1342
Symbol 1342 MovieClipUses:574 1341Used by:1343
Symbol 1343 MovieClipUses:1340 1342Used by:1440
Symbol 1344 TextUses:1223Used by:1440
Symbol 1345 TextUses:797Used by:1346
Symbol 1346 MovieClip {BattleFieldArenav2_fla.HpBarBoss_360}Uses:632 1345Used by:1440
Symbol 1347 GraphicUsed by:1376
Symbol 1348 FontUsed by:1349 1350 1374 1375
Symbol 1349 EditableTextUses:1348Used by:1376
Symbol 1350 EditableTextUses:1348Used by:1376
Symbol 1351 FontUsed by:1352
Symbol 1352 EditableTextUses:1351Used by:1376
Symbol 1353 GraphicUses:1253Used by:1373
Symbol 1354 GraphicUses:1255Used by:1373
Symbol 1355 GraphicUses:1257Used by:1373
Symbol 1356 GraphicUses:1259Used by:1373
Symbol 1357 GraphicUses:1261Used by:1373
Symbol 1358 GraphicUses:1263Used by:1373
Symbol 1359 GraphicUses:1265Used by:1373
Symbol 1360 GraphicUses:1267Used by:1373
Symbol 1361 BitmapUsed by:1362
Symbol 1362 GraphicUses:1361Used by:1373
Symbol 1363 BitmapUsed by:1364
Symbol 1364 GraphicUses:1363Used by:1373
Symbol 1365 BitmapUsed by:1366
Symbol 1366 GraphicUses:1365Used by:1373
Symbol 1367 BitmapUsed by:1368
Symbol 1368 GraphicUses:1367Used by:1373
Symbol 1369 BitmapUsed by:1370
Symbol 1370 GraphicUses:1369Used by:1373
Symbol 1371 BitmapUsed by:1372
Symbol 1372 GraphicUses:1371Used by:1373
Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362}Uses:1353 1354 1355 1356 1357 1358 1359 1360 1362 1364 1366 1368 1370 1372Used by:1376
Symbol 1374 TextUses:1348Used by:1376
Symbol 1375 EditableTextUses:1348Used by:1376
Symbol 1376 MovieClip {BattleFieldArenav2_fla.PanelKetNEW_361}Uses:1347 1349 1350 1352 1373 1374 1375Used by:1440
Symbol 1377 TextUses:1223Used by:1379
Symbol 1378 EditableTextUses:1223Used by:1379
Symbol 1379 MovieClip {BattleFieldArenav2_fla.Test_363}Uses:574 1377 1378Used by:1440
Symbol 1380 TextUses:1223Used by:1381
Symbol 1381 MovieClip {BattleFieldArenav2_fla.Test3_364}Uses:1330 1380Used by:1440
Symbol 1382 TextUses:1223Used by:1383
Symbol 1383 MovieClip {BattleFieldArenav2_fla.MedalAlert_365}Uses:1330 1382Used by:1440
Symbol 1384 GraphicUsed by:1385
Symbol 1385 ButtonUses:1384Used by:1400 1407 1414 1415 1440
Symbol 1386 BitmapUsed by:1387
Symbol 1387 GraphicUses:1386Used by:1392
Symbol 1388 BitmapUsed by:1389
Symbol 1389 GraphicUses:1388Used by:1392
Symbol 1390 BitmapUsed by:1391
Symbol 1391 GraphicUses:1390Used by:1392
Symbol 1392 ButtonUses:1387 1389 1391Used by:1400
Symbol 1393 BitmapUsed by:1394
Symbol 1394 GraphicUses:1393Used by:1399
Symbol 1395 BitmapUsed by:1396
Symbol 1396 GraphicUses:1395Used by:1399
Symbol 1397 BitmapUsed by:1398
Symbol 1398 GraphicUses:1397Used by:1399
Symbol 1399 ButtonUses:1394 1396 1398Used by:1400
Symbol 1400 MovieClip {BattleFieldArenav2_fla.BehaviourBtn_367}Uses:1385 1392 1399Used by:1440
Symbol 1401 BitmapUsed by:1402 1405
Symbol 1402 GraphicUses:1401Used by:1403
Symbol 1403 ButtonUses:1402Used by:1407
Symbol 1404 BitmapUsed by:1405
Symbol 1405 GraphicUses:1404 1401Used by:1406
Symbol 1406 ButtonUses:1405Used by:1407
Symbol 1407 MovieClip {BattleFieldArenav2_fla.BtnMuteMc_370}Uses:1385 1403 1406Used by:1440
Symbol 1408 BitmapUsed by:1409
Symbol 1409 GraphicUses:1408Used by:1410
Symbol 1410 ButtonUses:1409Used by:1414
Symbol 1411 BitmapUsed by:1412
Symbol 1412 GraphicUses:1411Used by:1413
Symbol 1413 ButtonUses:1412Used by:1414
Symbol 1414 MovieClip {BattleFieldArenav2_fla.BtnPlayMC_373}Uses:1385 1410 1413Used by:1440
Symbol 1415 MovieClip {BattleFieldArenav2_fla.MiniMapbtn_376}Uses:1385 106Used by:1440
Symbol 1416 GraphicUsed by:1417
Symbol 1417 MovieClipUses:1416Used by:1440
Symbol 1418 MovieClip {BattleFieldArenav2_fla.Map1Mini_379}Uses:8 1023 1024Used by:1431
Symbol 1419 BitmapUsed by:1420
Symbol 1420 GraphicUses:1419Used by:1421
Symbol 1421 MovieClipUses:1420Used by:1431
Symbol 1422 MovieClipUses:8 1027 1028Used by:1431
Symbol 1423 MovieClipUses:8 1031 1032Used by:1431
Symbol 1424 MovieClipUses:8 1035 1038Used by:1431
Symbol 1425 MovieClipUses:8 1089 1090Used by:1431
Symbol 1426 MovieClip {BattleFieldArenav2_fla.Map6Mini_385}Uses:8 1023 1095Used by:1431
Symbol 1427 MovieClip {BattleFieldArenav2_fla.Map7Mini_386}Uses:8 1027 1096Used by:1431
Symbol 1428 MovieClip {BattleFieldArenav2_fla.Map8Mini_387}Uses:8 1104 1105Used by:1431
Symbol 1429 MovieClip {BattleFieldArenav2_fla.Map9Mini_388}Uses:8 1035 1106Used by:1431
Symbol 1430 MovieClip {BattleFieldArenav2_fla.Map10Mini_389}Uses:8 1089 1107Used by:1431
Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378}Uses:1418 923 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1023Used by:1440
Symbol 1432 GraphicUses:779Used by:1439
Symbol 1433 TextUses:784Used by:1439
Symbol 1434 TextUses:784Used by:1439
Symbol 1435 TextUses:784Used by:1439
Symbol 1436 TextUses:784Used by:1439
Symbol 1437 TextUses:784Used by:1439
Symbol 1438 TextUses:784Used by:1439
Symbol 1439 MovieClip {BattleFieldArenav2_fla.TextStage_390}Uses:1432 1433 1434 1083 1435 1436 1437 1438Used by:1440
Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324}Uses:1219 1222 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1248 1269 1273 1280 1289 1321 1325 1327 1328 1329 1333 1336 1337 1343 1344 1346 1376 1379 1381 1383 1385 1400 1407 1414 1415 1417 1431 330 1439Used by:Timeline
Symbol 1441 FontUsed by:1442 1443 1444 1445
Symbol 1442 EditableTextUses:1441Used by:Timeline
Symbol 1443 EditableTextUses:1441Used by:Timeline
Symbol 1444 EditableTextUses:1441Used by:Timeline
Symbol 1445 EditableTextUses:1441Used by:Timeline
Symbol 1446 BitmapUsed by:1447 1449
Symbol 1447 GraphicUses:1446 924Used by:1448
Symbol 1448 MovieClipUses:1447Used by:1450
Symbol 1449 GraphicUses:1446Used by:1450
Symbol 1450 MovieClipUses:1155 1448 1449Used by:1471
Symbol 1451 BitmapUsed by:1452 1454
Symbol 1452 GraphicUses:1451 924Used by:1453
Symbol 1453 MovieClipUses:1452Used by:1455
Symbol 1454 GraphicUses:1451Used by:1455
Symbol 1455 MovieClipUses:1155 1453 1454Used by:1471
Symbol 1456 BitmapUsed by:1457 1459
Symbol 1457 GraphicUses:1456 924Used by:1458
Symbol 1458 MovieClipUses:1457Used by:1460
Symbol 1459 GraphicUses:1456Used by:1460
Symbol 1460 MovieClipUses:1155 1458 1459Used by:1471
Symbol 1461 BitmapUsed by:1462 1464
Symbol 1462 GraphicUses:1461 924Used by:1463
Symbol 1463 MovieClipUses:1462Used by:1465
Symbol 1464 GraphicUses:1461Used by:1465
Symbol 1465 MovieClipUses:1155 1463 1464Used by:1471
Symbol 1466 BitmapUsed by:1467 1469
Symbol 1467 GraphicUses:1466 924Used by:1468
Symbol 1468 MovieClipUses:1467Used by:1470
Symbol 1469 GraphicUses:1466Used by:1470
Symbol 1470 MovieClipUses:1155 1468 1469Used by:1471
Symbol 1471 MovieClip {BattleFieldArenav2_fla.Animasi_391}Uses:1450 1455 1460 1465 1470Used by:Timeline
Symbol 1472 GraphicUsed by:1479
Symbol 1473 TextUses:1013Used by:1479
Symbol 1474 GraphicUsed by:1479
Symbol 1475 TextUses:1013Used by:1479
Symbol 1476 TextUses:1013Used by:1479
Symbol 1477 GraphicUsed by:1479
Symbol 1478 TextUses:1013Used by:1479
Symbol 1479 MovieClip {BattleFieldArenav2_fla.TutorNEW_402}Uses:1472 1473 1474 1475 1476 1477 1478Used by:Timeline
Symbol 1480 GraphicUses:779Used by:1496
Symbol 1481 TextUses:784Used by:1483
Symbol 1482 TextUses:784Used by:1483
Symbol 1483 ButtonUses:782 1481 1482 781Used by:1496 1518
Symbol 1484 BitmapUsed by:1485
Symbol 1485 GraphicUses:1484Used by:1486
Symbol 1486 MovieClipUses:1485Used by:1487
Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}Uses:1486Used by:1496
Symbol 1488 TextUses:784Used by:1496
Symbol 1489 TextUses:784Used by:1496
Symbol 1490 TextUses:784Used by:1496
Symbol 1491 TextUses:784Used by:1496
Symbol 1492 TextUses:784Used by:1496
Symbol 1493 TextUses:784Used by:1496
Symbol 1494 TextUses:784Used by:1496
Symbol 1495 TextUses:784Used by:1496
Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403}Uses:9 1480 1483 1487 1488 1489 1490 1491 1492 1493 1494 1495Used by:Timeline
Symbol 1497 BitmapUsed by:1498
Symbol 1498 GraphicUses:1497Used by:1518
Symbol 1499 TextUses:784Used by:1501
Symbol 1500 TextUses:784Used by:1501
Symbol 1501 ButtonUses:782 1499 1500 781Used by:1518
Symbol 1502 BitmapUsed by:1503
Symbol 1503 GraphicUses:1502Used by:1507
Symbol 1504 BitmapUsed by:1505
Symbol 1505 GraphicUses:1504Used by:1506
Symbol 1506 MovieClipUses:1505Used by:1507
Symbol 1507 MovieClip {BattleFieldArenav2_fla.Slider_410}Uses:1503 1506Used by:1518
Symbol 1508 TextUses:784Used by:1518
Symbol 1509 TextUses:784Used by:1518
Symbol 1510 TextUses:784Used by:1518
Symbol 1511 GraphicUsed by:1514
Symbol 1512 BitmapUsed by:1513
Symbol 1513 GraphicUses:1512Used by:1514
Symbol 1514 MovieClip {BattleFieldArenav2_fla.CekBox_412}Uses:1511 1513Used by:1518
Symbol 1515 TextUses:784Used by:1518
Symbol 1516 TextUses:784Used by:1518
Symbol 1517 TextUses:784Used by:1518
Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408}Uses:1498 1483 788 792 1501 1507 1508 1509 1510 1514 1515 1516 1517Used by:1519
Symbol 1519 MovieClip {BattleFieldArenav2_fla.Pausegame_407}Uses:330 1518Used by:Timeline
Symbol 1520 GraphicUsed by:1559
Symbol 1521 GraphicUsed by:1522
Symbol 1522 MovieClipUses:1521Used by:1559
Symbol 1523 BitmapUsed by:1524
Symbol 1524 GraphicUses:1523Used by:1559
Symbol 1525 BitmapUsed by:1526
Symbol 1526 GraphicUses:1525Used by:1559
Symbol 1527 BitmapUsed by:1528
Symbol 1528 GraphicUses:1527Used by:1559
Symbol 1529 BitmapUsed by:1530
Symbol 1530 GraphicUses:1529Used by:1559
Symbol 1531 BitmapUsed by:1532
Symbol 1532 GraphicUses:1531Used by:1559
Symbol 1533 BitmapUsed by:1534
Symbol 1534 GraphicUses:1533Used by:1559
Symbol 1535 BitmapUsed by:1536
Symbol 1536 GraphicUses:1535Used by:1559
Symbol 1537 BitmapUsed by:1538 1539
Symbol 1538 GraphicUses:1537Used by:1559
Symbol 1539 GraphicUses:1537Used by:1559
Symbol 1540 BitmapUsed by:1541
Symbol 1541 GraphicUses:1540Used by:1559
Symbol 1542 BitmapUsed by:1543
Symbol 1543 GraphicUses:1542Used by:1559
Symbol 1544 BitmapUsed by:1545
Symbol 1545 GraphicUses:1544Used by:1559
Symbol 1546 BitmapUsed by:1547
Symbol 1547 GraphicUses:1546Used by:1559
Symbol 1548 BitmapUsed by:1549
Symbol 1549 GraphicUses:1548Used by:1559
Symbol 1550 BitmapUsed by:1552 1558
Symbol 1551 BitmapUsed by:1552 1558
Symbol 1552 GraphicUses:1550 1551Used by:1559
Symbol 1553 BitmapUsed by:1554
Symbol 1554 GraphicUses:1553Used by:1559
Symbol 1555 GraphicUsed by:1559
Symbol 1556 BitmapUsed by:1557
Symbol 1557 GraphicUses:1556Used by:1559
Symbol 1558 GraphicUses:1550 1551Used by:1559
Symbol 1559 MovieClip {BattleFieldArenav2_fla.Ending_413}Uses:1520 1522 1524 1526 1528 1530 1532 1534 1536 1538 1539 1541 1543 1545 1547 1549 1552 1554 1555 1557 1558Used by:Timeline
Symbol 1560 GraphicUses:779Used by:1591
Symbol 1561 TextUses:797Used by:1563
Symbol 1562 TextUses:797Used by:1563
Symbol 1563 ButtonUses:1330 1561 1562 574Used by:1591
Symbol 1564 TextUses:797Used by:1566
Symbol 1565 TextUses:797Used by:1566
Symbol 1566 ButtonUses:1330 1564 1565 574Used by:1591
Symbol 1567 EditableTextUses:797Used by:1591
Symbol 1568 EditableTextUses:797Used by:1591
Symbol 1569 TextUses:797Used by:1591
Symbol 1570 TextUses:797Used by:1591
Symbol 1571 TextUses:797Used by:1591
Symbol 1572 GraphicUses:779Used by:1591
Symbol 1573 TextUses:797Used by:1591
Symbol 1574 EditableTextUses:784 797Used by:1577
Symbol 1575 EditableTextUses:784 797Used by:1577
Symbol 1576 EditableTextUses:784 797Used by:1577
Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}Uses:1574 1575 1576Used by:1591
Symbol 1578 TextUses:797Used by:1591
Symbol 1579 TextUses:797Used by:1591
Symbol 1580 TextUses:797Used by:1582
Symbol 1581 TextUses:797Used by:1582
Symbol 1582 ButtonUses:1330 1580 1581 574Used by:1591
Symbol 1583 TextUses:797Used by:1591
Symbol 1584 BitmapUsed by:1585
Symbol 1585 GraphicUses:1584Used by:1586
Symbol 1586 MovieClipUses:1585Used by:1591
Symbol 1587 BitmapUsed by:1588
Symbol 1588 GraphicUses:1587Used by:1589
Symbol 1589 MovieClipUses:1588Used by:1591
Symbol 1590 TextUses:797Used by:1591
Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415}Uses:1560 1330 1563 1566 1567 1568 1569 1570 1571 1572 1573 1577 1578 1579 1582 1583 1586 1589 1590Used by:Timeline

Instance Names

"bar"Frame 1Symbol 95 MovieClip
"logoab"Frame 1Symbol 100 Button
"kursor"Frame 1Symbol 107 MovieClip {BattleFieldArenav2_fla.Kursor_6}
"pointe"Frame 1Symbol 109 MovieClip
"logo"Frame 8Symbol 732 MovieClip {BattleFieldArenav2_fla.gamesfre_pre_preloader_gamesfree_204}
"menu"Frame 20Symbol 768 MovieClip {BattleFieldArenav2_fla.MainMenu_212}
"logoab"Frame 20Symbol 774 Button
"btnlogo"Frame 20Symbol 778 Button
"warn"Frame 20Symbol 794 MovieClip {BattleFieldArenav2_fla.Warn_222}
"credit"Frame 20Symbol 831 MovieClip {BattleFieldArenav2_fla.CreditAnimasi_226}
"animasiop"Frame 30Symbol 917 MovieClip {BattleFieldArenav2_fla.OpeningMovie_236}
"btnskip"Frame 30Symbol 920 MovieClip
"main"Frame 31Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238}
"panel"Frame 31Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324}
"commandtext"Frame 31Symbol 1442 EditableText
"duite"Frame 31Symbol 1443 EditableText
"pope"Frame 31Symbol 1444 EditableText
"ner"Frame 31Symbol 1445 EditableText
"animasi"Frame 31Symbol 1471 MovieClip {BattleFieldArenav2_fla.Animasi_391}
"tutor"Frame 31Symbol 1479 MovieClip {BattleFieldArenav2_fla.TutorNEW_402}
"achi"Frame 31Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403}
"menupause"Frame 31Symbol 1519 MovieClip {BattleFieldArenav2_fla.Pausegame_407}
"submitpanel"Frame 41Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415}
"selec"Symbol 14 MovieClip {Unit7} Frame 1Symbol 4 MovieClip
"body"Symbol 14 MovieClip {Unit7} Frame 1Symbol 9 MovieClip
"selec"Symbol 21 MovieClip {Unit6} Frame 1Symbol 4 MovieClip
"body"Symbol 21 MovieClip {Unit6} Frame 1Symbol 9 MovieClip
"selec"Symbol 28 MovieClip {Unit5} Frame 1Symbol 4 MovieClip
"body"Symbol 28 MovieClip {Unit5} Frame 1Symbol 9 MovieClip
"selec"Symbol 35 MovieClip {Unit4} Frame 1Symbol 4 MovieClip
"body"Symbol 35 MovieClip {Unit4} Frame 1Symbol 9 MovieClip
"selec"Symbol 44 MovieClip {Unit3} Frame 1Symbol 36 MovieClip
"body"Symbol 44 MovieClip {Unit3} Frame 1Symbol 9 MovieClip
"selec"Symbol 52 MovieClip {Unit2} Frame 1Symbol 36 MovieClip
"body"Symbol 52 MovieClip {Unit2} Frame 1Symbol 9 MovieClip
"selec"Symbol 59 MovieClip {Unit1} Frame 1Symbol 36 MovieClip
"body"Symbol 59 MovieClip {Unit1} Frame 1Symbol 9 MovieClip
"selec"Symbol 66 MovieClip {Unit} Frame 1Symbol 36 MovieClip
"body"Symbol 66 MovieClip {Unit} Frame 1Symbol 9 MovieClip
"selec"Symbol 80 MovieClip {Safety} Frame 1Symbol 73 MovieClip
"body"Symbol 80 MovieClip {Safety} Frame 1Symbol 9 MovieClip
"hp"Symbol 115 MovieClip {HpBar} Frame 1Symbol 114 MovieClip
"hp"Symbol 116 MovieClip {HpBarE} Frame 1Symbol 114 MovieClip
"pic"Symbol 131 MovieClip {Barrack} Frame 1Symbol 126 MovieClip {BattleFieldArenav2_fla.bangunanutamalakon1_13}
"hpbar"Symbol 131 MovieClip {Barrack} Frame 1Symbol 114 MovieClip
"animasi"Symbol 164 MovieClip {BattleFieldArenav2_fla.airlandlakon_18} Frame 1Symbol 163 MovieClip {BattleFieldArenav2_fla.AnimasiCreate_20}
"pic"Symbol 165 MovieClip {BarrackAir} Frame 1Symbol 140 MovieClip {BattleFieldArenav2_fla.animasibangunairplane_16}
"hpbar"Symbol 165 MovieClip {BarrackAir} Frame 1Symbol 114 MovieClip
"pic"Symbol 165 MovieClip {BarrackAir} Frame 3Symbol 164 MovieClip {BattleFieldArenav2_fla.airlandlakon_18}
"pic"Symbol 183 MovieClip {BarrackAirEnemy} Frame 1Symbol 174 MovieClip {BattleFieldArenav2_fla.animasibangunairplanemusuh_24}
"hpbar"Symbol 183 MovieClip {BarrackAirEnemy} Frame 1Symbol 114 MovieClip
"pic"Symbol 196 MovieClip {BarrackEnemy} Frame 1Symbol 192 MovieClip {BattleFieldArenav2_fla.bangunanmusuhutama2_29}
"hpbar"Symbol 196 MovieClip {BarrackEnemy} Frame 1Symbol 114 MovieClip
"pic"Symbol 213 MovieClip {MainBuilding} Frame 1Symbol 209 MovieClip {BattleFieldArenav2_fla.bangunanutamalakon_34}
"hpbar"Symbol 213 MovieClip {MainBuilding} Frame 1Symbol 114 MovieClip
"pic"Symbol 229 MovieClip {MainEnemyBuilding} Frame 1Symbol 226 MovieClip {BattleFieldArenav2_fla.bangunanutamamusuh_37}
"hpbar"Symbol 229 MovieClip {MainEnemyBuilding} Frame 1Symbol 114 MovieClip
"pic"Symbol 245 MovieClip {Miner} Frame 1Symbol 238 MovieClip {BattleFieldArenav2_fla.moneypointbaselakon_40}
"anim"Symbol 245 MovieClip {Miner} Frame 1Symbol 242 MovieClip {BattleFieldArenav2_fla.AddGoldAnimasi_41}
"hpbar"Symbol 245 MovieClip {Miner} Frame 1Symbol 114 MovieClip
"pic"Symbol 257 MovieClip {MinerEnemy} Frame 1Symbol 254 MovieClip {BattleFieldArenav2_fla.moneypointbasemusuh_45}
"hpbar"Symbol 257 MovieClip {MinerEnemy} Frame 1Symbol 114 MovieClip
"pic"Symbol 269 MovieClip {Store} Frame 1Symbol 266 MovieClip {BattleFieldArenav2_fla.plustopopulationlakon_48}
"hpbar"Symbol 269 MovieClip {Store} Frame 1Symbol 114 MovieClip
"pic"Symbol 275 MovieClip {StoreEnemy} Frame 1Symbol 272 MovieClip {BattleFieldArenav2_fla.plustopopolation_51}
"hpbar"Symbol 275 MovieClip {StoreEnemy} Frame 1Symbol 114 MovieClip
"pic"Symbol 289 MovieClip {Tower1} Frame 1Symbol 282 MovieClip {BattleFieldArenav2_fla.constructtowerrudal_54}
"hpbar"Symbol 289 MovieClip {Tower1} Frame 1Symbol 114 MovieClip
"gun"Symbol 289 MovieClip {Tower1} Frame 2Symbol 288 MovieClip
"pic"Symbol 304 MovieClip {Tower2} Frame 1Symbol 296 MovieClip {BattleFieldArenav2_fla.constructtowershot_57}
"hpbar"Symbol 304 MovieClip {Tower2} Frame 1Symbol 114 MovieClip
"gun"Symbol 304 MovieClip {Tower2} Frame 2Symbol 303 MovieClip
"pic"Symbol 316 MovieClip {Tower3} Frame 1Symbol 311 MovieClip {BattleFieldArenav2_fla.constructtowerlistrik_60}
"gun"Symbol 316 MovieClip {Tower3} Frame 1Symbol 313 MovieClip {Cek2}
"hpbar"Symbol 316 MovieClip {Tower3} Frame 1Symbol 114 MovieClip
"gun"Symbol 321 MovieClip {Tower1E} Frame 1Symbol 320 MovieClip
"hpbar"Symbol 321 MovieClip {Tower1E} Frame 1Symbol 114 MovieClip
"gun"Symbol 326 MovieClip {Tower2E} Frame 1Symbol 325 MovieClip
"hpbar"Symbol 326 MovieClip {Tower2E} Frame 1Symbol 114 MovieClip
"gun"Symbol 329 MovieClip {Tower3E} Frame 1Symbol 313 MovieClip {Cek2}
"hpbar"Symbol 329 MovieClip {Tower3E} Frame 1Symbol 114 MovieClip
"char"Symbol 424 MovieClip {BlowBuild1} Frame 1Symbol 423 MovieClip
"area"Symbol 576 MovieClip {Splash} Frame 33Symbol 575 MovieClip
"area"Symbol 580 MovieClip {SplashE} Frame 33Symbol 575 MovieClip
"selec"Symbol 591 MovieClip {Air1} Frame 1Symbol 36 MovieClip
"body"Symbol 591 MovieClip {Air1} Frame 1Symbol 9 MovieClip
"selec"Symbol 601 MovieClip {Air2} Frame 1Symbol 36 MovieClip
"body"Symbol 601 MovieClip {Air2} Frame 1Symbol 9 MovieClip
"selec"Symbol 610 MovieClip {Air3} Frame 1Symbol 4 MovieClip
"body"Symbol 610 MovieClip {Air3} Frame 1Symbol 9 MovieClip
"selec"Symbol 620 MovieClip {Air4} Frame 1Symbol 4 MovieClip
"body"Symbol 620 MovieClip {Air4} Frame 1Symbol 9 MovieClip
"pic"Symbol 627 MovieClip {BattleFieldArenav2_fla.idle_167} Frame 1Symbol 626 MovieClip {BattleFieldArenav2_fla.Tween3_168}
"pic"Symbol 638 MovieClip {BattleFieldArenav2_fla.bigbossmusuhkenatembak_171} Frame 1Symbol 635 MovieClip
"pic"Symbol 639 MovieClip {Boss} Frame 1Symbol 627 MovieClip {BattleFieldArenav2_fla.idle_167}
"hpbar"Symbol 639 MovieClip {Boss} Frame 1Symbol 632 MovieClip
"pic"Symbol 639 MovieClip {Boss} Frame 6Symbol 638 MovieClip {BattleFieldArenav2_fla.bigbossmusuhkenatembak_171}
"sm"Symbol 728 MovieClip {BattleFieldArenav2_fla.bomb_smoker3_207} Frame 1Symbol 727 MovieClip
"sm"Symbol 729 MovieClip {BattleFieldArenav2_fla.bomb_smoker4_206} Frame 1Symbol 728 MovieClip {BattleFieldArenav2_fla.bomb_smoker3_207}
"playbtn"Symbol 768 MovieClip {BattleFieldArenav2_fla.MainMenu_212} Frame 1Symbol 759 Button
"contbtn"Symbol 768 MovieClip {BattleFieldArenav2_fla.MainMenu_212} Frame 1Symbol 762 Button
"morebtn"Symbol 768 MovieClip {BattleFieldArenav2_fla.MainMenu_212} Frame 1Symbol 764 Button
"creditbtn"Symbol 768 MovieClip {BattleFieldArenav2_fla.MainMenu_212} Frame 1Symbol 767 Button
"yes"Symbol 794 MovieClip {BattleFieldArenav2_fla.Warn_222} Frame 1Symbol 788 Button
"no"Symbol 794 MovieClip {BattleFieldArenav2_fla.Warn_222} Frame 1Symbol 792 Button
"btnlogo"Symbol 830 MovieClip {BattleFieldArenav2_fla.Credit_227} Frame 1Symbol 803 Button
"closebtn"Symbol 830 MovieClip {BattleFieldArenav2_fla.Credit_227} Frame 1Symbol 824 Button
"logoab"Symbol 830 MovieClip {BattleFieldArenav2_fla.Credit_227} Frame 1Symbol 774 Button
"btnfb"Symbol 830 MovieClip {BattleFieldArenav2_fla.Credit_227} Frame 1Symbol 828 Button
"btna"Symbol 936 MovieClip {BattleFieldArenav2_fla.Btn510_240} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btnb"Symbol 936 MovieClip {BattleFieldArenav2_fla.Btn510_240} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btna"Symbol 942 MovieClip {BattleFieldArenav2_fla.Btn49_243} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btnb"Symbol 942 MovieClip {BattleFieldArenav2_fla.Btn49_243} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btna"Symbol 948 MovieClip {BattleFieldArenav2_fla.Btn38_245} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btnb"Symbol 948 MovieClip {BattleFieldArenav2_fla.Btn38_245} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btna"Symbol 954 MovieClip {BattleFieldArenav2_fla.Btn27_247} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btnb"Symbol 954 MovieClip {BattleFieldArenav2_fla.Btn27_247} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btna"Symbol 960 MovieClip {BattleFieldArenav2_fla.Btn16_249} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"btnb"Symbol 960 MovieClip {BattleFieldArenav2_fla.Btn16_249} Frame 1Symbol 932 MovieClip {BattleFieldArenav2_fla.BtnStage_241}
"tax"Symbol 989 MovieClip {BattleFieldArenav2_fla.PanelKet_252} Frame 1Symbol 986 EditableText
"score"Symbol 989 MovieClip {BattleFieldArenav2_fla.PanelKet_252} Frame 1Symbol 987 EditableText
"gun"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 21Symbol 288 MovieClip
"gun"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 26Symbol 303 MovieClip
"pic"Symbol 1008 MovieClip {BattleFieldArenav2_fla.MoveKursor_263} Frame 1Symbol 1007 MovieClip {BattleFieldArenav2_fla.kursor2_264}
"teks"Symbol 1016 MovieClip {BattleFieldArenav2_fla.Test2_266} Frame 1Symbol 1014 EditableText
"sub"Symbol 1016 MovieClip {BattleFieldArenav2_fla.Test2_266} Frame 1Symbol 1015 EditableText
"texting"Symbol 1086 MovieClip {BattleFieldArenav2_fla.kapten_294} Frame 22Symbol 1085 EditableText
"uc"Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309} Frame 1Symbol 1115 EditableText
"ud"Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309} Frame 1Symbol 1116 EditableText
"eud"Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309} Frame 1Symbol 1117 EditableText
"ebd"Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309} Frame 1Symbol 1118 EditableText
"goe"Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309} Frame 1Symbol 1119 EditableText
"tp"Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309} Frame 1Symbol 1121 EditableText
"medaltext"Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309} Frame 1Symbol 1124 MovieClip
"effect"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 923 MovieClip
"land"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 923 MovieClip
"bangunan"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 923 MovieClip
"btn5"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 936 MovieClip {BattleFieldArenav2_fla.Btn510_240}
"btn4"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 942 MovieClip {BattleFieldArenav2_fla.Btn49_243}
"btn3"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 948 MovieClip {BattleFieldArenav2_fla.Btn38_245}
"btn2"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 954 MovieClip {BattleFieldArenav2_fla.Btn27_247}
"btn1"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 960 MovieClip {BattleFieldArenav2_fla.Btn16_249}
"ketmap"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 989 MovieClip {BattleFieldArenav2_fla.PanelKet_252}
"logoab"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 774 Button
"btnmedal"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 993 Button
"btnnext"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 997 Button
"air"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 923 MovieClip
"fog"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 923 MovieClip
"dragarea"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 575 MovieClip
"bangunan"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260}
"rallyflag"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 1006 MovieClip
"movek"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 1008 MovieClip {BattleFieldArenav2_fla.MoveKursor_263}
"range"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 1011 MovieClip
"kettext"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 1016 MovieClip {BattleFieldArenav2_fla.Test2_266}
"fadeinout"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 1017 MovieClip {BattleFieldArenav2_fla.Tirai_267}
"btnback"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 1Symbol 1020 Button
"map1"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 2Symbol 1023 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 2Symbol 9 MovieClip
"atk"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 7Symbol 9 MovieClip
"atk2"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 7Symbol 9 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 7Symbol 1024 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 12Symbol 1028 MovieClip
"def"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 17Symbol 9 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 17Symbol 1032 MovieClip
"end4"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22Symbol 9 MovieClip
"safet"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22Symbol 80 MovieClip {Safety}
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22Symbol 1038 MovieClip
"mapt"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22Symbol 1071 MovieClip {BattleFieldArenav2_fla.maparray_278}
"char"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22Symbol 1086 MovieClip {BattleFieldArenav2_fla.kapten_294}
"char2"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22Symbol 1086 MovieClip {BattleFieldArenav2_fla.kapten_294}
"btnskip"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22Symbol 920 MovieClip
"atk2"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 27Symbol 9 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 27Symbol 1090 MovieClip
"map1"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 33Symbol 1094 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 33Symbol 1095 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 38Symbol 1096 MovieClip
"atk"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 44Symbol 9 MovieClip
"atk2"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 44Symbol 9 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 44Symbol 1105 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 50Symbol 1106 MovieClip
"obst"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 55Symbol 1107 MovieClip
"boss"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 55Symbol 639 MovieClip {Boss}
"ket"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 60Symbol 1125 MovieClip {BattleFieldArenav2_fla.Result_309}
"train1"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train2"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train3"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train4"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train5"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train6"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train7"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train8"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train9"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"train10"Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326} Frame 1Symbol 1247 MovieClip
"health"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 1Symbol 114 MovieClip
"train"Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331} Frame 1Symbol 1247 MovieClip
"train1"Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331} Frame 1Symbol 1247 MovieClip
"train2"Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331} Frame 1Symbol 1247 MovieClip
"train3"Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331} Frame 1Symbol 1247 MovieClip
"train4"Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331} Frame 1Symbol 1247 MovieClip
"train5"Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331} Frame 1Symbol 1247 MovieClip
"progres"Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331} Frame 1Symbol 1272 MovieClip
"unit2"Symbol 1280 MovieClip {BattleFieldArenav2_fla.BtnAirUnit_333} Frame 1Symbol 1276 Button
"unit1"Symbol 1280 MovieClip {BattleFieldArenav2_fla.BtnAirUnit_333} Frame 1Symbol 1279 Button
"unit2"Symbol 1289 MovieClip {BattleFieldArenav2_fla.BtnLandUnit_336} Frame 1Symbol 1282 Button
"unit1"Symbol 1289 MovieClip {BattleFieldArenav2_fla.BtnLandUnit_336} Frame 1Symbol 1284 Button
"unit4"Symbol 1289 MovieClip {BattleFieldArenav2_fla.BtnLandUnit_336} Frame 1Symbol 1286 Button
"unit3"Symbol 1289 MovieClip {BattleFieldArenav2_fla.BtnLandUnit_336} Frame 1Symbol 1288 Button
"mainbtn"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1293 Button
"landbtn"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1297 Button
"airbtn"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1301 Button
"goldbtn"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1305 Button
"tower1"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1309 Button
"tower2"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1312 Button
"tower3"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1316 Button
"storebtn"Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341} Frame 1Symbol 1320 Button
"airbtn"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1301 Button
"tower1"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1309 Button
"tower2"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1312 Button
"tower3"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1316 Button
"unit2a"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1276 Button
"unit2"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1282 Button
"unit4"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1286 Button
"unit3"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1288 Button
"lockairbtn"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"lockunit2a"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"locktower1"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"locktower2"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"locktower3"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"lockunit2"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"lockunit3"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"lockunit4"Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350} Frame 1Symbol 1324 MovieClip
"hp"Symbol 1346 MovieClip {BattleFieldArenav2_fla.HpBarBoss_360} Frame 1Symbol 632 MovieClip
"cost"Symbol 1376 MovieClip {BattleFieldArenav2_fla.PanelKetNEW_361} Frame 1Symbol 1349 EditableText
"ket"Symbol 1376 MovieClip {BattleFieldArenav2_fla.PanelKetNEW_361} Frame 1Symbol 1350 EditableText
"head"Symbol 1376 MovieClip {BattleFieldArenav2_fla.PanelKetNEW_361} Frame 1Symbol 1352 EditableText
"pic"Symbol 1376 MovieClip {BattleFieldArenav2_fla.PanelKetNEW_361} Frame 1Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362}
"maxtext"Symbol 1376 MovieClip {BattleFieldArenav2_fla.PanelKetNEW_361} Frame 1Symbol 1375 EditableText
"beha"Symbol 1379 MovieClip {BattleFieldArenav2_fla.Test_363} Frame 1Symbol 1378 EditableText
"map1"Symbol 1418 MovieClip {BattleFieldArenav2_fla.Map1Mini_379} Frame 1Symbol 1023 MovieClip
"obst"Symbol 1418 MovieClip {BattleFieldArenav2_fla.Map1Mini_379} Frame 1Symbol 1024 MovieClip
"map1"Symbol 1426 MovieClip {BattleFieldArenav2_fla.Map6Mini_385} Frame 1Symbol 1023 MovieClip
"obst"Symbol 1426 MovieClip {BattleFieldArenav2_fla.Map6Mini_385} Frame 1Symbol 1095 MovieClip
"map1"Symbol 1427 MovieClip {BattleFieldArenav2_fla.Map7Mini_386} Frame 1Symbol 1027 MovieClip
"obst"Symbol 1427 MovieClip {BattleFieldArenav2_fla.Map7Mini_386} Frame 1Symbol 1096 MovieClip
"map1"Symbol 1428 MovieClip {BattleFieldArenav2_fla.Map8Mini_387} Frame 1Symbol 1104 MovieClip
"obst"Symbol 1428 MovieClip {BattleFieldArenav2_fla.Map8Mini_387} Frame 1Symbol 1105 MovieClip
"map1"Symbol 1429 MovieClip {BattleFieldArenav2_fla.Map9Mini_388} Frame 1Symbol 1035 MovieClip
"obst"Symbol 1429 MovieClip {BattleFieldArenav2_fla.Map9Mini_388} Frame 1Symbol 1106 MovieClip
"map1"Symbol 1430 MovieClip {BattleFieldArenav2_fla.Map10Mini_389} Frame 1Symbol 1089 MovieClip
"obst"Symbol 1430 MovieClip {BattleFieldArenav2_fla.Map10Mini_389} Frame 1Symbol 1107 MovieClip
"inde"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 1Symbol 923 MovieClip
"fog"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 1Symbol 923 MovieClip
"frame"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 1Symbol 1421 MovieClip
"map1"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 51Symbol 1023 MovieClip
"selectTEKS"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1234 EditableText
"picselect"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1248 MovieClip {BattleFieldArenav2_fla.PicSelected_326}
"picbuild"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328}
"pic"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1273 MovieClip {BattleFieldArenav2_fla.PicUnitAll_331}
"btnairunit"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1280 MovieClip {BattleFieldArenav2_fla.BtnAirUnit_333}
"btnunit"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1289 MovieClip {BattleFieldArenav2_fla.BtnLandUnit_336}
"btnstruc"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1321 MovieClip {BattleFieldArenav2_fla.BtnStruc_341}
"upgradeBtn"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1325 MovieClip {BattleFieldArenav2_fla.UpgradeMain_350}
"duit"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1327 EditableText
"pop"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1328 EditableText
"Time"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1329 EditableText
"siloo"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1333 MovieClip {BattleFieldArenav2_fla.PopulasiAlert_352}
"funds"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1336 MovieClip {BattleFieldArenav2_fla.MoneyAlert_355}
"textcancel"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1343 MovieClip
"hpboss"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1346 MovieClip {BattleFieldArenav2_fla.HpBarBoss_360}
"ket"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1376 MovieClip {BattleFieldArenav2_fla.PanelKetNEW_361}
"behatext"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1379 MovieClip {BattleFieldArenav2_fla.Test_363}
"newtech"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1381 MovieClip {BattleFieldArenav2_fla.Test3_364}
"newmedal"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1383 MovieClip {BattleFieldArenav2_fla.MedalAlert_365}
"beha"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1400 MovieClip {BattleFieldArenav2_fla.BehaviourBtn_367}
"btnmute"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1407 MovieClip {BattleFieldArenav2_fla.BtnMuteMc_370}
"btnplay"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1414 MovieClip {BattleFieldArenav2_fla.BtnPlayMC_373}
"minimaphide"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1415 MovieClip {BattleFieldArenav2_fla.MiniMapbtn_376}
"minihold"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1417 MovieClip
"mini"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378}
"atas"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"bawah"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"kiri"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"kanan"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"kiriatas"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"kananatas"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"kiribawah"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"kananbawah"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 330 MovieClip {Cek4}
"textStage"Symbol 1440 MovieClip {BattleFieldArenav2_fla.Panel_324} Frame 1Symbol 1439 MovieClip {BattleFieldArenav2_fla.TextStage_390}
"backbtn"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1483 Button
"build10"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"destroy100"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"destroy500"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"opencredit"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"mines5"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"alltech"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"tower7"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"submitscore"Symbol 1496 MovieClip {BattleFieldArenav2_fla.AchieLayar_403} Frame 1Symbol 1487 MovieClip {BattleFieldArenav2_fla.AchieStar_405}
"bar"Symbol 1507 MovieClip {BattleFieldArenav2_fla.Slider_410} Frame 1Symbol 1506 MovieClip
"btm"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 1483 Button
"yes"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 788 Button
"no"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 792 Button
"rsm"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 1501 Button
"slidesfx"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 1507 MovieClip {BattleFieldArenav2_fla.Slider_410}
"slidemusic"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 1507 MovieClip {BattleFieldArenav2_fla.Slider_410}
"ql"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 1514 MovieClip {BattleFieldArenav2_fla.CekBox_412}
"qm"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 1514 MovieClip {BattleFieldArenav2_fla.CekBox_412}
"qh"Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408} Frame 1Symbol 1514 MovieClip {BattleFieldArenav2_fla.CekBox_412}
"menupause"Symbol 1519 MovieClip {BattleFieldArenav2_fla.Pausegame_407} Frame 1Symbol 1518 MovieClip {BattleFieldArenav2_fla.PauseGame_408}
"nama"Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418} Frame 1Symbol 1574 EditableText
"score"Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418} Frame 1Symbol 1575 EditableText
"no"Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418} Frame 1Symbol 1576 EditableText
"btnsub"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 1Symbol 1563 Button
"btncancel"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 1Symbol 1566 Button
"nama"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 1Symbol 1567 EditableText
"score"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 1Symbol 1568 EditableText
"baris2"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris4"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris3"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris6"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris8"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris7"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris5"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris10"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris9"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"baris1"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1577 MovieClip {BattleFieldArenav2_fla.HiscoreText_418}
"btnback"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1582 Button
"btn1"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1586 MovieClip
"btn2"Symbol 1591 MovieClip {BattleFieldArenav2_fla.Hiscorepanel_415} Frame 2Symbol 1589 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"preloader"Frame 1
"load"Frame 7
"absplash"Frame 8
"sfsplash"Frame 14
"menu"Frame 20
"opening"Frame 30
"playing"Frame 31
"ending"Frame 41
"idle"Symbol 591 MovieClip {Air1} Frame 1
"move"Symbol 591 MovieClip {Air1} Frame 6
"fire"Symbol 591 MovieClip {Air1} Frame 11
"idle"Symbol 601 MovieClip {Air2} Frame 1
"move"Symbol 601 MovieClip {Air2} Frame 6
"fire"Symbol 601 MovieClip {Air2} Frame 11
"idle"Symbol 610 MovieClip {Air3} Frame 1
"move"Symbol 610 MovieClip {Air3} Frame 6
"fire"Symbol 610 MovieClip {Air3} Frame 11
"idle"Symbol 620 MovieClip {Air4} Frame 1
"move"Symbol 620 MovieClip {Air4} Frame 6
"fire"Symbol 620 MovieClip {Air4} Frame 11
"idle"Symbol 639 MovieClip {Boss} Frame 1
"drain"Symbol 639 MovieClip {Boss} Frame 6
"end"Symbol 917 MovieClip {BattleFieldArenav2_fla.OpeningMovie_236} Frame 1682
"main"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 1
"barrack"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 6
"air"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 11
"miner"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 16
"tower1"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 21
"tower2"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 26
"tower3"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 31
"store"Symbol 1000 MovieClip {BattleFieldArenav2_fla.BuildingMC_260} Frame 36
"end"Symbol 1071 MovieClip {BattleFieldArenav2_fla.maparray_278} Frame 317
"end"Symbol 1086 MovieClip {BattleFieldArenav2_fla.kapten_294} Frame 28
"tutor"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 2
"stage1"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 7
"stage2"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 12
"stage3"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 17
"stage4"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 22
"stage5"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 27
"stage6"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 33
"stage7"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 38
"stage8"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 44
"stage9"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 50
"stage10"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 55
"win"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 60
"lose"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 65
"bossdown"Symbol 1217 MovieClip {BattleFieldArenav2_fla.Main_238} Frame 70
"empty"Symbol 1247 MovieClip Frame 7
"MAIN"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 1
"MINER"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 6
"Barrack"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 11
"BarrackAir"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 16
"Tower1"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 21
"Tower2"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 26
"Tower3"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 31
"Store"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 36
"empty"Symbol 1269 MovieClip {BattleFieldArenav2_fla.PicBuilding_328} Frame 41
"end"Symbol 1333 MovieClip {BattleFieldArenav2_fla.PopulasiAlert_352} Frame 65
"end"Symbol 1336 MovieClip {BattleFieldArenav2_fla.MoneyAlert_355} Frame 65
"main"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 1
"miner"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 6
"barrack"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 11
"air"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 16
"tower1"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 21
"tower2"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 26
"tower3"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 31
"store"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 36
"empty"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 41
"tank1"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 46
"tank2"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 51
"tank3"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 56
"tank4"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 61
"plane1"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 66
"plane2"Symbol 1373 MovieClip {BattleFieldArenav2_fla.PicKet_362} Frame 71
"end"Symbol 1381 MovieClip {BattleFieldArenav2_fla.Test3_364} Frame 133
"end"Symbol 1383 MovieClip {BattleFieldArenav2_fla.MedalAlert_365} Frame 161
"obey"Symbol 1400 MovieClip {BattleFieldArenav2_fla.BehaviourBtn_367} Frame 1
"agresif"Symbol 1400 MovieClip {BattleFieldArenav2_fla.BehaviourBtn_367} Frame 6
"stage1"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 1
"stage2"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 6
"stage3"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 11
"stage4"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 16
"stage5"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 21
"stage6"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 26
"stage7"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 31
"stage8"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 36
"stage9"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 41
"stage10"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 46
"tutor"Symbol 1431 MovieClip {BattleFieldArenav2_fla.MiniMap_378} Frame 51
"padangpasir"Symbol 1471 MovieClip {BattleFieldArenav2_fla.Animasi_391} Frame 2
"hutan"Symbol 1471 MovieClip {BattleFieldArenav2_fla.Animasi_391} Frame 42
"sungai"Symbol 1471 MovieClip {BattleFieldArenav2_fla.Animasi_391} Frame 82
"bukit"Symbol 1471 MovieClip {BattleFieldArenav2_fla.Animasi_391} Frame 122
"salju"Symbol 1471 MovieClip {BattleFieldArenav2_fla.Animasi_391} Frame 162
"select"Symbol 1479 MovieClip {BattleFieldArenav2_fla.TutorNEW_402} Frame 1
"rally"Symbol 1479 MovieClip {BattleFieldArenav2_fla.TutorNEW_402} Frame 2
"unit"Symbol 1479 MovieClip {BattleFieldArenav2_fla.TutorNEW_402} Frame 3
"end"Symbol 1479 MovieClip {BattleFieldArenav2_fla.TutorNEW_402} Frame 4




http://swfchan.com/27/131722/info.shtml
Created: 21/2 -2019 02:09:40 Last modified: 21/2 -2019 02:09:40 Server time: 14/05 -2024 02:51:20