Section 1
//AMBULANCE_73 (RescuePanicv1_fla.AMBULANCE_73)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class AMBULANCE_73 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package RescuePanicv1_fla
Section 2
//ANNOUNCE_507 (RescuePanicv1_fla.ANNOUNCE_507)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class ANNOUNCE_507 extends MovieClip {
public var mc1:MovieClip;
public var btnx:SimpleButton;
public function ANNOUNCE_507(){
addFrameScript(0, frame1, 11, frame12, 24, frame25);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package RescuePanicv1_fla
Section 3
//CAR_27 (RescuePanicv1_fla.CAR_27)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class CAR_27 extends MovieClip {
public function CAR_27(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 4
//CAR_78 (RescuePanicv1_fla.CAR_78)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class CAR_78 extends MovieClip {
public function CAR_78(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 5
//CREDIT_376 (RescuePanicv1_fla.CREDIT_376)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class CREDIT_376 extends MovieClip {
public var btnback:SimpleButton;
public function CREDIT_376(){
addFrameScript(4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 6
//endingCG_519 (RescuePanicv1_fla.endingCG_519)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class endingCG_519 extends MovieClip {
public function endingCG_519(){
addFrameScript(500, frame501);
}
function frame501(){
stop();
}
}
}//package RescuePanicv1_fla
Section 7
//EQUIP_458 (RescuePanicv1_fla.EQUIP_458)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class EQUIP_458 extends MovieClip {
public function EQUIP_458(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package RescuePanicv1_fla
Section 8
//gamesfre_pre_dragon_animation_331 (RescuePanicv1_fla.gamesfre_pre_dragon_animation_331)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class gamesfre_pre_dragon_animation_331 extends MovieClip {
public function gamesfre_pre_dragon_animation_331(){
addFrameScript(86, frame87);
}
function frame87(){
stop();
}
}
}//package RescuePanicv1_fla
Section 9
//gamesfre_pre_mendengus_339 (RescuePanicv1_fla.gamesfre_pre_mendengus_339)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class gamesfre_pre_mendengus_339 extends MovieClip {
public function gamesfre_pre_mendengus_339(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package RescuePanicv1_fla
Section 10
//gamesfre_pre_preloader_gamesfree_330 (RescuePanicv1_fla.gamesfre_pre_preloader_gamesfree_330)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class gamesfre_pre_preloader_gamesfree_330 extends MovieClip {
public var ab:MovieClip;
}
}//package RescuePanicv1_fla
Section 11
//GF_21 (RescuePanicv1_fla.GF_21)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class GF_21 extends MovieClip {
public function GF_21(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package RescuePanicv1_fla
Section 12
//GROUND_162 (RescuePanicv1_fla.GROUND_162)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class GROUND_162 extends MovieClip {
public function GROUND_162(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 13
//GROUND_163 (RescuePanicv1_fla.GROUND_163)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class GROUND_163 extends MovieClip {
public function GROUND_163(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 14
//GROUND_166 (RescuePanicv1_fla.GROUND_166)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class GROUND_166 extends MovieClip {
public function GROUND_166(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 15
//GROUND_167 (RescuePanicv1_fla.GROUND_167)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class GROUND_167 extends MovieClip {
public function GROUND_167(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 16
//GROUND_168 (RescuePanicv1_fla.GROUND_168)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class GROUND_168 extends MovieClip {
public var spawnpoint8:MovieClip;
public var start2:MovieClip;
public var service1:MovieClip;
public var tree3:MovieClip;
public var tree5:MovieClip;
public var tree7:MovieClip;
public var tree1:MovieClip;
public var tree2:MovieClip;
public var tree4:MovieClip;
public var tree6:MovieClip;
public var tree8:MovieClip;
public var tree9:MovieClip;
public var waydownright1:MovieClip;
public var waydownright2:MovieClip;
public var waydownright3:MovieClip;
public var waydownright4:MovieClip;
public var waydownright6:MovieClip;
public var waydownright7:MovieClip;
public var waydownright8:MovieClip;
public var waydownright9:MovieClip;
public var house1:MovieClip;
public var house2:MovieClip;
public var house3:MovieClip;
public var house4:MovieClip;
public var house5:MovieClip;
public var house7:MovieClip;
public var house8:MovieClip;
public var house9:MovieClip;
public var house6:MovieClip;
public var hospital1:MovieClip;
public var house10:MovieClip;
public var house12:MovieClip;
public var house13:MovieClip;
public var house14:MovieClip;
public var house15:MovieClip;
public var house16:MovieClip;
public var house17:MovieClip;
public var house11:MovieClip;
public var house19:MovieClip;
public var boundary3:MovieClip;
public var boundary4:MovieClip;
public var boundary6:MovieClip;
public var boundary8:MovieClip;
public var boundary5:MovieClip;
public var boundary7:MovieClip;
public var house18:MovieClip;
public var boundary2:MovieClip;
public var civilianspawn2:MovieClip;
public var civilianspawn3:MovieClip;
public var civilianspawn4:MovieClip;
public var civilianspawn5:MovieClip;
public var house21:MovieClip;
public var civilianspawn9:MovieClip;
public var house20:MovieClip;
public var boundary1:MovieClip;
public var civilianspawn6:MovieClip;
public var switcher1:MovieClip;
public var civilianspawn1:MovieClip;
public var civilianspawn7:MovieClip;
public var trafficlamp1:MovieClip;
public var trafficlamp2:MovieClip;
public var trafficlamp3:MovieClip;
public var trafficlamp6:MovieClip;
public var trafficlamp7:MovieClip;
public var trafficlamp8:MovieClip;
public var trafficlamp9:MovieClip;
public var wayupleft6:MovieClip;
public var trafficlamp5:MovieClip;
public var wayupleft9:MovieClip;
public var wayupleft3:MovieClip;
public var wayupleft4:MovieClip;
public var wayupleft5:MovieClip;
public var ground:MovieClip;
public var wayupleft1:MovieClip;
public var wayupleft2:MovieClip;
public var wayupleft7:MovieClip;
public var wayupleft8:MovieClip;
public var trafficlamp4:MovieClip;
public var civilianspawn8:MovieClip;
public var pickuppoint10:MovieClip;
public var pickuppoint11:MovieClip;
public var pickuppoint12:MovieClip;
public var pickuppoint13:MovieClip;
public var pickuppoint14:MovieClip;
public var pickuppoint16:MovieClip;
public var pickuppoint17:MovieClip;
public var pickuppoint18:MovieClip;
public var pickuppoint19:MovieClip;
public var pickuppoint15:MovieClip;
public var telephonebox1:MovieClip;
public var civilianspawn10:MovieClip;
public var civilianspawn11:MovieClip;
public var civilianspawn12:MovieClip;
public var civilianspawn13:MovieClip;
public var civilianspawn14:MovieClip;
public var civilianspawn15:MovieClip;
public var civilianspawn16:MovieClip;
public var civilianspawn17:MovieClip;
public var civilianspawn18:MovieClip;
public var civilianspawn19:MovieClip;
public var chair1:MovieClip;
public var chair2:MovieClip;
public var pickuppoint1:MovieClip;
public var pickuppoint2:MovieClip;
public var pickuppoint4:MovieClip;
public var pickuppoint5:MovieClip;
public var pickuppoint6:MovieClip;
public var pickuppoint7:MovieClip;
public var pickuppoint8:MovieClip;
public var pickuppoint9:MovieClip;
public var civiliandown2:MovieClip;
public var pickuppoint3:MovieClip;
public var civiliandown1:MovieClip;
public var trafficlamp10:MovieClip;
public var trafficlamp11:MovieClip;
public var trafficlamp12:MovieClip;
public var trafficlamp13:MovieClip;
public var trafficlamp14:MovieClip;
public var tree11:MovieClip;
public var tree12:MovieClip;
public var tree16:MovieClip;
public var tree10:MovieClip;
public var tree18:MovieClip;
public var tree19:MovieClip;
public var tree14:MovieClip;
public var icecream1:MovieClip;
public var tree17:MovieClip;
public var tree13:MovieClip;
public var civiliandown3:MovieClip;
public var tree20:MovieClip;
public var tree21:MovieClip;
public var tree22:MovieClip;
public var tree23:MovieClip;
public var tree24:MovieClip;
public var tree25:MovieClip;
public var tree26:MovieClip;
public var tree27:MovieClip;
public var tree29:MovieClip;
public var tree28:MovieClip;
public var tree15:MovieClip;
public var tree30:MovieClip;
public var tree31:MovieClip;
public var tree34:MovieClip;
public var tree36:MovieClip;
public var tree38:MovieClip;
public var tree39:MovieClip;
public var tree33:MovieClip;
public var tree35:MovieClip;
public var tree37:MovieClip;
public var civilianup2:MovieClip;
public var civilianup3:MovieClip;
public var tree41:MovieClip;
public var blocking1:MovieClip;
public var tree43:MovieClip;
public var tree44:MovieClip;
public var tree45:MovieClip;
public var tree46:MovieClip;
public var tree40:MovieClip;
public var civilianup1:MovieClip;
public var tree47:MovieClip;
public var tree48:MovieClip;
public var tree32:MovieClip;
public var tree42:MovieClip;
public var wayupleft10:MovieClip;
public var wayupleft11:MovieClip;
public var wayupleft12:MovieClip;
public var wayupleft13:MovieClip;
public var wayupleft14:MovieClip;
public var wayupleft15:MovieClip;
public var wayupleft16:MovieClip;
public var wayupleft17:MovieClip;
public var wayupleft18:MovieClip;
public var tree50:MovieClip;
public var civilianright2:MovieClip;
public var civilianright4:MovieClip;
public var civilianright6:MovieClip;
public var civilianright7:MovieClip;
public var civilianright3:MovieClip;
public var tree49:MovieClip;
public var civilianright5:MovieClip;
public var civilianright1:MovieClip;
public var gasstation1:MovieClip;
public var civilianleft1:MovieClip;
public var civilianleft3:MovieClip;
public var civilianleft4:MovieClip;
public var civilianleft5:MovieClip;
public var civilianleft7:MovieClip;
public var civilianleft2:MovieClip;
public var civilianleft6:MovieClip;
public var waydownleft1:MovieClip;
public var waydownleft2:MovieClip;
public var spawnpoint10:MovieClip;
public var spawnpoint11:MovieClip;
public var spawnpoint12:MovieClip;
public var spawnpoint13:MovieClip;
public var spawnpoint14:MovieClip;
public var spawnpoint1:MovieClip;
public var spawnpoint2:MovieClip;
public var spawnpoint3:MovieClip;
public var wayupright1:MovieClip;
public var spawnpoint5:MovieClip;
public var wayupright3:MovieClip;
public var wayupright4:MovieClip;
public var wayupright5:MovieClip;
public var spawnpoint9:MovieClip;
public var spawnpoint4:MovieClip;
public var spawnpoint6:MovieClip;
public var spawnpoint7:MovieClip;
}
}//package RescuePanicv1_fla
Section 17
//GROUND_22 (RescuePanicv1_fla.GROUND_22)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class GROUND_22 extends MovieClip {
public function GROUND_22(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 18
//HIRE_416 (RescuePanicv1_fla.HIRE_416)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class HIRE_416 extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
}
}//package RescuePanicv1_fla
Section 19
//HOUSE_141 (RescuePanicv1_fla.HOUSE_141)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_141 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_141(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
stop();
}
}
}//package RescuePanicv1_fla
Section 20
//HOUSE_142 (RescuePanicv1_fla.HOUSE_142)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_142 extends MovieClip {
public function HOUSE_142(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 21
//HOUSE_143 (RescuePanicv1_fla.HOUSE_143)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_143 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 22
//HOUSE_144 (RescuePanicv1_fla.HOUSE_144)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_144 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 23
//HOUSE_145 (RescuePanicv1_fla.HOUSE_145)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_145 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_145(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 24
//HOUSE_147 (RescuePanicv1_fla.HOUSE_147)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_147 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 25
//HOUSE_149 (RescuePanicv1_fla.HOUSE_149)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_149 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_149(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
stop();
}
}
}//package RescuePanicv1_fla
Section 26
//HOUSE_150 (RescuePanicv1_fla.HOUSE_150)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_150 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_150(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 27
//HOUSE_151 (RescuePanicv1_fla.HOUSE_151)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_151 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_151(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 28
//HOUSE_152 (RescuePanicv1_fla.HOUSE_152)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_152 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_152(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
stop();
}
}
}//package RescuePanicv1_fla
Section 29
//HOUSE_153 (RescuePanicv1_fla.HOUSE_153)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_153 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_153(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 30
//HOUSE_154 (RescuePanicv1_fla.HOUSE_154)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_154 extends MovieClip {
public var regionhit:MovieClip;
public var service:MovieClip;
}
}//package RescuePanicv1_fla
Section 31
//HOUSE_156 (RescuePanicv1_fla.HOUSE_156)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_156 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_156(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 32
//HOUSE_157 (RescuePanicv1_fla.HOUSE_157)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_157 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 33
//HOUSE_158 (RescuePanicv1_fla.HOUSE_158)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_158 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 34
//HOUSE_159 (RescuePanicv1_fla.HOUSE_159)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_159 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_159(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 35
//HOUSE_160 (RescuePanicv1_fla.HOUSE_160)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_160 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 36
//HOUSE_161 (RescuePanicv1_fla.HOUSE_161)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_161 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 37
//HOUSE_169 (RescuePanicv1_fla.HOUSE_169)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_169 extends MovieClip {
public var regionhit:MovieClip;
public var service:MovieClip;
}
}//package RescuePanicv1_fla
Section 38
//HOUSE_171 (RescuePanicv1_fla.HOUSE_171)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_171 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 39
//HOUSE_172 (RescuePanicv1_fla.HOUSE_172)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_172 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 40
//HOUSE_173 (RescuePanicv1_fla.HOUSE_173)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_173 extends MovieClip {
public var regionhit:MovieClip;
public var service:MovieClip;
public function HOUSE_173(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 41
//HOUSE_174 (RescuePanicv1_fla.HOUSE_174)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_174 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_174(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 42
//HOUSE_175 (RescuePanicv1_fla.HOUSE_175)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_175 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 43
//HOUSE_176 (RescuePanicv1_fla.HOUSE_176)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_176 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 44
//HOUSE_177 (RescuePanicv1_fla.HOUSE_177)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_177 extends MovieClip {
public var regionhit:MovieClip;
}
}//package RescuePanicv1_fla
Section 45
//HOUSE_178 (RescuePanicv1_fla.HOUSE_178)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_178 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_178(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 46
//HOUSE_179 (RescuePanicv1_fla.HOUSE_179)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_179 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_179(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 47
//HOUSE_180 (RescuePanicv1_fla.HOUSE_180)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_180 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_180(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 48
//HOUSE_181 (RescuePanicv1_fla.HOUSE_181)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_181 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_181(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
stop();
}
}
}//package RescuePanicv1_fla
Section 49
//HOUSE_187 (RescuePanicv1_fla.HOUSE_187)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_187 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_187(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 50
//HOUSE_188 (RescuePanicv1_fla.HOUSE_188)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_188 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_188(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 51
//HOUSE_189 (RescuePanicv1_fla.HOUSE_189)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_189 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_189(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 52
//HOUSE_190 (RescuePanicv1_fla.HOUSE_190)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class HOUSE_190 extends MovieClip {
public var regionhit:MovieClip;
public function HOUSE_190(){
addFrameScript(0, frame1);
}
function frame1(){
regionhit.visible = false;
}
}
}//package RescuePanicv1_fla
Section 53
//INGAME_164 (RescuePanicv1_fla.INGAME_164)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_164 extends MovieClip {
public var green:MovieClip;
public function INGAME_164(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 54
//INGAME_401 (RescuePanicv1_fla.INGAME_401)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_401 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_401(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.visible = false;
stop();
}
function frame2(){
this.visible = true;
}
}
}//package RescuePanicv1_fla
Section 55
//INGAME_459 (RescuePanicv1_fla.INGAME_459)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_459 extends MovieClip {
public var mcheaddoctor:MovieClip;
public var mcexp2:MovieClip;
public var mcheadnurse:MovieClip;
public var mcexp:MovieClip;
public function INGAME_459(){
addFrameScript(0, frame1, 133, frame134);
}
function frame1(){
stop();
}
function frame134(){
gotoAndPlay("stop");
}
}
}//package RescuePanicv1_fla
Section 56
//INGAME_460 (RescuePanicv1_fla.INGAME_460)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_460 extends MovieClip {
public function INGAME_460(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 57
//INGAME_461 (RescuePanicv1_fla.INGAME_461)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_461 extends MovieClip {
public function INGAME_461(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 58
//INGAME_462 (RescuePanicv1_fla.INGAME_462)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_462 extends MovieClip {
public var txt1:TextField;
}
}//package RescuePanicv1_fla
Section 59
//INGAME_463 (RescuePanicv1_fla.INGAME_463)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_463 extends MovieClip {
public var mcobj:MovieClip;
}
}//package RescuePanicv1_fla
Section 60
//INGAME_464 (RescuePanicv1_fla.INGAME_464)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_464 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_464(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 61
//INGAME_465 (RescuePanicv1_fla.INGAME_465)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_465 extends MovieClip {
public var mc3:MovieClip;
public var txt1:TextField;
}
}//package RescuePanicv1_fla
Section 62
//INGAME_466 (RescuePanicv1_fla.INGAME_466)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_466 extends MovieClip {
public function INGAME_466(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 63
//INGAME_478 (RescuePanicv1_fla.INGAME_478)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_478 extends MovieClip {
public function INGAME_478(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 64
//INGAME_484 (RescuePanicv1_fla.INGAME_484)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_484 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mc0:MovieClip;
}
}//package RescuePanicv1_fla
Section 65
//INGAME_485 (RescuePanicv1_fla.INGAME_485)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_485 extends MovieClip {
public function INGAME_485(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 66
//INGAME_488 (RescuePanicv1_fla.INGAME_488)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_488 extends MovieClip {
public var green:MovieClip;
public var mcrotationtarget:MovieClip;
public function INGAME_488(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package RescuePanicv1_fla
Section 67
//INGAME_491 (RescuePanicv1_fla.INGAME_491)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_491 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_491(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.visible = false;
stop();
}
function frame2(){
this.visible = true;
}
}
}//package RescuePanicv1_fla
Section 68
//INGAME_493 (RescuePanicv1_fla.INGAME_493)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_493 extends MovieClip {
public function INGAME_493(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 69
//INGAME_495 (RescuePanicv1_fla.INGAME_495)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_495 extends MovieClip {
public function INGAME_495(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.visible = false;
}
}
}//package RescuePanicv1_fla
Section 70
//INGAME_497 (RescuePanicv1_fla.INGAME_497)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_497 extends MovieClip {
public function INGAME_497(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package RescuePanicv1_fla
Section 71
//INGAME_499 (RescuePanicv1_fla.INGAME_499)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_499 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_499(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package RescuePanicv1_fla
Section 72
//INGAME_503 (RescuePanicv1_fla.INGAME_503)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_503 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_503(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package RescuePanicv1_fla
Section 73
//INGAME_509 (RescuePanicv1_fla.INGAME_509)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_509 extends MovieClip {
public var txt1:MovieClip;
public var btnready:SimpleButton;
public function INGAME_509(){
addFrameScript(0, frame1, 9, frame10, 79, frame80);
}
function frame80(){
stop();
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 74
//INGAME_514 (RescuePanicv1_fla.INGAME_514)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class INGAME_514 extends MovieClip {
public var btnsurrender:SimpleButton;
public var btnresume:SimpleButton;
}
}//package RescuePanicv1_fla
Section 75
//introCG_350 (RescuePanicv1_fla.introCG_350)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class introCG_350 extends MovieClip {
public function introCG_350(){
addFrameScript(425, frame426);
}
function frame426(){
stop();
}
}
}//package RescuePanicv1_fla
Section 76
//MAINMENU_356 (RescuePanicv1_fla.MAINMENU_356)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU_356 extends MovieClip {
public var mcgf:SimpleButton;
public var btncontinue:SimpleButton;
public var btncredit:SimpleButton;
public var mclg:SimpleButton;
public var btnstart:SimpleButton;
public var btnmoregames:SimpleButton;
public function MAINMENU_356(){
addFrameScript(87, frame88);
}
function frame88(){
stop();
}
}
}//package RescuePanicv1_fla
Section 77
//MAINMENU_357 (RescuePanicv1_fla.MAINMENU_357)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU_357 extends MovieClip {
public function MAINMENU_357(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 78
//MAINMENU_360 (RescuePanicv1_fla.MAINMENU_360)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU_360 extends MovieClip {
public function MAINMENU_360(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 79
//MAINMENU_363 (RescuePanicv1_fla.MAINMENU_363)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU_363 extends MovieClip {
public function MAINMENU_363(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 80
//MAINMENU_366 (RescuePanicv1_fla.MAINMENU_366)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU_366 extends MovieClip {
public function MAINMENU_366(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 81
//MAINMENU_371 (RescuePanicv1_fla.MAINMENU_371)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU_371 extends MovieClip {
public var btnyeah:SimpleButton;
public var btnnexttime:SimpleButton;
}
}//package RescuePanicv1_fla
Section 82
//MAINMENU2_381 (RescuePanicv1_fla.MAINMENU2_381)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU2_381 extends MovieClip {
public var btnback:SimpleButton;
public var btnhire:SimpleButton;
public var btnupgrade:SimpleButton;
public var btnmission:SimpleButton;
public function MAINMENU2_381(){
addFrameScript(4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 83
//MAINMENU2_396 (RescuePanicv1_fla.MAINMENU2_396)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MAINMENU2_396 extends MovieClip {
public var bar:MovieClip;
}
}//package RescuePanicv1_fla
Section 84
//MainTimeline (RescuePanicv1_fla.MainTimeline)
package RescuePanicv1_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var sudahdispawn:Array;
public var mccredit:MovieClip;
public var civilianspecialhelp:Array;
public var healthkedip;
public var checkingnotallow;
public var citychair:Array;
public var mcannouncelevelup:MovieClip;
public var carbumpsound:soundcarbump;
public var posisiambulance;
public var mcequip:MovieClip;
public var nurseprice;
public var cityposisix;
public var i;
public var cityposisiy;
public var detik;
public var heartbeatnyala;
public var mcok1:MovieClip;
public var mcok2:MovieClip;
public var mcheat:MovieClip;
public var civilianobject:Object;
public var targetneeded;
public var arrowdoc:MovieClip;
public var cityhouse:Array;
public var timertemp;
public var mcheartborder:MovieClip;
public var hargamisi;
public var soundmainmenu:Sound;
public var sfxcarbumpenable;
public var kurangiheat;
public var doctorexp;
public var objectcekcarmiscmovesliding:Object;
public var objectnabrak;
public var timegeneratezombot;
public var kalian;
public var carstartsound:soundcarstart;
public var civilianminimap:Array;
public var isimissionjudul:Array;
public var posisiambulancexdimap;
public var lokasipoint;
public var dibawah;
public var objectisi;
public var sudahdispawnindex;
public var maxrotation;
public var rangefire;
public var cicildarahtimer;
public var mainmenuCG:MovieClip;
public var heatkedip;
public var posisiambulancedimap;
public var nunskillbool;
public var gunshotsound:Sound;
public var btnpause:SimpleButton;
public var soundmainingamegood:Sound;
public var buttonsound:soundbutton;
public var survivalrate;
public var soundchannelopeningCG:SoundChannel;
public var posisicitytheft:Array;
public var kelipatanlevel;
public var slowgas:Array;
public var heartbeatstat;
public var switcherbool;
public var loadingbar:MovieClip;
public var btndoc:SimpleButton;
public var posisiambulanceydimap;
public var mcmissionboard:MovieClip;
public var warpbool;
public var objectygnabrak;
public var meteringlevelgoodakhir;
public var mcgas:MovieClip;
public var tempsatu2;
public var mchire:MovieClip;
public var carambulanceindex;
public var timerambulanceinvisible;
public var mcrotationtarget:MovieClip;
public var income;
public var gasstationbool;
public var ambulancespeedx;
public var ambulancespeedy;
public var isimissiondescription:Array;
public var hitcolision;
public var nunindex;
public var missiondesc2;
public var gaskedip;
public var nursetext;
public var issliding;
public var heartbeatjumlah;
public var waymatike;
public var tempposcar;
public var mcgf2:SimpleButton;
public var txtspeednumber:TextField;
public var speedambulancex;
public var carspeedx;
public var carspeedy;
public var speedambulancey;
public var soundchannelsiren:SoundChannel;
public var sfxcarenginestandart:SoundChannel;
public var indexbahaya;
public var panel:Array;
public var citysebelum;
public var mobilspeed;
public var inidia;
public var obj1:Object;
public var obj2:Object;
public var missiondesc;
public var penambahan;
public var soundvictory:Sound;
public var timerambulanceboost;
public var lagumainmenubool;
public var citydipake;
public var jumlahmisi;
public var kecepatan;
public var zombotsoundbool;
public var btnmute:SimpleButton;
public var mccareful:MovieClip;
public var arrowindex;
public var deadwoman1sound:sounddeadwoman1;
public var carleversound:soundlever;
public var citybarn:Array;
public var cityblocking:Array;
public var zombottipe:Array;
public var raremission;
public var cicilimage:Array;
public var mcisihealth:MovieClip;
public var civilianspecialindex;
public var forward;
public var awalan;
public var heartbeatskipper;
public var tipepolisi:Array;
public var soundsiren:Sound;
public var healthambulance;
public var gasambulance;
public var successsound:soundsuccess;
public var firetimer;
public var warningsound:soundwarning;
public var mctutorial:MovieClip;
public var knalpotimage:Array;
public var sfxcarbump:SoundChannel;
public var heartbeatmax;
public var sounddefeat:Sound;
public var linkageorangpolisi;
public var civilianmapwaylist:Array;
public var citytrafficlamp:Array;
public var doktorindex;
public var tipemisi;
public var spawnpointposition:Array;
public var imageminimapindex;
public var deadwoman2sound:sounddeadwoman2;
public var hirestat;
public var mcminimap:MovieClip;
public var firehellreleasesound:Sound;
public var carforcity:Array;
public var misccar:Array;
public var civiliancity;
public var isimissionlevel:Array;
public var customContextMenu:ContextMenu;
public var mcquestion:MovieClip;
public var level:Number;
public var nun;
public var doctorprice;
public var speedforcity;
public var contextmenu;
public var warpindex;
public var civilian:Array;
public var imagearrow:Array;
public var bombsound:Sound;
public var carenginesound:Sound;
public var soundmainingamebad:Sound;
public var civilianspawnpointdirection:Array;
public var adaptit;
public var tamppasien:Array;
public var civilianspecial:Array;
public var stopgamebool;
public var tutorialonlinedetik;
public var citygasstation:Array;
public var nyala;
public var mcannounce:MovieClip;
public var ambulanceinvisiblebool;
public var multipliermax;
public var waylist;
public var mulaispawn;
public var pickupsound:soundpickup;
public var jumlahpolisi;
public var hospitalbool;
public var mcheartbeat:MovieClip;
public var missionlist;
public var sfxcarengine:SoundChannel;
public var bowreleasesound:Sound;
public var citytelephonebox:Array;
public var raremissiondesc;
public var carambulance:Array;
public var objectnabrakbuildingmisc:Object;
public var notallow;
public var objfadertujuan;
public var indexpanel;
public var hitmisccar;
public var parentobjectcolision;
public var civilianname:Array;
public var cityhospital:Array;
public var pressWbutton;
public var soundchannelingame:SoundChannel;
public var smashsound:Sound;
public var ambulanceindex;
public var kuranger;
public var cicilstatustipe;
public var keycode;
public var defeattext;
public var fireimage:Array;
public var isimissiontype:Array;
public var temppress;
public var klikDAbool;
public var mcgf:SimpleButton;
public var poscar;
public var carstandartvolume;
public var soundchannelmainmenuCG:SoundChannel;
public var tamppasienindex;
public var rotasikecepatan;
public var child:TextField;
public var barucicil;
public var ending;
public var mcnotenough:MovieClip;
public var harga;
public var civiliantipe:Array;
public var nunexp;
public var tipemati;
public var kurangihealthmultiplier;
public var txttime:TextField;
public var doc;
public var tutorialonlineawalan;
public var boundary1:MovieClip;
public var boundary2:MovieClip;
public var boundary3:MovieClip;
public var boundary4:MovieClip;
public var alignmentmisi;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var mc5:MovieClip;
public var mc7:MovieClip;
public var mc8:MovieClip;
public var mc6:MovieClip;
public var soundopening:Sound;
public var map:Array;
public var objectcolision;
public var mcbooble:MovieClip;
public var kurangigas;
public var pauseboolean;
public var deadman1sound:sounddeadman1;
public var maxkecepatan;
public var missionlistbaddescription;
public var heartbeatsound:soundheartbeat;
public var civwarping:Array;
public var glow:GlowFilter;
public var isimissionreward:Array;
public var heatambulance;
public var missionlistgooddescription;
public var mcnewgameask:MovieClip;
public var mcdashboard:MovieClip;
public var multiplier;
public var tutorialonlinedetiktemp;
public var stattofill;
public var btnskip:MovieClip;
public var zombieattacksound:Sound;
public var tempspeedx;
public var tempspeedy;
public var misccarspeed;
public var deadman2sound:sounddeadman2;
public var objectindian;
public var mcspeedo:MovieClip;
public var mcpause:MovieClip;
public var tambahiskipper;
public var horncar1sound:soundhorncar1;
public var mcdefeat:MovieClip;
public var spawnpointmax;
public var so:SharedObject;
public var dahpolisi;
public var buysound:soundbuy;
public var kiriorkanan;
public var temptargetneeded;
public var misccarindex;
public var notallowboundary;
public var docskillbool;
public var passx;
public var passy;
public var jembret;
public var healthambulancetemp;
public var cityboundary:Array;
public var bolemati;
public var switcherindex;
public var notallow2;
public var timerlamp;
public var civilianspeed;
public var meteringlevelbadakhir;
public var rareornot;
public var deadman3sound:sounddeadman3;
public var doctortext;
public var horncar2sound:soundhorncar2;
public var sloweffect:Array;
public var arrownun:MovieClip;
public var objfader;
public var speedisi;
public var cityservice:Array;
public var civiliandiatas;
public var ambulanceboostbool;
public var buildingobject:Object;
public var rangearcher;
public var misccarframe;
public var citylinkage;
public var astemp;
public var kurangihealthmultipliertemp;
public var mcisigas:MovieClip;
public var volume;
public var servicebool;
public var freshmisi;
public var preloaderlogo:MovieClip;
public var nopress;
public var civilianwaylist;
public var stampsound:Sound;
public var civilianindex;
public var bolepause;
public var mapwaylist:Array;
public var sfxcarhorn:SoundChannel;
public var sfxcarhornenable;
public var randcity2;
public var headpopsound:soundheadpop;
public var cityicecream:Array;
public var heartbeatnumber;
public var tipemisidescription;
public var horncar3sound:soundhorncar3;
public var mchealth:MovieClip;
public var citytree:Array;
public var missionlistbad;
public var civilianhealth;
public var objecttemp;
public var btnnun:SimpleButton;
public var civiliansextipe;
public var posambulancex;
public var posambulancey;
public var civilianspawnpointmax;
public var mcmission1:MovieClip;
public var openingCG:MovieClip;
public var Wbool;
public var boollamp;
public var mcisipatient:MovieClip;
public var mcmainmenu2:MovieClip;
public var mcupgrade:MovieClip;
public var targetzombot;
public var endingCG:MovieClip;
public var penambahanbahaya;
public var mcvictory:MovieClip;
public var nurseindex;
public var levelstat;
public var rotasiambulancedimap;
public var ciciltext;
public var loadingambulance:MovieClip;
public var notW;
public var missionlistgood;
public var carvolume;
public var imageminimap:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14);
}
public function pressDA(_arg1:KeyboardEvent):void{
if (pauseboolean == false){
if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){
keycode = 68;
klikDAbool = true;
stage.addEventListener(Event.ENTER_FRAME, transferkeyboardtoenterframe);
} else {
if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){
keycode = 65;
klikDAbool = true;
stage.addEventListener(Event.ENTER_FRAME, transferkeyboardtoenterframe);
};
};
};
if ((((_arg1.keyCode == 80)) && ((pauseboolean == false)))){
pauseboolean = true;
pausegame();
if (volume == 1){
soundchannelmainmenuCG.soundTransform = new SoundTransform(0.5);
};
} else {
if ((((_arg1.keyCode == 80)) && ((pauseboolean == true)))){
mcpause.visible = false;
pauseboolean = false;
soundchannelmainmenuCG.soundTransform = new SoundTransform(volume);
};
};
if (pauseboolean == false){
if (_arg1.keyCode == 77){
if (volume == 1){
trace("mute");
volume = 0;
} else {
if (volume == 0){
trace("unmute");
volume = 1;
};
};
soundchannelmainmenuCG.soundTransform = new SoundTransform(volume);
};
};
}
public function createcivilianmati(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = randRange(0, civiliancity[citydipake]);
if (tipemati == "civ"){
civilianspecial[civilianspecialindex] = new (civiliantipe[_local1]);
} else {
if (tipemati == "bike"){
civilianspecial[civilianspecialindex] = new (peoplebike);
} else {
if (tipemati == "elec"){
civilianspecial[civilianspecialindex] = new (housesmalllamp);
} else {
if (tipemati == "bear"){
civilianspecial[civilianspecialindex] = new (peoplebear);
} else {
if (tipemati == "vampire"){
civilianspecial[civilianspecialindex] = new (specialvampiremc);
} else {
if (tipemati == "grill"){
civilianspecial[civilianspecialindex] = new (peoplegrill);
};
};
};
};
};
};
_local2 = map[0].getChildByName(("mc" + randcity2)).ground;
trace(("RANDCITY : " + randcity2));
map[0].getChildByName(("mc" + randcity2)).addChildAt(civilianspecial[civilianspecialindex], (map[0].getChildByName(("mc" + randcity2)).getChildIndex(_local2) + 1));
trace("1");
_local3 = map[0].getChildByName(("mc" + randcity2)).getChildByName(("civilianspawn" + waymatike));
trace(((("2 " + _local3) + waymatike) + citydipake));
civilianspecial[civilianspecialindex].x = (_local3.x - 50);
trace("3");
civilianspecial[civilianspecialindex].y = _local3.y;
_local4 = randRange(80, 83);
if (tipemati == "civ"){
civilianspecial[civilianspecialindex].gotoAndStop(_local4);
};
civilianspecialindex++;
trace(("JADI MAX : " + civilianspecialindex));
}
public function nextnurse(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (nurseindex < 4){
nurseindex++;
};
if (hirestat == "nurse"){
loadhirenurse();
} else {
if (hirestat == "doctor"){
loadhiredoctor();
};
};
}
public function cekgeser(){
var _local1:Point;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:Point;
if ((((((((((((((((((((((((((((tipemisi == "When pets gone wild eps.1")) || ((tipemisi == "When pets gone wild eps.2")))) || ((tipemisi == "When pets gone wild eps.3")))) || ((tipemisi == "Racer-wanna-be")))) || ((tipemisi == "Electrifried")))) || ((tipemisi == "Anchor's rain")))) || ((tipemisi == "Bear's trap")))) || ((tipemisi == "The hunt for golden hippo")))) || ((tipemisi == "Vampire's kiss")))) || ((tipemisi == "Chair struck")))) || ((tipemisi == "Grill gone wrong")))) || ((tipemisi == "Love Wheel")))) || ((tipemisi == "Hospital's concerto")))) || ((inidia > 20)))){
if (bolemati == true){
_local5 = 0;
while (_local5 <= heartbeatjumlah) {
_local6 = ((kecepatan / 9) * 100);
_local6 = ((((6 * _local6) / 100) / 4) - survivalrate);
_local6 = (_local6 / 10);
trace(("tambah sebanyak : " + _local6));
if (heartbeatstat[_local5] == 1){
heartbeatskipper[_local5] = (heartbeatskipper[_local5] + _local6);
};
_local5++;
};
};
};
_local1 = new Point(carambulance[0].x, carambulance[0].y);
_local2 = (maxkecepatan + 2);
_local3 = (maxkecepatan + 2);
if (notallowboundary == true){
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
_local7 = new Point(checkingnotallow.x, checkingnotallow.y);
trace(((("bandingin : " + _local1) + " & ") + _local7));
if ((((checkingnotallow.tipe == "boundary1")) || ((checkingnotallow.tipe == "boundary3")))){
_local2 = 0;
};
if ((((checkingnotallow.tipe == "boundary2")) || ((checkingnotallow.tipe == "boundary4")))){
_local3 = 0;
};
} else {
if (citydipake == 1){
};
_local7 = new Point(checkingnotallow.x, checkingnotallow.y);
};
_local4 = 5;
if (_local1.x < _local7.x){
map[0].x = (map[0].x + _local2);
carambulance[0].x = (carambulance[0].x - _local2);
} else {
if (_local1.x > _local7.x){
trace("ini");
map[0].x = (map[0].x - _local2);
carambulance[0].x = (carambulance[0].x + _local2);
};
};
if (_local1.y < _local7.y){
map[0].y = (map[0].y + _local3);
carambulance[0].y = (carambulance[0].y - _local3);
} else {
if (_local1.y > _local7.y){
trace("ini 2");
map[0].y = (map[0].y - _local3);
carambulance[0].y = (carambulance[0].y + _local3);
};
};
kurangihealthmultipliertemp = (kecepatan / 2);
if (kurangihealthmultipliertemp < 0){
kurangihealthmultipliertemp = (kurangihealthmultipliertemp * -1);
};
kurangihealth();
}
public function createambulance(){
carambulance[0] = new (carambulancemc);
if (carambulanceindex == -1){
map[0].getChildByName(("mc" + citydipake)).addChildAt(carambulance[0], map[0].getChildByName(("mc" + citydipake)).numChildren);
ambulanceindex = map[0].getChildByName(("mc" + citydipake)).numChildren;
} else {
map[0].getChildByName(("mc" + citydipake)).addChildAt(carambulance[0], carambulanceindex);
ambulanceindex = carambulanceindex;
};
carambulance[0].gotoAndStop(posisiambulance);
if (awalan == false){
awalan = true;
carambulance[0].x = posisiambulancexdimap[citydipake];
carambulance[0].y = posisiambulanceydimap[citydipake];
carambulance[0].issliding = "false";
trace(((("dibuwat d : " + posisiambulancexdimap[citydipake]) + " & ") + posisiambulanceydimap[citydipake]));
} else {
if (awalan == true){
awalan = true;
carambulance[0].x = posisiambulance.xe;
carambulance[0].y = posisiambulance.ye;
carambulance[0].issliding = posisiambulance.issliding;
carambulance[0].kurangikecepatan = posisiambulance.kurangikecepatan;
carambulance[0].kurangix = posisiambulance.kurangix;
carambulance[0].kurangiy = posisiambulance.kurangiy;
carambulance[0].speedx = posisiambulance.speedx;
carambulance[0].speedy = posisiambulance.speedy;
carambulance[0].gotoAndStop(posisiambulance.framey);
carambulance[0].rotationindex = posisiambulance.rotationindex;
carambulance[0].arrow.visible = false;
};
};
carambulance[0].width = (carambulance[0].width + jembret);
carambulance[0].head.visible = false;
carambulance[0].stop();
cekspeedxy();
}
public function transferkeyboardtoenterframe(_arg1:Event):void{
var _local2:*;
if (pauseboolean == false){
if (kecepatan < 0){
_local2 = (kecepatan * -1);
} else {
_local2 = kecepatan;
};
if ((((((((pressWbutton == true)) || ((issliding == true)))) && ((klikDAbool == true)))) && ((_local2 > 2)))){
if ((((((keycode == 68)) && ((poscar == "maju")))) || ((((keycode == 65)) && ((poscar == "mundur")))))){
carambulance[0].rotationindex = (carambulance[0].rotationindex + (1 * rotasikecepatan));
if (carambulance[0].rotationindex >= 360){
carambulance[0].rotationindex = 0;
};
cekgantiframe();
cekspeedxy();
};
if ((((((keycode == 65)) && ((poscar == "maju")))) || ((((keycode == 68)) && ((poscar == "mundur")))))){
carambulance[0].rotationindex = (carambulance[0].rotationindex - (1 * rotasikecepatan));
if (carambulance[0].rotationindex < 0){
carambulance[0].rotationindex = (360 - rotasikecepatan);
};
cekgantiframe();
cekspeedxy();
};
};
};
}
public function pressDA2(_arg1:KeyboardEvent):void{
if ((((((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 65)))) || ((_arg1.keyCode == 39)))) || ((_arg1.keyCode == 37)))){
klikDAbool = false;
keycode = 0;
stage.removeEventListener(Event.ENTER_FRAME, transferkeyboardtoenterframe);
};
}
public function ambilposisi(){
checkingnotallow.xe = objectnabrak.x;
checkingnotallow.ye = objectnabrak.y;
}
function frame11(){
stop();
mcok1.visible = false;
mcok2.visible = false;
nunindex = 1;
doktorindex = 1;
doc = false;
nun = false;
mcequip.btnback.addEventListener(MouseEvent.MOUSE_UP, equipback);
mcequip.btnpredoc.addEventListener(MouseEvent.CLICK, equippredoctor);
mcequip.btnnextdoc.addEventListener(MouseEvent.CLICK, equipnextdoctor);
mcequip.btnprenun.addEventListener(MouseEvent.CLICK, equipprenun);
mcequip.btnnextnun.addEventListener(MouseEvent.CLICK, equipnextnun);
cekselectable();
}
function frame14(){
soundchannelopeningCG = soundopening.play(0, 999, new SoundTransform(1));
stage.addEventListener(KeyboardEvent.KEY_DOWN, anykey2);
this.addEventListener(Event.ENTER_FRAME, loadingending);
}
function frame12(){
btnskip.visible = false;
mchealth.blinker.gotoAndStop(1);
mcheat.blinker.gotoAndStop(1);
mcgas.blinker.gotoAndStop(1);
mctutorial.stop();
mctutorial.visible = false;
mcbooble.mcexp.visible = false;
mcbooble.mcexp2.visible = false;
btnnun.visible = false;
btndoc.visible = false;
arrownun.visible = false;
arrowdoc.visible = false;
mcpause.visible = false;
bolepause = true;
ceksound();
mcdefeat.visible = false;
mcdefeat.stop();
mcvictory.visible = false;
mcvictory.stop();
txttime.visible = false;
stop();
missionlist = ["When pets gone wild eps.1", "When pets gone wild eps.2", "When pets gone wild eps.3", "Love Wheel", "Racer-wanna-be", "Electrifried", "Anchor's rain", "Bear's trap", "The hunt for golden hippo", "Vampire's kiss", "Chair struck", "Hospital's concerto", "Grill gone wrong", "Theft Tlayer", "Zombot Zlayer", "Zown Zombot Zlayer", "Zombot Zefender", "Body Harvest", "Assassin", "Almost-Body Harvest", "Annihilation", "Chubbyman [SPECIAL MISSION]", "Hard ride eps.1 [SPECIAL MISSION]", "Hard ride eps.2 [SPECIAL MISSION]", "Irreversible [SPECIAL MISSION]", "Die Easy [SPECIAL MISSION]", "Shark Rider [SPECIAL MISSION]", "Blood Rider [SPECIAL MISSION]"];
missiondesc = ["Cute puppy to saved : ", "Cute unicorn to saved : ", "Chubby hipo to saved : ", "Patient to saved at 1 times : ", "Patient to saved : ", "Electrician to saved : ", "Patient to saved : ", "Patient to saved : ", "Golden hipo to saved : ", "Victim need to saved :", "Patient to saved : ", "Rock members to pick : ", "Burned patient to pick : ", "Theft left : ", "Zombot left : ", "Zombot left : ", "Time left : ", "Organt needed : ", "Target left : ", "Zombot organt needed : ", "City damage : ", "Patient to saved : ", "Patient to saved : ", "Indian to saved : ", "Athlete to saved : ", "Patient to saved : ", "Patient to saved : ", "Patient to saved : "];
missiondesc2 = ["0", "0", "0", "2", "0", "0", "1", "1", "1", "0", "1", "3", "1", "3", "4", "15", "1 mnt", "15", "1", "5", "0%", "1", "1", "1", "1", "1", "1", "1"];
civilianname = new Array();
civilianname = ["man", "man2", "woman1"];
civiliansextipe = [1, 1, 0, 1, 0];
generatemissionboard();
mulaispawn = [undefined, 6, 1, 1];
sudahdispawnindex = 0;
sudahdispawn = new Array();
civilianspecialindex = 0;
civilianspecial = new Array();
civilianspecialhelp = new Array();
civilianminimap = new Array();
posisicitytheft = new Array();
detik = 59;
kuranger = 25;
hospitalbool = false;
imageminimap = new Array();
imageminimapindex = 0;
gasstationbool = false;
servicebool = false;
cityposisix = [undefined, -352, -2645, 1400];
cityposisiy = [undefined, -44, -897, -962];
citylinkage = [undefined, groundmap1];
citydipake = 1;
map = new Array();
cityhouse = new Array();
cityhouse = [undefined, 21, 21, 24];
cityhospital = new Array();
cityhospital = [undefined, 1, 1, 1];
cityservice = new Array();
cityservice = [undefined, 1, 1, 0];
citygasstation = new Array();
citygasstation = [undefined, 1, 1, 0];
citytree = new Array();
citytree = [undefined, 12, 50, 9];
citychair = new Array();
citychair = [undefined, 5, 2, 4];
citytelephonebox = new Array();
citytelephonebox = [undefined, 1, 1, 0];
cityicecream = new Array();
cityicecream = [undefined, 0, 1, 0];
citybarn = new Array();
citybarn = [undefined, 0, 0, 10];
citytrafficlamp = new Array();
citytrafficlamp = [undefined, 12, 14, 10];
cityboundary = new Array();
cityboundary = [undefined, 12, 8, 2];
cityblocking = new Array();
cityblocking = [undefined, 2, 1, 1];
spawnpointmax = [undefined, 12, 14, 14];
spawnpointposition = new Array();
spawnpointposition[1] = new Array();
spawnpointposition[1][1] = "up";
spawnpointposition[1][2] = "down";
spawnpointposition[1][3] = "right";
spawnpointposition[1][4] = "down";
spawnpointposition[1][5] = "right";
spawnpointposition[1][6] = "up";
spawnpointposition[1][7] = "down";
spawnpointposition[1][8] = "up";
spawnpointposition[1][9] = "down";
spawnpointposition[1][10] = "right";
spawnpointposition[1][11] = "right";
spawnpointposition[1][12] = "up";
spawnpointposition[2] = new Array();
spawnpointposition[2][1] = "down";
spawnpointposition[2][2] = "up";
spawnpointposition[2][3] = "left";
spawnpointposition[2][4] = "down";
spawnpointposition[2][5] = "up";
spawnpointposition[2][6] = "left";
spawnpointposition[2][7] = "down";
spawnpointposition[2][8] = "down";
spawnpointposition[2][9] = "right";
spawnpointposition[2][10] = "right";
spawnpointposition[2][11] = "up";
spawnpointposition[2][12] = "up";
spawnpointposition[2][13] = "down";
spawnpointposition[2][14] = "right";
spawnpointposition[3] = new Array();
spawnpointposition[3][1] = "left";
spawnpointposition[3][2] = "down";
spawnpointposition[3][3] = "down";
spawnpointposition[3][4] = "right";
spawnpointposition[3][5] = "right";
spawnpointposition[3][6] = "up";
spawnpointposition[3][7] = "up";
spawnpointposition[3][8] = "down";
spawnpointposition[3][9] = "up";
spawnpointposition[3][10] = "down";
spawnpointposition[3][11] = "left";
spawnpointposition[3][12] = "right";
spawnpointposition[3][13] = "up";
spawnpointposition[3][14] = "right";
waylist = ["upright", "upleft", "downright", "downleft"];
mapwaylist = new Array();
mapwaylist[1] = new Array();
mapwaylist[1][0] = 13;
mapwaylist[1][1] = 4;
mapwaylist[1][2] = 1;
mapwaylist[1][3] = 4;
mapwaylist[2] = new Array();
mapwaylist[2][0] = 5;
mapwaylist[2][1] = 18;
mapwaylist[2][2] = 9;
mapwaylist[2][3] = 2;
mapwaylist[3] = new Array();
mapwaylist[3][0] = 10;
mapwaylist[3][1] = 6;
mapwaylist[3][2] = 1;
mapwaylist[3][3] = 4;
awalan = false;
carambulance = new Array();
posambulancex = 620;
posambulancey = 775;
carambulanceindex = -1;
posisiambulancexdimap = [undefined, 1000, 1036, -133];
posisiambulanceydimap = [undefined, 355, 1185, 1260];
posisiambulancedimap = [undefined, 28, 10, 10];
rotasiambulancedimap = [undefined, 270, 90, 90];
speedambulancex = [undefined, -1, -1, -1];
speedambulancey = [undefined, 0, 0, 0];
jembret = 0;
ambulanceindex = 0;
createmap();
createambulance();
knalpotimage = new Array();
createknalpot();
carambulance[0].gotoAndStop(posisiambulancedimap[citydipake]);
carambulance[0].rotationindex = rotasiambulancedimap[citydipake];
carambulance[0].speedx = speedambulancex[citydipake];
carambulance[0].speedy = speedambulancey[citydipake];
stattofill = "";
notW = false;
pressWbutton = false;
poscar = "";
tempposcar = poscar;
issliding = false;
bolemati = true;
survivalrate = 0;
mobilspeed = [5, 6, 7, 7.5, 8];
kecepatan = 0;
maxkecepatan = mobilspeed[so.data.ambulanceupgrade[1]];
trace((("MAX KECEPATAN : " + maxkecepatan) + " STANDARE : 5"));
adaptit = [0, 2, 3, 4, 5];
rotasikecepatan = Number((3 + adaptit[so.data.ambulanceupgrade[3]]));
trace((("ROTASI KECEPATAN : " + rotasikecepatan) + " STANDARE : 3"));
penambahan = (0.011 * rotasikecepatan);
kiriorkanan = "";
klikDAbool = false;
temppress = "";
nopress = 0;
tempspeedx = 1;
tempspeedy = 1;
notallow = "none";
hitmisccar = "none";
Wbool = false;
multiplier = 0;
multipliermax = 5;
forward = "none";
kalian = 0;
passx = "";
passy = "";
switcherbool = false;
ending = false;
carspeedx = [undefined, 0, 0.2, 0.4, 0.6, 0.8, 1, 0.8, 0.4, 0.6, 0.2, 0, -0.2, -0.4, -0.6, -0.8, -1, -0.8, -0.6, -0.4, -0.2];
carspeedy = [undefined, -1, -0.8, -0.6, -0.4, -0.2, 0, 0.2, 0.4, 0.6, 0.8, 1, 0.8, 0.6, 0.4, 0.2, 0, -0.2, -0.4, -0.6, -0.8];
misccar = new Array();
misccarindex = 0;
carforcity = new Array();
carforcity[1] = new Array();
carforcity[1] = [cargreencarmc, cargreencarmc, caryellowcarmc, carbluecarmc];
carforcity[2] = new Array();
carforcity[2] = [cargreencarmc, cargreencarmc, caryellowcarmc, carbluecarmc];
carforcity[3] = new Array();
carforcity[3] = [carredtruckmc, carredcar2mc, caryellowcar2mc];
speedforcity = [undefined, 0, 0, 0];
misccarspeed = [2, 4, 8];
misccarframe = [9, 4, 2];
notallow2 = "none";
dibawah = true;
civilian = new Array();
civilianindex = 0;
civilianspawnpointmax = [undefined, 20, 19, 17];
civilianspeed = [undefined, 2, 2, 4];
civilianhealth = [undefined, 5, 5, 7];
civilianspawnpointdirection = new Array();
civilianspawnpointdirection[1] = new Array();
civilianspawnpointdirection[1] = [undefined, "right", "left", "right", "right", "left", "right", "left", "right", "left", "right", "down", "up", "left", "right", "right", "left", "right", "right", "left", "right"];
civilianspawnpointdirection[2] = [undefined, "up", "down", "up", "right", "left", "right", "left", "right", "left", "right", "left", "right", "left", "right", "right", "left", "down", "down", "up"];
civilianspawnpointdirection[3] = [undefined, "right", "left", "right", "right", "down", "left", "right", "left", "left", "right", "right", "left", "right", "left", "up", "up", "down"];
civiliantipe = new Array();
civiliantipe = [peopleman1mc, peopleman2mc, peoplewoman1mc, peopleman5mc, peoplewoman2mc];
civiliancity = [undefined, 2, 2, 4];
civilianwaylist = ["right", "left", "up", "down"];
civilianmapwaylist = new Array();
civilianmapwaylist[1] = new Array();
civilianmapwaylist[1][0] = 6;
civilianmapwaylist[1][1] = 6;
civilianmapwaylist[1][2] = 1;
civilianmapwaylist[1][3] = 1;
civilianmapwaylist[2] = new Array();
civilianmapwaylist[2][0] = 7;
civilianmapwaylist[2][1] = 7;
civilianmapwaylist[2][2] = 3;
civilianmapwaylist[2][3] = 3;
civilianmapwaylist[3] = new Array();
civilianmapwaylist[3][0] = 9;
civilianmapwaylist[3][1] = 9;
civilianmapwaylist[3][2] = 2;
civilianmapwaylist[3][3] = 2;
civiliandiatas = "none";
hitcolision = false;
healthambulance = Number(110);
kurangihealthmultiplier = 0.1;
if (Number(so.data.ambulanceupgrade[2]) != 0){
kurangihealthmultiplier = ((0.5 / Number(so.data.ambulanceupgrade[2])) * 2);
} else {
kurangihealthmultiplier = 0.5;
};
trace((("HEALTH AMBULANCE : " + healthambulance) + " STANDARE : 110"));
healthambulancetemp = healthambulance;
maxrotation = 29;
gasambulance = Number(110);
kurangigas = 0.05;
if (Number(so.data.ambulanceupgrade[4]) != 0){
kurangigas = ((0.05 / Number(so.data.ambulanceupgrade[4])) * 2);
} else {
kurangigas = 0.05;
};
trace((("KURANGI GAS AMBULANCE : " + kurangigas) + " STANDARE : 0.1"));
heatambulance = 110;
kurangiheat = 0.075;
gaskedip = false;
healthkedip = false;
heatkedip = false;
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
stopgamebool = false;
defeattext = "";
income = Number((0 + (Number(so.data.ambulanceupgrade[6]) * 0.1)));
trace((("INCOME AMBULANCE : " + income) + " STANDARE : 0"));
levelstat = [0, 0, 200000, 400000, 600000];
objectisi = "";
speedisi = 0.8;
heartbeatmax = 9;
heartbeatnumber = [0, 0, 0];
heartbeatskipper = [1, 1, 1];
heartbeatstat = [0, 0, 0];
heartbeatnyala = [0, 0, 0];
heartbeatjumlah = -1;
tambahiskipper = Number((150 + (Number(so.data.ambulanceupgrade[5]) * 25)));
nyala = false;
trace((("SKIPPER AMBULANCE : " + tambahiskipper) + " STANDARE : 150"));
sfxcarbumpenable = true;
sfxcarhornenable = false;
pauseboolean = false;
docskillbool = false;
ambulanceinvisiblebool = false;
nunskillbool = false;
ambulanceboostbool = false;
timerambulanceinvisible = 250;
timerambulanceboost = 125;
astemp = 75;
zombottipe = new Array();
zombottipe = [peoplezombieman1mc, peoplezombiewoman1mc];
lokasipoint = 0;
rangearcher = 250;
sloweffect = new Array();
zombotsoundbool = false;
rangefire = 200;
firetimer = 50;
fireimage = new Array();
slowgas = new Array();
cicilstatustipe = 0;
cicildarahtimer = 0;
barucicil = false;
cicilimage = new Array();
imagearrow = new Array();
arrowindex = 0;
carstandartvolume = 0.5;
carvolume = 0;
stage.addEventListener(Event.ENTER_FRAME, rotationtarget);
timegeneratezombot = 100;
tutorialonlinedetik = 100;
tutorialonlinedetiktemp = 150;
tutorialonlineawalan = true;
boollamp = true;
timerlamp = 12;
stage.addEventListener(Event.ENTER_FRAME, lampniuniu);
tamppasien = new Array();
tamppasienindex = 0;
warpbool = false;
civwarping = new Array();
tempsatu2 = 0;
tipepolisi = new Array();
tipepolisi = [carpolicecarmc];
dahpolisi = true;
ambulancespeedx = [undefined, 0, 0.2, 0.4, 0.6, 0.8, 1, 0.8, 0.4, 0.6, 0.2, 0, 0.2, 0.4, 0.6, 0.8, 1, 0.8, 0.6, 0.4, 0.2];
ambulancespeedy = [undefined, 1, 0.8, 0.6, 0.4, 0.2, 0, 0.2, 0.4, 0.6, 0.8, 1, 0.8, 0.6, 0.4, 0.2, 0, 0.2, 0.4, 0.6, 0.8];
kelipatanlevel = 0;
jumlahpolisi = 1;
indexbahaya = 0;
penambahanbahaya = 1;
linkageorangpolisi = [peopleman6mc];
}
public function soundcar(_arg1:Event):void{
var _local2:*;
if (stopgamebool == true){
stage.removeEventListener(Event.ENTER_FRAME, soundcar);
} else {
if (volume > 0){
_local2 = (kecepatan / maxkecepatan);
carvolume = _local2;
sfxcarengine.soundTransform = new SoundTransform(carvolume);
} else {
carvolume = 0;
sfxcarengine.soundTransform = new SoundTransform(carvolume);
carstandartvolume = 0;
sfxcarenginestandart.soundTransform = new SoundTransform(carvolume);
};
};
}
public function cekcolision(){
var _local1:Rectangle;
var _local2:*;
var _local3:Rectangle;
var _local4:*;
var _local5:Point;
var _local6:Point;
hitcolision = false;
_local1 = carambulance[0].getBounds(this);
_local2 = new BitmapData(_local1.width, _local1.height, true, 0);
_local2.draw(carambulance[0]);
_local3 = objectcolision.getBounds(this);
_local4 = new BitmapData(_local3.width, _local3.height, true, 0);
_local4.draw(objectcolision);
_local5 = new Point(carambulance[0].x, carambulance[0].y);
_local5 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local5);
_local6 = new Point(objectcolision.x, objectcolision.y);
_local6 = parentobjectcolision.localToGlobal(_local6);
if (_local2.hitTest(new Point(_local5.x, _local5.y), 0, _local4, new Point(_local6.x, _local6.y), 0)){
hitcolision = true;
} else {
hitcolision = false;
};
}
function frame10(){
stop();
loadfinishbar();
trace("c");
mcquestion.visible = false;
mcquestion.btnyes.addEventListener(MouseEvent.CLICK, mcquestionyes);
mcquestion.btnno.addEventListener(MouseEvent.CLICK, mcquestionno);
glow = new GlowFilter();
glow.color = 0xFFFFFF;
glow.alpha = 1;
glow.blurX = 25;
glow.blurY = 25;
glow.inner = true;
mcmission1.mcpanel1.addEventListener(MouseEvent.MOUSE_OVER, mcpanel1highlight);
mcmission1.mcpanel1.addEventListener(MouseEvent.CLICK, mcpanel1click);
trace("a");
mcmission1.mcpanel1.addEventListener(MouseEvent.MOUSE_OUT, mcpanel1highlightnull);
mcmission1.mcpanel2.addEventListener(MouseEvent.MOUSE_OVER, mcpanel2highlight);
mcmission1.mcpanel2.addEventListener(MouseEvent.CLICK, mcpanel2click);
mcmission1.mcpanel2.addEventListener(MouseEvent.MOUSE_OUT, mcpanel2highlightnull);
mcmission1.mcpanel3.addEventListener(MouseEvent.MOUSE_OVER, mcpanel3highlight);
mcmission1.mcpanel3.addEventListener(MouseEvent.CLICK, mcpanel3click);
mcmission1.mcpanel3.addEventListener(MouseEvent.MOUSE_OUT, mcpanel3highlightnull);
panel = new Array();
missionlistgood = ["When pets gone wild eps.1", "When pets gone wild eps.2", "Love Wheel", "Racer-wanna-be", "Electrifried", "Anchor's rain", "Bear's trap", "Grill gone wrong", "Chair struck", "When pets gone wild eps.3", "The hunt for golden statue", "Hospital's concerto", "Theft Tlayer", "Vampire's kiss", "Zombot Zefender"];
missionlistgooddescription = ["A dog on the loose suddenly attacked a random citizen, such a nice puppy... [save the puppy]", "A magical unicorn bit a citizen with an icecream in the hand, hopefully the unicorn wasnt hurt... [save the unicorn]", "A heartbroken couple needs to be picked up after a ruined wedding day. [pickup the bride and the groom]", "This boy was way to young to be biking on the road! Go and rescue him at the pickup point. [save the racer boy]", "An electrician got electrified during fixing the fridge light. [save the electrician]", "Rain is quite common but not a falling anchor from the sky!!. Save the victim and some evidence for investigation [save the victim]", "Who put that bear's trap in the pedestrian? [save the victim]", "Do I smell barbeque? I smell some meat burned..oh no! a grill party going wrong!! [save the burned patient]", "Some men tried to be a new superhero ''Chairman'', now I wonder how they ended like that... [save the patient]", "A circus hipo went homesick and runned into the audiences! oohh,poor hipo... [save the hipo]", "Some rich lady just called us to search and rescue her expensive golden statue!...what a day... [find the golden statue]", "Music time! there's concert held in the hospital for the wounded people..help us pickup the band members together [bring the 3 band members]", "Errr...we have a 459 situation.. any nearby ambulance reporting in..over [slay the thief]", "Lord Dracula came out of his castle and bit someone in the town...aaawwww [save the bitten victim]", "Invading zombiieesss...no people left in town but you!hang in there and we will rescue you!! [stay alive for amount of time]"];
missionlistbad = ["Body Harvest", "Assassin", "Almost-Body Harvest", "Annihilation"];
missionlistbaddescription = ["We have a special request of fresh organs .. Drive over the bad civilians for the sake of humanity [slay civilian to take their organs]", "We have a special report of heavily infected person..uh oh poor guy!! [slay targeted civilian]", "Slay those zombies and took the rotten organ..yaiks yaiks", "Annihilate the town!! (using ambulance?!)"];
meteringlevelgoodakhir = [undefined, 7, 12, 14, 14, 14];
meteringlevelbadakhir = [undefined, 0, 0, 1, 1, 1];
indexpanel = 3;
isimissiontype = new Array();
isimissionjudul = new Array();
isimissiondescription = new Array();
isimissionlevel = new Array();
isimissionreward = new Array();
jumlahmisi = randRange(3, 7);
rareornot = 0;
raremission = ["Chubbyman [SPECIAL MISSION]", "Hard ride eps.1 [SPECIAL MISSION]", "Hard ride eps.2 [SPECIAL MISSION]", "Irreversible [SPECIAL MISSION]", "Die Easy [SPECIAL MISSION]", "Shark Rider [SPECIAL MISSION]", "Blood Rider [SPECIAL MISSION]"];
raremissiondesc = ["eerrr.. We need some supply of spare gasoline, wheels, parts, life, mercy, bandages, blood and another spare part again..[Ambulance speed decrease]", "Patient are forbidden to bring weapons!! especially that huge swords!! [Ambulance health decrease slowly]", "Patient are forbidden to bring armies!! especially that massive immortal archer!! [Ambulance after by band of archer]", "An athlete swallow an basketball to make him a better basket player..and now he request the car to move backwards..huh? [Ambulance move backward only]", "This is a very weak patient with a very fragile body [Very fragile patient]", "This is doctor Frankenstein special patient, bring him aboard first please...if not,he will slowly dying for WATER [Patient slowly comsumes ambulance's gas if Dr.Frank isn't aboard]", "This is doctor Frankenstein special patient, bring him aboard first please...if not,he will slowly dying for BLOOD [Patient slowly consumes ambulance's health to heal itself if Dr.Frank isn't aboard]"];
if (so.data.tutorial == 0){
indexpanel = 1;
mcmission1.mcpanel2.visible = false;
mcmission1.mcpanel3.visible = false;
isimissiontype[1] = 1;
isimissionjudul[1] = "Begginer Soul Saver [TUTORIAL]";
isimissiondescription[1] = "First time saving soul? let me teach you something [TUTORIAL]";
isimissionlevel[1] = 1;
isimissionreward[1] = Number(25000);
tulispanel();
} else {
if (freshmisi == true){
buwatrandommisiurut();
generatemissionwew();
} else {
if (freshmisi == false){
jumlahmisi = so.data.jumlahmisi;
i = 1;
while (i <= so.data.jumlahmisi) {
isimissiontype[i] = so.data.isimissiontype[i];
isimissionlevel[i] = so.data.isimissionlevel[i];
isimissionjudul[i] = so.data.isimissionjudul[i];
isimissiondescription[i] = so.data.isimissiondescription[i];
isimissionreward[i] = so.data.isimissionreward[i];
i++;
};
tulispanel();
};
};
};
mcmission1.btnnext.addEventListener(MouseEvent.CLICK, nextmission);
mcmission1.btnpre.addEventListener(MouseEvent.CLICK, premission);
mcmission1.btnback.addEventListener(MouseEvent.CLICK, missionback);
mcmission1.btnequip.addEventListener(MouseEvent.CLICK, missionequip);
}
public function victory2(){
var ingameproceed:Function;
ingameproceed = function (_arg1:MouseEvent):void{
volume = 1;
buttonsound.play(0, 1, new SoundTransform(volume));
soundchannelmainmenuCG.stop();
soundchannelmainmenuCG = null;
lagumainmenubool = true;
stopgame2();
if (so.data.levele >= 5){
gotoAndStop("ending");
} else {
gotoAndStop("mainmenu2");
soundchannelmainmenuCG = soundmainmenu.play(0, 999, new SoundTransform(1));
};
};
freshmisi = true;
soundchannelmainmenuCG.stop();
soundchannelmainmenuCG = soundvictory.play(0, 1, new SoundTransform(volume));
aneh2();
stopgamebool = true;
stopgame();
mcvictory.gotoAndPlay(2);
mcvictory.visible = true;
mcvictory.mc1.txt1.text = ("Your Payment : $ " + hargamisi);
if ((((so.data.selectablenurse == 5)) || ((so.data.ambulanceupgrade[6] > 0)))){
mcvictory.mc1.txt2.text = ("Bonus Income : $ " + int(Number((Number(hargamisi) * Number(income)))));
} else {
mcvictory.mc1.txt2.visible = false;
};
mcvictory.mc1.btnproceed.addEventListener(MouseEvent.CLICK, ingameproceed);
}
public function missionback(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcmission1.gotoAndPlay("fadeout");
objfader = mcmission1;
stage.addEventListener(Event.ENTER_FRAME, fader);
objfadertujuan = "mainmenu2";
}
public function loadfinishbar(){
var _local1:*;
if (so.data.money != 0){
_local1 = ((so.data.money / 1000000) * 100);
if (_local1 >= 100){
_local1 = 100;
};
mcmission1.txtbarfinish.text = (("Percentage : " + _local1.toFixed(2)) + "%");
if (_local1 == 0){
_local1 = 1;
};
mcmission1.mcbarfinish.width = ((232 * _local1) / 100);
} else {
mcmission1.txtbarfinish.text = "Percentage : 0 %";
mcmission1.mcbarfinish.width = 1;
};
}
function frame13(){
gotoAndStop("ingame");
}
public function createpolicecar(){
var _local1:*;
var _local2:*;
trace("ya buwat POLISI 1");
dahpolisi = true;
misccar[misccarindex] = new (tipepolisi[0]);
misccar[misccarindex].cartipe = tipepolisi[0];
map[0].getChildByName(("mc" + citydipake)).addChildAt(misccar[misccarindex], map[0].getChildByName(("mc" + citydipake)).numChildren);
_local1 = randRange(1, spawnpointmax[citydipake]);
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local1));
misccar[misccarindex].x = _local2.x;
misccar[misccarindex].y = _local2.y;
misccar[misccarindex].speed = 5;
misccar[misccarindex].stop();
misccar[misccarindex].framey = misccar[misccarindex].currentFrame;
misccar[misccarindex].indexke = misccarindex;
misccar[misccarindex].addEventListener(Event.ENTER_FRAME, policemove);
misccarindex++;
}
public function loaddoctorsave(){
if (so.data.doctor[nurseindex] == 0){
mchire.btnhire1.visible = true;
mchire.txthirethis1.gotoAndStop(2);
mchire.mcdoctor1.gotoAndStop("question");
} else {
mchire.txthirethis1.gotoAndStop(1);
mchire.btnhire1.visible = false;
};
if (so.data.doctor[(nurseindex + 1)] == 0){
mchire.btnhire2.visible = true;
mchire.txthirethis2.gotoAndStop(2);
mchire.mcdoctor2.gotoAndStop("question");
} else {
mchire.txthirethis2.gotoAndStop(1);
mchire.btnhire2.visible = false;
};
}
public function buwatdoktor(){
trace(("buwat doctor : " + so.data.doctor[doktorindex]));
if (so.data.doctor[doktorindex] == 0){
mcequip.mcdoc.gotoAndStop(6);
mcequip.txt1.text = "hire the doctor to eqquiped her";
} else {
if (so.data.doctor[doktorindex] == 1){
mcequip.mcdoc.gotoAndStop(doktorindex);
mcequip.txt1.text = doctorexp[doktorindex];
};
};
}
public function buwatmapbaru(){
}
public function createcivilian(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 0;
while (_local1 <= civilianspawnpointmax[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local1)) != null){
_local2 = randRange(0, civiliancity[citydipake]);
civilian[civilianindex] = new (civiliantipe[_local2]);
map[0].getChildByName(("mc" + citydipake)).addChild(civilian[civilianindex]);
_local3 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local1));
civilian[civilianindex].x = _local3.x;
civilian[civilianindex].y = _local3.y;
civilian[civilianindex].gotoAndPlay(civilianspawnpointdirection[citydipake][_local1]);
civilian[civilianindex].speed = randRange((civilianspeed[citydipake] - 1), civilianspeed[citydipake]);
civilian[civilianindex].tempspeed = civilian[civilianindex].speed;
civilian[civilianindex].health = civilianhealth[citydipake];
civilian[civilianindex].waypoint = "false";
civilian[civilianindex].waypointke = _local1;
civilian[civilianindex].cekunder = "false";
civilian[civilianindex].dead = "false";
civilian[civilianindex].run = "false";
civilian[civilianindex].indexke = civilianindex;
civilian[civilianindex].civiliantype = civiliantipe[_local2];
civilian[civilianindex].civilianname = civilianname[_local2];
civilian[civilianindex].civiliansextipe = civiliansextipe[_local2];
civilian[civilianindex].addEventListener(Event.ENTER_FRAME, civilianmove);
civilianindex++;
};
_local1++;
};
}
public function loadingopening(_arg1:Event):void{
if (openingCG.currentFrame == openingCG.totalFrames){
soundchannelopeningCG.stop();
this.removeEventListener(Event.ENTER_FRAME, loadingopening);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, anykey);
gotoAndStop("mainmenu");
};
}
public function aneh2(){
mcisihealth.x = 700;
mcisipatient.x = 700;
mcisigas.x = 700;
}
public function cekmisi(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Point;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
createhospital();
createlaen2();
if (tipemisi == "Begginer Soul Saver [TUTORIAL]"){
stage.addEventListener(Event.ENTER_FRAME, heartbeat);
bolemati = false;
stage.addEventListener(Event.ENTER_FRAME, tutorialonline);
createcivilian();
createcar();
} else {
if ((((((((((((((((((((((((((tipemisi == "When pets gone wild eps.1")) || ((tipemisi == "When pets gone wild eps.2")))) || ((tipemisi == "When pets gone wild eps.3")))) || ((tipemisi == "Racer-wanna-be")))) || ((tipemisi == "Electrifried")))) || ((tipemisi == "Anchor's rain")))) || ((tipemisi == "Bear's trap")))) || ((tipemisi == "The hunt for golden hippo")))) || ((tipemisi == "Vampire's kiss")))) || ((tipemisi == "Chair struck")))) || ((tipemisi == "Grill gone wrong")))) || ((tipemisi == "Love Wheel")))) || ((tipemisi == "Hospital's concerto")))){
trace("Save the Soul / Love Wheel / Hospital's concerto");
createcivilian();
createcar();
_local1 = 1;
_local2 = 1;
_local3 = 0;
while (_local3 < Number(targetneeded)) {
if (tipemisi == "Grill gone wrong"){
_local9 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local3] = new (peopleburn);
civilianspecial[_local3].nama = "burn";
} else {
if (tipemisi == "Hospital's concerto"){
_local9 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local3] = new (peopleman3mc);
civilianspecial[_local3].nama = "rock";
} else {
if (tipemisi == "When pets gone wild eps.1"){
_local9 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local3] = new (peopledog);
civilianspecial[_local3].nama = "dog";
} else {
if (tipemisi == "When pets gone wild eps.2"){
_local9 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local3] = new (peopleunicorn);
civilianspecial[_local3].nama = "unicorn";
} else {
if (tipemisi == "When pets gone wild eps.3"){
_local9 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local3] = new (peoplehipo);
civilianspecial[_local3].nama = "hipo";
} else {
if (tipemisi == "Racer-wanna-be"){
civilianspecial[_local3] = new (peopleman1mc);
civilianspecial[_local3].nama = "bluedead";
civilianspecial[_local3].gotoAndStop("deadleft");
} else {
if (tipemisi == "Electrifried"){
civilianspecial[_local3] = new (peopleelec);
civilianspecial[_local3].nama = "elec";
} else {
if (tipemisi == "Anchor's rain"){
civilianspecial[_local3] = new (peopleanchor);
civilianspecial[_local3].nama = "anchor";
_local2 = 1;
} else {
if (tipemisi == "Bear's trap"){
civilianspecial[_local3] = new (peopleman1mc);
civilianspecial[_local3].nama = "bluedead";
civilianspecial[_local3].gotoAndStop("deadleft");
} else {
if (tipemisi == "The hunt for golden hippo"){
civilianspecial[_local3] = new (peoplegoldhipo);
civilianspecial[_local3].nama = "goldhipo";
} else {
if (tipemisi == "Vampire's kiss"){
civilianspecial[_local3] = new (peopleman1mc);
civilianspecial[_local3].nama = "bluedead";
civilianspecial[_local3].gotoAndStop("deadleft");
} else {
if (tipemisi == "Chair struck"){
civilianspecial[_local3] = new (peoplechair);
civilianspecial[_local3].nama = "chair";
} else {
if (tipemisi == "Love Wheel"){
if (_local1 == 1){
_local9 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local3] = new (peoplebride);
civilianspecial[_local3].nama = "bride";
_local1 = 0;
} else {
if (_local1 == 0){
_local9 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local3] = new (peoplegroom);
civilianspecial[_local3].nama = "groom";
_local1 = 0;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (level > 3){
_local4 = 3;
} else {
_local4 = level;
};
_local5 = randRange(1, _local4);
randcity2 = _local5;
trace(("DIBUWAT DI : " + _local5));
map[0].getChildByName(("mc" + _local5)).addChildAt(civilianspecial[_local3], map[0].getChildByName(("mc" + _local5)).numChildren);
civilianspecial[_local3].health = 30;
civilianspecial[_local3].milik = _local5;
trace(("dirandom sampe : " + civilianspawnpointmax[_local5]));
do {
_local10 = false;
_local11 = randRange(mulaispawn[_local5], civilianspawnpointmax[_local5]);
if (map[0].getChildByName(("mc" + _local5)).getChildByName(("civilianspawn" + _local11)) != null){
_local12 = 0;
while (_local12 < sudahdispawnindex) {
if (sudahdispawn[_local12] == _local11){
_local10 = true;
break;
};
_local12++;
};
};
} while (_local10 == true);
if (_local10 == false){
sudahdispawn[sudahdispawnindex] = _local11;
sudahdispawnindex++;
_local7 = map[0].getChildByName(("mc" + _local5)).getChildByName(("civilianspawn" + _local11));
};
map[0].getChildByName(("mc" + _local5)).getChildByName(("pickuppoint" + _local11)).visible = true;
civilianspecial[_local3].x = _local7.x;
civilianspecial[_local3].y = _local7.y;
civilianspecial[_local3].pickuper = _local11;
civilianspecialhelp[_local3] = new (mcingamehelp);
civilianspecialhelp[_local3].mc1.gotoAndStop(1);
map[0].getChildByName(("mc" + _local5)).addChildAt(civilianspecialhelp[_local3], map[0].getChildByName(("mc" + _local5)).numChildren);
civilianspecialhelp[_local3].x = civilianspecial[_local3].x;
civilianspecialhelp[_local3].y = civilianspecial[_local3].y;
civilianminimap[_local3] = new (ingameminimaptargetmc);
mcminimap.addChildAt(civilianminimap[_local3], mcminimap.numChildren);
_local8 = new Point(civilianspecial[_local3].x, civilianspecial[_local3].y);
_local8 = map[0].getChildByName(("mc" + _local5)).localToGlobal(_local8);
civilianminimap[_local3].x = (_local8.x * (320 / 1920));
civilianminimap[_local3].y = (_local8.y * (320 / 1920));
civilianspecialindex++;
waymatike = _local11;
randcity2 = _local5;
if ((((((tipemisi == "When pets gone wild eps.1")) || ((tipemisi == "When pets gone wild eps.2")))) || ((tipemisi == "When pets gone wild eps.3")))){
tipemati = "civ";
createcivilianmati();
} else {
if (tipemisi == "Racer-wanna-be"){
tipemati = "bike";
createcivilianmati();
} else {
if (tipemisi == "Electrifried"){
tipemati = "elec";
createcivilianmati();
} else {
if (tipemisi == "Bear's trap"){
tipemati = "bear";
createcivilianmati();
} else {
if (tipemisi == "Vampire's kiss"){
tipemati = "vampire";
createcivilianmati();
} else {
if (tipemisi == "Grill gone wrong"){
tipemati = "grill";
createcivilianmati();
};
};
};
};
};
};
_local3++;
};
stage.addEventListener(Event.ENTER_FRAME, heartbeat);
} else {
if (tipemisi == "Body Harvest"){
trace("Body Harvest");
createcivilian();
txttime.text = (1 + " : 59");
timertemp = 1;
detik = 59;
createtimer();
createcar();
} else {
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
trace("Theft Tlayer");
createcivilian();
txttime.text = (level + " : 0");
timertemp = level;
detik = 0;
createtimer();
createcar();
temptargetneeded = targetneeded;
_local13 = civilianindex;
_local3 = 1;
while (_local3 <= level) {
posisicitytheft[_local3] = 0;
_local3++;
};
_local3 = 0;
while (_local3 < Number(targetneeded)) {
if (level > 3){
_local4 = 3;
} else {
_local4 = level;
};
_local5 = randRange(1, _local4);
var _local14 = posisicitytheft;
var _local15 = _local5;
var _local16 = (_local14[_local15] + 1);
_local14[_local15] = _local16;
trace(("isi kota ke : " + _local5));
_local3++;
};
createtheft();
} else {
if (tipemisi == "Zombot Zlayer"){
createzombot();
} else {
if (tipemisi == "Zown Zombot Zlayer"){
createzombot();
} else {
if (tipemisi == "Zombot Zefender"){
targetneeded = 30;
createzombot();
targetneeded = 1;
txttime.text = (1 + " : 59");
timertemp = 1;
detik = 59;
createtimer();
stage.addEventListener(Event.ENTER_FRAME, generatezombotdefender);
} else {
if (inidia > 20){
stage.addEventListener(Event.ENTER_FRAME, heartbeat);
createcivilian();
_local11 = randRange(mulaispawn[citydipake], civilianspawnpointmax[citydipake]);
_local7 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local11));
lokasipoint = _local11;
createcar();
map[0].getChildByName(("mc" + citydipake)).getChildByName(("pickuppoint" + _local11)).visible = true;
if (tipemisi == "Chubbyman [SPECIAL MISSION]"){
civilianspecial[0] = new (specialchubbymc);
civilianspecial[0].nama = "chubby";
} else {
if (tipemisi == "Hard ride eps.1 [SPECIAL MISSION]"){
civilianspecial[0] = new (specialmaduramc);
civilianspecial[0].nama = "madura";
} else {
if (tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"){
civilianspecial[0] = new (specialindianmc);
civilianspecial[0].nama = "indian";
} else {
if (tipemisi == "Irreversible [SPECIAL MISSION]"){
civilianspecial[0] = new (specialbasketmc);
civilianspecial[0].nama = "basket";
} else {
if (tipemisi == "Die Easy [SPECIAL MISSION]"){
heartbeatmax = 5;
civilianspecial[0] = new (specialeskimomc);
civilianspecial[0].nama = "fragile";
} else {
if (tipemisi == "Shark Rider [SPECIAL MISSION]"){
civilianspecial[0] = new (specialarabianmc);
civilianspecial[0].nama = "gigithiu";
} else {
if (tipemisi == "Blood Rider [SPECIAL MISSION]"){
civilianspecial[0] = new (specialvampiremc);
civilianspecial[0].nama = "vampire";
};
};
};
};
};
};
};
trace(("tipemisi : " + tipemisi));
map[0].getChildByName(("mc" + citydipake)).addChild(civilianspecial[0]);
civilianspecial[0].x = _local7.x;
civilianspecial[0].y = _local7.y;
civilianspecial[0].milik = citydipake;
civilianspecial[0].pickuper = _local11;
civilianspecialhelp[0] = new (mcingamehelp);
civilianspecialhelp[0].mc1.gotoAndStop(1);
map[0].getChildByName(("mc" + citydipake)).addChildAt(civilianspecialhelp[0], map[0].getChildByName(("mc" + citydipake)).numChildren);
civilianspecialhelp[0].x = civilianspecial[0].x;
civilianspecialhelp[0].y = civilianspecial[0].y;
civilianminimap[0] = new (ingameminimaptargetmc);
mcminimap.addChildAt(civilianminimap[0], mcminimap.numChildren);
_local8 = new Point(civilianspecial[0].x, civilianspecial[0].y);
_local8 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local8);
civilianminimap[0].x = (_local8.x * (320 / map[0].getChildByName(("mc" + citydipake)).width));
civilianminimap[0].y = (_local8.y * (320 / map[0].getChildByName(("mc" + citydipake)).width));
civilianspecialindex++;
if (tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"){
createindianarcher();
};
};
};
};
};
};
};
};
};
if (((((!((tipemisi == "Zombot Zlayer"))) && (!((tipemisi == "Zown Zombot Zlayer"))))) && (!((tipemisi == "Zombot Zefender"))))){
cekblocking();
};
}
public function firehellblow(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pauseboolean == false){
if (_arg1.target.tipe == 1){
if (civilian[_arg1.target.targetzombot] != null){
if ((((civilian[_arg1.target.targetzombot].civilianname == "zombot")) && ((civilian[_arg1.target.targetzombot].dead == "false")))){
_local2 = (_arg1.target.x - civilian[_arg1.target.targetzombot].x);
_local3 = (_arg1.target.y - civilian[_arg1.target.targetzombot].y);
_local4 = Math.atan2(_local3, _local2);
_local5 = ((_local4 * 180) / Math.PI);
_arg1.target.rotation = _local5;
_arg1.target.posisiy = _arg1.target.y;
_arg1.target.targety = civilian[_arg1.target.targetzombot].y;
_arg1.target.posisix = _arg1.target.x;
_arg1.target.targetx = civilian[_arg1.target.targetzombot].x;
_arg1.target.x = (_arg1.target.x - ((_arg1.target.posisix - _arg1.target.targetx) / 10));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.posisiy - _arg1.target.targety) / 10));
if (_arg1.target.hitTestObject(civilian[_arg1.target.targetzombot]) == true){
_arg1.target.tipe = 2;
bombsound.play(0, 1, new SoundTransform(volume));
_arg1.target.gotoAndPlay("explode");
};
} else {
if (civilian[_arg1.target.targetzombot].dead != "false"){
fireimage[0].removeEventListener(Event.ENTER_FRAME, firehellblow);
map[0].getChildByName(("mc" + citydipake)).removeChild(fireimage[0]);
fireimage[0] = null;
};
};
};
} else {
if (_arg1.target.tipe == 2){
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
civilian[_arg1.target.targetzombot].dead = "true2";
civilian[_arg1.target.targetzombot].removeEventListener(Event.ENTER_FRAME, zombotmove);
if ((((carambulance[0].currentFrame >= 1)) && ((carambulance[0].currentFrame < 5)))){
civilian[_arg1.target.targetzombot].gotoAndStop("deadup");
} else {
if ((((carambulance[0].currentFrame >= 5)) && ((carambulance[0].currentFrame < 11)))){
civilian[_arg1.target.targetzombot].gotoAndStop("deadright");
} else {
if ((((carambulance[0].currentFrame >= 11)) && ((carambulance[0].currentFrame < 16)))){
civilian[_arg1.target.targetzombot].gotoAndStop("deaddown");
} else {
if (carambulance[0].currentFrame >= 16){
civilian[_arg1.target.targetzombot].gotoAndStop("deadleft");
};
};
};
};
civilianobject = civilian[_arg1.target.targetzombot];
civilianobject.xe = civilian[_arg1.target.targetzombot].x;
civilianobject.ye = civilian[_arg1.target.targetzombot].y;
civilianobject.framey = civilian[_arg1.target.targetzombot].currentFrame;
civiliandiatas = false;
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(civilian[_arg1.target.targetzombot]);
removeandaddcivilian();
fireimage[0].removeEventListener(Event.ENTER_FRAME, firehellblow);
map[0].getChildByName(("mc" + citydipake)).removeChild(fireimage[0]);
fireimage[0] = null;
targetneeded--;
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if ((((targetneeded <= 0)) && (!((tipemisi == "Zombot Zefender"))))){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
};
};
};
};
};
}
public function buwatwarp(){
if (civwarping[0] == null){
warpbool = true;
pressWbutton = false;
kecepatan = 0;
civwarping[0] = new (peoplenuninwork);
map[0].getChildByName(("mc" + citydipake)).addChildAt(civwarping[0], map[0].getChildByName(("mc" + citydipake)).getChildIndex(carambulance[0]));
civwarping[0].x = carambulance[0].x;
civwarping[0].y = carambulance[0].y;
civwarping[0].cek = 0;
civwarping[0].speed = 2;
civwarping[0].mc1.visible = false;
if ((((tipemisi == "Love Wheel")) && ((tamppasienindex == 1)))){
if (tamppasien[0] == "bride"){
civwarping[0].mc1.visible = true;
civwarping[0].mc1.gotoAndStop("bride");
} else {
if (tamppasien[0] == "groom"){
civwarping[0].mc1.visible = true;
civwarping[0].mc1.gotoAndStop("groom");
};
};
};
civwarping[0].addEventListener(Event.ENTER_FRAME, endcivwarp);
};
}
public function cekability(){
var docskill:Function;
var nunskill:Function;
if (so.data.selectabledoctor == 1){
survivalrate = (survivalrate + 0.2);
} else {
if (so.data.selectabledoctor == 2){
healthambulance = (healthambulance + 100);
} else {
if (so.data.selectabledoctor == 3){
docskill = function (_arg1:MouseEvent):void{
if (docskillbool == false){
docskillbool = true;
arrowdoc.visible = false;
arrowdoc.sec = 750;
arrowdoc.addEventListener(Event.ENTER_FRAME, countdown);
ambulanceinvisiblebool = true;
stage.addEventListener(Event.ENTER_FRAME, ambulanceinvisible);
};
};
arrowdoc.visible = true;
btndoc.visible = true;
btndoc.addEventListener(MouseEvent.MOUSE_UP, docskill);
} else {
if (so.data.selectabledoctor == 5){
survivalrate = (survivalrate + 0.4);
};
};
};
};
if (so.data.selectablenurse == 1){
survivalrate = (survivalrate + 1.5);
} else {
if (so.data.selectablenurse == 2){
nunskill = function (_arg1:MouseEvent):void{
if (nunskillbool == false){
maxkecepatan = (maxkecepatan + 3);
kecepatan = (kecepatan + 3);
nunskillbool = true;
arrownun.visible = false;
arrownun.sec = 500;
arrownun.addEventListener(Event.ENTER_FRAME, countdown);
ambulanceboostbool = true;
stage.addEventListener(Event.ENTER_FRAME, ambulanceboost);
};
};
arrownun.visible = true;
btnnun.visible = true;
btnnun.addEventListener(MouseEvent.MOUSE_UP, nunskill);
} else {
if (so.data.selectablenurse == 3){
stage.addEventListener(Event.ENTER_FRAME, firehelltimer);
} else {
if (so.data.selectablenurse == 4){
createslowgas();
} else {
if (so.data.selectablenurse == 5){
income = (income + 0.3);
};
};
};
};
};
}
public function heartbeat(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pauseboolean == false){
_local2 = 0;
while (_local2 <= heartbeatjumlah) {
if (heartbeatstat[_local2] == 1){
var _local4 = heartbeatnumber;
var _local5 = _local2;
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
if ((((heartbeatskipper[_local2] > 6)) && ((mcheartborder.currentFrame == 1)))){
mcheartborder.gotoAndPlay(2);
};
_local3 = mcheartbeat.getChildByName(("mc" + _local2));
_local3.visible = true;
_local3.gotoAndStop((_local3.currentFrame + int(heartbeatskipper[_local2])));
if (_local3.currentLabel == "beat"){
heartbeatsound.play(0, 1, new SoundTransform(volume));
};
if ((((((heartbeatnyala[_local2] == 0)) && ((_local3.currentFrame >= Number((56 + int(heartbeatskipper[_local2]))))))) && ((_local3.currentFrame <= Number((58 + int(heartbeatskipper[_local2]))))))){
heartbeatnyala[_local2] = 1;
heartbeatsound.play(0, 1, new SoundTransform(volume));
};
if (_local3.currentFrame == _local3.totalFrames){
heartbeatnyala[_local2] = 0;
_local3.gotoAndStop(1);
};
if (heartbeatnumber[_local2] >= tambahiskipper){
heartbeatskipper[_local2] = (heartbeatskipper[_local2] + 0.5);
heartbeatnumber[_local2] = 0;
if ((((heartbeatskipper[_local2] >= heartbeatmax)) && ((bolemati == true)))){
heartbeatstat[_local2] = 0;
defeattext = "You are supposed to saved all the patient!";
defeat();
stage.removeEventListener(Event.ENTER_FRAME, cekoutside);
};
};
};
_local2++;
};
};
}
public function upgradeback(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcupgrade.gotoAndPlay("fadeout");
objfader = mcupgrade;
objfadertujuan = "mainmenu2";
stage.addEventListener(Event.ENTER_FRAME, fader);
}
public function releaseW(_arg1:KeyboardEvent):void{
if ((((((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 83)))) || ((_arg1.keyCode == 38)))) || ((((_arg1.keyCode == 40)) && ((pressWbutton == true)))))){
trace("RELEASE");
pressWbutton = false;
cekcarmovesliding();
stage.addEventListener(Event.ENTER_FRAME, carmovesliding);
};
}
public function defeat(){
var ingameback:Function;
var ingamerestart:Function;
soundchannelmainmenuCG.stop();
soundchannelmainmenuCG = sounddefeat.play(0, 999, new SoundTransform(volume));
stopgamebool = true;
aneh2();
trace("STOP");
stopgame();
if ((((defeattext == "Engine overheat!!")) || ((defeattext == "your ambulance is Kaboomm")))){
carambulance[0].addEventListener(Event.ENTER_FRAME, endambulance);
carambulance[0].gotoAndPlay("explode");
bombsound.play(0, 1, new SoundTransform(volume));
} else {
ingameback = function (_arg1:MouseEvent):void{
volume = 1;
buttonsound.play(0, 1, new SoundTransform(volume));
soundchannelmainmenuCG.stop();
lagumainmenubool = false;
soundchannelmainmenuCG = soundmainmenu.play(0, 999, new SoundTransform(1));
stopgame2();
gotoAndStop("mainmenu2");
};
ingamerestart = function (_arg1:MouseEvent):void{
volume = 1;
buttonsound.play(0, 1, new SoundTransform(volume));
soundchannelmainmenuCG.stop();
lagumainmenubool = false;
stopgame2();
gotoAndStop("skipper");
};
mcdefeat.gotoAndPlay(2);
mcdefeat.mc1.txt1.text = defeattext;
mcdefeat.visible = true;
mcdefeat.mc1.btnback.addEventListener(MouseEvent.CLICK, ingameback);
mcdefeat.mc1.btnrestart.addEventListener(MouseEvent.CLICK, ingamerestart);
};
}
public function cekoutside(_arg1:Event):void{
var _local2:Point;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (pauseboolean == false){
i = 0;
while (i < civilianindex) {
if (civilian[i] != null){
if (civilian[i].dead == "true2"){
_local2 = new Point(civilian[i].x, civilian[i].y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
if ((((((((_local2.x < 0)) || ((_local2.x > 640)))) || ((_local2.y > 480)))) || ((_local2.y < 0)))){
if (civilian[i].civiliantype == linkageorangpolisi[0]){
trace("IYA REMOVE POLISI");
civilian[i].removeEventListener(Event.ENTER_FRAME, zombotmove);
map[0].getChildByName(("mc" + citydipake)).removeChild(civilian[i]);
civilian[i] = null;
};
};
} else {
if (civilian[i].dead == "true"){
_local2 = new Point(civilian[i].x, civilian[i].y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
if ((((((((_local2.x < 0)) || ((_local2.x > 640)))) || ((_local2.y > 480)))) || ((_local2.y < 0)))){
if (civilian[i] != null){
_local3 = civilian[i].waypointke;
civilian[i].removeEventListener(Event.ENTER_FRAME, civilianmove);
civilian[i].removeEventListener(Event.ENTER_FRAME, cektumpuk2);
map[0].getChildByName(("mc" + citydipake)).removeChild(civilian[i]);
civilian[i] = null;
_local4 = randRange(0, civiliancity[citydipake]);
civilian[i] = new (civiliantipe[_local4]);
map[0].getChildByName(("mc" + citydipake)).addChild(civilian[i]);
civilian[i].x = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local3)).x;
civilian[i].y = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local3)).y;
civilian[i].gotoAndPlay(civilianspawnpointdirection[citydipake][_local3]);
civilian[i].speed = randRange((civilianspeed[citydipake] - 1), civilianspeed[citydipake]);
civilian[i].tempspeed = civilian[i].speed;
civilian[i].health = civilianhealth[citydipake];
civilian[i].waypoint = "false";
civilian[i].waypointke = _local3;
civilian[i].cekunder = "false";
civilian[i].dead = "false";
civilian[i].run = "false";
civilian[i].indexke = i;
civilian[i].civiliantype = civiliantipe[_local4];
civilian[i].civilianname = civilianname[_local4];
civilian[i].civiliansextipe = civiliansextipe[_local4];
civilian[i].visible = false;
civilian[i].addEventListener(Event.ENTER_FRAME, cektumpuk2);
};
};
};
};
};
i++;
};
i = 0;
while (i < misccarindex) {
if (misccar[i] != null){
if (misccar[i].issliding == "true"){
_local2 = new Point(misccar[i].x, misccar[i].y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
if (misccar[i].body != null){
if (((((((((_local2.x + (misccar[i].body.width / 2)) < 0)) || (((_local2.x - (misccar[i].body.width / 2)) > 640)))) || (((_local2.y - (misccar[i].body.height / 2)) > 480)))) || (((_local2.y + (misccar[i].body.height / 2)) < 0)))){
if (misccar[i] != null){
misccar[i].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[i].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[i].removeEventListener(Event.ENTER_FRAME, carmiscmove2);
misccar[i].removeEventListener(Event.ENTER_FRAME, carmiscmove3);
misccar[i].removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
_local5 = misccar[i].waypoint;
map[0].getChildByName(("mc" + citydipake)).removeChild(misccar[i]);
misccar[i] = null;
_local6 = randRange(0, (carforcity[citydipake].length - 1));
misccar[i] = new (carforcity[citydipake][_local6]);
misccar[i].cartipe = carforcity[citydipake][_local6];
map[0].getChildByName(("mc" + citydipake)).addChild(misccar[i]);
misccar[i].x = map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local5)).x;
misccar[i].y = randRange((map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local5)).y + (map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local5)).height / 2)), (map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local5)).y - (map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local5)).height / 2)));
misccar[i].nabrak = "false";
misccar[i].stats = spawnpointposition[citydipake][_local5];
misccar[i].issliding = "false";
misccar[i].waypoint = _local5;
misccar[i].movespeed = misccarspeed[speedforcity[citydipake]];
misccar[i].framespeed = misccarframe[speedforcity[citydipake]];
misccar[i].tempframespeed = misccarframe[speedforcity[citydipake]];
misccar[i].stop();
misccar[i].indexke = i;
misccar[i].gotoAndStop(spawnpointposition[citydipake][_local5]);
misccar[i].visible = false;
misccar[i].addEventListener(Event.ENTER_FRAME, cektumpuk);
};
};
};
};
};
i++;
};
};
}
public function switchdoctor(_arg1:MouseEvent):void{
mchire.mcarrowpointer.x = mchire.btndoctor.x;
mchire.mcarrowpointer.y = mchire.btndoctor.y;
buttonsound.play(0, 1, new SoundTransform(volume));
hirestat = "doctor";
mchire.mcdoctor1.visible = true;
mchire.mcdoctor2.visible = true;
mchire.mcnurse1.visible = false;
mchire.mcnurse2.visible = false;
nurseindex = 1;
loadhiredoctor();
}
public function mcpanel1highlightnull(_arg1:MouseEvent):void{
mcmission1.mcpanel1.filters = null;
}
public function loadingending(_arg1:Event):void{
if (endingCG.currentFrame == endingCG.totalFrames){
lagumainmenubool = false;
soundchannelopeningCG.stop();
this.removeEventListener(Event.ENTER_FRAME, loadingending);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, anykey2);
gotoAndStop("mainmenu");
};
}
public function cekcarmovesliding(){
if (kecepatan > 0){
carambulance[0].kurangikecepatan = 0.1;
} else {
if (kecepatan < 0){
carambulance[0].kurangikecepatan = -0.1;
};
};
if (carambulance[0].speedx > 0){
carambulance[0].kurangix = 0.05;
} else {
if (carambulance[0].speedx < 0){
carambulance[0].kurangix = -0.05;
} else {
if (carambulance[0].speedx == 0){
carambulance[0].kurangix = 0;
};
};
};
if (carambulance[0].speedy > 0){
carambulance[0].kurangiy = 0.05;
} else {
if (carambulance[0].speedy < 0){
carambulance[0].kurangiy = -0.05;
} else {
if (carambulance[0].speedy == 0){
carambulance[0].kurangiy = 0;
};
};
};
}
public function fader(_arg1:Event):void{
if (objfader.currentFrame == objfader.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, fader);
gotoAndStop(objfadertujuan);
};
}
public function equipnextnun(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
nunindex++;
if (nunindex > 5){
nunindex = 5;
};
buwatnun();
}
public function premission(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (so.data.tutorial == 1){
if (indexpanel > 3){
indexpanel--;
tulispanel();
};
};
}
public function mission(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
gotoAndStop("mission");
}
public function createtheft(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = 0;
while (_local1 < posisicitytheft[citydipake]) {
trace(("ok buwat d kota : " + citydipake));
_local2 = randRange(0, civiliancity[citydipake]);
civilian[civilianindex] = new (civiliantipe[_local2]);
map[0].getChildByName(("mc" + citydipake)).addChild(civilian[civilianindex]);
_local3 = randRange(1, civilianspawnpointmax[citydipake]);
_local4 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local3));
civilian[civilianindex].x = _local4.x;
civilian[civilianindex].y = _local4.y;
civilian[civilianindex].gotoAndPlay(civilianspawnpointdirection[citydipake][_local3]);
civilian[civilianindex].speed = randRange((civilianspeed[citydipake] - 1), civilianspeed[citydipake]);
civilian[civilianindex].tempspeed = civilian[civilianindex].speed;
civilian[civilianindex].health = civilianhealth[citydipake];
civilian[civilianindex].waypoint = "false";
civilian[civilianindex].waypointke = _local3;
civilian[civilianindex].cekunder = "false";
civilian[civilianindex].dead = "false";
civilian[civilianindex].run = "false";
civilian[civilianindex].indexke = civilianindex;
civilian[civilianindex].milik = citydipake;
civilian[civilianindex].civiliantype = civiliantipe[_local2];
civilian[civilianindex].civilianname = civilianname[_local2];
civilian[civilianindex].civiliansextipe = civiliansextipe[_local2];
civilian[civilianindex].addEventListener(Event.ENTER_FRAME, civilianmove);
civilianspecialhelp[civilianindex] = new (mcingamehelp);
civilianspecialhelp[civilianindex].mc1.gotoAndStop(2);
civilianspecialhelp[civilianindex].x = -3;
civilianspecialhelp[civilianindex].y = -1;
civilian[civilianindex].addChildAt(civilianspecialhelp[civilianindex], civilian[civilianindex].numChildren);
civilianindex++;
_local1++;
};
}
public function posisiminimap(){
var _local1:Point;
var _local2:*;
trace(("1 " + map[0]));
_local1 = new Point(map[0].x, map[0].y);
trace(("1.1 " + mcminimap.mc1));
trace(("1.2 " + map[0].getChildByName(("mc" + citydipake))));
mcminimap.mc1.x = (_local1.x * (320 / 1920));
mcminimap.mc1.y = (_local1.y * (320 / 1920));
trace("1.5");
_local2 = 0;
while (_local2 < civilianspecialindex) {
if (civilianminimap[_local2] != null){
if (citydipake == civilianspecial[_local2].milik){
_local1 = new Point(civilianspecial[_local2].x, civilianspecial[_local2].y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
civilianminimap[_local2].x = (_local1.x * (320 / 1920));
civilianminimap[_local2].y = (_local1.y * (320 / 1920));
};
};
_local2++;
};
trace("2");
if (hospitalbool == true){
_local1 = new Point(map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + 1)).x, map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + 1)).y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
imageminimap[0].x = (_local1.x * (320 / 1920));
imageminimap[0].y = (_local1.y * (320 / 1920));
};
trace("3");
if (gasstationbool == true){
_local1 = new Point(map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + 1)).x, map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + 1)).y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
trace(("X nya di : " + _local1));
imageminimap[1].x = (_local1.x * (320 / 1920));
imageminimap[1].y = (_local1.y * (320 / 1920));
};
trace("4");
if (servicebool == true){
_local1 = new Point(map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + 1)).x, map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + 1)).y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
imageminimap[2].x = (_local1.x * (320 / 1920));
imageminimap[2].y = (_local1.y * (320 / 1920));
};
}
public function lampniuniu(_arg1:Event):void{
var _local2:Point;
if (knalpotimage[0] != null){
if (knalpotimage[0].currentFrame == 1){
_local2 = new Point(carambulance[0].x, carambulance[0].y);
knalpotimage[0].x = _local2.x;
knalpotimage[0].y = _local2.y;
};
};
timerlamp--;
gantilampu();
if (timerlamp <= 0){
timerlamp = 12;
if (boollamp == true){
boollamp = false;
} else {
if (boollamp == false){
boollamp = true;
};
};
};
}
public function naeklevel(){
var xannounce:Function;
xannounce = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcannouncelevelup.gotoAndPlay("ok");
victory2();
};
stopgame();
mcannouncelevelup.gotoAndPlay(2);
mcannouncelevelup.mc1.gotoAndStop(so.data.levele);
mcannouncelevelup.btnx.addEventListener(MouseEvent.CLICK, xannounce);
}
public function anykey2(_arg1:KeyboardEvent):void{
lagumainmenubool = false;
soundchannelopeningCG.stop();
this.removeEventListener(Event.ENTER_FRAME, loadingending);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, anykey2);
gotoAndStop("mainmenu");
}
public function switchmap(){
var _local1:Point;
var _local2:*;
if (mccareful.currentFrame == 1){
mccareful.mc1.gotoAndStop(("city" + switcherindex));
mccareful.gotoAndPlay(2);
};
bersiinmap();
posisiambulance = carambulance[0];
posisiambulance.framey = carambulance[0].currentFrame;
posisiambulance.xe = carambulance[0].x;
posisiambulance.ye = carambulance[0].y;
_local1 = new Point(posisiambulance.xe, posisiambulance.ye);
if ((((switcherindex == 1)) && ((citydipake == 2)))){
_local2 = 1;
} else {
if ((((switcherindex == 1)) && ((citydipake == 3)))){
_local2 = 11;
} else {
_local2 = switcherindex;
};
};
posisiambulance.xe = (map[0].getChildByName(("mc" + switcherindex)).getChildByName(("start" + _local2)).x - (carambulance[0].head.width / 2));
posisiambulance.ye = _local1.y;
trace(("DIBUWAT ULANG DI : " + _local1));
if (carambulance[0] != null){
map[0].getChildByName(("mc" + citydipake)).removeChild(carambulance[0]);
carambulance[0] = null;
};
citysebelum = citydipake;
citydipake = switcherindex;
trace(("UBAH CITY JADI : " + citydipake));
carambulanceindex = -1;
createambulance();
createknalpot();
civilianindex = 0;
createcivilian();
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
createtheft();
};
if (tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"){
createindianarcher();
};
misccarindex = 0;
createcar();
createhospital();
createlaen2();
swapchildrenmap();
}
public function cekhead(){
var mcbooblenurseover:Function;
var mcbooblenurseout:Function;
var mcboobledoctorover:Function;
var mcboobledoctorout:Function;
mcbooble.mcexp.visible = false;
mcbooble.mcexp2.visible = false;
trace("BOOBLE");
if (((!((so.data.selectablenurse == 6))) || (!((so.data.selectabledoctor == 6))))){
trace("yap go");
mcbooble.gotoAndPlay(2);
};
if (so.data.selectablenurse != 6){
mcbooblenurseover = function (_arg1:MouseEvent):void{
headpopsound.play(0, 1, new SoundTransform(volume));
mcbooble.mcexp.visible = true;
mcbooble.mcexp.txt1.text = so.data.selectablenursetext;
};
mcbooblenurseout = function (_arg1:MouseEvent):void{
mcbooble.mcexp.visible = false;
};
mcbooble.mcheadnurse.gotoAndStop(so.data.selectablenurse);
mcbooble.mcheadnurse.visible = true;
mcbooble.mcheadnurse.addEventListener(MouseEvent.MOUSE_OVER, mcbooblenurseover);
mcbooble.mcheadnurse.addEventListener(MouseEvent.MOUSE_OUT, mcbooblenurseout);
} else {
mcbooble.mcheadnurse.visible = false;
};
if (so.data.selectabledoctor != 6){
mcboobledoctorover = function (_arg1:MouseEvent):void{
headpopsound.play(0, 1, new SoundTransform(volume));
mcbooble.mcexp2.visible = true;
mcbooble.mcexp2.txt1.text = so.data.selectabledoctortext;
};
mcboobledoctorout = function (_arg1:MouseEvent):void{
mcbooble.mcexp2.visible = false;
};
mcbooble.mcheaddoctor.gotoAndStop(so.data.selectabledoctor);
mcbooble.mcheaddoctor.visible = true;
mcbooble.mcheaddoctor.addEventListener(MouseEvent.MOUSE_OVER, mcboobledoctorover);
mcbooble.mcheaddoctor.addEventListener(MouseEvent.MOUSE_OUT, mcboobledoctorout);
} else {
mcbooble.mcheaddoctor.visible = false;
};
cekability();
}
public function ambulanceinvisible(_arg1:Event):void{
if (pauseboolean == false){
timerambulanceinvisible--;
carambulance[0].alpha = 0.5;
if (timerambulanceinvisible <= 0){
timerambulanceinvisible = 250;
ambulanceinvisiblebool = false;
stage.removeEventListener(Event.ENTER_FRAME, ambulanceinvisible);
carambulance[0].alpha = 1;
};
};
}
public function carmove(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (tipemisi == "Begginer Soul Saver [TUTORIAL]"){
if (mctutorial.currentLabel == "mission1"){
i = 0;
while (i < civilianspecialindex) {
if (((!((civilianspecial[i] == null))) && ((civilianspecial[i].milik == citydipake)))){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("pickuppoint" + civilianspecial[i].pickuper));
_local3 = carambulance[0];
trace(((((((("CEK REGION TUTORIAL : " + _local3.x) + ",") + _local3.y) + " mbe : ") + _local2.x) + ",") + _local2.y));
if ((((((((_local3.x > (_local2.x - 200))) && ((_local3.x < (_local2.x + 200))))) && ((_local3.y < (_local2.y + 200))))) && ((_local3.y > (_local2.y - 200))))){
trace("wokre");
mctutorial.nextFrame();
break;
};
};
i++;
};
};
};
if ((((kecepatan > 1)) && ((nyala == false)))){
trace(("di sini juga ada sound 1 " + soundchannelsiren));
nyala = true;
soundchannelsiren = soundsiren.play(0, 999, new SoundTransform(volume));
} else {
if ((((kecepatan < 1)) && ((nyala == true)))){
trace(("di sini juga ada sound 2 " + soundchannelsiren));
nyala = false;
if (soundchannelsiren != null){
soundchannelsiren.stop();
soundchannelsiren = null;
};
};
};
if (pauseboolean == false){
if (stopgamebool == true){
stage.removeEventListener(Event.ENTER_FRAME, carmove);
trace("YA STOP!!!!");
} else {
if (stopgamebool == false){
if (cicilimage[0] != null){
cicilimage[0].x = carambulance[0].x;
cicilimage[0].y = carambulance[0].y;
};
if (poscar == "maju"){
if ((((kecepatan < maxkecepatan)) && ((pressWbutton == true)))){
kecepatan = (kecepatan + 0.1);
};
gerakinmap();
carambulance[0].x = (carambulance[0].x - (carambulance[0].speedx * kecepatan));
carambulance[0].y = (carambulance[0].y - (carambulance[0].speedy * kecepatan));
} else {
if (poscar == "mundur"){
if ((((kecepatan > ((maxkecepatan * -1) / 2))) && ((pressWbutton == true)))){
kecepatan = (kecepatan - 0.2);
};
gerakinmap();
carambulance[0].x = (carambulance[0].x - (carambulance[0].speedx * kecepatan));
carambulance[0].y = (carambulance[0].y - (carambulance[0].speedy * kecepatan));
};
};
posisiminimap();
ceknabrak();
cekpassmap();
if (switcherbool == true){
switchmap();
switcherbool = false;
};
};
};
};
if (((!((slowgas[0] == null))) && ((slowgas[0].currentFrame == slowgas[0].totalFrames)))){
createslowgas();
};
}
public function hireback(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mchire.gotoAndPlay("fadeout");
objfader = mchire;
objfadertujuan = "mainmenu2";
stage.addEventListener(Event.ENTER_FRAME, fader);
}
public function conGF(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
}
public function skiptutorial(_arg1:KeyboardEvent):void{
if (pauseboolean == false){
if ((((((((_arg1.keyCode == 32)) && (!((mctutorial.currentLabel == "mission1"))))) && (!((mctutorial.currentLabel == "mission1wait"))))) && (!((mctutorial.currentLabel == "mission1wait2"))))){
if (mctutorial.currentLabel == "mission1wait"){
removesatu();
mctutorial.gotoAndStop("mission1done");
if (civwarping[0] != null){
trace("DONE");
warpbool = false;
issliding = false;
kecepatan = 0;
pressWbutton = false;
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
civwarping[0].removeEventListener(Event.ENTER_FRAME, endcivwarp);
trace("DONE2");
map[0].getChildByName(("mc" + citydipake)).removeChild(civwarping[0]);
civwarping[0] = null;
if (tipemisi == "Begginer Soul Saver [TUTORIAL]"){
mctutorial.nextFrame();
};
if (civilianspecial[warpindex] != null){
map[0].getChildByName(("mc" + citydipake)).getChildByName(("pickuppoint" + civilianspecial[warpindex].pickuper)).visible = false;
map[0].getChildByName(("mc" + citydipake)).removeChild(civilianspecial[warpindex]);
civilianspecial[warpindex] = null;
map[0].getChildByName(("mc" + citydipake)).removeChild(civilianspecialhelp[warpindex]);
civilianspecialhelp[warpindex] = null;
trace("DONE4");
};
pickupsound.play(0, 1, new SoundTransform(volume));
mcminimap.removeChild(civilianminimap[warpindex]);
civilianminimap[warpindex] = null;
trace("DONE3");
};
} else {
if (mctutorial.currentLabel == "mission1wait2"){
mctutorial.gotoAndStop("mission1done");
stage.removeEventListener(Event.ENTER_FRAME, heartbeat);
heartbeatjumlah--;
heartbeatstat[heartbeatjumlah] = 0;
mcheartbeat.mc2.visible = false;
mcheartbeat.mc1.visible = false;
mcheartbeat.mc0.visible = false;
} else {
mctutorial.nextFrame();
};
};
if (mctutorial.currentLabel == "press"){
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressW);
};
if (mctutorial.currentLabel == "gas"){
mcgas.blinker.visible = true;
mcgas.blinker.gotoAndPlay(2);
} else {
if (mctutorial.currentLabel == "heat"){
mcgas.blinker.visible = false;
};
};
if (mctutorial.currentLabel == "heat"){
mcheat.blinker.gotoAndPlay(2);
} else {
if (mctutorial.currentLabel == "health"){
mcheat.blinker.visible = false;
};
};
if (mctutorial.currentLabel == "health"){
mchealth.blinker.gotoAndPlay(2);
} else {
if (mctutorial.currentLabel == "booble"){
mchealth.blinker.visible = false;
};
};
if (mctutorial.currentLabel == "booble"){
mcbooble.gotoAndPlay(2);
mcbooble.mcheadnurse.visible = true;
mcbooble.mcheadnurse.gotoAndStop(2);
mcbooble.mcheaddoctor.visible = true;
mcbooble.mcheaddoctor.gotoAndStop(2);
};
if (mctutorial.currentLabel == "ability"){
arrownun.visible = true;
arrowdoc.visible = true;
btnnun.visible = true;
btndoc.visible = true;
};
if (mctutorial.currentLabel == "heart"){
trace("HEART");
mcbooble.mcheadnurse.visible = false;
mcbooble.mcheaddoctor.visible = false;
arrownun.visible = false;
arrowdoc.visible = false;
btnnun.visible = false;
btndoc.visible = false;
heartbeatjumlah++;
heartbeatstat[heartbeatjumlah] = 1;
};
if (mctutorial.currentLabel == "fast"){
heartbeatskipper[heartbeatjumlah] = 4;
} else {
if (mctutorial.currentFrame == 9){
stage.removeEventListener(Event.ENTER_FRAME, heartbeat);
heartbeatjumlah--;
heartbeatstat[heartbeatjumlah] = 0;
mcheartbeat.mc2.visible = false;
mcheartbeat.mc1.visible = false;
mcheartbeat.mc0.visible = false;
};
};
if (mctutorial.currentLabel == "time"){
txttime.text = (0 + " : 59");
timertemp = 0;
detik = 59;
createtimer();
} else {
if (mctutorial.currentLabel == "mission1"){
txttime.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, timer);
};
};
if (mctutorial.currentLabel == "mission1"){
stage.removeEventListener(Event.ENTER_FRAME, tutorialonline);
createsatu();
};
if (mctutorial.currentLabel == "done"){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
so.data.tutorial = 1;
};
};
};
}
public function policemove(_arg1:Event):void{
var _local2:Point;
var _local3:Point;
var _local4:*;
var _local5:*;
if (slowgas[0] != null){
if (_arg1.target.hitTestObject(slowgas[0]) == true){
if (sloweffect[_arg1.target.indexke] == null){
sloweffect[_arg1.target.indexke] = new (mcingamesloweffect);
misccar[_arg1.target.indexke].addChildAt(sloweffect[_arg1.target.indexke], _arg1.target.numChildren);
sloweffect[_arg1.target.indexke].x = 2;
sloweffect[_arg1.target.indexke].y = -34;
if (_arg1.target.isslow == "false"){
_arg1.target.speed = (_arg1.target.speed / 2);
_arg1.target.attackspeedcountdown = (_arg1.target.attackspeedcountdown / 2);
_arg1.target.isslow = "true";
};
};
};
};
if ((((((pauseboolean == false)) && ((stopgamebool == false)))) && ((ambulanceinvisiblebool == false)))){
_local2 = new Point(_arg1.target.x, _arg1.target.y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
_local3 = new Point(carambulance[0].x, carambulance[0].y);
_local3 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local3);
if (_local2.x > _local3.x){
_arg1.target.x = (_arg1.target.x - (ambulancespeedx[_arg1.target.currentFrame] * 4));
_local4 = (_local2.x - _local3.x);
} else {
if (_local2.x < _local3.x){
_arg1.target.x = (_arg1.target.x + (ambulancespeedx[_arg1.target.currentFrame] * 4));
_local4 = (_local3.x - _local2.x);
};
};
if (_local2.y > _local3.y){
_arg1.target.y = (_arg1.target.y - (ambulancespeedy[_arg1.target.currentFrame] * 4));
_local5 = (_local2.y - _local3.y);
} else {
if (_local2.y < _local3.y){
_arg1.target.y = (_arg1.target.y + (ambulancespeedy[_arg1.target.currentFrame] * 4));
_local5 = (_local3.y - _local2.y);
};
};
if (_local4 > _local5){
if (_local2.x > _local3.x){
if (_arg1.target.currentLabel != "left"){
if ((((_arg1.target.currentFrame > 6)) && ((_arg1.target.currentFrame < 16)))){
_arg1.target.nextFrame();
} else {
if ((((_arg1.target.currentFrame <= 6)) || ((_arg1.target.currentFrame > 16)))){
_arg1.target.prevFrame();
if (_arg1.target.currentFrame == 1){
_arg1.target.gotoAndStop(_arg1.target.totalFrames);
};
};
};
};
} else {
if (_local2.x < _local3.x){
if (_arg1.target.currentLabel != "right"){
if (_arg1.target.currentFrame > 6){
_arg1.target.prevFrame();
} else {
if (_arg1.target.currentFrame < 6){
_arg1.target.nextFrame();
};
};
};
};
};
} else {
if (_local5 > _local4){
if (_local2.y > _local3.y){
if (_arg1.target.currentLabel != "up"){
if (_arg1.target.currentFrame > 11){
_arg1.target.nextFrame();
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
_arg1.target.gotoAndStop(1);
};
} else {
if (_arg1.target.currentFrame <= 11){
_arg1.target.prevFrame();
};
};
};
} else {
if (_local2.y < _local3.y){
if (_arg1.target.currentLabel != "down"){
if (_arg1.target.currentFrame > 11){
_arg1.target.prevFrame();
} else {
if (_arg1.target.currentFrame < 11){
_arg1.target.nextFrame();
};
};
};
};
};
};
};
objectnabrakbuildingmisc = _arg1.target;
objectnabrakbuildingmisc.framey = _arg1.target.currentFrame;
objectnabrakbuildingmisc.childindex = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_arg1.target);
ceknabrakbuildingmisc();
};
}
public function isigas(_arg1:Event):void{
var _local2:*;
var _local3:*;
pressWbutton = false;
if (objectisi == "gas"){
mcisigas.visible = true;
if (mcisigas.currentFrame == 1){
mcisigas.gotoAndPlay(2);
};
kecepatan = 0;
stage.removeEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.removeEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
if (mcgas.width <= 110){
gasambulance = (gasambulance + speedisi);
mcgas.width = (mcgas.width + speedisi);
} else {
if (mcgas.width > 110){
trace("stop isi");
pressWbutton = false;
issliding = false;
stattofill = "gas";
mccareful.visible = false;
mcisigas.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, isigas);
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
stage.removeEventListener(KeyboardEvent.KEY_UP, pressspace);
objectisi = "";
};
};
} else {
if (objectisi == "health"){
kecepatan = 0;
_local2 = false;
_local3 = false;
mcisihealth.visible = true;
if (mcisihealth.currentFrame == 1){
mcisihealth.gotoAndPlay(2);
};
if (mchealth.width <= 110){
healthambulance = (healthambulance + speedisi);
mchealth.width = (mchealth.width + speedisi);
} else {
if (mchealth.width > 110){
_local2 = true;
};
};
stage.removeEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.removeEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
if (mcheat.width <= 110){
heatambulance = (heatambulance + speedisi);
mcheat.width = (mcheat.width + speedisi);
kecepatan = 0;
} else {
if (mcheat.width > 110){
_local3 = true;
mcheat.width = 111;
heatambulance = 111;
};
};
stage.removeEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.removeEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
if ((((_local2 == true)) && ((_local3 == true)))){
trace("stop isi");
pressWbutton = false;
issliding = false;
stattofill = "health";
mccareful.visible = false;
mcisihealth.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, isigas);
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
stage.removeEventListener(KeyboardEvent.KEY_UP, pressspace);
objectisi = "";
};
};
};
}
public function reducegasincreaseheatmovespeedometer(_arg1:Event):void{
var _local2:*;
_local2 = (kecepatan / 12);
_local2 = int((150 * _local2));
if (_local2 < 0){
_local2 = 0;
};
txtspeednumber.text = String(int(_local2));
if ((((mchealth.width > 30)) && (!((tipemisi == "Begginer Soul Saver [TUTORIAL]"))))){
mchealth.blinker.gotoAndStop(1);
};
if ((((mcgas.width > 30)) && (!((tipemisi == "Begginer Soul Saver [TUTORIAL]"))))){
mcgas.blinker.gotoAndStop(1);
};
if ((((mcheat.width > 30)) && (!((tipemisi == "Begginer Soul Saver [TUTORIAL]"))))){
mcheat.blinker.gotoAndStop(1);
};
if (pauseboolean == false){
if ((((mchealth.width < 30)) && ((mchealth.blinker.currentFrame == 1)))){
mchealth.blinker.gotoAndPlay(2);
warningsound.play(0, 1, new SoundTransform(volume));
};
if (pressWbutton == true){
gasambulance = (gasambulance - kurangigas);
mcgas.width = gasambulance;
if ((((gasambulance < 30)) && ((mcgas.blinker.currentFrame == 1)))){
if ((((mccareful.currentFrame == 1)) && ((bolemati == true)))){
mccareful.mc1.gotoAndStop(2);
mccareful.gotoAndPlay(2);
};
mcgas.blinker.gotoAndPlay(2);
warningsound.play(0, 1, new SoundTransform(volume));
};
if (gasambulance <= 0){
if (bolemati == true){
defeattext = "Uh no! we ran out of gas";
defeat();
} else {
if (bolemati == false){
gasambulance = Number(110);
mcgas.width = gasambulance;
};
};
};
heatambulance = (heatambulance - kurangiheat);
mcheat.width = heatambulance;
if ((((heatambulance < 30)) && ((mcheat.blinker.currentFrame == 1)))){
if ((((mccareful.currentFrame == 1)) && ((bolemati == true)))){
mccareful.mc1.gotoAndStop(3);
mccareful.gotoAndPlay(2);
};
mcheat.blinker.gotoAndPlay(2);
warningsound.play(0, 1, new SoundTransform(volume));
};
if ((((heatambulance <= 0)) && ((bolemati == true)))){
defeattext = "Engine overheat!!";
defeat();
};
if (kecepatan < 0){
_local2 = (kecepatan * -1);
} else {
_local2 = kecepatan;
};
mcspeedo.rotation = (_local2 * maxrotation);
if (mcspeedo.rotation < 0){
if (mcspeedo.rotation > -100){
mcspeedo.rotation = -100;
};
};
} else {
if (heatambulance < 110){
heatambulance = (heatambulance + (kurangiheat * 4));
mcheat.width = heatambulance;
};
if (kecepatan < 0){
_local2 = (kecepatan * -1);
} else {
_local2 = kecepatan;
};
if (_local2 > 9){
_local2 = 9;
};
mcspeedo.rotation = (_local2 * maxrotation);
};
};
}
public function victory(){
var _local1:*;
successsound.play(0, 1, new SoundTransform(volume));
ending = true;
notallow = true;
stopgamebool = true;
stopgame();
_local1 = (Number(hargamisi) + Number((Number(hargamisi) * Number(income))));
so.data.money = Number((so.data.money + Number(_local1)));
so.data.moneyvirtual = Number((so.data.moneyvirtual + Number(_local1)));
ceklevelup();
}
public function upgrade(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
gotoAndStop("upgrade");
}
public function deadwomansound(){
var _local1:*;
trace("YA PEREMPUAN MATI");
smashsound.play(0, 1, new SoundTransform(volume));
_local1 = randRange(1, 2);
if (_local1 == 1){
deadwoman1sound.play(0, 1, new SoundTransform(volume));
} else {
if (_local1 == 2){
deadwoman2sound.play(0, 1, new SoundTransform(volume));
};
};
}
public function mcquestionno(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcquestion.visible = false;
}
public function buwatSO(){
var _local1:*;
freshmisi = true;
so.data.badmission = 0;
so.data.tutorial = 0;
so.data.levele = 1;
so.data.speedupgrade = 1;
so.data.money = 0;
so.data.moneyvirtual = so.data.money;
so.data.selectablenurse = 6;
so.data.selectablenursetext = "";
so.data.nurse = new Array();
_local1 = 1;
while (_local1 <= 5) {
so.data.nurse[_local1] = 0;
_local1++;
};
so.data.doctor = new Array();
so.data.selectabledoctor = 6;
so.data.selectabledoctortext = "";
_local1 = 1;
while (_local1 <= 5) {
so.data.doctor[_local1] = 0;
_local1++;
};
so.data.ambulanceupgrade = new Array();
_local1 = 1;
while (_local1 <= 6) {
so.data.ambulanceupgrade[_local1] = 0;
_local1++;
};
so.data.jumlahmisi = 0;
so.data.isimissiontype = new Array();
so.data.isimissionjudul = new Array();
so.data.isimissiondescription = new Array();
so.data.isimissionlevel = new Array();
so.data.isimissionreward = new Array();
}
public function cekcivilianremove(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local1 = false;
_local3 = 1;
while (_local3 <= cityhouse[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("house" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("house" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if (civilianobject.hitTestObject(_local2) == true){
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityhospital[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityservice[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if (civilianobject.hitTestObject(_local2) == true){
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citygasstation[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citytree[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("tree" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("tree" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citychair[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("chair" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("chair" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citytelephonebox[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("telephonebox" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("telephonebox" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityicecream[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("icecream" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("icecream" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citybarn[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("barn" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("barn" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citytrafficlamp[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("trafficlamp" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("trafficlamp" + _local3));
if (civilianobject.hitTestObject(_local2.regionhit) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
buildingobject = _local2;
ceknabrakgeserzombotorcar();
_local1 = true;
break;
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= misccarindex) {
if (misccar[_local3] != null){
_local2 = misccar[_local3];
if (_local2.getChildByName("body") != null){
if (civilianobject.hitTestObject(_local2.getChildByName("body")) == true){
if ((((civilianobject.civilianname == "zombot")) || ((civilianobject.civilianname == "police")))){
if (_local2.movespeed < 0){
_local4 = (_local2.movespeed * -1);
} else {
_local4 = _local2.movespeed;
};
if (_local4 >= civilianobject.speed){
if (((((((!((tipemisi == "Zombot Zlayer"))) && (!((tipemisi == "Zown Zombot Zlayer"))))) && (!((tipemisi == "Zombot Zefender"))))) && (!((tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"))))){
bahaya();
};
if (tipemisi == "Body Harvest"){
targetneeded--;
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
} else {
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
if (((!((civilianspecialhelp[_local3] == null))) && ((civilian[_local3].dead == "false")))){
var _local7 = posisicitytheft;
var _local8 = citydipake;
var _local9 = (_local7[_local8] - 1);
_local7[_local8] = _local9;
targetneeded--;
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
};
} else {
if ((((((tipemisi == "Zombot Zlayer")) || ((tipemisi == "Zown Zombot Zlayer")))) || ((tipemisi == "Zombot Zefender")))){
if ((((civilianobject.civilianname == "zombot")) && ((civilianobject.dead == "false")))){
smashsound.play(0, 1, new SoundTransform(volume));
targetneeded--;
if (tipemisi != "Zombot Zefender"){
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
};
};
};
};
};
if (civilianobject.civilianname != "zombot"){
if (civilianobject.civiliansextipe == 1){
deadmansound();
} else {
if (civilianobject.civiliansextipe == 0){
deadwomansound();
};
};
if (civilianobject.civilianname == "zombot"){
civilianobject.dead = "true2";
} else {
civilianobject.dead = "true";
};
if (civilianspecialhelp[_local3] != null){
_local5 = 0;
while (_local5 < civilianobject.numChildren) {
_local6 = civilianobject.getChildAt(_local5);
if (_local6 == civilianspecialhelp[_local3]){
civilianobject.dead = "true2";
trace("buwat jadi true2");
break;
};
_local5++;
};
};
civilianobject.removeEventListener(Event.ENTER_FRAME, civilianmove);
civilianobject.removeEventListener(Event.ENTER_FRAME, zombotmove);
if ((((carambulance[0].currentFrame >= 1)) && ((carambulance[0].currentFrame < 5)))){
civilianobject.gotoAndStop("deadup");
} else {
if ((((carambulance[0].currentFrame >= 5)) && ((carambulance[0].currentFrame < 11)))){
civilianobject.gotoAndStop("deadright");
} else {
if ((((carambulance[0].currentFrame >= 11)) && ((carambulance[0].currentFrame < 16)))){
civilianobject.gotoAndStop("deaddown");
} else {
if (carambulance[0].currentFrame >= 16){
civilianobject.gotoAndStop("deadleft");
};
};
};
};
civilianobject = civilian[_local3];
civilianobject.xe = civilian[_local3].x;
civilianobject.ye = civilian[_local3].y;
civilianobject.framey = civilian[_local3].currentFrame;
civiliandiatas = false;
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
removeandaddcivilian();
} else {
if ((((civilianobject.civilianname == "zombot")) && (!((tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"))))){
trace("IYA ZOMBOT");
if (civilianobject.civilianname == "zombot"){
civilianobject.dead = "true2";
};
civilianobject.removeEventListener(Event.ENTER_FRAME, civilianmove);
civilianobject.removeEventListener(Event.ENTER_FRAME, zombotmove);
if ((((carambulance[0].currentFrame >= 1)) && ((carambulance[0].currentFrame < 5)))){
civilianobject.gotoAndStop("deadup");
} else {
if ((((carambulance[0].currentFrame >= 5)) && ((carambulance[0].currentFrame < 11)))){
civilianobject.gotoAndStop("deadright");
} else {
if ((((carambulance[0].currentFrame >= 11)) && ((carambulance[0].currentFrame < 16)))){
civilianobject.gotoAndStop("deaddown");
} else {
if (carambulance[0].currentFrame >= 16){
civilianobject.gotoAndStop("deadleft");
};
};
};
};
civilianobject = civilian[_local3];
civilianobject.xe = civilian[_local3].x;
civilianobject.ye = civilian[_local3].y;
civilianobject.framey = civilian[_local3].currentFrame;
civiliandiatas = false;
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
removeandaddcivilian();
};
};
};
};
};
};
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= civilianindex) {
if (((((!((civilian[_local3] == null))) && (!((_local3 == civilianobject.indexke))))) && ((civilian[_local3].dead == "false")))){
_local2 = civilian[_local3];
if ((((civilianobject.hitTestObject(_local2) == true)) && ((civilianobject.cekunder == "false")))){
civilianobject.cekunder = "true";
if (civilianobject.hitTestObject(_local2) == true){
if (civilianobject.y > _local2.y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < _local2.y){
civilianobject.indextemp = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2);
civiliandiatas = false;
removeandaddcivilian();
};
};
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (civilianobject.hitTestObject(carambulance[0]) == true){
if (civilianobject.y > carambulance[0].y){
civiliandiatas = true;
removeandaddcivilian();
} else {
if (civilianobject.y < carambulance[0].y){
civilianobject.indextemp = ambulanceindex;
civiliandiatas = false;
removeandaddcivilian();
};
};
};
if (_local1 == false){
civilianobject.cekunder = "false";
};
}
public function cekmissionboardend(_arg1:Event):void{
if (mcmissionboard.currentFrame == mcmissionboard.totalFrames){
trace("d");
stage.removeEventListener(Event.ENTER_FRAME, cekmissionboardend);
if (tipemisi != "Zombot Zefender"){
cektipeobj();
};
if (((!((so.data.selectablenurse == 6))) || (!((so.data.selectabledoctor == 6))))){
cekhead();
stage.addEventListener(Event.ENTER_FRAME, suarabooble);
};
trace("c");
cekmisi();
trace("b");
sfxcarhornenable = false;
sfxcarhorn = carstartsound.play(0, 1, new SoundTransform(volume));
sfxcarhorn.addEventListener(Event.SOUND_COMPLETE, awalgamecomplete);
if (mccareful.currentFrame == 1){
mccareful.mc1.gotoAndStop(("city" + citydipake));
mccareful.gotoAndPlay(2);
};
trace("a");
};
}
public function gerakinmap(){
map[0].x = (map[0].x + (carambulance[0].speedx * kecepatan));
map[0].y = (map[0].y + (carambulance[0].speedy * kecepatan));
}
public function conGF3(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
}
public function buwatnun(){
if (so.data.nurse[nunindex] == 0){
mcequip.mcnun.gotoAndStop(6);
mcequip.txt2.text = "hire the nurse to eqquiped her";
} else {
if (so.data.nurse[nunindex] == 1){
mcequip.mcnun.gotoAndStop(nunindex);
mcequip.txt2.text = nunexp[nunindex];
};
};
}
public function loadhirenurse(){
mchire.mcnurse1.gotoAndStop(nurseindex);
mchire.mcnurse2.gotoAndStop((nurseindex + 1));
mchire.txthire1.txt1.text = nurseprice[nurseindex];
mchire.txthire1.txt2.text = nursetext[nurseindex];
mchire.txthire2.txt1.text = nurseprice[(nurseindex + 1)];
mchire.txthire2.txt2.text = nursetext[(nurseindex + 1)];
loadnursesave();
}
public function rotationtarget(_arg1:Event):void{
var _local2:Array;
var _local3:Array;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
_local2 = new Array();
_local3 = new Array();
_local4 = 0;
_local5 = false;
if (inidia > 20){
_local6 = civilianspecial;
_local7 = 0;
while (_local7 < civilianspecialindex) {
if (civilianspecial[_local7] != null){
_local5 = true;
_local2[_local4] = (((civilianspecial[_local7].x + carambulance[0].x) + civilianspecial[_local7].y) + carambulance[0].y);
if (_local2[_local4] < 0){
_local2[_local4] = (_local2[_local4] * -1);
};
_local3[_local4] = _local7;
_local4++;
};
_local7++;
};
} else {
if (tipemisi == "Body Harvest"){
_local6 = civilian;
_local7 = 0;
while (_local7 < civilianindex) {
if (((!((civilian[_local7] == null))) && ((civilian[_local7].dead == "false")))){
_local5 = true;
_local8 = 0;
_local9 = 0;
_local8 = (carambulance[0].x - civilian[_local7].x);
_local9 = (carambulance[0].y - civilian[_local7].y);
_local8 = (_local8 + _local9);
_local2[_local4] = _local8;
if (_local2[_local4] < 0){
_local2[_local4] = (_local2[_local4] * -1);
};
_local3[_local4] = _local7;
_local4++;
};
_local7++;
};
} else {
if ((((tipemisi == "Zombot Zlayer")) || ((tipemisi == "Zown Zombot Zlayer")))){
_local6 = civilian;
_local7 = 0;
while (_local7 < civilianindex) {
if (((((!((civilian[_local7] == null))) && ((civilian[_local7].civilianname == "zombot")))) && ((civilian[_local7].dead == "false")))){
_local5 = true;
_local2[_local4] = (((civilian[_local7].x + carambulance[0].x) + civilian[_local7].y) + carambulance[0].y);
if (_local2[_local4] < 0){
_local2[_local4] = (_local2[_local4] * -1);
};
_local3[_local4] = _local7;
_local4++;
};
_local7++;
};
} else {
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
_local6 = civilian;
_local7 = 0;
while (_local7 < civilianindex) {
if (((((!((civilian[_local7] == null))) && (!((civilianspecialhelp[_local7] == null))))) && ((civilian[_local7].dead == "false")))){
_local5 = true;
_local8 = 0;
_local9 = 0;
_local8 = (carambulance[0].x - civilian[_local7].x);
_local9 = (carambulance[0].y - civilian[_local7].y);
_local8 = (_local8 + _local9);
_local2[_local4] = _local8;
if (_local2[_local4] < 0){
_local2[_local4] = (_local2[_local4] * -1);
};
_local3[_local4] = _local7;
_local4++;
};
_local7++;
};
} else {
if ((((((((((((((((((((((((((((tipemisi == "When pets gone wild eps.1")) || ((tipemisi == "When pets gone wild eps.2")))) || ((tipemisi == "When pets gone wild eps.3")))) || ((tipemisi == "Racer-wanna-be")))) || ((tipemisi == "Electrifried")))) || ((tipemisi == "Anchor's rain")))) || ((tipemisi == "Bear's trap")))) || ((tipemisi == "The hunt for golden hippo")))) || ((tipemisi == "Vampire's kiss")))) || ((tipemisi == "Chair struck")))) || ((tipemisi == "Grill gone wrong")))) || ((tipemisi == "Love Wheel")))) || ((tipemisi == "Hospital's concerto")))) || ((tipemisi == "Begginer Soul Saver [TUTORIAL]")))){
_local6 = civilianspecial;
_local7 = 0;
while (_local7 < civilianspecialindex) {
if (((!((civilianspecial[_local7] == null))) && (!((civilianspecialhelp[_local7] == null))))){
_local5 = true;
_local8 = 0;
_local9 = 0;
_local8 = (carambulance[0].x - civilianspecial[_local7].x);
_local9 = (carambulance[0].y - civilianspecial[_local7].y);
_local8 = (_local8 + _local9);
_local2[_local4] = _local8;
if (_local2[_local4] < 0){
_local2[_local4] = (_local2[_local4] * -1);
};
_local3[_local4] = _local7;
_local4++;
};
_local7++;
};
};
};
};
};
};
if (_local5 == true){
_local10 = _local3[0];
_local7 = 0;
while (_local7 < _local4) {
if (_local2[_local10] > _local2[_local7]){
_local10 = _local3[_local7];
};
_local7++;
};
if ((((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))) || ((tipemisi == "Body Harvest")))){
mcrotationtarget.visible = true;
_local11 = (_local6[_local10].x - carambulance[0].x);
_local12 = (_local6[_local10].y - carambulance[0].y);
_local13 = Math.atan2(_local12, _local11);
_local14 = ((_local13 * 180) / Math.PI);
mcrotationtarget.rotation = _local14;
} else {
if (((!((tipemisi == "Theft Tlayer"))) || (!((tipemisi == "Assassin"))))){
mcrotationtarget.visible = true;
if (_local6[_local10].milik == citydipake){
_local11 = (_local6[_local10].x - carambulance[0].x);
_local12 = (_local6[_local10].y - carambulance[0].y);
_local13 = Math.atan2(_local12, _local11);
_local14 = ((_local13 * 180) / Math.PI);
mcrotationtarget.rotation = _local14;
} else {
if (_local6[_local10].milik != citydipake){
if ((((citydipake == 1)) && ((_local6[_local10].milik == 2)))){
mcrotationtarget.rotation = 0;
};
if ((((citydipake == 1)) && ((_local6[_local10].milik == 3)))){
mcrotationtarget.rotation = 180;
};
if ((((((citydipake == 2)) && ((_local6[_local10].milik == 1)))) || ((_local6[_local10].milik == 3)))){
mcrotationtarget.rotation = 180;
};
if ((((((citydipake == 3)) && ((_local6[_local10].milik == 1)))) || ((_local6[_local10].milik == 2)))){
mcrotationtarget.rotation = 0;
};
};
};
};
};
} else {
mcrotationtarget.visible = false;
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
trace(("STATUS : " + posisicitytheft[citydipake]));
if (posisicitytheft[citydipake] <= 0){
_local7 = 1;
while (_local7 < 4) {
if (((!((_local7 == citydipake))) && ((posisicitytheft[_local7] > 0)))){
trace(("OK TARGET BERIKUT ADA DI KOTA : " + _local7));
if ((((citydipake == 1)) && ((_local7 == 2)))){
mcrotationtarget.rotation = 0;
};
if ((((citydipake == 1)) && ((_local7 == 3)))){
mcrotationtarget.rotation = 180;
};
if ((((((citydipake == 2)) && ((_local7 == 1)))) || ((_local7 == 3)))){
mcrotationtarget.rotation = 180;
};
if ((((((citydipake == 3)) && ((_local7 == 1)))) || ((_local7 == 2)))){
mcrotationtarget.rotation = 0;
};
mcrotationtarget.visible = true;
break;
};
_local7++;
};
};
};
};
}
public function cicilstatus(_arg1:Event):void{
var _local2:*;
if (barucicil == false){
trace("buwat CICIL");
barucicil = true;
cicilimage[0] = new (ingamestatminmc);
map[0].getChildByName(("mc" + citydipake)).addChildAt(cicilimage[0], map[0].getChildByName(("mc" + citydipake)).numChildren);
if ((((cicilstatustipe == 1)) || ((cicilstatustipe == 3)))){
trace("car health--");
cicilimage[0].mc1.txt1.text = "Car Health - -";
ciciltext = "Car Health - -";
} else {
if (cicilstatustipe == 2){
trace("car gas--");
cicilimage[0].mc1.txt1.text = "Gas - -";
ciciltext = "Gas - -";
};
};
cicilimage[0].x = carambulance[0].x;
cicilimage[0].y = carambulance[0].y;
};
if (pauseboolean == false){
cicilimage[0].mc1.txt1.text = ciciltext;
cicildarahtimer--;
if (cicildarahtimer <= 0){
cicildarahtimer = 50;
if (cicilstatustipe == 1){
trace("KURANGI HEALTH");
if (sfxcarbumpenable == true){
sfxcarbumpenable = false;
sfxcarbump = carbumpsound.play(0, 1, new SoundTransform(volume));
sfxcarbump.addEventListener(Event.SOUND_COMPLETE, sfxcarbumpcomplete);
};
kurangihealthmultipliertemp = 5;
kurangihealth();
} else {
if (cicilstatustipe == 2){
gasambulance = (gasambulance - 1);
mcgas.width = gasambulance;
trace(((("KURANGI GAS" + gasambulance) + " & ") + kurangigas));
if ((((gasambulance < 30)) && ((mcgas.blinker.currentFrame == 1)))){
mcgas.blinker.gotoAndPlay(2);
warningsound.play(0, 1, new SoundTransform(volume));
};
if ((((gasambulance <= 0)) && ((bolemati == true)))){
defeattext = "Uh oh!run out of gas";
defeat();
};
} else {
if (cicilstatustipe == 3){
trace("KURANGI HEALTH");
if (sfxcarbumpenable == true){
sfxcarbumpenable = false;
sfxcarbump = carbumpsound.play(0, 1, new SoundTransform(volume));
sfxcarbump.addEventListener(Event.SOUND_COMPLETE, sfxcarbumpcomplete);
};
kurangihealthmultipliertemp = kecepatan;
kurangihealth();
_local2 = ((kecepatan / 9) * 100);
_local2 = ((((6 * _local2) / 100) / 4) - survivalrate);
trace(("kuranger sebanyak : " + _local2));
if (heartbeatstat[1] == 1){
heartbeatskipper[1] = (heartbeatskipper[1] - _local2);
if (heartbeatskipper[1] < 1){
heartbeatskipper[1] = 1;
};
};
};
};
};
};
};
}
public function tulispanel(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = indexpanel;
if (so.data.tutorial == 0){
trace("tulis");
_local2 = 1;
while (_local2 >= 1) {
_local3 = mcmission1.getChildByName(("mcpanel" + _local2));
_local3.getChildByName("tipe").gotoAndStop(isimissiontype[_local1]);
_local3.levele.text = isimissionlevel[_local1];
_local3.titlee.text = isimissionjudul[_local1];
_local3.descriptione.text = isimissiondescription[_local1];
_local3.reward.text = isimissionreward[_local1];
trace(("BERHENTI DI : " + isimissionjudul[_local1]));
_local3.mcthumb.gotoAndStop(isimissionjudul[_local1]);
_local1--;
_local2--;
};
} else {
if (so.data.tutorial == 1){
_local2 = 3;
while (_local2 >= 1) {
_local3 = mcmission1.getChildByName(("mcpanel" + _local2));
_local3.getChildByName("tipe").gotoAndStop(isimissiontype[_local1]);
_local3.levele.text = isimissionlevel[_local1];
_local3.titlee.text = isimissionjudul[_local1];
_local3.descriptione.text = isimissiondescription[_local1];
_local3.reward.text = isimissionreward[_local1];
_local3.mcthumb.gotoAndStop(isimissionjudul[_local1]);
_local1--;
_local2--;
};
};
};
}
public function removeandaddmisccar(){
if (misccar[objectnabrakbuildingmisc.indexke] != null){
misccar[objectnabrakbuildingmisc.indexke].removeEventListener(Event.ENTER_FRAME, policemove);
misccar[objectnabrakbuildingmisc.indexke].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[objectnabrakbuildingmisc.indexke].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[objectnabrakbuildingmisc.indexke].removeEventListener(Event.ENTER_FRAME, carmiscmove2);
misccar[objectnabrakbuildingmisc.indexke].removeEventListener(Event.ENTER_FRAME, carmiscmove3);
misccar[objectnabrakbuildingmisc.indexke].removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
map[0].getChildByName(("mc" + citydipake)).removeChild(misccar[objectnabrakbuildingmisc.indexke]);
misccar[objectnabrakbuildingmisc.indexke] = null;
misccar[objectnabrakbuildingmisc.indexke] = new (objectnabrakbuildingmisc.cartipe);
misccar[objectnabrakbuildingmisc.indexke].cartipe = objectnabrakbuildingmisc.cartipe;
if (dibawah == false){
map[0].getChildByName(("mc" + citydipake)).addChildAt(misccar[objectnabrakbuildingmisc.indexke], map[0].getChildByName(("mc" + citydipake)).numChildren);
} else {
map[0].getChildByName(("mc" + citydipake)).addChildAt(misccar[objectnabrakbuildingmisc.indexke], objectnabrakbuildingmisc.tempindexke);
};
misccar[objectnabrakbuildingmisc.indexke].x = objectnabrakbuildingmisc.x;
misccar[objectnabrakbuildingmisc.indexke].y = objectnabrakbuildingmisc.y;
if (misccar[objectnabrakbuildingmisc.indexke].cartipe != tipepolisi[0]){
misccar[objectnabrakbuildingmisc.indexke].nabrak = "false";
misccar[objectnabrakbuildingmisc.indexke].stats = objectnabrakbuildingmisc.stats;
misccar[objectnabrakbuildingmisc.indexke].issliding = objectnabrakbuildingmisc.issliding;
misccar[objectnabrakbuildingmisc.indexke].waypoint = objectnabrakbuildingmisc.waypoint;
misccar[objectnabrakbuildingmisc.indexke].movespeed = objectnabrakbuildingmisc.movespeed;
misccar[objectnabrakbuildingmisc.indexke].framespeed = objectnabrakbuildingmisc.framespeed;
misccar[objectnabrakbuildingmisc.indexke].tempframespeed = objectnabrakbuildingmisc.tempframespeed;
misccar[objectnabrakbuildingmisc.indexke].gotoAndStop(objectnabrakbuildingmisc.framey);
misccar[objectnabrakbuildingmisc.indexke].indexke = objectnabrakbuildingmisc.indexke;
if (misccar[objectnabrakbuildingmisc.indexke].issliding == "false"){
misccar[objectnabrakbuildingmisc.indexke].addEventListener(Event.ENTER_FRAME, carmiscmove);
} else {
if (misccar[objectnabrakbuildingmisc.indexke].issliding == "true"){
misccar[objectnabrakbuildingmisc.indexke].speedx = objectnabrakbuildingmisc.speedx;
misccar[objectnabrakbuildingmisc.indexke].speedy = objectnabrakbuildingmisc.speedy;
misccar[objectnabrakbuildingmisc.indexke].slidingx = objectnabrakbuildingmisc.slidingx;
misccar[objectnabrakbuildingmisc.indexke].slidingy = objectnabrakbuildingmisc.slidingy;
misccar[objectnabrakbuildingmisc.indexke].addEventListener(Event.ENTER_FRAME, carmiscmovesliding);
};
};
} else {
if (misccar[objectnabrakbuildingmisc.indexke].cartipe == tipepolisi[0]){
misccar[objectnabrakbuildingmisc.indexke].speed = 4;
misccar[objectnabrakbuildingmisc.indexke].gotoAndStop(objectnabrakbuildingmisc.framey);
misccar[objectnabrakbuildingmisc.indexke].framey = objectnabrakbuildingmisc.framey;
misccar[objectnabrakbuildingmisc.indexke].indexke = objectnabrakbuildingmisc.indexke;
misccar[objectnabrakbuildingmisc.indexke].addEventListener(Event.ENTER_FRAME, policemove);
};
};
};
}
public function generatemissionboard(){
var ingameready:Function;
ingameready = function (_arg1:MouseEvent):void{
trace("f");
buttonsound.play(0, 1, new SoundTransform(volume));
mcmissionboard.gotoAndPlay("ok");
stage.addEventListener(Event.ENTER_FRAME, cekmissionboardend);
};
mcmissionboard.txt1.txt1.text = tipemisi;
mcmissionboard.txt1.txt2.text = tipemisidescription;
mcmissionboard.txt1.mc1.gotoAndStop(rareornot);
mcmissionboard.gotoAndPlay(2);
trace("e");
mcmissionboard.btnready.addEventListener(MouseEvent.CLICK, ingameready);
}
public function ceknabrakbuildingmisc(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
notallow2 = false;
_local1 = false;
_local3 = 1;
while (_local3 <= cityhouse[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("house" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("house" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body != null){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
if (objectnabrakbuildingmisc.body.hitTestObject(_local2) == true){
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
};
};
_local3++;
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityhospital[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityservice[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citygasstation[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citytree[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("tree" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("tree" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citychair[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("chair" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("chair" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citytelephonebox[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("telephonebox" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("telephonebox" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityicecream[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("icecream" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("icecream" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citybarn[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("barn" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("barn" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= citytrafficlamp[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("trafficlamp" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("trafficlamp" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2.regionhit) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2.regionhit) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
} else {
obj1 = objectnabrakbuildingmisc;
obj2 = _local2;
cekremoveandaddmisccar();
_local1 = true;
break;
};
};
};
_local3++;
};
};
if (_local1 == false){
_local3 = 0;
while (_local3 < misccarindex) {
if (((!((misccar[_local3] == null))) && (!((_local3 == objectnabrakbuildingmisc.indexke))))){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
if (((!((misccar[_local3].body == null))) && (!((objectnabrakbuildingmisc.body == null))))){
if (objectnabrakbuildingmisc.hitTestObject(misccar[_local3].body) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = misccar[_local3];
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
};
};
if (objectnabrakbuildingmisc.issliding == "true"){
if (((!((misccar[_local3].body == null))) && (!((objectnabrakbuildingmisc.body == null))))){
if (objectnabrakbuildingmisc.body.hitTestObject(misccar[_local3].body) == true){
hitmisccar = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
objectcekcarmiscmovesliding = misccar[_local3];
cekcarmiscmovesliding();
notallow2 = true;
_local1 = true;
break;
};
};
} else {
if (objectnabrakbuildingmisc.issliding == "false"){
if (((!((misccar[_local3].body == null))) && (!((objectnabrakbuildingmisc.body == null))))){
if (objectnabrakbuildingmisc.body.hitTestObject(misccar[_local3].body) == true){
notallow2 = true;
_local1 = true;
break;
};
};
};
};
};
_local3++;
};
};
_local3 = 0;
while (_local3 < civilianindex) {
if (civilian[_local3] != null){
if (objectnabrakbuildingmisc.body != null){
if ((((((objectnabrakbuildingmisc.body.hitTestObject(civilian[_local3]) == true)) && ((civilian[_local3].dead == "false")))) && ((objectnabrakbuildingmisc.visible == true)))){
trace("2");
if ((((objectnabrakbuildingmisc.speedx > civilian[_local3].speed)) || ((objectnabrakbuildingmisc.speedy > civilian[_local3].speed)))){
if (tipemisi == "Body Harvest"){
targetneeded--;
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
} else {
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
if (((!((civilianspecialhelp[_local3] == null))) && ((civilian[_local3].dead == "false")))){
var _local6 = posisicitytheft;
var _local7 = citydipake;
var _local8 = (_local6[_local7] - 1);
_local6[_local7] = _local8;
targetneeded--;
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
};
} else {
if ((((((tipemisi == "Zombot Zlayer")) || ((tipemisi == "Zown Zombot Zlayer")))) || ((tipemisi == "Zombot Zefender")))){
if ((((civilian[_local3].civilianname == "zombot")) && ((civilian[_local3].dead == "false")))){
smashsound.play(0, 1, new SoundTransform(volume));
targetneeded--;
if (tipemisi != "Zombot Zefender"){
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
};
};
};
};
};
if (civilian[_local3].civilianname != "zombot"){
trace("BUKAN ZOMBOT");
if (civilian[_local3].civiliansextipe == 1){
deadmansound();
} else {
if (civilian[_local3].civiliansextipe == 0){
deadwomansound();
};
};
if (civilian[_local3].civilianname == "zombot"){
civilian[_local3].dead = "true2";
trace("buwat jadi true22");
} else {
civilian[_local3].dead = "true";
trace("buwat jadi true");
};
if (civilianspecialhelp[_local3] == null){
_local4 = 0;
while (_local4 < civilian[_local3].numChildren) {
_local5 = civilian[_local3].getChildAt(_local4);
if (_local5 == civilianspecialhelp[_local3]){
civilian[_local3].dead = "true2";
trace("buwat jadi true2");
break;
};
_local4++;
};
};
trace(("DEADNYA JADINYA : " + civilian[_local3].dead));
civilian[_local3].removeEventListener(Event.ENTER_FRAME, civilianmove);
civilian[_local3].removeEventListener(Event.ENTER_FRAME, zombotmove);
if ((((carambulance[0].currentFrame >= 1)) && ((carambulance[0].currentFrame < 5)))){
civilian[_local3].gotoAndStop("deadup");
} else {
if ((((carambulance[0].currentFrame >= 5)) && ((carambulance[0].currentFrame < 11)))){
civilian[_local3].gotoAndStop("deadright");
} else {
if ((((carambulance[0].currentFrame >= 11)) && ((carambulance[0].currentFrame < 16)))){
civilian[_local3].gotoAndStop("deaddown");
} else {
if (carambulance[0].currentFrame >= 16){
civilian[_local3].gotoAndStop("deadleft");
};
};
};
};
civilianobject = civilian[_local3];
civilianobject.xe = civilian[_local3].x;
civilianobject.ye = civilian[_local3].y;
civilianobject.framey = civilian[_local3].currentFrame;
civiliandiatas = false;
civilianobject.indextemp = ambulanceindex;
removeandaddcivilian();
} else {
if ((((civilian[_local3].civilianname == "zombot")) && (!((tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"))))){
trace("IYA ZOMBOT");
if (civilian[_local3].civilianname == "zombot"){
civilian[_local3].dead = "true2";
};
civilian[_local3].removeEventListener(Event.ENTER_FRAME, civilianmove);
civilian[_local3].removeEventListener(Event.ENTER_FRAME, zombotmove);
if ((((carambulance[0].currentFrame >= 1)) && ((carambulance[0].currentFrame < 5)))){
civilian[_local3].gotoAndStop("deadup");
} else {
if ((((carambulance[0].currentFrame >= 5)) && ((carambulance[0].currentFrame < 11)))){
civilian[_local3].gotoAndStop("deadright");
} else {
if ((((carambulance[0].currentFrame >= 11)) && ((carambulance[0].currentFrame < 16)))){
civilian[_local3].gotoAndStop("deaddown");
} else {
if (carambulance[0].currentFrame >= 16){
civilian[_local3].gotoAndStop("deadleft");
};
};
};
};
civilianobject = civilian[_local3];
civilianobject.xe = civilian[_local3].x;
civilianobject.ye = civilian[_local3].y;
civilianobject.framey = civilian[_local3].currentFrame;
civiliandiatas = false;
civilianobject.indextemp = ambulanceindex;
trace(("ambel index ambulance : " + map[0].getChildByName(("mc" + citydipake)).getChildIndex(carambulance[0])));
removeandaddcivilian();
};
};
};
};
};
};
_local3++;
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityboundary[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("boundary" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("boundary" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.body.hitTestObject(_local2) == true){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
};
};
};
_local3++;
};
};
if (notallow == false){
if (((!((objectnabrakbuildingmisc.body == null))) && ((ambulanceinvisiblebool == false)))){
if (carambulance[0].head.hitTestObject(objectnabrakbuildingmisc.body) == true){
objectcolision = objectnabrakbuildingmisc.body;
parentobjectcolision = objectnabrakbuildingmisc;
cekcolision();
if (hitcolision == true){
kurangihealthmultipliertemp = 5;
kurangihealth();
buildingobject = carambulance[0];
ceknabrakgeserzombotorcar2();
_local1 = true;
};
};
};
};
if (_local1 == false){
_local3 = 1;
while (_local3 <= cityblocking[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("blocking" + _local3)) != null){
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("blocking" + _local3));
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if (objectnabrakbuildingmisc.cartipe == tipepolisi[0]){
buildingobject = _local2;
ceknabrakgeserzombotorcar2();
_local1 = true;
break;
};
};
if (objectnabrakbuildingmisc.hitTestObject(_local2) == true){
if ((((objectnabrakbuildingmisc.body.hitTestObject(_local2) == true)) && ((_local2.visible == true)))){
notallow2 = true;
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectnabrakbuildingmisc.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
};
};
};
_local3++;
};
};
}
public function createmap(){
var _local1:*;
trace(("citydipake : " + citydipake));
_local1 = randRange(1, so.data.levele);
if (_local1 > 3){
_local1 = 3;
};
trace(("randcity : " + _local1));
citydipake = _local1;
trace(("citydipake : " + citydipake));
map[0] = new (citylinkage[1]);
addChildAt(map[0], getChildIndex(mcbooble));
map[0].x = cityposisix[citydipake];
map[0].y = cityposisiy[citydipake];
posisiminimap();
citysebelum = 1;
swapchildrenmap();
}
public function createzombot(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = 0;
while (_local1 < targetneeded) {
_local2 = randRange(mulaispawn[citydipake], spawnpointmax[citydipake]);
trace(("ok buwat d : " + _local2));
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local2)) != null){
_local3 = randRange(0, (zombottipe.length - 1));
civilian[civilianindex] = new (zombottipe[_local3]);
map[0].getChildByName(("mc" + citydipake)).addChild(civilian[civilianindex]);
_local4 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local2));
civilian[civilianindex].x = _local4.x;
civilian[civilianindex].y = _local4.y;
civilian[civilianindex].dead = "false";
civilian[civilianindex].cekunder = "false";
civilian[civilianindex].civilianname = "zombot";
civilian[civilianindex].civiliantype = zombottipe[_local3];
civilian[civilianindex].speed = 2;
civilian[civilianindex].attack = civilianhealth[citydipake];
civilian[civilianindex].indexke = civilianindex;
civilian[civilianindex].attackspeed = astemp;
civilian[civilianindex].attackspeedcountdown = 1;
civilian[civilianindex].isslow = "false";
civilian[civilianindex].addEventListener(Event.ENTER_FRAME, zombotmove);
civilianindex++;
};
_local1++;
};
}
public function mcpanel2highlightnull(_arg1:MouseEvent):void{
mcmission1.mcpanel2.filters = null;
}
public function createpolisi(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
trace("YA BUWAT");
_local1 = 0;
while (_local1 < jumlahpolisi) {
_local2 = randRange(mulaispawn[citydipake], spawnpointmax[citydipake]);
trace(("ok buwat d : " + _local2));
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local2)) != null){
_local3 = randRange(0, (zombottipe.length - 1));
civilian[civilianindex] = new (linkageorangpolisi[0]);
map[0].getChildByName(("mc" + citydipake)).addChild(civilian[civilianindex]);
_local4 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local2));
civilian[civilianindex].x = _local4.x;
civilian[civilianindex].y = _local4.y;
civilian[civilianindex].dead = "false";
civilian[civilianindex].cekunder = "false";
civilian[civilianindex].civilianname = "zombot";
civilian[civilianindex].civiliantype = linkageorangpolisi[0];
civilian[civilianindex].speed = 2;
civilian[civilianindex].attack = civilianhealth[citydipake];
civilian[civilianindex].indexke = civilianindex;
civilian[civilianindex].attackspeed = astemp;
civilian[civilianindex].attackspeedcountdown = 1;
civilian[civilianindex].isslow = "false";
civilian[civilianindex].addEventListener(Event.ENTER_FRAME, zombotmove);
civilianindex++;
};
_local1++;
};
}
public function cektumpuk(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pauseboolean == false){
_local2 = false;
_local3 = 0;
while (_local3 < misccarindex) {
if (misccar[_local3] != null){
if (_local3 != _arg1.target.indexke){
if (misccar[_local3].hitTestObject(_arg1.target) == true){
_local2 = true;
break;
};
};
};
_local3++;
};
if (carambulance[0].hitTestObject(_arg1.target) == true){
_local2 = true;
};
if (_local2 == false){
_arg1.target.visible = true;
_arg1.target.removeEventListener(Event.ENTER_FRAME, cektumpuk);
_arg1.target.addEventListener(Event.ENTER_FRAME, carmiscmove);
};
};
}
public function stopgame(){
var _local1:*;
trace("1");
stage.removeEventListener(Event.ENTER_FRAME, isigas);
if (soundchannelsiren != null){
soundchannelsiren.stop();
soundchannelsiren = null;
};
if (carambulance[0] != null){
carambulance[0].removeEventListener(Event.ENTER_FRAME, endambulance);
};
trace("2");
if (civwarping[0] != null){
civwarping[0].removeEventListener(Event.ENTER_FRAME, endcivwarp2);
civwarping[0].removeEventListener(Event.ENTER_FRAME, endcivwarp);
};
trace("3");
stage.removeEventListener(Event.ENTER_FRAME, lampniuniu);
trace("4");
stage.removeEventListener(KeyboardEvent.KEY_UP, pressspace);
trace("5");
stage.removeEventListener(KeyboardEvent.KEY_UP, skiptutorial);
trace("65");
stage.removeEventListener(Event.ENTER_FRAME, tutorialonline);
trace("7");
stage.removeEventListener(Event.ENTER_FRAME, generatezombotdefender);
trace("8");
stage.removeEventListener(Event.ENTER_FRAME, rotationtarget);
trace("9");
if (sfxcarengine != null){
sfxcarengine.stop();
sfxcarengine = null;
};
stage.removeEventListener(Event.ENTER_FRAME, soundcar);
trace("3");
if (sfxcarenginestandart != null){
sfxcarenginestandart.stop();
sfxcarenginestandart = null;
};
stage.removeEventListener(Event.ENTER_FRAME, cicilstatus);
arrowdoc.removeEventListener(Event.ENTER_FRAME, countdown);
stage.removeEventListener(Event.ENTER_FRAME, ambulanceinvisible);
arrownun.removeEventListener(Event.ENTER_FRAME, countdown);
stage.removeEventListener(Event.ENTER_FRAME, ambulanceboost);
stage.removeEventListener(Event.ENTER_FRAME, ambulanceinvisible);
stage.removeEventListener(Event.ENTER_FRAME, firehelltimer);
if (fireimage[0] != null){
fireimage[0].removeEventListener(Event.ENTER_FRAME, firehellblow);
};
btnpause.removeEventListener(MouseEvent.CLICK, ingamepause);
btnmute.removeEventListener(MouseEvent.CLICK, ingamemute);
stage.removeEventListener(Event.ENTER_FRAME, cekmissionboardend);
stage.removeEventListener(Event.ENTER_FRAME, heartbeat);
stage.removeEventListener(Event.ENTER_FRAME, timer);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressW);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.removeEventListener(KeyboardEvent.KEY_UP, pressDA2);
stage.removeEventListener(Event.ENTER_FRAME, transferkeyboardtoenterframe);
carambulance[0].removeEventListener(Event.ENTER_FRAME, blinkingcar);
stage.removeEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
if (sfxcarbump != null){
sfxcarbump.removeEventListener(Event.SOUND_COMPLETE, sfxcarbumpcomplete);
};
if (sfxcarhorn != null){
sfxcarhorn.removeEventListener(Event.SOUND_COMPLETE, sfxhornenablecomplete);
sfxcarhorn.removeEventListener(Event.SOUND_COMPLETE, awalgamecomplete);
};
trace("1");
_local1 = 0;
while (_local1 < civilianindex) {
if (civilian[_local1] != null){
trace(("remove zombotmove : " + civilian[_local1]));
civilian[_local1].removeEventListener(Event.ENTER_FRAME, civilianmove);
civilian[_local1].removeEventListener(Event.ENTER_FRAME, cektumpuk2);
civilian[_local1].removeEventListener(Event.ENTER_FRAME, zombotmove);
if (imagearrow[_local1] != null){
imagearrow[_local1].removeEventListener(Event.ENTER_FRAME, arrowflying);
};
};
_local1++;
};
trace("2");
_local1 = 0;
while (_local1 < misccarindex) {
if (misccar[_local1] != null){
misccar[_local1].removeEventListener(Event.ENTER_FRAME, policemove);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove2);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove3);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, cektumpuk);
};
_local1++;
};
stage.removeEventListener(Event.ENTER_FRAME, cekoutside);
trace("3");
}
public function endambulance(_arg1:Event):void{
var ingameback:Function;
var ingamerestart:Function;
var event = _arg1;
if (event.target.currentFrame == event.target.totalFrames){
ingameback = function (_arg1:MouseEvent):void{
volume = 1;
buttonsound.play(0, 1, new SoundTransform(volume));
soundchannelmainmenuCG.stop();
lagumainmenubool = false;
soundchannelmainmenuCG = soundmainmenu.play(0, 999, new SoundTransform(1));
stopgame2();
gotoAndStop("mainmenu2");
};
ingamerestart = function (_arg1:MouseEvent):void{
volume = 1;
buttonsound.play(0, 1, new SoundTransform(volume));
soundchannelmainmenuCG.stop();
lagumainmenubool = false;
stopgame2();
gotoAndStop("skipper");
};
carambulance[0].removeEventListener(Event.ENTER_FRAME, endambulance);
mcdefeat.gotoAndPlay(2);
mcdefeat.mc1.txt1.text = defeattext;
mcdefeat.visible = true;
mcdefeat.mc1.btnback.addEventListener(MouseEvent.CLICK, ingameback);
mcdefeat.mc1.btnrestart.addEventListener(MouseEvent.CLICK, ingamerestart);
};
}
public function tutorialonline(_arg1:Event):void{
if (pauseboolean == false){
tutorialonlinedetik--;
trace(("DETIK : " + tutorialonlinedetik));
if (tutorialonlinedetik <= 0){
if (tutorialonlineawalan == true){
tutorialonlineawalan = false;
tutorialonlinedetik = tutorialonlinedetiktemp;
mctutorial.gotoAndStop(1);
btnskip.visible = true;
mctutorial.visible = true;
stage.removeEventListener(Event.ENTER_FRAME, tutorialonline);
stage.addEventListener(KeyboardEvent.KEY_UP, skiptutorial);
};
};
};
}
public function kurangihealth(){
trace("1");
if (sfxcarbumpenable == true){
trace(("cek 1 : " + sfxcarbump));
trace(("cek 1 : " + carbumpsound));
sfxcarbumpenable = false;
sfxcarbump = carbumpsound.play(0, 1, new SoundTransform(volume));
sfxcarbump.addEventListener(Event.SOUND_COMPLETE, sfxcarbumpcomplete);
trace(("cek 3 : " + sfxcarbump));
trace(("cek 4 : " + carbumpsound));
};
trace("2");
trace(((((("KURANGI HEALTH : " + kurangihealthmultipliertemp) + " ") + kurangihealthmultiplier) + " = ") + int((kurangihealthmultipliertemp * kurangihealthmultiplier))));
healthambulance = (healthambulance - (kurangihealthmultipliertemp * kurangihealthmultiplier));
mchealth.width = healthambulance;
if ((((healthambulance < 30)) && ((mchealth.blinker.currentFrame == 1)))){
if ((((mccareful.currentFrame == 1)) && ((bolemati == true)))){
mccareful.mc1.gotoAndStop(1);
mccareful.gotoAndPlay(2);
};
mchealth.blinker.gotoAndPlay(2);
};
trace("3");
if (healthambulance <= 0){
if (bolemati == true){
defeattext = "your ambulance is Kaboomm";
defeat();
} else {
if (bolemati == false){
healthambulance = Number(110);
mchealth.width = healthambulance;
};
};
};
}
public function createhospital(){
var _local1:*;
var _local2:Point;
_local1 = 1;
while (_local1 <= cityhospital[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local1)) != null){
hospitalbool = true;
imageminimap[0] = new (ingameminimaphospitalmc);
mcminimap.addChildAt(imageminimap[0], mcminimap.numChildren);
_local2 = new Point(map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local1)).x, map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local1)).y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
imageminimap[0].x = (_local2.x * (320 / 1920));
imageminimap[0].y = (_local2.y * (320 / 1920));
};
_local1++;
};
}
public function ceknabrakgeserzombotorcar2(){
var _local1:Point;
var _local2:*;
var _local3:*;
var _local4:Point;
_local1 = new Point(objectnabrakbuildingmisc.x, objectnabrakbuildingmisc.y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
if (buildingobject.getChildByName("regionhit") != null){
_local4 = new Point(buildingobject.regionhit.x, buildingobject.regionhit.y);
_local2 = buildingobject.regionhit;
_local4 = buildingobject.localToGlobal(_local4);
_local3 = 5;
} else {
_local4 = new Point(buildingobject.x, buildingobject.y);
_local4 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local4);
_local2 = buildingobject;
_local3 = 20;
};
if ((((_local1.x > (_local4.x - (_local2.width / 2)))) && ((_local1.x < (_local4.x + (_local2.width / 2)))))){
if (_local1.y > _local4.y){
objectnabrakbuildingmisc.y = (objectnabrakbuildingmisc.y + _local3);
} else {
if (_local1.y < _local4.y){
objectnabrakbuildingmisc.y = (objectnabrakbuildingmisc.y - _local3);
};
};
} else {
if ((((_local1.y > (_local4.y - (_local2.height / 2)))) && ((_local1.y < (_local4.x + (_local2.width / 2)))))){
if (_local1.x > _local4.x){
objectnabrakbuildingmisc.x = (objectnabrakbuildingmisc.x + _local3);
} else {
if (_local1.x < _local4.x){
objectnabrakbuildingmisc.x = (objectnabrakbuildingmisc.x - _local3);
};
};
};
};
}
public function zombotmove(_arg1:Event):void{
var _local2:Point;
var _local3:Point;
var _local4:*;
var _local5:*;
if (slowgas[0] != null){
if (_arg1.target.hitTestObject(slowgas[0]) == true){
if (sloweffect[_arg1.target.indexke] == null){
trace(("buwat d : " + _arg1.target.indexke));
sloweffect[_arg1.target.indexke] = new (mcingamesloweffect);
trace(("d child : " + _arg1.target.numChildren));
civilian[_arg1.target.indexke].addChildAt(sloweffect[_arg1.target.indexke], _arg1.target.numChildren);
sloweffect[_arg1.target.indexke].x = 2;
sloweffect[_arg1.target.indexke].y = -34;
if (_arg1.target.isslow == "false"){
_arg1.target.speed = (_arg1.target.speed / 2);
_arg1.target.attackspeedcountdown = (_arg1.target.attackspeedcountdown / 2);
_arg1.target.isslow = "true";
};
};
};
};
if ((((((pauseboolean == false)) && ((stopgamebool == false)))) && ((ambulanceinvisiblebool == false)))){
_arg1.target.attackspeed = (_arg1.target.attackspeed - _arg1.target.attackspeedcountdown);
trace(((_arg1.target.attackspeed + " & ") + _arg1.target.attackspeedcountdown));
if ((((((tipemisi == "Hard ride eps.2 [SPECIAL MISSION]")) || ((_arg1.target.civiliantype == linkageorangpolisi[0])))) && ((_arg1.target.attackspeed <= 0)))){
trace("ya masuk");
if ((((((((carambulance[0].x < (_arg1.target.x + rangearcher))) && ((carambulance[0].x > (_arg1.target.x - rangearcher))))) && ((carambulance[0].y < (_arg1.target.y + rangearcher))))) && ((carambulance[0].y > (_arg1.target.y - rangearcher))))){
trace("ya masuk 2");
_arg1.target.attackspeed = astemp;
trace(("ok reset jadi : " + _arg1.target.attackspeed));
objectindian = _arg1.target.indexke;
buwatarrow();
};
} else {
if ((((((_arg1.target.hand.hitTestObject(carambulance[0]) == true)) && ((_arg1.target.attackspeed <= 0)))) && ((ambulanceinvisiblebool == false)))){
_arg1.target.attackspeed = astemp;
kurangihealthmultipliertemp = 30;
kurangihealth();
};
};
_local2 = new Point(_arg1.target.x, _arg1.target.y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
_local3 = new Point(carambulance[0].x, carambulance[0].y);
_local3 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local3);
if (_local2.x > _local3.x){
_arg1.target.x = (_arg1.target.x - _arg1.target.speed);
_local4 = (_local2.x - _local3.x);
} else {
if (_local2.x < _local3.x){
_arg1.target.x = (_arg1.target.x + _arg1.target.speed);
_local4 = (_local3.x - _local2.x);
};
};
if (_local2.y > _local3.y){
_arg1.target.y = (_arg1.target.y - _arg1.target.speed);
_local5 = (_local2.y - _local3.y);
} else {
if (_local2.y < _local3.y){
_arg1.target.y = (_arg1.target.y + _arg1.target.speed);
_local5 = (_local3.y - _local2.y);
};
};
if (_local4 > _local5){
if (_local2.x > _local3.x){
if (_arg1.target.currentLabel != "left"){
_arg1.target.gotoAndPlay("left");
};
} else {
if (_local2.x < _local3.x){
if (_arg1.target.currentLabel != "right"){
_arg1.target.gotoAndPlay("right");
};
};
};
} else {
if (_local5 > _local4){
if (_local2.y > _local3.y){
if (_arg1.target.currentLabel != "up"){
_arg1.target.gotoAndPlay("up");
};
} else {
if (_local2.y < _local3.y){
if (_arg1.target.currentLabel != "down"){
_arg1.target.gotoAndPlay("down");
};
};
};
};
};
civilianobject = _arg1.target;
civilianobject.xe = _arg1.target.x;
civilianobject.ye = _arg1.target.y;
civilianobject.framey = _arg1.target.currentFrame;
cekcivilianremove();
};
}
public function equippredoctor(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
doktorindex--;
if (doktorindex < 1){
doktorindex = 1;
} else {
if (doktorindex > 5){
doktorindex = 5;
};
};
buwatdoktor();
}
public function creditback(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mccredit.gotoAndPlay("fadeout");
objfader = mccredit;
objfadertujuan = "mainmenu";
stage.addEventListener(Event.ENTER_FRAME, fader);
}
public function cekblocking(){
if (level > 1){
map[0].getChildByName(("mc" + 1)).blocking1.visible = false;
map[0].getChildByName(("mc" + 2)).blocking1.visible = false;
};
if (level > 2){
map[0].getChildByName(("mc" + 1)).blocking2.visible = false;
map[0].getChildByName(("mc" + 3)).blocking1.visible = false;
};
}
public function mcpanel1click(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
alignmentmisi = mcmission1.mcpanel1.tipe.currentFrame;
hargamisi = Number(mcmission1.mcpanel1.reward.text);
tipemisi = mcmission1.mcpanel1.titlee.text;
tipemisidescription = mcmission1.mcpanel1.descriptione.text;
mcquestion.visible = true;
}
public function ceknabrakgeserzombotorcar(){
var _local1:Point;
var _local2:Point;
_local1 = new Point(civilianobject.x, civilianobject.y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
_local2 = new Point(buildingobject.regionhit.x, buildingobject.regionhit.y);
_local2 = buildingobject.localToGlobal(_local2);
if ((((_local1.x > (_local2.x - (buildingobject.regionhit.width / 2)))) && ((_local1.x < (_local2.x + (buildingobject.regionhit.width / 2)))))){
if (_local1.y > _local2.y){
civilian[civilianobject.indexke].y = (civilian[civilianobject.indexke].y + civilian[civilianobject.indexke].speed);
} else {
if (_local1.y < _local2.y){
civilian[civilianobject.indexke].y = (civilian[civilianobject.indexke].y - civilian[civilianobject.indexke].speed);
};
};
} else {
if ((((_local1.y > (_local2.y - (buildingobject.regionhit.height / 2)))) && ((_local1.y < (_local2.x + (buildingobject.regionhit.width / 2)))))){
if (_local1.x > _local2.x){
civilian[civilianobject.indexke].x = (civilian[civilianobject.indexke].x + civilian[civilianobject.indexke].speed);
} else {
if (_local1.x < _local2.x){
civilian[civilianobject.indexke].x = (civilian[civilianobject.indexke].x - civilian[civilianobject.indexke].speed);
};
};
};
};
}
public function carmiscmove2(_arg1:Event):void{
var _local2:*;
if (pauseboolean == false){
_local2 = _arg1.target;
if (_local2.no == "false"){
_local2 = _arg1.target;
_local2.framespeed--;
if (_local2.framespeed <= 0){
_local2.framespeed = _local2.tempframespeed;
if (_local2.currentFrame == _local2.totalFrames){
_local2.gotoAndStop(1);
} else {
_local2.nextFrame();
};
if (_local2.currentLabel != "a"){
_arg1.target.nabrak = "false";
_arg1.target.stats = _arg1.target.arahnext;
_arg1.target.removeEventListener(Event.ENTER_FRAME, carmiscmove2);
};
};
};
};
}
public function stopgame2(){
trace("MAP GEDE ILANGIN");
removeChild(map[0]);
map[0] = null;
}
public function createtimer(){
txttime.visible = true;
stage.addEventListener(Event.ENTER_FRAME, timer);
}
public function loadingmainmenu(_arg1:Event):void{
var conGF2:Function;
var conLG2:Function;
var startgame:Function;
var continuegame:Function;
var moregames:Function;
var creditgame:Function;
var e = _arg1;
if ((((((((((mainmenuCG.currentLabel == "one")) || ((mainmenuCG.currentLabel == "two")))) || ((mainmenuCG.currentLabel == "three")))) || ((mainmenuCG.currentLabel == "four")))) || ((mainmenuCG.currentLabel == "five")))){
headpopsound.play();
};
if (mainmenuCG.currentLabel == "minus"){
stampsound.play(0, 1, new SoundTransform(volume));
};
if (mainmenuCG.currentFrame == mainmenuCG.totalFrames){
conGF2 = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
buttonsound.play(0, 1, new SoundTransform(volume));
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
};
conLG2 = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
buttonsound.play(0, 1, new SoundTransform(volume));
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
};
startgame = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
cekSO();
};
continuegame = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (so.size != 0){
gotoAndStop("mainmenu2");
};
};
moregames = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
buttonsound.play(0, 1, new SoundTransform(volume));
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
trace("c");
};
creditgame = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
gotoAndStop("credit");
};
this.removeEventListener(Event.ENTER_FRAME, loadingmainmenu);
trace("a");
mainmenuCG.mcgf.addEventListener(MouseEvent.CLICK, conGF2);
trace("a");
mainmenuCG.mclg.addEventListener(MouseEvent.CLICK, conLG2);
trace("a");
mainmenuCG.btnstart.addEventListener(MouseEvent.CLICK, startgame);
trace("b");
mainmenuCG.btncontinue.addEventListener(MouseEvent.CLICK, continuegame);
trace("c");
mainmenuCG.btnmoregames.addEventListener(MouseEvent.CLICK, moregames);
mainmenuCG.btncredit.addEventListener(MouseEvent.CLICK, creditgame);
};
}
public function carmiscmove3(_arg1:Event):void{
var _local2:*;
if (pauseboolean == false){
_local2 = _arg1.target;
if (_local2.no == "false"){
_local2 = _arg1.target;
_local2.framespeed--;
if (_local2.framespeed <= 0){
_local2.framespeed = _local2.tempframespeed;
if (_local2.currentFrame == 1){
_local2.gotoAndStop(_local2.totalFrames);
} else {
_local2.prevFrame();
};
if (_local2.currentLabel != "a"){
_arg1.target.nabrak = "false";
_arg1.target.stats = _arg1.target.arahnext;
_arg1.target.removeEventListener(Event.ENTER_FRAME, carmiscmove3);
};
};
};
};
}
public function arrowflying(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (pauseboolean == false){
_local2 = (_arg1.target.x - _arg1.target.targetx);
_local3 = (_arg1.target.y - _arg1.target.targety);
_local4 = Math.atan2(_local3, _local2);
_local5 = ((_local4 * 180) / Math.PI);
_arg1.target.rotation = _local5;
_arg1.target.posisiy = _arg1.target.y;
_arg1.target.targety = _arg1.target.targety;
_arg1.target.posisix = _arg1.target.x;
_arg1.target.targetx = _arg1.target.targetx;
_arg1.target.x = (_arg1.target.x - ((_arg1.target.posisix - _arg1.target.targetx) / 10));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.posisiy - _arg1.target.targety) / 10));
_local6 = false;
_local7 = false;
if (_arg1.target.xkurang == "true"){
if (_arg1.target.x > (_arg1.target.targetx - 5)){
_local6 = true;
};
} else {
if (_arg1.target.xkurang == "false"){
if (_arg1.target.x < (_arg1.target.targetx + 5)){
_local6 = true;
};
};
};
if (_arg1.target.ykurang == "true"){
if (_arg1.target.y > (_arg1.target.targety - 5)){
_local7 = true;
};
} else {
if (_arg1.target.ykurang == "false"){
if (_arg1.target.y < (_arg1.target.targety + 5)){
_local7 = true;
};
};
};
if ((((_local6 == true)) && ((_local7 == true)))){
_arg1.target.removeEventListener(Event.ENTER_FRAME, arrowflying);
map[0].getChildByName(("mc" + citydipake)).removeChild(imagearrow[_arg1.target.indexke]);
imagearrow[_arg1.target.indexke] = null;
};
if ((((_arg1.target.hitTestObject(carambulance[0]) == true)) && ((ambulanceinvisiblebool == false)))){
kurangihealthmultipliertemp = 30;
kurangihealth();
_arg1.target.removeEventListener(Event.ENTER_FRAME, arrowflying);
map[0].getChildByName(("mc" + citydipake)).removeChild(imagearrow[_arg1.target.indexke]);
imagearrow[_arg1.target.indexke] = null;
};
};
}
public function cekremoveandaddmisccar(){
objectnabrakbuildingmisc.framey = objectnabrakbuildingmisc.currentFrame;
if (obj1.y < obj2.y){
obj1.tempindexke = (map[0].getChildByName(("mc" + citydipake)).getChildIndex(obj2) - 1);
dibawah = true;
removeandaddmisccar();
} else {
if (obj1.y > obj2.y){
dibawah = false;
removeandaddmisccar();
};
};
}
public function loadnursesave(){
if (so.data.nurse[nurseindex] == 0){
mchire.btnhire1.visible = true;
mchire.txthirethis1.gotoAndStop(2);
mchire.mcnurse1.gotoAndStop("question");
} else {
mchire.txthirethis1.gotoAndStop(1);
mchire.btnhire1.visible = false;
};
if (so.data.nurse[(nurseindex + 1)] == 0){
mchire.btnhire2.visible = true;
mchire.txthirethis2.gotoAndStop(2);
mchire.mcnurse2.gotoAndStop("question");
} else {
mchire.txthirethis2.gotoAndStop(1);
mchire.btnhire2.visible = false;
};
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function carhornsound(){
var _local1:*;
if (sfxcarhornenable == true){
trace("buwat baru");
sfxcarhornenable = false;
_local1 = randRange(1, 3);
sfxcarhorn = horncar1sound.play(0, 1, new SoundTransform(volume));
};
}
public function mcpanel2click(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
alignmentmisi = mcmission1.mcpanel2.tipe.currentFrame;
hargamisi = Number(mcmission1.mcpanel2.reward.text);
tipemisi = mcmission1.mcpanel2.titlee.text;
tipemisidescription = mcmission1.mcpanel2.descriptione.text;
mcquestion.visible = true;
}
public function mcpanel1highlight(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcmission1.mcpanel1.filters = [glow];
}
public function createsatu(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:Point;
var _local6:*;
var _local7:*;
var _local8:*;
_local1 = 0;
while (_local1 < Number(1)) {
_local2 = randRange(0, civiliancity[citydipake]);
civilianspecial[_local1] = new (peopleman1mc);
map[0].getChildByName(("mc" + citydipake)).addChildAt(civilianspecial[_local1], map[0].getChildByName(("mc" + citydipake)).numChildren);
civilianspecial[_local1].health = 30;
civilianspecial[_local1].milik = citydipake;
civilianspecial[_local1].nama = "bluedead";
civilianspecial[_local1].gotoAndStop("deadleft");
do {
_local6 = false;
_local7 = randRange(mulaispawn[citydipake], spawnpointmax[citydipake]);
civilianspecial[_local1].waypointke = _local7;
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local7)) != null){
_local8 = 0;
while (_local8 < sudahdispawnindex) {
if (sudahdispawn[_local8] == _local7){
_local6 = true;
break;
};
_local8++;
};
};
} while (_local6 == true);
if (_local6 == false){
sudahdispawn[sudahdispawnindex] = _local7;
sudahdispawnindex++;
_local4 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + _local7));
};
map[0].getChildByName(("mc" + citydipake)).getChildByName(("pickuppoint" + _local7)).visible = true;
civilianspecial[_local1].x = _local4.x;
civilianspecial[_local1].y = _local4.y;
civilianspecial[_local1].pickuper = _local7;
civilianspecialhelp[_local1] = new (mcingamehelp);
civilianspecialhelp[_local1].mc1.gotoAndStop(1);
map[0].getChildByName(("mc" + citydipake)).addChildAt(civilianspecialhelp[_local1], map[0].getChildByName(("mc" + citydipake)).numChildren);
civilianspecialhelp[_local1].x = civilianspecial[_local1].x;
civilianspecialhelp[_local1].y = civilianspecial[_local1].y;
civilianminimap[_local1] = new (ingameminimaptargetmc);
mcminimap.addChildAt(civilianminimap[_local1], mcminimap.numChildren);
_local5 = new Point(civilianspecial[_local1].x, civilianspecial[_local1].y);
_local5 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local5);
civilianminimap[_local1].x = (_local5.x * (320 / map[0].getChildByName(("mc" + citydipake)).width));
civilianminimap[_local1].y = (_local5.y * (320 / map[0].getChildByName(("mc" + citydipake)).width));
civilianspecialindex++;
_local1++;
};
stage.addEventListener(Event.ENTER_FRAME, heartbeat);
}
public function deadmansound(){
var _local1:*;
trace("YA LAKI MATI");
smashsound.play(0, 1, new SoundTransform(volume));
_local1 = randRange(1, 3);
if (_local1 == 1){
deadman1sound.play(0, 1, new SoundTransform(volume));
} else {
if (_local1 == 2){
deadman2sound.play(0, 1, new SoundTransform(volume));
} else {
if (_local1 == 3){
deadman3sound.play(0, 1, new SoundTransform(volume));
};
};
};
}
function frame1(){
stop();
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
contextmenu = new ContextMenuItem("Little Giant World");
contextmenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clikLG);
customContextMenu.customItems.push(contextmenu);
contextMenu = customContextMenu;
headpopsound = new soundheadpop();
mcgf.addEventListener(MouseEvent.CLICK, conGF);
this.addEventListener(Event.ENTER_FRAME, preloader);
}
public function cekSO(){
var mainmenuyeah:Function;
var mainmenunexttime:Function;
if (so.size == 0){
buwatSO();
gotoAndStop("mainmenu2");
} else {
mainmenuyeah = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
buwatSO();
mcnewgameask.visible = false;
gotoAndStop("mainmenu2");
};
mainmenunexttime = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcnewgameask.visible = false;
};
mcnewgameask.visible = true;
mcnewgameask.btnyeah.addEventListener(MouseEvent.CLICK, mainmenuyeah);
mcnewgameask.btnnexttime.addEventListener(MouseEvent.CLICK, mainmenunexttime);
};
}
function frame3(){
stop();
this.addEventListener(Event.ENTER_FRAME, loadingsplash);
}
function frame4(){
stop();
freshmisi = true;
volume = 1;
so = SharedObject.getLocal("RescuePanicgame");
soundopening = new soundintro();
soundchannelopeningCG = soundopening.play(0, 999, new SoundTransform(1));
lagumainmenubool = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, anykey);
this.addEventListener(Event.ENTER_FRAME, loadingopening);
}
function frame5(){
stop();
trace(("moneyvirtual : " + so.data.moneyvirtual));
mcnewgameask.visible = false;
child.text = String(numChildren);
deadman1sound = new sounddeadman1();
deadman2sound = new sounddeadman2();
deadman3sound = new sounddeadman3();
deadwoman1sound = new sounddeadwoman1();
deadwoman2sound = new sounddeadwoman2();
horncar1sound = new soundhorncar1();
horncar2sound = new soundhorncar2();
horncar3sound = new soundhorncar3();
pickupsound = new soundpickup();
heartbeatsound = new soundheartbeat();
carbumpsound = new soundcarbump();
carleversound = new soundlever();
carstartsound = new soundcarstart();
successsound = new soundsuccess();
warningsound = new soundwarning();
buttonsound = new soundbutton();
buysound = new soundbuy();
stampsound = new soundstamp();
smashsound = new soundsmash();
zombieattacksound = new soundzombieattack();
bombsound = new soundbomb();
firehellreleasesound = new soundfirehellrelease();
carenginesound = new soundcarengine();
bowreleasesound = new soundbowrelease();
gunshotsound = new soundgunshot();
soundmainmenu = new soundopeningCG();
soundmainingamegood = new goodmissionsound();
soundmainingamebad = new badmissionsound();
sounddefeat = new defeatsound();
soundvictory = new victorysound();
soundsiren = new sirensound();
if (lagumainmenubool == false){
lagumainmenubool = true;
soundchannelmainmenuCG = soundmainmenu.play(0, 999, new SoundTransform(1));
};
this.addEventListener(Event.ENTER_FRAME, loadingmainmenu);
}
public function switchnurse(_arg1:MouseEvent):void{
mchire.mcarrowpointer.x = mchire.btnnurse.x;
mchire.mcarrowpointer.y = mchire.btnnurse.y;
buttonsound.play(0, 1, new SoundTransform(volume));
hirestat = "nurse";
mchire.mcdoctor1.visible = false;
mchire.mcdoctor2.visible = false;
mchire.mcnurse1.visible = true;
mchire.mcnurse2.visible = true;
nurseindex = 1;
loadhirenurse();
}
function frame7(){
stop();
lagumainmenubool = true;
doktorindex = 1;
doctorexp = [undefined, "Passively increase patient survival rate by 20%", "Passively increase Ambulance health by 100", "Activate the ability to make the ambulance invisible for 10 seconds", "Passively gaves the vampire patient and the shark patient survival ability", "Passively increase patient survival rate by 40%"];
nunindex = 1;
nunexp = [undefined, "Passively increase patient survival rate by 15%", "Activate the ability to gave the ambulance speed boost", "Passively shoot fire hell to nearest object", "Passively shrouds the zombie and cops with slow gas", "Passively increase income by 30%"];
if (so.data.selectabledoctor != 6){
so.data.selectabledoctortext = doctorexp[so.data.selectabledoctor];
};
if (so.data.selectablenurse != 6){
so.data.selectablenursetext = nunexp[so.data.selectablenurse];
};
mcgf2.addEventListener(MouseEvent.CLICK, conGF3);
mcmainmenu2.gotoAndPlay("fadein");
child.text = String(numChildren);
mcmainmenu2.btnmission.addEventListener(MouseEvent.CLICK, mission);
mcmainmenu2.btnupgrade.addEventListener(MouseEvent.CLICK, upgrade);
mcmainmenu2.btnhire.addEventListener(MouseEvent.CLICK, hire);
mcmainmenu2.btnback.addEventListener(MouseEvent.CLICK, mainmenu2back);
}
function frame8(){
stop();
mcupgrade.txtmoney.text = ("Money: $" + int(so.data.money));
harga = 25000;
mcupgrade.btnback.addEventListener(MouseEvent.CLICK, upgradeback);
cekandenableupgrade();
}
function frame9(){
stop();
mchire.txtmoney.text = ("Money: $" + int(so.data.money));
mchire.txtmoney.visible = true;
trace(((mchire.txtmoney.x + " ") + mchire.txtmoney.y));
mchire.mcdoctor1.visible = false;
mchire.mcdoctor2.visible = false;
trace("a");
mchire.btnhire1.addEventListener(MouseEvent.CLICK, hirenursedoctor1);
mchire.btnhire2.addEventListener(MouseEvent.CLICK, hirenursedoctor2);
mchire.btnnurse.addEventListener(MouseEvent.CLICK, switchnurse);
mchire.btndoctor.addEventListener(MouseEvent.CLICK, switchdoctor);
mchire.btnback.addEventListener(MouseEvent.CLICK, hireback);
mchire.arrowprevious.addEventListener(MouseEvent.CLICK, prenurse);
mchire.arrownext.addEventListener(MouseEvent.CLICK, nextnurse);
hirestat = "nurse";
nurseindex = 1;
nurseprice = [undefined, 40000, 110000, 160000, 230000, 300000];
nursetext = [undefined, "[Patient survival rate is increased by 15%] I just graduated from nurse school with grade E, I never touched a patient before, but I`ll try my best.", "[Speed boost] I am not a nurse, I am an umbrella girl… A kiss from me will make you drive like crazy!", "[Enable fire hell] OK, I have the lighter, who want to smoke?,", "[Slow gas enabled] Slowing down police and zombies comes in handy.", "[+30% income] Bling Bling boss~!!!!"];
doctorprice = [undefined, 70000, 90000, 150000, 100000, 175000];
doctortext = [undefined, "[Patient survival rate is increased by 20%] The cheapest doctor in town, the problem is . . he is an animal doctor that works in the barnyard.", "[Buble protection!] A famous biologist made your ambulance more study, his patient were mostly was a whale, not human.", "[Makes your ambulance invisible as a ghost for 10 second] ''I am not invisible, I am just ''unseen''", "[Very suitable doctor for vampiric or shark mission] ''I love Vampire ~ and i love sharks too ~ ''", "[Patient survival rate is increased by 40%] ''If the patients die, I can bring them back, but not for long''"];
loadhirenurse();
}
function frame6(){
stop();
mccredit.gotoAndPlay("fadein");
mccredit.btnback.addEventListener(MouseEvent.CLICK, creditback);
}
public function pressW(_arg1:KeyboardEvent):void{
if (warpbool == false){
if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){
if (notW == false){
pressWbutton = true;
poscar = "maju";
if (pauseboolean == false){
if (((!((poscar == tempposcar))) && ((issliding == true)))){
tempposcar = poscar;
};
stage.addEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
};
};
} else {
if ((((_arg1.keyCode == 83)) || ((_arg1.keyCode == 40)))){
pressWbutton = true;
poscar = "mundur";
if (pauseboolean == false){
if (((!((poscar == tempposcar))) && ((issliding == true)))){
tempposcar = poscar;
};
stage.addEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
};
};
};
};
}
public function preloader(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
loadingambulance.x = 426;
loadingbar.x = 498;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 / _local2) * 100);
loadingambulance.x = (loadingambulance.x - (_local4 * 3));
loadingbar.loadingbar.width = ((_local4 * 3) + 9);
loadingbar.loadingtxt.text = (int(_local4) + "%");
loadingbar.loadingtxt.x = (loadingbar.loadingbar.width * -1);
if (_local3 == _local2){
gotoAndPlay("preloader2");
this.removeEventListener(Event.ENTER_FRAME, preloader);
};
trace(("1" + mc1));
if ((((Number(_local4) > 10)) && ((mc1.currentFrame == 1)))){
headpopsound.play();
mc1.gotoAndPlay(2);
};
trace("11");
if ((((Number(_local4) > 20)) && ((mc2.currentFrame == 1)))){
headpopsound.play();
mc2.gotoAndPlay(2);
};
trace("111");
if ((((Number(_local4) > 30)) && ((mc3.currentFrame == 1)))){
headpopsound.play();
mc3.gotoAndPlay(2);
};
trace("4");
if ((((Number(_local4) > 40)) && ((mc4.currentFrame == 1)))){
headpopsound.play();
mc4.gotoAndPlay(2);
};
trace("1");
if ((((Number(_local4) > 60)) && ((mc5.currentFrame == 1)))){
headpopsound.play();
mc5.gotoAndPlay(2);
};
if ((((Number(_local4) > 70)) && ((mc6.currentFrame == 1)))){
headpopsound.play();
mc6.gotoAndPlay(2);
};
if ((((Number(_local4) > 80)) && ((mc7.currentFrame == 1)))){
headpopsound.play();
mc7.gotoAndPlay(2);
};
if ((((Number(_local4) > 90)) && ((mc8.currentFrame == 1)))){
headpopsound.play();
mc8.gotoAndPlay(2);
};
}
public function mainmenu2back(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcmainmenu2.gotoAndPlay("fadeout");
objfader = mcmainmenu2;
objfadertujuan = "mainmenu";
stage.addEventListener(Event.ENTER_FRAME, fader);
}
public function awalgamecomplete(_arg1:Event){
sfxcarhornenable = true;
sfxcarhorn.stop();
sfxcarhorn.removeEventListener(Event.SOUND_COMPLETE, awalgamecomplete);
if (tipemisi != "Begginer Soul Saver [TUTORIAL]"){
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressW);
};
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(KeyboardEvent.KEY_UP, pressDA2);
btnpause.addEventListener(MouseEvent.CLICK, ingamepause);
btnmute.addEventListener(MouseEvent.CLICK, ingamemute);
carambulance[0].arrow.visible = false;
sfxcarenginestandart = carenginesound.play(0, 999, new SoundTransform(carstandartvolume));
sfxcarengine = carenginesound.play(0, 999, new SoundTransform(carvolume));
stage.addEventListener(Event.ENTER_FRAME, soundcar);
}
public function mcpanel3highlightnull(_arg1:MouseEvent):void{
mcmission1.mcpanel3.filters = null;
}
public function firehelltimer(_arg1:Event):void{
if (pauseboolean == false){
firetimer--;
if (firetimer <= 0){
i = 0;
while (i < civilianindex) {
if (civilian[i] != null){
if ((((civilian[i].civilianname == "zombot")) && ((civilian[i].dead == "false")))){
trace(((((((civilian[i].x + " & ") + civilian[i].y) + " & ") + carambulance[0].x) + " & ") + carambulance[0].y));
if ((((((((civilian[i].x < (carambulance[0].x + rangefire))) && ((civilian[i].x > (carambulance[0].x - rangefire))))) && ((civilian[i].y < (carambulance[0].y + rangefire))))) && ((civilian[i].y > (carambulance[0].y - rangefire))))){
trace("buwat Api");
targetzombot = i;
createfirehell();
};
};
};
i++;
};
};
};
}
public function buwatarrow(){
trace("MBUWAT ARROW");
imagearrow[arrowindex] = new (specialindianarcherarrowmc);
map[0].getChildByName(("mc" + citydipake)).addChildAt(imagearrow[arrowindex], map[0].getChildByName(("mc" + citydipake)).numChildren);
imagearrow[arrowindex].x = civilian[objectindian].x;
imagearrow[arrowindex].y = civilian[objectindian].y;
imagearrow[arrowindex].posisix = imagearrow[arrowindex].x;
imagearrow[arrowindex].posisiy = imagearrow[arrowindex].y;
imagearrow[arrowindex].targetx = carambulance[0].x;
imagearrow[arrowindex].targety = carambulance[0].y;
imagearrow[arrowindex].indexke = arrowindex;
if (imagearrow[arrowindex].x < imagearrow[arrowindex].targetx){
imagearrow[arrowindex].xkurang = "true";
} else {
imagearrow[arrowindex].xkurang = "false";
};
if (imagearrow[arrowindex].y < imagearrow[arrowindex].targety){
imagearrow[arrowindex].ykurang = "true";
} else {
imagearrow[arrowindex].ykurang = "false";
};
if (civilian[objectindian].civiliantype == linkageorangpolisi[0]){
gunshotsound.play(0, 1, new SoundTransform(volume));
} else {
bowreleasesound.play(0, 1, new SoundTransform(volume));
};
imagearrow[arrowindex].addEventListener(Event.ENTER_FRAME, arrowflying);
arrowindex++;
}
public function createslowgas(){
if (slowgas[0] != null){
map[0].getChildByName(("mc" + citydipake)).removeChild(slowgas[0]);
slowgas[0] = null;
};
slowgas[0] = new (mcingameslowgas);
slowgas[0].x = carambulance[0].x;
slowgas[0].y = carambulance[0].y;
map[0].getChildByName(("mc" + citydipake)).addChildAt(slowgas[0], map[0].getChildByName(("mc" + citydipake)).numChildren);
}
public function ceklevelup(){
var _local1:*;
var _local2:*;
_local1 = false;
if (so.data.levele < 4){
_local2 = level;
while (_local2 < (levelstat.length - 1)) {
if (so.data.moneyvirtual >= levelstat[(_local2 + 1)]){
_local1 = true;
so.data.levele++;
naeklevel();
break;
};
_local2++;
};
} else {
if (so.data.levele >= 4){
if (so.data.money >= 1000000){
_local1 = true;
so.data.levele = 5;
naeklevel();
};
};
};
if (_local1 == false){
victory2();
};
}
public function mcpanel3click(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
alignmentmisi = mcmission1.mcpanel3.tipe.currentFrame;
hargamisi = Number(mcmission1.mcpanel3.reward.text);
tipemisi = mcmission1.mcpanel3.titlee.text;
tipemisidescription = mcmission1.mcpanel3.descriptione.text;
mcquestion.visible = true;
}
public function carmovesliding(_arg1:Event):void{
var _local2:*;
if (pauseboolean == false){
if (stopgamebool == true){
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
trace("YA STOP SLIDING!!!!");
} else {
if (stopgamebool == false){
issliding = true;
_local2 = false;
if (carambulance[0].kurangikecepatan == 0.1){
if (kecepatan > 0){
kecepatan = (kecepatan - carambulance[0].kurangikecepatan);
} else {
if (kecepatan <= 0){
_local2 = true;
};
};
} else {
if (carambulance[0].kurangikecepatan == -0.1){
if (kecepatan < 0){
kecepatan = (kecepatan - carambulance[0].kurangikecepatan);
} else {
if (kecepatan >= 0){
_local2 = true;
};
};
};
};
if (_local2 == true){
issliding = false;
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(Event.ENTER_FRAME, carmove);
cekspeedxy();
kecepatan = 0;
};
};
};
};
}
public function anykey(_arg1:KeyboardEvent):void{
soundchannelopeningCG.stop();
this.removeEventListener(Event.ENTER_FRAME, loadingopening);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, anykey);
trace("diremove");
gotoAndStop("mainmenu");
}
public function cekandenableupgrade(){
var j:*;
var i:*;
var obj2:*;
var obj:*;
var upgrade1:Function;
j = 1;
while (j <= 6) {
trace(("mc ke : " + j));
obj2 = mcupgrade.getChildByName(("mc" + j));
trace(((obj2.bar + " & ") + so.data.ambulanceupgrade[j]));
obj2.bar.width = (41 * so.data.ambulanceupgrade[j]);
j = (j + 1);
};
trace("a");
i = 1;
while (i <= 6) {
upgrade1 = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.target.name;
_local3 = _local2.charAt((_local2.length - 1));
if ((((so.data.money >= harga)) && ((so.data.ambulanceupgrade[Number(_local3)] < 4)))){
buysound.play(0, 1, new SoundTransform(volume));
so.data.money = (so.data.money - harga);
mcupgrade.txtmoney.text = ("Money: $" + int(so.data.money));
var _local5 = so.data.ambulanceupgrade;
var _local6 = Number(_local3);
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
_local4 = mcupgrade.getChildByName(("mc" + _local3));
_local4.bar.width = (41 * so.data.ambulanceupgrade[Number(_local3)]);
if (mcnotenough.currentFrame == 1){
_local2 = randRange(3, 5);
mcnotenough.mc1.gotoAndStop(_local2);
mcnotenough.gotoAndPlay(2);
};
} else {
if ((((so.data.money <= harga)) && ((mcnotenough.currentFrame == 1)))){
mcnotenough.mc1.gotoAndStop(1);
mcnotenough.gotoAndPlay(2);
} else {
if ((((so.data.ambulanceupgrade[Number(_local3)] >= 4)) && ((mcnotenough.currentFrame == 1)))){
mcnotenough.mc1.gotoAndStop(2);
mcnotenough.gotoAndPlay(2);
};
};
};
};
obj = mcupgrade.getChildByName(("btn" + i));
obj.addEventListener(MouseEvent.CLICK, upgrade1);
i = (i + 1);
};
}
public function equipback(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (mcequip.mcdoc.currentFrame != 6){
doc = true;
};
if (mcequip.mcnun.currentFrame != 6){
nun = true;
};
if ((((doc == true)) || ((nun == true)))){
if (doc == true){
trace("doc 2");
mcok1.visible = true;
mcok1.gotoAndPlay(2);
};
if (nun == true){
trace("nun 2");
mcok2.visible = true;
mcok2.gotoAndPlay(2);
};
stage.addEventListener(Event.ENTER_FRAME, okgenerate);
} else {
if ((((doc == false)) && ((nun == false)))){
trace("quiiter");
gotoAndStop("mission");
};
};
}
public function cekspeedxy(){
var _local1:*;
_local1 = 0;
if ((((carambulance[0].rotationindex >= 0)) && ((carambulance[0].rotationindex <= 90)))){
_local1 = (90 - carambulance[0].rotationindex);
_local1 = (_local1 * 0.011);
} else {
if ((((carambulance[0].rotationindex > 90)) && ((carambulance[0].rotationindex <= 180)))){
_local1 = (carambulance[0].rotationindex - 90);
_local1 = (_local1 * (0.011 * -1));
} else {
if ((((carambulance[0].rotationindex > 180)) && ((carambulance[0].rotationindex <= 270)))){
_local1 = (carambulance[0].rotationindex - 270);
_local1 = (_local1 * 0.011);
} else {
if ((((carambulance[0].rotationindex > 270)) && ((carambulance[0].rotationindex <= 359)))){
_local1 = (carambulance[0].rotationindex - 270);
_local1 = (_local1 * 0.011);
};
};
};
};
carambulance[0].speedy = _local1;
if (carambulance[0].currentLabel == "up"){
carambulance[0].speedy = 1;
} else {
if (carambulance[0].currentLabel == "down"){
carambulance[0].speedy = -1;
};
};
_local1 = 0;
if ((((carambulance[0].rotationindex >= 0)) && ((carambulance[0].rotationindex <= 90)))){
_local1 = carambulance[0].rotationindex;
_local1 = (_local1 * (0.011 * -1));
} else {
if ((((carambulance[0].rotationindex > 90)) && ((carambulance[0].rotationindex <= 180)))){
_local1 = (180 - carambulance[0].rotationindex);
_local1 = (_local1 * (0.011 * -1));
} else {
if ((((carambulance[0].rotationindex > 180)) && ((carambulance[0].rotationindex <= 270)))){
_local1 = (180 - carambulance[0].rotationindex);
_local1 = (_local1 * (0.011 * -1));
} else {
if ((((carambulance[0].rotationindex > 270)) && ((carambulance[0].rotationindex <= 359)))){
_local1 = (360 - carambulance[0].rotationindex);
_local1 = (_local1 * 0.011);
};
};
};
};
carambulance[0].speedx = _local1;
if (carambulance[0].currentLabel == "right"){
carambulance[0].speedx = -1;
} else {
if (carambulance[0].currentLabel == "left"){
carambulance[0].speedx = 1;
};
};
}
public function cektipeobj(){
var _local1:*;
if (tipemisi != "Begginer Soul Saver [TUTORIAL]"){
_local1 = 0;
while (_local1 < missionlist.length) {
if (tipemisi == missionlist[_local1]){
inidia = _local1;
break;
};
_local1++;
};
trace("1");
mcdashboard.mcobj.mc1.txt1.text = missiondesc[inidia];
if ((((((((((((((((((((((tipemisi == "When pets gone wild eps.1")) || ((tipemisi == "When pets gone wild eps.2")))) || ((tipemisi == "When pets gone wild eps.3")))) || ((tipemisi == "Racer-wanna-be")))) || ((tipemisi == "Electrifried")))) || ((tipemisi == "Anchor's rain")))) || ((tipemisi == "Bear's trap")))) || ((tipemisi == "Vampire's kiss")))) || ((tipemisi == "Chair struck")))) || ((tipemisi == "Grill gone wrong")))) || ((tipemisi == "Theft Tlayer")))){
mcdashboard.mcobj.mc1.txt1.text = (mcdashboard.mcobj.mc1.txt1.text + (Number(missiondesc2[inidia]) + Number(level)));
targetneeded = (Number(missiondesc2[inidia]) + Number(level));
} else {
if (tipemisi == "Body Harvest"){
mcdashboard.mcobj.mc1.txt1.text = (mcdashboard.mcobj.mc1.txt1.text + (Number(missiondesc2[inidia]) + (Number((level - 1)) * 5)));
targetneeded = (Number(missiondesc2[inidia]) + (Number((level - 1)) * 5));
} else {
if ((((tipemisi == "Zombot Zlayer")) || ((tipemisi == "Zown Zombot Zlayer")))){
mcdashboard.mcobj.mc1.txt1.text = (mcdashboard.mcobj.mc1.txt1.text + (Number(missiondesc2[inidia]) + Number((level * 5))));
targetneeded = (Number(missiondesc2[inidia]) + Number((level * 5)));
} else {
if ((((((((tipemisi == "Love Wheel")) || ((tipemisi == "Hospital's concerto")))) || ((tipemisi == "Assassin")))) || ((tipemisi == "The hunt for golden hippo")))){
mcdashboard.mcobj.mc1.txt1.text = (mcdashboard.mcobj.mc1.txt1.text + Number(missiondesc2[inidia]));
targetneeded = Number(missiondesc2[inidia]);
} else {
if (inidia > 20){
trace("2");
mcdashboard.mcobj.mc1.txt1.text = (mcdashboard.mcobj.mc1.txt1.text + Number(missiondesc2[inidia]));
targetneeded = Number(missiondesc2[inidia]);
};
};
};
};
};
} else {
if (tipemisi == "Begginer Soul Saver [TUTORIAL]"){
mcdashboard.mcobj.mc1.txt1.text = "Finish the Tutorial";
};
};
mcdashboard.mcobj.mc1.mc3.visible = false;
mcdashboard.mcobj.gotoAndPlay(2);
}
public function buwatrandommisiurut(){
var randrare:*;
var awalanmisibaik:*;
var randbaik:*;
var i:*;
var xannounce:Function;
var randjahat:*;
if (so.data.badmission == 0){
if (so.data.moneyvirtual > 50000){
xannounce = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcannounce.gotoAndPlay("ok");
};
so.data.badmission = 1;
mcannounce.gotoAndPlay(2);
headpopsound.play(0, 1, new SoundTransform(volume));
mcannounce.btnx.addEventListener(MouseEvent.CLICK, xannounce);
};
};
jumlahmisi = randRange(3, 7);
randrare = randRange(0, 100);
awalanmisibaik = 1;
if ((((randrare < 20)) && ((so.data.badmission == 1)))){
trace("YA DIKASI RARE");
awalanmisibaik = 2;
isimissiontype[1] = 3;
};
randbaik = randRange(awalanmisibaik, jumlahmisi);
if (so.data.badmission == 0){
randbaik = jumlahmisi;
};
i = awalanmisibaik;
while (i <= randbaik) {
isimissiontype[i] = 1;
trace((("misi ke : " + i) + " baek"));
i = (i + 1);
};
if (randbaik < jumlahmisi){
randjahat = randRange(randbaik, jumlahmisi);
i = (randbaik + 1);
while (i <= jumlahmisi) {
isimissiontype[i] = 2;
trace((("misi ke : " + i) + " jahat"));
i = (i + 1);
};
};
}
public function ingamemute(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (pauseboolean == false){
if (volume == 1){
trace("mute");
volume = 0;
} else {
if (volume == 0){
trace("unmute");
volume = 1;
};
};
soundchannelmainmenuCG.soundTransform = new SoundTransform(volume);
};
}
public function sfxhornenablecomplete(_arg1:Event){
trace("masi jalan");
sfxcarhornenable = true;
sfxcarhorn.stop();
sfxcarhorn.removeEventListener(Event.SOUND_COMPLETE, sfxhornenablecomplete);
}
public function createcar(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 <= spawnpointmax[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local1)) != null){
_local2 = randRange(0, (carforcity[citydipake].length - 1));
misccar[misccarindex] = new (carforcity[citydipake][_local2]);
misccar[misccarindex].cartipe = carforcity[citydipake][_local2];
map[0].getChildByName(("mc" + citydipake)).addChild(misccar[misccarindex]);
misccar[misccarindex].x = map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local1)).x;
misccar[misccarindex].y = randRange((map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local1)).y + (map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local1)).height / 2)), (map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local1)).y - (map[0].getChildByName(("mc" + citydipake)).getChildByName(("spawnpoint" + _local1)).height / 2)));
misccar[misccarindex].nabrak = "false";
misccar[misccarindex].stats = spawnpointposition[citydipake][_local1];
misccar[misccarindex].issliding = "false";
misccar[misccarindex].waypoint = _local1;
misccar[misccarindex].movespeed = misccarspeed[speedforcity[citydipake]];
misccar[misccarindex].framespeed = misccarframe[speedforcity[citydipake]];
misccar[misccarindex].tempframespeed = misccarframe[speedforcity[citydipake]];
misccar[misccarindex].stop();
misccar[misccarindex].indexke = misccarindex;
misccar[misccarindex].gotoAndStop(spawnpointposition[citydipake][_local1]);
misccar[misccarindex].addEventListener(Event.ENTER_FRAME, carmiscmove);
misccarindex++;
};
_local1++;
};
}
public function cekselectable(){
if (so.data.selectabledoctor != 6){
mcequip.mcdoc.gotoAndStop(so.data.selectabledoctor);
mcequip.txt1.text = doctorexp[so.data.selectabledoctor];
doktorindex = so.data.selectabledoctor;
} else {
buwatdoktor();
};
if (so.data.selectablenurse != 6){
mcequip.mcnun.gotoAndStop(so.data.selectablenurse);
mcequip.txt2.text = nunexp[so.data.selectablenurse];
nunindex = so.data.selectablenurse;
} else {
buwatnun();
};
}
public function mcpanel2highlight(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcmission1.mcpanel2.filters = [glow];
}
public function cektumpuk2(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pauseboolean == false){
_local2 = false;
_local3 = 0;
while (_local3 < misccarindex) {
if (misccar[_local3] != null){
if (_local3 != _arg1.target.indexke){
if (misccar[_local3].hitTestObject(_arg1.target) == true){
_local2 = true;
break;
};
};
};
_local3++;
};
if (carambulance[0].hitTestObject(_arg1.target) == true){
_local2 = true;
};
if (_local2 == false){
_arg1.target.visible = true;
_arg1.target.removeEventListener(Event.ENTER_FRAME, cektumpuk2);
_arg1.target.addEventListener(Event.ENTER_FRAME, civilianmove);
};
};
}
public function generatemissionwew(){
var _local1:*;
var _local2:*;
trace(((so.data.badmission + " & ") + so.data.moneyvirtual));
level = so.data.levele;
so.data.jumlahmisi = jumlahmisi;
_local1 = 1;
while (_local1 <= jumlahmisi) {
if (isimissiontype[_local1] == 1){
_local2 = randRange(0, meteringlevelgoodakhir[level]);
isimissionjudul[_local1] = missionlistgood[_local2];
so.data.isimissionjudul[_local1] = missionlistgood[_local2];
isimissiondescription[_local1] = missionlistgooddescription[_local2];
so.data.isimissiondescription[_local1] = missionlistgooddescription[_local2];
isimissionlevel[_local1] = level;
so.data.isimissionlevel[_local1] = level;
isimissionreward[_local1] = (Number(((10000 * Number(level)) + Number((_local2 * 500)))) + Number((randRange(1, 26) * 125)));
so.data.isimissionreward[_local1] = isimissionreward[_local1];
} else {
if (isimissiontype[_local1] == 2){
_local2 = randRange(0, meteringlevelbadakhir[level]);
isimissionjudul[_local1] = missionlistbad[_local2];
so.data.isimissionjudul[_local1] = missionlistbad[_local2];
isimissiondescription[_local1] = missionlistbaddescription[_local2];
so.data.isimissiondescription[_local1] = missionlistbaddescription[_local2];
isimissionlevel[_local1] = level;
so.data.isimissionlevel[_local1] = level;
isimissionreward[_local1] = (Number((10000 * level)) + Number(((5000 + Number((_local2 * 500))) + Number((randRange(10, 26) * 125)))));
so.data.isimissionreward[_local1] = isimissionreward[_local1];
} else {
if (isimissiontype[_local1] == 3){
_local2 = randRange(0, (raremission.length - 2));
isimissiontype[_local1] = 1;
isimissionjudul[_local1] = raremission[_local2];
so.data.isimissionjudul[_local1] = raremission[_local2];
isimissiondescription[_local1] = raremissiondesc[_local2];
so.data.isimissiondescription[_local1] = raremissiondesc[_local2];
isimissionlevel[_local1] = level;
so.data.isimissionlevel[_local1] = level;
isimissionreward[_local1] = ((Number(((10000 * Number(level)) + Number((_local2 * 500)))) + Number((randRange(1, 26) * 125))) + Number(25000));
so.data.isimissionreward[_local1] = isimissionreward[_local1];
};
};
};
trace(((("type ke : " + _local1) + " adalah : ") + isimissiontype[_local1]));
trace(((("misi ke : " + _local1) + " adalah : ") + isimissionjudul[_local1]));
trace(((("desc ke : " + _local1) + " adalah : ") + isimissiondescription[_local1]));
trace(((("level ke : " + _local1) + " adalah : ") + isimissionlevel[_local1]));
trace(((("reward ke : " + _local1) + " adalah : ") + isimissionreward[_local1]));
_local1++;
};
tulispanel();
}
public function endcivwarp2(_arg1:Event):void{
var _local2:Point;
var _local3:Point;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (pauseboolean == false){
pressWbutton = false;
stage.removeEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.removeEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
if (_arg1.target.cek == 0){
trace("cek 0");
_local2 = new Point(_arg1.target.x, _arg1.target.y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
_local3 = new Point(map[0].getChildByName(("mc" + citydipake)).hospital1.x, map[0].getChildByName(("mc" + citydipake)).hospital1.y);
_local3 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local3);
if (_local2.x > _local3.x){
_arg1.target.x = (_arg1.target.x - _arg1.target.speed);
_local4 = (_local2.x - _local3.x);
} else {
if (_local2.x < _local3.x){
_arg1.target.x = (_arg1.target.x + _arg1.target.speed);
_local4 = (_local3.x - _local2.x);
};
};
if (_local2.y > _local3.y){
_arg1.target.y = (_arg1.target.y - _arg1.target.speed);
_local5 = (_local2.y - _local3.y);
} else {
if (_local2.y < _local3.y){
_arg1.target.y = (_arg1.target.y + _arg1.target.speed);
_local5 = (_local3.y - _local2.y);
};
};
if (_local4 > _local5){
if (_local2.x > _local3.x){
if (_arg1.target.currentLabel != "left"){
_arg1.target.gotoAndPlay("left");
};
} else {
if (_local2.x < _local3.x){
if (_arg1.target.currentLabel != "right"){
_arg1.target.gotoAndPlay("right");
};
};
};
} else {
if (_local5 > _local4){
if (_local2.y > _local3.y){
if (_arg1.target.currentLabel != "up"){
_arg1.target.gotoAndPlay("up");
};
} else {
if (_local2.y < _local3.y){
if (_arg1.target.currentLabel != "down"){
_arg1.target.gotoAndPlay("down");
};
};
};
};
};
if (_arg1.target.pickuper.hitTestObject(map[0].getChildByName(("mc" + citydipake)).hospital1.regionhit) == true){
if (tipemisi == "Chubbyman [SPECIAL MISSION]"){
civwarping[0].speed = 2;
};
_arg1.target.cek = 1;
civwarping[0].mc1.visible = false;
};
} else {
if (_arg1.target.cek == 1){
trace("cek 1");
_local2 = new Point(_arg1.target.x, _arg1.target.y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
_local3 = new Point(carambulance[0].x, carambulance[0].y);
_local3 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local3);
if (_local2.x > _local3.x){
_arg1.target.x = (_arg1.target.x - _arg1.target.speed);
_local4 = (_local2.x - _local3.x);
} else {
if (_local2.x < _local3.x){
_arg1.target.x = (_arg1.target.x + _arg1.target.speed);
_local4 = (_local3.x - _local2.x);
};
};
if (_local2.y > _local3.y){
_arg1.target.y = (_arg1.target.y - _arg1.target.speed);
_local5 = (_local2.y - _local3.y);
} else {
if (_local2.y < _local3.y){
_arg1.target.y = (_arg1.target.y + _arg1.target.speed);
_local5 = (_local3.y - _local2.y);
};
};
if (_local4 > _local5){
if (_local2.x > _local3.x){
if (_arg1.target.currentLabel != "left"){
_arg1.target.gotoAndPlay("left");
};
} else {
if (_local2.x < _local3.x){
if (_arg1.target.currentLabel != "right"){
_arg1.target.gotoAndPlay("right");
};
};
};
} else {
if (_local5 > _local4){
if (_local2.y > _local3.y){
if (_arg1.target.currentLabel != "up"){
_arg1.target.gotoAndPlay("up");
};
} else {
if (_local2.y < _local3.y){
if (_arg1.target.currentLabel != "down"){
_arg1.target.gotoAndPlay("down");
};
};
};
};
};
if (_arg1.target.pickuper.hitTestObject(carambulance[0].head) == true){
if (tempsatu2 < (tamppasienindex - 1)){
trace("YA NAEK");
civwarping[0].cek = 0;
tempsatu2++;
civwarping[0].mc1.visible = true;
civwarping[0].mc1.gotoAndStop(tamppasien[tempsatu2]);
} else {
tamppasienindex = 0;
tempsatu2 = 0;
warpbool = false;
issliding = false;
kecepatan = 0;
pressWbutton = false;
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
civwarping[0].removeEventListener(Event.ENTER_FRAME, endcivwarp2);
trace("DONE2");
map[0].getChildByName(("mc" + citydipake)).removeChild(civwarping[0]);
civwarping[0] = null;
_local6 = heartbeatjumlah;
while (_local6 >= 0) {
targetneeded--;
heartbeatnumber[_local6] = 0;
heartbeatskipper[_local6] = 1;
heartbeatstat[_local6] = 0;
_local7 = mcheartbeat.getChildByName(("mc" + _local6));
_local7.gotoAndStop(1);
_local3 = new Point(carambulance[0].x, carambulance[0].y);
_local3 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local3);
mcisipatient.gotoAndPlay(2);
mcisipatient.x = _local3.x;
mcisipatient.y = (_local3.y - 100);
_local6--;
};
if (tipemisi != "Begginer Soul Saver [TUTORIAL]"){
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
};
heartbeatjumlah = -1;
pickupsound.play(0, 1, new SoundTransform(volume));
if (tipemisi == "Begginer Soul Saver [TUTORIAL]"){
trace("OK NEWBIE");
mctutorial.nextFrame();
tutorialonlinedetik = tutorialonlinedetiktemp;
stage.addEventListener(Event.ENTER_FRAME, tutorialonline);
};
if ((((targetneeded <= 0)) && (!((tipemisi == "Begginer Soul Saver [TUTORIAL]"))))){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
} else {
if (targetneeded > 0){
if ((((tipemisi == "Love Wheel")) || ((tipemisi == "Hospital's concerto")))){
defeattext = "You are supposed to bring them together to hospital!";
defeat();
ending = true;
notallow = true;
trace("defeat");
};
};
};
};
};
};
};
};
}
public function ingamepause(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (bolepause == true){
if (pauseboolean == false){
pauseboolean = true;
pausegame();
if (volume == 1){
soundchannelmainmenuCG.soundTransform = new SoundTransform(0.5);
};
} else {
if (pauseboolean == true){
mcpause.visible = false;
pauseboolean = false;
soundchannelmainmenuCG.soundTransform = new SoundTransform(volume);
};
};
};
}
public function civilianmove(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (pauseboolean == false){
if ((((((((((_arg1.target.x > (carambulance[0].x - 100))) && ((_arg1.target.x < (carambulance[0].x + 100))))) && ((_arg1.target.y < (carambulance[0].y + 100))))) && ((_arg1.target.y > (carambulance[0].y - 100))))) && ((_arg1.target.run == "false")))){
_arg1.target.run = "true";
_arg1.target.speed = (_arg1.target.speed * 4);
} else {
_arg1.target.run = "false";
_arg1.target.speed = _arg1.target.tempspeed;
};
if (_arg1.target.currentLabel == "up"){
_arg1.target.y = (_arg1.target.y - _arg1.target.speed);
} else {
if (_arg1.target.currentLabel == "down"){
_arg1.target.y = (_arg1.target.y + _arg1.target.speed);
} else {
if (_arg1.target.currentLabel == "right"){
_arg1.target.x = (_arg1.target.x + _arg1.target.speed);
} else {
if (_arg1.target.currentLabel == "left"){
_arg1.target.x = (_arg1.target.x - _arg1.target.speed);
};
};
};
};
_local2 = false;
_local3 = 0;
while (_local3 <= (civilianwaylist.length - 1)) {
_local4 = 0;
while (_local4 <= civilianmapwaylist[citydipake][_local3]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName((("civilian" + civilianwaylist[_local3]) + _local4)) != null){
if (_arg1.target.hitTestObject(map[0].getChildByName(("mc" + citydipake)).getChildByName((("civilian" + civilianwaylist[_local3]) + _local4))) == true){
_local2 = true;
if (_arg1.target.waypoint == "false"){
_arg1.target.waypoint = "true";
_arg1.target.gotoAndPlay(civilianwaylist[_local3]);
break;
};
};
};
_local4++;
};
_local3++;
};
if (_local2 == false){
_arg1.target.waypoint = "false";
civilianobject = _arg1.target;
civilianobject.xe = _arg1.target.x;
civilianobject.ye = _arg1.target.y;
civilianobject.framey = _arg1.target.currentFrame;
cekcivilianremove();
};
};
}
public function mcquestionyes(_arg1:MouseEvent):void{
var _local2:*;
trace(("tipemisi : " + tipemisi));
if (((((((((((((((!((tipemisi == "Blood Rider [SPECIAL MISSION]"))) && (!((tipemisi == "Chubbyman [SPECIAL MISSION]"))))) && (!((tipemisi == "Hard ride eps.1 [SPECIAL MISSION]"))))) && (!((tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"))))) && (!((tipemisi == "Hard ride eps.3 [SPECIAL MISSION]"))))) && (!((tipemisi == "Irreversible [SPECIAL MISSION]"))))) && (!((tipemisi == "Shark Rider [SPECIAL MISSION]"))))) && (!((tipemisi == "Die Easy [SPECIAL MISSION]"))))){
trace("1");
rareornot = 1;
} else {
trace("nah");
_local2 = 0;
while (_local2 < raremission.length) {
if (tipemisi == raremission[_local2]){
rareornot = (_local2 + 2);
break;
};
_local2++;
};
};
trace(("RARE OR NOT CEK : " + rareornot));
buttonsound.play(0, 1, new SoundTransform(volume));
soundchannelmainmenuCG.stop();
lagumainmenubool = false;
mcmission1.gotoAndPlay("fadeout");
objfader = mcmission1;
objfadertujuan = "ingame";
stage.addEventListener(Event.ENTER_FRAME, fader);
}
public function equipnextdoctor(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
doktorindex++;
if (doktorindex > 5){
doktorindex = 5;
};
buwatdoktor();
}
public function clikLG(_arg1:ContextMenuEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
}
public function bersiinmap(){
var _local1:*;
if (hospitalbool == true){
trace("APUS HOSPITAL");
mcminimap.removeChild(imageminimap[0]);
imageminimap[0] = null;
};
if (gasstationbool == true){
mcminimap.removeChild(imageminimap[1]);
imageminimap[1] = null;
};
if (servicebool == true){
mcminimap.removeChild(imageminimap[2]);
imageminimap[2] = null;
};
servicebool = false;
gasstationbool = false;
hospitalbool = false;
map[0].getChildByName(("mc" + citydipake)).removeChild(knalpotimage[0]);
knalpotimage[0] = null;
trace("1");
_local1 = 0;
while (_local1 < civilianindex) {
if (civilian[_local1] != null){
trace("remove zombotmove");
civilian[_local1].removeEventListener(Event.ENTER_FRAME, civilianmove);
trace("1");
civilian[_local1].removeEventListener(Event.ENTER_FRAME, cektumpuk2);
trace("2");
civilian[_local1].removeEventListener(Event.ENTER_FRAME, zombotmove);
trace("3");
if (imagearrow[_local1] != null){
trace("4");
imagearrow[_local1].removeEventListener(Event.ENTER_FRAME, arrowflying);
};
trace("5");
map[0].getChildByName(("mc" + citydipake)).removeChild(civilian[_local1]);
civilian[_local1] = null;
};
_local1++;
};
trace("2");
_local1 = 0;
while (_local1 < misccarindex) {
if (misccar[_local1] != null){
trace("remove carmove");
misccar[_local1].removeEventListener(Event.ENTER_FRAME, policemove);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove2);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmove3);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
misccar[_local1].removeEventListener(Event.ENTER_FRAME, cektumpuk);
map[0].getChildByName(("mc" + citydipake)).removeChild(misccar[_local1]);
misccar[_local1] = null;
};
_local1++;
};
}
public function endcivwarp(_arg1:Event):void{
var _local2:Point;
var _local3:Point;
var _local4:*;
var _local5:*;
if (pauseboolean == false){
pressWbutton = false;
stage.removeEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.removeEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
if (_arg1.target.cek == 0){
_local2 = new Point(_arg1.target.x, _arg1.target.y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
_local3 = new Point(civilianspecial[warpindex].x, civilianspecial[warpindex].y);
_local3 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local3);
if (_local2.x > _local3.x){
_arg1.target.x = (_arg1.target.x - _arg1.target.speed);
_local4 = (_local2.x - _local3.x);
} else {
if (_local2.x < _local3.x){
_arg1.target.x = (_arg1.target.x + _arg1.target.speed);
_local4 = (_local3.x - _local2.x);
};
};
if (_local2.y > _local3.y){
_arg1.target.y = (_arg1.target.y - _arg1.target.speed);
_local5 = (_local2.y - _local3.y);
} else {
if (_local2.y < _local3.y){
_arg1.target.y = (_arg1.target.y + _arg1.target.speed);
_local5 = (_local3.y - _local2.y);
};
};
if (_local4 > _local5){
if (_local2.x > _local3.x){
if (_arg1.target.currentLabel != "left"){
_arg1.target.gotoAndPlay("left");
};
} else {
if (_local2.x < _local3.x){
if (_arg1.target.currentLabel != "right"){
_arg1.target.gotoAndPlay("right");
};
};
};
} else {
if (_local5 > _local4){
if (_local2.y > _local3.y){
if (_arg1.target.currentLabel != "up"){
_arg1.target.gotoAndPlay("up");
};
} else {
if (_local2.y < _local3.y){
if (_arg1.target.currentLabel != "down"){
_arg1.target.gotoAndPlay("down");
};
};
};
};
};
if (_arg1.target.pickuper.hitTestObject(civilianspecial[warpindex]) == true){
if (tipemisi == "Chubbyman [SPECIAL MISSION]"){
civwarping[0].speed = 0.5;
};
if (tipemisi == "Vampire's kiss"){
if (civilianspecial[(warpindex + 1)] != null){
civilianspecial[(warpindex + 1)].gotoAndPlay(2);
};
};
tamppasien[tamppasienindex] = civilianspecial[warpindex].nama;
civilianspecial[warpindex].visible = false;
civilianspecialhelp[warpindex].visible = false;
_arg1.target.cek = 1;
civwarping[0].mc1.visible = true;
civwarping[0].mc1.gotoAndStop(tamppasien[tamppasienindex]);
if ((((tipemisi == "Love Wheel")) && ((tamppasienindex == 1)))){
civwarping[0].mc1.gotoAndStop("brideandgroom");
};
tamppasienindex++;
};
} else {
if (_arg1.target.cek == 1){
_local2 = new Point(_arg1.target.x, _arg1.target.y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
_local3 = new Point(carambulance[0].x, carambulance[0].y);
_local3 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local3);
if (_local2.x > _local3.x){
_arg1.target.x = (_arg1.target.x - _arg1.target.speed);
_local4 = (_local2.x - _local3.x);
} else {
if (_local2.x < _local3.x){
_arg1.target.x = (_arg1.target.x + _arg1.target.speed);
_local4 = (_local3.x - _local2.x);
};
};
if (_local2.y > _local3.y){
_arg1.target.y = (_arg1.target.y - _arg1.target.speed);
_local5 = (_local2.y - _local3.y);
} else {
if (_local2.y < _local3.y){
_arg1.target.y = (_arg1.target.y + _arg1.target.speed);
_local5 = (_local3.y - _local2.y);
};
};
if (_local4 > _local5){
if (_local2.x > _local3.x){
if (_arg1.target.currentLabel != "left"){
_arg1.target.gotoAndPlay("left");
};
} else {
if (_local2.x < _local3.x){
if (_arg1.target.currentLabel != "right"){
_arg1.target.gotoAndPlay("right");
};
};
};
} else {
if (_local5 > _local4){
if (_local2.y > _local3.y){
if (_arg1.target.currentLabel != "up"){
_arg1.target.gotoAndPlay("up");
};
} else {
if (_local2.y < _local3.y){
if (_arg1.target.currentLabel != "down"){
_arg1.target.gotoAndPlay("down");
};
};
};
};
};
if (_arg1.target.pickuper.hitTestObject(carambulance[0].head) == true){
carleversound.play(0, 1, new SoundTransform(volume));
trace("DONE");
warpbool = false;
issliding = false;
kecepatan = 0;
pressWbutton = false;
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
civwarping[0].removeEventListener(Event.ENTER_FRAME, endcivwarp);
trace("DONE2");
map[0].getChildByName(("mc" + citydipake)).removeChild(civwarping[0]);
civwarping[0] = null;
if (tipemisi == "Begginer Soul Saver [TUTORIAL]"){
mctutorial.nextFrame();
};
map[0].getChildByName(("mc" + citydipake)).getChildByName(("pickuppoint" + civilianspecial[warpindex].pickuper)).visible = false;
map[0].getChildByName(("mc" + citydipake)).removeChild(civilianspecial[warpindex]);
civilianspecial[warpindex] = null;
map[0].getChildByName(("mc" + citydipake)).removeChild(civilianspecialhelp[warpindex]);
civilianspecialhelp[warpindex] = null;
trace("DONE4");
pickupsound.play(0, 1, new SoundTransform(volume));
mcminimap.removeChild(civilianminimap[warpindex]);
civilianminimap[warpindex] = null;
trace("DONE3");
heartbeatjumlah++;
heartbeatstat[heartbeatjumlah] = 1;
if (tipemisi == "Chubbyman [SPECIAL MISSION]"){
trace("MISI : Chubbyman [SPECIAL MISSION]");
jembret = 10;
maxkecepatan = (maxkecepatan - 3);
rotasikecepatan = (rotasikecepatan / 2);
penambahan = (0.011 * rotasikecepatan);
} else {
if (tipemisi == "Hard ride eps.1 [SPECIAL MISSION]"){
trace("MISI : Hard ride eps.1 [SPECIAL MISSION]");
cicilstatustipe = 1;
stage.addEventListener(Event.ENTER_FRAME, cicilstatus);
} else {
if (tipemisi == "Irreversible [SPECIAL MISSION]"){
trace("MISI : Irreversible [SPECIAL MISSION]");
notW = true;
pressWbutton = false;
cekcarmovesliding();
stage.addEventListener(Event.ENTER_FRAME, carmovesliding);
} else {
if (tipemisi == "Shark Rider [SPECIAL MISSION]"){
if (so.data.selectabledoctor != 4){
trace("MISI : Shark Rider [SPECIAL MISSION]");
cicilstatustipe = 2;
stage.addEventListener(Event.ENTER_FRAME, cicilstatus);
};
} else {
if (tipemisi == "Blood Rider [SPECIAL MISSION]"){
if (so.data.selectabledoctor != 4){
trace("MISI : Blood rider [SPECIAL MISSION]");
cicilstatustipe = 3;
stage.addEventListener(Event.ENTER_FRAME, cicilstatus);
};
};
};
};
};
};
};
};
};
};
}
public function missionequip(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
gotoAndStop("equipdocnun");
}
public function hirenursedoctor1(_arg1:MouseEvent):void{
if ((((Number(so.data.money) >= Number(mchire.txthire1.txt1.text))) && ((hirestat == "nurse")))){
trace(("OK SUSTER KE : " + nurseindex));
so.data.selectablenurse = Number(nurseindex);
trace(("beli : " + volume));
buysound.play(0, 1, new SoundTransform(volume));
so.data.money = (so.data.money - Number(mchire.txthire1.txt1.text));
mchire.txtmoney.text = ("Money: $" + so.data.money);
mchire.txthirethis1.gotoAndStop(1);
mchire.mcnurse1.gotoAndStop(nurseindex);
so.data.nurse[nurseindex] = 1;
mchire.btnhire1.visible = false;
if (mcnotenough.currentFrame == 1){
mcnotenough.mc1.gotoAndStop("nurse");
mcnotenough.gotoAndPlay(2);
};
} else {
if ((((Number(so.data.money) >= Number(mchire.txthire1.txt1.text))) && ((hirestat == "doctor")))){
trace(("OK DOKTOR KE : " + nurseindex));
so.data.selectabledoctor = Number(nurseindex);
buysound.play(0, 1, new SoundTransform(volume));
so.data.money = (so.data.money - Number(mchire.txthire1.txt1.text));
mchire.txtmoney.text = ("Money: $" + so.data.money);
mchire.txthirethis1.gotoAndStop(1);
mchire.mcdoctor1.gotoAndStop(nurseindex);
so.data.doctor[nurseindex] = 1;
mchire.btnhire1.visible = false;
if (mcnotenough.currentFrame == 1){
mcnotenough.mc1.gotoAndStop("doctor");
mcnotenough.gotoAndPlay(2);
};
} else {
if ((((Number(so.data.money) <= Number(mchire.txthire1.txt1.text))) && ((mcnotenough.currentFrame == 1)))){
mcnotenough.mc1.gotoAndStop(1);
mcnotenough.gotoAndPlay(2);
};
};
};
}
public function hirenursedoctor2(_arg1:MouseEvent):void{
if ((((so.data.money >= Number(mchire.txthire2.txt1.text))) && ((hirestat == "nurse")))){
trace(("OK SUSTER KE : " + nurseindex));
so.data.selectablenurse = Number((nurseindex + 1));
buysound.play(0, 1, new SoundTransform(volume));
so.data.money = (so.data.money - Number(mchire.txthire1.txt1.text));
mchire.txtmoney.text = ("Money: $" + so.data.money);
mchire.txthirethis2.gotoAndStop(1);
mchire.mcnurse2.gotoAndStop((nurseindex + 1));
so.data.nurse[(nurseindex + 1)] = 1;
mchire.btnhire2.visible = false;
if (mcnotenough.currentFrame == 1){
mcnotenough.mc1.gotoAndStop("nurse");
mcnotenough.gotoAndPlay(2);
};
} else {
if ((((so.data.money >= Number(mchire.txthire2.txt1.text))) && ((hirestat == "doctor")))){
trace(("OK DOKTOR KE : " + nurseindex));
so.data.selectabledoctor = Number((nurseindex + 1));
buysound.play(0, 1, new SoundTransform(volume));
so.data.money = (so.data.money - Number(mchire.txthire1.txt1.text));
mchire.txtmoney.text = ("Money: $" + so.data.money);
mchire.txthirethis2.gotoAndStop(1);
mchire.mcdoctor2.gotoAndStop((nurseindex + 1));
so.data.doctor[(nurseindex + 1)] = 1;
mchire.btnhire2.visible = false;
if (mcnotenough.currentFrame == 1){
mcnotenough.mc1.gotoAndStop("doctor");
mcnotenough.gotoAndPlay(2);
};
} else {
if ((((so.data.money <= Number(mchire.txthire2.txt1.text))) && ((mcnotenough.currentFrame == 1)))){
mcnotenough.mc1.gotoAndStop(1);
mcnotenough.gotoAndPlay(2);
};
};
};
}
public function countdown(_arg1:Event):void{
if (pauseboolean == false){
_arg1.target.sec--;
if (_arg1.target.sec <= 0){
if (_arg1.target.name == "arrowdoc"){
arrowdoc.visible = true;
docskillbool = false;
arrowdoc.removeEventListener(Event.ENTER_FRAME, countdown);
} else {
if (_arg1.target.name == "arrownun"){
arrownun.visible = true;
nunskillbool = false;
arrownun.removeEventListener(Event.ENTER_FRAME, countdown);
};
};
};
};
}
public function equipprenun(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
nunindex--;
if (nunindex < 1){
nunindex = 1;
} else {
if (nunindex > 5){
nunindex = 5;
};
};
buwatnun();
}
public function ceknabrak(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
notallowboundary = false;
notallow = false;
_local1 = true;
if (ambulanceinvisiblebool == false){
trace("1");
_local2 = 1;
while (_local2 <= cityhouse[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("house" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("house" + _local2));
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("house" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
if (objectnabrak.totalFrames == 2){
objectnabrak.gotoAndStop(2);
};
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
trace("2");
if (notallow == false){
_local2 = 1;
while (_local2 <= cityhospital[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("hospital" + _local2));
if ((((((((((((((((((((((((((((((tipemisi == "When pets gone wild eps.1")) || ((tipemisi == "When pets gone wild eps.2")))) || ((tipemisi == "When pets gone wild eps.3")))) || ((tipemisi == "Racer-wanna-be")))) || ((tipemisi == "Electrifried")))) || ((tipemisi == "Anchor's rain")))) || ((tipemisi == "Bear's trap")))) || ((tipemisi == "The hunt for golden hippo")))) || ((tipemisi == "Vampire's kiss")))) || ((tipemisi == "Chair struck")))) || ((tipemisi == "Grill gone wrong")))) || ((tipemisi == "Love Wheel")))) || ((tipemisi == "Hospital's concerto")))) || ((inidia > 20)))) || ((tipemisi == "Begginer Soul Saver [TUTORIAL]")))){
if (carambulance[0].head.hitTestObject(objectnabrak.service) == true){
if ((((heartbeatjumlah >= 0)) && ((warpbool == false)))){
stattofill = "drop";
if (mccareful.currentFrame == 1){
mccareful.mc1.gotoAndStop("drop");
mccareful.gotoAndPlay(2);
};
stage.addEventListener(KeyboardEvent.KEY_UP, pressspace);
};
} else {
if (stattofill == "drop"){
stage.removeEventListener(KeyboardEvent.KEY_UP, pressspace);
};
};
};
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("hospital" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("3");
if (notallow == false){
_local2 = 1;
while (_local2 <= cityservice[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local2));
if ((((((carambulance[0].head.hitTestObject(objectnabrak.service) == true)) && ((objectisi == "")))) && ((((heatambulance < 110)) || ((healthambulance < 110)))))){
objectisi = "health";
stattofill = "health";
if (mccareful.currentFrame == 1){
mccareful.mc1.gotoAndStop("repair");
mccareful.gotoAndPlay(2);
};
stage.addEventListener(KeyboardEvent.KEY_UP, pressspace);
} else {
if ((((carambulance[0].head.hitTestObject(objectnabrak.service) == false)) && ((((stattofill == "health")) || ((stattofill == "health2")))))){
stage.removeEventListener(KeyboardEvent.KEY_UP, pressspace);
objectisi = "";
};
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("service" + _local2);
cekdiatas();
};
};
_local2++;
};
};
trace("4");
if (notallow == false){
_local2 = 1;
while (_local2 <= citygasstation[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local2));
if ((((((carambulance[0].head.hitTestObject(objectnabrak.service) == true)) && ((objectisi == "")))) && ((gasambulance < 110)))){
objectisi = "gas";
stattofill = "gas";
if (mccareful.currentFrame == 1){
mccareful.mc1.gotoAndStop("gas");
mccareful.gotoAndPlay(2);
};
stage.addEventListener(KeyboardEvent.KEY_UP, pressspace);
} else {
if ((((carambulance[0].head.hitTestObject(objectnabrak.service) == false)) && ((((stattofill == "gas")) || ((stattofill == "gas2")))))){
stage.removeEventListener(KeyboardEvent.KEY_UP, pressspace);
objectisi = "";
};
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("gasstation" + _local2);
cekdiatas();
break;
};
};
_local2++;
};
};
trace("5");
if (notallow == false){
_local2 = 1;
while (_local2 <= citytree[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("tree" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("tree" + _local2));
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("tree" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
if (objectnabrak.totalFrames == 2){
objectnabrak.gotoAndStop(2);
};
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("6");
if (notallow == false){
_local2 = 1;
while (_local2 <= citychair[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("chair" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("chair" + _local2));
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("chair" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
if (objectnabrak.totalFrames == 2){
objectnabrak.gotoAndStop(2);
};
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("7");
if (notallow == false){
_local2 = 1;
while (_local2 <= citytelephonebox[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("telephonebox" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("telephonebox" + _local2));
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("telephonebox" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
if (objectnabrak.totalFrames == 2){
objectnabrak.gotoAndStop(2);
};
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("7-1");
if (notallow == false){
_local2 = 1;
while (_local2 <= cityicecream[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("icecream" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("icecream" + _local2));
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("icecream" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
if (objectnabrak.totalFrames == 2){
objectnabrak.gotoAndStop(2);
};
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("7-2");
if (notallow == false){
_local2 = 1;
while (_local2 <= citybarn[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("barn" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("barn" + _local2));
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("barn" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("7-3");
if (notallow == false){
_local2 = 1;
while (_local2 <= citytrafficlamp[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("trafficlamp" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("trafficlamp" + _local2));
if (carambulance[0].hitTestObject(objectnabrak) == true){
objecttemp = ("trafficlamp" + _local2);
cekdiatas();
};
if (carambulance[0].head.hitTestObject(objectnabrak.regionhit) == true){
if (objectnabrak.totalFrames == 2){
objectnabrak.gotoAndStop(2);
};
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("8");
if (notallow == false){
_local2 = 0;
while (_local2 < misccarindex) {
if (misccar[_local2] != null){
objectnabrak = misccar[_local2];
if (((!((misccar[_local2].body == null))) && ((misccar[_local2].visible == true)))){
if (carambulance[0].head.hitTestObject(misccar[_local2].body) == true){
objectcolision = misccar[_local2].body;
parentobjectcolision = misccar[_local2];
cekcolision();
if (hitcolision == true){
hitmisccar = true;
if (kecepatan < 0){
_local3 = (kecepatan * -1);
} else {
if (kecepatan >= 0){
_local3 = kecepatan;
};
};
if ((((_local3 > misccar[_local2].movespeed)) && (!((misccar[_local2].cartipe == "carpolicecarmc"))))){
misccar[_local2].removeEventListener(Event.ENTER_FRAME, carmiscmove);
misccar[_local2].removeEventListener(Event.ENTER_FRAME, carmiscmove2);
misccar[_local2].removeEventListener(Event.ENTER_FRAME, carmiscmove3);
objectygnabrak = carambulance[0];
objectcekcarmiscmovesliding = misccar[_local2];
objectcekcarmiscmovesliding.framey = misccar[_local2].currentFrame;
cekcarmiscmovesliding();
};
checkingnotallow = objectnabrak;
ambilposisi();
notallow = true;
break;
} else {
hitmisccar = false;
notallow = false;
};
};
};
};
_local2++;
};
};
trace("9");
_local2 = 0;
while (_local2 < civilianindex) {
if (civilian[_local2] != null){
if ((((((carambulance[0].head.hitTestObject(civilian[_local2]) == true)) && ((civilian[_local2].dead == "false")))) && ((civilian[_local2].visible == true)))){
if (kecepatan < 0){
_local4 = (kecepatan * -1);
} else {
_local4 = kecepatan;
};
if (_local4 > civilian[_local2].speed){
if (((((((!((tipemisi == "Zombot Zlayer"))) && (!((tipemisi == "Zown Zombot Zlayer"))))) && (!((tipemisi == "Zombot Zefender"))))) && (!((tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"))))){
bahaya();
};
if (tipemisi == "Body Harvest"){
targetneeded--;
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
} else {
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
if (((!((civilianspecialhelp[_local2] == null))) && ((civilian[_local2].dead == "false")))){
var _local8 = posisicitytheft;
var _local9 = citydipake;
var _local10 = (_local8[_local9] - 1);
_local8[_local9] = _local10;
targetneeded--;
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
};
} else {
if ((((((tipemisi == "Zombot Zlayer")) || ((tipemisi == "Zown Zombot Zlayer")))) || ((tipemisi == "Zombot Zefender")))){
if ((((civilian[_local2].civilianname == "zombot")) && ((civilian[_local2].dead == "false")))){
smashsound.play(0, 1, new SoundTransform(volume));
targetneeded--;
if (tipemisi != "Zombot Zefender"){
mcdashboard.mcobj.mc1.txt1.text = (missiondesc[inidia] + targetneeded);
if (targetneeded <= 0){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
break;
};
};
};
};
};
};
if (civilian[_local2].civilianname != "zombot"){
trace("BUKAN ZOMBOT");
if (civilian[_local2].civiliansextipe == 1){
deadmansound();
} else {
if (civilian[_local2].civiliansextipe == 0){
deadwomansound();
};
};
if (civilian[_local2].civilianname == "zombot"){
civilian[_local2].dead = "true2";
trace("buwat jadi true22");
} else {
civilian[_local2].dead = "true";
trace("buwat jadi true");
};
if (civilianspecialhelp[_local2] != null){
_local5 = 0;
while (_local5 < civilian[_local2].numChildren) {
_local6 = civilian[_local2].getChildAt(_local5);
if (_local6 == civilianspecialhelp[_local2]){
civilian[_local2].dead = "true2";
trace("buwat jadi true2");
break;
};
_local5++;
};
};
trace(("DEADNYA JADINYA : " + civilian[_local2].dead));
civilian[_local2].removeEventListener(Event.ENTER_FRAME, civilianmove);
civilian[_local2].removeEventListener(Event.ENTER_FRAME, zombotmove);
if ((((carambulance[0].currentFrame >= 1)) && ((carambulance[0].currentFrame < 5)))){
civilian[_local2].gotoAndStop("deadup");
} else {
if ((((carambulance[0].currentFrame >= 5)) && ((carambulance[0].currentFrame < 11)))){
civilian[_local2].gotoAndStop("deadright");
} else {
if ((((carambulance[0].currentFrame >= 11)) && ((carambulance[0].currentFrame < 16)))){
civilian[_local2].gotoAndStop("deaddown");
} else {
if (carambulance[0].currentFrame >= 16){
civilian[_local2].gotoAndStop("deadleft");
};
};
};
};
civilianobject = civilian[_local2];
civilianobject.xe = civilian[_local2].x;
civilianobject.ye = civilian[_local2].y;
civilianobject.framey = civilian[_local2].currentFrame;
civiliandiatas = false;
civilianobject.indextemp = ambulanceindex;
removeandaddcivilian();
} else {
if ((((civilian[_local2].civilianname == "zombot")) && (!((tipemisi == "Hard ride eps.2 [SPECIAL MISSION]"))))){
trace("IYA ZOMBOT");
if (civilian[_local2].civilianname == "zombot"){
civilian[_local2].dead = "true2";
};
civilian[_local2].removeEventListener(Event.ENTER_FRAME, civilianmove);
civilian[_local2].removeEventListener(Event.ENTER_FRAME, zombotmove);
if ((((carambulance[0].currentFrame >= 1)) && ((carambulance[0].currentFrame < 5)))){
civilian[_local2].gotoAndStop("deadup");
} else {
if ((((carambulance[0].currentFrame >= 5)) && ((carambulance[0].currentFrame < 11)))){
civilian[_local2].gotoAndStop("deadright");
} else {
if ((((carambulance[0].currentFrame >= 11)) && ((carambulance[0].currentFrame < 16)))){
civilian[_local2].gotoAndStop("deaddown");
} else {
if (carambulance[0].currentFrame >= 16){
civilian[_local2].gotoAndStop("deadleft");
};
};
};
};
civilianobject = civilian[_local2];
civilianobject.xe = civilian[_local2].x;
civilianobject.ye = civilian[_local2].y;
civilianobject.framey = civilian[_local2].currentFrame;
civiliandiatas = false;
civilianobject.indextemp = ambulanceindex;
trace(("ambel index ambulance : " + map[0].getChildByName(("mc" + citydipake)).getChildIndex(carambulance[0])));
removeandaddcivilian();
};
};
};
};
};
_local2++;
};
trace("10");
_local2 = 0;
while (_local2 < civilianspecialindex) {
if (((!((civilianspecial[_local2] == null))) && ((civilianspecial[_local2].milik == citydipake)))){
if (((!((tipemisi == "Theft Tlayer"))) || (!((tipemisi == "Assassin"))))){
if ((((carambulance[0].head.hitTestObject(map[0].getChildByName(("mc" + citydipake)).getChildByName(("pickuppoint" + civilianspecial[_local2].pickuper)).green) == true)) && ((heartbeatjumlah < 2)))){
kecepatan = 0;
stage.removeEventListener(Event.ENTER_FRAME, carmove);
stage.removeEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.removeEventListener(Event.ENTER_FRAME, carmovesliding);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.removeEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
warpindex = _local2;
buwatwarp();
};
};
};
_local2++;
};
};
trace("11");
if (notallow == false){
_local2 = 1;
while (_local2 <= cityboundary[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("boundary" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("boundary" + _local2));
if (carambulance[0].head.hitTestObject(objectnabrak) == true){
checkingnotallow = objectnabrak;
checkingnotallow.nomor = _local2;
ambilposisi();
nopress = temppress;
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("12");
if (notallow == false){
_local2 = 1;
while (_local2 <= cityblocking[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("blocking" + _local2)) != null){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("blocking" + _local2));
if ((((carambulance[0].head.hitTestObject(objectnabrak) == true)) && ((objectnabrak.visible == true)))){
checkingnotallow = objectnabrak;
checkingnotallow.nomor = _local2;
ambilposisi();
nopress = temppress;
notallow = true;
break;
} else {
notallow = false;
};
};
_local2++;
};
};
trace("13");
if (notallow == false){
_local2 = 1;
while (_local2 <= 3) {
if (((!((map[0].getChildByName(("mc" + citydipake)).getChildByName(("switcher" + _local2)) == null))) && (!((_local2 == citydipake))))){
objectnabrak = map[0].getChildByName(("mc" + citydipake)).getChildByName(("switcher" + _local2));
if (carambulance[0].head.hitTestObject(objectnabrak) == true){
trace("NABRAK SWITCH");
switcherbool = true;
switcherindex = _local2;
break;
};
};
_local2++;
};
};
trace("14");
if (notallow == false){
_local2 = 1;
while (_local2 <= 4) {
_local7 = getChildByName(("boundary" + _local2));
if (carambulance[0].head.hitTestObject(_local7) == true){
trace(("YG DIHIT KE : " + _local2));
notallowboundary = true;
checkingnotallow = _local7;
checkingnotallow.tipe = ("boundary" + _local2);
ambilposisi();
notallow = true;
break;
};
_local2++;
};
};
if ((((notallow == true)) && ((ending == false)))){
cekgeser();
};
}
public function createknalpot(){
var _local1:*;
var _local2:Point;
knalpotimage[0] = new (knalpotmc);
_local1 = map[0].getChildByName(("mc" + citydipake)).ground;
map[0].getChildByName(("mc" + citydipake)).addChildAt(knalpotimage[0], (map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local1) + 1));
_local2 = new Point(carambulance[0].x, carambulance[0].y);
knalpotimage[0].x = _local2.x;
knalpotimage[0].y = _local2.y;
}
public function prenurse(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (nurseindex > 1){
nurseindex--;
};
if (hirestat == "nurse"){
loadhirenurse();
} else {
if (hirestat == "doctor"){
loadhiredoctor();
};
};
}
public function ceksound(){
if (alignmentmisi == 1){
soundchannelmainmenuCG = soundmainingamegood.play(0, 999, new SoundTransform(1));
} else {
if (alignmentmisi == 2){
soundchannelmainmenuCG = soundmainingamebad.play(0, 999, new SoundTransform(1));
};
};
}
public function removeandaddcivilian(){
var _local1:*;
var _local2:*;
_local1 = false;
if (civilian[civilianobject.indexke] != null){
if (civilian[civilianobject.indexke].civilianname != "zombot"){
if ((((tipemisi == "Theft Tlayer")) || ((tipemisi == "Assassin")))){
if (civilianspecialhelp[civilianobject.indexke] != null){
_local1 = true;
};
};
civilian[civilianobject.indexke].removeEventListener(Event.ENTER_FRAME, civilianmove);
civilian[civilianobject.indexke].removeEventListener(Event.ENTER_FRAME, cektumpuk2);
map[0].getChildByName(("mc" + citydipake)).removeChild(civilian[civilianobject.indexke]);
civilian[civilianobject.indexke] = null;
civilian[civilianobject.indexke] = new (civilianobject.civiliantype);
civilian[civilianobject.indexke].civiliantype = civilianobject.civiliantype;
if (civiliandiatas == true){
map[0].getChildByName(("mc" + citydipake)).addChildAt(civilian[civilianobject.indexke], map[0].getChildByName(("mc" + citydipake)).numChildren);
} else {
if (civiliandiatas == false){
_local2 = map[0].getChildByName(("mc" + citydipake)).ground;
map[0].getChildByName(("mc" + citydipake)).addChildAt(civilian[civilianobject.indexke], (map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2) + 1));
};
};
civilian[civilianobject.indexke].x = civilianobject.xe;
civilian[civilianobject.indexke].y = civilianobject.ye;
civilian[civilianobject.indexke].speed = civilianobject.tempspeed;
civilian[civilianobject.indexke].tempspeed = civilianobject.tempspeed;
civilian[civilianobject.indexke].health = civilianobject.health;
civilian[civilianobject.indexke].waypoint = "false";
civilian[civilianobject.indexke].waypointke = civilianobject.waypointke;
civilian[civilianobject.indexke].cekunder = "true";
civilian[civilianobject.indexke].run = "false";
civilian[civilianobject.indexke].dead = civilianobject.dead;
civilian[civilianobject.indexke].indexke = civilianobject.indexke;
civilian[civilianobject.indexke].civiliantype = civilianobject.civiliantype;
civilian[civilianobject.indexke].civilianname = civilianobject.civilianname;
civilian[civilianobject.indexke].civiliansextipe = civilianobject.civiliansextipe;
if (civilian[civilianobject.indexke].dead == "false"){
civilian[civilianobject.indexke].gotoAndPlay(civilianobject.framey);
civilian[civilianobject.indexke].addEventListener(Event.ENTER_FRAME, civilianmove);
if (_local1 == true){
civilianspecialhelp[civilianobject.indexke] = new (mcingamehelp);
civilianspecialhelp[civilianobject.indexke].mc1.gotoAndStop(2);
civilianspecialhelp[civilianobject.indexke].x = -3;
civilianspecialhelp[civilianobject.indexke].y = -1;
civilian[civilianobject.indexke].milik = civilianobject.milik;
civilian[civilianobject.indexke].addChildAt(civilianspecialhelp[civilianobject.indexke], civilian[civilianobject.indexke].numChildren);
};
} else {
trace(("YA POLISI MATI : " + civilian[civilianobject.indexke].civiliantype));
civilian[civilianobject.indexke].gotoAndStop(civilianobject.framey);
};
} else {
if (civilian[civilianobject.indexke].civilianname == "zombot"){
if (sloweffect[civilianobject.indexke] != null){
trace(("remove d : " + civilianobject.indexke));
civilian[civilianobject.indexke].removeChild(sloweffect[civilianobject.indexke]);
sloweffect[civilianobject.indexke] = null;
};
civilian[civilianobject.indexke].removeEventListener(Event.ENTER_FRAME, zombotmove);
map[0].getChildByName(("mc" + citydipake)).removeChild(civilian[civilianobject.indexke]);
civilian[civilianobject.indexke] = null;
civilian[civilianobject.indexke] = new (civilianobject.civiliantype);
civilian[civilianobject.indexke].civiliantype = civilianobject.civiliantype;
if (civiliandiatas == true){
map[0].getChildByName(("mc" + citydipake)).addChildAt(civilian[civilianobject.indexke], map[0].getChildByName(("mc" + citydipake)).numChildren);
} else {
if (civiliandiatas == false){
_local2 = map[0].getChildByName(("mc" + citydipake)).ground;
map[0].getChildByName(("mc" + citydipake)).addChildAt(civilian[civilianobject.indexke], (map[0].getChildByName(("mc" + citydipake)).getChildIndex(_local2) + 1));
};
};
civilian[civilianobject.indexke].x = civilianobject.xe;
civilian[civilianobject.indexke].y = civilianobject.ye;
civilian[civilianobject.indexke].cekunder = "true";
civilian[civilianobject.indexke].civilianname = civilianobject.civilianname;
civilian[civilianobject.indexke].civiliantype = civilianobject.civiliantype;
civilian[civilianobject.indexke].speed = civilianobject.speed;
civilian[civilianobject.indexke].attack = civilianobject.attack;
civilian[civilianobject.indexke].indexke = civilianobject.indexke;
civilian[civilianobject.indexke].attackspeed = civilianobject.attackspeed;
civilian[civilianobject.indexke].attackspeedcountdown = civilianobject.attackspeedcountdown;
civilian[civilianobject.indexke].isslow = civilianobject.isslow;
if (civilianobject.dead == "true2"){
if (civilian[civilianobject.indexke].getChildByName("mc1") != null){
civilian[civilianobject.indexke].mc1.visible = false;
};
civilian[civilianobject.indexke].dead = "true2";
civilian[civilianobject.indexke].gotoAndStop(civilianobject.framey);
} else {
if (civilianobject.dead != "true2"){
civilian[civilianobject.indexke].dead = civilianobject.dead;
civilian[civilianobject.indexke].gotoAndPlay(civilianobject.framey);
civilian[civilianobject.indexke].addEventListener(Event.ENTER_FRAME, zombotmove);
};
};
};
};
};
}
public function loadhiredoctor(){
trace(("NURSE INDEX : " + nurseindex));
trace(doctorprice[nurseindex]);
trace(doctortext[nurseindex]);
mchire.mcdoctor1.gotoAndStop(nurseindex);
mchire.mcdoctor2.gotoAndStop((nurseindex + 1));
mchire.txthire1.txt1.text = doctorprice[nurseindex];
mchire.txthire1.txt2.text = doctortext[nurseindex];
mchire.txthire2.txt1.text = doctorprice[(nurseindex + 1)];
mchire.txthire2.txt2.text = doctortext[(nurseindex + 1)];
trace(("TEXT:" + mchire.txthire1.txt2.text));
loaddoctorsave();
}
public function carmiscmovesliding(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pauseboolean == false){
objectnabrakbuildingmisc = _arg1.target;
objectnabrakbuildingmisc.framey = _arg1.target.currentFrame;
ceknabrakbuildingmisc();
if (notallow2 == false){
if ((((_arg1.target.speedx > 0)) && ((_arg1.target.slidingx == 0.1)))){
_arg1.target.speedx = (_arg1.target.speedx - _arg1.target.slidingx);
_arg1.target.x = (_arg1.target.x + _arg1.target.speedx);
} else {
if ((((_arg1.target.speedx < 0)) && ((_arg1.target.slidingx == -0.1)))){
_arg1.target.speedx = (_arg1.target.speedx - _arg1.target.slidingx);
_arg1.target.x = (_arg1.target.x + _arg1.target.speedx);
};
};
if ((((_arg1.target.speedy > 0)) && ((_arg1.target.slidingy == 0.1)))){
_arg1.target.speedy = (_arg1.target.speedy - _arg1.target.slidingy);
_arg1.target.y = (_arg1.target.y + _arg1.target.speedy);
} else {
if ((((_arg1.target.speedy < 0)) && ((_arg1.target.slidingy == -0.1)))){
_arg1.target.speedy = (_arg1.target.speedy - _arg1.target.slidingy);
_arg1.target.y = (_arg1.target.y + _arg1.target.speedy);
};
};
_local2 = false;
_local3 = false;
if ((((_arg1.target.speedx <= 0)) && ((_arg1.target.slidingx == 0.1)))){
_local2 = true;
} else {
if ((((_arg1.target.speedx >= 0)) && ((_arg1.target.slidingx == -0.1)))){
_local2 = true;
} else {
if (_arg1.target.slidingx == 0){
_local2 = true;
};
};
};
if ((((_arg1.target.speedy <= 0)) && ((_arg1.target.slidingy == 0.1)))){
_local3 = true;
} else {
if ((((_arg1.target.speedy >= 0)) && ((_arg1.target.slidingy == -0.1)))){
_local3 = true;
} else {
if (_arg1.target.slidingy == 0){
_local3 = true;
};
};
};
if ((((_local2 == true)) && ((_local3 == true)))){
_arg1.target.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
};
} else {
_arg1.target.removeEventListener(Event.ENTER_FRAME, carmiscmovesliding);
};
};
}
public function cekcarmiscmovesliding(){
objectcekcarmiscmovesliding.speedx = ((objectygnabrak.speedx * kecepatan) * -1);
objectcekcarmiscmovesliding.speedy = ((objectygnabrak.speedy * kecepatan) * -1);
if (objectcekcarmiscmovesliding.speedx > 0){
objectcekcarmiscmovesliding.slidingx = 0.1;
} else {
if (objectcekcarmiscmovesliding.speedx < 0){
objectcekcarmiscmovesliding.slidingx = -0.1;
} else {
if (objectcekcarmiscmovesliding.speedx == 0){
objectcekcarmiscmovesliding.slidingx = 0;
};
};
};
if (objectcekcarmiscmovesliding.speedy > 0){
objectcekcarmiscmovesliding.slidingy = 0.1;
} else {
if (objectcekcarmiscmovesliding.speedy < 0){
objectcekcarmiscmovesliding.slidingy = -0.1;
} else {
if (objectcekcarmiscmovesliding.speedy == 0){
objectcekcarmiscmovesliding.slidingy = 0;
};
};
};
objectcekcarmiscmovesliding.addEventListener(Event.ENTER_FRAME, carmiscmovesliding);
objectcekcarmiscmovesliding.issliding = "true";
}
public function mcpanel3highlight(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcmission1.mcpanel3.filters = [glow];
}
public function suarabooble(_arg1:Event):void{
if (mcbooble.currentLabel == "a"){
headpopsound.play(0, 1, new SoundTransform(volume));
};
if (mcbooble.currentLabel == "stop"){
stage.removeEventListener(Event.ENTER_FRAME, suarabooble);
};
}
public function carmiscmove(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pauseboolean == false){
_arg1.target.no = "false";
_local2 = 0;
while (_local2 < misccarindex) {
if (_local2 != _arg1.target.indexke){
if (misccar[_local2].issliding == "false"){
if (_arg1.target.head.hitTestObject(misccar[_local2].ass) == true){
carhornsound();
_arg1.target.no = "true";
break;
};
} else {
if (misccar[_local2].issliding == "true"){
if (_arg1.target.head.hitTestObject(misccar[_local2]) == true){
_arg1.target.no = "true";
break;
};
};
};
};
_local2++;
};
if (carambulance[0] != null){
if (_arg1.target.head.hitTestObject(carambulance[0].head) == true){
carhornsound();
_arg1.target.no = "true";
};
};
if (_arg1.target.no == "false"){
_arg1.target.x = (_arg1.target.x + (carspeedx[_arg1.target.currentFrame] * _arg1.target.movespeed));
_arg1.target.y = (_arg1.target.y + (carspeedy[_arg1.target.currentFrame] * _arg1.target.movespeed));
};
_local3 = 0;
while (_local3 < waylist.length) {
_local4 = 0;
while (_local4 <= mapwaylist[citydipake][_local3]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName((("way" + waylist[_local3]) + _local4)) != null){
_local5 = map[0].getChildByName(("mc" + citydipake)).getChildByName((("way" + waylist[_local3]) + _local4));
if (_arg1.target.head.hitTestObject(_local5) == true){
if ((((waylist[_local3] == "upright")) || ((waylist[_local3] == "downleft")))){
if ((((_arg1.target.head.hitTestObject(_local5) == true)) && ((_arg1.target.nabrak == "false")))){
if (waylist[_local3] == "upright"){
_arg1.target.arahnext = "right";
} else {
if (waylist[_local3] == "downleft"){
_arg1.target.arahnext = "left";
};
};
_arg1.target.nabrak = "true";
_arg1.target.addEventListener(Event.ENTER_FRAME, carmiscmove2);
};
} else {
if ((((waylist[_local3] == "upleft")) || ((waylist[_local3] == "downright")))){
if ((((_arg1.target.head.hitTestObject(_local5) == true)) && ((_arg1.target.nabrak == "false")))){
if (waylist[_local3] == "upleft"){
_arg1.target.arahnext = "left";
} else {
if (waylist[_local3] == "downright"){
_arg1.target.arahnext = "right";
};
};
_arg1.target.nabrak = "true";
_arg1.target.addEventListener(Event.ENTER_FRAME, carmiscmove3);
};
};
};
};
};
_local4++;
};
_local3++;
};
if (_arg1.target.nabrak == "false"){
objectnabrakbuildingmisc = _arg1.target;
objectnabrakbuildingmisc.framey = _arg1.target.currentFrame;
objectnabrakbuildingmisc.childindex = map[0].getChildByName(("mc" + citydipake)).getChildIndex(_arg1.target);
ceknabrakbuildingmisc();
};
};
}
public function bahaya(){
if (alignmentmisi == 1){
penambahanbahaya = 0.5;
} else {
if (alignmentmisi == 2){
penambahanbahaya = 1;
};
};
if (tipemisi != "Begginer Soul Saver [TUTORIAL]"){
trace(("INDEX BAHAYA : " + indexbahaya));
indexbahaya = (indexbahaya + penambahanbahaya);
if (kelipatanlevel < 6){
if (indexbahaya > 3){
indexbahaya = 0;
kelipatanlevel++;
jumlahpolisi = 1;
createpolisi();
};
} else {
if ((((kelipatanlevel >= 6)) && ((kelipatanlevel < 10)))){
if (indexbahaya > 3){
indexbahaya = 0;
kelipatanlevel++;
createpolicecar();
};
};
};
};
}
public function loadingsplash(_arg1:Event):void{
var clikGF:Function;
var clikLG:Function;
var e = _arg1;
if (preloaderlogo.currentLabel == "GF"){
clikGF = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
};
preloaderlogo.connectbtn.addEventListener(MouseEvent.CLICK, clikGF);
};
if (preloaderlogo.currentLabel == "LG"){
clikLG = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
};
preloaderlogo.connectbtn.addEventListener(MouseEvent.CLICK, clikLG);
};
if (preloaderlogo.currentFrame == preloaderlogo.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, loadingsplash);
gotoAndPlay("opening");
};
}
public function generatezombotdefender(_arg1:Event):void{
if (pauseboolean == false){
timegeneratezombot--;
if (timegeneratezombot <= 0){
trace("BUWAT ZOMBOT");
timegeneratezombot = 50;
targetneeded = 1;
createzombot();
};
};
}
public function pressspace(_arg1:KeyboardEvent):void{
trace(("KEYCODE : " + _arg1.keyCode));
if (_arg1.keyCode == 32){
if (stattofill == "health"){
trace("isi");
cekisi();
stattofill = "health2";
mccareful.mc1.gotoAndStop("gas2");
mccareful.gotoAndPlay(2);
} else {
if (stattofill == "health2"){
trace("stop isi");
pressWbutton = false;
issliding = false;
stattofill = "health";
mccareful.visible = false;
mcisihealth.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, isigas);
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
} else {
if (stattofill == "gas"){
trace("isi");
cekisi();
stattofill = "gas2";
mccareful.mc1.gotoAndStop("gas2");
mccareful.gotoAndPlay(2);
} else {
if (stattofill == "gas2"){
trace("stop isi");
pressWbutton = false;
issliding = false;
stattofill = "gas";
mccareful.visible = false;
mcisigas.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, isigas);
stage.addEventListener(KeyboardEvent.KEY_UP, releaseW);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressDA);
stage.addEventListener(Event.ENTER_FRAME, reducegasincreaseheatmovespeedometer);
} else {
if (stattofill == "drop"){
stage.removeEventListener(KeyboardEvent.KEY_UP, pressspace);
buwatwarp2();
};
};
};
};
};
};
}
public function pausegame(){
var resumegame:Function;
var surrenderegame:Function;
resumegame = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcpause.visible = false;
pauseboolean = false;
};
surrenderegame = function (_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
mcpause.visible = false;
defeattext = "Try better next time,dude";
defeat();
trace("defeat");
};
mcpause.visible = true;
mcpause.btnresume.addEventListener(MouseEvent.CLICK, resumegame);
mcpause.btnsurrender.addEventListener(MouseEvent.CLICK, surrenderegame);
}
public function hire(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
gotoAndStop("hire");
}
public function gantilampu(){
var _local1:ColorTransform;
var _local2:GlowFilter;
var _local3:ColorTransform;
var _local4:GlowFilter;
if (boollamp == true){
_local1 = carambulance[0].ab.mc1.transform.colorTransform;
_local1.color = 204;
carambulance[0].ab.mc1.transform.colorTransform = _local1;
_local2 = new GlowFilter();
_local2.color = 204;
_local2.alpha = 1;
_local2.blurX = 15;
_local2.blurY = 15;
_local2.quality = BitmapFilterQuality.LOW;
carambulance[0].ab.mc1.filters = [_local2];
_local3 = carambulance[0].ab.mc2.transform.colorTransform;
_local3.color = 0xFF0000;
carambulance[0].ab.mc2.transform.colorTransform = _local3;
_local4 = new GlowFilter();
_local4.color = 0xFF0000;
_local4.alpha = 1;
_local4.blurX = 15;
_local4.blurY = 15;
_local4.quality = BitmapFilterQuality.LOW;
carambulance[0].ab.mc2.filters = [_local4];
} else {
if (boollamp == false){
_local1 = carambulance[0].ab.mc2.transform.colorTransform;
_local1.color = 204;
carambulance[0].ab.mc2.transform.colorTransform = _local1;
_local2 = new GlowFilter();
_local2.color = 204;
_local2.alpha = 1;
_local2.blurX = 15;
_local2.blurY = 15;
_local2.quality = BitmapFilterQuality.LOW;
carambulance[0].ab.mc2.filters = [_local2];
_local3 = carambulance[0].ab.mc1.transform.colorTransform;
_local3.color = 0xFF0000;
carambulance[0].ab.mc1.transform.colorTransform = _local3;
_local4 = new GlowFilter();
_local4.color = 0xFF0000;
_local4.alpha = 1;
_local4.blurX = 15;
_local4.blurY = 15;
_local4.quality = BitmapFilterQuality.LOW;
carambulance[0].ab.mc1.filters = [_local4];
};
};
}
public function blinkingcar(_arg1:Event):void{
var _local2:ColorTransform;
if (_arg1.target.naek == "true"){
_local2 = _arg1.target.transform.colorTransform;
_local2.redMultiplier = (_local2.redMultiplier + 100);
_local2.greenMultiplier = (_local2.greenMultiplier + 100);
_local2.blueMultiplier = (_local2.blueMultiplier + 100);
_arg1.target.transform.colorTransform = _local2;
_arg1.target.naek = "false";
} else {
if (_arg1.target.naek == "false"){
_local2 = _arg1.target.transform.colorTransform;
_local2.redMultiplier = (_local2.redMultiplier - 100);
_local2.greenMultiplier = (_local2.greenMultiplier - 100);
_local2.blueMultiplier = (_local2.blueMultiplier - 100);
_arg1.target.transform.colorTransform = _local2;
_arg1.target.naek = "true";
_arg1.target.removeEventListener(Event.ENTER_FRAME, blinkingcar);
};
};
}
public function sfxcarbumpcomplete(_arg1:Event){
sfxcarbumpenable = true;
sfxcarbump.stop();
sfxcarbump.removeEventListener(Event.SOUND_COMPLETE, sfxcarbumpcomplete);
}
public function cekdiatas(){
if (carambulance[0].y < map[0].getChildByName(("mc" + citydipake)).getChildByName(objecttemp).y){
carambulanceindex = Number((map[0].getChildByName(("mc" + citydipake)).getChildIndex(map[0].getChildByName(("mc" + citydipake)).getChildByName(objecttemp)) - 1));
} else {
carambulanceindex = -1;
};
posisiambulance = carambulance[0];
posisiambulance.framey = carambulance[0].currentFrame;
posisiambulance.xe = carambulance[0].x;
posisiambulance.ye = carambulance[0].y;
if ((((((carambulanceindex == -1)) && (!((map[0].getChildByName(("mc" + citydipake)).getChildIndex(carambulance[0]) == map[0].getChildByName(("mc" + citydipake)).numChildren))))) || (((!((carambulanceindex == -1))) && (!((map[0].getChildByName(("mc" + citydipake)).getChildIndex(carambulance[0]) == carambulanceindex))))))){
if (carambulance[0] != null){
map[0].getChildByName(("mc" + citydipake)).removeChild(carambulance[0]);
carambulance[0] = null;
};
createambulance();
};
}
public function nextmission(_arg1:MouseEvent):void{
buttonsound.play(0, 1, new SoundTransform(volume));
if (so.data.tutorial == 1){
if (indexpanel < jumlahmisi){
indexpanel++;
tulispanel();
};
};
}
public function timer(_arg1:Event):void{
if (pauseboolean == false){
kuranger--;
if (kuranger <= 0){
kuranger = 25;
detik--;
txttime.text = ((timertemp + " : ") + detik);
if ((((detik <= 0)) && ((timertemp > 0)))){
detik = 59;
txttime.text = ((timertemp + " : ") + detik);
timertemp--;
kuranger = 5;
} else {
if ((((detik <= 0)) && ((timertemp <= 0)))){
stage.removeEventListener(Event.ENTER_FRAME, timer);
if (bolemati == true){
if (tipemisi != "Zombot Zefender"){
defeattext = "Time is up! you must finish the mission before the time expires";
defeat();
trace("defeat");
} else {
if (tipemisi == "Zombot Zefender"){
successsound.play(0, 1, new SoundTransform(volume));
victory();
ending = true;
notallow = true;
trace("victory");
};
};
};
};
};
};
};
}
public function cekpassmap(){
var _local1:Point;
if (map[0].y > -40){
passy = "atas";
map[0].y = -40;
} else {
if (map[0].y <= -1001){
passy = "bawah";
map[0].y = -1001;
trace(("cek batasan bawah: " + carambulance[0].y));
};
};
if (map[0].x > 1911){
passx = "kiri";
map[0].x = 1911;
} else {
if (map[0].x < -3200){
passx = "kanan";
map[0].x = -3200;
};
};
if ((((passy == "atas")) && ((carambulance[0].y < 300)))){
map[0].y = -40;
} else {
if ((((passy == "atas")) && ((carambulance[0].y > 300)))){
passy = "";
};
};
if ((((passy == "bawah")) && ((carambulance[0].y > 1300)))){
map[0].y = -1001;
} else {
if ((((passy == "bawah")) && ((carambulance[0].y < 1300)))){
passy = "";
};
};
if ((((passx == "kiri")) && ((carambulance[0].x < -640)))){
map[0].x = 1911;
} else {
if ((((passx == "kiri")) && ((carambulance[0].x > -640)))){
passx = "";
};
};
if ((((passx == "kanan")) && ((carambulance[0].x > 1600)))){
map[0].x = -3200;
} else {
if ((((passx == "kanan")) && ((carambulance[0].x < 1600)))){
passx = "";
};
};
_local1 = new Point(carambulance[0].x, carambulance[0].y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
if (_local1.x < 0){
carambulance[0].x = 0;
} else {
if (_local1.x > 640){
carambulance[0].x = 640;
};
};
if (_local1.y < 0){
carambulance[0].y = 0;
} else {
if (_local1.y > 480){
carambulance[0].y = 480;
};
};
}
public function buwatwarp2(){
if (civwarping[0] == null){
warpbool = true;
pressWbutton = false;
kecepatan = 0;
civwarping[0] = new (peoplenuninwork);
map[0].getChildByName(("mc" + citydipake)).addChildAt(civwarping[0], map[0].getChildByName(("mc" + citydipake)).getChildIndex(carambulance[0]));
civwarping[0].x = carambulance[0].x;
civwarping[0].y = carambulance[0].y;
civwarping[0].cek = 0;
civwarping[0].speed = 2;
if (tipemisi == "Chubbyman [SPECIAL MISSION]"){
civwarping[0].speed = 0.5;
};
civwarping[0].mc1.gotoAndStop(tamppasien[tempsatu2]);
if ((((tipemisi == "Love Wheel")) && ((tamppasienindex == 2)))){
civwarping[0].mc1.gotoAndStop("brideandgroom");
tempsatu2++;
};
civwarping[0].addEventListener(Event.ENTER_FRAME, endcivwarp2);
};
}
public function okgenerate(_arg1:Event):void{
var _local2:*;
var _local3:*;
mcequip.btnback.removeEventListener(MouseEvent.MOUSE_UP, equipback);
_local2 = false;
_local3 = false;
if (doc == true){
if (mcok1.currentFrame == mcok1.totalFrames){
_local2 = true;
};
if (mcok1.currentLabel == "stamp"){
stampsound.play(0, 1, new SoundTransform(volume));
};
} else {
if (doc == false){
_local2 = true;
};
};
if (nun == true){
if (mcok2.currentFrame == mcok2.totalFrames){
_local3 = true;
};
if (mcok2.currentLabel == "stamp"){
stampsound.play(0, 1, new SoundTransform(volume));
};
} else {
if (nun == false){
_local3 = true;
};
};
if ((((_local2 == true)) && ((_local3 == true)))){
mcequip.btnpredoc.removeEventListener(MouseEvent.CLICK, equippredoctor);
mcequip.btnnextdoc.removeEventListener(MouseEvent.CLICK, equipnextdoctor);
mcequip.btnprenun.removeEventListener(MouseEvent.CLICK, equipprenun);
mcequip.btnnextnun.removeEventListener(MouseEvent.CLICK, equipnextnun);
stage.removeEventListener(Event.ENTER_FRAME, okgenerate);
so.data.selectabledoctor = mcequip.mcdoc.currentFrame;
so.data.selectabledoctortext = mcequip.txt1.text;
so.data.selectablenurse = mcequip.mcnun.currentFrame;
so.data.selectablenursetext = mcequip.txt2.text;
trace(((so.data.selectabledoctor + " & ") + so.data.selectablenurse));
mcequip.gotoAndPlay("fadeout");
objfader = mcequip;
objfadertujuan = "mission";
stage.addEventListener(Event.ENTER_FRAME, fader);
};
}
public function createindianarcher(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 <= Number((3 + so.data.levele))) {
civilian[civilianindex] = new (specialindianarchermc);
map[0].getChildByName(("mc" + citydipake)).addChild(civilian[civilianindex]);
_local2 = map[0].getChildByName(("mc" + citydipake)).getChildByName(("civilianspawn" + lokasipoint));
civilian[civilianindex].x = randRange((_local2.x - 100), (_local2.x + 100));
civilian[civilianindex].y = randRange((_local2.y - 100), (_local2.y + 100));
civilian[civilianindex].dead = "false";
civilian[civilianindex].cekunder = "false";
civilian[civilianindex].civilianname = "zombot";
civilian[civilianindex].civiliantype = specialindianarchermc;
civilian[civilianindex].speed = (randRange((civilianspeed[citydipake] - 1), civilianspeed[citydipake]) / 2);
civilian[civilianindex].attack = civilianhealth[citydipake];
civilian[civilianindex].indexke = civilianindex;
civilian[civilianindex].attackspeed = astemp;
civilian[civilianindex].attackspeedcountdown = 1;
civilian[civilianindex].isslow = "false";
civilian[civilianindex].addEventListener(Event.ENTER_FRAME, zombotmove);
civilianindex++;
_local1++;
};
}
public function createfirehell(){
if (fireimage[0] == null){
firetimer = 50;
fireimage[0] = new (mcingamefirehell);
map[0].getChildByName(("mc" + citydipake)).addChildAt(fireimage[0], map[0].getChildByName(("mc" + citydipake)).numChildren);
fireimage[0].x = carambulance[0].x;
fireimage[0].y = carambulance[0].y;
fireimage[0].targetzombot = targetzombot;
fireimage[0].tipe = 1;
firehellreleasesound.play(0, 1, new SoundTransform(volume));
fireimage[0].addEventListener(Event.ENTER_FRAME, firehellblow);
};
}
public function swapchildrenmap(){
map[0].swapChildren(map[0].getChildByName(("mc" + citydipake)), map[0].getChildByName(("mc" + citysebelum)));
trace(((("DISWAP CHILDREN KE : " + citydipake) + " DENGAN : ") + citysebelum));
}
public function createlaen2(){
var _local1:*;
var _local2:Point;
_local1 = 1;
while (_local1 <= citygasstation[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local1)) != null){
gasstationbool = true;
imageminimap[1] = new (ingameminimapgasmc);
mcminimap.addChildAt(imageminimap[1], mcminimap.numChildren);
_local2 = new Point(map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local1)).x, map[0].getChildByName(("mc" + citydipake)).getChildByName(("gasstation" + _local1)).y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
imageminimap[1].x = (_local2.x * (320 / 1920));
imageminimap[1].y = (_local2.y * (320 / 1920));
};
_local1++;
};
_local1 = 1;
while (_local1 <= cityservice[citydipake]) {
if (map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local1)) != null){
servicebool = true;
imageminimap[2] = new (ingameminimapservicemc);
mcminimap.addChildAt(imageminimap[2], mcminimap.numChildren);
_local2 = new Point(map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local1)).x, map[0].getChildByName(("mc" + citydipake)).getChildByName(("service" + _local1)).y);
_local2 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local2);
imageminimap[2].x = (_local2.x * (320 / 1920));
imageminimap[2].y = (_local2.y * (320 / 1920));
};
_local1++;
};
}
public function cekisi(){
var _local1:Point;
poscar = "";
pressWbutton = false;
_local1 = new Point(carambulance[0].x, carambulance[0].y);
_local1 = map[0].getChildByName(("mc" + citydipake)).localToGlobal(_local1);
if (objectisi == "gas"){
if (mcgas.width < 110){
mcisigas.x = _local1.x;
mcisigas.y = (_local1.y - 100);
stage.addEventListener(Event.ENTER_FRAME, isigas);
};
} else {
if (objectisi == "health"){
if ((((mchealth.width < 110)) || ((mcheat.width < 110)))){
mcisihealth.x = _local1.x;
mcisihealth.y = (_local1.y - 100);
stage.addEventListener(Event.ENTER_FRAME, isigas);
};
};
};
}
public function ambulanceboost(_arg1:Event):void{
if (pauseboolean == false){
timerambulanceboost--;
trace(((("JADINYA : " + maxkecepatan) + " dan ") + kecepatan));
if (timerambulanceboost <= 0){
timerambulanceboost = 125;
ambulanceboostbool = false;
stage.removeEventListener(Event.ENTER_FRAME, ambulanceboost);
maxkecepatan = (maxkecepatan - 3);
kecepatan = (kecepatan - 3);
trace((((" DONE JADINYA : " + maxkecepatan) + " dan ") + kecepatan));
};
};
}
public function cekgantiframe(){
var _local1:*;
var _local2:*;
var _local3:*;
if ((((carambulance[0].rotationindex > 352)) || ((carambulance[0].rotationindex < 8)))){
carambulance[0].gotoAndStop("up");
} else {
if ((((carambulance[0].rotationindex > 82)) && ((carambulance[0].rotationindex < 98)))){
carambulance[0].gotoAndStop("right");
} else {
if ((((carambulance[0].rotationindex > 172)) && ((carambulance[0].rotationindex < 188)))){
carambulance[0].gotoAndStop("down");
} else {
if ((((carambulance[0].rotationindex > 262)) && ((carambulance[0].rotationindex < 278)))){
carambulance[0].gotoAndStop("left");
} else {
if ((((carambulance[0].rotationindex > 0)) && ((carambulance[0].rotationindex < 90)))){
_local1 = 0;
_local2 = 1;
while (_local2 <= 89) {
_local1 = (_local2 + 9);
if ((((carambulance[0].rotationindex >= _local2)) && ((carambulance[0].rotationindex <= _local1)))){
_local3 = ((_local1 / 10) + 1);
if (_local3 > 9){
_local3 = 9;
carambulance[0].gotoAndStop(9);
} else {
carambulance[0].gotoAndStop(_local3);
};
break;
};
_local2 = (_local2 + 10);
};
} else {
if ((((carambulance[0].rotationindex > 90)) && ((carambulance[0].rotationindex < 180)))){
_local1 = 0;
_local2 = 91;
while (_local2 <= 179) {
if (_local2 > 179){
_local2 = 179;
};
_local1 = (_local2 + 9);
if ((((carambulance[0].rotationindex >= _local2)) && ((carambulance[0].rotationindex <= _local1)))){
_local3 = ((_local1 / 10) + 1);
if (_local3 > 18){
_local3 = 18;
carambulance[0].gotoAndStop(_local3);
} else {
carambulance[0].gotoAndStop(_local3);
};
break;
};
_local2 = (_local2 + 10);
};
} else {
if ((((carambulance[0].rotationindex > 180)) && ((carambulance[0].rotationindex < 270)))){
_local1 = 0;
_local2 = 181;
while (_local2 <= 269) {
if (_local2 > 269){
_local2 = 269;
};
_local1 = (_local2 + 9);
if ((((carambulance[0].rotationindex >= _local2)) && ((carambulance[0].rotationindex <= _local1)))){
_local3 = ((_local1 / 10) + 1);
if (_local3 > 27){
_local3 = 27;
carambulance[0].gotoAndStop(_local3);
} else {
carambulance[0].gotoAndStop(_local3);
};
break;
};
_local2 = (_local2 + 10);
};
} else {
if ((((carambulance[0].rotationindex > 270)) && ((carambulance[0].rotationindex < 360)))){
_local1 = 0;
_local2 = 271;
while (_local2 <= 359) {
if (_local2 > 359){
_local2 = 359;
};
_local1 = (_local2 + 9);
if ((((carambulance[0].rotationindex >= _local2)) && ((carambulance[0].rotationindex <= _local1)))){
_local3 = ((_local1 / 10) + 1);
if (_local3 >= 36){
_local3 = 36;
carambulance[0].gotoAndStop(_local3);
} else {
carambulance[0].gotoAndStop(_local3);
};
break;
};
_local2 = (_local2 + 10);
};
};
};
};
};
};
};
};
};
}
public function removesatu(){
if (civilianspecial[0] != null){
map[0].getChildByName(("mc" + citydipake)).getChildByName(("pickuppoint" + civilianspecial[0].waypointke)).visible = false;
map[0].getChildByName(("mc" + citydipake)).removeChild(civilianspecial[0]);
mcminimap.removeChild(civilianminimap[0]);
civilianminimap[0] = null;
civilianspecial[0] = null;
};
}
}
}//package RescuePanicv1_fla
Section 85
//MCEQUIPMENT_452 (RescuePanicv1_fla.MCEQUIPMENT_452)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MCEQUIPMENT_452 extends MovieClip {
public var btnnextnun:SimpleButton;
public var btnpredoc:SimpleButton;
public var mcnun:MovieClip;
public var btnback:SimpleButton;
public var btnnextdoc:SimpleButton;
public var btnprenun:SimpleButton;
public var txt1:TextField;
public var txt2:TextField;
public var mcdoc:MovieClip;
public function MCEQUIPMENT_452(){
addFrameScript(4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 86
//MCHIRE_404 (RescuePanicv1_fla.MCHIRE_404)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MCHIRE_404 extends MovieClip {
public var arrowprevious:SimpleButton;
public var btnback:SimpleButton;
public var btnnurse:SimpleButton;
public var txtmoney:TextField;
public var txthire2:MovieClip;
public var txthirethis2:MovieClip;
public var txthirethis1:MovieClip;
public var btndoctor:SimpleButton;
public var arrownext:SimpleButton;
public var txthire1:MovieClip;
public var mcdoctor2:MovieClip;
public var mcarrowpointer:MovieClip;
public var mcdoctor1:MovieClip;
public var mcnurse1:MovieClip;
public var mcnurse2:MovieClip;
public var btnhire1:SimpleButton;
public var btnhire2:SimpleButton;
public function MCHIRE_404(){
addFrameScript(4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 87
//MCMISSION_423 (RescuePanicv1_fla.MCMISSION_423)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MCMISSION_423 extends MovieClip {
public var btnback:SimpleButton;
public var btnequip:SimpleButton;
public var btnnext:SimpleButton;
public var mcbarfinish:MovieClip;
public var mcpanel1:MovieClip;
public var mcpanel3:MovieClip;
public var btnpre:SimpleButton;
public var mcpanel2:MovieClip;
public var txtbarfinish:TextField;
public function MCMISSION_423(){
addFrameScript(4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 88
//MCUPGRADE_394 (RescuePanicv1_fla.MCUPGRADE_394)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MCUPGRADE_394 extends MovieClip {
public var btnback:SimpleButton;
public var txtmoney:TextField;
public var btn3:SimpleButton;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var btn6:SimpleButton;
public var btn1:SimpleButton;
public var btn4:SimpleButton;
public var btn5:SimpleButton;
public var mc4:MovieClip;
public var btn2:SimpleButton;
public var mc6:MovieClip;
public function MCUPGRADE_394(){
addFrameScript(4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 89
//MISSION_427 (RescuePanicv1_fla.MISSION_427)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MISSION_427 extends MovieClip {
public var mcthumb:MovieClip;
public var titlee:TextField;
public var tipe:MovieClip;
public var reward:TextField;
public var levele:TextField;
public var descriptione:TextField;
}
}//package RescuePanicv1_fla
Section 90
//MISSION_429 (RescuePanicv1_fla.MISSION_429)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MISSION_429 extends MovieClip {
public var ab:MovieClip;
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package RescuePanicv1_fla
Section 91
//MISSION_443 (RescuePanicv1_fla.MISSION_443)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MISSION_443 extends MovieClip {
public var btnx:SimpleButton;
public function MISSION_443(){
addFrameScript(0, frame1, 11, frame12, 24, frame25);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package RescuePanicv1_fla
Section 92
//MISSION_446 (RescuePanicv1_fla.MISSION_446)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class MISSION_446 extends MovieClip {
public var btnyes:SimpleButton;
public var btnno:SimpleButton;
}
}//package RescuePanicv1_fla
Section 93
//PEOPLE_286 (RescuePanicv1_fla.PEOPLE_286)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class PEOPLE_286 extends MovieClip {
public var elec:peopleelec;
}
}//package RescuePanicv1_fla
Section 94
//PEOPLE_293 (RescuePanicv1_fla.PEOPLE_293)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class PEOPLE_293 extends MovieClip {
public function PEOPLE_293(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 79, frame80);
}
function frame80(){
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
}
}
}//package RescuePanicv1_fla
Section 95
//POLICE_259 (RescuePanicv1_fla.POLICE_259)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class POLICE_259 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package RescuePanicv1_fla
Section 96
//PRELOADER_13 (RescuePanicv1_fla.PRELOADER_13)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class PRELOADER_13 extends MovieClip {
public var loadingbar:MovieClip;
public var loadingtxt:TextField;
}
}//package RescuePanicv1_fla
Section 97
//PRELOADER2_23 (RescuePanicv1_fla.PRELOADER2_23)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class PRELOADER2_23 extends MovieClip {
public function PRELOADER2_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 98
//preloaderlogo_328 (RescuePanicv1_fla.preloaderlogo_328)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class preloaderlogo_328 extends MovieClip {
public var connectbtn:SimpleButton;
public function preloaderlogo_328(){
addFrameScript(249, frame250);
}
function frame250(){
stop();
}
}
}//package RescuePanicv1_fla
Section 99
//Symbol10_392 (RescuePanicv1_fla.Symbol10_392)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol10_392 extends MovieClip {
public function Symbol10_392(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 100
//Symbol12_389 (RescuePanicv1_fla.Symbol12_389)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol12_389 extends MovieClip {
public function Symbol12_389(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 101
//Symbol14_386 (RescuePanicv1_fla.Symbol14_386)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol14_386 extends MovieClip {
public function Symbol14_386(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 102
//Symbol17_383 (RescuePanicv1_fla.Symbol17_383)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol17_383 extends MovieClip {
public function Symbol17_383(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 103
//Symbol21_399 (RescuePanicv1_fla.Symbol21_399)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol21_399 extends MovieClip {
public function Symbol21_399(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 104
//Symbol24_408 (RescuePanicv1_fla.Symbol24_408)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol24_408 extends MovieClip {
public function Symbol24_408(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 105
//Symbol26_411 (RescuePanicv1_fla.Symbol26_411)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol26_411 extends MovieClip {
public function Symbol26_411(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 106
//Symbol28_414 (RescuePanicv1_fla.Symbol28_414)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol28_414 extends MovieClip {
public function Symbol28_414(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 107
//Symbol30_418 (RescuePanicv1_fla.Symbol30_418)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol30_418 extends MovieClip {
public function Symbol30_418(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 108
//Symbol318_481 (RescuePanicv1_fla.Symbol318_481)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol318_481 extends MovieClip {
public var blinker:MovieClip;
}
}//package RescuePanicv1_fla
Section 109
//Symbol319_482 (RescuePanicv1_fla.Symbol319_482)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol319_482 extends MovieClip {
public function Symbol319_482(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package RescuePanicv1_fla
Section 110
//Symbol321_502 (RescuePanicv1_fla.Symbol321_502)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol321_502 extends MovieClip {
public function Symbol321_502(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 111
//Symbol328_451 (RescuePanicv1_fla.Symbol328_451)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol328_451 extends MovieClip {
public function Symbol328_451(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 112
//Symbol331_510 (RescuePanicv1_fla.Symbol331_510)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol331_510 extends MovieClip {
public var mc1:MovieClip;
public var txt1:TextField;
public var txt2:TextField;
}
}//package RescuePanicv1_fla
Section 113
//Symbol333_506 (RescuePanicv1_fla.Symbol333_506)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol333_506 extends MovieClip {
public function Symbol333_506(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 114
//Symbol334_426 (RescuePanicv1_fla.Symbol334_426)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol334_426 extends MovieClip {
public function Symbol334_426(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package RescuePanicv1_fla
Section 115
//Symbol337_467 (RescuePanicv1_fla.Symbol337_467)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol337_467 extends MovieClip {
public var mc1:MovieClip;
}
}//package RescuePanicv1_fla
Section 116
//Symbol341_500 (RescuePanicv1_fla.Symbol341_500)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol341_500 extends MovieClip {
public var btnrestart:SimpleButton;
public var btnback:SimpleButton;
public var txt1:TextField;
}
}//package RescuePanicv1_fla
Section 117
//Symbol342_504 (RescuePanicv1_fla.Symbol342_504)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol342_504 extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public var btnproceed:SimpleButton;
}
}//package RescuePanicv1_fla
Section 118
//Symbol383_516 (RescuePanicv1_fla.Symbol383_516)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol383_516 extends MovieClip {
public function Symbol383_516(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 119
//Symbol385_518 (RescuePanicv1_fla.Symbol385_518)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol385_518 extends MovieClip {
public function Symbol385_518(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 120
//Symbol386_471 (RescuePanicv1_fla.Symbol386_471)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol386_471 extends MovieClip {
public function Symbol386_471(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 121
//Symbol387_473 (RescuePanicv1_fla.Symbol387_473)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol387_473 extends MovieClip {
public function Symbol387_473(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 122
//Symbol388_373 (RescuePanicv1_fla.Symbol388_373)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol388_373 extends MovieClip {
public function Symbol388_373(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 123
//Symbol389_375 (RescuePanicv1_fla.Symbol389_375)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol389_375 extends MovieClip {
public function Symbol389_375(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 124
//Symbol390_449 (RescuePanicv1_fla.Symbol390_449)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol390_449 extends MovieClip {
public function Symbol390_449(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 125
//Symbol391_442 (RescuePanicv1_fla.Symbol391_442)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol391_442 extends MovieClip {
public function Symbol391_442(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 126
//Symbol392_457 (RescuePanicv1_fla.Symbol392_457)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol392_457 extends MovieClip {
public function Symbol392_457(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 127
//Symbol398_475 (RescuePanicv1_fla.Symbol398_475)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol398_475 extends MovieClip {
public function Symbol398_475(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 128
//Symbol399_137 (RescuePanicv1_fla.Symbol399_137)
package RescuePanicv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol399_137 extends MovieClip {
public var txt1:TextField;
}
}//package RescuePanicv1_fla
Section 129
//Symbol401copy_508 (RescuePanicv1_fla.Symbol401copy_508)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol401copy_508 extends MovieClip {
public function Symbol401copy_508(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 130
//Symbol402_513 (RescuePanicv1_fla.Symbol402_513)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol402_513 extends MovieClip {
public function Symbol402_513(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 131
//Symbol416_182 (RescuePanicv1_fla.Symbol416_182)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol416_182 extends MovieClip {
public var start1:MovieClip;
public var service1:MovieClip;
public var wayupright10:MovieClip;
public var wayupright11:MovieClip;
public var wayupright12:MovieClip;
public var wayupright13:MovieClip;
public var tree3:MovieClip;
public var tree5:MovieClip;
public var tree6:MovieClip;
public var tree7:MovieClip;
public var tree1:MovieClip;
public var tree2:MovieClip;
public var tree4:MovieClip;
public var tree8:MovieClip;
public var tree9:MovieClip;
public var waydownright1:MovieClip;
public var house1:MovieClip;
public var house2:MovieClip;
public var house3:MovieClip;
public var house4:MovieClip;
public var house5:MovieClip;
public var house7:MovieClip;
public var house8:MovieClip;
public var house9:MovieClip;
public var house6:MovieClip;
public var hospital1:MovieClip;
public var house10:MovieClip;
public var house12:MovieClip;
public var house13:MovieClip;
public var house14:MovieClip;
public var house15:MovieClip;
public var house16:MovieClip;
public var house17:MovieClip;
public var house11:MovieClip;
public var house19:MovieClip;
public var boundary3:MovieClip;
public var boundary4:MovieClip;
public var boundary6:MovieClip;
public var boundary7:MovieClip;
public var boundary8:MovieClip;
public var boundary9:MovieClip;
public var boundary5:MovieClip;
public var house18:MovieClip;
public var boundary2:MovieClip;
public var civilianspawn2:MovieClip;
public var civilianspawn3:MovieClip;
public var civilianspawn4:MovieClip;
public var civilianspawn5:MovieClip;
public var house21:MovieClip;
public var civilianspawn9:MovieClip;
public var house20:MovieClip;
public var civilianspawn7:MovieClip;
public var boundary1:MovieClip;
public var civilianspawn6:MovieClip;
public var civilianspawn8:MovieClip;
public var switcher2:MovieClip;
public var switcher3:MovieClip;
public var civilianspawn1:MovieClip;
public var trafficlamp1:MovieClip;
public var trafficlamp2:MovieClip;
public var trafficlamp3:MovieClip;
public var trafficlamp4:MovieClip;
public var trafficlamp6:MovieClip;
public var trafficlamp7:MovieClip;
public var trafficlamp8:MovieClip;
public var trafficlamp9:MovieClip;
public var trafficlamp5:MovieClip;
public var wayupleft2:MovieClip;
public var wayupleft3:MovieClip;
public var wayupleft4:MovieClip;
public var ground:MovieClip;
public var wayupleft1:MovieClip;
public var pickuppoint10:MovieClip;
public var pickuppoint11:MovieClip;
public var pickuppoint12:MovieClip;
public var pickuppoint13:MovieClip;
public var pickuppoint14:MovieClip;
public var pickuppoint16:MovieClip;
public var pickuppoint17:MovieClip;
public var pickuppoint18:MovieClip;
public var pickuppoint19:MovieClip;
public var pickuppoint15:MovieClip;
public var telephonebox1:MovieClip;
public var pickuppoint20:MovieClip;
public var civilianspawn10:MovieClip;
public var civilianspawn11:MovieClip;
public var civilianspawn12:MovieClip;
public var civilianspawn13:MovieClip;
public var civilianspawn14:MovieClip;
public var civilianspawn15:MovieClip;
public var civilianspawn16:MovieClip;
public var civilianspawn17:MovieClip;
public var civilianspawn18:MovieClip;
public var civilianspawn19:MovieClip;
public var start11:MovieClip;
public var chair1:MovieClip;
public var chair2:MovieClip;
public var chair3:MovieClip;
public var chair4:MovieClip;
public var chair5:MovieClip;
public var civilianspawn20:MovieClip;
public var pickuppoint1:MovieClip;
public var pickuppoint2:MovieClip;
public var pickuppoint4:MovieClip;
public var pickuppoint5:MovieClip;
public var pickuppoint6:MovieClip;
public var pickuppoint7:MovieClip;
public var pickuppoint8:MovieClip;
public var pickuppoint9:MovieClip;
public var pickuppoint3:MovieClip;
public var civiliandown1:MovieClip;
public var trafficlamp10:MovieClip;
public var trafficlamp11:MovieClip;
public var trafficlamp12:MovieClip;
public var tree11:MovieClip;
public var tree12:MovieClip;
public var tree10:MovieClip;
public var civilianup1:MovieClip;
public var blocking1:MovieClip;
public var blocking2:MovieClip;
public var civilianright2:MovieClip;
public var civilianright3:MovieClip;
public var civilianright4:MovieClip;
public var civilianright6:MovieClip;
public var civilianright5:MovieClip;
public var civilianright1:MovieClip;
public var gasstation1:MovieClip;
public var civilianleft1:MovieClip;
public var civilianleft3:MovieClip;
public var civilianleft4:MovieClip;
public var civilianleft5:MovieClip;
public var civilianleft2:MovieClip;
public var civilianleft6:MovieClip;
public var waydownleft1:MovieClip;
public var waydownleft2:MovieClip;
public var waydownleft3:MovieClip;
public var waydownleft4:MovieClip;
public var tree:MovieClip;
public var boundary10:MovieClip;
public var boundary11:MovieClip;
public var boundary12:MovieClip;
public var spawnpoint10:MovieClip;
public var spawnpoint11:MovieClip;
public var spawnpoint12:MovieClip;
public var spawnpoint1:MovieClip;
public var spawnpoint2:MovieClip;
public var spawnpoint3:MovieClip;
public var wayupright1:MovieClip;
public var spawnpoint5:MovieClip;
public var wayupright3:MovieClip;
public var wayupright4:MovieClip;
public var spawnpoint8:MovieClip;
public var wayupright6:MovieClip;
public var wayupright7:MovieClip;
public var spawnpoint4:MovieClip;
public var wayupright9:MovieClip;
public var spawnpoint6:MovieClip;
public var spawnpoint7:MovieClip;
public var spawnpoint9:MovieClip;
public var wayupright8:MovieClip;
public var wayupright2:MovieClip;
public var wayupright5:MovieClip;
}
}//package RescuePanicv1_fla
Section 132
//Symbol428_139 (RescuePanicv1_fla.Symbol428_139)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol428_139 extends MovieClip {
public var start3:MovieClip;
public var wayupright10:MovieClip;
public var tree3:MovieClip;
public var tree5:MovieClip;
public var tree7:MovieClip;
public var tree8:MovieClip;
public var tree2:MovieClip;
public var tree4:MovieClip;
public var tree6:MovieClip;
public var tree9:MovieClip;
public var tree1:MovieClip;
public var barn1:MovieClip;
public var barn2:MovieClip;
public var barn3:MovieClip;
public var barn4:MovieClip;
public var barn5:MovieClip;
public var barn6:MovieClip;
public var barn7:MovieClip;
public var barn8:MovieClip;
public var barn9:MovieClip;
public var waydownright1:MovieClip;
public var house1:MovieClip;
public var house2:MovieClip;
public var house3:MovieClip;
public var house4:MovieClip;
public var house5:MovieClip;
public var house7:MovieClip;
public var house8:MovieClip;
public var house9:MovieClip;
public var house6:MovieClip;
public var hospital1:MovieClip;
public var house10:MovieClip;
public var house12:MovieClip;
public var house13:MovieClip;
public var house14:MovieClip;
public var house15:MovieClip;
public var house16:MovieClip;
public var house17:MovieClip;
public var house11:MovieClip;
public var house19:MovieClip;
public var house18:MovieClip;
public var boundary2:MovieClip;
public var boundary1:MovieClip;
public var civilianspawn2:MovieClip;
public var civilianspawn3:MovieClip;
public var civilianspawn4:MovieClip;
public var civilianspawn5:MovieClip;
public var house21:MovieClip;
public var house23:MovieClip;
public var house24:MovieClip;
public var house20:MovieClip;
public var civilianspawn7:MovieClip;
public var civilianspawn6:MovieClip;
public var house22:MovieClip;
public var switcher1:MovieClip;
public var civilianspawn1:MovieClip;
public var civilianspawn8:MovieClip;
public var civilianspawn9:MovieClip;
public var trafficlamp1:MovieClip;
public var trafficlamp2:MovieClip;
public var trafficlamp3:MovieClip;
public var trafficlamp4:MovieClip;
public var trafficlamp6:MovieClip;
public var trafficlamp7:MovieClip;
public var trafficlamp8:MovieClip;
public var trafficlamp9:MovieClip;
public var wayupleft6:MovieClip;
public var trafficlamp5:MovieClip;
public var wayupleft2:MovieClip;
public var wayupleft3:MovieClip;
public var wayupleft4:MovieClip;
public var ground:MovieClip;
public var wayupleft1:MovieClip;
public var pickuppoint10:MovieClip;
public var pickuppoint12:MovieClip;
public var pickuppoint17:MovieClip;
public var pickuppoint16:MovieClip;
public var pickuppoint11:MovieClip;
public var pickuppoint13:MovieClip;
public var pickuppoint14:MovieClip;
public var pickuppoint15:MovieClip;
public var civilianspawn10:MovieClip;
public var civilianspawn11:MovieClip;
public var civilianspawn12:MovieClip;
public var civilianspawn13:MovieClip;
public var civilianspawn14:MovieClip;
public var civilianspawn15:MovieClip;
public var civilianspawn16:MovieClip;
public var civilianspawn17:MovieClip;
public var chair1:MovieClip;
public var chair2:MovieClip;
public var chair3:MovieClip;
public var chair4:MovieClip;
public var barn10:MovieClip;
public var pickuppoint1:MovieClip;
public var pickuppoint2:MovieClip;
public var pickuppoint4:MovieClip;
public var pickuppoint5:MovieClip;
public var pickuppoint6:MovieClip;
public var pickuppoint7:MovieClip;
public var pickuppoint8:MovieClip;
public var pickuppoint9:MovieClip;
public var civiliandown2:MovieClip;
public var pickuppoint3:MovieClip;
public var civiliandown1:MovieClip;
public var trafficlamp10:MovieClip;
public var civilianup2:MovieClip;
public var civilianup1:MovieClip;
public var blocking1:MovieClip;
public var civilianright2:MovieClip;
public var civilianright4:MovieClip;
public var civilianright6:MovieClip;
public var civilianright7:MovieClip;
public var civilianright8:MovieClip;
public var civilianright3:MovieClip;
public var civilianright9:MovieClip;
public var civilianright5:MovieClip;
public var civilianright1:MovieClip;
public var civilianleft1:MovieClip;
public var civilianleft3:MovieClip;
public var civilianleft4:MovieClip;
public var civilianleft5:MovieClip;
public var civilianleft7:MovieClip;
public var civilianleft8:MovieClip;
public var civilianleft2:MovieClip;
public var civilianleft9:MovieClip;
public var civilianleft6:MovieClip;
public var waydownleft1:MovieClip;
public var waydownleft2:MovieClip;
public var waydownleft3:MovieClip;
public var waydownleft4:MovieClip;
public var tree:MovieClip;
public var spawnpoint10:MovieClip;
public var spawnpoint11:MovieClip;
public var spawnpoint12:MovieClip;
public var spawnpoint13:MovieClip;
public var spawnpoint14:MovieClip;
public var spawnpoint1:MovieClip;
public var spawnpoint2:MovieClip;
public var spawnpoint3:MovieClip;
public var wayupright1:MovieClip;
public var spawnpoint5:MovieClip;
public var spawnpoint6:MovieClip;
public var wayupright4:MovieClip;
public var spawnpoint8:MovieClip;
public var wayupright6:MovieClip;
public var wayupright7:MovieClip;
public var spawnpoint4:MovieClip;
public var wayupright3:MovieClip;
public var spawnpoint7:MovieClip;
public var spawnpoint9:MovieClip;
public var wayupright8:MovieClip;
public var wayupright9:MovieClip;
public var wayupright2:MovieClip;
public var wayupright5:MovieClip;
}
}//package RescuePanicv1_fla
Section 133
//Symbol452_1 (RescuePanicv1_fla.Symbol452_1)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol452_1 extends MovieClip {
public function Symbol452_1(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package RescuePanicv1_fla
Section 134
//Symbol454_2 (RescuePanicv1_fla.Symbol454_2)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol454_2 extends MovieClip {
public function Symbol454_2(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package RescuePanicv1_fla
Section 135
//Symbol455_3 (RescuePanicv1_fla.Symbol455_3)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol455_3 extends MovieClip {
public function Symbol455_3(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
stop();
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 136
//Symbol457_8 (RescuePanicv1_fla.Symbol457_8)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol457_8 extends MovieClip {
public function Symbol457_8(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package RescuePanicv1_fla
Section 137
//Symbol458_11 (RescuePanicv1_fla.Symbol458_11)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol458_11 extends MovieClip {
public function Symbol458_11(){
addFrameScript(0, frame1, 37, frame38);
}
function frame1(){
stop();
}
function frame38(){
stop();
}
}
}//package RescuePanicv1_fla
Section 138
//Symbol459_9 (RescuePanicv1_fla.Symbol459_9)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol459_9 extends MovieClip {
public function Symbol459_9(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package RescuePanicv1_fla
Section 139
//Symbol460_10 (RescuePanicv1_fla.Symbol460_10)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol460_10 extends MovieClip {
public function Symbol460_10(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package RescuePanicv1_fla
Section 140
//Symbol6_379 (RescuePanicv1_fla.Symbol6_379)
package RescuePanicv1_fla {
import flash.display.*;
public dynamic class Symbol6_379 extends MovieClip {
public function Symbol6_379(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RescuePanicv1_fla
Section 141
//badmissionsound (badmissionsound)
package {
import flash.media.*;
public dynamic class badmissionsound extends Sound {
}
}//package
Section 142
//carambulancemc (carambulancemc)
package {
import flash.display.*;
public dynamic class carambulancemc extends MovieClip {
public var arrow:MovieClip;
public var ab:MovieClip;
public var but:MovieClip;
public var head:MovieClip;
public function carambulancemc(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package
Section 143
//carbluecarmc (carbluecarmc)
package {
import flash.display.*;
public dynamic class carbluecarmc extends MovieClip {
public var ass:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 144
//cargreencarmc (cargreencarmc)
package {
import flash.display.*;
public dynamic class cargreencarmc extends MovieClip {
public var ass:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 145
//carpolicecarmc (carpolicecarmc)
package {
import flash.display.*;
public dynamic class carpolicecarmc extends MovieClip {
public var ass:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 146
//carredcar2mc (carredcar2mc)
package {
import flash.display.*;
public dynamic class carredcar2mc extends MovieClip {
public var ass:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 147
//carredtruckmc (carredtruckmc)
package {
import flash.display.*;
public dynamic class carredtruckmc extends MovieClip {
public var ass:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 148
//caryellowcar2mc (caryellowcar2mc)
package {
import flash.display.*;
public dynamic class caryellowcar2mc extends MovieClip {
public var ass:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 149
//caryellowcarmc (caryellowcarmc)
package {
import flash.display.*;
public dynamic class caryellowcarmc extends MovieClip {
public var ass:MovieClip;
public var body:MovieClip;
public var head:MovieClip;
}
}//package
Section 150
//civilianwarp1 (civilianwarp1)
package {
import flash.display.*;
public dynamic class civilianwarp1 extends MovieClip {
}
}//package
Section 151
//civilianwarp2 (civilianwarp2)
package {
import flash.display.*;
public dynamic class civilianwarp2 extends MovieClip {
}
}//package
Section 152
//defeatsound (defeatsound)
package {
import flash.media.*;
public dynamic class defeatsound extends Sound {
}
}//package
Section 153
//goodmissionsound (goodmissionsound)
package {
import flash.media.*;
public dynamic class goodmissionsound extends Sound {
}
}//package
Section 154
//groundmap1 (groundmap1)
package {
import flash.display.*;
public dynamic class groundmap1 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc2:MovieClip;
public var civilianspawn18:MovieClip;
}
}//package
Section 155
//housesmalllamp (housesmalllamp)
package {
import flash.display.*;
public dynamic class housesmalllamp extends MovieClip {
}
}//package
Section 156
//ingameminimapgasmc (ingameminimapgasmc)
package {
import flash.display.*;
public dynamic class ingameminimapgasmc extends MovieClip {
}
}//package
Section 157
//ingameminimaphospitalmc (ingameminimaphospitalmc)
package {
import flash.display.*;
public dynamic class ingameminimaphospitalmc extends MovieClip {
}
}//package
Section 158
//ingameminimapservicemc (ingameminimapservicemc)
package {
import flash.display.*;
public dynamic class ingameminimapservicemc extends MovieClip {
}
}//package
Section 159
//ingameminimaptargetmc (ingameminimaptargetmc)
package {
import flash.display.*;
public dynamic class ingameminimaptargetmc extends MovieClip {
}
}//package
Section 160
//ingamestatminmc (ingamestatminmc)
package {
import flash.display.*;
public dynamic class ingamestatminmc extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 161
//knalpotmc (knalpotmc)
package {
import flash.display.*;
public dynamic class knalpotmc extends MovieClip {
}
}//package
Section 162
//mcingame911 (mcingame911)
package {
import flash.display.*;
public dynamic class mcingame911 extends MovieClip {
}
}//package
Section 163
//mcingamefirehell (mcingamefirehell)
package {
import flash.display.*;
public dynamic class mcingamefirehell extends MovieClip {
public function mcingamefirehell(){
addFrameScript(6, frame7, 21, frame22);
}
function frame7(){
gotoAndPlay(1);
}
function frame22(){
stop();
}
}
}//package
Section 164
//mcingamehelp (mcingamehelp)
package {
import flash.display.*;
public dynamic class mcingamehelp extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 165
//mcingamesloweffect (mcingamesloweffect)
package {
import flash.display.*;
public dynamic class mcingamesloweffect extends MovieClip {
}
}//package
Section 166
//mcingameslowgas (mcingameslowgas)
package {
import flash.display.*;
public dynamic class mcingameslowgas extends MovieClip {
}
}//package
Section 167
//peopleanchor (peopleanchor)
package {
import flash.display.*;
public dynamic class peopleanchor extends MovieClip {
}
}//package
Section 168
//peoplebear (peoplebear)
package {
import flash.display.*;
public dynamic class peoplebear extends MovieClip {
}
}//package
Section 169
//peoplebike (peoplebike)
package {
import flash.display.*;
public dynamic class peoplebike extends MovieClip {
}
}//package
Section 170
//peoplebride (peoplebride)
package {
import flash.display.*;
public dynamic class peoplebride extends MovieClip {
}
}//package
Section 171
//peopleburn (peopleburn)
package {
import flash.display.*;
public dynamic class peopleburn extends MovieClip {
}
}//package
Section 172
//peoplechair (peoplechair)
package {
import flash.display.*;
public dynamic class peoplechair extends MovieClip {
}
}//package
Section 173
//peopledog (peopledog)
package {
import flash.display.*;
public dynamic class peopledog extends MovieClip {
}
}//package
Section 174
//peopleelec (peopleelec)
package {
import flash.display.*;
public dynamic class peopleelec extends MovieClip {
}
}//package
Section 175
//peoplegoldhipo (peoplegoldhipo)
package {
import flash.display.*;
public dynamic class peoplegoldhipo extends MovieClip {
}
}//package
Section 176
//peoplegrill (peoplegrill)
package {
import flash.display.*;
public dynamic class peoplegrill extends MovieClip {
}
}//package
Section 177
//peoplegroom (peoplegroom)
package {
import flash.display.*;
public dynamic class peoplegroom extends MovieClip {
}
}//package
Section 178
//peoplehipo (peoplehipo)
package {
import flash.display.*;
public dynamic class peoplehipo extends MovieClip {
}
}//package
Section 179
//peopleman1mc (peopleman1mc)
package {
import flash.display.*;
public dynamic class peopleman1mc extends MovieClip {
public function peopleman1mc(){
addFrameScript(18, frame19, 38, frame39, 58, frame59, 78, frame79);
}
function frame79(){
gotoAndPlay("right");
}
function frame19(){
gotoAndPlay("down");
}
function frame39(){
gotoAndPlay("up");
}
function frame59(){
gotoAndPlay("left");
}
}
}//package
Section 180
//peopleman2mc (peopleman2mc)
package {
import flash.display.*;
public dynamic class peopleman2mc extends MovieClip {
public function peopleman2mc(){
addFrameScript(18, frame19, 38, frame39, 58, frame59, 78, frame79);
}
function frame79(){
gotoAndPlay("right");
}
function frame19(){
gotoAndPlay("down");
}
function frame39(){
gotoAndPlay("up");
}
function frame59(){
gotoAndPlay("left");
}
}
}//package
Section 181
//peopleman3mc (peopleman3mc)
package {
import flash.display.*;
public dynamic class peopleman3mc extends MovieClip {
public function peopleman3mc(){
addFrameScript(18, frame19, 38, frame39, 58, frame59, 78, frame79);
}
function frame79(){
gotoAndPlay("right");
}
function frame19(){
gotoAndPlay("down");
}
function frame39(){
gotoAndPlay("up");
}
function frame59(){
gotoAndPlay("left");
}
}
}//package
Section 182
//peopleman5mc (peopleman5mc)
package {
import flash.display.*;
public dynamic class peopleman5mc extends MovieClip {
public function peopleman5mc(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 79, frame80);
}
function frame80(){
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
}
}
}//package
Section 183
//peopleman6mc (peopleman6mc)
package {
import flash.display.*;
public dynamic class peopleman6mc extends MovieClip {
public var mc1:MovieClip;
public var hand:MovieClip;
public function peopleman6mc(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 78, frame79);
}
function frame79(){
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
}
}
}//package
Section 184
//peoplenuninwork (peoplenuninwork)
package {
import flash.display.*;
public dynamic class peoplenuninwork extends MovieClip {
public var pickuper:MovieClip;
public var mc1:MovieClip;
public function peoplenuninwork(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 79, frame80);
}
function frame80(){
gotoAndPlay("right");
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
gotoAndPlay("left");
}
}
}//package
Section 185
//peopleunicorn (peopleunicorn)
package {
import flash.display.*;
public dynamic class peopleunicorn extends MovieClip {
}
}//package
Section 186
//peoplewoman1mc (peoplewoman1mc)
package {
import flash.display.*;
public dynamic class peoplewoman1mc extends MovieClip {
public function peoplewoman1mc(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 79, frame80);
}
function frame80(){
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
}
}
}//package
Section 187
//peoplewoman2mc (peoplewoman2mc)
package {
import flash.display.*;
public dynamic class peoplewoman2mc extends MovieClip {
public function peoplewoman2mc(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 79, frame80);
}
function frame80(){
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
}
}
}//package
Section 188
//peoplezombieman1mc (peoplezombieman1mc)
package {
import flash.display.*;
public dynamic class peoplezombieman1mc extends MovieClip {
public var hand:MovieClip;
public function peoplezombieman1mc(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 79, frame80);
}
function frame80(){
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
}
}
}//package
Section 189
//peoplezombiewoman1mc (peoplezombiewoman1mc)
package {
import flash.display.*;
public dynamic class peoplezombiewoman1mc extends MovieClip {
public var hand:MovieClip;
public function peoplezombiewoman1mc(){
addFrameScript(19, frame20, 39, frame40, 59, frame60, 79, frame80);
}
function frame80(){
gotoAndPlay("right");
}
function frame20(){
gotoAndPlay("down");
}
function frame40(){
gotoAndPlay("up");
}
function frame60(){
gotoAndPlay("left");
}
}
}//package
Section 190
//sirensound (sirensound)
package {
import flash.media.*;
public dynamic class sirensound extends Sound {
}
}//package
Section 191
//soundbomb (soundbomb)
package {
import flash.media.*;
public dynamic class soundbomb extends Sound {
}
}//package
Section 192
//soundbowrelease (soundbowrelease)
package {
import flash.media.*;
public dynamic class soundbowrelease extends Sound {
}
}//package
Section 193
//soundbutton (soundbutton)
package {
import flash.media.*;
public dynamic class soundbutton extends Sound {
}
}//package
Section 194
//soundbuy (soundbuy)
package {
import flash.media.*;
public dynamic class soundbuy extends Sound {
}
}//package
Section 195
//soundcarbump (soundcarbump)
package {
import flash.media.*;
public dynamic class soundcarbump extends Sound {
}
}//package
Section 196
//soundcarengine (soundcarengine)
package {
import flash.media.*;
public dynamic class soundcarengine extends Sound {
}
}//package
Section 197
//soundcarstart (soundcarstart)
package {
import flash.media.*;
public dynamic class soundcarstart extends Sound {
}
}//package
Section 198
//sounddeadman1 (sounddeadman1)
package {
import flash.media.*;
public dynamic class sounddeadman1 extends Sound {
}
}//package
Section 199
//sounddeadman2 (sounddeadman2)
package {
import flash.media.*;
public dynamic class sounddeadman2 extends Sound {
}
}//package
Section 200
//sounddeadman3 (sounddeadman3)
package {
import flash.media.*;
public dynamic class sounddeadman3 extends Sound {
}
}//package
Section 201
//sounddeadwoman1 (sounddeadwoman1)
package {
import flash.media.*;
public dynamic class sounddeadwoman1 extends Sound {
}
}//package
Section 202
//sounddeadwoman2 (sounddeadwoman2)
package {
import flash.media.*;
public dynamic class sounddeadwoman2 extends Sound {
}
}//package
Section 203
//soundfirehellrelease (soundfirehellrelease)
package {
import flash.media.*;
public dynamic class soundfirehellrelease extends Sound {
}
}//package
Section 204
//soundgunshot (soundgunshot)
package {
import flash.media.*;
public dynamic class soundgunshot extends Sound {
}
}//package
Section 205
//soundheadpop (soundheadpop)
package {
import flash.media.*;
public dynamic class soundheadpop extends Sound {
}
}//package
Section 206
//soundheartbeat (soundheartbeat)
package {
import flash.media.*;
public dynamic class soundheartbeat extends Sound {
}
}//package
Section 207
//soundhorncar1 (soundhorncar1)
package {
import flash.media.*;
public dynamic class soundhorncar1 extends Sound {
}
}//package
Section 208
//soundhorncar2 (soundhorncar2)
package {
import flash.media.*;
public dynamic class soundhorncar2 extends Sound {
}
}//package
Section 209
//soundhorncar3 (soundhorncar3)
package {
import flash.media.*;
public dynamic class soundhorncar3 extends Sound {
}
}//package
Section 210
//soundintro (soundintro)
package {
import flash.media.*;
public dynamic class soundintro extends Sound {
}
}//package
Section 211
//soundlever (soundlever)
package {
import flash.media.*;
public dynamic class soundlever extends Sound {
}
}//package
Section 212
//soundopeningCG (soundopeningCG)
package {
import flash.media.*;
public dynamic class soundopeningCG extends Sound {
}
}//package
Section 213
//soundpickup (soundpickup)
package {
import flash.media.*;
public dynamic class soundpickup extends Sound {
}
}//package
Section 214
//soundsmash (soundsmash)
package {
import flash.media.*;
public dynamic class soundsmash extends Sound {
}
}//package
Section 215
//soundstamp (soundstamp)
package {
import flash.media.*;
public dynamic class soundstamp extends Sound {
}
}//package
Section 216
//soundsuccess (soundsuccess)
package {
import flash.media.*;
public dynamic class soundsuccess extends Sound {
}
}//package
Section 217
//soundwarning (soundwarning)
package {
import flash.media.*;
public dynamic class soundwarning extends Sound {
}
}//package
Section 218
//soundzombieattack (soundzombieattack)
package {
import flash.media.*;
public dynamic class soundzombieattack extends Sound {
}
}//package
Section 219
//specialarabianmc (specialarabianmc)
package {
import flash.display.*;
public dynamic class specialarabianmc extends MovieClip {
}
}//package
Section 220
//specialbasketmc (specialbasketmc)
package {
import flash.display.*;
public dynamic class specialbasketmc extends MovieClip {
}
}//package
Section 221
//specialchubbymc (specialchubbymc)
package {
import flash.display.*;
public dynamic class specialchubbymc extends MovieClip {
}
}//package
Section 222
//specialeskimomc (specialeskimomc)
package {
import flash.display.*;
public dynamic class specialeskimomc extends MovieClip {
}
}//package
Section 223
//specialindianarcherarrowmc (specialindianarcherarrowmc)
package {
import flash.display.*;
public dynamic class specialindianarcherarrowmc extends MovieClip {
public function specialindianarcherarrowmc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 224
//specialindianarchermc (specialindianarchermc)
package {
import flash.display.*;
public dynamic class specialindianarchermc extends MovieClip {
public var hand:MovieClip;
public function specialindianarchermc(){
addFrameScript(2, frame3, 5, frame6, 8, frame9, 11, frame12);
}
function frame12(){
gotoAndPlay("up");
}
function frame3(){
gotoAndPlay("down");
}
function frame6(){
gotoAndPlay("left");
}
function frame9(){
gotoAndPlay("right");
}
}
}//package
Section 225
//specialindianmc (specialindianmc)
package {
import flash.display.*;
public dynamic class specialindianmc extends MovieClip {
}
}//package
Section 226
//specialmaduramc (specialmaduramc)
package {
import flash.display.*;
public dynamic class specialmaduramc extends MovieClip {
}
}//package
Section 227
//specialvampiremc (specialvampiremc)
package {
import flash.display.*;
public dynamic class specialvampiremc extends MovieClip {
public function specialvampiremc(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
stop();
}
function frame62(){
stop();
}
}
}//package
Section 228
//victorysound (victorysound)
package {
import flash.media.*;
public dynamic class victorysound extends Sound {
}
}//package