Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package CPMStar
Section 2
//achievement1_96 (ZeroBullets_fla.achievement1_96)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement1_96 extends MovieClip {
public function achievement1_96(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 3
//achievement10_105 (ZeroBullets_fla.achievement10_105)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement10_105 extends MovieClip {
public function achievement10_105(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 4
//achievement2_97 (ZeroBullets_fla.achievement2_97)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement2_97 extends MovieClip {
public function achievement2_97(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 5
//achievement3_98 (ZeroBullets_fla.achievement3_98)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement3_98 extends MovieClip {
public function achievement3_98(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 6
//achievement4_99 (ZeroBullets_fla.achievement4_99)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement4_99 extends MovieClip {
public function achievement4_99(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 7
//achievement5_100 (ZeroBullets_fla.achievement5_100)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement5_100 extends MovieClip {
public function achievement5_100(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 8
//achievement6_101 (ZeroBullets_fla.achievement6_101)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement6_101 extends MovieClip {
public function achievement6_101(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 9
//achievement7_102 (ZeroBullets_fla.achievement7_102)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement7_102 extends MovieClip {
public function achievement7_102(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 10
//achievement8_103 (ZeroBullets_fla.achievement8_103)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement8_103 extends MovieClip {
public function achievement8_103(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 11
//achievement9_104 (ZeroBullets_fla.achievement9_104)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class achievement9_104 extends MovieClip {
public function achievement9_104(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 12
//Bonus_info_136 (ZeroBullets_fla.Bonus_info_136)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Bonus_info_136 extends MovieClip {
public function Bonus_info_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 13
//Bonus_maxInfo1_138 (ZeroBullets_fla.Bonus_maxInfo1_138)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Bonus_maxInfo1_138 extends MovieClip {
public function Bonus_maxInfo1_138(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 14
//Bonus_maxInfo2_140 (ZeroBullets_fla.Bonus_maxInfo2_140)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Bonus_maxInfo2_140 extends MovieClip {
public function Bonus_maxInfo2_140(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 15
//Bonus_maxInfo3_142 (ZeroBullets_fla.Bonus_maxInfo3_142)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Bonus_maxInfo3_142 extends MovieClip {
public function Bonus_maxInfo3_142(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 16
//Bonus_maxInfo4_144 (ZeroBullets_fla.Bonus_maxInfo4_144)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Bonus_maxInfo4_144 extends MovieClip {
public function Bonus_maxInfo4_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 17
//Bonus_maxInfo5_146 (ZeroBullets_fla.Bonus_maxInfo5_146)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Bonus_maxInfo5_146 extends MovieClip {
public function Bonus_maxInfo5_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 18
//Bonus_maxInfo6_148 (ZeroBullets_fla.Bonus_maxInfo6_148)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Bonus_maxInfo6_148 extends MovieClip {
public function Bonus_maxInfo6_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 19
//Bonus1_137 (ZeroBullets_fla.Bonus1_137)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Bonus1_137 extends MovieClip {
public var this_levelMax:TextField;
public var this_Level:TextField;
public var this_Price:TextField;
public var thisCost:Array;
public var active:Boolean;
public var heroParameter:Array;
public var this_maxInfo:MovieClip;
public function Bonus1_137(){
addFrameScript(0, frame1);
}
public function enterframe2(_arg1:Event){
if (MovieClip(root).bonus1_i > 0){
};
if ((((MovieClip(root).money >= thisCost[MovieClip(root).bonus1_i])) && ((MovieClip(root).bonus1_i < MovieClip(root).bonus1_imax)))){
active = true;
} else {
active = false;
};
}
public function showInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(2);
MovieClip(root).upgradeInfo.gotoAndStop(1);
}
function frame1(){
thisCost = [1000, 3000, 7500, 16000, 30000];
heroParameter = [45, 65, 90, 120, 155];
active = false;
this_Level.text = MovieClip(root).bonus1_i;
if (MovieClip(root).bonus1_i >= MovieClip(root).bonus1_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus1_i];
};
this_levelMax.text = String(MovieClip(root).bonus1_imax);
this_maxInfo.addEventListener(MouseEvent.CLICK, clickbtn);
this_maxInfo.buttonMode = true;
this.addEventListener(Event.ENTER_FRAME, enterframe2);
this_maxInfo.addEventListener(MouseEvent.ROLL_OVER, showInfo);
this_maxInfo.addEventListener(MouseEvent.ROLL_OUT, hideInfo);
}
public function clickbtn(_arg1:MouseEvent){
if (active){
MovieClip(root).money = (MovieClip(root).money - thisCost[MovieClip(root).bonus1_i]);
MovieClip(root).var1_Hero = heroParameter[MovieClip(root).bonus1_i];
MovieClip(root).bonus1_i = (MovieClip(root).bonus1_i + 1);
this_Level.text = MovieClip(root).bonus1_i;
if (MovieClip(root).bonus1_i >= MovieClip(root).bonus1_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus1_i];
};
if (MovieClip(root).sfxActive){
MovieClip(root).soundclick.play();
};
active = false;
};
}
public function hideInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(1);
MovieClip(root).upgradeInfo.gotoAndStop(7);
}
public function removeEvent(){
this.removeEventListener(Event.ENTER_FRAME, enterframe2);
}
}
}//package ZeroBullets_fla
Section 20
//Bonus2_139 (ZeroBullets_fla.Bonus2_139)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Bonus2_139 extends MovieClip {
public var this_levelMax:TextField;
public var this_Level:TextField;
public var this_Price:TextField;
public var thisCost:Array;
public var active:Boolean;
public var heroParameter:Array;
public var this_maxInfo:MovieClip;
public function Bonus2_139(){
addFrameScript(0, frame1);
}
public function enterframe2(_arg1:Event){
if (MovieClip(root).bonus2_i > 0){
};
if ((((MovieClip(root).money >= thisCost[MovieClip(root).bonus2_i])) && ((MovieClip(root).bonus2_i < MovieClip(root).bonus2_imax)))){
active = true;
} else {
active = false;
};
}
public function showInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(2);
MovieClip(root).upgradeInfo.gotoAndStop(2);
}
function frame1(){
thisCost = [1000, 3000, 7500, 16000, 30000];
heroParameter = [35, 40, 45, 50, 60];
active = false;
this_Level.text = MovieClip(root).bonus2_i;
if (MovieClip(root).bonus2_i >= MovieClip(root).bonus2_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus2_i];
};
this_levelMax.text = String(MovieClip(root).bonus2_imax);
this_maxInfo.addEventListener(MouseEvent.CLICK, clickbtn);
this_maxInfo.buttonMode = true;
this.addEventListener(Event.ENTER_FRAME, enterframe2);
this_maxInfo.addEventListener(MouseEvent.ROLL_OVER, showInfo);
this_maxInfo.addEventListener(MouseEvent.ROLL_OUT, hideInfo);
}
public function clickbtn(_arg1:MouseEvent){
if (active){
MovieClip(root).money = (MovieClip(root).money - thisCost[MovieClip(root).bonus2_i]);
MovieClip(root).var2_Hero = heroParameter[MovieClip(root).bonus2_i];
MovieClip(root).bonus2_i = (MovieClip(root).bonus2_i + 1);
this_Level.text = MovieClip(root).bonus2_i;
if (MovieClip(root).bonus2_i >= MovieClip(root).bonus2_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus2_i];
};
if (MovieClip(root).sfxActive){
MovieClip(root).soundclick.play();
};
active = false;
};
}
public function hideInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(1);
MovieClip(root).upgradeInfo.gotoAndStop(7);
}
public function removeEvent(){
this.removeEventListener(Event.ENTER_FRAME, enterframe2);
}
}
}//package ZeroBullets_fla
Section 21
//Bonus3_141 (ZeroBullets_fla.Bonus3_141)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Bonus3_141 extends MovieClip {
public var this_levelMax:TextField;
public var this_Level:TextField;
public var this_Price:TextField;
public var thisCost:Array;
public var active:Boolean;
public var heroParameter:Array;
public var this_maxInfo:MovieClip;
public function Bonus3_141(){
addFrameScript(0, frame1);
}
public function enterframe2(_arg1:Event){
if (MovieClip(root).bonus3_i > 0){
};
if ((((MovieClip(root).money >= thisCost[MovieClip(root).bonus3_i])) && ((MovieClip(root).bonus3_i < MovieClip(root).bonus3_imax)))){
active = true;
} else {
active = false;
};
}
public function showInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(2);
MovieClip(root).upgradeInfo.gotoAndStop(3);
}
function frame1(){
thisCost = [1000, 3000, 7500, 16000, 30000];
heroParameter = [50, 60, 70, 80, 90];
active = false;
this_Level.text = MovieClip(root).bonus3_i;
if (MovieClip(root).bonus3_i >= MovieClip(root).bonus3_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus3_i];
};
this_levelMax.text = String(MovieClip(root).bonus3_imax);
this_maxInfo.addEventListener(MouseEvent.CLICK, clickbtn);
this_maxInfo.buttonMode = true;
this.addEventListener(Event.ENTER_FRAME, enterframe2);
this_maxInfo.addEventListener(MouseEvent.ROLL_OVER, showInfo);
this_maxInfo.addEventListener(MouseEvent.ROLL_OUT, hideInfo);
}
public function clickbtn(_arg1:MouseEvent){
if (active){
MovieClip(root).money = (MovieClip(root).money - thisCost[MovieClip(root).bonus3_i]);
MovieClip(root).var3_Hero = heroParameter[MovieClip(root).bonus3_i];
MovieClip(root).bonus3_i = (MovieClip(root).bonus3_i + 1);
this_Level.text = MovieClip(root).bonus3_i;
if (MovieClip(root).bonus3_i >= MovieClip(root).bonus3_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus3_i];
};
if (MovieClip(root).sfxActive){
MovieClip(root).soundclick.play();
};
active = false;
};
}
public function hideInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(1);
MovieClip(root).upgradeInfo.gotoAndStop(7);
}
public function removeEvent(){
this.removeEventListener(Event.ENTER_FRAME, enterframe2);
}
}
}//package ZeroBullets_fla
Section 22
//Bonus4_143 (ZeroBullets_fla.Bonus4_143)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Bonus4_143 extends MovieClip {
public var this_levelMax:TextField;
public var this_Level:TextField;
public var this_Price:TextField;
public var thisCost:Array;
public var active:Boolean;
public var heroParameter:Array;
public var this_maxInfo:MovieClip;
public function Bonus4_143(){
addFrameScript(0, frame1);
}
public function enterframe2(_arg1:Event){
if (MovieClip(root).bonus4_i > 0){
};
if ((((MovieClip(root).money >= thisCost[MovieClip(root).bonus4_i])) && ((MovieClip(root).bonus4_i < MovieClip(root).bonus4_imax)))){
active = true;
} else {
active = false;
};
}
public function showInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(2);
MovieClip(root).upgradeInfo.gotoAndStop(4);
}
function frame1(){
thisCost = [1000, 3000, 7500, 16000, 30000];
heroParameter = [2, 3, 4, 4.5, 5.5];
active = false;
this_Level.text = MovieClip(root).bonus4_i;
if (MovieClip(root).bonus4_i >= MovieClip(root).bonus4_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus4_i];
};
this_levelMax.text = String(MovieClip(root).bonus4_imax);
this_maxInfo.addEventListener(MouseEvent.CLICK, clickbtn);
this_maxInfo.buttonMode = true;
this.addEventListener(Event.ENTER_FRAME, enterframe2);
this_maxInfo.addEventListener(MouseEvent.ROLL_OVER, showInfo);
this_maxInfo.addEventListener(MouseEvent.ROLL_OUT, hideInfo);
}
public function clickbtn(_arg1:MouseEvent){
if (active){
MovieClip(root).money = (MovieClip(root).money - thisCost[MovieClip(root).bonus4_i]);
MovieClip(root).var4_Hero = heroParameter[MovieClip(root).bonus4_i];
MovieClip(root).bonus4_i = (MovieClip(root).bonus4_i + 1);
this_Level.text = MovieClip(root).bonus4_i;
if (MovieClip(root).bonus4_i >= MovieClip(root).bonus4_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus4_i];
};
if (MovieClip(root).sfxActive){
MovieClip(root).soundclick.play();
};
active = false;
};
}
public function hideInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(1);
MovieClip(root).upgradeInfo.gotoAndStop(7);
}
public function removeEvent(){
this.removeEventListener(Event.ENTER_FRAME, enterframe2);
}
}
}//package ZeroBullets_fla
Section 23
//Bonus5_145 (ZeroBullets_fla.Bonus5_145)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Bonus5_145 extends MovieClip {
public var this_levelMax:TextField;
public var this_Level:TextField;
public var this_Price:TextField;
public var thisCost:Array;
public var active:Boolean;
public var heroParameter:Array;
public var this_maxInfo:MovieClip;
public function Bonus5_145(){
addFrameScript(0, frame1);
}
public function enterframe2(_arg1:Event){
if (MovieClip(root).bonus5_i > 0){
};
if ((((MovieClip(root).money >= thisCost[MovieClip(root).bonus5_i])) && ((MovieClip(root).bonus5_i < MovieClip(root).bonus5_imax)))){
active = true;
} else {
active = false;
};
}
public function showInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(2);
MovieClip(root).upgradeInfo.gotoAndStop(5);
}
function frame1(){
thisCost = [1000, 3000, 7500, 16000, 30000];
heroParameter = [4, 5, 6, 7, 8];
active = false;
this_Level.text = MovieClip(root).bonus5_i;
if (MovieClip(root).bonus5_i >= MovieClip(root).bonus5_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus5_i];
};
this_levelMax.text = String(MovieClip(root).bonus5_imax);
this_maxInfo.addEventListener(MouseEvent.CLICK, clickbtn);
this_maxInfo.buttonMode = true;
this.addEventListener(Event.ENTER_FRAME, enterframe2);
this_maxInfo.addEventListener(MouseEvent.ROLL_OVER, showInfo);
this_maxInfo.addEventListener(MouseEvent.ROLL_OUT, hideInfo);
}
public function clickbtn(_arg1:MouseEvent){
if (active){
MovieClip(root).money = (MovieClip(root).money - thisCost[MovieClip(root).bonus5_i]);
MovieClip(root).var5_Hero = heroParameter[MovieClip(root).bonus5_i];
MovieClip(root).bonus5_i = (MovieClip(root).bonus5_i + 1);
this_Level.text = MovieClip(root).bonus5_i;
if (MovieClip(root).bonus5_i >= MovieClip(root).bonus5_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus5_i];
};
if (MovieClip(root).sfxActive){
MovieClip(root).soundclick.play();
};
active = false;
};
}
public function hideInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(1);
MovieClip(root).upgradeInfo.gotoAndStop(7);
}
public function removeEvent(){
this.removeEventListener(Event.ENTER_FRAME, enterframe2);
}
}
}//package ZeroBullets_fla
Section 24
//Bonus6_147 (ZeroBullets_fla.Bonus6_147)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Bonus6_147 extends MovieClip {
public var this_levelMax:TextField;
public var this_Level:TextField;
public var this_Price:TextField;
public var thisCost:Array;
public var active:Boolean;
public var heroParameter:Array;
public var this_maxInfo:MovieClip;
public function Bonus6_147(){
addFrameScript(0, frame1);
}
public function enterframe2(_arg1:Event){
if (MovieClip(root).bonus6_i > 0){
};
if ((((MovieClip(root).money >= thisCost[MovieClip(root).bonus6_i])) && ((MovieClip(root).bonus6_i < MovieClip(root).bonus6_imax)))){
active = true;
} else {
active = false;
};
}
public function showInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(2);
MovieClip(root).upgradeInfo.gotoAndStop(6);
}
function frame1(){
thisCost = [1000, 3000, 7500, 16000, 30000];
heroParameter = [6, 7, 8, 9, 10];
active = false;
this_Level.text = MovieClip(root).bonus6_i;
if (MovieClip(root).bonus6_i >= MovieClip(root).bonus6_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus6_i];
};
this_levelMax.text = String(MovieClip(root).bonus6_imax);
this_maxInfo.addEventListener(MouseEvent.CLICK, clickbtn);
this_maxInfo.buttonMode = true;
this.addEventListener(Event.ENTER_FRAME, enterframe2);
this_maxInfo.addEventListener(MouseEvent.ROLL_OVER, showInfo);
this_maxInfo.addEventListener(MouseEvent.ROLL_OUT, hideInfo);
}
public function clickbtn(_arg1:MouseEvent){
if (active){
MovieClip(root).money = (MovieClip(root).money - thisCost[MovieClip(root).bonus6_i]);
MovieClip(root).var6_Hero = heroParameter[MovieClip(root).bonus6_i];
MovieClip(root).bonus6_i = (MovieClip(root).bonus6_i + 1);
this_Level.text = MovieClip(root).bonus6_i;
if (MovieClip(root).bonus6_i >= MovieClip(root).bonus6_imax){
this_Price.text = "MAX";
} else {
this_Price.text = thisCost[MovieClip(root).bonus6_i];
};
if (MovieClip(root).sfxActive){
MovieClip(root).soundclick.play();
};
active = false;
};
}
public function hideInfo(_arg1:MouseEvent){
this_maxInfo.gotoAndStop(1);
MovieClip(root).upgradeInfo.gotoAndStop(7);
}
public function removeEvent(){
this.removeEventListener(Event.ENTER_FRAME, enterframe2);
}
}
}//package ZeroBullets_fla
Section 25
//container_9 (ZeroBullets_fla.container_9)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class container_9 extends MovieClip {
public function container_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 26
//DisplayHelp_95 (ZeroBullets_fla.DisplayHelp_95)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class DisplayHelp_95 extends MovieClip {
public function DisplayHelp_95(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package ZeroBullets_fla
Section 27
//DisplayHint_sub_69 (ZeroBullets_fla.DisplayHint_sub_69)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class DisplayHint_sub_69 extends MovieClip {
public function DisplayHint_sub_69(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 28
//inBetween_92 (ZeroBullets_fla.inBetween_92)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class inBetween_92 extends MovieClip {
public function inBetween_92(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package ZeroBullets_fla
Section 29
//Level_1_106 (ZeroBullets_fla.Level_1_106)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_1_106 extends MovieClip {
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_1_106(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 1){
aktif = true;
} else {
aktif = false;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 30
//Level_10_125 (ZeroBullets_fla.Level_10_125)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_10_125 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_10_125(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 10){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 31
//Level_10sub_126 (ZeroBullets_fla.Level_10sub_126)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_10sub_126 extends MovieClip {
public function Level_10sub_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 32
//Level_11_127 (ZeroBullets_fla.Level_11_127)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_11_127 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_11_127(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 11){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 33
//Level_11sub_128 (ZeroBullets_fla.Level_11sub_128)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_11sub_128 extends MovieClip {
public function Level_11sub_128(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 34
//Level_12_129 (ZeroBullets_fla.Level_12_129)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_12_129 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_12_129(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 12){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 35
//Level_12sub_130 (ZeroBullets_fla.Level_12sub_130)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_12sub_130 extends MovieClip {
public function Level_12sub_130(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 36
//Level_13_131 (ZeroBullets_fla.Level_13_131)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_13_131 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_13_131(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).noLock){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 37
//Level_13sub_132 (ZeroBullets_fla.Level_13sub_132)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_13sub_132 extends MovieClip {
public function Level_13sub_132(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 38
//Level_1sub_107 (ZeroBullets_fla.Level_1sub_107)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_1sub_107 extends MovieClip {
public function Level_1sub_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 39
//Level_2_108 (ZeroBullets_fla.Level_2_108)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_2_108 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_2_108(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 2){
sub.visible = false;
aktif = true;
} else {
sub.visible = true;
aktif = false;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 40
//Level_2sub_109 (ZeroBullets_fla.Level_2sub_109)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_2sub_109 extends MovieClip {
public function Level_2sub_109(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 41
//Level_3_111 (ZeroBullets_fla.Level_3_111)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_3_111 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_3_111(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 3){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 42
//Level_3sub_112 (ZeroBullets_fla.Level_3sub_112)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_3sub_112 extends MovieClip {
public function Level_3sub_112(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 43
//Level_4_113 (ZeroBullets_fla.Level_4_113)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_4_113 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_4_113(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 4){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 44
//Level_4sub_114 (ZeroBullets_fla.Level_4sub_114)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_4sub_114 extends MovieClip {
public function Level_4sub_114(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 45
//Level_5_115 (ZeroBullets_fla.Level_5_115)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_5_115 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_5_115(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 5){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 46
//Level_5sub_116 (ZeroBullets_fla.Level_5sub_116)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_5sub_116 extends MovieClip {
public function Level_5sub_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 47
//Level_6_117 (ZeroBullets_fla.Level_6_117)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_6_117 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_6_117(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 6){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 48
//Level_6sub_118 (ZeroBullets_fla.Level_6sub_118)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_6sub_118 extends MovieClip {
public function Level_6sub_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 49
//Level_7_119 (ZeroBullets_fla.Level_7_119)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_7_119 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_7_119(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 7){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 50
//Level_7sub_120 (ZeroBullets_fla.Level_7sub_120)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_7sub_120 extends MovieClip {
public function Level_7sub_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 51
//Level_8_121 (ZeroBullets_fla.Level_8_121)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_8_121 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_8_121(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 8){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 52
//Level_8sub_122 (ZeroBullets_fla.Level_8sub_122)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_8sub_122 extends MovieClip {
public function Level_8sub_122(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 53
//Level_9_123 (ZeroBullets_fla.Level_9_123)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_9_123 extends MovieClip {
public var sub:MovieClip;
public var efek:MovieClip;
public var aktif:Boolean;
public function Level_9_123(){
addFrameScript(0, frame1);
}
public function clickbtn(_arg1:MouseEvent){
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
efek.gotoAndStop(2);
};
}
public function thisf2(_arg1:MouseEvent){
efek.gotoAndStop(1);
}
function frame1(){
if (MovieClip(root).levelReached >= 9){
aktif = true;
sub.visible = false;
} else {
aktif = false;
sub.visible = true;
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
}
}//package ZeroBullets_fla
Section 54
//Level_9sub_124 (ZeroBullets_fla.Level_9sub_124)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class Level_9sub_124 extends MovieClip {
public function Level_9sub_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 55
//loader_1 (ZeroBullets_fla.loader_1)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class loader_1 extends MovieClip {
public function loader_1(){
addFrameScript(0, frame1, 99, frame100);
}
function frame100(){
stop();
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 56
//main_loader_6 (ZeroBullets_fla.main_loader_6)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class main_loader_6 extends MovieClip {
public function main_loader_6(){
addFrameScript(236, frame237);
}
function frame237(){
MovieClip(root).gotoAndStop("menu");
}
}
}//package ZeroBullets_fla
Section 57
//padloooc_135 (ZeroBullets_fla.padloooc_135)
package ZeroBullets_fla {
import flash.display.*;
public dynamic class padloooc_135 extends MovieClip {
public function padloooc_135(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ZeroBullets_fla
Section 58
//Symbol12_134 (ZeroBullets_fla.Symbol12_134)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Symbol12_134 extends MovieClip {
public var pad:MovieClip;
public function Symbol12_134(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
}
public function thisf1(_arg1:MouseEvent){
MovieClip(root).upgradeInfo.gotoAndStop(8);
}
public function thisf2(_arg1:MouseEvent){
MovieClip(root).upgradeInfo.gotoAndStop(7);
}
}
}//package ZeroBullets_fla
Section 59
//Timeline_93 (ZeroBullets_fla.Timeline_93)
package ZeroBullets_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_93 extends MovieClip {
public function Timeline_93(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
if (MovieClip(root).currentLabel == "stats"){
MovieClip(parent).inb.visible = true;
MovieClip(parent).inb.gotoAndPlay(1);
};
}
}
}//package ZeroBullets_fla
Section 60
//background (background)
package {
import flash.display.*;
public dynamic class background extends MovieClip {
public function background(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 61
//Ball (Ball)
package {
import flash.display.*;
public dynamic class Ball extends MovieClip {
}
}//package
Section 62
//BlackStone (BlackStone)
package {
import flash.display.*;
public class BlackStone extends MovieClip {
public function BlackStone(){
addFrameScript(174, frame175);
}
function frame175(){
stop();
parent.removeChild(this);
}
}
}//package
Section 63
//Block (Block)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Block extends MovieClip {
public function Block(){
addFrameScript(0, frame1);
}
public function thisf(_arg1:Event){
var _local2:Number;
if (this.hitTestPoint(MovieClip(root).ball.x, MovieClip(root).ball.y, true)){
_local2 = (2 * Math.PI);
MovieClip(root).ball.rotation = ((360 * Math.atan2((MovieClip(root).circle.y - MovieClip(root).ball.y), (MovieClip(root).circle.x - MovieClip(root).ball.x))) / _local2);
deleteThis();
};
}
public function deleteThis(){
MovieClip(root).blockHits++;
MovieClip(root).removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisf);
}
function frame1(){
this.addEventListener(Event.ENTER_FRAME, thisf);
}
}
}//package
Section 64
//btn__play (btn__play)
package {
import flash.display.*;
public dynamic class btn__play extends SimpleButton {
}
}//package
Section 65
//BtnMusic (BtnMusic)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public class BtnMusic extends MovieClip {
public function BtnMusic(){
addFrameScript(0, frame1);
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clickMusic);
}
function frame1(){
stop();
}
private function clickMusic(_arg1:MouseEvent):void{
if (this.currentFrame == 2){
this.gotoAndStop(1);
if (MovieClip(root).currentLabel == "play"){
MovieClip(root).channel = MovieClip(root).soundGame.play(0, 50);
} else {
if (MovieClip(root).currentLabel == "stats"){
} else {
MovieClip(root).channel = MovieClip(root).soundMenu.play(0, 100);
};
};
MovieClip(root).musicActive = true;
} else {
this.gotoAndStop(2);
MovieClip(root).channel.stop();
MovieClip(root).musicActive = false;
};
}
}
}//package
Section 66
//BtnSfx (BtnSfx)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public class BtnSfx extends MovieClip {
public function BtnSfx(){
addFrameScript(0, frame1);
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clickSfx);
}
function frame1(){
stop();
}
private function clickSfx(_arg1:MouseEvent):void{
if (this.currentFrame == 2){
MovieClip(root).sfxActive = true;
this.gotoAndStop(1);
} else {
MovieClip(root).sfxActive = false;
this.gotoAndStop(2);
};
}
}
}//package
Section 67
//Bullet (Bullet)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Bullet extends MovieClip {
public var lastTime:int;
private var dxb;
private var dx;
private var dy;
public var dbulletDegree:Number;
public var stuck;
public var canHitEnemy:Boolean;
public var speedBullet:int;
private var dyb:Number;
public var xbullet;
public var ybullet:Number;
public function Bullet(_arg1, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int){
addFrameScript(0, frame1);
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
speedBullet = _arg4;
canHitEnemy = false;
dx = (speedBullet * Math.cos((((2 * Math.PI) * _arg3) / 360)));
dy = (speedBullet * Math.sin((((2 * Math.PI) * _arg3) / 360)));
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveBullet);
}
public function shootBullet(_arg1){
var _local2:Number;
var _local3:Number;
if (MovieClip(parent).pausegame){
} else {
canHitEnemy = true;
_local2 = (2 * Math.PI);
_local3 = ((360 * Math.atan2((this.y - MovieClip(parent).shield.y), (this.x - MovieClip(parent).shield.x))) / _local2);
dxb = (_arg1 * Math.cos((((2 * Math.PI) * _local3) / 360)));
dyb = (_arg1 * Math.sin((((2 * Math.PI) * _local3) / 360)));
lastTime = getTimer();
removeEventListener(Event.ENTER_FRAME, movestuckBullet);
addEventListener(Event.ENTER_FRAME, moveagainBullet);
};
}
public function deleteBullet(){
MovieClip(parent).removeBullet(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBullet);
removeEventListener(Event.ENTER_FRAME, movestuckBullet);
removeEventListener(Event.ENTER_FRAME, moveagainBullet);
}
public function moveagainBullet(_arg1:Event){
var _local2:int;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
this.x = (this.x + ((dxb * _local2) / 1000));
this.y = (this.y + ((dyb * _local2) / 1000));
if ((((((((this.x < 0)) || ((this.x > 600)))) || ((this.y < 0)))) || ((this.y > 500)))){
deleteBullet();
};
};
}
function frame1(){
stop();
}
public function movestuckBullet(_arg1:Event){
var _local2:Number = (MovieClip(parent).shield.rotation - this.dbulletDegree);
xbullet = (33 * Math.cos((((2 * Math.PI) * _local2) / 360)));
ybullet = (33 * Math.sin((((2 * Math.PI) * _local2) / 360)));
this.rotation = _local2;
this.x = (MovieClip(parent).shield.x + xbullet);
this.y = (MovieClip(parent).shield.y + ybullet);
}
public function moveBullet(_arg1:Event){
var _local2:int;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
this.x = (this.x + ((dx * _local2) / 1000));
this.y = (this.y + ((dy * _local2) / 1000));
if ((((((((this.x < 0)) || ((this.x > 600)))) || ((this.y < 0)))) || ((this.y > 500)))){
deleteBullet();
};
};
}
public function stuckBullet(){
stuck = 5;
var _local1:Number = (2 * Math.PI);
var _local2:Number = ((360 * Math.atan2((this.y - MovieClip(parent).shield.y), (this.x - MovieClip(parent).shield.x))) / _local1);
dbulletDegree = (MovieClip(parent).shield.rotation - _local2);
removeEventListener(Event.ENTER_FRAME, moveBullet);
addEventListener(Event.ENTER_FRAME, movestuckBullet);
}
}
}//package
Section 68
//BulletX (BulletX)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class BulletX extends MovieClip {
public var ybullet:Number;
public var lastTime:int;
public var speedBullet:int;
private var dx;
private var dy:Number;
public var xbullet;
public function BulletX(_arg1, _arg2:Number, _arg3:Number, _arg4:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
speedBullet = _arg4;
dx = (speedBullet * Math.cos((((2 * Math.PI) * _arg3) / 360)));
dy = (speedBullet * Math.sin((((2 * Math.PI) * _arg3) / 360)));
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveBullet);
}
public function moveBullet(_arg1:Event){
var _local2:int;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
this.x = (this.x + ((dx * _local2) / 1000));
this.y = (this.y + ((dy * _local2) / 1000));
if ((((((((this.x < 0)) || ((this.x > 600)))) || ((this.y < 0)))) || ((this.y > 500)))){
deleteBullet();
};
};
}
public function deleteBullet(){
MovieClip(parent).removeBulletX(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBullet);
}
}
}//package
Section 69
//Circle (Circle)
package {
import flash.display.*;
public dynamic class Circle extends MovieClip {
}
}//package
Section 70
//Cursor (Cursor)
package {
import flash.display.*;
public dynamic class Cursor extends MovieClip {
public function Cursor(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 71
//DisplayHeader (DisplayHeader)
package {
import flash.display.*;
import flash.text.*;
public dynamic class DisplayHeader extends MovieClip {
public var magicloader:MovieClip;
public var money_txt:TextField;
public var level_txt:TextField;
public var sfxBtn:BtnSfx;
public var health:MovieClip;
public var musicBtn:BtnMusic;
}
}//package
Section 72
//DisplayHint (DisplayHint)
package {
import flash.display.*;
public dynamic class DisplayHint extends MovieClip {
public var sub:MovieClip;
public var nextBtn:SimpleButton;
public var prevBtn:SimpleButton;
public var playBtn:btn__play;
}
}//package
Section 73
//DisplayPause (DisplayPause)
package {
import flash.display.*;
public dynamic class DisplayPause extends MovieClip {
public var noBtn:SimpleButton;
public var yesBtn:SimpleButton;
}
}//package
Section 74
//Enemy (Enemy)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy extends MovieClip {
public var shadow:MovieClip;
private var littleExpotion:Boolean;
private var speed:int;
public var sub:MovieClip;
public var lastTime:int;
private var dx;
private var dy;
private var healthstep:int;
private var rots:Number;
public function Enemy(){
this.x = 300;
this.y = 450;
speed = 120;
rots = 10;
dx = (speed * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rots) / 360)));
healthstep = 5;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy);
}
public function deleteEnemy(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy);
}
public function removeMoveEnemy(){
removeEventListener(Event.ENTER_FRAME, moveEnemy);
}
public function moveEnemy(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:Number;
var _local5:int;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
_local4 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local4);
this.shadow.rotation = this.sub.rotation;
if (Math.floor((Math.random() * 20)) == 4){
MovieClip(parent).newBullet(this.x, this.y, this.sub.rotation, 250, 1);
};
_local5 = (getTimer() - lastTime);
lastTime = (lastTime + _local5);
if (MovieClip(root).level == 1){
rots = (rots - ((35 * _local5) / 1000));
speed = 120;
};
if (MovieClip(root).level >= 5){
rots = (rots - ((43 * _local5) / 1000));
speed = 150;
};
dx = (speed * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local5) / 1000));
this.y = (this.y + ((dy * _local5) / 1000));
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth--;
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 100);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 100);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy();
};
};
}
}
}//package
Section 75
//Enemy10 (Enemy10)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy10 extends MovieClip {
private var rots:Number;
public var lastTime:int;
public var sub:MovieClip;
private var littleExpotion:Boolean;
private var istepDie:int;
private var dx;
private var dy;
private var healthstep:int;
private var stepDie;
public var health:MovieClip;
public function Enemy10(){
this.x = 300;
this.y = 50;
dx = 100;
dy = 100;
healthstep = 650;
stepDie = 0;
istepDie = 1;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy10);
}
public function slowEnemy10(_arg1:Event){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local2:int = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
this.x = (this.x + ((dx * _local2) / 1000));
this.y = (this.y + ((dy * _local2) / 1000));
if ((((this.x < 50)) || ((this.x > 550)))){
dx = -(dx);
this.x = (this.x + ((dx * _local2) / 1000));
};
if ((((this.y < 50)) || ((this.y > 450)))){
dy = -(dy);
this.y = (this.y + ((dy * _local2) / 1000));
};
stepDie++;
if (stepDie >= (istepDie * 5)){
if (istepDie < 20){
littleExpotion = true;
if (Math.floor((Math.random() * 2)) == 1){
_local5 = Math.floor((Math.random() * 50));
} else {
_local5 = Math.floor((Math.random() * -50));
};
if (Math.floor((Math.random() * 2)) == 1){
_local6 = Math.floor((Math.random() * 50));
} else {
_local6 = Math.floor((Math.random() * -50));
};
_local3 = (this.x + _local5);
_local4 = (this.y + _local6);
MovieClip(parent).addExplotion(_local3, _local4, this.littleExpotion);
};
istepDie++;
};
if (istepDie == 20){
MovieClip(parent).bigExplosion = true;
littleExpotion = false;
MovieClip(parent).addExplotion((this.x - 40), (this.y - 40), this.littleExpotion);
MovieClip(parent).bossKill1 = false;
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
this.visible = false;
};
if (istepDie > 35){
deleteEnemy10();
removeEventListener(Event.ENTER_FRAME, slowEnemy10);
};
}
public function moveEnemy10(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
littleExpotion = true;
MovieClip(parent).addExplotion(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, this.littleExpotion);
MovieClip(parent).bullets[_local2].deleteBullet();
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
littleExpotion = true;
MovieClip(parent).addExplotion(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, this.littleExpotion);
MovieClip(parent).bulletsX[_local3].deleteBullet();
break;
};
_local3--;
};
if (Math.floor((Math.random() * 15)) == 4){
_local5 = 0;
while (_local5 < 32) {
MovieClip(parent).newBullet(this.x, this.y, (this.rotation + (_local5 * 11.25)), 250, 10);
_local5++;
};
_local6 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local6);
MovieClip(parent).newBullet(this.x, this.y, rots, 250, 10);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
if ((((this.x < 50)) || ((this.x > 550)))){
dx = -(dx);
this.x = (this.x + ((dx * _local4) / 1000));
};
if ((((this.y < 50)) || ((this.y > 450)))){
dy = -(dy);
this.y = (this.y + ((dy * _local4) / 1000));
};
if (((this.sub.hitTestPoint(MovieClip(parent).hero.x, MovieClip(parent).hero.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 1);
};
health.scaleX = (healthstep / 650);
health.scaleY = (healthstep / 650);
if (healthstep <= 0){
MovieClip(parent).shake = true;
MovieClip(root).money = (MovieClip(root).money + 5000);
MovieClip(parent).sumEnemy--;
trace(MovieClip(parent).sumEnemy);
littleExpotion = false;
MovieClip(parent).bossKill1 = true;
deleteEnemy10();
};
};
}
public function removeMoveEnemy10(){
removeEventListener(Event.ENTER_FRAME, moveEnemy10);
}
public function deleteEnemy10(){
if (MovieClip(parent).bossKill1){
dx = (dx / 3);
dy = (dy / 3);
stepDie = 0;
istepDie = 1;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, slowEnemy10);
} else {
MovieClip(parent).removeEnemy10(this);
parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, moveEnemy10);
}
}
}//package
Section 76
//Enemy11 (Enemy11)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy11 extends MovieClip {
public var lastTime:int;
private var tempX;
private var tempY:Number;
public var sub:MovieClip;
private var istepDie:int;
private var newX;
private var dx;
private var dy;
private var pi2;
private var stepDie;
public var health:MovieClip;
private var ibulletStep:int;
public var shadow:MovieClip;
private var littleExpotion:Boolean;
private var NextXY:Timer;
private var bulletStep;
private var healthstep;
private var newY;
private var rots;
public function Enemy11(){
tempX = 300;
tempY = 50;
this.x = 300;
this.y = 50;
newX = 0;
newY = 0;
bulletStep = 0;
ibulletStep = 1;
healthstep = 1400;
stepDie = 0;
istepDie = 1;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy11);
setNextXY();
}
public function newXY(_arg1:TimerEvent){
tempX = (Math.floor((Math.random() * 590)) + 10);
tempY = (Math.floor((Math.random() * 490)) + 10);
setNextXY();
}
public function moveEnemy11(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:int;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
littleExpotion = true;
MovieClip(parent).addExplotion(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, this.littleExpotion);
MovieClip(parent).bullets[_local2].deleteBullet();
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
littleExpotion = true;
MovieClip(parent).addExplotion(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, this.littleExpotion);
MovieClip(parent).bulletsX[_local3].deleteBullet();
break;
};
_local3--;
};
bulletStep++;
if (bulletStep == (ibulletStep * 4)){
_local8 = 0;
while (_local8 < 6) {
MovieClip(parent).newBullet(this.x, this.y, ((this.sub.rotation + (_local8 * 60)) + bulletStep), 250, 11);
_local8++;
};
ibulletStep++;
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
_local5 = (tempX - this.x);
_local6 = (tempY - this.y);
newX = ((newX * 0.5) + (_local5 * 0.05));
newY = ((newY * 0.5) + (_local6 * 0.05));
this.x = (this.x + (((newX * 12) * _local4) / 1000));
this.y = (this.y + (((newY * 12) * _local4) / 1000));
_local7 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local7);
this.shadow.rotation = this.sub.rotation;
if (((this.sub.hitTestPoint(MovieClip(parent).hero.x, MovieClip(parent).hero.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 2);
};
health.scaleX = (healthstep / 1400);
health.scaleY = (healthstep / 1400);
if (healthstep <= 0){
MovieClip(parent).shake = true;
MovieClip(root).money = (MovieClip(root).money + 10000);
MovieClip(parent).sumEnemy--;
trace(MovieClip(parent).sumEnemy);
littleExpotion = false;
MovieClip(parent).bossKill2 = true;
deleteEnemy11();
};
};
}
public function slowEnemy11(_arg1:Event){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local2:int = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
_local3 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local3);
dx = (20 * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (20 * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local2) / 1000));
this.y = (this.y + ((dy * _local2) / 1000));
_local3 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local3);
this.shadow.rotation = this.sub.rotation;
stepDie++;
if (stepDie >= (istepDie * 5)){
if (istepDie < 20){
littleExpotion = true;
if (Math.floor((Math.random() * 2)) == 1){
_local6 = Math.floor((Math.random() * 50));
} else {
_local6 = Math.floor((Math.random() * -50));
};
if (Math.floor((Math.random() * 2)) == 1){
_local7 = Math.floor((Math.random() * 50));
} else {
_local7 = Math.floor((Math.random() * -50));
};
_local4 = (this.x + _local6);
_local5 = (this.y + _local7);
trace(_local6);
MovieClip(parent).addExplotion(_local4, _local5, this.littleExpotion);
};
istepDie++;
};
if (istepDie == 20){
MovieClip(parent).bigExplosion = true;
littleExpotion = false;
MovieClip(parent).addExplotion((this.x - 40), (this.y - 40), this.littleExpotion);
MovieClip(parent).bossKill2 = false;
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
this.visible = false;
};
if (istepDie > 35){
deleteEnemy11();
removeEventListener(Event.ENTER_FRAME, slowEnemy11);
};
}
public function setNextXY(){
NextXY = new Timer((400 + (Math.random() * 1000)), 1);
NextXY.addEventListener(TimerEvent.TIMER_COMPLETE, newXY);
NextXY.start();
}
public function removeMoveEnemy11(){
removeEventListener(Event.ENTER_FRAME, moveEnemy11);
}
public function deleteEnemy11(){
if (MovieClip(parent).bossKill2){
stepDie = 0;
istepDie = 1;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, slowEnemy11);
} else {
NextXY.stop();
NextXY = null;
MovieClip(parent).removeEnemy11(this);
parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, moveEnemy11);
}
}
}//package
Section 77
//Enemy12 (Enemy12)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy12 extends MovieClip {
private var kejar:Boolean;
public var lastTime:int;
private var tempX;
private var tempY;
public var sub:MovieClip;
private var istepDie:int;
private var stepDie;
private var speed;
private var dx;
private var dy;
private var pi2;
private var steplurus:Number;
public var health:MovieClip;
private var ibulletStep:int;
public var shadow:MovieClip;
private var littleExpotion;
private var mulai;
private var bulletStep;
private var healthstep;
private var newX;
private var newY;
private var rots;
public function Enemy12(){
tempX = 300;
tempY = 50;
this.x = 300;
this.y = 50;
bulletStep = 0;
ibulletStep = 1;
newX = 0;
newY = 0;
speed = 140;
healthstep = 2500;
mulai = true;
kejar = false;
stepDie = 0;
istepDie = 1;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy12);
}
public function moveEnemy12(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:int;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
littleExpotion = true;
MovieClip(parent).addExplotion(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, this.littleExpotion);
MovieClip(parent).bullets[_local2].deleteBullet();
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
littleExpotion = true;
MovieClip(parent).addExplotion(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, this.littleExpotion);
MovieClip(parent).bulletsX[_local3].deleteBullet();
break;
};
_local3--;
};
if (Math.floor((Math.random() * 20)) == 4){
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
bulletStep++;
if (bulletStep == (ibulletStep * 8)){
_local6 = 0;
while (_local6 < 10) {
_local7 = (2 * Math.PI);
_local8 = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local7);
MovieClip(parent).newBullet(this.x, this.y, ((_local8 - 60) + (_local6 * 12)), 250, 12);
_local6++;
};
ibulletStep++;
};
if (mulai){
_local9 = (tempX - this.x);
_local10 = (tempY - this.y);
newX = ((newX * 0.5) + (_local9 * 0.05));
newY = ((newY * 0.5) + (_local10 * 0.05));
this.x = (this.x + (((newX * 35) * _local4) / 1000));
this.y = (this.y + (((newY * 35) * _local4) / 1000));
if ((((Math.abs(_local9) < 2)) && ((Math.abs(_local10) < 2)))){
kejar = true;
steplurus = 0;
mulai = false;
};
};
if (kejar){
steplurus = (steplurus + ((30 * _local4) / 1000));
_local5 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local5);
dx = (speed * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
if (steplurus > 150){
tempX = (Math.floor((Math.random() * 590)) + 10);
tempY = (Math.floor((Math.random() * 490)) + 10);
mulai = true;
kejar = false;
};
};
_local5 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local5);
this.shadow.rotation = this.sub.rotation;
if (((this.sub.hitTestPoint(MovieClip(parent).hero.x, MovieClip(parent).hero.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 3);
};
health.scaleX = (healthstep / 2300);
health.scaleY = (healthstep / 2300);
if (healthstep <= 0){
MovieClip(parent).shake = true;
MovieClip(root).money = (MovieClip(root).money + 15000);
MovieClip(parent).sumEnemy--;
trace(MovieClip(parent).sumEnemy);
littleExpotion = false;
MovieClip(parent).bossKill3 = true;
deleteEnemy12();
};
};
}
public function slowEnemy12(_arg1:Event){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local2:int = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
_local3 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local3);
dx = (20 * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (20 * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local2) / 1000));
this.y = (this.y + ((dy * _local2) / 1000));
_local3 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local3);
this.shadow.rotation = this.sub.rotation;
stepDie++;
if (stepDie >= (istepDie * 5)){
if (istepDie < 20){
littleExpotion = true;
if (Math.floor((Math.random() * 2)) == 1){
_local6 = Math.floor((Math.random() * 50));
} else {
_local6 = Math.floor((Math.random() * -50));
};
if (Math.floor((Math.random() * 2)) == 1){
_local7 = Math.floor((Math.random() * 50));
} else {
_local7 = Math.floor((Math.random() * -50));
};
_local4 = (this.x + _local6);
_local5 = (this.y + _local7);
MovieClip(parent).addExplotion(_local4, _local5, this.littleExpotion);
};
istepDie++;
};
if (istepDie == 20){
MovieClip(parent).addStone(this.x, this.y);
MovieClip(parent).bigExplosion = true;
littleExpotion = false;
MovieClip(parent).addExplotion((this.x - 40), (this.y - 40), this.littleExpotion);
MovieClip(parent).bossKill3 = false;
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
this.visible = false;
};
if (istepDie > 55){
deleteEnemy12();
removeEventListener(Event.ENTER_FRAME, slowEnemy12);
};
}
public function removeMoveEnemy12(){
removeEventListener(Event.ENTER_FRAME, moveEnemy12);
}
public function deleteEnemy12(){
if (MovieClip(parent).bossKill3){
stepDie = 0;
istepDie = 1;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, slowEnemy12);
} else {
MovieClip(parent).removeEnemy12(this);
parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, moveEnemy12);
}
}
}//package
Section 78
//Enemy2 (Enemy2)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy2 extends MovieClip {
public var shadow:MovieClip;
private var littleExpotion:Boolean;
public var sub:MovieClip;
public var lastTime:int;
public var dx;
public var dy;
private var healthstep:int;
public var rots:Number;
public function Enemy2(){
this.x = 300;
this.y = 50;
healthstep = 7;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy2);
}
public function deleteEnemy2(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy2(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy2);
}
public function removeMoveEnemy2(){
removeEventListener(Event.ENTER_FRAME, moveEnemy2);
}
public function moveEnemy2(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if (Math.floor((Math.random() * 20)) == 4){
_local5 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local5);
MovieClip(parent).newBullet(this.x, this.y, rots, 250, 2);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
this.sub.rotation = (this.sub.rotation + ((200 * _local4) / 1000));
this.shadow.rotation = this.sub.rotation;
if ((((this.x < 10)) || ((this.x > 590)))){
dx = -(dx);
this.x = (this.x + ((dx * _local4) / 1000));
};
if ((((this.y < 10)) || ((this.y > 490)))){
dy = -(dy);
this.y = (this.y + ((dy * _local4) / 1000));
};
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 2);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 150);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 150);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy2();
};
};
}
}
}//package
Section 79
//Enemy3 (Enemy3)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy3 extends MovieClip {
public var lastTime:int;
public var speed3:int;
private var arahbelok;
public var sub:MovieClip;
private var dx;
private var dy;
private var stepbelok;
private var steplurus;
private var littleExpotion;
public var shadow:MovieClip;
private var stepmaxbelok:int;
private var gerakbelok:Boolean;
private var geraklurus;
private var belokrandom;
private var pi2:Number;
private var healthstep:int;
private var rots;
public function Enemy3(){
this.x = 300;
this.y = 450;
geraklurus = true;
gerakbelok = false;
steplurus = 0;
rots = (Math.floor((Math.random() * 360)) + 0);
healthstep = 20;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy3);
}
public function removeMoveEnemy3(){
removeEventListener(Event.ENTER_FRAME, moveEnemy3);
}
public function moveEnemy3(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if ((((((((this.x < 0)) || ((this.x > 600)))) || ((this.y < 0)))) || ((this.y > 500)))){
pi2 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / pi2);
gerakbelok = false;
geraklurus = true;
steplurus = 0;
};
if (Math.floor((Math.random() * 30)) == 4){
_local5 = (2 * Math.PI);
_local6 = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local5);
MovieClip(parent).newBullet(this.x, this.y, _local6, 250, 3);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
if (geraklurus){
steplurus = (steplurus + ((30 * _local4) / 1000));
stepbelok = 0;
if (steplurus > 75){
arahbelok = Math.floor((Math.random() * 2));
belokrandom = Math.floor((Math.random() * 3));
if (belokrandom == 0){
stepmaxbelok = 40;
};
if (belokrandom == 1){
stepmaxbelok = 20;
};
if (belokrandom == 2){
stepmaxbelok = 25;
} else {
stepmaxbelok = 30;
};
gerakbelok = true;
geraklurus = false;
};
};
if (gerakbelok){
steplurus = 0;
stepbelok = (stepbelok + ((30 * _local4) / 1000));
if (arahbelok == 0){
rots = (rots + ((100 * _local4) / 1000));
} else {
rots = (rots - ((100 * _local4) / 1000));
};
if (stepbelok > stepmaxbelok){
geraklurus = true;
gerakbelok = false;
};
};
dx = (speed3 * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed3 * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
this.sub.rotation = rots;
this.shadow.rotation = this.sub.rotation;
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 3);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 200);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 200);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy3();
};
};
}
public function deleteEnemy3(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy3(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy3);
}
}
}//package
Section 80
//Enemy4 (Enemy4)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy4 extends MovieClip {
public var lastTime:int;
private var tempX;
private var tempY:Number;
public var sub:MovieClip;
private var dx;
private var dy;
private var littleExpotion:Boolean;
public var shadow:MovieClip;
private var healthstep:int;
private var newY;
private var newX;
public function Enemy4(){
tempX = (Math.floor((Math.random() * 550)) + 10);
tempY = (Math.floor((Math.random() * 450)) + 10);
this.x = 300;
this.y = 50;
newX = 0;
newY = 0;
healthstep = 25;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy4);
}
public function removeMoveEnemy4(){
removeEventListener(Event.ENTER_FRAME, moveEnemy4);
}
public function moveEnemy4(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if (Math.floor((Math.random() * 90)) == 4){
tempX = (Math.floor((Math.random() * 600)) + 0);
tempY = (Math.floor((Math.random() * 500)) + 0);
};
if (Math.floor((Math.random() * 30)) == 4){
_local8 = (2 * Math.PI);
_local9 = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local8);
MovieClip(parent).newBullet(this.x, this.y, _local9, 250, 4);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
_local5 = (tempX - this.x);
_local6 = (tempY - this.y);
newX = ((newX * 0.5) + (_local5 * 0.05));
newY = ((newY * 0.5) + (_local6 * 0.05));
if (MovieClip(root).level == 3){
this.x = (this.x + (((newX * 8) * _local4) / 1000));
this.y = (this.y + (((newY * 8) * _local4) / 1000));
} else {
if (MovieClip(root).level == 5){
this.x = (this.x + (((newX * 10) * _local4) / 1000));
this.y = (this.y + (((newY * 10) * _local4) / 1000));
} else {
if (MovieClip(root).level > 5){
this.x = (this.x + (((newX * 13) * _local4) / 1000));
this.y = (this.y + (((newY * 13) * _local4) / 1000));
};
};
};
_local7 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((tempY - this.y), (tempX - this.x))) / _local7);
this.shadow.rotation = this.sub.rotation;
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 4);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 250);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 250);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy4();
};
};
}
public function deleteEnemy4(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy4(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy4);
}
}
}//package
Section 81
//Enemy5 (Enemy5)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy5 extends MovieClip {
public var shadow:MovieClip;
private var littleExpotion:Boolean;
public var speed5:int;
public var sub:MovieClip;
public var lastTime:int;
private var dx;
private var dy;
private var healthstep:int;
private var rots:Number;
public function Enemy5(){
this.x = 300;
this.y = 450;
rots = (Math.floor((Math.random() * 360)) + 0);
healthstep = 30;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy5);
}
public function removeMoveEnemy5(){
removeEventListener(Event.ENTER_FRAME, moveEnemy5);
}
public function deleteEnemy5(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy5(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy5);
}
public function moveEnemy5(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if (Math.floor((Math.random() * 30)) == 4){
_local5 = (2 * Math.PI);
_local6 = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local5);
MovieClip(parent).newBullet(this.x, this.y, _local6, 250, 5);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
dx = (speed5 * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed5 * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
this.sub.rotation = (this.sub.rotation + ((100 * _local4) / 1000));
this.shadow.rotation = this.sub.rotation;
if (this.x < 0){
this.x = 600;
} else {
if (this.x > 600){
this.x = 0;
} else {
if (this.y < 0){
this.y = 500;
} else {
if (this.y > 500){
this.y = 0;
};
};
};
};
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 5);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 300);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 300);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy5();
};
};
}
}
}//package
Section 82
//Enemy6 (Enemy6)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy6 extends MovieClip {
public var lastTime:int;
private var tempX;
private var tempY:Number;
public var sub:MovieClip;
private var dx;
private var dy;
private var littleExpotion:Boolean;
public var shadow:MovieClip;
private var healthstep:int;
private var newY;
private var newX;
public function Enemy6(){
tempX = (Math.floor((Math.random() * 600)) + 0);
tempY = (Math.floor((Math.random() * 500)) + 0);
this.x = 300;
this.y = 50;
newX = 0;
newY = 0;
healthstep = 35;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy6);
}
public function deleteEnemy6(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy6(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy6);
}
public function removeMoveEnemy6(){
removeEventListener(Event.ENTER_FRAME, moveEnemy6);
}
public function moveEnemy6(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if (Math.floor((Math.random() * 70)) == 4){
tempX = (Math.floor((Math.random() * 600)) + 0);
tempY = (Math.floor((Math.random() * 500)) + 0);
};
if (Math.floor((Math.random() * 30)) == 4){
_local8 = (2 * Math.PI);
_local9 = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local8);
MovieClip(parent).newBullet(this.x, this.y, _local9, 250, 6);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
_local5 = (tempX - this.x);
_local6 = (tempY - this.y);
newX = ((newX * 0.5) + (_local5 * 0.05));
newY = ((newY * 0.5) + (_local6 * 0.05));
if (MovieClip(root).level == 6){
this.x = (this.x + (((newX * 9) * _local4) / 1000));
this.y = (this.y + (((newY * 9) * _local4) / 1000));
} else {
if (MovieClip(root).level == 7){
this.x = (this.x + (((newX * 11) * _local4) / 1000));
this.y = (this.y + (((newY * 11) * _local4) / 1000));
} else {
if (MovieClip(root).level == 8){
this.x = (this.x + (((newX * 13) * _local4) / 1000));
this.y = (this.y + (((newY * 13) * _local4) / 1000));
} else {
if (MovieClip(root).level > 8){
this.x = (this.x + (((newX * 18) * _local4) / 1000));
this.y = (this.y + (((newY * 18) * _local4) / 1000));
};
};
};
};
_local7 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local7);
this.shadow.rotation = this.sub.rotation;
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 6);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 350);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 350);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy6();
};
};
}
}
}//package
Section 83
//Enemy7 (Enemy7)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy7 extends MovieClip {
public var lastTime:int;
public var sub:MovieClip;
public var speed7:int;
private var dx;
private var dy;
private var stepbelok:Number;
private var littleExpotion;
public var shadow:MovieClip;
private var rotstep:int;
private var gerakbelok:Boolean;
private var geraklurus;
private var pi2;
private var healthstep:int;
private var rots;
public function Enemy7(){
this.x = 300;
this.y = 450;
healthstep = 40;
rots = (Math.floor((Math.random() * 360)) + 0);
rotstep = 80;
stepbelok = 0;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy7);
}
public function moveEnemy7(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if (Math.floor((Math.random() * 30)) == 4){
_local5 = (2 * Math.PI);
_local6 = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local5);
MovieClip(parent).newBullet(this.x, this.y, _local6, 250, 7);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
stepbelok = (stepbelok + ((30 * _local4) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rots = (rots + ((rotstep * _local4) / 1000));
dx = (speed7 * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed7 * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
this.sub.rotation = rots;
this.shadow.rotation = this.sub.rotation;
if (this.x < 0){
this.x = 600;
} else {
if (this.x > 600){
this.x = 0;
} else {
if (this.y < 0){
this.y = 500;
} else {
if (this.y > 500){
this.y = 0;
};
};
};
};
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 7);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 400);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 400);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy7();
};
};
}
public function removeMoveEnemy7(){
removeEventListener(Event.ENTER_FRAME, moveEnemy7);
}
public function deleteEnemy7(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy7(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy7);
}
}
}//package
Section 84
//Enemy8 (Enemy8)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy8 extends MovieClip {
private var kejar:Boolean;
public var lastTime:int;
private var tempX;
private var tempY;
private var speed:int;
public var sub:MovieClip;
private var dx;
private var dy;
private var pi2;
private var steplurus:Number;
private var littleExpotion;
public var shadow:MovieClip;
private var mulai;
private var healthstep:int;
private var newY;
private var rots;
private var newX;
public function Enemy8(){
tempX = (Math.floor((Math.random() * 550)) + 10);
tempY = (Math.floor((Math.random() * 450)) + 10);
this.x = 300;
this.y = 50;
newX = 0;
newY = 0;
speed = 100;
healthstep = 50;
mulai = true;
kejar = false;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy8);
}
public function removeMoveEnemy8(){
removeEventListener(Event.ENTER_FRAME, moveEnemy8);
}
public function moveEnemy8(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if (Math.floor((Math.random() * 30)) == 4){
_local5 = (2 * Math.PI);
_local6 = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / _local5);
MovieClip(parent).newBullet(this.x, this.y, _local6, 250, 8);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
if (mulai){
_local7 = (tempX - this.x);
_local8 = (tempY - this.y);
newX = ((newX * 0.5) + (_local7 * 0.05));
newY = ((newY * 0.5) + (_local8 * 0.05));
this.x = (this.x + (((newX * 13) * _local4) / 1000));
this.y = (this.y + (((newY * 13) * _local4) / 1000));
if ((((Math.abs(_local7) < 2)) && ((Math.abs(_local8) < 2)))){
kejar = true;
steplurus = 0;
mulai = false;
};
};
if (kejar){
steplurus = (steplurus + ((30 * _local4) / 1000));
pi2 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / pi2);
dx = (speed * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
if (steplurus > 100){
tempX = (Math.floor((Math.random() * 550)) + 10);
tempY = (Math.floor((Math.random() * 450)) + 10);
mulai = true;
kejar = false;
};
};
pi2 = (2 * Math.PI);
this.sub.rotation = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / pi2);
this.shadow.rotation = this.sub.rotation;
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 8);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 450);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 450);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy8();
};
};
}
public function deleteEnemy8(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy8(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy8);
}
}
}//package
Section 85
//Enemy9 (Enemy9)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Enemy9 extends MovieClip {
public var lastTime:int;
private var arahbelok;
private var speed;
public var sub:MovieClip;
private var dx;
private var pi2:Number;
private var steplurus;
private var dy;
public var shadow:MovieClip;
private var littleExpotion;
private var stepmaxbelok:int;
private var gerakbelok:Boolean;
private var geraklurus;
private var belokrandom;
private var stepbelok;
private var healthstep:int;
private var rots;
public function Enemy9(){
this.x = 300;
this.y = 450;
speed = 150;
rots = 200;
geraklurus = true;
steplurus = 30;
dx = ((Math.random() * 130) + 80);
dy = ((Math.random() * 130) + 80);
healthstep = 60;
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME, moveEnemy9);
}
public function deleteEnemy9(){
littleExpotion = false;
if (MovieClip(parent).winStatus == 2){
} else {
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
};
MovieClip(parent).removeEnemy9(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy9);
}
public function removeMoveEnemy9(){
removeEventListener(Event.ENTER_FRAME, moveEnemy9);
}
public function moveEnemy9(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
if (MovieClip(parent).pausegame){
} else {
_local2 = (MovieClip(parent).bullets.length - 1);
while (_local2 >= 0) {
if (((((this.sub.hitTestPoint(MovieClip(parent).bullets[_local2].x, MovieClip(parent).bullets[_local2].y, true)) && ((MovieClip(parent).bullets[_local2].stuck == 5)))) && (MovieClip(parent).bullets[_local2].canHitEnemy))){
switch (MovieClip(parent).bullets[_local2].currentFrame){
case 1:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 2:
healthstep = (healthstep - (1 + MovieClip(root).var4_Hero));
break;
case 3:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 4:
healthstep = (healthstep - (2 + MovieClip(root).var4_Hero));
break;
case 5:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 6:
healthstep = (healthstep - (3 + MovieClip(root).var4_Hero));
break;
case 7:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 8:
healthstep = (healthstep - (4 + MovieClip(root).var4_Hero));
break;
case 9:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 10:
healthstep = (healthstep - (5 + MovieClip(root).var4_Hero));
break;
case 11:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
case 12:
healthstep = (healthstep - (6 + MovieClip(root).var4_Hero));
break;
};
MovieClip(parent).bullets[_local2].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local2--;
};
_local3 = (MovieClip(parent).bulletsX.length - 1);
while (_local3 >= 0) {
if (this.sub.hitTestPoint(MovieClip(parent).bulletsX[_local3].x, MovieClip(parent).bulletsX[_local3].y, true)){
healthstep--;
MovieClip(parent).bulletsX[_local3].deleteBullet();
littleExpotion = true;
MovieClip(parent).addExplotion(this.x, this.y, this.littleExpotion);
break;
};
_local3--;
};
if (Math.floor((Math.random() * 30)) == 4){
pi2 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / pi2);
MovieClip(parent).newBullet(this.x, this.y, rots, 250, 9);
};
_local4 = (getTimer() - lastTime);
lastTime = (lastTime + _local4);
if ((((((((this.x < -50)) || ((this.x > 650)))) || ((this.y < -50)))) || ((this.y > 550)))){
pi2 = (2 * Math.PI);
rots = ((360 * Math.atan2((MovieClip(parent).hero.y - this.y), (MovieClip(parent).hero.x - this.x))) / pi2);
gerakbelok = false;
geraklurus = true;
steplurus = 10;
};
if (geraklurus){
steplurus = (steplurus + ((30 * _local4) / 1000));
stepbelok = 0;
speed = 150;
if (steplurus > 50){
arahbelok = Math.floor((Math.random() * 2));
belokrandom = Math.floor((Math.random() * 3));
if (belokrandom == 0){
stepmaxbelok = 40;
};
if (belokrandom == 1){
stepmaxbelok = 20;
};
if (belokrandom == 2){
stepmaxbelok = 25;
};
gerakbelok = true;
geraklurus = false;
};
};
if (gerakbelok){
steplurus = 0;
stepbelok = (stepbelok + ((30 * _local4) / 1000));
speed = 150;
if (arahbelok == 0){
rots = (rots + ((150 * _local4) / 1000));
} else {
rots = (rots - ((150 * _local4) / 1000));
};
if (stepbelok > stepmaxbelok){
geraklurus = true;
gerakbelok = false;
};
};
dx = (speed * Math.cos((((2 * Math.PI) * rots) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rots) / 360)));
this.x = (this.x + ((dx * _local4) / 1000));
this.y = (this.y + ((dy * _local4) / 1000));
this.sub.rotation = rots;
this.shadow.rotation = this.sub.rotation;
if (((MovieClip(parent).shield.sub_shield.hitTestPoint(this.x, this.y, true)) && ((MovieClip(parent).step > 50)))){
MovieClip(parent).maxHealth = (MovieClip(parent).maxHealth - 9);
healthstep = 0;
};
if (healthstep <= 0){
MovieClip(parent).shake = true;
if (MovieClip(root).level < 13){
MovieClip(root).money = (MovieClip(root).money + 500);
} else {
MovieClip(root).skor = (MovieClip(root).skor + 500);
};
MovieClip(parent).sumEnemy--;
littleExpotion = false;
deleteEnemy9();
};
};
}
}
}//package
Section 86
//EnemyHole (EnemyHole)
package {
import flash.display.*;
public dynamic class EnemyHole extends MovieClip {
}
}//package
Section 87
//Explode (Explode)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Explode extends MovieClip {
public function Explode(){
addFrameScript(12, frame13, 16, frame17);
}
function frame17(){
stop();
parent.removeChild(this);
}
function frame13(){
MovieClip(parent).shake = false;
}
}
}//package
Section 88
//Hero (Hero)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Hero extends MovieClip {
public var newwX;
public var light:MovieClip;
public var newwY:Number;
public var Hero_sub:MovieClip;
public function Hero(){
x = mouseX;
y = mouseY;
addEventListener(Event.ENTER_FRAME, moveHero);
}
public function moveHero(_arg1:Event){
var _local2:int;
var _local3:Number;
var _local4:Number;
if (MovieClip(parent).winStatus == 1){
_local2 = (getTimer() - MovieClip(parent).herolastTime);
MovieClip(parent).herolastTime = (MovieClip(parent).herolastTime + _local2);
_local3 = (MovieClip(parent).mouseX - this.x);
_local4 = (MovieClip(parent).mouseY - this.y);
newwX = ((newwX * 0.2) + (_local3 * 0.15));
newwY = ((newwY * 0.2) + (_local4 * 0.15));
this.x = (this.x + (((newwX * 3) * _local2) / 1000));
this.y = (this.y + (((newwY * 3) * _local2) / 1000));
MovieClip(parent).shield.x = this.x;
MovieClip(parent).shield.y = this.y;
};
}
public function removeHero(){
removeEventListener(Event.ENTER_FRAME, moveHero);
}
}
}//package
Section 89
//inBetween2 (inBetween2)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class inBetween2 extends MovieClip {
public function inBetween2(){
addFrameScript(39, frame40, 69, frame70);
}
function frame40(){
if (MovieClip(root).currentLabel == "play"){
stop();
};
}
function frame70(){
if (MovieClip(root).currentLabel == "stats"){
stop();
MovieClip(parent).statsMc.visible = true;
if (MovieClip(root).level == 13){
MovieClip(parent).submitBtn.visible = true;
};
};
}
}
}//package
Section 90
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 91
//Shield (Shield)
package {
import flash.display.*;
public dynamic class Shield extends MovieClip {
public var sub_shield:MovieClip;
}
}//package
Section 92
//soundClick (soundClick)
package {
import flash.media.*;
public dynamic class soundClick extends Sound {
}
}//package
Section 93
//soundDeeb2 (soundDeeb2)
package {
import flash.media.*;
public dynamic class soundDeeb2 extends Sound {
}
}//package
Section 94
//soundExplode (soundExplode)
package {
import flash.media.*;
public dynamic class soundExplode extends Sound {
}
}//package
Section 95
//SoundGame (SoundGame)
package {
import flash.media.*;
public dynamic class SoundGame extends Sound {
}
}//package
Section 96
//SoundMenu (SoundMenu)
package {
import flash.media.*;
public dynamic class SoundMenu extends Sound {
}
}//package
Section 97
//soundShot (soundShot)
package {
import flash.media.*;
public dynamic class soundShot extends Sound {
}
}//package
Section 98
//SoundXBullet (SoundXBullet)
package {
import flash.media.*;
public dynamic class SoundXBullet extends Sound {
}
}//package
Section 99
//StatsMc (StatsMc)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class StatsMc extends MovieClip {
public var enemy_txt:TextField;
public var hit_txt:TextField;
public var nextBtn:SimpleButton;
public var credit_txt:TextField;
public var total_txt:TextField;
public var name_txt:TextField;
public function StatsMc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame2(){
stop();
enemy_txt.text = String(MovieClip(root).enemyCreated);
credit_txt.text = String(MovieClip(root).money);
hit_txt.text = String(MovieClip(root).shipHit);
total_txt.text = String((MovieClip(root).money - MovieClip(root).shipHit));
}
function frame3(){
stop();
enemy_txt.text = String(MovieClip(root).enemyCreated);
credit_txt.text = String(MovieClip(root).money);
hit_txt.text = String(MovieClip(root).shipHit);
total_txt.text = String((MovieClip(root).money - MovieClip(root).shipHit));
}
function frame4(){
stop();
enemy_txt.text = String(MovieClip(root).enemyCreated);
credit_txt.text = String(MovieClip(root).money);
hit_txt.text = String(MovieClip(root).shipHit);
total_txt.text = String((MovieClip(root).money - MovieClip(root).shipHit));
}
function frame1(){
stop();
enemy_txt.text = String(MovieClip(root).enemyCreated);
credit_txt.text = String(MovieClip(root).money);
hit_txt.text = String(MovieClip(root).shipHit);
total_txt.text = String((MovieClip(root).money - MovieClip(root).shipHit));
}
function frame5(){
stop();
enemy_txt.text = String(MovieClip(root).enemyCreated);
credit_txt.text = String(MovieClip(root).skor);
hit_txt.text = String(MovieClip(root).shipHit);
total_txt.text = String((MovieClip(root).skor - MovieClip(root).shipHit));
}
}
}//package
Section 100
//SubmitBtn (SubmitBtn)
package {
import flash.display.*;
public dynamic class SubmitBtn extends SimpleButton {
}
}//package
Section 101
//ZeroBullets (ZeroBullets)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import CPMStar.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
public class ZeroBullets extends MovieClip {
public var hero:Hero;
public var helpText:MovieClip;
public var Bonus1:MovieClip;
public var loader:MovieClip;
public var Bonus3:MovieClip;
public var Bonus4:MovieClip;
public var Bonus5:MovieClip;
public var Bonus6:MovieClip;
public var Bonus2:MovieClip;
private var useSecretWeapon:Boolean;
public var ad:DisplayObject;
public var xbullet_;
public var stuckBallMove;
private var NextEnemy;
public var masuq:int;
public var istepSecretWeapon;
public var prevTextBtn:SimpleButton;
public var padlock:MovieClip;
public var hiddenBtn:MovieClip;
public var towerLogo:SimpleButton;
public var leftArrow;
public var leftArrow_;
public var rotSecretWeapon;
public var h:int;
public var i:int;
public var var6_Hero:int;
public var enemyHole:EnemyHole;
public var displayWarning:MovieClip;
public var menuBtn:SimpleButton;
public var downArrow:Boolean;// = false
public var bonus1_imax:int;
private var soundshot:soundShot;
public var herolastTime:int;
public var block:Block;
public var creditBtn:SimpleButton;
public var newX_;
public var CPMStarContentSpotID:String;
public var listWave;
public var money:int;
public var newY_;
public var restStep;
public var circle:Circle;
public var maxHealth;
public var explode:Explode;
public var back:background;
public var upgradeInfo:MovieClip;
private var secretWeapon;
private var soundexplode:soundExplode;
public var playBGM;
public var levelnow:int;
private var bullet:Bullet;
public var channel:SoundChannel;
public var ybullet_:Number;
public var backSimpleGame:MovieClip;
public var bossKill1;
public var bonus2_imax:int;
public var bossKill3;
public var levelReached:int;
public var dBallDegree:Number;
public var bossKill2;
public var var1_Hero:int;
public var listSumWave;
public var blockHits:int;
public var musicActive;
public var achievement10:Boolean;
public var soundGame:SoundGame;
private var enemy2:Enemy2;
private var enemy3:Enemy3;
private var enemy4:Enemy4;
private var enemy5:Enemy5;
private var enemy6:Enemy6;
private var enemy9:Enemy9;
public var acv10:MovieClip;
public var maxBulletStuck;
private var enemy8:Enemy8;
public var secretBool:Boolean;
private var enemy7:Enemy7;
public var bonus3_imax:int;
public var stepSecretWeapon;
public var soundclick:soundClick;
public var firstplay:Boolean;
public var levelBtn_1:MovieClip;
public var levelBtn_2:MovieClip;
public var levelBtn_3:MovieClip;
public var levelBtn_4:MovieClip;
public var levelBtn_5:MovieClip;
public var levelBtn_6:MovieClip;
public var levelBtn_7:MovieClip;
public var levelBtn_8:MovieClip;
public var levelBtn_9:MovieClip;
private var iNextEnemy:int;
public var bigExplosion:Boolean;
private var displayHeader:DisplayHeader;
public var musicBtn:BtnMusic;
public var addBtn:SimpleButton;
public var ball:Ball;
public var pi:Number;
public var po;
public var var2_Hero:int;
public var acv1:MovieClip;
public var acv2:MovieClip;
public var acv3:MovieClip;
public var acv4:MovieClip;
public var acv5:MovieClip;
public var acv6:MovieClip;
public var acv7:MovieClip;
public var acv8:MovieClip;
public var acv9:MovieClip;
public var enemies;
public var bonus6_i:int;
public var upArrow;
private var startstep;
public var displayWarningScore:MovieClip;
public var skor:int;
public var lastTime_;
public var enemyCreated:int;
public var hitCircle;
public var achieveBtn:SimpleButton;
public var signn:int;
public var dx_;
private var displayPause:DisplayPause;
public var health:MovieClip;
public var bonus5_i:int;
public var bonus4_imax:int;
private var displayHint:DisplayHint;
public var scoreBtn:SimpleButton;
public var stepBGM:int;
public var intro:MovieClip;
public var money_txt:TextField;
public var listHole:Array;
public var dy_:Number;
public var lastTime:int;
public var nama:String;
public var playBtn:SimpleButton;
public var noLock:Boolean;
public var var3_Hero:int;
public var score;
public var statsMc:StatsMc;
public var bonus4_i:int;
public var adBox:MovieClip;
public var loop;
public var rightArrow_:Boolean;
public var totalEnemy;
private var newY:Number;
private var newX;
public var enemies10;
public var enemies11;
public var moreBtn:SimpleButton;
public var enemies2;
public var enemies3;
public var enemies4;
public var enemies5;
public var enemies6;
public var enemies7;
public var enemies9;
public var enemies12;
public var enemies8;
public var bonus3_i:int;
public var bulletsX:Array;
public var loadplayBtn:btn__play;
public var achievement2:Boolean;
public var achievement3:Boolean;
public var achievement4:Boolean;
public var achievement5:Boolean;
public var achievement6:Boolean;
public var achievement7:Boolean;
public var achievement8:Boolean;
public var achievement9:Boolean;
public var winStatus;
public var pausegame;
public var achievement1:Boolean;
public var wave;
private var cursorDegrees:Number;
public var bonus5_imax:int;
public var shake;
public var soundMenu:SoundMenu;
public var bonus2_i:int;
public var step;
public var submitBtn:SubmitBtn;
public var var4_Hero:int;
public var level_txt:TextField;
private var cursorAngle;
public var rightArrow:Boolean;// = false
public var playMusic;
private var cursor:Cursor;
public var helpBtn:SimpleButton;
public var bonus1_i:int;
private var sounddeeb2:soundDeeb2;
public var shield:Shield;
public var myData:SharedObject;
public var towerLog:SimpleButton;
public var nextTextBtn:SimpleButton;
public var level;
public var levelBtn_10:MovieClip;
public var levelBtn_11:MovieClip;
public var levelBtn_12:MovieClip;
public var levelBtn_13:MovieClip;
private var soundXBullet:SoundXBullet;
private var enemy:Enemy;
public var shieldDegree:Number;
public var loadBtn:SimpleButton;
public var sfxBtn:BtnSfx;
public var bonus6_imax:int;
private var bulletX:BulletX;
public var blackStone:BlackStone;
private var enemy10:Enemy10;
private var enemy11:Enemy11;
private var enemy12:Enemy12;
public var bullets;
public var shipHit:int;
public var sumeachwave;
public var var5_Hero:int;
public var inb:inBetween2;
public var newEnemyStillActive;
public var menuFX1:MovieClip;
public var sfxActive;
public var diem;
public var menuFX2:MovieClip;
public var menuFX3:inBetween2;
public var sumEnemy;
public function ZeroBullets(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
public function frameupgrade(_arg1:Event){
money_txt.text = String(money);
}
public function levelBtn_4f(_arg1:MouseEvent){
if (levelBtn_4.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 4;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function levelBtn_5f(_arg1:MouseEvent){
if (levelBtn_5.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 5;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function towerLogf(_arg1:MouseEvent){
var event = _arg1;
var url = "http://www.playtowerdefensegames.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function levelBtn_6f(_arg1:MouseEvent){
if (levelBtn_6.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 6;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
function frame10(){
stop();
startZeroBullets();
if (musicActive){
displayHeader.musicBtn.gotoAndStop(1);
} else {
displayHeader.musicBtn.gotoAndStop(2);
};
if (sfxActive){
displayHeader.sfxBtn.gotoAndStop(1);
} else {
displayHeader.sfxBtn.gotoAndStop(2);
};
if ((((level >= 1)) && ((level <= 4)))){
back.gotoAndStop(1);
} else {
if ((((level > 4)) && ((level <= 8)))){
back.gotoAndStop(2);
} else {
if ((((level > 8)) && ((level <= 12)))){
back.gotoAndStop(3);
} else {
if (level == 13){
if (Math.floor(((Math.random() * 2) + 1)) == 1){
back.gotoAndStop(2);
} else {
back.gotoAndStop(3);
};
};
};
};
};
if (firstplay){
displayHint.nextBtn.addEventListener(MouseEvent.CLICK, displayHintnextBtn);
displayHint.prevBtn.addEventListener(MouseEvent.CLICK, displayHintprevBtn);
displayHint.playBtn.addEventListener(MouseEvent.CLICK, displayHintf);
};
}
public function ClickCircle(_arg1:MouseEvent){
stuckBallMove = false;
diem = true;
hitCircle = true;
}
function frame1(){
stop();
if (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "playtowerdefensegames.com")){
noLock = true;
} else {
noLock = false;
};
addEventListener(Event.ENTER_FRAME, loadProgress);
channel = new SoundChannel();
sfxActive = true;
musicActive = true;
playMusic = true;
firstplay = true;
loadplayBtn.visible = false;
loadplayBtn.addEventListener(MouseEvent.CLICK, loadplayBtnf);
diem = true;
hitCircle = true;
blockHits = 0;
h = 0;
while (h < 4) {
i = 0;
while (i < 9) {
block = new Block();
addChild(block);
block.x = (335 + (i * 27));
block.y = (160 + (h * 12));
i++;
};
h++;
};
circle = new Circle();
addChild(circle);
circle.x = 400;
circle.y = 300;
circle.rotation = 0;
ball = new Ball();
addChild(ball);
ball.x = 350;
ball.y = 220;
pi = (2 * Math.PI);
ball.rotation = ((360 * Math.atan2((circle.y - ball.y), (circle.x - ball.x))) / pi);
stage.addEventListener(KeyboardEvent.KEY_DOWN, DownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, UpFunction);
stage.addEventListener(MouseEvent.CLICK, ClickCircle);
stage.addEventListener(Event.ENTER_FRAME, S_enterframe);
lastTime_ = getTimer();
newX_ = 0;
newY_ = 0;
Mouse.show();
towerLog.addEventListener(MouseEvent.CLICK, towerLogf);
MochiBot.track(this, "d0e76cc8");
CPMStarContentSpotID = "1431QE1F4F660";
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
}
function frame2(){
stop();
intro.buttonMode = true;
intro.addEventListener(MouseEvent.CLICK, introf);
}
public function addStone(_arg1, _arg2:Number){
blackStone = new BlackStone();
addChild(blackStone);
blackStone.x = _arg1;
blackStone.y = _arg2;
}
function frame4(){
stop();
displayWarning.visible = false;
displayWarningScore.visible = false;
soundMenu = new SoundMenu();
soundGame = new SoundGame();
if ((((musicBtn.currentFrame == 1)) && (playMusic))){
channel = soundMenu.play(0, 100);
};
menuFX2.gotoAndPlay(1);
soundclick = new soundClick();
myData = SharedObject.getLocal("Hey_You");
signn = 1;
masuq = myData.data.infmasuq;
if (masuq == 73059824){
levelReached = myData.data.inflevelReached;
money = myData.data.infmoney;
achievement1 = myData.data.ac1;
achievement2 = myData.data.ac2;
achievement3 = myData.data.ac3;
achievement4 = myData.data.ac4;
achievement5 = myData.data.ac5;
achievement6 = myData.data.ac6;
achievement7 = myData.data.ac7;
achievement8 = myData.data.ac8;
achievement9 = myData.data.ac9;
achievement10 = myData.data.ac10;
bonus1_i = myData.data.infbonus1_i;
bonus2_i = myData.data.infbonus2_i;
bonus3_i = myData.data.infbonus3_i;
bonus4_i = myData.data.infbonus4_i;
bonus5_i = myData.data.infbonus5_i;
bonus6_i = myData.data.infbonus6_i;
bonus1_imax = myData.data.infbonus1_imax;
bonus2_imax = myData.data.infbonus2_imax;
bonus3_imax = myData.data.infbonus3_imax;
bonus4_imax = myData.data.infbonus4_imax;
bonus5_imax = myData.data.infbonus5_imax;
bonus6_imax = myData.data.infbonus6_imax;
var1_Hero = myData.data.infvar1_Hero;
var2_Hero = myData.data.infvar2_Hero;
var3_Hero = myData.data.infvar3_Hero;
var4_Hero = myData.data.infvar4_Hero;
var5_Hero = myData.data.infvar5_Hero;
var6_Hero = myData.data.infvar6_Hero;
};
playBtn.addEventListener(MouseEvent.CLICK, goto1);
helpBtn.addEventListener(MouseEvent.CLICK, goto2);
scoreBtn.addEventListener(MouseEvent.ROLL_OVER, scoreBtnf1);
scoreBtn.addEventListener(MouseEvent.ROLL_OUT, scoreBtnf15);
scoreBtn.addEventListener(MouseEvent.CLICK, scoreBtnf2);
achieveBtn.addEventListener(MouseEvent.CLICK, goto3a);
creditBtn.addEventListener(MouseEvent.CLICK, goto3);
displayWarning.yesBtn.addEventListener(MouseEvent.CLICK, yesBtnff);
displayWarning.noBtn.addEventListener(MouseEvent.CLICK, noBtnff);
loadBtn.addEventListener(MouseEvent.CLICK, loadBtnf);
moreBtn.addEventListener(MouseEvent.CLICK, moreBtnf);
towerLogo.addEventListener(MouseEvent.CLICK, towerLogof);
addBtn.addEventListener(MouseEvent.CLICK, addBtnf);
}
function frame9(){
stop();
removeChild(displayHeader);
displayHeader = null;
masuq = 73059824;
level_txt.text = String(level);
health.scaleY = (maxHealth / 155);
channel.stop();
if (musicActive){
musicBtn.gotoAndStop(1);
} else {
musicBtn.gotoAndStop(2);
};
if (sfxActive){
sfxBtn.gotoAndStop(1);
} else {
sfxBtn.gotoAndStop(2);
};
if (signn == 2){
removeChild(enemyHole);
signn = 1;
};
shipHit = ((var1_Hero - maxHealth) * 55);
if (level < 13){
money_txt.text = String((money - shipHit));
} else {
money_txt.text = String((skor - shipHit));
};
inb = new inBetween2();
inb.stop();
inb.visible = false;
addChild(inb);
statsMc = new StatsMc();
statsMc.x = 300;
statsMc.y = 250;
statsMc.visible = false;
addChild(statsMc);
if (level == 13){
submitBtn = new SubmitBtn();
submitBtn.x = 205;
submitBtn.y = 382;
submitBtn.visible = false;
addChild(submitBtn);
};
if (winStatus == 1){
if ((((level < levelReached)) || ((level >= 12)))){
} else {
levelReached++;
};
trace(("LEVEL = " + level));
statsMc.gotoAndStop(1);
if (level == 12){
if (noLock){
statsMc.gotoAndStop(4);
} else {
statsMc.gotoAndStop(3);
};
myData.data.ac9 = true;
};
} else {
if ((((winStatus == 2)) || ((winStatus == 3)))){
trace(("LEVEL = " + level));
statsMc.gotoAndStop(2);
if (level == 13){
statsMc.gotoAndStop(5);
};
};
};
Mouse.show();
if (winStatus == 2){
hero.removeHero();
removeChild(hero);
hero = null;
removeChild(shield);
shield = null;
};
statsMc.nextBtn.addEventListener(MouseEvent.CLICK, clicknextBtn);
trace(("LEVELxxxxx = " + level));
if (level == 13){
submitBtn.addEventListener(MouseEvent.CLICK, submitBtnf);
};
if (winStatus == 2){
myData.data.ac1 = true;
};
if (money > 50000){
myData.data.ac2 = true;
};
if (money > 100000){
myData.data.ac3 = true;
};
if (levelReached > 4){
myData.data.ac7 = true;
};
if (levelReached > 8){
myData.data.ac8 = true;
};
}
function frame3(){
stop();
gotoAndStop(1);
}
public function nextTextBtnf(_arg1:MouseEvent){
if (helpText.currentFrame == 1){
if (sfxActive){
soundclick.play();
};
helpText.gotoAndStop(2);
} else {
if (helpText.currentFrame == 2){
if (sfxActive){
soundclick.play();
};
helpText.gotoAndStop(3);
};
};
}
function frame8(){
stop();
if (noLock){
padlock.visible = false;
} else {
padlock.visible = true;
};
padlock.buttonMode = true;
padlock.addEventListener(MouseEvent.CLICK, padlockf);
upgradeInfo.gotoAndStop(7);
levelBtn_1.addEventListener(MouseEvent.CLICK, levelBtn_1f);
levelBtn_2.addEventListener(MouseEvent.CLICK, levelBtn_2f);
levelBtn_3.addEventListener(MouseEvent.CLICK, levelBtn_3f);
levelBtn_4.addEventListener(MouseEvent.CLICK, levelBtn_4f);
levelBtn_5.addEventListener(MouseEvent.CLICK, levelBtn_5f);
levelBtn_6.addEventListener(MouseEvent.CLICK, levelBtn_6f);
levelBtn_7.addEventListener(MouseEvent.CLICK, levelBtn_7f);
levelBtn_8.addEventListener(MouseEvent.CLICK, levelBtn_8f);
levelBtn_9.addEventListener(MouseEvent.CLICK, levelBtn_9f);
levelBtn_10.addEventListener(MouseEvent.CLICK, levelBtn_10f);
levelBtn_11.addEventListener(MouseEvent.CLICK, levelBtn_11f);
levelBtn_12.addEventListener(MouseEvent.CLICK, levelBtn_12f);
levelBtn_13.addEventListener(MouseEvent.CLICK, levelBtn_13f);
menuFX2.gotoAndPlay(1);
menuBtn.addEventListener(MouseEvent.CLICK, goto02);
addEventListener(Event.ENTER_FRAME, frameupgrade);
myData.data.infmasuq = masuq;
myData.data.inflevelReached = levelReached;
myData.data.infmoney = money;
myData.data.infbonus1_i = bonus1_i;
myData.data.infbonus2_i = bonus2_i;
myData.data.infbonus3_i = bonus3_i;
myData.data.infbonus4_i = bonus4_i;
myData.data.infbonus5_i = bonus5_i;
myData.data.infbonus6_i = bonus6_i;
myData.data.infbonus1_imax = bonus1_imax;
myData.data.infbonus2_imax = bonus2_imax;
myData.data.infbonus3_imax = bonus3_imax;
myData.data.infbonus4_imax = bonus4_imax;
myData.data.infbonus5_imax = bonus5_imax;
myData.data.infbonus6_imax = bonus6_imax;
myData.data.infvar1_Hero = var1_Hero;
myData.data.infvar2_Hero = var2_Hero;
myData.data.infvar3_Hero = var3_Hero;
myData.data.infvar4_Hero = var4_Hero;
myData.data.infvar5_Hero = var5_Hero;
myData.data.infvar6_Hero = var6_Hero;
}
public function scoreBtnf1(_arg1:MouseEvent){
if (displayWarning.visible){
} else {
displayWarningScore.visible = true;
};
}
function frame5(){
stop();
menuFX2.gotoAndPlay(1);
menuBtn.addEventListener(MouseEvent.CLICK, goto0);
nextTextBtn.addEventListener(MouseEvent.CLICK, nextTextBtnf);
prevTextBtn.addEventListener(MouseEvent.CLICK, prevTextBtnf);
}
function frame6(){
stop();
if (achievement1){
acv1.gotoAndStop(2);
} else {
acv1.gotoAndStop(1);
};
if (achievement2){
acv2.gotoAndStop(2);
} else {
acv2.gotoAndStop(1);
};
if (achievement3){
acv3.gotoAndStop(2);
} else {
acv3.gotoAndStop(1);
};
if (achievement4){
acv4.gotoAndStop(2);
} else {
acv4.gotoAndStop(1);
};
if (achievement5){
acv5.gotoAndStop(2);
} else {
acv5.gotoAndStop(1);
};
if (achievement6){
acv6.gotoAndStop(2);
} else {
acv6.gotoAndStop(1);
};
if (achievement7){
acv7.gotoAndStop(2);
} else {
acv7.gotoAndStop(1);
};
if (achievement8){
acv8.gotoAndStop(2);
} else {
acv8.gotoAndStop(1);
};
if (achievement9){
acv9.gotoAndStop(2);
} else {
acv9.gotoAndStop(1);
};
if (achievement10){
acv10.gotoAndStop(2);
} else {
acv10.gotoAndStop(1);
};
menuFX2.gotoAndPlay(1);
menuBtn.addEventListener(MouseEvent.CLICK, goto01a);
}
public function scoreBtnf2(_arg1:MouseEvent){
var event = _arg1;
if (sfxActive){
soundclick.play();
};
var url2 = "http://www.playtowerdefensegames.com/index.php?action=highscores&gameid=893";
var request2:URLRequest = new URLRequest(url2);
try {
navigateToURL(request2, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function levelBtn_8f(_arg1:MouseEvent){
if (levelBtn_8.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 8;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
function frame7(){
stop();
menuFX2.gotoAndPlay(1);
menuBtn.addEventListener(MouseEvent.CLICK, goto01);
}
public function levelBtn_7f(_arg1:MouseEvent){
if (levelBtn_7.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 7;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function displayHintprevBtn(_arg1:MouseEvent){
displayHint.sub.gotoAndStop(1);
}
public function levelBtn_9f(_arg1:MouseEvent){
if (levelBtn_9.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 9;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function is_domain_allowed(_arg1:String, _arg2:String):Boolean{
return (array_has_prefix(reversed_domain_parts(_arg1), reversed_domain_parts(_arg2)));
}
public function S_enterframe(_arg1:Event){
var _local5:int;
var _local6:int;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local2:int = (getTimer() - lastTime_);
lastTime_ = (lastTime_ + _local2);
if ((((((((mouseX < 325)) || ((mouseX > 585)))) || ((mouseY < 230)))) || ((mouseY > 366)))){
Mouse.show();
} else {
Mouse.hide();
};
if (blockHits > 35){
_local5 = 0;
while (_local5 < 4) {
_local6 = 0;
while (_local6 < 9) {
block = new Block();
addChild(block);
block.x = (335 + (_local6 * 27));
block.y = (160 + (_local5 * 12));
_local6++;
};
_local5++;
};
blockHits = 0;
};
if (leftArrow_){
circle.rotation = (circle.rotation - ((150 * _local2) / 1000));
};
if (rightArrow_){
circle.rotation = (circle.rotation + ((150 * _local2) / 1000));
};
var _local3:Number = (mouseX - circle.x);
var _local4:Number = (mouseY - circle.y);
newX_ = ((newX_ * 0.2) + (_local3 * 0.15));
newY_ = ((newY_ * 0.2) + (_local4 * 0.15));
circle.x = (circle.x + (((newX_ * 40) * _local2) / 1000));
circle.y = (circle.y + (((newY_ * 40) * _local2) / 1000));
if (circle.x < 340){
circle.x = 340;
};
if (circle.x > 570){
circle.x = 570;
};
if (circle.y < 0xFF){
circle.y = 0xFF;
};
if (circle.y > 351){
circle.y = 351;
};
if (diem){
dx_ = (350 * Math.cos((((2 * Math.PI) * ball.rotation) / 360)));
dy_ = (350 * Math.sin((((2 * Math.PI) * ball.rotation) / 360)));
ball.x = (ball.x + ((dx_ * _local2) / 1000));
ball.y = (ball.y + ((dy_ * _local2) / 1000));
};
if (circle.hitTestPoint(ball.x, ball.y, true)){
if (hitCircle){
diem = false;
_local7 = (2 * Math.PI);
dBallDegree = (circle.rotation - ((360 * Math.atan2((ball.y - circle.y), (ball.x - circle.x))) / _local7));
stuckBallMove = true;
hitCircle = false;
};
};
if (stuckBallMove){
_local8 = (circle.rotation - dBallDegree);
xbullet_ = (15 * Math.cos((((2 * Math.PI) * _local8) / 360)));
ybullet_ = (15 * Math.sin((((2 * Math.PI) * _local8) / 360)));
ball.rotation = _local8;
ball.x = (circle.x + xbullet_);
ball.y = (circle.y + ybullet_);
};
if (stuckBallMove){
} else {
if (ball.x < 335){
_local9 = (2 * Math.PI);
ball.rotation = ((360 * Math.atan2((circle.y - ball.y), (circle.x - ball.x))) / _local9);
};
if (ball.x > 575){
_local10 = (2 * Math.PI);
ball.rotation = ((360 * Math.atan2((circle.y - ball.y), (circle.x - ball.x))) / _local10);
};
if (ball.y < 160){
_local11 = (2 * Math.PI);
ball.rotation = ((360 * Math.atan2((circle.y - ball.y), (circle.x - ball.x))) / _local11);
};
if (ball.y > 356){
_local12 = (2 * Math.PI);
ball.rotation = ((360 * Math.atan2((circle.y - ball.y), (circle.x - ball.x))) / _local12);
};
};
}
public function yesBtnf(_arg1:MouseEvent){
var _local2:Boolean;
addExplotion(hero.x, hero.y, _local2);
if (newEnemyStillActive){
NextEnemy = 0;
wave = 0;
newEnemyStillActive = false;
};
restStep = 0;
winStatus = 3;
step = 0;
endGame();
}
public function loadProgress(_arg1:Event){
var _local2:int = this.root.loaderInfo.bytesLoaded;
var _local3:int = this.root.loaderInfo.bytesTotal;
var _local4:int = int(((_local2 / _local3) * 100));
loader.gotoAndStop(int(_local4));
var _local5:int = (_local2 / 0x0400);
var _local6:int = (_local3 / 0x0400);
if (_local2 >= _local3){
Mouse.show();
loader.visible = false;
loadplayBtn.visible = true;
};
}
public function removeEnemy(_arg1:Enemy){
var _local2:*;
for (_local2 in enemies) {
if (enemies[_local2] == _arg1){
enemies.splice(_local2, 1);
break;
};
};
}
public function yesBtnff(_arg1:MouseEvent){
if (displayWarning.visible){
masuq = 34569876;
levelReached = 1;
money = 0;
bonus1_i = 0;
bonus2_i = 0;
bonus3_i = 0;
bonus4_i = 0;
bonus5_i = 0;
bonus6_i = 0;
bonus1_imax = 5;
bonus2_imax = 5;
bonus3_imax = 5;
bonus4_imax = 5;
bonus5_imax = 5;
bonus6_imax = 5;
var1_Hero = 32;
var2_Hero = 30;
var3_Hero = 40;
var4_Hero = 1.5;
var5_Hero = 3;
var6_Hero = 5;
if (sfxActive){
soundclick.play();
};
gotoAndStop("levelupgrade");
};
}
public function array_has_prefix(_arg1:Array, _arg2:Array):Boolean{
var _local3:uint = _arg2.length;
if (_arg1.length < _local3){
return (false);
};
var _local4:uint;
while (_local4 < _local3) {
if (_arg1[_local4] !== _arg2[_local4]){
return (false);
};
_local4++;
};
return (true);
}
public function levelBtn_10f(_arg1:MouseEvent){
if (levelBtn_10.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 10;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function levelBtn_11f(_arg1:MouseEvent){
if (levelBtn_11.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 11;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function submitBtnf(_arg1:MouseEvent){
var j:int;
var k:int;
var l:int;
var m:int;
var n:int;
var o:int;
var p:int;
var q:int;
var r:int;
var s:int;
var t:int;
var u:int;
var event = _arg1;
if (sfxActive){
soundclick.play();
};
score = (skor - shipHit);
nama = statsMc.name_txt.text;
var url = "http://playtowerdefensegames.com/highscores/submit/play4scores.php";
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
var lv:* = new URLVariables();
lv.game_id = 893;
lv.user_id = nama.substr(0, 15);
lv.score = score;
request.data = lv;
sendToURL(request);
var url2 = "http://www.playtowerdefensegames.com/index.php?action=highscores&gameid=893";
var request2:URLRequest = new URLRequest(url2);
try {
navigateToURL(request2, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
if (winStatus == 2){
j = (enemies.length - 1);
while (j >= 0) {
enemies[j].deleteEnemy();
j = (j - 1);
};
k = (enemies2.length - 1);
while (k >= 0) {
enemies2[k].deleteEnemy2();
k = (k - 1);
};
l = (enemies3.length - 1);
while (l >= 0) {
enemies3[l].deleteEnemy3();
l = (l - 1);
};
m = (enemies4.length - 1);
while (m >= 0) {
enemies4[m].deleteEnemy4();
m = (m - 1);
};
n = (enemies5.length - 1);
while (n >= 0) {
enemies5[n].deleteEnemy5();
n = (n - 1);
};
o = (enemies6.length - 1);
while (o >= 0) {
enemies6[o].deleteEnemy6();
o = (o - 1);
};
p = (enemies7.length - 1);
while (p >= 0) {
enemies7[p].deleteEnemy7();
p = (p - 1);
};
q = (enemies8.length - 1);
while (q >= 0) {
enemies8[q].deleteEnemy8();
q = (q - 1);
};
r = (enemies9.length - 1);
while (r >= 0) {
enemies9[r].deleteEnemy9();
r = (r - 1);
};
s = (enemies10.length - 1);
while (s >= 0) {
enemies10[s].deleteEnemy10();
s = (s - 1);
};
t = (enemies11.length - 1);
while (t >= 0) {
enemies11[t].deleteEnemy11();
t = (t - 1);
};
u = (enemies12.length - 1);
while (u >= 0) {
enemies12[u].deleteEnemy12();
u = (u - 1);
};
enemies = null;
enemies2 = null;
enemies3 = null;
enemies4 = null;
enemies5 = null;
enemies6 = null;
enemies7 = null;
enemies8 = null;
enemies9 = null;
enemies10 = null;
enemies11 = null;
enemies12 = null;
};
removeChild(inb);
removeChild(statsMc);
if (level == 13){
removeChild(submitBtn);
};
if (musicBtn.currentFrame == 1){
channel = soundMenu.play(0, 100);
};
gotoAndStop("levelupgrade");
}
public function loadplayBtnf(_arg1:MouseEvent){
removeEventListener(Event.ENTER_FRAME, loadProgress);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, DownFunction);
stage.removeEventListener(KeyboardEvent.KEY_UP, UpFunction);
stage.removeEventListener(MouseEvent.CLICK, ClickCircle);
stage.removeEventListener(Event.ENTER_FRAME, S_enterframe);
gotoAndStop(2);
}
public function newEnemy(){
if (restStep == 5){
if (listWave[wave] == 1){
enemy = new Enemy();
addChild(enemy);
cursorAngle = Math.atan2((hero.y - enemy.y), (hero.x - enemy.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy.sub.rotation = cursorDegrees;
enemies.push(enemy);
};
if (listWave[wave] == 2){
if (myData.data.ac4){
} else {
myData.data.ac4 = true;
};
enemy2 = new Enemy2();
addChild(enemy2);
cursorAngle = Math.atan2((hero.y - enemy2.y), (hero.x - enemy2.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy2.sub.rotation = cursorDegrees;
if (level == 1){
if (Math.floor((Math.random() * 2)) == 1){
enemy2.dx = ((Math.random() * 10) - 65);
enemy2.dy = ((Math.random() * 10) + 55);
} else {
enemy2.dx = ((Math.random() * 10) + 55);
enemy2.dy = ((Math.random() * 10) + 55);
};
} else {
if (level == 2){
if (Math.floor((Math.random() * 2)) == 1){
enemy2.dx = ((Math.random() * 10) - 70);
enemy2.dy = ((Math.random() * 10) + 60);
} else {
enemy2.dx = ((Math.random() * 10) + 60);
enemy2.dy = ((Math.random() * 10) + 60);
};
} else {
if (level == 4){
if (Math.floor((Math.random() * 2)) == 1){
enemy2.dx = ((Math.random() * 20) - 100);
enemy2.dy = ((Math.random() * 20) + 80);
} else {
enemy2.dx = ((Math.random() * 20) + 80);
enemy2.dy = ((Math.random() * 20) + 80);
};
} else {
if (level > 4){
if (Math.floor((Math.random() * 2)) == 1){
enemy2.dx = ((Math.random() * 30) - 120);
enemy2.dy = ((Math.random() * 30) + 90);
} else {
enemy2.dx = ((Math.random() * 30) + 90);
enemy2.dy = ((Math.random() * 30) + 90);
};
};
};
};
};
enemies2.push(enemy2);
};
if (listWave[wave] == 3){
enemy3 = new Enemy3();
addChild(enemy3);
cursorAngle = Math.atan2((hero.y - enemy3.y), (hero.x - enemy3.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy3.sub.rotation = cursorDegrees;
if (level == 2){
enemy3.speed3 = 100;
} else {
if (level == 3){
enemy3.speed3 = 110;
} else {
if (level == 7){
enemy3.speed3 = 120;
} else {
if (level > 7){
enemy3.speed3 = 150;
};
};
};
};
enemies3.push(enemy3);
};
if (listWave[wave] == 4){
enemy4 = new Enemy4();
addChild(enemy4);
cursorAngle = Math.atan2((hero.y - enemy4.y), (hero.x - enemy4.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy4.sub.rotation = cursorDegrees;
enemies4.push(enemy4);
};
if (listWave[wave] == 5){
enemy5 = new Enemy5();
addChild(enemy5);
cursorAngle = Math.atan2((hero.y - enemy5.y), (hero.x - enemy5.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy5.sub.rotation = cursorDegrees;
if (level == 5){
enemy5.speed5 = 130;
} else {
if (level == 6){
enemy5.speed5 = 145;
} else {
if (level > 6){
enemy5.speed5 = 160;
};
};
};
enemies5.push(enemy5);
};
if (listWave[wave] == 6){
if (myData.data.ac5){
} else {
myData.data.ac5 = true;
};
enemy6 = new Enemy6();
addChild(enemy6);
cursorAngle = Math.atan2((hero.y - enemy6.y), (hero.x - enemy6.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy6.sub.rotation = cursorDegrees;
enemies6.push(enemy6);
};
if (listWave[wave] == 7){
enemy7 = new Enemy7();
addChild(enemy7);
cursorAngle = Math.atan2((hero.y - enemy7.y), (hero.x - enemy7.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy7.sub.rotation = cursorDegrees;
if (level == 7){
enemy7.speed7 = 110;
} else {
if (level > 7){
enemy7.speed7 = 140;
};
};
enemies7.push(enemy7);
};
if (listWave[wave] == 8){
enemy8 = new Enemy8();
addChild(enemy8);
cursorAngle = Math.atan2((hero.y - enemy8.y), (hero.x - enemy8.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy8.sub.rotation = cursorDegrees;
enemies8.push(enemy8);
};
if (listWave[wave] == 9){
if (myData.data.ac6){
} else {
myData.data.ac6 = true;
};
enemy9 = new Enemy9();
addChild(enemy9);
cursorAngle = Math.atan2((hero.y - enemy9.y), (hero.x - enemy9.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy9.sub.rotation = cursorDegrees;
enemies9.push(enemy9);
};
if (listWave[wave] == 10){
enemy10 = new Enemy10();
addChild(enemy10);
cursorAngle = Math.atan2((hero.y - enemy10.y), (hero.x - enemy10.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemies10.push(enemy10);
};
if (listWave[wave] == 11){
enemy11 = new Enemy11();
addChild(enemy11);
cursorAngle = Math.atan2((hero.y - enemy11.y), (hero.x - enemy11.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy11.sub.rotation = cursorDegrees;
enemies11.push(enemy11);
};
if (listWave[wave] == 12){
enemy12 = new Enemy12();
addChild(enemy12);
cursorAngle = Math.atan2((hero.y - enemy12.y), (hero.x - enemy12.x));
cursorDegrees = (((360 * cursorAngle) / 2) * Math.PI);
enemy12.sub.rotation = cursorDegrees;
enemies12.push(enemy12);
};
enemyCreated++;
po++;
sumeachwave++;
trace(sumeachwave);
if (sumeachwave >= listSumWave[wave]){
removeChild(enemyHole);
signn = 1;
trace("kkkkkkkkkkkkkkkkkkkkkkkkkkkkk");
wave++;
restStep = 0;
sumeachwave = 0;
};
} else {
restStep++;
};
if (wave >= listWave.length){
loop++;
if ((((((level == 4)) || ((level == 8)))) || ((level == 12)))){
loop = 5;
};
newEnemyStillActive = false;
wave = 0;
};
}
public function newBulletX(_arg1, _arg2:Number, _arg3:Number, _arg4:Number){
bulletX = new BulletX(_arg1, _arg2, _arg3, 700);
addChild(bulletX);
bulletsX.push(bulletX);
}
public function addBtnf(_arg1:MouseEvent){
var event = _arg1;
if (sfxActive){
soundclick.play();
};
var url = "http://www.playtowerdefensegames.com/download-games.html";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function levelBtn_12f(_arg1:MouseEvent){
if (levelBtn_12.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 12;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function enterframe(_arg1:Event){
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (shake){
MovieClip(root).x = (Math.random() * 10);
displayHeader.x = (15 - MovieClip(root).x);
MovieClip(root).y = (Math.random() * 10);
displayHeader.y = (15 - MovieClip(root).y);
} else {
MovieClip(root).x = 0;
MovieClip(root).y = 0;
displayHeader.x = 15;
displayHeader.y = 15;
};
if (pausegame){
} else {
if (newEnemyStillActive){
NextEnemy++;
if (level < 13){
if (NextEnemy == (iNextEnemy * 40)){
if (restStep == 3){
enemyHole = new EnemyHole();
addChild(enemyHole);
if (listHole[wave] == 1){
enemyHole.x = 300;
enemyHole.y = 450;
} else {
if (listHole[wave] == 2){
enemyHole.x = 300;
enemyHole.y = 50;
};
};
signn = 2;
};
newEnemy();
iNextEnemy++;
};
} else {
if (level == 13){
if (NextEnemy == (iNextEnemy * 30)){
if (restStep == 3){
enemyHole = new EnemyHole();
addChild(enemyHole);
if (listHole[wave] == 1){
enemyHole.x = 300;
enemyHole.y = 450;
} else {
if (listHole[wave] == 2){
enemyHole.x = 300;
enemyHole.y = 50;
};
};
signn = 2;
};
newEnemy();
iNextEnemy++;
};
};
};
};
if (startstep){
step++;
};
if (step > 52){
startstep = false;
};
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
_local3 = (2 * Math.PI);
shieldDegree = ((360 * Math.atan2((mouseY - hero.y), (mouseX - hero.x))) / _local3);
_local4 = (mouseX - hero.x);
_local5 = (mouseY - hero.y);
newX = ((newX * 0.2) + (_local4 * 0.15));
newY = ((newY * 0.2) + (_local5 * 0.15));
hero.x = (hero.x + (((newX * var3_Hero) * _local2) / 1000));
hero.y = (hero.y + (((newY * var3_Hero) * _local2) / 1000));
shield.x = hero.x;
shield.y = hero.y;
if (leftArrow){
shield.rotation = (shield.rotation - ((200 * _local2) / 1000));
};
if (rightArrow){
shield.rotation = (shield.rotation + ((200 * _local2) / 1000));
};
};
}
public function levelBtn_13f(_arg1:MouseEvent){
if (levelBtn_13.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 13;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function startZeroBullets(){
levelnow = level;
po = 0;
enemyCreated = 0;
soundexplode = new soundExplode();
soundshot = new soundShot();
sounddeeb2 = new soundDeeb2();
soundXBullet = new SoundXBullet();
newX = 0;
newY = 0;
rotSecretWeapon = 0;
stepSecretWeapon = 0;
istepSecretWeapon = 1;
useSecretWeapon = false;
secretWeapon = false;
pausegame = false;
shake = false;
bossKill1 = false;
bossKill2 = false;
bossKill3 = false;
bigExplosion = false;
step = 52;
winStatus = 0;
hero = new Hero();
addChild(hero);
shield = new Shield();
addChild(shield);
shield.x = hero.x;
shield.y = hero.y;
displayHeader = new DisplayHeader();
addChild(displayHeader);
displayHeader.x = 15;
displayHeader.y = 15;
displayHeader.level_txt.text = String(level);
displayHeader.magicloader.scaleY = 1;
if (firstplay){
displayHint = new DisplayHint();
addChild(displayHint);
displayHint.x = 300;
displayHint.y = 250;
};
displayPause = new DisplayPause();
addChild(displayPause);
displayPause.x = 300;
displayPause.y = 250;
displayPause.visible = false;
enemies = new Array();
enemies2 = new Array();
enemies3 = new Array();
enemies4 = new Array();
enemies5 = new Array();
enemies6 = new Array();
enemies7 = new Array();
enemies8 = new Array();
enemies9 = new Array();
enemies10 = new Array();
enemies11 = new Array();
enemies12 = new Array();
bullets = new Array();
bulletsX = new Array();
maxHealth = var1_Hero;
maxBulletStuck = 0;
addEventListener(Event.ENTER_FRAME, cekHit);
addEventListener(Event.ENTER_FRAME, enterframe);
stage.addEventListener(MouseEvent.CLICK, clickstage);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
displayPause.yesBtn.addEventListener(MouseEvent.CLICK, yesBtnf);
displayPause.noBtn.addEventListener(MouseEvent.CLICK, noBtnf);
if (level == 1){
listWave = [1, 2];
listSumWave = [5, 5];
listHole = [1, 2];
sumEnemy = 20;
totalEnemy = 20;
} else {
if (level == 2){
listWave = [3, 2];
listSumWave = [10, 10];
listHole = [1, 2];
sumEnemy = 40;
totalEnemy = 40;
} else {
if (level == 3){
listWave = [4, 3];
listSumWave = [10, 13];
listHole = [2, 1];
sumEnemy = 46;
totalEnemy = 46;
} else {
if (level == 4){
listWave = [10, 2];
listSumWave = [1, 15];
listHole = [2, 2];
sumEnemy = 16;
totalEnemy = 16;
} else {
if (level == 5){
listWave = [5, 4, 1];
listSumWave = [11, 13, 15];
listHole = [1, 2, 1];
sumEnemy = 78;
totalEnemy = 78;
} else {
if (level == 6){
listWave = [6, 5, 2];
listSumWave = [11, 13, 15];
listHole = [2, 1, 2];
sumEnemy = 78;
totalEnemy = 78;
} else {
if (level == 7){
listWave = [7, 6, 3];
listSumWave = [11, 13, 15];
listHole = [1, 2, 1];
sumEnemy = 78;
totalEnemy = 78;
} else {
if (level == 8){
listWave = [11, 6];
listSumWave = [1, 15];
listHole = [2, 2];
sumEnemy = 16;
totalEnemy = 16;
} else {
if (level == 9){
listWave = [8, 7, 4, 5];
listSumWave = [12, 13, 13, 15];
listHole = [2, 1, 2, 1];
sumEnemy = 106;
totalEnemy = 106;
} else {
if (level == 10){
listWave = [9, 2, 8, 6];
listSumWave = [12, 15, 13, 15];
listHole = [1, 2, 2, 2];
sumEnemy = 110;
totalEnemy = 110;
} else {
if (level == 11){
listWave = [3, 8, 7, 9];
listSumWave = [15, 13, 15, 13];
listHole = [1, 2, 1, 1];
sumEnemy = 112;
totalEnemy = 112;
} else {
if (level == 12){
listWave = [12, 7];
listSumWave = [1, 15];
listHole = [2, 1];
sumEnemy = 16;
totalEnemy = 16;
} else {
if (level == 13){
listWave = [2, 5, 1];
listSumWave = [13, 13, 13];
listHole = [2, 1, 1];
sumEnemy = 39;
totalEnemy = 39;
skor = 0;
};
};
};
};
};
};
};
};
};
};
};
};
};
wave = 0;
loop = 1;
sumeachwave = 0;
restStep = 1;
if (firstplay){
} else {
stepBGM = 0;
playBGM = true;
lastTime = getTimer();
NextEnemy = 0;
iNextEnemy = 1;
newEnemyStillActive = true;
};
}
public function goto01a(_arg1:MouseEvent){
playMusic = false;
if (sfxActive){
soundclick.play();
};
gotoAndStop("menu");
}
public function scoreBtnf15(_arg1:MouseEvent){
displayWarningScore.visible = false;
}
public function removeBulletX(_arg1:BulletX){
var _local2:*;
for (_local2 in bulletsX) {
if (bulletsX[_local2] == _arg1){
bulletsX.splice(_local2, 1);
break;
};
};
}
public function clickstage(_arg1:MouseEvent){
var _local2:int;
var _local3:int;
if (step > 10){
_local2 = (bullets.length - 1);
while (_local2 >= 0) {
if (((shield.sub_shield.hitTestPoint(bullets[_local2].x, bullets[_local2].y, true)) && ((bullets[_local2].stuck == 5)))){
if (sfxActive){
if (pausegame){
} else {
soundshot.play();
};
};
break;
};
_local2--;
};
maxBulletStuck = 0;
_local3 = (bullets.length - 1);
while (_local3 >= 0) {
if (bullets[_local3].stuck == 5){
bullets[_local3].alpha = 1;
bullets[_local3].scaleX = 1;
bullets[_local3].scaleY = 1;
bullets[_local3].shootBullet(500);
};
_local3--;
};
};
}
public function moreBtnf(_arg1:MouseEvent){
var event = _arg1;
if (sfxActive){
soundclick.play();
};
var url = "http://www.playtowerdefensegames.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function removeEnemy11(_arg1:Enemy11){
var _local2:*;
for (_local2 in enemies11) {
if (enemies11[_local2] == _arg1){
enemies11.splice(_local2, 1);
break;
};
};
gotoAndStop("stats");
}
public function removeEnemy12(_arg1:Enemy12){
var _local2:*;
for (_local2 in enemies12) {
if (enemies12[_local2] == _arg1){
enemies12.splice(_local2, 1);
break;
};
};
gotoAndStop("stats");
}
public function removeEnemy10(_arg1:Enemy10){
var _local2:*;
for (_local2 in enemies10) {
if (enemies10[_local2] == _arg1){
enemies10.splice(_local2, 1);
break;
};
};
gotoAndStop("stats");
}
public function cekHit(_arg1:Event){
var _local2:Number;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:Boolean;
if (pausegame){
} else {
if (playBGM){
stepBGM++;
if (stepBGM == 120){
MovieClip(root).channel.stop();
};
if (stepBGM > 200){
if (displayHeader.musicBtn.currentFrame == 1){
MovieClip(root).channel = MovieClip(root).soundGame.play(0, 100);
};
playBGM = false;
};
};
if (level < 13){
displayHeader.money_txt.text = String(money);
} else {
displayHeader.money_txt.text = String(skor);
};
displayHeader.health.scaleY = (maxHealth / 155);
_local2 = (var1_Hero / 155);
hero.light.scaleX = (displayHeader.health.scaleY / _local2);
hero.light.scaleY = (displayHeader.health.scaleY / _local2);
if (((firstplay) || (pausegame))){
} else {
if (hiddenBtn.hitTestObject(hero)){
Mouse.show();
} else {
Mouse.hide();
};
};
if (useSecretWeapon){
stepSecretWeapon++;
rotSecretWeapon = (rotSecretWeapon + 7);
_local4 = 1;
while (_local4 < (var5_Hero + 1)) {
newBulletX(hero.x, hero.y, (rotSecretWeapon + ((_local4 * 360) / var5_Hero)), 200);
_local4++;
};
if (stepSecretWeapon == (istepSecretWeapon * 5)){
istepSecretWeapon++;
if (sfxActive){
soundXBullet.play();
};
};
if (stepSecretWeapon > 200){
useSecretWeapon = false;
};
};
if (displayHeader.magicloader.scaleY >= 1){
stepSecretWeapon = 0;
istepSecretWeapon = 1;
secretWeapon = true;
} else {
displayHeader.magicloader.scaleY = (displayHeader.magicloader.scaleY + (var6_Hero * 0.0001));
secretWeapon = false;
};
_local3 = (bullets.length - 1);
while (_local3 >= 0) {
if (((((shield.sub_shield.hitTestPoint(bullets[_local3].x, bullets[_local3].y, true)) && ((bullets[_local3].stuck == null)))) && ((maxBulletStuck < var2_Hero)))){
bullets[_local3].alpha = 0.7;
bullets[_local3].scaleX = 0.6;
bullets[_local3].scaleY = 0.6;
bullets[_local3].stuckBullet();
maxBulletStuck++;
if (sfxActive){
sounddeeb2.play();
};
break;
};
_local3--;
};
if (level < 13){
if ((((sumEnemy < ((totalEnemy / 2) + 3))) && ((loop == 2)))){
wave = 0;
sumeachwave = 0;
restStep = 3;
newEnemyStillActive = true;
loop = 3;
};
} else {
if ((((sumEnemy < 5)) && ((sumeachwave == 0)))){
trace(("ooooooooo " + sumEnemy));
_local5 = ((Math.random() * 6) + 4);
_local6 = _local5;
_local7 = (_local6 / 2);
_local8 = (_local6 / 2);
if ((_local7 - _local8) == 0.5){
_local11 = 1;
} else {
_local11 = 2;
};
_local9 = ((Math.random() * 6) + 4);
_local6 = _local9;
_local7 = (_local6 / 2);
_local8 = (_local6 / 2);
if ((_local7 - _local8) == 0.5){
_local12 = 1;
} else {
_local12 = 2;
};
_local10 = ((Math.random() * 3) + 1);
_local6 = _local10;
_local7 = (_local6 / 2);
_local8 = (_local6 / 2);
if ((_local7 - _local8) == 0.5){
_local13 = 1;
} else {
_local13 = 2;
};
listWave = [_local5, _local9, _local10];
listSumWave = [13, 13, 13];
listHole = [_local11, _local12, _local13];
wave = 0;
sumeachwave = 0;
restStep = 3;
newEnemyStillActive = true;
sumEnemy = (sumEnemy + 39);
trace(("ooooooooo " + sumEnemy));
};
};
if ((((((((((sumEnemy <= 0)) || (bossKill1))) || (bossKill2))) || (bossKill3))) && ((level < 13)))){
if (newEnemyStillActive){
NextEnemy = 0;
wave = 0;
newEnemyStillActive = false;
};
restStep = 0;
winStatus = 1;
hero.newwX = 0;
hero.newwY = 0;
herolastTime = getTimer();
endGame();
} else {
if (maxHealth <= 0){
_local14 = false;
addExplotion(hero.x, hero.y, _local14);
if (newEnemyStillActive){
NextEnemy = 0;
wave = 0;
newEnemyStillActive = false;
};
restStep = 0;
winStatus = 2;
endGame();
};
};
};
}
public function towerLogof(_arg1:MouseEvent){
var event = _arg1;
if (sfxActive){
soundclick.play();
};
var url = "http://www.playtowerdefensegames.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function keyDownFunction(_arg1:KeyboardEvent){
if (_arg1.keyCode == 27){
pausegame = true;
Mouse.show();
setChildIndex(displayPause, (numChildren - 1));
displayPause.visible = true;
};
if (pausegame){
} else {
if (secretWeapon){
if (_arg1.keyCode == 32){
stepSecretWeapon = 0;
rotSecretWeapon = 0;
displayHeader.magicloader.scaleY = 0;
useSecretWeapon = true;
};
};
};
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
leftArrow = true;
} else {
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
rightArrow = true;
} else {
if ((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))){
upArrow = true;
} else {
if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){
downArrow = true;
};
};
};
};
}
public function goto01(_arg1:MouseEvent){
playMusic = false;
if (sfxActive){
soundclick.play();
};
gotoAndStop("menu");
}
public function goto02(_arg1:MouseEvent){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
playMusic = false;
var _local2:int = (((((bonus1_i + bonus2_i) + bonus3_i) + bonus4_i) + bonus5_i) + bonus6_i);
if (_local2 == 30){
myData.data.ac10 = true;
};
if (sfxActive){
soundclick.play();
};
myData.data.infmasuq = masuq;
myData.data.inflevelReached = levelReached;
myData.data.infmoney = money;
myData.data.infbonus1_i = bonus1_i;
myData.data.infbonus2_i = bonus2_i;
myData.data.infbonus3_i = bonus3_i;
myData.data.infbonus4_i = bonus4_i;
myData.data.infbonus5_i = bonus5_i;
myData.data.infbonus6_i = bonus6_i;
myData.data.infbonus1_imax = bonus1_imax;
myData.data.infbonus2_imax = bonus2_imax;
myData.data.infbonus3_imax = bonus3_imax;
myData.data.infbonus4_imax = bonus4_imax;
myData.data.infbonus5_imax = bonus5_imax;
myData.data.infbonus6_imax = bonus6_imax;
myData.data.infvar1_Hero = var1_Hero;
myData.data.infvar2_Hero = var2_Hero;
myData.data.infvar3_Hero = var3_Hero;
myData.data.infvar4_Hero = var4_Hero;
myData.data.infvar5_Hero = var5_Hero;
myData.data.infvar6_Hero = var6_Hero;
gotoAndStop("menu");
}
public function removeBullet(_arg1:Bullet){
var _local2:*;
for (_local2 in bullets) {
if (bullets[_local2] == _arg1){
bullets.splice(_local2, 1);
break;
};
};
}
public function DownFunction(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
leftArrow_ = true;
} else {
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
rightArrow_ = true;
};
};
}
public function newBullet(_arg1, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int){
if (level == 1){
_arg4 = 500;
} else {
if (level == 2){
_arg4 = 525;
} else {
if (level == 3){
_arg4 = 550;
} else {
if (level == 4){
_arg4 = 575;
} else {
if (level == 5){
_arg4 = 600;
} else {
if (level == 6){
_arg4 = 625;
} else {
if (level == 7){
_arg4 = 650;
} else {
if (level == 8){
_arg4 = 675;
} else {
if (level >= 9){
_arg4 = 700;
};
};
};
};
};
};
};
};
};
bullet = new Bullet(_arg1, _arg2, _arg3, _arg4, _arg5);
bullet.gotoAndStop(_arg5);
addChild(bullet);
bullets.push(bullet);
}
public function noBtnff(_arg1:MouseEvent){
if (displayWarning.visible){
if (sfxActive){
soundclick.play();
};
displayWarning.visible = false;
};
}
public function noBtnf(_arg1:MouseEvent){
var _local2:int = (bullets.length - 1);
while (_local2 >= 0) {
bullets[_local2].lastTime = getTimer();
_local2--;
};
var _local3:int = (bulletsX.length - 1);
while (_local3 >= 0) {
bulletsX[_local3].lastTime = getTimer();
_local3--;
};
var _local4:int = (enemies.length - 1);
while (_local4 >= 0) {
enemies[_local4].lastTime = getTimer();
_local4--;
};
var _local5:int = (enemies2.length - 1);
while (_local5 >= 0) {
enemies2[_local5].lastTime = getTimer();
_local5--;
};
var _local6:int = (enemies3.length - 1);
while (_local6 >= 0) {
enemies3[_local6].lastTime = getTimer();
_local6--;
};
var _local7:int = (enemies4.length - 1);
while (_local7 >= 0) {
enemies4[_local7].lastTime = getTimer();
_local7--;
};
var _local8:int = (enemies5.length - 1);
while (_local8 >= 0) {
enemies5[_local8].lastTime = getTimer();
_local8--;
};
var _local9:int = (enemies6.length - 1);
while (_local9 >= 0) {
enemies6[_local9].lastTime = getTimer();
_local9--;
};
var _local10:int = (enemies7.length - 1);
while (_local10 >= 0) {
enemies7[_local10].lastTime = getTimer();
_local10--;
};
var _local11:int = (enemies8.length - 1);
while (_local11 >= 0) {
enemies8[_local11].lastTime = getTimer();
_local11--;
};
var _local12:int = (enemies9.length - 1);
while (_local12 >= 0) {
enemies9[_local12].lastTime = getTimer();
_local12--;
};
var _local13:int = (enemies10.length - 1);
while (_local13 >= 0) {
enemies10[_local13].lastTime = getTimer();
_local13--;
};
var _local14:int = (enemies11.length - 1);
while (_local14 >= 0) {
enemies11[_local14].lastTime = getTimer();
_local14--;
};
var _local15:int = (enemies12.length - 1);
while (_local15 >= 0) {
enemies12[_local15].lastTime = getTimer();
_local15--;
};
lastTime = getTimer();
step = 0;
startstep = true;
pausegame = false;
displayPause.visible = false;
}
public function reversed_domain_parts(_arg1:String):Array{
var _local2:Array = _arg1.split(".");
_local2.reverse();
return (_local2);
}
public function goto0(_arg1:MouseEvent){
playMusic = false;
if (sfxActive){
soundclick.play();
};
gotoAndStop("menu");
}
public function goto2(_arg1:MouseEvent){
if (displayWarning.visible){
} else {
if (sfxActive){
soundclick.play();
};
gotoAndStop("help");
};
}
public function goto3(_arg1:MouseEvent){
if (displayWarning.visible){
} else {
if (sfxActive){
soundclick.play();
};
gotoAndStop("credit");
};
}
public function goto3a(_arg1:MouseEvent){
if (displayWarning.visible){
} else {
if (sfxActive){
soundclick.play();
};
gotoAndStop("achieve");
};
}
public function goto1(_arg1:MouseEvent){
if (sfxActive){
soundclick.play();
};
displayWarning.visible = true;
}
public function displayHintf(_arg1:MouseEvent){
removeChild(displayHint);
displayHint = null;
stepBGM = 0;
playBGM = true;
lastTime = getTimer();
NextEnemy = 0;
iNextEnemy = 1;
newEnemyStillActive = true;
firstplay = false;
if (sfxActive){
soundclick.play();
};
}
public function removeEnemy3(_arg1:Enemy3){
var _local2:*;
for (_local2 in enemies3) {
if (enemies3[_local2] == _arg1){
enemies3.splice(_local2, 1);
break;
};
};
}
public function removeEnemy7(_arg1:Enemy7){
var _local2:*;
for (_local2 in enemies7) {
if (enemies7[_local2] == _arg1){
enemies7.splice(_local2, 1);
break;
};
};
}
public function removeEnemy2(_arg1:Enemy2){
var _local2:*;
for (_local2 in enemies2) {
if (enemies2[_local2] == _arg1){
enemies2.splice(_local2, 1);
break;
};
};
}
public function removeEnemy4(_arg1:Enemy4){
var _local2:*;
for (_local2 in enemies4) {
if (enemies4[_local2] == _arg1){
enemies4.splice(_local2, 1);
break;
};
};
}
public function removeEnemy6(_arg1:Enemy6){
var _local2:*;
for (_local2 in enemies6) {
if (enemies6[_local2] == _arg1){
enemies6.splice(_local2, 1);
break;
};
};
}
public function keyUpFunction(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
leftArrow = false;
} else {
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
rightArrow = false;
} else {
if ((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))){
upArrow = false;
} else {
if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){
downArrow = false;
};
};
};
};
}
public function removeEnemy9(_arg1:Enemy9){
var _local2:*;
for (_local2 in enemies9) {
if (enemies9[_local2] == _arg1){
enemies9.splice(_local2, 1);
break;
};
};
}
public function endGame(){
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:int;
var _local18:int;
var _local19:int;
var _local20:int;
var _local21:int;
var _local22:int;
var _local23:int;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:int;
var _local28:int;
var _local29:int;
var _local30:int;
var _local31:int;
var _local32:int;
var _local33:int;
var _local34:int;
var _local35:int;
var _local1:int = (bullets.length - 1);
while (_local1 >= 0) {
bullets[_local1].deleteBullet();
_local1--;
};
var _local2:int = (bulletsX.length - 1);
while (_local2 >= 0) {
bulletsX[_local2].deleteBullet();
_local2--;
};
bullets = null;
bulletsX = null;
if (winStatus == 1){
_local3 = (enemies.length - 1);
while (_local3 >= 0) {
enemies[_local3].deleteEnemy();
_local3--;
};
_local4 = (enemies2.length - 1);
while (_local4 >= 0) {
enemies2[_local4].deleteEnemy2();
_local4--;
};
_local5 = (enemies3.length - 1);
while (_local5 >= 0) {
enemies3[_local5].deleteEnemy3();
_local5--;
};
_local6 = (enemies4.length - 1);
while (_local6 >= 0) {
enemies4[_local6].deleteEnemy4();
_local6--;
};
_local7 = (enemies5.length - 1);
while (_local7 >= 0) {
enemies5[_local7].deleteEnemy5();
_local7--;
};
_local8 = (enemies6.length - 1);
while (_local8 >= 0) {
enemies6[_local8].deleteEnemy6();
_local8--;
};
_local9 = (enemies7.length - 1);
while (_local9 >= 0) {
enemies7[_local9].deleteEnemy7();
_local9--;
};
_local10 = (enemies8.length - 1);
while (_local10 >= 0) {
enemies8[_local10].deleteEnemy8();
_local10--;
};
_local11 = (enemies9.length - 1);
while (_local11 >= 0) {
enemies9[_local11].deleteEnemy9();
_local11--;
};
enemies = null;
enemies2 = null;
enemies3 = null;
enemies4 = null;
enemies5 = null;
enemies6 = null;
enemies7 = null;
enemies8 = null;
enemies9 = null;
enemies10 = null;
enemies11 = null;
enemies12 = null;
} else {
if (winStatus == 2){
_local12 = (enemies.length - 1);
while (_local12 >= 0) {
enemies[_local12].removeMoveEnemy();
_local12--;
};
_local13 = (enemies2.length - 1);
while (_local13 >= 0) {
enemies2[_local13].removeMoveEnemy2();
_local13--;
};
_local14 = (enemies3.length - 1);
while (_local14 >= 0) {
enemies3[_local14].removeMoveEnemy3();
_local14--;
};
_local15 = (enemies4.length - 1);
while (_local15 >= 0) {
enemies4[_local15].removeMoveEnemy4();
_local15--;
};
_local16 = (enemies5.length - 1);
while (_local16 >= 0) {
enemies5[_local16].removeMoveEnemy5();
_local16--;
};
_local17 = (enemies6.length - 1);
while (_local17 >= 0) {
enemies6[_local17].removeMoveEnemy6();
_local17--;
};
_local18 = (enemies7.length - 1);
while (_local18 >= 0) {
enemies7[_local18].removeMoveEnemy7();
_local18--;
};
_local19 = (enemies8.length - 1);
while (_local19 >= 0) {
enemies8[_local19].removeMoveEnemy8();
_local19--;
};
_local20 = (enemies9.length - 1);
while (_local20 >= 0) {
enemies9[_local20].removeMoveEnemy9();
_local20--;
};
_local21 = (enemies10.length - 1);
while (_local21 >= 0) {
enemies10[_local21].removeMoveEnemy10();
_local21--;
};
_local22 = (enemies11.length - 1);
while (_local22 >= 0) {
enemies11[_local22].removeMoveEnemy11();
_local22--;
};
_local23 = (enemies12.length - 1);
while (_local23 >= 0) {
enemies12[_local23].removeMoveEnemy12();
_local23--;
};
};
};
if (winStatus == 3){
hero.removeHero();
removeChild(hero);
hero = null;
removeChild(shield);
shield = null;
_local24 = (enemies.length - 1);
while (_local24 >= 0) {
enemies[_local24].deleteEnemy();
_local24--;
};
_local25 = (enemies2.length - 1);
while (_local25 >= 0) {
enemies2[_local25].deleteEnemy2();
_local25--;
};
_local26 = (enemies3.length - 1);
while (_local26 >= 0) {
enemies3[_local26].deleteEnemy3();
_local26--;
};
_local27 = (enemies4.length - 1);
while (_local27 >= 0) {
enemies4[_local27].deleteEnemy4();
_local27--;
};
_local28 = (enemies5.length - 1);
while (_local28 >= 0) {
enemies5[_local28].deleteEnemy5();
_local28--;
};
_local29 = (enemies6.length - 1);
while (_local29 >= 0) {
enemies6[_local29].deleteEnemy6();
_local29--;
};
_local30 = (enemies7.length - 1);
while (_local30 >= 0) {
enemies7[_local30].deleteEnemy7();
_local30--;
};
_local31 = (enemies8.length - 1);
while (_local31 >= 0) {
enemies8[_local31].deleteEnemy8();
_local31--;
};
_local32 = (enemies9.length - 1);
while (_local32 >= 0) {
enemies9[_local32].deleteEnemy9();
_local32--;
};
_local33 = (enemies10.length - 1);
while (_local33 >= 0) {
enemies10[_local33].deleteEnemy10();
_local33--;
};
_local34 = (enemies11.length - 1);
while (_local34 >= 0) {
enemies11[_local34].deleteEnemy11();
_local34--;
};
_local35 = (enemies12.length - 1);
while (_local35 >= 0) {
enemies12[_local35].deleteEnemy12();
_local35--;
};
enemies = null;
enemies2 = null;
enemies3 = null;
enemies4 = null;
enemies5 = null;
enemies6 = null;
enemies7 = null;
enemies8 = null;
enemies9 = null;
enemies10 = null;
enemies11 = null;
enemies12 = null;
pausegame = false;
};
displayPause.yesBtn.removeEventListener(MouseEvent.CLICK, yesBtnf);
stage.removeEventListener(MouseEvent.CLICK, clickstage);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
removeEventListener(Event.ENTER_FRAME, cekHit);
removeEventListener(Event.ENTER_FRAME, enterframe);
leftArrow = false;
rightArrow = false;
shake = false;
removeChild(displayPause);
displayPause = null;
if (((((bossKill1) || (bossKill2))) || (bossKill3))){
} else {
gotoAndStop("stats");
};
}
public function removeEnemy5(_arg1:Enemy5){
var _local2:*;
for (_local2 in enemies5) {
if (enemies5[_local2] == _arg1){
enemies5.splice(_local2, 1);
break;
};
};
}
public function introf(_arg1:MouseEvent){
var event = _arg1;
var url = "http://www.playtowerdefensegames.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function removeEnemy8(_arg1:Enemy8){
var _local2:*;
for (_local2 in enemies8) {
if (enemies8[_local2] == _arg1){
enemies8.splice(_local2, 1);
break;
};
};
}
public function loadBtnf(_arg1:MouseEvent){
if (displayWarning.visible){
} else {
if (masuq == 73059824){
if (sfxActive){
soundclick.play();
};
gotoAndStop("levelupgrade");
};
};
}
public function prevTextBtnf(_arg1:MouseEvent){
if (helpText.currentFrame == 2){
if (sfxActive){
soundclick.play();
};
helpText.gotoAndStop(1);
} else {
if (helpText.currentFrame == 3){
if (sfxActive){
soundclick.play();
};
helpText.gotoAndStop(2);
};
};
}
public function UpFunction(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
leftArrow_ = false;
} else {
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
rightArrow_ = false;
};
};
}
public function levelBtn_1f(_arg1:MouseEvent){
if (levelBtn_1.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 1;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function addExplotion(_arg1, _arg2:Number, _arg3:Boolean){
explode = new Explode();
explode.x = (_arg1 - 20);
explode.y = (_arg2 - 20);
if (_arg3){
explode.scaleX = 0.5;
explode.scaleY = 0.5;
} else {
if (bigExplosion){
explode.scaleX = 2;
explode.scaleY = 2;
};
if (sfxActive){
soundexplode.play();
};
};
addChild(explode);
}
public function levelBtn_2f(_arg1:MouseEvent){
if (levelBtn_2.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 2;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
public function displayHintnextBtn(_arg1:MouseEvent){
displayHint.sub.gotoAndStop(2);
}
public function clicknextBtn(_arg1:MouseEvent){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
if (sfxActive){
soundclick.play();
};
if (level < 13){
money = (money - shipHit);
};
if (winStatus == 1){
hero.removeHero();
removeChild(hero);
hero = null;
removeChild(shield);
shield = null;
} else {
if (winStatus == 2){
_local2 = (enemies.length - 1);
while (_local2 >= 0) {
enemies[_local2].deleteEnemy();
_local2--;
};
_local3 = (enemies2.length - 1);
while (_local3 >= 0) {
enemies2[_local3].deleteEnemy2();
_local3--;
};
_local4 = (enemies3.length - 1);
while (_local4 >= 0) {
enemies3[_local4].deleteEnemy3();
_local4--;
};
_local5 = (enemies4.length - 1);
while (_local5 >= 0) {
enemies4[_local5].deleteEnemy4();
_local5--;
};
_local6 = (enemies5.length - 1);
while (_local6 >= 0) {
enemies5[_local6].deleteEnemy5();
_local6--;
};
_local7 = (enemies6.length - 1);
while (_local7 >= 0) {
enemies6[_local7].deleteEnemy6();
_local7--;
};
_local8 = (enemies7.length - 1);
while (_local8 >= 0) {
enemies7[_local8].deleteEnemy7();
_local8--;
};
_local9 = (enemies8.length - 1);
while (_local9 >= 0) {
enemies8[_local9].deleteEnemy8();
_local9--;
};
_local10 = (enemies9.length - 1);
while (_local10 >= 0) {
enemies9[_local10].deleteEnemy9();
_local10--;
};
_local11 = (enemies10.length - 1);
while (_local11 >= 0) {
enemies10[_local11].deleteEnemy10();
_local11--;
};
_local12 = (enemies11.length - 1);
while (_local12 >= 0) {
enemies11[_local12].deleteEnemy11();
_local12--;
};
_local13 = (enemies12.length - 1);
while (_local13 >= 0) {
enemies12[_local13].deleteEnemy12();
_local13--;
};
enemies = null;
enemies2 = null;
enemies3 = null;
enemies4 = null;
enemies5 = null;
enemies6 = null;
enemies7 = null;
enemies8 = null;
enemies9 = null;
enemies10 = null;
enemies11 = null;
enemies12 = null;
};
};
removeChild(inb);
removeChild(statsMc);
if (level == 13){
removeChild(submitBtn);
};
if (musicBtn.currentFrame == 1){
channel = soundMenu.play(0, 100);
};
gotoAndStop("levelupgrade");
}
public function padlockf(_arg1:MouseEvent){
var event = _arg1;
if (sfxActive){
soundclick.play();
};
var url = "http://www.playtowerdefensegames.com/games/894/play.html";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function levelBtn_3f(_arg1:MouseEvent){
if (levelBtn_3.aktif){
removeEventListener(Event.ENTER_FRAME, frameupgrade);
Bonus1.removeEvent();
Bonus2.removeEvent();
Bonus3.removeEvent();
Bonus4.removeEvent();
Bonus5.removeEvent();
Bonus6.removeEvent();
level = 3;
if (sfxActive){
soundclick.play();
};
gotoAndStop("play");
};
}
}
}//package