Section 1
//KeyPoll (bigroom.input.KeyPoll)
package bigroom.input {
import flash.utils.*;
import flash.events.*;
import flash.display.*;
public class KeyPoll {
private var states:ByteArray;
private var dispObj:DisplayObject;
public function KeyPoll(_arg1:DisplayObject){
states = new ByteArray();
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
states.writeUnsignedInt(0);
dispObj = _arg1;
dispObj.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener, false, 0, true);
dispObj.addEventListener(KeyboardEvent.KEY_UP, keyUpListener, false, 0, true);
dispObj.addEventListener(Event.ACTIVATE, activateListener, false, 0, true);
dispObj.addEventListener(Event.DEACTIVATE, deactivateListener, false, 0, true);
}
public function isUp(_arg1:uint):Boolean{
return (((states[(_arg1 >>> 3)] & (1 << (_arg1 & 7))) == 0));
}
private function activateListener(_arg1:Event):void{
var _local2:int;
_local2 = 0;
while (_local2 < 8) {
states[_local2] = 0;
_local2++;
};
}
private function deactivateListener(_arg1:Event):void{
var _local2:int;
_local2 = 0;
while (_local2 < 8) {
states[_local2] = 0;
_local2++;
};
}
public function isDown(_arg1:uint):Boolean{
return (!(((states[(_arg1 >>> 3)] & (1 << (_arg1 & 7))) == 0)));
}
private function keyDownListener(_arg1:KeyboardEvent):void{
states[(_arg1.keyCode >>> 3)] = (states[(_arg1.keyCode >>> 3)] | (1 << (_arg1.keyCode & 7)));
}
private function keyUpListener(_arg1:KeyboardEvent):void{
states[(_arg1.keyCode >>> 3)] = (states[(_arg1.keyCode >>> 3)] & ~((1 << (_arg1.keyCode & 7))));
}
}
}//package bigroom.input
Section 2
//__Hero_lvl_1_251 (Copyofold__FRESH_START_fla.__Hero_lvl_1_251)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class __Hero_lvl_1_251 extends MovieClip {
public var h:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 3
//__Level1_322 (Copyofold__FRESH_START_fla.__Level1_322)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class __Level1_322 extends MovieClip {
public function __Level1_322(){
addFrameScript(0, frame1, 19, frame20, 39, frame40, 59, frame60, 79, frame80, 120, frame121);
}
function frame80(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame40(){
stop();
}
function frame121(){
stop();
}
function frame60(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 4
//_3_1_1_102 (Copyofold__FRESH_START_fla._3_1_1_102)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _3_1_1_102 extends MovieClip {
public function _3_1_1_102(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 5
//_3_1_11111_100 (Copyofold__FRESH_START_fla._3_1_11111_100)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _3_1_11111_100 extends MovieClip {
public function _3_1_11111_100(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 6
//_3_1_333333_95 (Copyofold__FRESH_START_fla._3_1_333333_95)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _3_1_333333_95 extends MovieClip {
public function _3_1_333333_95(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 7
//_3_1_43_101 (Copyofold__FRESH_START_fla._3_1_43_101)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _3_1_43_101 extends MovieClip {
public function _3_1_43_101(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 8
//_3_1_43543_103 (Copyofold__FRESH_START_fla._3_1_43543_103)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _3_1_43543_103 extends MovieClip {
public function _3_1_43543_103(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 9
//_3_1_5656_104 (Copyofold__FRESH_START_fla._3_1_5656_104)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _3_1_5656_104 extends MovieClip {
public function _3_1_5656_104(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 10
//_4_1_11_116 (Copyofold__FRESH_START_fla._4_1_11_116)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _4_1_11_116 extends MovieClip {
public function _4_1_11_116(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 11
//_4_1_34_114 (Copyofold__FRESH_START_fla._4_1_34_114)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _4_1_34_114 extends MovieClip {
public function _4_1_34_114(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 12
//_4_1_435_115 (Copyofold__FRESH_START_fla._4_1_435_115)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _4_1_435_115 extends MovieClip {
public function _4_1_435_115(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 13
//_4_1_5555_110 (Copyofold__FRESH_START_fla._4_1_5555_110)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _4_1_5555_110 extends MovieClip {
public function _4_1_5555_110(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 14
//_4_2_324223_121 (Copyofold__FRESH_START_fla._4_2_324223_121)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _4_2_324223_121 extends MovieClip {
public function _4_2_324223_121(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 15
//_4_2_456456546_119 (Copyofold__FRESH_START_fla._4_2_456456546_119)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _4_2_456456546_119 extends MovieClip {
public function _4_2_456456546_119(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 16
//_5_1_15_153 (Copyofold__FRESH_START_fla._5_1_15_153)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _5_1_15_153 extends MovieClip {
public function _5_1_15_153(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 17
//_5_1_18_147 (Copyofold__FRESH_START_fla._5_1_18_147)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _5_1_18_147 extends MovieClip {
public function _5_1_18_147(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 18
//_5_1_32112213_146 (Copyofold__FRESH_START_fla._5_1_32112213_146)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _5_1_32112213_146 extends MovieClip {
public function _5_1_32112213_146(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 19
//_5_1_32232443_156 (Copyofold__FRESH_START_fla._5_1_32232443_156)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _5_1_32232443_156 extends MovieClip {
public function _5_1_32232443_156(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 20
//_5_1_3242342_152 (Copyofold__FRESH_START_fla._5_1_3242342_152)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _5_1_3242342_152 extends MovieClip {
public function _5_1_3242342_152(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 21
//_5_1_5_151 (Copyofold__FRESH_START_fla._5_1_5_151)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _5_1_5_151 extends MovieClip {
public function _5_1_5_151(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 22
//_5_1_66456_154 (Copyofold__FRESH_START_fla._5_1_66456_154)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _5_1_66456_154 extends MovieClip {
public function _5_1_66456_154(){
addFrameScript(174, frame175);
}
function frame175(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 23
//_en_1_ds2_217 (Copyofold__FRESH_START_fla._en_1_ds2_217)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _en_1_ds2_217 extends MovieClip {
public function _en_1_ds2_217(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 24
//_en_2_ds2_en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__221 (Copyofold__FRESH_START_fla._en_2_ds2_en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__221)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class _en_2_ds2_en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__221 extends MovieClip {
public function _en_2_ds2_en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__en_2__221(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 25
//546645456_127 (Copyofold__FRESH_START_fla.546645456_127)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class 546645456_127 extends MovieClip {
public function 546645456_127(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 26
//addddddddddddddddddddddddddSymbol9_umrql_gysenica_408 (Copyofold__FRESH_START_fla.addddddddddddddddddddddddddSymbol9_umrql_gysenica_408)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class addddddddddddddddddddddddddSymbol9_umrql_gysenica_408 extends MovieClip {
public function addddddddddddddddddddddddddSymbol9_umrql_gysenica_408(){
addFrameScript(149, frame150);
}
function frame150(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 27
//AllMovies_EXPORT_MC_19 (Copyofold__FRESH_START_fla.AllMovies_EXPORT_MC_19)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class AllMovies_EXPORT_MC_19 extends MovieClip {
public function AllMovies_EXPORT_MC_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 28
//AllSounds_EXPORT_MC_474 (Copyofold__FRESH_START_fla.AllSounds_EXPORT_MC_474)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class AllSounds_EXPORT_MC_474 extends MovieClip {
public function AllSounds_EXPORT_MC_474(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 29
//asdf32sdf_403 (Copyofold__FRESH_START_fla.asdf32sdf_403)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class asdf32sdf_403 extends MovieClip {
public function asdf32sdf_403(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 30
//asdsa_endgame_162 (Copyofold__FRESH_START_fla.asdsa_endgame_162)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class asdsa_endgame_162 extends MovieClip {
public function asdsa_endgame_162(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 31
//bomb_preloader_3 (Copyofold__FRESH_START_fla.bomb_preloader_3)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class bomb_preloader_3 extends MovieClip {
public var loaderbar:MovieClip;
public function bomb_preloader_3(){
addFrameScript(0, frame1, 214, frame215);
}
function frame215(){
stop();
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 32
//bomb_smoker3_17 (Copyofold__FRESH_START_fla.bomb_smoker3_17)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class bomb_smoker3_17 extends MovieClip {
public var sm:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 33
//bomb_smoker4_16 (Copyofold__FRESH_START_fla.bomb_smoker4_16)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class bomb_smoker4_16 extends MovieClip {
public var sm:MovieClip;
public function bomb_smoker4_16(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 34
//boss_2_move2323_205 (Copyofold__FRESH_START_fla.boss_2_move2323_205)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class boss_2_move2323_205 extends MovieClip {
public var ryka2:MovieClip;
public var ryka:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 35
//boss_hb_190 (Copyofold__FRESH_START_fla.boss_hb_190)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class boss_hb_190 extends MovieClip {
public var hb:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 36
//ChainGun_UpperPart_260 (Copyofold__FRESH_START_fla.ChainGun_UpperPart_260)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class ChainGun_UpperPart_260 extends MovieClip {
public var redDot:MovieClip;
public function ChainGun_UpperPart_260(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 37
//content_movienew_menu_456 (Copyofold__FRESH_START_fla.content_movienew_menu_456)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class content_movienew_menu_456 extends MovieClip {
public var high_btn:MovieClip;
public var med_btn:MovieClip;
public var low_btn:MovieClip;
public function content_movienew_menu_456(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 38
//creditscroller_183 (Copyofold__FRESH_START_fla.creditscroller_183)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class creditscroller_183 extends MovieClip {
public function creditscroller_183(){
addFrameScript(654, frame655);
}
function frame655(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 39
//DeadMoviesHolder_399 (Copyofold__FRESH_START_fla.DeadMoviesHolder_399)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class DeadMoviesHolder_399 extends MovieClip {
public function DeadMoviesHolder_399(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 40
//deathzayo_248 (Copyofold__FRESH_START_fla.deathzayo_248)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class deathzayo_248 extends MovieClip {
public function deathzayo_248(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 41
//deathzayo_257 (Copyofold__FRESH_START_fla.deathzayo_257)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class deathzayo_257 extends MovieClip {
public function deathzayo_257(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 42
//deathzayo_279 (Copyofold__FRESH_START_fla.deathzayo_279)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class deathzayo_279 extends MovieClip {
public function deathzayo_279(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 43
//deathzayo_288 (Copyofold__FRESH_START_fla.deathzayo_288)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class deathzayo_288 extends MovieClip {
public function deathzayo_288(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 44
//dfg_endgame_166 (Copyofold__FRESH_START_fla.dfg_endgame_166)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class dfg_endgame_166 extends MovieClip {
public function dfg_endgame_166(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 45
//die_skin_3_228 (Copyofold__FRESH_START_fla.die_skin_3_228)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class die_skin_3_228 extends MovieClip {
public function die_skin_3_228(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 46
//dsasad_49 (Copyofold__FRESH_START_fla.dsasad_49)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class dsasad_49 extends MovieClip {
public var karuchka:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 47
//edvaliaaa_60 (Copyofold__FRESH_START_fla.edvaliaaa_60)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class edvaliaaa_60 extends MovieClip {
public function edvaliaaa_60(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 48
//Enemy_Health_bar_214 (Copyofold__FRESH_START_fla.Enemy_Health_bar_214)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Enemy_Health_bar_214 extends MovieClip {
public var hb:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 49
//Fade_471 (Copyofold__FRESH_START_fla.Fade_471)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Fade_471 extends MovieClip {
public function Fade_471(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 50
//Fade_479 (Copyofold__FRESH_START_fla.Fade_479)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Fade_479 extends MovieClip {
public function Fade_479(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 51
//fade567aaa_71 (Copyofold__FRESH_START_fla.fade567aaa_71)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class fade567aaa_71 extends MovieClip {
public function fade567aaa_71(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 52
//fadeaaa_87 (Copyofold__FRESH_START_fla.fadeaaa_87)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class fadeaaa_87 extends MovieClip {
public function fadeaaa_87(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 53
//FadeInMovie_472 (Copyofold__FRESH_START_fla.FadeInMovie_472)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class FadeInMovie_472 extends MovieClip {
public function FadeInMovie_472(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 54
//FadeOutMovie_473 (Copyofold__FRESH_START_fla.FadeOutMovie_473)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class FadeOutMovie_473 extends MovieClip {
public function FadeOutMovie_473(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 55
//gddd_endgame_163 (Copyofold__FRESH_START_fla.gddd_endgame_163)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class gddd_endgame_163 extends MovieClip {
public function gddd_endgame_163(){
addFrameScript(279, frame280);
}
function frame280(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 56
//ghfghfghfgh_56 (Copyofold__FRESH_START_fla.ghfghfghfgh_56)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class ghfghfghfgh_56 extends MovieClip {
public function ghfghfghfgh_56(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 57
//govoreneaaa_68 (Copyofold__FRESH_START_fla.govoreneaaa_68)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class govoreneaaa_68 extends MovieClip {
public function govoreneaaa_68(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 58
//Hero_262 (Copyofold__FRESH_START_fla.Hero_262)
package Copyofold__FRESH_START_fla {
import hero.*;
import flash.display.*;
public dynamic class Hero_262 extends MovieClip {
public var h:Skin_2;
}
}//package Copyofold__FRESH_START_fla
Section 59
//hero_jump_247 (Copyofold__FRESH_START_fla.hero_jump_247)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class hero_jump_247 extends MovieClip {
public function hero_jump_247(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 60
//hi_btn_459 (Copyofold__FRESH_START_fla.hi_btn_459)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class hi_btn_459 extends MovieClip {
public function hi_btn_459(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 61
//hint_439 (Copyofold__FRESH_START_fla.hint_439)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class hint_439 extends MovieClip {
public function hint_439(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 62
//HUD__AmmoBar_296 (Copyofold__FRESH_START_fla.HUD__AmmoBar_296)
package Copyofold__FRESH_START_fla {
import flash.text.*;
import flash.display.*;
public dynamic class HUD__AmmoBar_296 extends MovieClip {
public var ammo:TextField;
public function HUD__AmmoBar_296(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 14, frame15);
}
function frame10(){
stop();
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 63
//hud_health_293 (Copyofold__FRESH_START_fla.hud_health_293)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class hud_health_293 extends MovieClip {
public var hb:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 64
//hud_radiation_298 (Copyofold__FRESH_START_fla.hud_radiation_298)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class hud_radiation_298 extends MovieClip {
public var rb:MovieClip;
}
}//package Copyofold__FRESH_START_fla
Section 65
//InfoAnim_435 (Copyofold__FRESH_START_fla.InfoAnim_435)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class InfoAnim_435 extends MovieClip {
public function InfoAnim_435(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 66
//InsufficientAmmo_297 (Copyofold__FRESH_START_fla.InsufficientAmmo_297)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class InsufficientAmmo_297 extends MovieClip {
public function InsufficientAmmo_297(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 67
//kjlkjlklj_55 (Copyofold__FRESH_START_fla.kjlkjlklj_55)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class kjlkjlklj_55 extends MovieClip {
public function kjlkjlklj_55(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 68
//level1_1_74 (Copyofold__FRESH_START_fla.level1_1_74)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class level1_1_74 extends MovieClip {
public function level1_1_74(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 69
//level1_5_73 (Copyofold__FRESH_START_fla.level1_5_73)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class level1_5_73 extends MovieClip {
public function level1_5_73(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 70
//Lever_320 (Copyofold__FRESH_START_fla.Lever_320)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Lever_320 extends MovieClip {
public function Lever_320(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 71
//low_btn_457 (Copyofold__FRESH_START_fla.low_btn_457)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class low_btn_457 extends MovieClip {
public function low_btn_457(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 72
//lvl_1_jump_255 (Copyofold__FRESH_START_fla.lvl_1_jump_255)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class lvl_1_jump_255 extends MovieClip {
public function lvl_1_jump_255(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 73
//lvl_2_s432e_267 (Copyofold__FRESH_START_fla.lvl_2_s432e_267)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class lvl_2_s432e_267 extends MovieClip {
public function lvl_2_s432e_267(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 74
//lvl_2_s432e_278 (Copyofold__FRESH_START_fla.lvl_2_s432e_278)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class lvl_2_s432e_278 extends MovieClip {
public function lvl_2_s432e_278(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 75
//lvl_2_s432e_287 (Copyofold__FRESH_START_fla.lvl_2_s432e_287)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class lvl_2_s432e_287 extends MovieClip {
public function lvl_2_s432e_287(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 76
//MainTimeline (Copyofold__FRESH_START_fla.MainTimeline)
package Copyofold__FRESH_START_fla {
import flash.net.*;
import flash.events.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
import map.*;
import windows.*;
import hero.*;
import enemies.*;
public dynamic class MainTimeline extends MovieClip {
public var theRoot:MovieClip;
public var movieNum:int;
public var isMute:Boolean;
public var preloader:Preloader;
public var soundObj:Object;
public var gameLoaded:Boolean;
public var windowManager:WindowManager;
public var mapMngrInited:Boolean;
public var firstTime:Boolean;
public var mapManager:MapManager;
public var ekran:MovieClip;
public var shadowsLayer:MovieClip;
public var fullSound:Number;
public var cinema:Cinema;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3);
}
public function restart(_arg1:Event=null):void{
mapManager.substract_1();
movieNum--;
playCinema();
}
public function initGame():void{
cinema = new Cinema(soundObj);
cinema.x = (stage.stageWidth / 2);
cinema.y = (stage.stageHeight / 2);
cinema.addEventListener(Cinema.END_MOVIE, afterCinemaFunction, false, 0, true);
windowManager = new WindowManager(theRoot, soundObj, movieNum);
windowManager.addEventListener(WindowManager.START, playCinema, false, 0, true);
windowManager.addEventListener(WindowManager.MAIN, backToMain, false, 0, true);
windowManager.addEventListener(WindowManager.RESTART, restart, false, 0, true);
windowManager.addEventListener(WindowManager.MUTE, toggleMute, false, 0, true);
shadowsLayer = new Shadows();
addChild(shadowsLayer);
ekran = new Ekran();
addChild(ekran);
ekran.mouseEnabled = false;
shadowsLayer.gotoAndStop(5);
mapManager = new MapManager(theRoot, windowManager, shadowsLayer, soundObj);
playCinema();
}
public function playCinema(_arg1:Event=null):void{
if (windowManager.cinemaVar != null){
if (windowManager.cinemaVar.num != null){
movieNum = (windowManager.cinemaVar.num - 1);
windowManager.cinemaVar.num = null;
};
};
if (windowManager.cinemaVar != null){
if (windowManager.cinemaVar.fade != undefined){
if (windowManager.cinemaVar.fade == "fade"){
windowManager.cinemaVar.fade = null;
cinema.addMe(theRoot, ++movieNum, mapManager, true);
return;
};
};
};
cinema.addMe(theRoot, ++movieNum, mapManager);
}
function frame3(){
stop();
mapMngrInited = false;
soundObj = {vol:0.1, mute:false};
firstTime = true;
movieNum = 0;
isMute = false;
fullSound = 0.2;
stop();
FRESH_START();
}
function frame1(){
stop();
gameLoaded = false;
preloader.stop();
preloader.logo_mc.stop();
preloader.logo_mc.loaderbar.stop();
preloader.addEventListener(Event.ENTER_FRAME, updatePreloader, false, 0, true);
preloader.link_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoArc, false);
}
public function showWindowManager():void{
windowManager.attachStart();
}
public function updatePreloader(_arg1:Event):void{
var _local2:Number;
_local2 = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
if (_local2 != 100){
preloader.logo_mc.loaderbar.gotoAndStop(int(_local2));
} else {
if (!(gameLoaded)){
gameLoaded = true;
preloader.logo_mc.play();
};
if (preloader.logo_mc.currentFrame == preloader.logo_mc.totalFrames){
preloader.logo_mc.gotoAndStop(preloader.logo_mc.totalFrames);
preloader.removeEventListener(Event.ENTER_FRAME, updatePreloader, false);
this.gotoAndPlay(2);
};
};
}
public function toggleMute(_arg1:Event=null):void{
if (isMute){
isMute = false;
cinema.setVolume(fullSound);
windowManager.setVolume(fullSound);
mapManager.setVolume(fullSound);
} else {
if (!(isMute)){
isMute = true;
cinema.setVolume(0);
windowManager.setVolume(0);
mapManager.setVolume(0);
};
};
}
public function backToMain(_arg1:Event=null):void{
windowManager.attachStart();
windowManager.addMe();
movieNum = 0;
}
public function FRESH_START():void{
theRoot = new MovieClip();
addChild(theRoot);
initGame();
}
public function updateMap(_arg1:Event=null):void{
theRoot.addChild(mapManager);
theRoot.setChildIndex(mapManager, 0);
mapManager.gotoNextLevel();
mapManager.resume();
}
public function afterCinemaFunction(_arg1:Event=null):void{
if (windowManager.mustRestart){
windowManager.attachStart();
windowManager.mustRestart = false;
movieNum = 0;
mapManager.resetAllProperties();
} else {
if (!(firstTime)){
updateMap();
} else {
firstTime = false;
showWindowManager();
};
};
}
public function gotoArc(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
}
}//package Copyofold__FRESH_START_fla
Section 77
//med_btn_458 (Copyofold__FRESH_START_fla.med_btn_458)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class med_btn_458 extends MovieClip {
public function med_btn_458(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 78
//movie2_404 (Copyofold__FRESH_START_fla.movie2_404)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class movie2_404 extends MovieClip {
public function movie2_404(){
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 79
//movieHolder3_407 (Copyofold__FRESH_START_fla.movieHolder3_407)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class movieHolder3_407 extends MovieClip {
public function movieHolder3_407(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 80
//ne6tosiaaa_67 (Copyofold__FRESH_START_fla.ne6tosiaaa_67)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class ne6tosiaaa_67 extends MovieClip {
public function ne6tosiaaa_67(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 81
//Objectives_Inner_476 (Copyofold__FRESH_START_fla.Objectives_Inner_476)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Objectives_Inner_476 extends MovieClip {
public function Objectives_Inner_476(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 82
//pakne6tosiaaa_62 (Copyofold__FRESH_START_fla.pakne6tosiaaa_62)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class pakne6tosiaaa_62 extends MovieClip {
public function pakne6tosiaaa_62(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 83
//remakezayoaaa_81 (Copyofold__FRESH_START_fla.remakezayoaaa_81)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class remakezayoaaa_81 extends MovieClip {
public function remakezayoaaa_81(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 84
//showKeyInfocopy4_301 (Copyofold__FRESH_START_fla.showKeyInfocopy4_301)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class showKeyInfocopy4_301 extends MovieClip {
public function showKeyInfocopy4_301(){
addFrameScript(92, frame93);
}
function frame93(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 85
//shushulka__1_309 (Copyofold__FRESH_START_fla.shushulka__1_309)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class shushulka__1_309 extends MovieClip {
public function shushulka__1_309(){
addFrameScript(0, frame1, 46, frame47);
}
function frame1(){
stop();
}
function frame47(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 86
//Skarida_death_487 (Copyofold__FRESH_START_fla.Skarida_death_487)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Skarida_death_487 extends MovieClip {
public function Skarida_death_487(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 87
//Symbol1_311 (Copyofold__FRESH_START_fla.Symbol1_311)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol1_311 extends MovieClip {
public var ground_1:MovieClip;
public function Symbol1_311(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 88
//Symbol1_34 (Copyofold__FRESH_START_fla.Symbol1_34)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol1_34 extends MovieClip {
public function Symbol1_34(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 89
//Symbol1_400 (Copyofold__FRESH_START_fla.Symbol1_400)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol1_400 extends MovieClip {
public function Symbol1_400(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 90
//Symbol1_level_5_bg_358 (Copyofold__FRESH_START_fla.Symbol1_level_5_bg_358)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol1_level_5_bg_358 extends MovieClip {
public function Symbol1_level_5_bg_358(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 91
//Symbol10_47 (Copyofold__FRESH_START_fla.Symbol10_47)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol10_47 extends MovieClip {
public function Symbol10_47(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 92
//Symbol12_43 (Copyofold__FRESH_START_fla.Symbol12_43)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol12_43 extends MovieClip {
public function Symbol12_43(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 93
//Symbol17_194 (Copyofold__FRESH_START_fla.Symbol17_194)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol17_194 extends MovieClip {
public function Symbol17_194(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 94
//Symbol17_level_1_bg_308 (Copyofold__FRESH_START_fla.Symbol17_level_1_bg_308)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol17_level_1_bg_308 extends MovieClip {
public function Symbol17_level_1_bg_308(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 95
//Symbol2_313 (Copyofold__FRESH_START_fla.Symbol2_313)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol2_313 extends MovieClip {
public var ground_2:MovieClip;
public function Symbol2_313(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 96
//Symbol2_444 (Copyofold__FRESH_START_fla.Symbol2_444)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol2_444 extends MovieClip {
public var men:MovieClip;
public function Symbol2_444(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 97
//Symbol22_195 (Copyofold__FRESH_START_fla.Symbol22_195)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol22_195 extends MovieClip {
public function Symbol22_195(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 98
//Symbol24_32 (Copyofold__FRESH_START_fla.Symbol24_32)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol24_32 extends MovieClip {
public function Symbol24_32(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 99
//Symbol2aaa_85 (Copyofold__FRESH_START_fla.Symbol2aaa_85)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol2aaa_85 extends MovieClip {
public function Symbol2aaa_85(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 100
//Symbol3_315 (Copyofold__FRESH_START_fla.Symbol3_315)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol3_315 extends MovieClip {
public var ground_3:MovieClip;
public function Symbol3_315(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 101
//Symbol4_131 (Copyofold__FRESH_START_fla.Symbol4_131)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol4_131 extends MovieClip {
public function Symbol4_131(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 102
//Symbol4_240 (Copyofold__FRESH_START_fla.Symbol4_240)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol4_240 extends MovieClip {
public function Symbol4_240(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 103
//Symbol4_317 (Copyofold__FRESH_START_fla.Symbol4_317)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol4_317 extends MovieClip {
public var ground_4:MovieClip;
public function Symbol4_317(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 104
//Symbol4_37 (Copyofold__FRESH_START_fla.Symbol4_37)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol4_37 extends MovieClip {
public function Symbol4_37(){
addFrameScript(102, frame103);
}
function frame103(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 105
//Symbol44_137 (Copyofold__FRESH_START_fla.Symbol44_137)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol44_137 extends MovieClip {
public function Symbol44_137(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 106
//Symbol5_134 (Copyofold__FRESH_START_fla.Symbol5_134)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol5_134 extends MovieClip {
public function Symbol5_134(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 107
//Symbol5_39 (Copyofold__FRESH_START_fla.Symbol5_39)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol5_39 extends MovieClip {
public function Symbol5_39(){
addFrameScript(214, frame215);
}
function frame215(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 108
//Symbol5_level_5_bg_361 (Copyofold__FRESH_START_fla.Symbol5_level_5_bg_361)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol5_level_5_bg_361 extends MovieClip {
public function Symbol5_level_5_bg_361(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 109
//Symbol6_135 (Copyofold__FRESH_START_fla.Symbol6_135)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol6_135 extends MovieClip {
public function Symbol6_135(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 110
//Symbol7_136 (Copyofold__FRESH_START_fla.Symbol7_136)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol7_136 extends MovieClip {
public function Symbol7_136(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 111
//Symbol7_364 (Copyofold__FRESH_START_fla.Symbol7_364)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol7_364 extends MovieClip {
public function Symbol7_364(){
addFrameScript(199, frame200);
}
function frame200(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 112
//Symbol7_endgame_175 (Copyofold__FRESH_START_fla.Symbol7_endgame_175)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol7_endgame_175 extends MovieClip {
public function Symbol7_endgame_175(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 113
//Symbol7_level_5_bg_357 (Copyofold__FRESH_START_fla.Symbol7_level_5_bg_357)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol7_level_5_bg_357 extends MovieClip {
public function Symbol7_level_5_bg_357(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 114
//Symbol7UMIRANE_5_427 (Copyofold__FRESH_START_fla.Symbol7UMIRANE_5_427)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol7UMIRANE_5_427 extends MovieClip {
public function Symbol7UMIRANE_5_427(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 115
//Symbol8_41 (Copyofold__FRESH_START_fla.Symbol8_41)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol8_41 extends MovieClip {
public function Symbol8_41(){
addFrameScript(124, frame125);
}
function frame125(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 116
//Symbol8_endgame_173 (Copyofold__FRESH_START_fla.Symbol8_endgame_173)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol8_endgame_173 extends MovieClip {
public function Symbol8_endgame_173(){
addFrameScript(208, frame209);
}
function frame209(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 117
//Symbol9_138 (Copyofold__FRESH_START_fla.Symbol9_138)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol9_138 extends MovieClip {
public function Symbol9_138(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 118
//Symbol9_42 (Copyofold__FRESH_START_fla.Symbol9_42)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol9_42 extends MovieClip {
public function Symbol9_42(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 119
//Symbol9_level_3_bg_334 (Copyofold__FRESH_START_fla.Symbol9_level_3_bg_334)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class Symbol9_level_3_bg_334 extends MovieClip {
public function Symbol9_level_3_bg_334(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 120
//thislooksinterestingaaa_82 (Copyofold__FRESH_START_fla.thislooksinterestingaaa_82)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class thislooksinterestingaaa_82 extends MovieClip {
public function thislooksinterestingaaa_82(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 121
//tret_endgame_170 (Copyofold__FRESH_START_fla.tret_endgame_170)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class tret_endgame_170 extends MovieClip {
public function tret_endgame_170(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 122
//UMIRANE_4_CINEMA_4_DIE_419 (Copyofold__FRESH_START_fla.UMIRANE_4_CINEMA_4_DIE_419)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class UMIRANE_4_CINEMA_4_DIE_419 extends MovieClip {
public function UMIRANE_4_CINEMA_4_DIE_419(){
addFrameScript(199, frame200);
}
function frame200(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 123
//UMIRANE_5_425 (Copyofold__FRESH_START_fla.UMIRANE_5_425)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class UMIRANE_5_425 extends MovieClip {
public function UMIRANE_5_425(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 124
//xZCzxxzc_en_3__234 (Copyofold__FRESH_START_fla.xZCzxxzc_en_3__234)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class xZCzxxzc_en_3__234 extends MovieClip {
public function xZCzxxzc_en_3__234(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 125
//zaekadeath_umrql_gysenica_410 (Copyofold__FRESH_START_fla.zaekadeath_umrql_gysenica_410)
package Copyofold__FRESH_START_fla {
import flash.display.*;
public dynamic class zaekadeath_umrql_gysenica_410 extends MovieClip {
public function zaekadeath_umrql_gysenica_410(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Copyofold__FRESH_START_fla
Section 126
//Boss_1 (enemies.Boss_1)
package enemies {
import flash.display.*;
public class Boss_1 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 7
private var DIST:int;// = 165
private var alive:Boolean;// = true
private var DMG:int;// = 15
private var PEAK:int;// = 15
private var HITS2:int;// = -15
public function Boss_1(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=2000, _arg4:Object=null):void{
alive = true;
MAX_VX = 7;
DMG = 15;
HITS2 = -15;
PEAK = 15;
DIST = 165;
super();
addFrameScript(0, frame1);
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
function frame1(){
stop();
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = (life / orgLife);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 127
//Boss_2 (enemies.Boss_2)
package enemies {
import flash.display.*;
public class Boss_2 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 13
private var DIST:int;// = 165
private var alive:Boolean;// = true
public var gyz:MovieClip;
private var DMG:int;// = 15
private var PEAK:int;// = 15
private var HITS2:int;// = -15
public function Boss_2(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=2000, _arg4:Object=null):void{
alive = true;
MAX_VX = 13;
DMG = 15;
HITS2 = -15;
PEAK = 15;
DIST = 165;
super();
addFrameScript(0, frame1, 4, frame5, 9, frame10);
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame5(){
stop();
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = (life / orgLife);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 128
//EnemyWithLegs (enemies.EnemyWithLegs)
package enemies {
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.utils.*;
import bigroom.input.*;
public class EnemyWithLegs {
private var sound:Sound;
private var MAX_VX:Number;// = 1
private var MAX_VY:Number;// = 25
private var DIST:Number;// = 85
private var GRAVITY:Number;// = 2
private var vx:Number;// = 3
private var vy:Number;// = 3
private var onGround:Boolean;// = true
private var DMG:Number;// = 5
private var key:KeyPoll;
private var targ:MovieClip;
private var INC_VX:Number;// = 0.2
private var PEAK:Number;// = 15
private var h:MovieClip;
private var l:MovieClip;
private var p:MovieClip;
private var HITS1:Number;// = 0
private var HITS2:Number;// = -10
private var JUMP_VY:Number;// = 25
private var soundObj:Object;
private var FRICTION:Number;// = 0.7
public function EnemyWithLegs(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:Object=null):void{
INC_VX = 0.2;
JUMP_VY = 25;
FRICTION = 0.7;
GRAVITY = 2;
MAX_VY = 25;
HITS1 = 0;
MAX_VX = 1;
DMG = 5;
HITS2 = -10;
PEAK = 15;
DIST = 85;
vx = 3;
vy = 3;
onGround = true;
super();
soundObj = _arg4;
this.h = _arg1;
this.p = _arg2;
targ = _arg3;
}
public function changeProperties(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
MAX_VX = _arg1;
DMG = _arg2;
HITS2 = _arg3;
PEAK = _arg4;
DIST = _arg5;
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
} else {
if (h.y > 1000){
h.y = targ.y;
h.x = (targ.x - 375);
};
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
private function playFireSound():void{
var _local1:XML;
var _local2:Class;
var _local3:SoundChannel;
_local1 = describeType(h);
_local2 = (getDefinitionByName((("sounds." + _local1.@name.substr(-6, 6)) + "_fire")) as Class);
sound = (new (_local2) as Sound);
_local3 = sound.play();
_local3.soundTransform = new SoundTransform(soundObj.vol);
}
public function update():void{
checkBounds();
moveToHero();
applyMoves();
}
private function moveToHero():void{
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
return;
};
HITS1++;
if ((((h.currentLabel == "fire")) && ((HITS1 == PEAK)))){
if ((h.y - targ.y) < 50){
doDamage(DMG);
};
HITS1 = HITS2;
};
if (targ.x < h.x){
h.scaleX = 1;
h.hb.scaleX = Math.abs(h.hb.scaleX);
if (Math.abs((targ.x - h.x)) < DIST){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
if (targ.x > h.x){
h.scaleX = -1;
h.hb.scaleX = -(Math.abs(h.hb.scaleX));
if (Math.abs((targ.x - h.x)) < DIST){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
vx = (vx * FRICTION);
};
};
}
public function doDamage(_arg1:int):void{
targ.takeDamage(_arg1);
}
private function checkBounds():void{
var _local1:Point;
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
}
}
}//package enemies
Section 129
//EnemyWithWings (enemies.EnemyWithWings)
package enemies {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import bigroom.input.*;
public class EnemyWithWings {
private var sound:Sound;
private var MAX_VX:Number;// = 3
private var MAX_VY:Number;// = 6
private var DIST:Number;// = 85
private var GRAVITY:Number;// = 2
private var vx:Number;// = 3
private var vy:Number;// = 3
private var onGround:Boolean;// = true
private var DMG:Number;// = 5
private var key:KeyPoll;
private var targ:MovieClip;
private var INC_VX:Number;// = 1
private var INC_VY:Number;// = 1
private var PEAK:Number;// = 15
private var h:MovieClip;
private var p:MovieClip;
private var HITS1:Number;// = 0
private var HITS2:Number;// = -10
private var JUMP_VY:Number;// = 25
private var soundObj:Object;
private var FRICTION:Number;// = 0.7
public function EnemyWithWings(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:Object=null):void{
INC_VX = 1;
INC_VY = 1;
JUMP_VY = 25;
FRICTION = 0.7;
GRAVITY = 2;
MAX_VX = 3;
MAX_VY = 6;
HITS1 = 0;
HITS2 = -10;
PEAK = 15;
DMG = 5;
DIST = 85;
vx = 3;
vy = 3;
onGround = true;
super();
soundObj = _arg4;
this.h = _arg1;
this.p = _arg2;
targ = _arg3;
}
public function changeProperties(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):void{
MAX_VX = _arg1;
MAX_VY = _arg2;
DMG = _arg3;
HITS2 = _arg4;
PEAK = _arg5;
DIST = _arg6;
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
private function playFireSound():void{
var _local1:XML;
var _local2:Class;
var _local3:SoundChannel;
_local1 = describeType(h);
_local2 = (getDefinitionByName((("sounds." + _local1.@name.substr(-6, 6)) + "_fire")) as Class);
sound = (new (_local2) as Sound);
_local3 = sound.play();
_local3.soundTransform = new SoundTransform(soundObj.vol);
}
public function update():void{
moveToHero();
applyMoves();
}
private function moveToHero():void{
if (targ.x < h.x){
h.scaleX = 1;
h.hb.scaleX = Math.abs(h.hb.scaleX);
if (Math.abs((targ.x - h.x)) < DIST){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
if (targ.x > h.x){
h.scaleX = -1;
h.hb.scaleX = -(Math.abs(h.hb.scaleX));
if (Math.abs((targ.x - h.x)) < DIST){
vx = 0;
if (((onGround) && (!((h.currentLabel == "fire"))))){
h.gotoAndStop("fire");
HITS1 = 0;
};
} else {
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
if (((onGround) && (!((h.currentLabel == "move"))))){
h.gotoAndStop("move");
};
};
} else {
vx = (vx * FRICTION);
};
};
if (targ.y < (h.y + DIST)){
if (Math.abs(((targ.y - h.y) + DIST)) < 1){
vy = 0;
} else {
vy = (vy - ((vy)>-(MAX_VY)) ? INC_VY : 0);
};
} else {
if (targ.y > (h.y + DIST)){
if (Math.abs(((targ.y - h.y) + DIST)) < 1){
vy = 0;
} else {
vy = (vy + ((vy)<MAX_VY) ? INC_VY : 0);
};
};
};
HITS1++;
if ((((h.currentLabel == "fire")) && ((HITS1 == PEAK)))){
if ((h.y - targ.y) < 50){
doDamage(DMG);
};
HITS1 = HITS2;
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
public function doDamage(_arg1:int):void{
targ.takeDamage(_arg1);
}
}
}//package enemies
Section 130
//Skin_1 (enemies.Skin_1)
package enemies {
import flash.display.*;
public class Skin_1 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 8
private var DIST:int;// = 85
private var alive:Boolean;// = true
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_1(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 8;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 85;
super();
addFrameScript(4, frame5);
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
function frame5(){
stop();
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 131
//Skin_2 (enemies.Skin_2)
package enemies {
import flash.display.*;
public class Skin_2 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 11
private var DIST:int;// = 75
private var alive:Boolean;// = true
private var DMG:int;// = 4
private var PEAK:int;// = 18
private var HITS2:int;// = -7
public function Skin_2(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=60, _arg4:Object=null):void{
alive = true;
MAX_VX = 11;
DMG = 4;
HITS2 = -7;
PEAK = 18;
DIST = 75;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 132
//Skin_3 (enemies.Skin_3)
package enemies {
import flash.display.*;
public class Skin_3 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 12
private var DIST:int;// = 75
private var alive:Boolean;// = true
private var MAX_VY:int;// = 12
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_3(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 12;
MAX_VY = 12;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 75;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithWings(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, MAX_VY, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 133
//Skin_4 (enemies.Skin_4)
package enemies {
import flash.display.*;
public class Skin_4 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 15
private var DIST:int;// = 45
private var alive:Boolean;// = true
private var MAX_VY:int;// = 15
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_4(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 15;
MAX_VY = 15;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 45;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithWings(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, MAX_VY, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 134
//Skin_5 (enemies.Skin_5)
package enemies {
import flash.display.*;
public class Skin_5 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 5
private var DIST:int;// = 85
private var alive:Boolean;// = true
private var DMG:int;// = 10
private var PEAK:int;// = 8
private var HITS2:int;// = -7
public function Skin_5(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 5;
DMG = 10;
HITS2 = -7;
PEAK = 8;
DIST = 85;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 135
//Skin_6 (enemies.Skin_6)
package enemies {
import flash.display.*;
public class Skin_6 extends MovieClip {
private var orgLife:int;
public var hb:MovieClip;
private var life:int;
private var p:MovieClip;
private var soundObj:Object;
public var e:MovieClip;
private var moveB:Object;
private var MAX_VX:int;// = 5
private var DIST:int;// = 85
private var alive:Boolean;// = true
private var DMG:int;// = 7
private var PEAK:int;// = 15
private var HITS2:int;// = -10
public function Skin_6(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=100, _arg4:Object=null):void{
alive = true;
MAX_VX = 5;
DMG = 7;
HITS2 = -10;
PEAK = 15;
DIST = 85;
super();
soundObj = _arg4;
this.life = _arg3;
orgLife = _arg3;
moveB = new EnemyWithLegs(this, _arg1, _arg2, _arg4);
moveB.changeProperties(MAX_VX, DMG, HITS2, PEAK, DIST);
}
public function enterFrameHandler():void{
if (alive){
moveB.update();
};
}
public function die():void{
alive = false;
gotoAndStop("die");
}
public function takeDamage(_arg1:int):Boolean{
life = (life - _arg1);
if (life < 0){
life = 0;
};
hb.hb.scaleX = ((life / orgLife) / 2);
if (life <= 0){
return (true);
};
return (false);
}
}
}//package enemies
Section 136
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 137
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!(arguments.length)){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!(isNaN(_arg2))){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!(this.useSeconds)){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 138
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 139
//AkaW (hero.AkaW)
package hero {
import flash.display.*;
public dynamic class AkaW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function AkaW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 140
//AkaW_g (hero.AkaW_g)
package hero {
import flash.display.*;
public dynamic class AkaW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function AkaW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 141
//BatW (hero.BatW)
package hero {
import flash.display.*;
public dynamic class BatW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function BatW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 142
//BatW_g (hero.BatW_g)
package hero {
import flash.display.*;
public dynamic class BatW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function BatW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 143
//ChaingunW (hero.ChaingunW)
package hero {
import flash.display.*;
public dynamic class ChaingunW extends MovieClip {
public var easel:MovieClip;
public var chainGun:MovieClip;
}
}//package hero
Section 144
//Data (hero.Data)
package hero {
public class Data {
private var wave1:Array;
private var wave2:Array;
private var wave3:Array;
private var wave4:Array;
private var wave5:Array;
private var level1:Array;
private var level2:Array;
private var level3:Array;
private var level4:Array;
private var level5:Array;
private var items3:Array;
private var items5:Array;
private var items1:Array;
private var items2:Array;
private var items4:Array;
public function Data():void{
level1 = new Array();
level2 = new Array();
level3 = new Array();
level4 = new Array();
level5 = new Array();
wave1 = new Array();
wave2 = new Array();
wave3 = new Array();
wave4 = new Array();
wave5 = new Array();
items1 = new Array();
items2 = new Array();
items3 = new Array();
items4 = new Array();
items5 = new Array();
super();
level1 = [{x:3445, type:"intro_stalactite"}, {x:23435, type:"Fight3"}, {x:32600, type:"endLevel"}, {x:829, type:"Stalactite"}, {x:1016, type:"Stalactite"}, {x:1193, type:"Stalactite"}, {x:2646, type:"Stalactite"}, {x:2865, type:"Stalactite"}, {x:3105, type:"Stalactite"}, {x:5919, type:"Stalactite"}, {x:6139, type:"Stalactite"}, {x:6379, type:"Stalactite"}, {x:8203, type:"Stalactite"}, {x:8601, type:"Stalactite"}, {x:8939, type:"Stalactite"}, {x:10506, type:"Fight"}, {x:12406, type:"Fight2"}, {x:16910, msg:"Warning!\n Road fork approach!", label:"warning", type:"Info"}, {x:17730, msg:"Press F\n to take the right way!", label:"lever", type:"Info"}, {x:18206, type:"Lever"}, {x:18412, type:"Lever"}, {x:1645, type:"Bridge"}, {x:0x0707, type:"Bridge"}, {x:1956, type:"Bridge"}, {x:2135, type:"Bridge"}, {x:23875, msg:"Press 1, 2, 3, 4 \nto change your weapon!", label:"warning", type:"Info"}, {x:5954, msg:"Warning!\n Big pot-hole approach! ", label:"warning", type:"Info"}, {x:6506, msg:"Repeatedly pump D key !!!", label:"pumpD", type:"Info"}, {x:6516, type:"Jump"}, {x:7811, type:"Jump"}, {x:896, angle:"2", type:"Rotate"}, {x:1505, angle:"-3", type:"Rotate"}, {x:2070, angle:"3", type:"Rotate"}, {x:2784, angle:"-3", type:"Rotate"}, {x:3551, angle:"5", type:"Rotate"}, {x:4590, angle:"2", type:"Rotate"}, {x:5691, angle:"-3", type:"Rotate"}, {x:8703, angle:"-1", type:"Rotate"}, {x:9865, angle:"2", type:"Rotate"}, {x:12505, angle:"-3", type:"Rotate"}, {x:13316, angle:"3", type:"Rotate"}, {x:15543, angle:"-3", type:"Rotate"}, {x:16817, angle:"2", type:"Rotate"}, {x:20460, angle:"-4 ", type:"Rotate"}, {x:22568, angle:"5", type:"Rotate"}, {x:575, x2:95, y2:254, skin:"Skin_4", life:30, type:"spawn"}, {x:727, x2:247, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:-221, x2:259, y2:167, skin:"Skin_4", life:30, type:"spawn"}, {x:1025, x2:545, y2:254, skin:"Skin_4", life:30, type:"spawn"}, {x:1126, x2:646, y2:0xFF, skin:"Skin_4", life:30, type:"spawn"}, {x:1275, x2:795, y2:261, skin:"Skin_4", life:30, type:"spawn"}, {x:329, x2:809, y2:167, skin:"Skin_4", life:30, type:"spawn"}, {x:400, x2:880, y2:151, skin:"Skin_4", life:120, type:"spawn"}, {x:1377, x2:897, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:1575, x2:1095, y2:272, skin:"Skin_4", life:30, type:"spawn"}, {x:679, x2:1159, y2:167, skin:"Skin_4", life:30, type:"spawn"}, {x:1927, x2:1447, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:1975, x2:1495, y2:268, skin:"Skin_4", life:30, type:"spawn"}, {x:1025, x2:1505, y2:192, skin:"Skin_4", life:30, type:"spawn"}, {x:1325, x2:1805, y2:192, skin:"Skin_4", life:30, type:"spawn"}, {x:2625, x2:3105, y2:192, skin:"Skin_4", life:30, type:"spawn"}, {x:3682, x2:3202, y2:261, skin:"Skin_4", life:30, type:"spawn"}, {x:3989, x2:3509, y2:279, skin:"Skin_4", life:30, type:"spawn"}, {x:3325, x2:3805, y2:192, skin:"Skin_4", life:30, type:"spawn"}, {x:4351, x2:3871, y2:297, skin:"Skin_4", life:30, type:"spawn"}, {x:3525, x2:4005, y2:192, skin:"Skin_4", life:30, type:"spawn"}, {x:4664, x2:4184, y2:347, skin:"Skin_4", life:30, type:"spawn"}, {x:4677, x2:4197, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:4727, x2:4247, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:3825, x2:4305, y2:192, skin:"Skin_4", life:30, type:"spawn"}, {x:3945, x2:4425, y2:318, skin:"Skin_4", life:120, type:"spawn"}, {x:4932, x2:4452, y2:386, skin:"Skin_4", life:30, type:"spawn"}, {x:5133, x2:4653, y2:406, skin:"Skin_4", life:30, type:"spawn"}, {x:5287, x2:4807, y2:422, skin:"Skin_4", life:30, type:"spawn"}, {x:4664, x2:5144, y2:225, skin:"Skin_4", life:30, type:"spawn"}, {x:4814, x2:5294, y2:225, skin:"Skin_4", life:30, type:"spawn"}, {x:5843, x2:5363, y2:442, skin:"Skin_4", life:30, type:"spawn"}, {x:5877, x2:0x1515, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:5943, x2:5463, y2:442, skin:"Skin_4", life:30, type:"spawn"}, {x:6127, x2:5647, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:5361, x2:5841, y2:245, skin:"Skin_4", life:30, type:"spawn"}, {x:6341, x2:5861, y2:467, skin:"Skin_4", life:30, type:"spawn"}, {x:5561, x2:6041, y2:250, skin:"Skin_4", life:30, type:"spawn"}, {x:5761, x2:6241, y2:250, skin:"Skin_4", life:30, type:"spawn"}, {x:6868, x2:6388, y2:428, skin:"Skin_4", life:30, type:"spawn"}, {x:6877, x2:6397, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:5945, x2:0x1919, y2:318, skin:"Skin_4", life:120, type:"spawn"}, {x:8277, x2:7797, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:8357, x2:7877, y2:525, skin:"Skin_4", life:30, type:"spawn"}, {x:8507, x2:8027, y2:525, skin:"Skin_4", life:30, type:"spawn"}, {x:7596, x2:8076, y2:236, skin:"Skin_4", life:30, type:"spawn"}, {x:8659, x2:8179, y2:508, skin:"Skin_4", life:30, type:"spawn"}, {x:7796, x2:8276, y2:236, skin:"Skin_4", life:30, type:"spawn"}, {x:7945, x2:8425, y2:318, skin:"Skin_4", life:120, type:"spawn"}, {x:8048, x2:8528, y2:248, skin:"Skin_4", life:30, type:"spawn"}, {x:9121, x2:8641, y2:485, skin:"Skin_4", life:30, type:"spawn"}, {x:9327, x2:8847, y2:483, skin:"Skin_4", life:30, type:"spawn"}, {x:8393, x2:8873, y2:294, skin:"Skin_4", life:30, type:"spawn"}, {x:9477, x2:8997, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:8642, x2:9122, y2:317, skin:"Skin_4", life:30, type:"spawn"}, {x:9945, x2:9465, y2:431, skin:"Skin_4", life:30, type:"spawn"}, {x:8994, x2:9474, y2:333, skin:"Skin_4", life:30, type:"spawn"}, {x:10145, x2:9665, y2:431, skin:"Skin_4", life:30, type:"spawn"}, {x:10295, x2:9815, y2:431, skin:"Skin_4", life:30, type:"spawn"}, {x:10395, x2:9915, y2:436, skin:"Skin_4", life:30, type:"spawn"}, {x:10427, x2:9947, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:9516, x2:9996, y2:345, skin:"Skin_4", life:30, type:"spawn"}, {x:10895, x2:10415, y2:481, skin:"Skin_4", life:30, type:"spawn"}, {x:10895, x2:10415, y2:481, skin:"Skin_5", life:30, type:"spawn"}, {x:9945, x2:10425, y2:318, skin:"Skin_4", life:120, type:"spawn"}, {x:9965, x2:10445, y2:364, skin:"Skin_4", life:30, type:"spawn"}, {x:11095, x2:10615, y2:481, skin:"Skin_5", life:30, type:"spawn"}, {x:10316, x2:10796, y2:364, skin:"Skin_4", life:30, type:"spawn"}, {x:11327, x2:10847, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:11395, x2:10915, y2:481, skin:"Skin_4", life:30, type:"spawn"}, {x:11395, x2:10915, y2:481, skin:"Skin_5", life:30, type:"spawn"}, {x:11395, x2:10915, y2:481, skin:"Skin_4", life:30, type:"spawn"}, {x:10666, x2:11146, y2:364, skin:"Skin_5", life:30, type:"spawn"}, {x:11795, x2:11315, y2:481, skin:"Skin_5", life:30, type:"spawn"}, {x:10866, x2:11346, y2:364, skin:"Skin_4", life:30, type:"spawn"}, {x:10866, x2:11346, y2:364, skin:"Skin_5", life:30, type:"spawn"}, {x:12177, x2:11697, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:12177, x2:11697, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:12245, x2:11765, y2:480, skin:"Skin_5", life:30, type:"spawn"}, {x:11316, x2:11796, y2:364, skin:"Skin_5", life:30, type:"spawn"}, {x:11666, x2:12146, y2:364, skin:"Skin_4", life:30, type:"spawn"}, {x:11666, x2:12146, y2:364, skin:"Skin_5", life:30, type:"spawn"}, {x:12645, x2:12165, y2:480, skin:"Skin_4", life:30, type:"spawn"}, {x:12645, x2:12165, y2:480, skin:"Skin_5", life:30, type:"spawn"}, {x:11916, x2:12396, y2:364, skin:"Skin_5", life:30, type:"spawn"}, {x:12877, x2:12397, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:12877, x2:12397, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:13214, x2:12734, y2:409, skin:"Skin_4", life:30, type:"spawn"}, {x:12316, x2:12796, y2:364, skin:"Skin_5", life:30, type:"spawn"}, {x:13520, x2:13040, y2:399, skin:"Skin_4", life:30, type:"spawn"}, {x:12666, x2:13146, y2:364, skin:"Skin_4", life:30, type:"spawn"}, {x:13827, x2:13347, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:13864, x2:13384, y2:422, skin:"Skin_4", life:30, type:"spawn"}, {x:13116, x2:13596, y2:364, skin:"Skin_4", life:30, type:"spawn"}, {x:16214, x2:15734, y2:537, skin:"Skin_4", life:30, type:"spawn"}, {x:16414, x2:0x3E3E, y2:537, skin:"Skin_4", life:30, type:"spawn"}, {x:15466, x2:15946, y2:364, skin:"Skin_4", life:30, type:"spawn"}, {x:16427, x2:15947, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:15668, x2:16148, y2:455, skin:"Skin_4", life:30, type:"spawn"}, {x:16864, x2:0x4000, y2:537, skin:"Skin_4", life:30, type:"spawn"}, {x:15916, x2:16396, y2:0x0202, skin:"Skin_4", life:30, type:"spawn"}, {x:16034, x2:16514, y2:315, skin:"Skin_4", life:120, type:"spawn"}, {x:17027, x2:16547, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:16275, x2:16755, y2:520, skin:"Skin_4", life:30, type:"spawn"}, {x:17364, x2:16884, y2:537, skin:"Skin_4", life:30, type:"spawn"}, {x:17464, x2:16984, y2:537, skin:"Skin_4", life:30, type:"spawn"}, {x:17927, x2:17447, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:17964, x2:17484, y2:537, skin:"Skin_4", life:30, type:"spawn"}, {x:17073, x2:17553, y2:527, skin:"Skin_4", life:30, type:"spawn"}, {x:17273, x2:17753, y2:527, skin:"Skin_4", life:30, type:"spawn"}, {x:17425, x2:17905, y2:532, skin:"Skin_4", life:30, type:"spawn"}, {x:18455, x2:17975, y2:515, skin:"Skin_4", life:30, type:"spawn"}, {x:18677, x2:18197, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:18889, x2:18409, y2:549, skin:"Skin_4", life:30, type:"spawn"}, {x:18034, x2:18514, y2:315, skin:"Skin_4", life:120, type:"spawn"}, {x:19039, x2:18559, y2:543, skin:"Skin_4", life:30, type:"spawn"}, {x:18173, x2:18653, y2:527, skin:"Skin_4", life:30, type:"spawn"}, {x:18373, x2:18853, y2:527, skin:"Skin_4", life:30, type:"spawn"}, {x:19389, x2:18909, y2:536, skin:"Skin_4", life:30, type:"spawn"}, {x:19527, x2:19047, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:18573, x2:19053, y2:527, skin:"Skin_4", life:30, type:"spawn"}, {x:19691, x2:19211, y2:537, skin:"Skin_4", life:30, type:"spawn"}, {x:18823, x2:19303, y2:527, skin:"Skin_4", life:30, type:"spawn"}, {x:21727, x2:21247, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:20769, x2:21249, y2:546, skin:"Skin_4", life:30, type:"spawn"}, {x:21757, x2:21277, y2:471, skin:"Skin_4", life:30, type:"spawn"}, {x:21827, x2:21347, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:22071, x2:21591, y2:447, skin:"Skin_4", life:30, type:"spawn"}, {x:21315, x2:21795, y2:481, skin:"Skin_4", life:30, type:"spawn"}, {x:22373, x2:21893, y2:393, skin:"Skin_4", life:30, type:"spawn"}, {x:21611, x2:22091, y2:420, skin:"Skin_4", life:30, type:"spawn"}, {x:22577, x2:22097, y2:339, skin:"Skin_4", life:30, type:"spawn"}, {x:22927, x2:22447, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:21975, x2:22455, y2:374, skin:"Skin_4", life:30, type:"spawn"}, {x:22034, x2:22514, y2:315, skin:"Skin_4", life:120, type:"spawn"}, {x:23033, x2:22553, y2:291, skin:"Skin_4", life:30, type:"spawn"}, {x:22273, x2:22753, y2:392, skin:"Skin_4", life:30, type:"spawn"}, {x:22571, x2:23051, y2:407, skin:"Skin_4", life:30, type:"spawn"}, {x:23582, x2:23102, y2:319, skin:"Skin_4", life:30, type:"spawn"}, {x:23877, x2:23397, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:24032, x2:0x5C00, y2:319, skin:"Skin_4", life:30, type:"spawn"}, {x:23217, x2:23697, y2:415, skin:"Skin_4", life:30, type:"spawn"}, {x:24703, x2:24223, y2:297, skin:"Skin_4", life:30, type:"spawn"}, {x:23764, x2:24244, y2:414, skin:"Skin_4", life:30, type:"spawn"}, {x:24853, x2:24373, y2:297, skin:"Skin_5", life:30, type:"spawn"}, {x:24034, x2:24514, y2:315, skin:"Skin_5", life:120, type:"spawn"}, {x:24114, x2:24594, y2:414, skin:"Skin_4", life:30, type:"spawn"}, {x:25227, x2:24747, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:25481, x2:25001, y2:353, skin:"Skin_5", life:30, type:"spawn"}, {x:24564, x2:25044, y2:436, skin:"Skin_5", life:30, type:"spawn"}, {x:25581, x2:25101, y2:353, skin:"Skin_4", life:30, type:"spawn"}, {x:24764, x2:25244, y2:436, skin:"Skin_5", life:30, type:"spawn"}, {x:24864, x2:0x6300, y2:436, skin:"Skin_4", life:30, type:"spawn"}, {x:25034, x2:25514, y2:315, skin:"Skin_4", life:120, type:"spawn"}, {x:25076, x2:25556, y2:393, skin:"Skin_5", life:30, type:"spawn"}, {x:25277, x2:25757, y2:387, skin:"Skin_5", life:30, type:"spawn"}, {x:26277, x2:25797, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:25486, x2:25966, y2:361, skin:"Skin_5", life:30, type:"spawn"}, {x:26588, x2:26108, y2:349, skin:"Skin_4", life:30, type:"spawn"}, {x:26731, x2:26251, y2:361, skin:"Skin_4", life:30, type:"spawn"}, {x:25929, x2:26409, y2:384, skin:"Skin_5", life:30, type:"spawn"}, {x:26977, x2:26497, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:26034, x2:26514, y2:315, skin:"Skin_5", life:120, type:"spawn"}, {x:26207, x2:26687, y2:406, skin:"Skin_5", life:30, type:"spawn"}, {x:27230, x2:26750, y2:392, skin:"Skin_4", life:30, type:"spawn"}, {x:26357, x2:26837, y2:420, skin:"Skin_4", life:30, type:"spawn"}, {x:26607, x2:27087, y2:432, skin:"Skin_4", life:30, type:"spawn"}, {x:26707, x2:27187, y2:434, skin:"Skin_5", life:30, type:"spawn"}, {x:27727, x2:27247, y2:253, skin:"Skin_4", life:120, type:"spawn"}, {x:27858, x2:27378, y2:533, skin:"Skin_4", life:30, type:"spawn"}, {x:27034, x2:27514, y2:315, skin:"Skin_5", life:120, type:"spawn"}, {x:27180, x2:27660, y2:473, skin:"Skin_5", life:30, type:"spawn"}, {x:27331, x2:27811, y2:485, skin:"Skin_5", life:30, type:"spawn"}, {x:28456, x2:27976, y2:548, skin:"Skin_5", life:30, type:"spawn"}, {x:28477, x2:27997, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:27581, x2:28061, y2:486, skin:"Skin_4", life:30, type:"spawn"}, {x:27731, x2:28211, y2:486, skin:"Skin_5", life:30, type:"spawn"}, {x:27931, x2:28411, y2:486, skin:"Skin_4", life:30, type:"spawn"}, {x:28034, x2:28514, y2:315, skin:"Skin_4", life:120, type:"spawn"}, {x:28131, x2:28611, y2:486, skin:"Skin_5", life:30, type:"spawn"}, {x:29110, x2:28630, y2:342, skin:"Skin_5", life:30, type:"spawn"}, {x:29277, x2:28797, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:28331, x2:28811, y2:486, skin:"Skin_5", life:30, type:"spawn"}, {x:29659, x2:29179, y2:181, skin:"Skin_5", life:30, type:"spawn"}, {x:28936, x2:29416, y2:372, skin:"Skin_4", life:30, type:"spawn"}, {x:29909, x2:29429, y2:181, skin:"Skin_4", life:30, type:"spawn"}, {x:29034, x2:29514, y2:315, skin:"Skin_4", life:120, type:"spawn"}, {x:29143, x2:29623, y2:323, skin:"Skin_5", life:30, type:"spawn"}, {x:29297, x2:29777, y2:303, skin:"Skin_5", life:30, type:"spawn"}, {x:29509, x2:29989, y2:272, skin:"Skin_5", life:30, type:"spawn"}, {x:29659, x2:30139, y2:272, skin:"Skin_4", life:30, type:"spawn"}, {x:30696, x2:30216, y2:176, skin:"Skin_4", life:30, type:"spawn"}, {x:29859, x2:30339, y2:272, skin:"Skin_5", life:30, type:"spawn"}, {x:30950, x2:30470, y2:184, skin:"Skin_5", life:30, type:"spawn"}, {x:30009, x2:30489, y2:272, skin:"Skin_4", life:30, type:"spawn"}, {x:30034, x2:30514, y2:315, skin:"Skin_4", life:120, type:"spawn"}, {x:31027, x2:30547, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:30259, x2:30739, y2:272, skin:"Skin_4", life:30, type:"spawn"}, {x:31399, x2:30919, y2:253, skin:"Skin_5", life:30, type:"spawn"}, {x:30459, x2:30939, y2:272, skin:"Skin_4", life:30, type:"spawn"}, {x:31701, x2:31221, y2:281, skin:"Skin_4", life:30, type:"spawn"}, {x:31977, x2:31497, y2:253, skin:"Skin_5", life:120, type:"spawn"}, {x:31034, x2:31514, y2:315, skin:"Skin_5", life:120, type:"spawn"}, {x:32001, x2:31521, y2:281, skin:"Skin_5", life:30, type:"spawn"}, {x:31086, x2:31566, y2:322, skin:"Skin_4", life:30, type:"spawn"}, {x:31286, x2:31766, y2:322, skin:"Skin_4", life:30, type:"spawn"}, {x:32301, x2:31821, y2:281, skin:"Skin_5", life:30, type:"spawn"}, {x:31486, x2:31966, y2:317, skin:"Skin_4", life:30, type:"spawn"}, {x:32551, x2:32071, y2:281, skin:"Skin_5", life:30, type:"spawn"}, {x:31686, x2:32166, y2:317, skin:"Skin_4", life:30, type:"spawn"}, {x:31886, x2:32366, y2:317, skin:"Skin_5", life:30, type:"spawn"}, {x:32036, x2:32516, y2:317, skin:"Skin_4", life:30, type:"spawn"}];
level2 = [{x:15700, type:"endLevel"}, {x:516, x2:36, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:563, x2:83, y2:341, skin:"Skin_2", life:100, type:"spawn"}, {x:816, x2:336, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:-76, x2:404, y2:337, skin:"Skin_2", life:100, type:"spawn"}, {x:78, x2:558, y2:274, skin:"Skin_3", life:120, type:"spawn"}, {x:188, x2:668, y2:213, skin:"Skin_3", life:120, type:"spawn"}, {x:1248, x2:0x0300, y2:350, skin:"Skin_2", life:100, type:"spawn"}, {x:383, x2:863, y2:268, skin:"Skin_2", life:100, type:"spawn"}, {x:1466, x2:986, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:874, x2:1354, y2:358, skin:"Skin_2", life:100, type:"spawn"}, {x:976, x2:1456, y2:355, skin:"Skin_2", life:100, type:"spawn"}, {x:2016, x2:0x0600, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:1630, x2:2110, y2:358, skin:"Skin_2", life:100, type:"spawn"}, {x:1670, x2:2150, y2:250, skin:"Skin_2", life:100, type:"spawn"}, {x:2648, x2:2168, y2:350, skin:"Skin_2", life:100, type:"spawn"}, {x:2129, x2:2609, y2:254, skin:"Skin_3", life:120, type:"spawn"}, {x:2237, x2:2717, y2:371, skin:"Skin_2", life:100, type:"spawn"}, {x:2297, x2:2777, y2:369, skin:"Skin_2", life:100, type:"spawn"}, {x:3516, x2:3036, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:2627, x2:3107, y2:368, skin:"Skin_2", life:100, type:"spawn"}, {x:2726, x2:3206, y2:367, skin:"Skin_2", life:100, type:"spawn"}, {x:3716, x2:3236, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:4298, x2:3818, y2:350, skin:"Skin_2", life:100, type:"spawn"}, {x:4366, x2:3886, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:4566, x2:4086, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:3771, x2:4251, y2:363, skin:"Skin_2", life:100, type:"spawn"}, {x:3876, x2:4356, y2:365, skin:"Skin_2", life:100, type:"spawn"}, {x:5299, x2:4819, y2:356, skin:"Skin_2", life:100, type:"spawn"}, {x:5316, x2:4836, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:4752, x2:5232, y2:350, skin:"Skin_2", life:100, type:"spawn"}, {x:4994, x2:5474, y2:222, skin:"Skin_3", life:120, type:"spawn"}, {x:5394, x2:5874, y2:222, skin:"Skin_3", life:120, type:"spawn"}, {x:6766, x2:6286, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:6916, x2:6436, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:7157, x2:6677, y2:342, skin:"Skin_2", life:100, type:"spawn"}, {x:6266, x2:6746, y2:355, skin:"Skin_2", life:100, type:"spawn"}, {x:6495, x2:6975, y2:351, skin:"Skin_2", life:100, type:"spawn"}, {x:6544, x2:7024, y2:222, skin:"Skin_3", life:120, type:"spawn"}, {x:7616, x2:7136, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:7816, x2:7336, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:7873, x2:7393, y2:348, skin:"Skin_2", life:100, type:"spawn"}, {x:6955, x2:7435, y2:355, skin:"Skin_2", life:100, type:"spawn"}, {x:7012, x2:7492, y2:354, skin:"Skin_2", life:100, type:"spawn"}, {x:8516, x2:8036, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:7600, x2:8080, y2:364, skin:"Skin_2", life:100, type:"spawn"}, {x:7622, x2:8102, y2:253, skin:"Skin_2", life:100, type:"spawn"}, {x:8816, x2:8336, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:8419, x2:8899, y2:372, skin:"Skin_2", life:100, type:"spawn"}, {x:8634, x2:9114, y2:223, skin:"Skin_3", life:120, type:"spawn"}, {x:8909, x2:9389, y2:368, skin:"Skin_3", life:100, type:"spawn"}, {x:9885, x2:9405, y2:334, skin:"Skin_3", life:100, type:"spawn"}, {x:9916, x2:9436, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:11266, x2:10786, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:10534, x2:11014, y2:223, skin:"Skin_3", life:120, type:"spawn"}, {x:11535, x2:11055, y2:334, skin:"Skin_3", life:100, type:"spawn"}, {x:10742, x2:11231, y2:336, skin:"Skin_2", life:100, type:"spawn"}, {x:11234, x2:11714, y2:223, skin:"Skin_3", life:120, type:"spawn"}, {x:11301, x2:11781, y2:336, skin:"Skin_2", life:100, type:"spawn"}, {x:12316, x2:11836, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:11801, x2:12281, y2:336, skin:"Skin_2", life:100, type:"spawn"}, {x:13266, x2:12786, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:12436, x2:12916, y2:325, skin:"Skin_2", life:100, type:"spawn"}, {x:13766, x2:13286, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:14116, x2:13636, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:14535, x2:14055, y2:334, skin:"Skin_2", life:100, type:"spawn"}, {x:14866, x2:14386, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:13951, x2:14431, y2:337, skin:"Skin_2", life:100, type:"spawn"}, {x:14069, x2:14549, y2:334, skin:"Skin_2", life:100, type:"spawn"}, {x:14584, x2:15064, y2:223, skin:"Skin_3", life:120, type:"spawn"}, {x:15586, x2:15106, y2:336, skin:"Skin_2", life:100, type:"spawn"}, {x:15766, x2:15286, y2:220, skin:"Skin_3", life:120, type:"spawn"}, {x:14863, x2:15343, y2:334, skin:"Skin_2", life:100, type:"spawn"}, {x:14940, x2:0x3C3C, y2:344, skin:"Skin_2", life:100, type:"spawn"}, {x:15134, x2:15614, y2:223, skin:"Skin_3", life:120, type:"spawn"}, {x:16186, x2:15706, y2:336, skin:"Skin_2", life:100, type:"spawn"}, {x:15387, x2:15867, y2:336, skin:"Skin_2", life:100, type:"spawn"}, {x:15568, x2:16048, y2:263, skin:"Skin_3", life:120, type:"spawn"}];
level3 = [{x:15700, type:"endLevel"}, {x:5445, x2:5925, y2:209, skin:"Boss_1", life:2000, type:"spawn"}, {x:777, x2:297, y2:0x0100, skin:"Skin_6", life:60, type:"spawn"}, {x:825, x2:345, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:927, x2:447, y2:0x0100, skin:"Skin_6", life:60, type:"spawn"}, {x:90, x2:570, y2:248, skin:"Skin_6", life:60, type:"spawn"}, {x:171, x2:651, y2:264, skin:"Skin_6", life:130, type:"spawn"}, {x:1225, x2:745, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:432, x2:912, y2:248, skin:"Skin_6", life:60, type:"spawn"}, {x:1394, x2:914, y2:0xFF, skin:"Skin_6", life:60, type:"spawn"}, {x:520, x2:1000, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:1744, x2:1264, y2:0xFF, skin:"Skin_6", life:60, type:"spawn"}, {x:1825, x2:1345, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:920, x2:1400, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:1120, x2:1600, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:1174, x2:1654, y2:263, skin:"Skin_6", life:130, type:"spawn"}, {x:2175, x2:1695, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:1320, x2:1800, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:2375, x2:1895, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:1520, x2:2000, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:2594, x2:2114, y2:0xFF, skin:"Skin_6", life:60, type:"spawn"}, {x:2794, x2:2314, y2:0xFF, skin:"Skin_6", life:60, type:"spawn"}, {x:2170, x2:2650, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:2370, x2:2850, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:3444, x2:2964, y2:0xFF, skin:"Skin_6", life:60, type:"spawn"}, {x:3694, x2:3214, y2:0xFF, skin:"Skin_6", life:60, type:"spawn"}, {x:2920, x2:3400, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:3975, x2:3495, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:3120, x2:3600, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:3174, x2:3654, y2:263, skin:"Skin_6", life:130, type:"spawn"}, {x:3320, x2:3800, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:4375, x2:3895, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:3470, x2:3950, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:4925, x2:4445, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:4070, x2:4550, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:4270, x2:4750, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:5525, x2:5045, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:4720, x2:5200, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:5754, x2:5274, y2:0x0100, skin:"Skin_6", life:60, type:"spawn"}, {x:4974, x2:5454, y2:263, skin:"Skin_6", life:130, type:"spawn"}, {x:5020, x2:5500, y2:250, skin:"Skin_6", life:60, type:"spawn"}, {x:5913, x2:5695, y2:0x0100, skin:"Skin_6", life:130, type:"spawn"}, {x:5370, x2:5850, y2:250, skin:"Skin_6", life:60, type:"spawn"}];
level4 = [{x:7619, type:"Fight"}, {x:7633, x2:8229, y2:310, skin:"Boss_2", life:2000, type:"spawn"}, {x:8200, type:"endLevel"}, {x:713, x2:233, y2:261, skin:"Skin_4", life:60, type:"spawn"}, {x:-64, x2:416, y2:263, skin:"Skin_1", life:60, type:"spawn"}, {x:186, x2:666, y2:263, skin:"Skin_1", life:60, type:"spawn"}, {x:1239, x2:759, y2:259, skin:"Skin_1", life:60, type:"spawn"}, {x:336, x2:816, y2:263, skin:"Skin_1", life:60, type:"spawn"}, {x:536, x2:1016, y2:263, skin:"Skin_1", life:60, type:"spawn"}, {x:731, x2:1211, y2:312, skin:"Skin_1", life:60, type:"spawn"}, {x:1816, x2:1336, y2:326, skin:"Skin_1", life:60, type:"spawn"}, {x:1080, x2:1560, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:1178, x2:1658, y2:405, skin:"Skin_1", life:60, type:"spawn"}, {x:2195, x2:1715, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:1380, x2:1860, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:2395, x2:1915, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:1580, x2:2060, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:1780, x2:2260, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:2795, x2:2315, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:1980, x2:2460, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:2995, x2:2515, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:3195, x2:2715, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:2321, x2:2801, y2:374, skin:"Skin_4", life:60, type:"spawn"}, {x:2430, x2:2910, y2:412, skin:"Skin_4", life:60, type:"spawn"}, {x:3445, x2:2965, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:2630, x2:3110, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:3695, x2:3215, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:2830, x2:3310, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:3080, x2:3560, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:3280, x2:3760, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:4345, x2:3865, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:3480, x2:3960, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:4545, x2:4065, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:3680, x2:4160, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:3880, x2:4360, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:4945, x2:4465, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:4080, x2:4560, y2:412, skin:"Skin_4", life:60, type:"spawn"}, {x:4330, x2:4810, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:5395, x2:4915, y2:413, skin:"Skin_4", life:60, type:"spawn"}, {x:4530, x2:5010, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:4730, x2:5210, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:4980, x2:5460, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:5995, x2:5515, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:5230, x2:5710, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:5430, x2:5910, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:6495, x2:6015, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:5780, x2:6260, y2:412, skin:"Skin_1", life:60, type:"spawn"}, {x:6897, x2:6417, y2:413, skin:"Skin_1", life:60, type:"spawn"}, {x:7310, x2:6830, y2:277, skin:"Skin_4", life:60, type:"spawn"}, {x:6421, x2:6901, y2:274, skin:"Skin_1", life:60, type:"spawn"}, {x:6723, x2:7203, y2:272, skin:"Skin_1", life:60, type:"spawn"}, {x:7810, x2:7330, y2:277, skin:"Skin_1", life:60, type:"spawn"}, {x:6923, x2:7403, y2:272, skin:"Skin_1", life:60, type:"spawn"}, {x:7123, x2:7603, y2:272, skin:"Skin_1", life:60, type:"spawn"}, {x:8280, x2:7800, y2:280, skin:"Skin_1", life:60, type:"spawn"}, {x:7507, x2:7987, y2:329, skin:"Skin_1", life:60, type:"spawn"}, {x:8611, x2:8131, y2:365, skin:"Skin_4", life:60, type:"spawn"}];
level5 = [{x:0, x2:200, y2:269, skin:"Skin_6", life:60, type:"spawn"}];
wave1 = [{x:490, x2:10, y2:224, skin:"Skin_1", life:100, type:"spawn"}, {x:550, x2:70, y2:224, skin:"Skin_1", life:100, type:"spawn"}, {x:622, x2:142, y2:224, skin:"Skin_1", life:100, type:"spawn"}, {x:672, x2:192, y2:224, skin:"Skin_1", life:100, type:"spawn"}, {x:722, x2:242, y2:224, skin:"Skin_1", life:100, type:"spawn"}, {x:128, x2:608, y2:240, skin:"Skin_1", life:100, type:"spawn"}, {x:181, x2:661, y2:239, skin:"Skin_1", life:100, type:"spawn"}, {x:437, x2:917, y2:241, skin:"Skin_1", life:100, type:"spawn"}, {x:485, x2:965, y2:241, skin:"Skin_1", life:100, type:"spawn"}, {x:535, x2:1031, y2:241, skin:"Skin_1", life:100, type:"spawn"}];
wave2 = [{x:490, x2:10, y2:224, skin:"Skin_1", life:100, type:"spawn"}, {x:550, x2:70, y2:224, skin:"Skin_2", life:100, type:"spawn"}, {x:622, x2:142, y2:224, skin:"Skin_2", life:100, type:"spawn"}, {x:672, x2:192, y2:224, skin:"Skin_2", life:100, type:"spawn"}, {x:722, x2:242, y2:224, skin:"Skin_2", life:100, type:"spawn"}, {x:772, x2:292, y2:224, skin:"Skin_2", life:100, type:"spawn"}, {x:-161, x2:319, y2:249, skin:"Skin_2", life:100, type:"spawn"}, {x:388, x2:868, y2:241, skin:"Skin_2", life:100, type:"spawn"}, {x:437, x2:917, y2:241, skin:"Skin_2", life:100, type:"spawn"}, {x:485, x2:965, y2:241, skin:"Skin_2", life:100, type:"spawn"}, {x:535, x2:1031, y2:241, skin:"Skin_2", life:100, type:"spawn"}];
wave3 = [{x:263, x2:-217, y2:-318, skin:"Skin_4", life:30, type:"spawn"}, {x:320, x2:-160, y2:167, skin:"Skin_4", life:30, type:"spawn"}, {x:321, x2:-159, y2:260, skin:"Skin_4", life:30, type:"spawn"}, {x:368, x2:-112, y2:-227, skin:"Skin_4", life:30, type:"spawn"}, {x:371, x2:-109, y2:-30, skin:"Skin_4", life:30, type:"spawn"}, {x:939, x2:459, y2:526, skin:"Skin_4", life:30, type:"spawn"}, {x:68, x2:548, y2:-162, skin:"Skin_4", life:30, type:"spawn"}, {x:1074, x2:594, y2:518, skin:"Skin_4", life:30, type:"spawn"}, {x:448, x2:928, y2:73, skin:"Skin_4", life:30, type:"spawn"}, {x:464, x2:944, y2:-355, skin:"Skin_4", life:30, type:"spawn"}, {x:531, x2:1011, y2:-64, skin:"Skin_4", life:30, type:"spawn"}, {x:578, x2:1058, y2:74, skin:"Skin_4", life:30, type:"spawn"}, {x:588, x2:1068, y2:166, skin:"Skin_4", life:30, type:"spawn"}];
wave4 = [{x:-557, x2:-77, y2:-111, skin:"Skin_3", life:120, type:"spawn"}, {x:-557, x2:-77, y2:-183, skin:"Skin_3", life:120, type:"spawn"}, {x:-550, x2:-70, y2:-53, skin:"Skin_3", life:120, type:"spawn"}, {x:-546, x2:-66, y2:-258, skin:"Skin_3", life:120, type:"spawn"}, {x:-514, x2:-34, y2:283, skin:"Skin_3", life:120, type:"spawn"}, {x:-479, x2:1, y2:-308, skin:"Skin_3", life:120, type:"spawn"}, {x:465, x2:945, y2:460, skin:"Skin_3", life:120, type:"spawn"}, {x:488, x2:968, y2:110, skin:"Skin_3", life:120, type:"spawn"}, {x:518, x2:998, y2:-309, skin:"Skin_3", life:120, type:"spawn"}, {x:577, x2:1057, y2:440, skin:"Skin_3", life:120, type:"spawn"}];
wave5 = [{x:498, x2:18, y2:213, skin:"Skin_6", life:90, type:"spawn"}, {x:-414, x2:66, y2:243, skin:"Skin_6", life:90, type:"spawn"}, {x:548, x2:68, y2:213, skin:"Skin_6", life:90, type:"spawn"}, {x:600, x2:120, y2:213, skin:"Skin_6", life:90, type:"spawn"}, {x:-358, x2:122, y2:236, skin:"Skin_6", life:90, type:"spawn"}, {x:-314, x2:166, y2:243, skin:"Skin_6", life:90, type:"spawn"}, {x:651, x2:171, y2:213, skin:"Skin_6", life:90, type:"spawn"}, {x:701, x2:221, y2:213, skin:"Skin_6", life:90, type:"spawn"}, {x:442, x2:922, y2:236, skin:"Skin_6", life:90, type:"spawn"}, {x:492, x2:972, y2:236, skin:"Skin_6", life:90, type:"spawn"}, {x:542, x2:1022, y2:236, skin:"Skin_6", life:90, type:"spawn"}, {x:592, x2:1072, y2:236, skin:"Skin_6", life:90, type:"spawn"}];
items1 = [{x:3502, y:265, type:"HealthItem"}, {x:9230, y:517, type:"HealthItem"}, {x:11088, y:585, type:"UziAmmo"}, {x:11615, y:593, type:"HealthItem"}, {x:11706, y:590, type:"ShotAmmo"}, {x:18013, y:650, type:"HealthItem"}, {x:22632, y:396, type:"UziAmmo"}, {x:23848, y:491, type:"HealthItem"}, {x:24387, y:494, type:"ShotAmmo"}, {x:31827, y:346, type:"HealthItem"}];
items2 = [{x:1095, y:0x0101, type:"HealthItem"}, {x:1673, y:355, type:"ShotAmmo"}, {x:5425, y:494, type:"AkaAmmo"}, {x:5990, y:-290, type:"HealthItem"}, {x:6053, y:-310, type:"PuzzleItem"}, {x:7554, y:346, type:"ShotAmmo"}, {x:8984, y:353, type:"UziAmmo"}, {x:9660, y:-306, type:"PuzzleItem"}, {x:9745, y:-303, type:"HealthItem"}, {x:11214, y:338, type:"AmmoItem"}, {x:12985, y:-299, type:"AmmoItem"}, {x:13048, y:-307, type:"PuzzleItem"}, {x:15416, y:332, type:"AkaAmmo"}];
items3 = [{x:318, y:260, type:"UziAmmo"}, {x:1530, y:261, type:"HealthItem"}, {x:2638, y:0x0100, type:"ShotAmmo"}, {x:3803, y:252, type:"HealthItem"}, {x:4739, y:253, type:"UziAmmo"}, {x:5948, y:254, type:"HealthItem"}];
items4 = [{x:448, y:268, type:"ShotAmmo"}, {x:1730, y:428, type:"HealthItem"}, {x:2174, y:414, type:"AkaAmmo"}, {x:4573, y:414, type:"HealthItem"}, {x:7477, y:264, type:"ShotAmmo"}];
items5 = [{x:229, y:242, type:"HealthItem"}, {x:309, y:243, type:"ShotAmmo"}, {x:405, y:234, type:"HealthItem"}, {x:498, y:237, type:"AkaAmmo"}, {x:597, y:234, type:"HealthItem"}];
}
public function getItems(_arg1:int):Array{
return (this[("items" + _arg1)]);
}
public function getData(_arg1:int):Array{
return (this[("level" + _arg1)]);
}
public function getWave(_arg1:int):Array{
return (this[("wave" + _arg1)]);
}
}
}//package hero
Section 145
//HummerW (hero.HummerW)
package hero {
import flash.display.*;
public dynamic class HummerW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function HummerW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 146
//MoveItems (hero.MoveItems)
package hero {
import flash.display.*;
import flash.geom.*;
import bigroom.input.*;
public class MoveItems {
private var vy:Number;// = 3
private var onGround:Boolean;// = true
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var itemsArray:Array;
private var MAX_VY:Number;// = 25
private var key:KeyPoll;
public function MoveItems(_arg1:Array, _arg2:MovieClip):void{
GRAVITY = 2;
MAX_VY = 25;
vy = 3;
onGround = true;
super();
itemsArray = _arg1;
p = _arg2;
}
private function checkInput():void{
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
public function update():void{
checkBounds();
checkInput();
applyMoves();
}
private function applyMoves():void{
var _local1:int;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < itemsArray.length) {
_local2 = itemsArray[_local1];
_local2.y = (_local2.y + vy);
_local1++;
};
}
private function checkBounds():void{
var _local1:int;
var _local2:MovieClip;
var _local3:Point;
_local1 = 0;
while (_local1 < itemsArray.length) {
_local2 = itemsArray[_local1];
_local3 = _local2.parent.localToGlobal(new Point(_local2.x, (_local2.y + 20)));
while (p.hitTestPoint(_local3.x, _local3.y, true)) {
onGround = true;
_local2.y--;
_local3.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local3.x, (_local3.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
_local1++;
};
}
}
}//package hero
Section 147
//MoveUpDown (hero.MoveUpDown)
package hero {
import bigroom.input.*;
import flash.display.*;
import flash.geom.*;
public class MoveUpDown {
private var notJumped:Boolean;// = true
private var vx:Number;// = 3
private var counter:Number;// = 0
private var FRICTION:Number;// = 0.6
private var vy:Number;// = 0
private var MAX_COUNT:Number;// = 7
private var falling:Boolean;// = false
private var startCounter:Number;// = 0
private var onGround:Boolean;// = true
private var MAX_VX:Number;// = 20
private var MAX_VY:Number;// = 25
private var key:KeyPoll;
private var INC_VX:Number;// = 20
private var h:Zayo;
private var l:MovieClip;
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var JUMP_VY:Number;// = 25
private var _useMouseToTurn:Boolean;// = true
public function MoveUpDown(_arg1:Zayo, _arg2:MovieClip):void{
INC_VX = 20;
JUMP_VY = 25;
FRICTION = 0.6;
GRAVITY = 2;
MAX_VX = 20;
MAX_VY = 25;
counter = 0;
MAX_COUNT = 7;
notJumped = true;
startCounter = 0;
vx = 3;
vy = 0;
onGround = true;
_useMouseToTurn = true;
falling = false;
super();
h = _arg1;
l = Zayo(h).getClip();
p = _arg2;
key = new KeyPoll(h.stage);
}
private function climb():void{
if (falling){
return;
};
if (key.isDown(87)){
h.y = (h.y - 5);
if (l.currentLabel != "up"){
l.gotoAndStop("up");
};
} else {
if (key.isDown(83)){
h.y = (h.y + 5);
if (l.currentLabel != "down"){
l.gotoAndStop("down");
};
} else {
if (l.currentLabel != "climb_stay"){
l.gotoAndStop("climb_stay");
};
};
};
}
public function update():void{
startCounter++;
if (startCounter > 10){
checkBounds();
checkInput();
applyMoves();
climb();
};
}
private function checkBounds():void{
var _local1:Point;
if (falling){
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
h.dropTheZayo();
h.resetPersistOperations();
};
};
}
private function checkInput():void{
if (((key.isDown(65)) && ((counter < MAX_COUNT)))){
falling = true;
if (((!((l.currentLabel == "move"))) && (!(notJumped)))){
l.gotoAndStop("move");
};
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
} else {
if (((key.isDown(68)) && ((counter < MAX_COUNT)))){
falling = true;
if (((!((l.currentLabel == "move"))) && (!(notJumped)))){
l.gotoAndStop("move");
};
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
} else {
vx = (vx * FRICTION);
};
};
if (falling){
if (((!((l.currentlabel == "jump"))) && (notJumped))){
notJumped = false;
l.gotoAndStop("jump");
};
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
}
}//package hero
Section 148
//MovingWithCart (hero.MovingWithCart)
package hero {
import bigroom.input.*;
import flash.display.*;
import flash.geom.*;
import flash.events.*;
public class MovingWithCart {
private var vx:Number;// = 3
private var vy:Number;// = 3
private var FRICTION:Number;// = 0.7
private var onGround:Boolean;// = true
private var MAX_VX:Number;// = 15
private var MAX_VY:Number;// = 25
private var key:KeyPoll;
private var INC_VX:Number;// = 3
private var prepareJumpBool:Boolean;// = false
private var h:Zayo;
private var l:MovieClip;
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var keyIsReleased:Boolean;// = true
private var JUMP_VY:Number;// = 25
private var _useMouseToTurn:Boolean;// = true
public function MovingWithCart(_arg1:Zayo, _arg2:MovieClip):void{
INC_VX = 3;
JUMP_VY = 25;
FRICTION = 0.7;
GRAVITY = 2;
MAX_VX = 15;
MAX_VY = 25;
vx = 3;
vy = 3;
onGround = true;
_useMouseToTurn = true;
prepareJumpBool = false;
keyIsReleased = true;
super();
h = _arg1;
l = Zayo(h).getClip();
p = _arg2;
key = new KeyPoll(h.stage);
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
public function update():void{
checkBounds();
checkInput();
applyMoves();
}
private function checkInput():void{
if (prepareJumpBool){
if (((((key.isDown(68)) && (!(key.isDown(65))))) && (keyIsReleased))){
vx = (vx + 2.5);
keyIsReleased = false;
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
return;
};
if (key.isDown(65)){
if (((onGround) && (!((l.currentLabel == "back"))))){
l.gotoAndStop("back");
};
vx = 2;
} else {
if (key.isDown(68)){
if (((onGround) && (!((l.currentLabel == "move"))))){
l.gotoAndStop("move");
};
vx = 10;
} else {
if (((onGround) && (!((l.currentLabel == "stay"))))){
l.gotoAndStop("stay");
};
vx = 7;
};
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
}
private function checkBounds():void{
var _local1:Point;
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
}
private function keyboardUpEvent(_arg1:KeyboardEvent):void{
keyIsReleased = true;
}
public function prepareToJump(_arg1:Boolean){
prepareJumpBool = _arg1;
if (_arg1){
h.stage.addEventListener(KeyboardEvent.KEY_UP, keyboardUpEvent, false, 0, true);
vx = 5;
} else {
h.stage.removeEventListener(KeyboardEvent.KEY_UP, keyboardUpEvent, false);
};
}
}
}//package hero
Section 149
//MovingWithLegs (hero.MovingWithLegs)
package hero {
import bigroom.input.*;
import flash.display.*;
import flash.geom.*;
public class MovingWithLegs {
private var vx:Number;// = 3
private var vy:Number;// = 3
private var FRICTION:Number;// = 0.7
private var onGround:Boolean;// = true
private var MAX_VX:Number;// = 10
private var MAX_VY:Number;// = 25
private var key:KeyPoll;
private var INC_VX:Number;// = 3
private var h:Zayo;
private var l:MovieClip;
private var GRAVITY:Number;// = 2
private var p:MovieClip;
private var JUMP_VY:Number;// = 25
private var _useMouseToTurn:Boolean;// = true
public function MovingWithLegs(_arg1:Zayo, _arg2:MovieClip):void{
INC_VX = 3;
JUMP_VY = 25;
FRICTION = 0.7;
GRAVITY = 2;
MAX_VX = 10;
MAX_VY = 25;
vx = 3;
vy = 3;
onGround = true;
_useMouseToTurn = true;
super();
h = _arg1;
l = Zayo(h).getClip();
p = _arg2;
key = new KeyPoll(h.stage);
}
private function applyMoves():void{
if ((h.x + vx) < 20){
h.x = 20;
h.x = (h.x - vx);
};
if (h.dataNum == 1){
if ((h.x + vx) > 32800){
h.x = 32800;
h.x = (h.x - vx);
};
if (((((h.x + vx) < 10706)) && (h.mapMngr.fight_enabled_1))){
h.x = 10706;
h.x = (h.x - vx);
};
if (((((h.x + vx) < 23500)) && (h.mapMngr.fight_enabled_3))){
h.x = 23500;
h.x = (h.x - vx);
};
} else {
if (h.dataNum == 2){
if (((((((h.x + vx) > 6150)) && ((h.x < 6500)))) && ((h.y < -200)))){
h.x = 6150;
h.x = (h.x - vx);
} else {
if ((((((h.x > 9500)) && (((h.x + vx) < 9600)))) && ((h.y < -200)))){
h.x = 9600;
h.x = (h.x - vx);
} else {
if ((((((h.x > 12530)) && (((h.x + vx) < 12930)))) && ((h.y < -200)))){
h.x = 12930;
h.x = (h.x - vx);
} else {
if ((h.x + vx) > 15800){
h.x = 15800;
h.x = (h.x - vx);
};
};
};
};
} else {
if (h.dataNum == 3){
if ((h.x + vx) > 6000){
h.x = 6000;
h.x = (h.x - vx);
};
} else {
if (h.dataNum == 4){
if ((h.x + vx) > 8250){
h.x = 8250;
h.x = (h.x - vx);
};
} else {
if (h.dataNum == 5){
if ((h.x + vx) > 700){
h.x = 700;
h.x = (h.x - vx);
};
};
};
};
};
};
h.x = (h.x + vx);
h.y = (h.y + vy);
}
public function update():void{
checkBounds();
checkInput();
applyMoves();
}
private function checkInput():void{
if (key.isDown(65)){
if (((onGround) && (!((l.currentLabel == "move"))))){
l.gotoAndStop("move");
};
l.scaleX = (_useMouseToTurn) ? l.scaleX : -1;
vx = (vx - ((vx)>-(MAX_VX)) ? INC_VX : 0);
} else {
if (key.isDown(68)){
if (((onGround) && (!((l.currentLabel == "move"))))){
l.gotoAndStop("move");
};
l.scaleX = (_useMouseToTurn) ? l.scaleX : 1;
vx = (vx + ((vx)<MAX_VX) ? INC_VX : 0);
} else {
if (((onGround) && (!((l.currentLabel == "stay"))))){
l.gotoAndStop("stay");
};
vx = (vx * FRICTION);
};
};
if (onGround == false){
vy = (vy + GRAVITY);
vy = ((vy)>MAX_VY) ? MAX_VY : vy;
};
if (((key.isDown(87)) && (!((h.dataNum == 3))))){
if (onGround){
l.gotoAndStop("jump");
vy = -(JUMP_VY);
onGround = false;
};
};
}
private function checkBounds():void{
var _local1:Point;
_local1 = h.parent.localToGlobal(new Point(h.x, (h.y + 20)));
while (p.hitTestPoint(_local1.x, _local1.y, true)) {
onGround = true;
h.y--;
_local1.y--;
vy = 0;
};
if (!(p.hitTestPoint(_local1.x, (_local1.y + 1), true))){
onGround = false;
} else {
onGround = true;
};
}
}
}//package hero
Section 150
//ShotgunW (hero.ShotgunW)
package hero {
import flash.display.*;
public dynamic class ShotgunW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function ShotgunW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 151
//ShotgunW_g (hero.ShotgunW_g)
package hero {
import flash.display.*;
public dynamic class ShotgunW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function ShotgunW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 152
//Skin_1 (hero.Skin_1)
package hero {
import flash.display.*;
public dynamic class Skin_1 extends MovieClip {
public var h:MovieClip;
public var zayo:Hero;
public function Skin_1(){
addFrameScript(0, frame1, 6, frame7, 12, frame13);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
}
}//package hero
Section 153
//Skin_2 (hero.Skin_2)
package hero {
import flash.display.*;
public dynamic class Skin_2 extends MovieClip {
public var h:MovieClip;
public function Skin_2(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 21, frame22);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame8(){
stop();
}
}
}//package hero
Section 154
//Skin_3 (hero.Skin_3)
package hero {
import flash.display.*;
public dynamic class Skin_3 extends MovieClip {
public var h:MovieClip;
}
}//package hero
Section 155
//Skin_4 (hero.Skin_4)
package hero {
import flash.display.*;
public dynamic class Skin_4 extends MovieClip {
public var h:MovieClip;
public function Skin_4(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 21, frame22);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame8(){
stop();
}
}
}//package hero
Section 156
//Skin_5 (hero.Skin_5)
package hero {
import flash.display.*;
public dynamic class Skin_5 extends MovieClip {
public var h:MovieClip;
public function Skin_5(){
addFrameScript(0, frame1, 7, frame8, 14, frame15, 21, frame22);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame8(){
stop();
}
}
}//package hero
Section 157
//UziW (hero.UziW)
package hero {
import flash.display.*;
public dynamic class UziW extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function UziW(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 158
//UziW_g (hero.UziW_g)
package hero {
import flash.display.*;
public dynamic class UziW_g extends MovieClip {
public var w:MovieClip;
public var redDot:MovieClip;
public function UziW_g(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package hero
Section 159
//Weapon (hero.Weapon)
package hero {
import flash.media.*;
import bigroom.input.*;
import flash.events.*;
import map.*;
import sounds.*;
import flash.utils.*;
import flash.display.*;
import flash.geom.*;
public class Weapon extends MovieClip {
private var channel:SoundChannel;
private var hud:Hud;
private var isFiring:Boolean;// = false
private var clip:MovieClip;
private var key:KeyPoll;
private var realWeapon:Boolean;// = true
private var dieSound:Sound;
private var h:Zayo;
private var curWeapon:String;
private var drawRay:Function;
private var soundObj:Object;
private var fireSound:Sound;
private var willClear:Boolean;// = true
private var frameCounter:int;// = 0
private var DMG:int;
private var mapMngr:MapManager;
public function Weapon(_arg1:Zayo, _arg2:Boolean=true, _arg3:Object=null, _arg4:MapManager=null):void{
isFiring = false;
frameCounter = 0;
willClear = true;
realWeapon = true;
channel = new SoundChannel();
super();
mapMngr = _arg4;
realWeapon = _arg2;
this.soundObj = _arg3;
if (realWeapon){
h = _arg1;
h.addChild(this);
key = new KeyPoll(h.stage);
loadWeap("UziW", singleRay);
h.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
h.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false, 0, true);
} else {
h = _arg1;
h.addChild(this);
x = -56;
y = -55;
key = new KeyPoll(h.stage);
loadWeap("ChaingunW", singleRay);
h.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
h.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false, 0, true);
};
}
public function activate():void{
h.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
h.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false, 0, true);
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
channel.soundTransform = new SoundTransform(soundObj.vol);
}
private function mouseUpHandler(_arg1:MouseEvent=null):void{
if (realWeapon){
clip.gotoAndStop("stay");
} else {
clip.chainGun.gotoAndStop("stay");
};
isFiring = false;
}
public function setHud(_arg1:Hud):void{
this.hud = _arg1;
}
private function fire():void{
clearRays();
if (isFiring){
frameCounter++;
if (frameCounter == 3){
frameCounterReset();
sortOnZayo();
drawRay();
};
};
}
private function rotateWeapon():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (!(realWeapon)){
clip.easel.rotation = ((((-(h.parent.parent.parent.mouseX) - (stage.stageWidth / 2)) / (stage.stageWidth / 2)) * 90) + 90);
_local1 = ((clip.easel.rotation * Math.PI) / 180);
clip.chainGun.x = (clip.easel.x + (Math.cos(_local1) * 70));
clip.chainGun.y = (clip.easel.y + (Math.sin(_local1) * 70));
_local3 = (mouseY - clip.chainGun.y);
_local4 = (mouseX - clip.chainGun.x);
clip.chainGun.rotation = ((Math.atan2(_local3, _local4) * 180) / Math.PI);
return;
};
_local1 = Math.atan2(h.mouseY, h.mouseX);
_local2 = (h.parent.mouseX - h.x);
h.scaleX = ((_local2)>0) ? 1 : -1;
rotation = ((_local1 * 180) / Math.PI);
}
private function fiveRays():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:*;
var _local5:int;
var _local6:int;
var _local7:*;
var _local8:MovieClip;
var _local9:Number;
var _local10:XML;
var _local11:Class;
var _local12:*;
var _local13:int;
if (mapMngr.shotAmmo <= 0){
mapMngr.shotAmmo = 0;
mouseUpHandler();
return;
};
mapMngr.shotAmmo--;
channel.stop();
fireSound = new ShotgunW();
channel = fireSound.play();
channel.soundTransform = new SoundTransform(soundObj.vol);
_local1 = (h.parent.mouseX - h.x);
_local2 = (h.parent.mouseY - h.y);
_local3 = Math.atan2(_local2, _local1);
_local4 = _local3;
_local5 = -2;
while (_local5 < 3) {
_local3 = (_local4 + ((Math.PI / 32) * _local5));
_local6 = 0;
_local7 = h.enemies.length;
while (_local6 < _local7) {
_local8 = h.enemies[_local6];
_local9 = calculateLine(_local8, _local3);
drawLine(_local3, _local9, false);
if (_local9 != 2222){
if (doDamage(_local8)){
_local10 = describeType(_local8);
if (_local10.@name.substr(-6, 6) == "Boss_1"){
h.placeKeyFromBoss(_local8);
} else {
if (_local10.@name.substr(-6, 6) == "Boss_2"){
h.boss2die();
};
};
_local11 = (getDefinitionByName((("sounds." + _local10.@name.substr(-6, 6)) + "_die")) as Class);
dieSound = (new (_local11) as Sound);
_local12 = dieSound.play();
_local12.soundTransform = new SoundTransform(soundObj.vol);
_local8.die();
h.enemies.splice(_local6, 1);
setTimeout(removeEnemyFromStage, 3000, _local8);
};
break;
};
_local6++;
};
_local5++;
};
if (h.enemies.length == 0){
_local13 = -2;
while (_local13 < 3) {
_local3 = (_local4 + ((Math.PI / 32) * _local13));
drawLine(_local3, 2222, false);
_local13++;
};
};
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if ((((curWeapon == "UziW")) && ((mapMngr.uziAmmo <= 0)))){
hud.playInsufficient();
return;
};
if ((((curWeapon == "ShotgunW")) && ((mapMngr.shotAmmo <= 0)))){
hud.playInsufficient();
return;
};
if ((((curWeapon == "AkaW")) && ((mapMngr.akaAmmo <= 0)))){
hud.playInsufficient();
return;
};
if (realWeapon){
clip.gotoAndStop("fire");
} else {
clip.chainGun.gotoAndStop("fire");
};
isFiring = true;
frameCounter = 0;
}
private function drawLine(_arg1:Number, _arg2:Number, _arg3:Boolean):void{
var _local4:Point;
var _local5:Graphics;
var _local6:Point;
if (realWeapon){
_local6 = clip.localToGlobal(new Point(clip.redDot.x, clip.redDot.y));
} else {
_local6 = clip.chainGun.localToGlobal(new Point(clip.chainGun.redDot.x, clip.chainGun.redDot.y));
};
_local4 = h.parent.globalToLocal(_local6);
_local5 = MapManager(h.parent).getGraphics();
if (_arg3){
_local5.clear();
};
_local5.lineStyle(3, 0xFFFFFF, 1);
_local5.moveTo(_local4.x, _local4.y);
if (realWeapon){
_local5.lineTo((h.x + (_arg2 * Math.cos(_arg1))), (h.y + (_arg2 * Math.sin(_arg1))));
} else {
_local5.lineTo((_local4.x + ((_arg2 - 135) * Math.cos(_arg1))), (_local4.y + ((_arg2 - 135) * Math.sin(_arg1))));
};
}
public function deactivate():void{
h.stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false);
h.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, false);
}
private function loadWeap(_arg1:String, _arg2:Function):void{
var _local3:Class;
curWeapon = _arg1;
if (clip != null){
removeChild(clip);
};
if ((((h.zayoNum == 4)) || ((h.zayoNum == 5)))){
_local3 = (getDefinitionByName((("hero." + _arg1) + "_g")) as Class);
} else {
_local3 = (getDefinitionByName(("hero." + _arg1)) as Class);
};
clip = (new (_local3) as MovieClip);
addChild(clip);
if (realWeapon){
clip.redDot.visible = false;
} else {
clip.chainGun.redDot.visible = false;
};
drawRay = _arg2;
}
private function clearRays():void{
var _local1:Graphics;
if (willClear){
_local1 = MapManager(h.parent).getGraphics();
_local1.clear();
willClear = false;
};
}
private function sortOnZayo():void{
if ((((((h.scaleX == 1)) && ((h.mouseX > 0)))) || ((((h.scaleX == -1)) && ((h.mouseX < 0)))))){
h.enemies.sortOn("x", Array.NUMERIC);
} else {
h.enemies.sortOn("x", (Array.NUMERIC | Array.DESCENDING));
};
}
private function checkInput():void{
if (isFiring){
return;
};
if (key.isDown(49)){
loadWeap("BatW", noRay);
hud.ammoBar.gotoAndStop("bat");
} else {
if (key.isDown(50)){
loadWeap("UziW", singleRay);
hud.ammoBar.gotoAndStop("uzi");
} else {
if (key.isDown(51)){
loadWeap("ShotgunW", fiveRays);
hud.ammoBar.gotoAndStop("shot");
} else {
if (key.isDown(52)){
loadWeap("AkaW", singleRay);
hud.ammoBar.gotoAndStop("aka");
};
};
};
};
}
private function noRay():void{
var _local1:*;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:*;
var _local7:MovieClip;
var _local8:Number;
var _local9:XML;
var _local10:Class;
var _local11:*;
fireSound = new BatW();
_local1 = fireSound.play();
_local1.soundTransform = new SoundTransform(soundObj.vol);
_local2 = (h.parent.mouseX - h.x);
_local3 = (h.parent.mouseY - h.y);
_local4 = Math.atan2(_local3, _local2);
_local5 = 0;
_local6 = h.enemies.length;
while (_local5 < _local6) {
_local7 = h.enemies[_local5];
_local8 = calculateLine(_local7, _local4, 60);
if (_local8 != 2222){
if (doDamage(_local7)){
_local9 = describeType(_local7);
if (_local9.@name.substr(-6, 6) == "Boss_1"){
h.placeKeyFromBoss(_local7);
} else {
if (_local9.@name.substr(-6, 6) == "Boss_2"){
h.boss2die();
};
};
_local10 = (getDefinitionByName((("sounds." + _local9.@name.substr(-6, 6)) + "_die")) as Class);
dieSound = (new (_local10) as Sound);
_local11 = dieSound.play();
_local11.soundTransform = new SoundTransform(soundObj.vol);
_local7.die();
h.enemies.splice(_local5, 1);
setTimeout(removeEnemyFromStage, 3000, _local7);
};
break;
};
_local5++;
};
}
private function singleRay():void{
var _local1:Class;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Point;
var _local6:int;
var _local7:*;
var _local8:MovieClip;
var _local9:Number;
var _local10:XML;
var _local11:Class;
var _local12:*;
if ((((curWeapon == "AkaW")) && ((mapMngr.akaAmmo <= 0)))){
mapMngr.akaAmmo = 0;
mouseUpHandler();
return;
};
if ((((curWeapon == "UziW")) && ((mapMngr.uziAmmo <= 0)))){
mapMngr.uziAmmo = 0;
mouseUpHandler();
return;
};
if (curWeapon == "AkaW"){
mapMngr.akaAmmo--;
} else {
if (curWeapon == "UziW"){
mapMngr.uziAmmo--;
};
};
channel.stop();
_local1 = (getDefinitionByName(("sounds." + curWeapon)) as Class);
if (curWeapon == "ChaingunW"){
_local1 = (getDefinitionByName(("sounds." + "UziW")) as Class);
};
fireSound = (new (_local1) as Sound);
channel = fireSound.play();
if ((((curWeapon == "AkaW")) && (!((soundObj.vol == 0))))){
channel.soundTransform = new SoundTransform(0.6);
} else {
channel.soundTransform = new SoundTransform(soundObj.vol);
};
_local2 = (h.parent.mouseX - h.x);
_local3 = (h.parent.mouseY - h.y);
_local4 = Math.atan2(_local3, _local2);
_local5 = clip.localToGlobal(new Point(clip.x, clip.y));
if (!(realWeapon)){
_local5 = clip.localToGlobal(new Point(clip.chainGun.x, clip.chainGun.y));
_local2 = (stage.mouseX - _local5.x);
_local3 = (stage.mouseY - _local5.y);
_local4 = Math.atan2(_local3, _local2);
};
_local6 = 0;
_local7 = h.enemies.length;
while (_local6 < _local7) {
_local8 = h.enemies[_local6];
_local9 = calculateLine(_local8, _local4);
drawLine(_local4, _local9, true);
if (_local9 != 2222){
if (doDamage(_local8)){
_local10 = describeType(_local8);
if (_local10.@name.substr(-6, 6) == "Boss_1"){
h.placeKeyFromBoss(_local8);
} else {
if (_local10.@name.substr(-6, 6) == "Boss_2"){
h.boss2die();
};
};
_local11 = (getDefinitionByName((("sounds." + _local10.@name.substr(-6, 6)) + "_die")) as Class);
dieSound = (new (_local11) as Sound);
_local12 = dieSound.play();
_local12.soundTransform = new SoundTransform(soundObj.vol);
_local8.die();
h.enemies.splice(_local6, 1);
setTimeout(removeEnemyFromStage, 3000, _local8);
};
break;
};
_local6++;
};
if (h.enemies.length == 0){
drawLine(_local4, 2000, true);
};
}
public function update():void{
if (realWeapon){
rotateWeapon();
checkInput();
fire();
} else {
rotateWeapon();
fire();
};
}
private function calculateLine(_arg1:MovieClip, _arg2:Number, _arg3:int=0):Number{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Point;
var _local8:Point;
_local4 = (_arg1.x - h.x);
_local5 = (_arg1.y - h.y);
if (!(realWeapon)){
_local4 = (_arg1.x - ((h.x + this.x) + clip.chainGun.x));
_local5 = (_arg1.y - ((h.y + this.y) + clip.chainGun.y));
};
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
if (_arg3 == 0){
if (realWeapon){
_local8 = new Point((h.x + (Math.cos(_arg2) * _local6)), (h.y + (Math.sin(_arg2) * _local6)));
} else {
_local8 = new Point((((h.x + this.x) + clip.chainGun.x) + (Math.cos(_arg2) * _local6)), (((h.y + this.y) + clip.chainGun.y) + (Math.sin(_arg2) * _local6)));
};
} else {
_local8 = new Point((h.x + (Math.cos(_arg2) * _arg3)), (h.y + (Math.sin(_arg2) * _arg3)));
};
_local7 = h.parent.localToGlobal(_local8);
if (_arg1.hitTestPoint(_local7.x, _local7.y, true)){
return (_local6);
};
return (2222);
}
private function removeEnemyFromStage(_arg1:Object):void{
_arg1.parent.removeChild(_arg1);
}
public function getRealWeapon():Boolean{
if (realWeapon){
return (true);
};
return (false);
}
private function doDamage(_arg1:Object):Boolean{
return (_arg1.takeDamage(DMG));
}
private function frameCounterReset():void{
if (curWeapon == "UziW"){
frameCounter = -2;
DMG = 20;
} else {
if (curWeapon == "ShotgunW"){
frameCounter = -9;
DMG = 25;
} else {
if (curWeapon == "AkaW"){
frameCounter = -3;
DMG = 45;
} else {
if (curWeapon == "BatW"){
frameCounter = -4;
DMG = 25;
} else {
if (curWeapon == "ChaingunW"){
frameCounter = 1;
DMG = 50;
};
};
};
};
};
willClear = true;
}
}
}//package hero
Section 160
//Zayo (hero.Zayo)
package hero {
import flash.utils.*;
import map.*;
import flash.display.*;
import sounds.*;
import flash.events.*;
import flash.media.*;
import bigroom.input.*;
public class Zayo extends MovieClip {
private var weapon:Weapon;
public var enemies:Array;
private var theKey:TheKey;
private var exitEnabled:Boolean;// = false
private var key:KeyPoll;
private var level2enabled:Boolean;// = false
private var p:MovieClip;
private var curStalactite;
private var lastTime:int;
private var mapNum:int;
private var groundsCounter:int;// = 0
private var moveB:Object;
public var radiation:Number;// = 100
private var firstTime_StupidVar:Boolean;// = true
private var leverMC:MovieClip;
private var tempFunc:Function;
private var alive:Boolean;// = true
private var isPersistOperate:Boolean;// = false
private var stalactites:Array;
private var ammoAdd:Number;// = 50
public var life:int;// = 100
private var bridgeSound:Sound;
private var dataInst:Data;
private var eventsFunc_array:Array;
private var isBossLaughed:Boolean;// = false
private var testString:String;// = "aaaaaa"
private var clip:MovieClip;
private var jumpEventCounter:int;// = 0
private var stalactiteSound:Sound;
private var soundObj:Object;
public var remainTime:int;// = 120
private var itemCollected:int;// = 0
public var dataNum:int;
private var eventsFunc:Function;
private var moverItems:MoveItems;
private var firstTimeFightLevel4:Boolean;
private var itemsReal:Array;
private var lastLaugh:Number;// = 0
private var leverMC2:MovieClip;
private var leverBool:Boolean;// = false
private var data:Array;
private var items:Array;
public var mapMngr:MapManager;
public var zayoNum:int;
private var grounds:Array;
private var waveNum:int;// = 0
private var fightCounter:int;// = 0
private var kolichka:MovieClip;
private var keyIsPicked:Boolean;// = false
public function Zayo(_arg1:MapManager, _arg2:MovieClip, _arg3:Object=null, _arg4:int=100):void{
itemsReal = [];
alive = true;
eventsFunc_array = [null, eventsFunc_1, eventsFunc_2, eventsFunc_3, eventsFunc_4, eventsFunc_5];
isPersistOperate = false;
life = 100;
radiation = 100;
enemies = new Array();
remainTime = 120;
lastTime = getTimer();
ammoAdd = 50;
jumpEventCounter = 0;
groundsCounter = 0;
leverBool = false;
fightCounter = 0;
itemCollected = 0;
testString = "aaaaaa";
keyIsPicked = false;
exitEnabled = false;
level2enabled = false;
waveNum = 0;
isBossLaughed = false;
lastLaugh = 0;
firstTime_StupidVar = true;
super();
this.soundObj = _arg3;
mapMngr = _arg1;
mapMngr.addChild(this);
p = _arg2;
life = _arg4;
}
public function boss2die():void{
var _local1:Object;
mapMngr.level2enabled = true;
_local1 = {zx:7819, zy:100, zayoNum:4, mapNum:4, xx:-7400};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:9});
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
weapon.setVolume(_arg1);
}
public function enterFrameHandler(_arg1:Event=null):void{
if (alive){
moveB.update();
weapon.update();
checkEventsArray();
enemiesUpdate();
checkBottomDeadLine();
};
if (dataNum == 5){
moveItemsOnLevel5();
};
}
public function placeKeyFromBoss(_arg1:MovieClip):void{
theKey = new TheKey();
parent.addChild(theKey);
theKey.x = _arg1.x;
theKey.y = _arg1.y;
}
public function deactivate():void{
var _local1:int;
_local1 = 0;
while (_local1 < enemies.length) {
if (enemies[_local1] != null){
if (enemies[_local1].e != null){
enemies[_local1].e.stop();
};
};
_local1++;
};
weapon.deactivate();
}
private function die():void{
clip.gotoAndStop("die");
alive = false;
if (weapon.getRealWeapon()){
removeChild(weapon);
};
mapMngr.dispatchDie();
}
private function enemiesUpdate():void{
var _local1:int;
var _local2:*;
_local1 = 0;
_local2 = enemies.length;
while (_local1 < _local2) {
enemies[_local1].enterFrameHandler();
_local1++;
};
}
private function checkEventsArray():void{
var _local1:*;
var _local2:Object;
checkPersistentEvents();
checkItems();
_local1 = data[0];
if ((((this.x > _local1.x)) && ((_local1.type == "endLevel")))){
if (dataNum == 1){
if (enemies.length < 4){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
if (dataNum == 3){
if (enemies.length < 4){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
if (dataNum == 2){
if ((((itemCollected == 3)) && ((enemies.length < 4)))){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
if ((((dataNum == 4)) && ((enemies.length < 4)))){
if (mapMngr.level2enabled){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
_local2 = data.shift();
eventsFunc(_local2);
};
};
};
};
} else {
if ((((((this.x > _local1.x)) && ((_local1.type == "Fight")))) && ((dataNum == 4)))){
if (enemies.length < 4){
_local2 = data.shift();
eventsFunc(_local2);
};
} else {
if (this.x > _local1.x){
_local2 = data.shift();
eventsFunc(_local2);
};
};
};
}
public function dropTheZayo():void{
moveB = null;
moveB = new MovingWithLegs(this, p);
}
private function pumpDFunction(_arg1:Event):void{
}
public function takeDamage(_arg1:int):void{
life = (life - _arg1);
if (life < 0){
life = 0;
die();
};
}
private function checkBottomDeadLine():void{
if (this.y > 800){
die();
};
}
public function setWeaponHud(_arg1:Hud):void{
weapon.setHud(_arg1);
}
public function activate():void{
var _local1:int;
weapon.activate();
_local1 = 0;
while (_local1 < enemies.length) {
enemies[_local1].e.play();
_local1++;
};
}
public function resetPersistOperations():void{
isPersistOperate = false;
}
private function stalactiteHitCheck(_arg1:Event=null):void{
if (curStalactite != null){
if (MovieClip(mapMngr.mapClip[curStalactite]).hitTestObject(this)){
curStalactite = null;
takeDamage(10);
} else {
if (stalactites.length == 0){
removeEventListener(Event.ENTER_FRAME, stalactiteHitCheck, false);
};
};
};
}
public function loadSkin(_arg1:int):void{
var _local2:Class;
zayoNum = _arg1;
_local2 = (getDefinitionByName(("hero.Skin_" + _arg1)) as Class);
clip = (new (_local2) as MovieClip);
addChild(clip);
if (_arg1 != 1){
moveB = new MovingWithLegs(this, p);
weapon = new Weapon(this, true, soundObj, mapMngr);
} else {
moveB = new MovingWithCart(this, p);
weapon = new Weapon(this, false, soundObj, mapMngr);
};
}
private function moveItemsOnLevel5():void{
if (itemsReal.length > 0){
moverItems.update();
};
}
private function checkLeverKey(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 70){
p.gotoAndPlay(81);
leverMC.play();
leverMC2.play();
};
}
private function checkItems():void{
var _local1:int;
var _local2:*;
if (itemsReal.length > 0){
_local1 = 0;
while (_local1 < itemsReal.length) {
_local2 = itemsReal[_local1];
if (hitTestObject(_local2)){
if ((_local2 is HealthItem)){
life = (life + 35);
if (life > 100){
life = 100;
};
itemsReal.splice(_local1, 1);
mapMngr.removeChild(_local2);
break;
} else {
if ((_local2 is AkaAmmo)){
mapMngr.akaAmmo = (mapMngr.akaAmmo + ammoAdd);
itemsReal.splice(_local1, 1);
mapMngr.removeChild(_local2);
break;
} else {
if ((_local2 is UziAmmo)){
mapMngr.uziAmmo = (mapMngr.uziAmmo + ammoAdd);
itemsReal.splice(_local1, 1);
mapMngr.removeChild(_local2);
break;
} else {
if ((_local2 is ShotAmmo)){
mapMngr.shotAmmo = (mapMngr.shotAmmo + ammoAdd);
itemsReal.splice(_local1, 1);
mapMngr.removeChild(_local2);
break;
} else {
if ((_local2 is PuzzleItem)){
itemsReal.splice(_local1, 1);
mapMngr.removeChild(_local2);
itemCollected++;
break;
};
};
};
};
};
};
_local1++;
};
};
}
public function loadData(_arg1:int, _arg2:Boolean=false):void{
var _local3:int;
var _local4:*;
var _local5:MovieClip;
if (_arg2){
data = dataInst.getWave(_arg1);
data.sortOn("x", Array.NUMERIC);
data.push({x:9999999});
return;
};
eventsFunc = eventsFunc_array[_arg1];
dataNum = _arg1;
dataInst = new Data();
data = dataInst.getData(_arg1);
data.sortOn("x", Array.NUMERIC);
_local3 = (data.length - 1);
while (_local3 > -1) {
if (data[_local3].x < this.x){
data.shift();
};
_local3--;
};
data.push({x:9999999});
items = dataInst.getItems(_arg1);
_local3 = 0;
while (_local3 < items.length) {
_local4 = items[_local3];
if (_local4.type == "HealthItem"){
_local5 = MovieClip(mapMngr.addChild(new HealthItem()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "AkaAmmo"){
_local5 = MovieClip(mapMngr.addChild(new AkaAmmo()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "UziAmmo"){
_local5 = MovieClip(mapMngr.addChild(new UziAmmo()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "ShotAmmo"){
_local5 = MovieClip(mapMngr.addChild(new ShotAmmo()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
} else {
if (_local4.type == "PuzzleItem"){
_local5 = MovieClip(mapMngr.addChild(new PuzzleItem()));
itemsReal.push(_local5);
_local5.x = _local4.x;
_local5.y = _local4.y;
};
};
};
};
};
_local3++;
};
if (dataNum == 5){
moverItems = new MoveItems(itemsReal, p);
};
}
private function updateRemainingTime():void{
if ((getTimer() - lastTime) > 1000){
lastTime = getTimer();
remainTime--;
if (remainTime < 0){
remainTime = 0;
die();
};
};
}
public function setLevel_1Vars(_arg1:Object):void{
stalactites = _arg1.stalactites;
grounds = _arg1.grounds;
leverMC = _arg1.lever;
leverMC2 = _arg1.lever2;
kolichka = _arg1.kolichka;
}
public function getClip():MovieClip{
return (clip);
}
private function checkPersistentEvents():void{
var _local1:Object;
var _local2:Sound;
var _local3:*;
if (dataNum == 2){
if ((((((x >= 5720)) && ((x <= 5735)))) && (!(isPersistOperate)))){
moveB = null;
moveB = new MoveUpDown(this, p);
isPersistOperate = true;
} else {
if ((((((x >= 9998)) && ((x <= 10012)))) && (!(isPersistOperate)))){
moveB = null;
moveB = new MoveUpDown(this, p);
isPersistOperate = true;
} else {
if ((((((x >= 13320)) && ((x <= 13333)))) && (!(isPersistOperate)))){
moveB = null;
moveB = new MoveUpDown(this, p);
isPersistOperate = true;
};
};
};
} else {
if (dataNum == 3){
if ((((x >= 2770)) && ((x <= 2860)))){
radiation = (radiation + 0.4);
} else {
if ((((x >= 4530)) && ((x <= 4600)))){
radiation = (radiation + 0.4);
} else {
if ((((x >= 1970)) && ((x <= 2070)))){
radiation = (radiation - 0.4);
} else {
if (((!((theKey == null))) && (hitTestObject(theKey)))){
parent.removeChild(theKey);
MovieClip(parent).mapClip.keyHole.nextFrame();
theKey = null;
keyIsPicked = true;
key = new KeyPoll(stage);
} else {
if (keyIsPicked){
if (((key.isDown(70)) && (hitTestObject(MovieClip(parent).mapClip.keyHole)))){
keyIsPicked = false;
MovieClip(parent).mapClip.keyHole.nextFrame();
exitEnabled = true;
};
} else {
if (((exitEnabled) && ((x > 5900)))){
_local1 = {zx:0, zy:100, zayoNum:4, mapNum:4};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart();
};
};
};
};
};
};
updateRadiation();
updateRemainingTime();
} else {
if (dataNum == 5){
if (waveNum == 6){
_local1 = {zx:0, zy:100, zayoNum:1, mapNum:1, xx:0};
mapMngr.setNextMapParams(_local1);
mapMngr.pause();
mapMngr.dispatchStart({num:11, main:true});
return;
};
if ((((enemies.length == 0)) && (isBossLaughed))){
if ((getTimer() - lastLaugh) > 2000){
waveNum++;
loadData(waveNum, true);
isBossLaughed = false;
};
} else {
if ((((enemies.length == 0)) && (!(isBossLaughed)))){
_local2 = new Boss_laugh();
_local3 = _local2.play();
_local3.soundTransform = new SoundTransform(soundObj.vol);
lastLaugh = getTimer();
isBossLaughed = true;
if (firstTime_StupidVar){
isBossLaughed = false;
firstTime_StupidVar = false;
};
};
};
};
};
};
}
private function updateRadiation():void{
radiation = (radiation - 0.1);
if (radiation < 0){
radiation = 0;
die();
} else {
if (radiation > 100){
radiation = 100;
};
};
}
private function eventsFunc_1(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:*;
var _local5:*;
var _local6:Object;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if (_arg1.type == "Rotate"){
this.rotation = _arg1.angle;
} else {
if (_arg1.type == "Stalactite"){
addEventListener(Event.ENTER_FRAME, stalactiteHitCheck, false, 0, true);
curStalactite = stalactites.shift();
MovieClip(mapMngr.mapClip[curStalactite]).play();
stalactiteSound = new Stalactite();
_local4 = stalactiteSound.play();
if (soundObj.vol != 0){
_local4.soundTransform = new SoundTransform(1);
} else {
_local4.soundTransform = new SoundTransform(soundObj.vol);
};
} else {
if (_arg1.type == "Bridge"){
groundsCounter++;
grounds.shift().play();
p.gotoAndPlay((Number(groundsCounter) * 20));
bridgeSound = new Bridge_fall();
_local5 = bridgeSound.play();
if (soundObj.vol != 0){
_local5.soundTransform = new SoundTransform(0.6);
} else {
_local5.soundTransform = new SoundTransform(soundObj.vol);
};
} else {
if ((((_arg1.type == "Jump")) && ((zayoNum == 1)))){
jumpEventCounter++;
if (jumpEventCounter == 1){
moveB.prepareToJump(true);
addEventListener(Event.ENTER_FRAME, pumpDFunction, false, 0, true);
} else {
if (jumpEventCounter == 2){
moveB.prepareToJump(false);
removeEventListener(Event.ENTER_FRAME, pumpDFunction, false);
};
};
} else {
if (_arg1.type == "Lever"){
leverBool = !(leverBool);
if (leverBool){
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkLeverKey, false, 0, true);
} else {
stage.removeEventListener(KeyboardEvent.KEY_DOWN, checkLeverKey, false);
};
} else {
if (_arg1.type == "Fight"){
mapMngr.fight_enabled_1 = true;
mapMngr.pause();
mapMngr.dispatchStart({num:0, fade:"fade"});
_local6 = {zx:11000, zy:500, zayoNum:2, mapNum:1, xx:-11000};
mapMngr.setNextMapParams(_local6);
} else {
if (_arg1.type == "Fight2"){
kolichka.parent.removeChild(kolichka);
mapMngr.pause();
mapMngr.dispatchStart({num:0, fade:"fade"});
_local6 = {zx:12500, zy:500, zayoNum:1, mapNum:1, xx:-12500};
mapMngr.setNextMapParams(_local6);
} else {
if (_arg1.type == "Fight3"){
mapMngr.fight_enabled_3 = true;
_local6 = {xx:-23600, zx:23600, zy:435, zayoNum:2, mapNum:1};
mapMngr.setNextMapParams(_local6);
mapMngr.pause();
mapMngr.dispatchStart({num:0, fade:"fade"});
} else {
if ((((_arg1.type == "intro_stalactite")) && (mapMngr.introStalactiteFirstTime))){
mapMngr.introStalactiteFirstTime = false;
} else {
if (_arg1.type == "Zatvornik"){
_local6 = {zx:24790, zy:200, zayoNum:2, mapNum:1, xx:-24690};
mapMngr.setNextMapParams(_local6);
mapMngr.pause();
mapMngr.dispatchStart({num:4});
} else {
if (_arg1.type == "endLevel"){
_local6 = {zx:0, zy:100, zayoNum:2, mapNum:2, xx:0};
mapMngr.setNextMapParams(_local6);
mapMngr.pause();
mapMngr.dispatchStart({num:5});
};
};
};
};
};
};
};
};
};
};
};
};
};
}
private function eventsFunc_2(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:Object;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if ((((_arg1.type == "endLevel")) && ((itemCollected == 3)))){
_local4 = {zx:50, zy:100, zayoNum:3, mapNum:3, xx:0};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:6});
};
};
};
}
private function eventsFunc_3(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:Object;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if (_arg1.type == "endLevel"){
_local4 = {zx:80, zy:100, zayoNum:4, mapNum:4, xx:0};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:7});
};
};
};
}
private function eventsFunc_4(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:Object;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if ((((_arg1.type == "Fight")) && (mapMngr.firstTimeFightLevel4))){
mapMngr.firstTimeFightLevel4 = false;
_local4 = {xx:-7600, zx:7600, zy:235, zayoNum:4, mapNum:4};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:8});
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
} else {
if ((((_arg1.type == "endLevel")) && (mapMngr.level2enabled))){
_local4 = {zx:10, zy:100, zayoNum:5, mapNum:5, xx:0};
mapMngr.setNextMapParams(_local4);
mapMngr.pause();
mapMngr.dispatchStart({num:10});
};
};
};
};
}
private function eventsFunc_5(_arg1:Object):void{
var _local2:Class;
var _local3:MovieClip;
if (_arg1.type == "spawn"){
_local2 = (getDefinitionByName(("enemies." + _arg1.skin)) as Class);
_local3 = mapMngr.spawnEnemy(_arg1.x2, _arg1.y2, _local2, _arg1.life);
enemies.push(_local3);
} else {
if (_arg1.type == "Info"){
mapMngr.showInfo(_arg1.msg, _arg1.label);
};
};
}
}
}//package hero
Section 161
//Hud (map.Hud)
package map {
import flash.utils.*;
import flash.display.*;
import flash.text.*;
public class Hud extends MovieClip {
public var hb:MovieClip;
private var hero:MovieClip;
public var insufficient:MovieClip;
public var fps_txt:TextField;
private var lastTime2:int;
public var rb:MovieClip;
private var fpsCount2:int;
private var remainTime:Number;// = 120
private var lastTime:int;
public var ammoBar:MovieClip;
private var mapNum:Number;
private var fpsCount:int;
public var time:TextField;
private var mapMngr:MapManager;
public function Hud(_arg1:MovieClip, _arg2:Number, _arg3:MapManager=null):void{
lastTime = getTimer();
remainTime = 120;
lastTime2 = getTimer();
super();
addFrameScript(0, frame1);
mapMngr = _arg3;
hero = _arg1;
this.mapNum = _arg2;
gotoAndStop(_arg2);
}
public function enterFrameHandler():void{
updateFPS();
updateHealth();
updateAmmo();
if (mapNum == 3){
updateRadiation();
updateTime();
};
}
private function updateTime():void{
time.text = ("time: " + hero.remainTime);
}
private function updateAmmo():void{
if (ammoBar.currentLabel == "bat"){
ammoBar.ammo.text = 1000;
} else {
if (ammoBar.currentLabel == "uzi"){
ammoBar.ammo.text = mapMngr.uziAmmo;
} else {
if (ammoBar.currentLabel == "shot"){
ammoBar.ammo.text = String(mapMngr.shotAmmo);
} else {
if (ammoBar.currentLabel == "aka"){
ammoBar.ammo.text = String(mapMngr.akaAmmo);
} else {
ammoBar.ammo.text = String(1000);
};
};
};
};
}
public function playInsufficient():void{
insufficient.play();
}
function frame1(){
stop();
}
private function updateHealth():void{
hb.hb.scaleX = (hero.life / 100);
}
private function updateFPS():void{
fpsCount++;
if ((getTimer() - lastTime) > 1000){
lastTime = getTimer();
fps_txt.text = ("fps: " + fpsCount);
fpsCount = 0;
};
}
private function updateRadiation():void{
rb.rb.scaleX = (hero.radiation / 100);
}
}
}//package map
Section 162
//Level_1 (map.Level_1)
package map {
import flash.display.*;
public dynamic class Level_1 extends MovieClip {
public var stalactite_11:MovieClip;
public var stalactite_12:MovieClip;
public var stalactite_10:MovieClip;
public var p:MovieClip;
public var tunnel:MovieClip;
public var ground_3:MovieClip;
public var ground_4:MovieClip;
public var lever:MovieClip;
public var ground_1:MovieClip;
public var ground_2:MovieClip;
public var kolichka_decor:MovieClip;
public var stalactite_4:MovieClip;
public var stalactite_5:MovieClip;
public var stalactite_7:MovieClip;
public var stalactite_1:MovieClip;
public var stalactite_2:MovieClip;
public var stalactite_3:MovieClip;
public var stalactite_6:MovieClip;
public var stalactite_8:MovieClip;
public var stalactite_9:MovieClip;
public var lever2:MovieClip;
}
}//package map
Section 163
//Level_2 (map.Level_2)
package map {
import flash.display.*;
public dynamic class Level_2 extends MovieClip {
public var p:MovieClip;
}
}//package map
Section 164
//Level_3 (map.Level_3)
package map {
import flash.display.*;
public dynamic class Level_3 extends MovieClip {
public var p:MovieClip;
public var keyHole:MovieClip;
}
}//package map
Section 165
//Level_4 (map.Level_4)
package map {
import flash.display.*;
public dynamic class Level_4 extends MovieClip {
public var foreground_4:Foreground_level_4;
public var p:MovieClip;
}
}//package map
Section 166
//Level_5 (map.Level_5)
package map {
import flash.display.*;
public dynamic class Level_5 extends MovieClip {
public var p:MovieClip;
}
}//package map
Section 167
//MapManager (map.MapManager)
package map {
import flash.utils.*;
import flash.media.*;
import bigroom.input.*;
import flash.display.*;
import windows.*;
import enemies.*;
import flash.events.*;
import hero.*;
import flash.ui.*;
public class MapManager extends MovieClip {
private var heroLife:int;// = 100
private var shadowLayer:MovieClip;
private var music:Sound;
private var mapInited:Boolean;// = false
private var winMngr:WindowManager;
private var key:KeyPoll;
public var level2enabled:Boolean;// = false
private var mapNum:int;// = 0
private var enterFrameCounter:int;
public var mapClip:MovieClip;
private var lastMapNum:int;// = 0
private var stalactites:Array;
public var akaAmmo:uint;// = 0
public var shotAmmo:uint;// = 20
private var theRoot:Sprite;
public var hud:Hud;
public var isPaused:Boolean;// = false
private var channel:SoundChannel;
private var camera:ScreenTargeter;
private var isClear:Boolean;// = true
public var fight_enabled_1:Boolean;// = false
private var timer:Number;
public var fight_enabled_3:Boolean;// = false
public var uziAmmo:uint;// = 50
private var soundObj:Object;
private var enemiesHolder:MovieClip;
public var firstTimeFightLevel4:Boolean;// = true
private var enemy:MovieClip;
private var mapParamsObj:Object;
private var isMapParamsChanged:Boolean;// = false
private var zayoNum:int;// = 0
private var grounds:Array;
private var mustRestart:Boolean;// = false
public var drawingLayer:Sprite;
public var introStalactiteFirstTime:Boolean;// = true
private var lastPosition:Number;// = 0
private var hero:Zayo;
public static const END_LEVEL:String = "endLevel";
public function MapManager(_arg1:Sprite, _arg2:WindowManager=null, _arg3:MovieClip=null, _arg4:Object=null):void{
mapNum = 0;
lastMapNum = 0;
zayoNum = 0;
isClear = true;
isPaused = false;
timer = getTimer();
isMapParamsChanged = false;
mapParamsObj = {};
mapInited = false;
heroLife = 100;
uziAmmo = 50;
shotAmmo = 20;
akaAmmo = 0;
channel = new SoundChannel();
lastPosition = 0;
introStalactiteFirstTime = true;
fight_enabled_1 = false;
fight_enabled_3 = false;
firstTimeFightLevel4 = true;
level2enabled = false;
mustRestart = false;
super();
this.soundObj = _arg4;
theRoot = _arg1;
this.winMngr = _arg2;
key = new KeyPoll(theRoot.stage);
mapParamsObj = {zx:0, zy:100, zayoNum:1, mapNum:1};
isMapParamsChanged = true;
_arg2.setMapManager(this);
shadowLayer = _arg3;
}
public function getGraphics():Graphics{
return (drawingLayer.graphics);
}
public function dispatchEndLevel():void{
}
public function dispatchStart(_arg1=null, _arg2:Boolean=false):void{
shadowLayer.gotoAndStop(5);
winMngr.dispatchStart(_arg1);
setTimeout(removeAll, 500);
}
public function clearAll():void{
removeChild(mapClip);
isClear = true;
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
channel.soundTransform = new SoundTransform(soundObj.vol);
hero.setVolume(_arg1);
}
private function enterFrameHandler(_arg1:Event=null):void{
hero.enterFrameHandler();
camera.moveToTarget();
hud.enterFrameHandler();
checkShortcuts();
}
public function resume():void{
channel = music.play(lastPosition, 99999);
channel.soundTransform = new SoundTransform(soundObj.vol);
addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true);
hero.activate();
}
public function gotoNextLevel():void{
var _local1:Class;
var _local2:Class;
var _local3:int;
enemiesHolder = new MovieClip();
isPaused = false;
mapNum++;
zayoNum++;
addEventListener(Event.ENTER_FRAME, checkShortcuts, false, 0, true);
if (!(isClear)){
clearAll();
};
if (isMapParamsChanged){
if (mapParamsObj.mapNum != null){
mapNum = mapParamsObj.mapNum;
mapParamsObj.mapNum = null;
};
if (mapParamsObj.zayoNum != null){
zayoNum = mapParamsObj.zayoNum;
mapParamsObj.zayoNum = null;
};
isMapParamsChanged = false;
};
_local1 = (getDefinitionByName(("sounds.Level" + mapNum)) as Class);
music = (new (_local1) as Sound);
_local2 = (getDefinitionByName(("map.Level_" + mapNum)) as Class);
mapClip = (new (_local2) as MovieClip);
addChild(mapClip);
if (mapNum == 1){
stalactites = new Array();
grounds = new Array();
_local3 = 1;
while (_local3 < 13) {
stalactites.push(MovieClip(mapClip[("stalactite_" + _local3)]).name);
_local3++;
};
_local3 = 1;
while (_local3 < 5) {
grounds.push(mapClip[("ground_" + _local3)]);
_local3++;
};
};
hero = new Zayo(this, mapClip.p, soundObj, heroLife);
if (!((mapParamsObj.zx == null))){
hero.x = mapParamsObj.zx;
} else {
hero.x = 10000;
};
if (!((mapParamsObj.zy == null))){
hero.y = mapParamsObj.zy;
} else {
hero.y = 100;
};
if (!((mapParamsObj.xx == null))){
x = mapParamsObj.xx;
} else {
x = 0;
};
if (!((mapParamsObj.xx == null))){
mapParamsObj.xx = null;
} else {
mapParamsObj.xx = null;
};
hero.loadSkin(zayoNum);
hero.loadData(mapNum);
if ((((hero.x > 11000)) && ((mapNum == 1)))){
mapClip.removeChild(mapClip.kolichka_decor);
};
addChild(enemiesHolder);
camera = new ScreenTargeter(this);
camera.setTarget(hero);
camera.setTargetCenterY(300);
camera.xMin(0);
camera.xMax(-32050);
camera.yMax(-600);
if (mapNum == 2){
camera.yMin(800);
camera.yMax(-400);
camera.xMax(-15100);
} else {
if (mapNum == 3){
camera.yMin(120);
camera.yMax(-100);
camera.xMax(-5300);
} else {
if (mapNum == 4){
camera.xMax(-7500);
} else {
if (mapNum == 5){
camera.xMax(-300);
};
};
};
};
isClear = false;
hud = new Hud(hero, mapNum, this);
theRoot.addChild(hud);
hero.setWeaponHud(hud);
drawingLayer = new Sprite();
addChild(drawingLayer);
if (mapNum == 1){
hero.setLevel_1Vars({stalactites:stalactites, grounds:grounds, lever:mapClip.lever, lever2:mapClip.lever2, kolichka:mapClip.kolichka_decor});
addChild(mapClip.tunnel);
} else {
if (mapNum == 4){
addChild(mapClip.foreground_4);
};
};
if (lastMapNum != mapNum){
heroLife = 100;
hero.life = heroLife;
lastMapNum = mapNum;
};
shadowLayer.gotoAndStop(mapNum);
}
public function showDie():void{
winMngr.addMe();
}
public function substract_1():void{
mapNum--;
zayoNum--;
}
private function removeAll():void{
channel.stop();
removeChild(enemiesHolder);
enemiesHolder = null;
if (theRoot.contains(hud)){
theRoot.removeChild(hud);
};
if (theRoot.contains(this)){
theRoot.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, enterFrameHandler, false);
removeEventListener(Event.ENTER_FRAME, checkShortcuts, false);
}
public function resetHeroLife():void{
mustRestart = false;
heroLife = 100;
uziAmmo = 50;
akaAmmo = 0;
shotAmmo = 0;
}
public function resetAllProperties():void{
fight_enabled_1 = false;
fight_enabled_3 = false;
shadowLayer.gotoAndStop(5);
mustRestart = false;
uziAmmo = 100;
shotAmmo = 0;
akaAmmo = 0;
heroLife = 100;
introStalactiteFirstTime = true;
level2enabled = false;
removeChild(hero);
firstTimeFightLevel4 = true;
lastMapNum = 0;
mapNum = 1;
zayoNum = 1;
mapParamsObj = {};
lastPosition = 0;
isMapParamsChanged = true;
mapParamsObj = {mapNum:1, zayoNum:1, zx:10, zy:200};
}
public function checkShortcuts(_arg1:Event=null):void{
if (((key.isDown(Keyboard.ESCAPE)) && (((getTimer() - timer) > 300)))){
SoundMixer.stopAll();
timer = getTimer();
if (isPaused){
winMngr.removePause();
} else {
isPaused = true;
pause();
winMngr.showPause();
};
};
}
public function spawnEnemy(_arg1:int, _arg2:int, _arg3:Class, _arg4:int=100):MovieClip{
enemy = new _arg3(mapClip.p, hero, _arg4, soundObj);
enemiesHolder.addChild(enemy);
if (mapNum == 4){
setChildIndex(mapClip.foreground_4, (numChildren - 1));
};
enemy.x = _arg1;
enemy.y = _arg2;
return (enemy);
}
public function setNextMapParams(_arg1:Object):void{
isMapParamsChanged = true;
mapParamsObj = _arg1;
}
public function showInfo(_arg1:String, _arg2:String):void{
winMngr.showInfo(_arg1, _arg2);
}
public function dispatchDie():void{
winMngr.showDie(mapNum);
pause();
removeAll();
}
public function resetLevel_1_fight():void{
var _local1:*;
if (((((fight_enabled_1) || (fight_enabled_3))) && ((mapNum == 1)))){
_local1 = {xx:0, zx:0, zy:105, zayoNum:1, mapNum:1};
setNextMapParams(_local1);
fight_enabled_1 = false;
fight_enabled_3 = false;
};
}
public function pause():void{
heroLife = hero.life;
channel.stop();
removeEventListener(Event.ENTER_FRAME, enterFrameHandler, false);
hero.deactivate();
}
}
}//package map
Section 168
//ScreenTargeter (map.ScreenTargeter)
package map {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ScreenTargeter extends Sprite {
private var _yMax:Number;// = NAN
private var easeCoef:Number;// = 6
private var targPoint:Point;
private var _xMin:Number;// = NAN
private var _usePoint:Boolean;// = false
private var mouseDiviserX:Number;// = 7
private var _xMax:Number;// = NAN
private var _useMouse:Boolean;// = true
private var mouseDiviserY:Number;// = 5
private var targSprite:Sprite;
private var _useYAxis:Boolean;// = true
private var targetCenterY:Number;// = 225
private var targetCenterX:Number;// = 375
private var baseSprite:Sprite;
private var _yMin:Number;// = NAN
public function ScreenTargeter(_arg1:Sprite):void{
easeCoef = 6;
_useMouse = true;
_useYAxis = true;
_usePoint = false;
mouseDiviserX = 7;
mouseDiviserY = 5;
targetCenterX = 375;
targetCenterY = 225;
_xMin = NaN;
_xMax = NaN;
_yMin = NaN;
_yMax = NaN;
super();
this.baseSprite = _arg1;
this.targSprite = new Sprite();
}
public function setMouseDivisorY(_arg1:Number):void{
mouseDiviserY = _arg1;
}
public function yMin(_arg1:Number):void{
_yMin = _arg1;
}
public function setTargetX(_arg1:Number):void{
baseSprite.x = _arg1;
}
public function yMax(_arg1:Number):void{
_yMax = _arg1;
}
public function setMouseDivisorX(_arg1:Number):void{
mouseDiviserX = _arg1;
}
public function usePoint(_arg1:Boolean):void{
_usePoint = _arg1;
}
public function setBase(_arg1:Sprite):void{
baseSprite = _arg1;
}
public function setPoint(_arg1:Point):void{
targPoint = _arg1;
}
public function deactivate():void{
removeEventListener(Event.ENTER_FRAME, moveToTarget, false);
}
public function useMouse(_arg1:Boolean):void{
_useMouse = _arg1;
}
public function useYAxis(_arg1:Boolean):void{
this._useYAxis = _arg1;
}
public function setTargetCenterX(_arg1:Number):void{
targetCenterX = _arg1;
}
public function setTargetCenterY(_arg1:Number):void{
targetCenterY = _arg1;
}
public function setTarget(_arg1:Sprite):void{
targSprite = _arg1;
}
public function setEaseCoef(_arg1:Number):void{
easeCoef = _arg1;
}
public function xMin(_arg1:Number):void{
_xMin = _arg1;
}
public function xMax(_arg1:Number):void{
_xMax = _arg1;
}
public function moveToTarget(_arg1:Event=null):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_usePoint){
_local3 = (_useMouse) ? ((baseSprite.mouseX - targPoint.x) / mouseDiviserX) : 0;
_local4 = (targetCenterX - targPoint.x);
} else {
_local3 = (_useMouse) ? ((baseSprite.mouseX - targSprite.x) / mouseDiviserX) : 0;
_local4 = (targetCenterX - targSprite.x);
};
_local2 = (_local4 - _local3);
_local2 = (((!(isNaN(_xMin))) && ((_local2 > _xMin)))) ? _xMin : _local2;
_local2 = (((!(isNaN(_xMax))) && ((_local2 < _xMax)))) ? _xMax : _local2;
baseSprite.x = (baseSprite.x + ((_local2 - baseSprite.x) / easeCoef));
if (_useYAxis){
if (_usePoint){
_local6 = (_useMouse) ? ((baseSprite.mouseY - targPoint.y) / mouseDiviserY) : 0;
_local7 = (targetCenterY - targPoint.y);
} else {
_local6 = (_useMouse) ? ((baseSprite.mouseY - targSprite.y) / mouseDiviserY) : 0;
_local7 = (targetCenterY - targSprite.y);
};
_local5 = (_local7 - _local6);
_local5 = (((!(isNaN(_yMax))) && ((_local5 < _yMax)))) ? _yMax : _local5;
_local5 = (((!(isNaN(_yMin))) && ((_local5 > _yMin)))) ? _yMin : _local5;
baseSprite.y = (baseSprite.y + ((_local5 - baseSprite.y) / easeCoef));
};
}
public function activate():void{
addEventListener(Event.ENTER_FRAME, moveToTarget, false, 0, true);
}
}
}//package map
Section 169
//Shadows (map.Shadows)
package map {
import flash.display.*;
public dynamic class Shadows extends MovieClip {
public function Shadows(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package map
Section 170
//AkaW (sounds.AkaW)
package sounds {
import flash.media.*;
public dynamic class AkaW extends Sound {
}
}//package sounds
Section 171
//BatW (sounds.BatW)
package sounds {
import flash.media.*;
public dynamic class BatW extends Sound {
}
}//package sounds
Section 172
//Boss_1_die (sounds.Boss_1_die)
package sounds {
import flash.media.*;
public dynamic class Boss_1_die extends Sound {
}
}//package sounds
Section 173
//Boss_2_die (sounds.Boss_2_die)
package sounds {
import flash.media.*;
public dynamic class Boss_2_die extends Sound {
}
}//package sounds
Section 174
//Boss_laugh (sounds.Boss_laugh)
package sounds {
import flash.media.*;
public dynamic class Boss_laugh extends Sound {
}
}//package sounds
Section 175
//Bridge_fall (sounds.Bridge_fall)
package sounds {
import flash.media.*;
public dynamic class Bridge_fall extends Sound {
}
}//package sounds
Section 176
//ChaingunW (sounds.ChaingunW)
package sounds {
import flash.media.*;
public dynamic class ChaingunW extends Sound {
}
}//package sounds
Section 177
//Click (sounds.Click)
package sounds {
import flash.media.*;
public dynamic class Click extends Sound {
}
}//package sounds
Section 178
//Level1 (sounds.Level1)
package sounds {
import flash.media.*;
public dynamic class Level1 extends Sound {
}
}//package sounds
Section 179
//Level2 (sounds.Level2)
package sounds {
import flash.media.*;
public dynamic class Level2 extends Sound {
}
}//package sounds
Section 180
//Level3 (sounds.Level3)
package sounds {
import flash.media.*;
public dynamic class Level3 extends Sound {
}
}//package sounds
Section 181
//Level4 (sounds.Level4)
package sounds {
import flash.media.*;
public dynamic class Level4 extends Sound {
}
}//package sounds
Section 182
//Level5 (sounds.Level5)
package sounds {
import flash.media.*;
public dynamic class Level5 extends Sound {
}
}//package sounds
Section 183
//Menu2 (sounds.Menu2)
package sounds {
import flash.media.*;
public dynamic class Menu2 extends Sound {
}
}//package sounds
Section 184
//Projector (sounds.Projector)
package sounds {
import flash.media.*;
public dynamic class Projector extends Sound {
}
}//package sounds
Section 185
//ShotgunW (sounds.ShotgunW)
package sounds {
import flash.media.*;
public dynamic class ShotgunW extends Sound {
}
}//package sounds
Section 186
//Skin_1_die (sounds.Skin_1_die)
package sounds {
import flash.media.*;
public dynamic class Skin_1_die extends Sound {
}
}//package sounds
Section 187
//Skin_2_die (sounds.Skin_2_die)
package sounds {
import flash.media.*;
public dynamic class Skin_2_die extends Sound {
}
}//package sounds
Section 188
//Skin_3_die (sounds.Skin_3_die)
package sounds {
import flash.media.*;
public dynamic class Skin_3_die extends Sound {
}
}//package sounds
Section 189
//Skin_4_die (sounds.Skin_4_die)
package sounds {
import flash.media.*;
public dynamic class Skin_4_die extends Sound {
}
}//package sounds
Section 190
//Skin_5_die (sounds.Skin_5_die)
package sounds {
import flash.media.*;
public dynamic class Skin_5_die extends Sound {
}
}//package sounds
Section 191
//Skin_6_die (sounds.Skin_6_die)
package sounds {
import flash.media.*;
public dynamic class Skin_6_die extends Sound {
}
}//package sounds
Section 192
//Stalactite (sounds.Stalactite)
package sounds {
import flash.media.*;
public dynamic class Stalactite extends Sound {
}
}//package sounds
Section 193
//UziW (sounds.UziW)
package sounds {
import flash.media.*;
public dynamic class UziW extends Sound {
}
}//package sounds
Section 194
//Warning (sounds.Warning)
package sounds {
import flash.media.*;
public dynamic class Warning extends Sound {
}
}//package sounds
Section 195
//Cinema (windows.Cinema)
package windows {
import sounds.*;
import flash.media.*;
import flash.display.*;
import flash.events.*;
import map.*;
import flash.utils.*;
import flash.net.*;
public class Cinema extends MovieClip {
private var counter:int;// = 0
private var channel:SoundChannel;
private var parentClip:Sprite;
private var sound:Sound;
private var curFunc:Function;
private var fadeOut:MovieClip;
private var soundObj:Object;
private var fade:Boolean;// = false
private var skipButton:MovieClip;
private var isSkipped:Boolean;// = false
private var fadeIn:MovieClip;
private var mapManager:MapManager;
private var cinemaNum:int;// = 0
private var cinemaClip:MovieClip;
public static const END_MOVIE:String = "endMovie";
public function Cinema(_arg1=null):void{
counter = 0;
cinemaNum = 0;
isSkipped = false;
fade = false;
super();
this.soundObj = _arg1;
fadeIn = new FadeIn();
fadeOut = new FadeOut();
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
}
public function addMe(_arg1:Sprite, _arg2:int, _arg3:MapManager, _arg4:Boolean=false):void{
this.fade = _arg4;
mapManager = _arg3;
sound = new Projector();
channel = sound.play(0, 999);
channel.soundTransform = new SoundTransform(soundObj.vol);
counter = 0;
cinemaNum = _arg2;
if (cinemaNum == 3){
cinemaNum++;
};
this.parentClip = _arg1;
this.parentClip.addChild(this);
MovieClip(addChild(fadeIn)).gotoAndPlay(1);
curFunc = firstPartFunction;
addEventListener(Event.ENTER_FRAME, curFunc, false, 0, true);
}
private function secondPartFunction(_arg1:Event=null):void{
if (counter > -1){
counter++;
} else {
if (((isSkipped) || ((cinemaClip.currentFrame == (cinemaClip.totalFrames - 10))))){
MovieClip(addChild(fadeIn)).gotoAndPlay(1);
skipButton.removeEventListener(MouseEvent.MOUSE_DOWN, skipMovie, false);
removeChild(skipButton);
counter = 0;
channel.stop();
};
};
if (counter == 10){
removeChild(fadeIn);
MovieClip(addChild(fadeOut)).gotoAndPlay(1);
dispatchEvent(new Event(Cinema.END_MOVIE));
removeChild(cinemaClip);
} else {
if (counter == 20){
removeEventListener(Event.ENTER_FRAME, curFunc, false);
removeChild(fadeOut);
cinemaClip.stop();
parentClip.removeChild(this);
};
};
}
private function firstPartFunction(_arg1:Event=null):void{
var _local2:Class;
counter++;
if ((((counter == 20)) && (fade))){
if (parentClip.contains(mapManager)){
parentClip.removeChild(mapManager.hud);
parentClip.removeChild(mapManager);
};
removeChild(fadeIn);
MovieClip(addChild(fadeOut)).gotoAndPlay(1);
dispatchEvent(new Event(Cinema.END_MOVIE));
} else {
if ((((counter == 10)) && (!(fade)))){
if (cinemaNum <= 0){
cinemaNum = 1;
};
_local2 = (getDefinitionByName(("windows.Cinema_" + cinemaNum)) as Class);
cinemaClip = (new (_local2) as MovieClip);
addChild(cinemaClip);
if (parentClip.contains(mapManager)){
parentClip.removeChild(mapManager.hud);
parentClip.removeChild(mapManager);
};
removeChild(fadeIn);
MovieClip(addChild(fadeOut)).gotoAndPlay(1);
} else {
if ((((counter == 40)) && (fade))){
removeEventListener(Event.ENTER_FRAME, curFunc, false);
removeChild(fadeOut);
parentClip.removeChild(this);
channel.stop();
fade = false;
} else {
if (counter == 20){
removeChild(fadeOut);
skipButton = new SkipBtn();
skipButton.buttonMode = true;
addChild(skipButton);
if (cinemaNum == 11){
skipButton.gotoAndStop(2);
};
removeEventListener(Event.ENTER_FRAME, curFunc, false);
curFunc = secondPartFunction;
addEventListener(Event.ENTER_FRAME, curFunc, false, 0, true);
skipButton.addEventListener(MouseEvent.MOUSE_DOWN, skipMovie, false, 0, true);
counter = -1;
isSkipped = false;
};
};
};
};
}
private function skipMovie(_arg1:MouseEvent=null):void{
if (cinemaNum == 11){
navigateToURL(new URLRequest("http://www.arcadebomb.com/play/zayo.html"), "_blank");
return;
};
isSkipped = true;
}
}
}//package windows
Section 196
//Cinema_1 (windows.Cinema_1)
package windows {
import flash.display.*;
public dynamic class Cinema_1 extends MovieClip {
public function Cinema_1(){
addFrameScript(1123, frame1124);
}
function frame1124(){
stop();
}
}
}//package windows
Section 197
//Cinema_10 (windows.Cinema_10)
package windows {
import flash.display.*;
public dynamic class Cinema_10 extends MovieClip {
public function Cinema_10(){
addFrameScript(486, frame487);
}
function frame487(){
stop();
}
}
}//package windows
Section 198
//Cinema_11 (windows.Cinema_11)
package windows {
import flash.display.*;
public dynamic class Cinema_11 extends MovieClip {
public function Cinema_11(){
addFrameScript(505, frame506, 527, frame528);
}
function frame506(){
stop();
}
function frame528(){
stop();
}
}
}//package windows
Section 199
//Cinema_2 (windows.Cinema_2)
package windows {
import flash.display.*;
public dynamic class Cinema_2 extends MovieClip {
}
}//package windows
Section 200
//Cinema_4 (windows.Cinema_4)
package windows {
import flash.display.*;
public dynamic class Cinema_4 extends MovieClip {
public function Cinema_4(){
addFrameScript(195, frame196);
}
function frame196(){
stop();
}
}
}//package windows
Section 201
//Cinema_5 (windows.Cinema_5)
package windows {
import flash.display.*;
public dynamic class Cinema_5 extends MovieClip {
public function Cinema_5(){
addFrameScript(203, frame204);
}
function frame204(){
stop();
}
}
}//package windows
Section 202
//Cinema_6 (windows.Cinema_6)
package windows {
import flash.display.*;
public dynamic class Cinema_6 extends MovieClip {
public function Cinema_6(){
addFrameScript(188, frame189, 245, frame246);
}
function frame189(){
}
function frame246(){
stop();
}
}
}//package windows
Section 203
//Cinema_7 (windows.Cinema_7)
package windows {
import flash.display.*;
public dynamic class Cinema_7 extends MovieClip {
public function Cinema_7(){
addFrameScript(341, frame342);
}
function frame342(){
stop();
}
}
}//package windows
Section 204
//Cinema_8 (windows.Cinema_8)
package windows {
import flash.display.*;
public dynamic class Cinema_8 extends MovieClip {
public function Cinema_8(){
addFrameScript(65, frame66);
}
function frame66(){
stop();
}
}
}//package windows
Section 205
//Cinema_9 (windows.Cinema_9)
package windows {
import flash.display.*;
public dynamic class Cinema_9 extends MovieClip {
public function Cinema_9(){
addFrameScript(369, frame370);
}
function frame370(){
stop();
}
}
}//package windows
Section 206
//FadeIn (windows.FadeIn)
package windows {
import flash.display.*;
public dynamic class FadeIn extends MovieClip {
public function FadeIn(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package windows
Section 207
//FadeOut (windows.FadeOut)
package windows {
import flash.display.*;
public dynamic class FadeOut extends MovieClip {
public function FadeOut(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package windows
Section 208
//GameOverMenu (windows.GameOverMenu)
package windows {
import map.*;
import flash.events.*;
import flash.display.*;
public class GameOverMenu extends MovieClip {
public var restart_btn:MovieClip;
public var movie:MovieClip;
private var mapManager:MapManager;
public var main_btn:MovieClip;
public function GameOverMenu(_arg1:int=2, _arg2:MapManager=null):void{
addFrameScript(9, frame10);
mapManager = _arg2;
addOverOutFunc(restart_btn);
addOverOutFunc(main_btn);
addMouseDownFunc(restart_btn, restart);
addMouseDownFunc(main_btn, mainMenu);
movie.gotoAndStop(_arg1);
}
public function restart(_arg1:MouseEvent):void{
mapManager.resetHeroLife();
WindowManager(parent).dispatchRestart();
}
private function addMouseDownFunc(_arg1:MovieClip, _arg2:Function):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, _arg2, false, 0, true);
}
function frame10(){
stop();
}
private function addOverOutFunc(_arg1:MovieClip):void{
_arg1.buttonMode = true;
}
public function mainMenu(_arg1:MouseEvent):void{
WindowManager(parent).dispatchMain();
}
}
}//package windows
Section 209
//Info (windows.Info)
package windows {
import flash.display.*;
import flash.text.*;
public dynamic class Info extends MovieClip {
public var anim:MovieClip;
public var txt:TextField;
}
}//package windows
Section 210
//PauseMenu (windows.PauseMenu)
package windows {
import flash.events.*;
import map.*;
import flash.display.*;
public class PauseMenu extends MovieClip {
public var restart_btn:SimpleButton;
public var mute_btn:SimpleButton;
private var winMngr:WindowManager;
public var resume_btn:SimpleButton;
private var mapMngr:MapManager;
public var main_btn:SimpleButton;
public var men:MovieClip;
public function PauseMenu(_arg1:WindowManager, _arg2:MapManager=null):void{
mapMngr = _arg2;
winMngr = _arg1;
restart_btn.addEventListener(MouseEvent.MOUSE_DOWN, restartDownEvent, false, 0, true);
main_btn.addEventListener(MouseEvent.MOUSE_DOWN, mainDownEvent, false, 0, true);
mute_btn.addEventListener(MouseEvent.MOUSE_DOWN, muteDownEvent, false, 0, true);
resume_btn.addEventListener(MouseEvent.MOUSE_DOWN, resumeDownEvent, false, 0, true);
}
private function mainDownEvent(_arg1:MouseEvent):void{
winMngr.pause_dispatchMain();
}
private function resumeDownEvent(_arg1:MouseEvent=null):void{
winMngr.removePause();
}
private function restartDownEvent(_arg1:MouseEvent):void{
mapMngr.resetHeroLife();
winMngr.pause_dispatchRestart();
}
private function muteDownEvent(_arg1:MouseEvent=null):void{
winMngr.pause_mute();
winMngr.removePause();
}
}
}//package windows
Section 211
//SkipBtn (windows.SkipBtn)
package windows {
import flash.display.*;
public dynamic class SkipBtn extends MovieClip {
public function SkipBtn(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package windows
Section 212
//StartMenu_1_ (windows.StartMenu_1_)
package windows {
import flash.display.*;
public dynamic class StartMenu_1_ extends MovieClip {
public function StartMenu_1_(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 213
//StartMenu_1_new (windows.StartMenu_1_new)
package windows {
import flash.events.*;
import flash.net.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import sounds.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
public class StartMenu_1_new extends MovieClip {
private var newWinFunc:Function;
public var back_btn:SimpleButton;
private var sound:Sound;
public var quality_btn:SimpleButton;
public var content_mc:MovieClip;
public var credits_btn:SimpleButton;
private var winMngr:WindowManager;
private var tween:Tween;
public var fader:MovieClip;
public var how_to_btn:SimpleButton;
public var more_btn:SimpleButton;
public var addThisGame_btn:SimpleButton;
public var arcade_btn:SimpleButton;
public var header_txt:TextField;
public var play_btn:SimpleButton;
public var zayo1_btn:SimpleButton;
private var quality:int;// = 1
public static const START:String = "start";
public function StartMenu_1_new(_arg1:WindowManager=null):void{
quality = 1;
super();
addFrameScript(0, frame1);
winMngr = _arg1;
fader.mouseEnabled = false;
addMouseDownFunc(addThisGame_btn, addThisFunc);
addMouseDownFunc(arcade_btn, arcadeFunc);
addMouseDownFunc(zayo1_btn, gotoZayo1);
addMouseDownFunc(play_btn, startGame);
addMouseDownFunc(quality_btn, gotoQuality);
addMouseDownFunc(how_to_btn, gotoHowTo);
addMouseDownFunc(credits_btn, gotoCredits);
addMouseDownFunc(more_btn, gotoMore);
addMouseDownFunc(back_btn, goBack);
}
private function toggleMed(_arg1:MouseEvent):void{
toggleQual(2);
}
private function arcadeFunc(_arg1):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
private function toggleHigh(_arg1:MouseEvent):void{
toggleQual(1);
}
private function addMouseDownFunc(_arg1, _arg2:Function):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, _arg2, false, 0, true);
}
private function addThisFunc(_arg1):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com/free_website_games.html"), "_blank");
}
private function checkFrame(_arg1:Event):void{
if (fader.currentFrame == fader.totalFrames){
removeEventListener(Event.ENTER_FRAME, checkFrame, false);
winMngr.removeChild(this);
dispatchEvent(new Event(StartMenu_1_new.START));
};
}
private function gotoHowTo(_arg1:MouseEvent):void{
header_txt.text = "How to play";
content_mc.gotoAndStop(1);
tween = new Tween(this, "x", Strong.easeInOut, 0, -720, 1, true);
}
private function addOverOutFunc(_arg1:MovieClip):void{
_arg1.addEventListener(MouseEvent.MOUSE_OVER, playButton, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, stopButton, false, 0, true);
}
private function startGameFunc():void{
dispatchEvent(new Event(StartMenu_1_new.START));
}
private function gotoMore(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
private function startGame(_arg1:MouseEvent):void{
addEventListener(Event.ENTER_FRAME, checkFrame, false, 0, true);
fader.play();
}
function frame1(){
stop();
}
private function renderQualityMenu(_arg1:Event):void{
content_mc.removeEventListener(Event.RENDER, renderQualityMenu, false);
toggleQual(quality);
content_mc.high_btn.addEventListener(MouseEvent.MOUSE_DOWN, toggleHigh, false, 0, true);
content_mc.med_btn.addEventListener(MouseEvent.MOUSE_DOWN, toggleMed, false, 0, true);
content_mc.low_btn.addEventListener(MouseEvent.MOUSE_DOWN, toggleLow, false, 0, true);
content_mc.high_btn.buttonMode = true;
content_mc.med_btn.buttonMode = true;
content_mc.low_btn.buttonMode = true;
}
private function toggleLow(_arg1:MouseEvent):void{
toggleQual(3);
}
private function playButton(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.currentTarget);
_local2.play();
}
private function gotoZayo1(_arg1):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com/play/zayo.html"), "_blank");
}
private function gotoCredits(_arg1:MouseEvent):void{
header_txt.text = "Credits";
content_mc.gotoAndStop(2);
tween = new Tween(this, "x", Strong.easeInOut, 0, -720, 1, true);
}
private function playClickSound(_arg1:MouseEvent):void{
sound = new Click();
sound.play();
}
private function toggleQual(_arg1:int=1):void{
quality = _arg1;
if (quality == 1){
stage.quality = StageQuality.HIGH;
content_mc.high_btn.gotoAndStop(2);
content_mc.med_btn.gotoAndStop(1);
content_mc.low_btn.gotoAndStop(1);
} else {
if (quality == 2){
stage.quality = StageQuality.MEDIUM;
content_mc.high_btn.gotoAndStop(1);
content_mc.med_btn.gotoAndStop(2);
content_mc.low_btn.gotoAndStop(1);
} else {
stage.quality = StageQuality.LOW;
content_mc.high_btn.gotoAndStop(1);
content_mc.med_btn.gotoAndStop(1);
content_mc.low_btn.gotoAndStop(2);
};
};
}
private function gotoQuality(_arg1:MouseEvent):void{
header_txt.text = "Quality";
content_mc.addEventListener(Event.RENDER, renderQualityMenu, false, 0, true);
stage.invalidate();
content_mc.gotoAndStop(3);
tween = new Tween(this, "x", Strong.easeInOut, 0, -720, 1, true);
}
private function stopButton(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.currentTarget);
if ((((_local2.currentFrame < (_local2.totalFrames - 15))) && (!((_local2.currentFrame == 1))))){
_local2.gotoAndPlay((_local2.totalFrames - 15));
};
}
private function goBack(_arg1:MouseEvent):void{
tween = new Tween(this, "x", Strong.easeInOut, this.x, 0, 1, true);
}
}
}//package windows
Section 214
//StartMenu_2 (windows.StartMenu_2)
package windows {
import flash.display.*;
public dynamic class StartMenu_2 extends MovieClip {
public function StartMenu_2(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 215
//StartMenu_3 (windows.StartMenu_3)
package windows {
import flash.display.*;
public dynamic class StartMenu_3 extends MovieClip {
public function StartMenu_3(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 216
//StartMenu_4 (windows.StartMenu_4)
package windows {
import flash.display.*;
public dynamic class StartMenu_4 extends MovieClip {
public function StartMenu_4(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package windows
Section 217
//WindowManager (windows.WindowManager)
package windows {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.events.*;
import sounds.*;
import map.*;
public class WindowManager extends Sprite {
private var pauseWin:MovieClip;
private var channel:SoundChannel;
private var music:Sound;
private var timeOutVar:int;
private var timer:Timer;
private var soundObj:Object;
public var cinemaVar:Object;
private var objectives:MovieClip;
private var showInfoSound:Sound;
private var mapManager:MapManager;
private var currentWin:MovieClip;
public var mustRestart:Boolean;// = false
private var cinemaNum:int;// = 0
private var isAttached:Boolean;// = false
private var theRoot:Sprite;
public static const MUTE:String = "mute";
public static const START:String = "start";
public static const MAIN:String = "main";
public static const RESTART:String = "restart";
public function WindowManager(_arg1:Sprite, _arg2:Object=null, _arg3:int=0):void{
currentWin = new MovieClip();
channel = new SoundChannel();
isAttached = false;
cinemaNum = 0;
mustRestart = false;
super();
this.cinemaNum = _arg3;
this.soundObj = _arg2;
theRoot = _arg1;
theRoot.addChild(this);
timer = new Timer(4000, 1);
timer.addEventListener(TimerEvent.TIMER, hideInfo, false, 0, true);
}
public function removeObjectives():void{
removeChild(objectives);
}
public function pause_dispatchMain():void{
mapManager.resetLevel_1_fight();
mapManager.isPaused = false;
if (currentWin != null){
if (contains(currentWin)){
removeChild(currentWin);
};
};
theRoot.removeChild(mapManager.hud);
theRoot.removeChild(mapManager);
removeChild(pauseWin);
theRoot.removeChild(this);
mapManager.resetAllProperties();
dispatchEvent(new Event(WindowManager.MAIN));
}
public function pause_dispatchRestart():void{
mapManager.resetLevel_1_fight();
mapManager.isPaused = false;
mapManager.resetHeroLife();
if (currentWin != null){
if (contains(currentWin)){
removeChild(currentWin);
};
};
removeChild(pauseWin);
theRoot.removeChild(this);
dispatchEvent(new Event(WindowManager.RESTART));
}
private function hideInfo(_arg1:TimerEvent=null):void{
removeChild(currentWin);
removeMe();
}
public function dispatchStart(_arg1=null):void{
cinemaVar = _arg1;
dispatchEvent(new Event(WindowManager.START));
if (_arg1.main != null){
if (_arg1.main){
mustRestart = true;
};
};
}
public function addMe():void{
theRoot.addChild(this);
}
public function setVolume(_arg1:Number):void{
soundObj.vol = _arg1;
channel.soundTransform = new SoundTransform(soundObj.vol);
}
public function attachStart():void{
if (!(isAttached)){
isAttached = true;
music = new Menu2();
channel = music.play(0, 9999);
channel.soundTransform = new SoundTransform(soundObj.vol);
};
currentWin = new StartMenu_1_new(this);
addChild(currentWin);
currentWin.gotoAndStop(1);
currentWin.addEventListener(StartMenu_1_new.START, startTheGame, false, 0, true);
}
public function dispatchRestart():void{
mapManager.resetLevel_1_fight();
if (parent.contains(this)){
removeMe();
};
if (currentWin != null){
if (contains(currentWin)){
removeChild(currentWin);
};
};
dispatchEvent(new Event(WindowManager.RESTART));
}
public function showObjectives(_arg1:int=1):void{
objectives = new Objectives();
addChild(objectives);
objectives.o.gotoAndStop(_arg1);
setTimeout(removeObjectives, 7000);
}
public function removeMe():void{
theRoot.removeChild(this);
}
private function startTheGame(_arg1:Event):void{
dispatchEvent(new Event(WindowManager.START));
channel.stop();
isAttached = false;
}
public function showDie(_arg1:int=0):void{
if (contains(currentWin)){
timer.reset();
removeChild(currentWin);
currentWin = new GameOverMenu(_arg1, mapManager);
addChild(currentWin);
} else {
currentWin = new GameOverMenu(_arg1, mapManager);
addChild(currentWin);
addMe();
};
}
public function showInfo(_arg1:String, _arg2:String):void{
var _local3:*;
showInfoSound = new Warning();
_local3 = showInfoSound.play();
_local3.soundTransform = new SoundTransform(soundObj.vol);
if (((contains(currentWin)) && ((currentWin is Info)))){
timer.reset();
hideInfo();
};
addMe();
currentWin = new Info();
addChild(currentWin);
currentWin.txt.text = _arg1;
currentWin.anim.gotoAndStop(_arg2);
timer.start();
}
public function dispatchMain():void{
mapManager.resetLevel_1_fight();
removeMe();
removeChild(currentWin);
mapManager.resetAllProperties();
dispatchEvent(new Event(WindowManager.MAIN));
}
public function setMapManager(_arg1:MapManager):void{
this.mapManager = _arg1;
}
public function pause_mute():void{
dispatchEvent(new Event(WindowManager.MUTE));
}
public function removePause():void{
mapManager.isPaused = false;
mapManager.resume();
if (contains(currentWin)){
timer.start();
removeChild(pauseWin);
} else {
removeChild(pauseWin);
if (parent.contains(this)){
removeMe();
};
};
}
public function showPause():void{
mapManager.isPaused = true;
if (contains(currentWin)){
timer.stop();
pauseWin = new PauseMenu(this, mapManager);
addChild(pauseWin);
} else {
pauseWin = new PauseMenu(this, mapManager);
addChild(pauseWin);
addMe();
};
}
}
}//package windows
Section 218
//AkaAmmo (AkaAmmo)
package {
import flash.display.*;
public dynamic class AkaAmmo extends MovieClip {
}
}//package
Section 219
//AmmoItem (AmmoItem)
package {
import flash.display.*;
public dynamic class AmmoItem extends MovieClip {
}
}//package
Section 220
//Background (Background)
package {
import flash.display.*;
public dynamic class Background extends MovieClip {
public function Background(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 221
//blood3 (blood3)
package {
import flash.display.*;
public dynamic class blood3 extends MovieClip {
}
}//package
Section 222
//COmic (COmic)
package {
import flash.text.*;
public dynamic class COmic extends Font {
}
}//package
Section 223
//Ekran (Ekran)
package {
import flash.display.*;
public dynamic class Ekran extends MovieClip {
}
}//package
Section 224
//Fader (Fader)
package {
import windows.*;
import flash.display.*;
public dynamic class Fader extends MovieClip {
public var a:FadeIn;
}
}//package
Section 225
//Font1 (Font1)
package {
import flash.text.*;
public dynamic class Font1 extends Font {
}
}//package
Section 226
//Foreground (Foreground)
package {
import flash.display.*;
public dynamic class Foreground extends MovieClip {
public function Foreground(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 227
//Foreground_level_4 (Foreground_level_4)
package {
import flash.display.*;
public dynamic class Foreground_level_4 extends MovieClip {
}
}//package
Section 228
//HealthItem (HealthItem)
package {
import flash.display.*;
public dynamic class HealthItem extends MovieClip {
}
}//package
Section 229
//Hero (Hero)
package {
import flash.display.*;
public dynamic class Hero extends MovieClip {
public var lastState:MovieClip;
public function Hero(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 14, frame15, 19, frame20, 24, frame25);
}
function frame10(){
stop();
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame5(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 230
//Objectives (Objectives)
package {
import flash.display.*;
public dynamic class Objectives extends MovieClip {
public var o:MovieClip;
public function Objectives(){
addFrameScript(155, frame156);
}
function frame156(){
stop();
}
}
}//package
Section 231
//Preloader (Preloader)
package {
import flash.display.*;
public dynamic class Preloader extends MovieClip {
public var link_btn:SimpleButton;
public var logo_mc:MovieClip;
public function Preloader(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 232
//PuzzleItem (PuzzleItem)
package {
import flash.display.*;
public dynamic class PuzzleItem extends MovieClip {
}
}//package
Section 233
//ShotAmmo (ShotAmmo)
package {
import flash.display.*;
public dynamic class ShotAmmo extends MovieClip {
}
}//package
Section 234
//TheKey (TheKey)
package {
import flash.display.*;
public dynamic class TheKey extends MovieClip {
}
}//package
Section 235
//UziAmmo (UziAmmo)
package {
import flash.display.*;
public dynamic class UziAmmo extends MovieClip {
}
}//package