Section 1
//achie_10mnt_mc_173 (Action_fla.achie_10mnt_mc_173)
package Action_fla {
import flash.display.*;
public dynamic class achie_10mnt_mc_173 extends MovieClip {
public function achie_10mnt_mc_173(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 2
//achie_20mnt_mc_175 (Action_fla.achie_20mnt_mc_175)
package Action_fla {
import flash.display.*;
public dynamic class achie_20mnt_mc_175 extends MovieClip {
public function achie_20mnt_mc_175(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 3
//achie_35mnt_mc_177 (Action_fla.achie_35mnt_mc_177)
package Action_fla {
import flash.display.*;
public dynamic class achie_35mnt_mc_177 extends MovieClip {
public function achie_35mnt_mc_177(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 4
//achie_combo10hit_mc_201 (Action_fla.achie_combo10hit_mc_201)
package Action_fla {
import flash.display.*;
public dynamic class achie_combo10hit_mc_201 extends MovieClip {
public function achie_combo10hit_mc_201(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 5
//achie_combo15hit_mc_203 (Action_fla.achie_combo15hit_mc_203)
package Action_fla {
import flash.display.*;
public dynamic class achie_combo15hit_mc_203 extends MovieClip {
public function achie_combo15hit_mc_203(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 6
//achie_combo5hit_mc_199 (Action_fla.achie_combo5hit_mc_199)
package Action_fla {
import flash.display.*;
public dynamic class achie_combo5hit_mc_199 extends MovieClip {
public function achie_combo5hit_mc_199(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 7
//achie_counter_mc_207 (Action_fla.achie_counter_mc_207)
package Action_fla {
import flash.display.*;
public dynamic class achie_counter_mc_207 extends MovieClip {
public function achie_counter_mc_207(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 8
//achie_kill10_mc_191 (Action_fla.achie_kill10_mc_191)
package Action_fla {
import flash.display.*;
public dynamic class achie_kill10_mc_191 extends MovieClip {
public function achie_kill10_mc_191(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 9
//achie_kill100_mc_197 (Action_fla.achie_kill100_mc_197)
package Action_fla {
import flash.display.*;
public dynamic class achie_kill100_mc_197 extends MovieClip {
public function achie_kill100_mc_197(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 10
//achie_kill30_mc_193 (Action_fla.achie_kill30_mc_193)
package Action_fla {
import flash.display.*;
public dynamic class achie_kill30_mc_193 extends MovieClip {
public function achie_kill30_mc_193(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 11
//achie_kill50_mc_195 (Action_fla.achie_kill50_mc_195)
package Action_fla {
import flash.display.*;
public dynamic class achie_kill50_mc_195 extends MovieClip {
public function achie_kill50_mc_195(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 12
//achie_killboss1_mc_209 (Action_fla.achie_killboss1_mc_209)
package Action_fla {
import flash.display.*;
public dynamic class achie_killboss1_mc_209 extends MovieClip {
public function achie_killboss1_mc_209(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 13
//achie_killboss10_mc_213 (Action_fla.achie_killboss10_mc_213)
package Action_fla {
import flash.display.*;
public dynamic class achie_killboss10_mc_213 extends MovieClip {
public function achie_killboss10_mc_213(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 14
//achie_killboss5_mc_211 (Action_fla.achie_killboss5_mc_211)
package Action_fla {
import flash.display.*;
public dynamic class achie_killboss5_mc_211 extends MovieClip {
public function achie_killboss5_mc_211(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 15
//achie_level1_mc_183 (Action_fla.achie_level1_mc_183)
package Action_fla {
import flash.display.*;
public dynamic class achie_level1_mc_183 extends MovieClip {
public function achie_level1_mc_183(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 16
//achie_level2_mc_185 (Action_fla.achie_level2_mc_185)
package Action_fla {
import flash.display.*;
public dynamic class achie_level2_mc_185 extends MovieClip {
public function achie_level2_mc_185(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 17
//achie_level3_mc_187 (Action_fla.achie_level3_mc_187)
package Action_fla {
import flash.display.*;
public dynamic class achie_level3_mc_187 extends MovieClip {
public function achie_level3_mc_187(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 18
//achie_move100_mc_223 (Action_fla.achie_move100_mc_223)
package Action_fla {
import flash.display.*;
public dynamic class achie_move100_mc_223 extends MovieClip {
public function achie_move100_mc_223(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 19
//achie_move200_mc_225 (Action_fla.achie_move200_mc_225)
package Action_fla {
import flash.display.*;
public dynamic class achie_move200_mc_225 extends MovieClip {
public function achie_move200_mc_225(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 20
//achie_move300_mc_227 (Action_fla.achie_move300_mc_227)
package Action_fla {
import flash.display.*;
public dynamic class achie_move300_mc_227 extends MovieClip {
public function achie_move300_mc_227(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 21
//achie_noattack1_219 (Action_fla.achie_noattack1_219)
package Action_fla {
import flash.display.*;
public dynamic class achie_noattack1_219 extends MovieClip {
public function achie_noattack1_219(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 22
//achie_noattack2_mc_221 (Action_fla.achie_noattack2_mc_221)
package Action_fla {
import flash.display.*;
public dynamic class achie_noattack2_mc_221 extends MovieClip {
public function achie_noattack2_mc_221(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 23
//achie_over20_mc_181 (Action_fla.achie_over20_mc_181)
package Action_fla {
import flash.display.*;
public dynamic class achie_over20_mc_181 extends MovieClip {
public function achie_over20_mc_181(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 24
//achie_over5_mc_179 (Action_fla.achie_over5_mc_179)
package Action_fla {
import flash.display.*;
public dynamic class achie_over5_mc_179 extends MovieClip {
public function achie_over5_mc_179(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 25
//achie_pause1_mc_215 (Action_fla.achie_pause1_mc_215)
package Action_fla {
import flash.display.*;
public dynamic class achie_pause1_mc_215 extends MovieClip {
public function achie_pause1_mc_215(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 26
//achie_play10_mc_229 (Action_fla.achie_play10_mc_229)
package Action_fla {
import flash.display.*;
public dynamic class achie_play10_mc_229 extends MovieClip {
public function achie_play10_mc_229(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 27
//achie_play2_mc_217 (Action_fla.achie_play2_mc_217)
package Action_fla {
import flash.display.*;
public dynamic class achie_play2_mc_217 extends MovieClip {
public function achie_play2_mc_217(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 28
//achie_read_credit_mc_171 (Action_fla.achie_read_credit_mc_171)
package Action_fla {
import flash.display.*;
public dynamic class achie_read_credit_mc_171 extends MovieClip {
public function achie_read_credit_mc_171(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 29
//achie_read_mc_169 (Action_fla.achie_read_mc_169)
package Action_fla {
import flash.display.*;
public dynamic class achie_read_mc_169 extends MovieClip {
public function achie_read_mc_169(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 30
//achie_special_mc_205 (Action_fla.achie_special_mc_205)
package Action_fla {
import flash.display.*;
public dynamic class achie_special_mc_205 extends MovieClip {
public function achie_special_mc_205(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 31
//achie_surv_hi_mc_189 (Action_fla.achie_surv_hi_mc_189)
package Action_fla {
import flash.display.*;
public dynamic class achie_surv_hi_mc_189 extends MovieClip {
public function achie_surv_hi_mc_189(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 32
//addmessage_mover_18 (Action_fla.addmessage_mover_18)
package Action_fla {
import flash.display.*;
public dynamic class addmessage_mover_18 extends MovieClip {
public function addmessage_mover_18(){
super();
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package Action_fla
Section 33
//archie_play1_mc_166 (Action_fla.archie_play1_mc_166)
package Action_fla {
import flash.display.*;
public dynamic class archie_play1_mc_166 extends MovieClip {
public function archie_play1_mc_166(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 34
//award_1_mc_232 (Action_fla.award_1_mc_232)
package Action_fla {
import flash.display.*;
public dynamic class award_1_mc_232 extends MovieClip {
public function award_1_mc_232(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 35
//award_2_mc_235 (Action_fla.award_2_mc_235)
package Action_fla {
import flash.display.*;
public dynamic class award_2_mc_235 extends MovieClip {
public function award_2_mc_235(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 36
//award_3_mc_237 (Action_fla.award_3_mc_237)
package Action_fla {
import flash.display.*;
public dynamic class award_3_mc_237 extends MovieClip {
public function award_3_mc_237(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 37
//award_4_mc_239 (Action_fla.award_4_mc_239)
package Action_fla {
import flash.display.*;
public dynamic class award_4_mc_239 extends MovieClip {
public function award_4_mc_239(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 38
//award_5_mc_241 (Action_fla.award_5_mc_241)
package Action_fla {
import flash.display.*;
public dynamic class award_5_mc_241 extends MovieClip {
public function award_5_mc_241(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 39
//bomb_explodeBullet_24 (Action_fla.bomb_explodeBullet_24)
package Action_fla {
import flash.display.*;
public dynamic class bomb_explodeBullet_24 extends MovieClip {
public function bomb_explodeBullet_24(){
super();
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package Action_fla
Section 40
//chara_stat_select_mc_143 (Action_fla.chara_stat_select_mc_143)
package Action_fla {
import flash.display.*;
public dynamic class chara_stat_select_mc_143 extends MovieClip {
public function chara_stat_select_mc_143(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 41
//comboComment_156 (Action_fla.comboComment_156)
package Action_fla {
import flash.display.*;
public dynamic class comboComment_156 extends MovieClip {
public function comboComment_156(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 42
//comboHit_mc_154 (Action_fla.comboHit_mc_154)
package Action_fla {
import flash.display.*;
public dynamic class comboHit_mc_154 extends MovieClip {
public var comment:MovieClip;
public var numMC:MovieClip;
public function comboHit_mc_154(){
super();
addFrameScript(0, frame1, 59, frame60, 152, frame153);
}
function frame153(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame60(){
gotoAndStop(1);
}
}
}//package Action_fla
Section 43
//comboHitNum_mc_155 (Action_fla.comboHitNum_mc_155)
package Action_fla {
import flash.display.*;
import flash.text.*;
public dynamic class comboHitNum_mc_155 extends MovieClip {
public var num:TextField;
public function comboHitNum_mc_155(){
super();
}
}
}//package Action_fla
Section 44
//LOADER_VOICE_396 (Action_fla.LOADER_VOICE_396)
package Action_fla {
import flash.display.*;
public dynamic class LOADER_VOICE_396 extends MovieClip {
public function LOADER_VOICE_396(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Action_fla
Section 45
//MainTimeline (Action_fla.MainTimeline)
package Action_fla {
import flash.events.*;
import flash.display.*;
import FZGame.*;
import flash.media.*;
import flash.utils.*;
import flash.system.*;
import flash.text.*;
import flash.net.*;
import flash.errors.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var percent:int;
public var preloader:MovieClip;
public var test;
public var real_domain;
public var domain_parts;
public var domain;
public function MainTimeline(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
test = new DocumentClass();
test.initialise(this);
}
function frame1(){
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
preloader.addEventListener(Event.ENTER_FRAME, showProgress);
preloader.bArcadeBombLink.addEventListener(MouseEvent.CLICK, arcadeBombClick);
preloader.bArtLogicLink.addEventListener(MouseEvent.CLICK, artLogicClick);
domain_parts = this.loaderInfo.loaderURL.split("://");
real_domain = domain_parts[1].split("/");
domain = real_domain[0];
if ((((((((((((((domain == "artlogicgames.com")) || ((domain == "www.artlogicgames.com")))) || ((domain == "addictinggames.com")))) || ((domain == "www.addictinggames.com")))) || ((domain == "andkon.com")))) || ((domain == "www.andkon.com")))) || ((this.loaderInfo.loaderURL == "file:///F|/ferry%20FLASH%20GAME%20DEV/09%2DAction/Action.swf")))){
preloader.bPreview.visible = false;
} else {
preloader.bPreview.addEventListener(MouseEvent.CLICK, previewClick);
};
}
public function showProgress(evtObj:Event):void{
percent = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
preloader.load_bar.scaleY = (percent / 100);
trace((("Loading... " + percent) + "%"));
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
trace("Done loading");
preloader.removeEventListener(Event.ENTER_FRAME, showProgress);
preloader.gotoAndStop(2);
preloader.bPlay.addEventListener(MouseEvent.CLICK, playClick);
};
}
function frame2(){
}
public function previewClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest("http://www.arcadebomb.com/play/zayo_3.html");
navigateToURL(targetURL, "_blank");
}
public function artLogicClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest("http://www.artlogicgames.com");
navigateToURL(targetURL, "_blank");
}
public function playClick(event:MouseEvent):void{
preloader.removeEventListener(Event.ENTER_FRAME, showProgress);
preloader.bArcadeBombLink.removeEventListener(MouseEvent.CLICK, arcadeBombClick);
preloader.bArtLogicLink.removeEventListener(MouseEvent.CLICK, artLogicClick);
preloader.bPreview.removeEventListener(MouseEvent.CLICK, previewClick);
preloader.bPlay.removeEventListener(MouseEvent.CLICK, playClick);
gotoAndPlay(2);
}
public function arcadeBombClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest("http://www.arcadebomb.com");
navigateToURL(targetURL, "_blank");
}
}
}//package Action_fla
Section 46
//power_bar2_151 (Action_fla.power_bar2_151)
package Action_fla {
import flash.display.*;
public dynamic class power_bar2_151 extends MovieClip {
public function power_bar2_151(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 47
//preloader_mc_1 (Action_fla.preloader_mc_1)
package Action_fla {
import flash.display.*;
public dynamic class preloader_mc_1 extends MovieClip {
public var bPreview:SimpleButton;
public var load_bar:MovieClip;
public var bPlay:SimpleButton;
public var bArtLogicLink:SimpleButton;
public var bArcadeBombLink:SimpleButton;
public function preloader_mc_1(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 48
//SOUND_CLIP_395 (Action_fla.SOUND_CLIP_395)
package Action_fla {
import flash.display.*;
public dynamic class SOUND_CLIP_395 extends MovieClip {
public function SOUND_CLIP_395(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Action_fla
Section 49
//soundON_132 (Action_fla.soundON_132)
package Action_fla {
import flash.display.*;
public dynamic class soundON_132 extends MovieClip {
public function soundON_132(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Action_fla
Section 50
//sprite1258_12 (Action_fla.sprite1258_12)
package Action_fla {
import flash.display.*;
public dynamic class sprite1258_12 extends MovieClip {
public function sprite1258_12(){
super();
addFrameScript(64, frame65);
}
function frame65(){
gotoAndPlay(45);
}
}
}//package Action_fla
Section 51
//zayologomover_16 (Action_fla.zayologomover_16)
package Action_fla {
import flash.display.*;
public dynamic class zayologomover_16 extends MovieClip {
public function zayologomover_16(){
super();
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Action_fla
Section 52
//ZLOADER_33 (Action_fla.ZLOADER_33)
package Action_fla {
import flash.display.*;
public dynamic class ZLOADER_33 extends MovieClip {
public function ZLOADER_33(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Action_fla
Section 53
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
super(_arg1);
}
}
}//package com.kongregate.as3.client.events
Section 54
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4));
}
}
}//package com.kongregate.as3.client.services
Section 55
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
mode = "";
}
public function submit(_arg1:Number, _arg2:String=null):void{
alert("IHighScoreServices", "submit", arguments);
}
public function connect():Boolean{
alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]"));
_arg1({success:false});
}
public function setMode(_arg1:String):void{
alert("IHighScoreServices", "setMode", arguments);
this.mode = _arg1;
}
}
}//package com.kongregate.as3.client.services
Section 56
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 57
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
}//package com.kongregate.as3.client.services
Section 58
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
}//package com.kongregate.as3.client.services
Section 59
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 60
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function getName():String{
alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
alert("IKongregateServices", "connect", arguments);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
alert("IKongregateServices", "getPlayerInfo");
_arg1(new Object());
}
}
}//package com.kongregate.as3.client.services
Section 61
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function submitArray(_arg1:Array):void{
alert("IStatServices", "submitArray", arguments);
}
public function submit(_arg1:String, _arg2:Number):void{
alert("IStatServices", "submitStat", arguments);
}
}
}//package com.kongregate.as3.client.services
Section 62
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function getName():String{
alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
alert("UserService", "getPlayerInfo");
_arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""});
}
}
}//package com.kongregate.as3.client.services
Section 63
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
}//package com.kongregate.as3.client
Section 64
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.services.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
if (mInstance != null){
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
};
mInstance = this;
this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
var _local2:KongregateEvent;
var _local3:Boolean;
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
}
private function init(_arg1:Event):void{
var _local2:Object;
var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
this.removeEventListener(Event.ADDED_TO_STAGE, init);
_loaded = false;
_connected = false;
_local2 = LoaderInfo(root.loaderInfo).parameters;
_local3 = _local2.api_path;
if (_local3 == null){
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
createShadowServices();
return;
};
Security.allowDomain("*.kongregate.com");
Security.allowDomain("kongregatetrunk.com");
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
_local5.securityDomain = SecurityDomain.currentDomain;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(_local4, _local5);
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
getServices();
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
throw (new IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
var _local1:Timer;
trace(">>> Kongregate Shadow Services instantiated for local development..");
kServices = new KongregateServiceShadow();
kScores = new HighScoreServiceShadow();
kStats = new StatServiceShadow();
kUser = new UserServiceShadow();
_local1 = new Timer(200, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected);
_local1.start();
_connected = true;
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
var _local1:ApplicationDomain;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
kServices = _local2.getInstance();
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
kUser = _local5.getInstance();
kServices.connect(VERSION);
_loaded = true;
_connected = true;
alertConnected();
}
public static function getInstance():KongregateAPI{
if (!mInstance){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
}
}//package com.kongregate.as3.client
Section 65
//ControlKey (FZBase.Control.ControlKey)
package FZBase.Control {
import flash.events.*;
public class ControlKey {
private var key_press;
private var key_press2;
private var clip;
private var key_hold;
public function ControlKey(){
super();
}
public function refreshKey(){
key_press2.refreshKey();
key_press.refreshKey();
key_hold.refreshKey();
}
public function getKeyHold():Object{
if (key_hold){
return (key_hold);
};
return (null);
}
private function keyPressed(event:KeyboardEvent):void{
if (key_press.getKeyFlag(event.keyCode) == key_hold.getKeyFlag(event.keyCode)){
key_press.setKeyFlag(event.keyCode, true);
} else {
key_press.setKeyFlag(event.keyCode, false);
};
key_press2.setKeyFlag(event.keyCode, true);
key_hold.setKeyFlag(event.keyCode, true);
clip.addEventListener(Event.ENTER_FRAME, keyPressHandle, false, 0, true);
}
private function keyPressHandle(event:Event):void{
key_press.refreshKey();
key_press2.refreshKey();
clip.removeEventListener(Event.ENTER_FRAME, keyPressHandle);
}
private function deactiveHandle(event:Event):void{
refreshKey();
trace(" deactive !! ");
}
public function initialise(clipVar){
clip = clipVar;
key_press = new KeyFlag();
key_hold = new KeyFlag();
key_press2 = new KeyFlag();
clip.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed, false, 0, true);
clip.addEventListener(KeyboardEvent.KEY_UP, keyReleased, false, 0, true);
clip.addEventListener(Event.ENTER_FRAME, keyFocus, false, 0, true);
clip.addEventListener(Event.DEACTIVATE, deactiveHandle, false, 0, true);
}
public function getKeyPress2():Object{
if (key_press2){
return (key_press2);
};
return (null);
}
private function keyFocus(event:Event):void{
clip.stage.focus = clip;
}
public function getKeyPress():Object{
if (key_press){
return (key_press);
};
return (null);
}
private function keyReleased(event:KeyboardEvent){
key_hold.setKeyFlag(event.keyCode, false);
}
}
}//package FZBase.Control
Section 66
//KeyFlag (FZBase.Control.KeyFlag)
package FZBase.Control {
public class KeyFlag {
public var KEY_LEFT:Boolean;// = false
public var KEY_PGDOWN:Boolean;// = false
public var KEY_0:Boolean;// = false
public var KEY_1:Boolean;// = false
public var KEY_2:Boolean;// = false
public var KEY_3:Boolean;// = false
public var KEY_4:Boolean;// = false
public var KEY_5:Boolean;// = false
public var KEY_6:Boolean;// = false
public var KEY_7:Boolean;// = false
public var KEY_8:Boolean;// = false
public var KEY_9:Boolean;// = false
public var KEY_CONTROL:Boolean;// = false
public var KEY_A:Boolean;// = false
public var KEY_B:Boolean;// = false
public var KEY_C:Boolean;// = false
public var KEY_D:Boolean;// = false
public var KEY_E:Boolean;// = false
public var KEY_F:Boolean;// = false
public var KEY_G:Boolean;// = false
public var KEY_H:Boolean;// = false
public var KEY_I:Boolean;// = false
public var KEY_J:Boolean;// = false
public var KEY_K:Boolean;// = false
public var KEY_L:Boolean;// = false
public var KEY_M:Boolean;// = false
public var KEY_N:Boolean;// = false
public var KEY_O:Boolean;// = false
public var KEY_P:Boolean;// = false
public var KEY_Q:Boolean;// = false
public var KEY_R:Boolean;// = false
public var KEY_S:Boolean;// = false
public var KEY_T:Boolean;// = false
public var KEY_U:Boolean;// = false
public var KEY_V:Boolean;// = false
public var KEY_W:Boolean;// = false
public var KEY_X:Boolean;// = false
public var KEY_Y:Boolean;// = false
public var KEY_Z:Boolean;// = false
public var KEY_SHIFT:Boolean;// = false
public var KEY_TAB:Boolean;// = false
public var KEY_ESC:Boolean;// = false
public var KEY_NUM1:Boolean;// = false
public var KEY_NUM3:Boolean;// = false
public var KEY_NUM5:Boolean;// = false
public var KEY_NUM0:Boolean;// = false
public var KEY_NUM2:Boolean;// = false
public var KEY_NUM4:Boolean;// = false
public var KEY_NUM6:Boolean;// = false
public var KEY_NUM8:Boolean;// = false
public var KEY_UP:Boolean;// = false
public var KEY_BACKSPACE:Boolean;// = false
public var KEY_NUM7:Boolean;// = false
public var KEY_NUM9:Boolean;// = false
public var KEY_F3:Boolean;// = false
public var KEY_F5:Boolean;// = false
public var KEY_F7:Boolean;// = false
public var KEY_F2:Boolean;// = false
public var KEY_F4:Boolean;// = false
public var KEY_F6:Boolean;// = false
public var KEY_ENTER:Boolean;// = false
public var KEY_F8:Boolean;// = false
public var KEY_F1:Boolean;// = false
public var KEY_END:Boolean;// = false
public var KEY_INSERT:Boolean;// = false
public var KEY_F9:Boolean;// = false
public var KEY_DELETE:Boolean;// = false
public var KEY_DOWN:Boolean;// = false
public var KEY_PGUP:Boolean;// = false
public var KEY_HOME:Boolean;// = false
public var KEY_F10:Boolean;// = false
public var KEY_F11:Boolean;// = false
public var KEY_F12:Boolean;// = false
public var KEY_SPACE:Boolean;// = false
public var KEY_RIGHT:Boolean;// = false
public function KeyFlag(){
KEY_A = false;
KEY_B = false;
KEY_C = false;
KEY_D = false;
KEY_E = false;
KEY_F = false;
KEY_G = false;
KEY_H = false;
KEY_I = false;
KEY_J = false;
KEY_K = false;
KEY_L = false;
KEY_M = false;
KEY_N = false;
KEY_O = false;
KEY_P = false;
KEY_Q = false;
KEY_R = false;
KEY_S = false;
KEY_T = false;
KEY_U = false;
KEY_V = false;
KEY_W = false;
KEY_X = false;
KEY_Y = false;
KEY_Z = false;
KEY_0 = false;
KEY_1 = false;
KEY_2 = false;
KEY_3 = false;
KEY_4 = false;
KEY_5 = false;
KEY_6 = false;
KEY_7 = false;
KEY_8 = false;
KEY_9 = false;
KEY_NUM0 = false;
KEY_NUM1 = false;
KEY_NUM2 = false;
KEY_NUM3 = false;
KEY_NUM4 = false;
KEY_NUM5 = false;
KEY_NUM6 = false;
KEY_NUM7 = false;
KEY_NUM8 = false;
KEY_NUM9 = false;
KEY_F1 = false;
KEY_F2 = false;
KEY_F3 = false;
KEY_F4 = false;
KEY_F5 = false;
KEY_F6 = false;
KEY_F7 = false;
KEY_F8 = false;
KEY_F9 = false;
KEY_F10 = false;
KEY_F11 = false;
KEY_F12 = false;
KEY_ESC = false;
KEY_ENTER = false;
KEY_SPACE = false;
KEY_SHIFT = false;
KEY_CONTROL = false;
KEY_TAB = false;
KEY_BACKSPACE = false;
KEY_PGUP = false;
KEY_PGDOWN = false;
KEY_END = false;
KEY_HOME = false;
KEY_INSERT = false;
KEY_DELETE = false;
KEY_UP = false;
KEY_DOWN = false;
KEY_LEFT = false;
KEY_RIGHT = false;
super();
}
public function getKeyFlag(keyCode):Boolean{
switch (keyCode){
case 65:
if (KEY_A){
return (true);
};
break;
case 66:
if (KEY_B){
return (true);
};
break;
case 67:
if (KEY_C){
return (true);
};
break;
case 68:
if (KEY_D){
return (true);
};
break;
case 69:
if (KEY_E){
return (true);
};
break;
case 70:
if (KEY_F){
return (true);
};
break;
case 71:
if (KEY_G){
return (true);
};
break;
case 72:
if (KEY_H){
return (true);
};
break;
case 73:
if (KEY_I){
return (true);
};
break;
case 74:
if (KEY_J){
return (true);
};
break;
case 75:
if (KEY_K){
return (true);
};
break;
case 76:
if (KEY_L){
return (true);
};
break;
case 77:
if (KEY_M){
return (true);
};
break;
case 78:
if (KEY_N){
return (true);
};
break;
case 79:
if (KEY_O){
return (true);
};
break;
case 80:
if (KEY_P){
return (true);
};
break;
case 81:
if (KEY_Q){
return (true);
};
break;
case 82:
if (KEY_R){
return (true);
};
break;
case 83:
if (KEY_S){
return (true);
};
break;
case 84:
if (KEY_T){
return (true);
};
break;
case 85:
if (KEY_U){
return (true);
};
break;
case 86:
if (KEY_V){
return (true);
};
break;
case 87:
if (KEY_W){
return (true);
};
break;
case 88:
if (KEY_X){
return (true);
};
break;
case 89:
if (KEY_Y){
return (true);
};
break;
case 90:
if (KEY_Z){
return (true);
};
break;
case 48:
if (KEY_0){
return (true);
};
break;
case 49:
if (KEY_1){
return (true);
};
break;
case 50:
if (KEY_2){
return (true);
};
break;
case 51:
if (KEY_3){
return (true);
};
break;
case 52:
if (KEY_4){
return (true);
};
break;
case 53:
if (KEY_5){
return (true);
};
break;
case 54:
if (KEY_6){
return (true);
};
break;
case 55:
if (KEY_7){
return (true);
};
break;
case 56:
if (KEY_8){
return (true);
};
break;
case 57:
if (KEY_9){
return (true);
};
break;
case 96:
if (KEY_NUM0){
return (true);
};
break;
case 97:
if (KEY_NUM1){
return (true);
};
break;
case 98:
if (KEY_NUM2){
return (true);
};
break;
case 99:
if (KEY_NUM3){
return (true);
};
break;
case 100:
if (KEY_NUM4){
return (true);
};
break;
case 101:
if (KEY_NUM5){
return (true);
};
break;
case 102:
if (KEY_NUM6){
return (true);
};
break;
case 103:
if (KEY_NUM7){
return (true);
};
break;
case 104:
if (KEY_NUM8){
return (true);
};
break;
case 105:
if (KEY_NUM9){
return (true);
};
break;
case 112:
if (KEY_F1){
return (true);
};
break;
case 113:
if (KEY_F2){
return (true);
};
break;
case 114:
if (KEY_F3){
return (true);
};
break;
case 115:
if (KEY_F4){
return (true);
};
break;
case 116:
if (KEY_F5){
return (true);
};
break;
case 117:
if (KEY_F6){
return (true);
};
break;
case 118:
if (KEY_F7){
return (true);
};
break;
case 119:
if (KEY_F8){
return (true);
};
break;
case 120:
if (KEY_F9){
return (true);
};
break;
case 122:
if (KEY_F11){
return (true);
};
break;
case 123:
if (KEY_F12){
return (true);
};
break;
case 27:
if (KEY_ESC){
return (true);
};
break;
case 13:
if (KEY_ENTER){
return (true);
};
break;
case 32:
if (KEY_SPACE){
return (true);
};
break;
case 16:
if (KEY_SHIFT){
return (true);
};
break;
case 17:
if (KEY_CONTROL){
return (true);
};
break;
case 9:
if (KEY_TAB){
return (true);
};
break;
case 8:
if (KEY_BACKSPACE){
return (true);
};
break;
case 33:
if (KEY_PGUP){
return (true);
};
break;
case 34:
if (KEY_PGDOWN){
return (true);
};
break;
case 35:
if (KEY_END){
return (true);
};
break;
case 36:
if (KEY_HOME){
return (true);
};
break;
case 45:
if (KEY_INSERT){
return (true);
};
break;
case 46:
if (KEY_DELETE){
return (true);
};
break;
case 37:
if (KEY_LEFT){
return (true);
};
break;
case 38:
if (KEY_UP){
return (true);
};
break;
case 39:
if (KEY_RIGHT){
return (true);
};
break;
case 40:
if (KEY_DOWN){
return (true);
};
break;
default:
break;
};
return (false);
}
public function refreshKey(){
KEY_A = false;
KEY_B = false;
KEY_C = false;
KEY_D = false;
KEY_E = false;
KEY_F = false;
KEY_G = false;
KEY_H = false;
KEY_I = false;
KEY_J = false;
KEY_K = false;
KEY_L = false;
KEY_M = false;
KEY_N = false;
KEY_O = false;
KEY_P = false;
KEY_Q = false;
KEY_R = false;
KEY_S = false;
KEY_T = false;
KEY_U = false;
KEY_V = false;
KEY_W = false;
KEY_X = false;
KEY_Y = false;
KEY_Z = false;
KEY_0 = false;
KEY_1 = false;
KEY_2 = false;
KEY_3 = false;
KEY_4 = false;
KEY_5 = false;
KEY_6 = false;
KEY_7 = false;
KEY_8 = false;
KEY_9 = false;
KEY_NUM0 = false;
KEY_NUM1 = false;
KEY_NUM2 = false;
KEY_NUM3 = false;
KEY_NUM4 = false;
KEY_NUM5 = false;
KEY_NUM6 = false;
KEY_NUM7 = false;
KEY_NUM8 = false;
KEY_NUM9 = false;
KEY_F1 = false;
KEY_F2 = false;
KEY_F3 = false;
KEY_F4 = false;
KEY_F5 = false;
KEY_F6 = false;
KEY_F7 = false;
KEY_F8 = false;
KEY_F9 = false;
KEY_F10 = false;
KEY_F11 = false;
KEY_F12 = false;
KEY_ESC = false;
KEY_ENTER = false;
KEY_SPACE = false;
KEY_SHIFT = false;
KEY_CONTROL = false;
KEY_TAB = false;
KEY_BACKSPACE = false;
KEY_PGUP = false;
KEY_PGDOWN = false;
KEY_END = false;
KEY_HOME = false;
KEY_INSERT = false;
KEY_DELETE = false;
KEY_UP = false;
KEY_DOWN = false;
KEY_LEFT = false;
KEY_RIGHT = false;
}
public function setKeyFlag(keyCode, flagVar){
switch (keyCode){
case 65:
KEY_A = flagVar;
break;
case 66:
KEY_B = flagVar;
break;
case 67:
KEY_C = flagVar;
break;
case 68:
KEY_D = flagVar;
break;
case 69:
KEY_E = flagVar;
break;
case 70:
KEY_F = flagVar;
break;
case 71:
KEY_G = flagVar;
break;
case 72:
KEY_H = flagVar;
break;
case 73:
KEY_I = flagVar;
break;
case 74:
KEY_J = flagVar;
break;
case 75:
KEY_K = flagVar;
break;
case 76:
KEY_L = flagVar;
break;
case 77:
KEY_M = flagVar;
break;
case 78:
KEY_N = flagVar;
break;
case 79:
KEY_O = flagVar;
break;
case 80:
KEY_P = flagVar;
break;
case 81:
KEY_Q = flagVar;
break;
case 82:
KEY_R = flagVar;
break;
case 83:
KEY_S = flagVar;
break;
case 84:
KEY_T = flagVar;
break;
case 85:
KEY_U = flagVar;
break;
case 86:
KEY_V = flagVar;
break;
case 87:
KEY_W = flagVar;
break;
case 88:
KEY_X = flagVar;
break;
case 89:
KEY_Y = flagVar;
break;
case 90:
KEY_Z = flagVar;
break;
case 48:
KEY_0 = flagVar;
break;
case 49:
KEY_1 = flagVar;
break;
case 50:
KEY_2 = flagVar;
break;
case 51:
KEY_3 = flagVar;
break;
case 52:
KEY_4 = flagVar;
break;
case 53:
KEY_5 = flagVar;
break;
case 54:
KEY_6 = flagVar;
break;
case 55:
KEY_7 = flagVar;
break;
case 56:
KEY_8 = flagVar;
break;
case 57:
KEY_9 = flagVar;
break;
case 96:
KEY_NUM0 = flagVar;
break;
case 97:
KEY_NUM1 = flagVar;
break;
case 98:
KEY_NUM2 = flagVar;
break;
case 99:
KEY_NUM3 = flagVar;
break;
case 100:
KEY_NUM4 = flagVar;
break;
case 101:
KEY_NUM5 = flagVar;
break;
case 102:
KEY_NUM6 = flagVar;
break;
case 103:
KEY_NUM7 = flagVar;
break;
case 104:
KEY_NUM8 = flagVar;
break;
case 105:
KEY_NUM9 = flagVar;
break;
case 112:
KEY_F1 = flagVar;
break;
case 113:
KEY_F2 = flagVar;
break;
case 114:
KEY_F3 = flagVar;
break;
case 115:
KEY_F4 = flagVar;
break;
case 116:
KEY_F5 = flagVar;
break;
case 117:
KEY_F6 = flagVar;
break;
case 118:
KEY_F7 = flagVar;
break;
case 119:
KEY_F8 = flagVar;
break;
case 120:
KEY_F9 = flagVar;
break;
case 122:
KEY_F11 = flagVar;
break;
case 123:
KEY_F12 = flagVar;
break;
case 27:
KEY_ESC = flagVar;
break;
case 13:
KEY_ENTER = flagVar;
break;
case 32:
KEY_SPACE = flagVar;
break;
case 16:
KEY_SHIFT = flagVar;
break;
case 17:
KEY_CONTROL = flagVar;
break;
case 9:
KEY_TAB = flagVar;
break;
case 8:
KEY_BACKSPACE = flagVar;
break;
case 33:
KEY_PGUP = flagVar;
break;
case 34:
KEY_PGDOWN = flagVar;
break;
case 35:
KEY_END = flagVar;
break;
case 36:
KEY_HOME = flagVar;
break;
case 45:
KEY_INSERT = flagVar;
break;
case 46:
KEY_DELETE = flagVar;
break;
case 37:
KEY_LEFT = flagVar;
break;
case 38:
KEY_UP = flagVar;
break;
case 39:
KEY_RIGHT = flagVar;
break;
case 40:
KEY_DOWN = flagVar;
break;
default:
break;
};
}
}
}//package FZBase.Control
Section 67
//RDHumanClass (FZBase.RDCharacter.RDHumanClass)
package FZBase.RDCharacter {
import flash.events.*;
import flash.display.*;
public class RDHumanClass {
private var skin_upperbody:Sprite;
private var arm_left_upperarm:Sprite;
private var arm_lowerbody:Sprite;
private var arm_upperbody:Sprite;
private var skin_right_upperarm:Sprite;
private var skeleton;
private var skin_left_calf:Sprite;
private var arm_right_forearm:Sprite;
private var arm_right_calf:Sprite;
private var skin_head:Sprite;
private var skin_left_foot:Sprite;
private var skin_left_hand:Sprite;
private var skin_left_forearm:Sprite;
private var arm_left_calf:Sprite;
private var skin_left_upperarm:Sprite;
private var skin_right_thigh:Sprite;
private var arm_right_foot:Sprite;
private var arm_right_hand:Sprite;
private var wpn_right_hand:Sprite;
private var arm_right_upperarm:Sprite;
private var arm_left_foot:Sprite;
private var arm_left_hand:Sprite;
private var skin_right_calf:Sprite;
private var arm_left_thigh:Sprite;
private var wpn_left_hand:Sprite;
private var skin_right_foot:Sprite;
private var skin_right_hand:Sprite;
private var skin_right_forearm:Sprite;
private var arm_right_thigh:Sprite;
private var skin_lowerbody:Sprite;
private var arm_head:Sprite;
private var arm_left_forearm:Sprite;
private var skin_left_thigh:Sprite;
private var thisCont;
public function RDHumanClass(){
super();
}
public function getRightWeaponObject():Object{
var obj:*;
if (wpn_right_hand.numChildren > 0){
obj = wpn_right_hand.getChildAt(0);
return (obj);
};
return (null);
}
public function remove_skin_lowerbody():Object{
var obj:*;
if (skin_lowerbody.numChildren > 0){
obj = skin_lowerbody.getChildAt(0);
skin_lowerbody.removeChild(skin_lowerbody.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_left_hand():Object{
var obj:*;
if (arm_left_hand.numChildren > 0){
obj = arm_left_hand.getChildAt(0);
arm_left_hand.removeChild(arm_left_hand.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_all_arm(){
if (arm_head.numChildren > 0){
arm_head.removeChild(arm_head.getChildAt(0));
};
if (arm_upperbody.numChildren > 0){
arm_upperbody.removeChild(arm_upperbody.getChildAt(0));
};
if (arm_lowerbody.numChildren > 0){
arm_lowerbody.removeChild(arm_lowerbody.getChildAt(0));
};
if (arm_left_upperarm.numChildren > 0){
arm_left_upperarm.removeChild(arm_left_upperarm.getChildAt(0));
};
if (arm_left_forearm.numChildren > 0){
arm_left_forearm.removeChild(arm_left_forearm.getChildAt(0));
};
if (arm_left_hand.numChildren > 0){
arm_left_hand.removeChild(arm_left_hand.getChildAt(0));
};
if (arm_right_upperarm.numChildren > 0){
arm_right_upperarm.removeChild(arm_right_upperarm.getChildAt(0));
};
if (arm_right_forearm.numChildren > 0){
arm_right_forearm.removeChild(arm_right_forearm.getChildAt(0));
};
if (arm_right_hand.numChildren > 0){
arm_right_hand.removeChild(arm_right_hand.getChildAt(0));
};
if (arm_left_thigh.numChildren > 0){
arm_left_thigh.removeChild(arm_left_thigh.getChildAt(0));
};
if (arm_left_calf.numChildren > 0){
arm_left_calf.removeChild(arm_left_calf.getChildAt(0));
};
if (arm_left_foot.numChildren > 0){
arm_left_foot.removeChild(arm_left_foot.getChildAt(0));
};
if (arm_right_thigh.numChildren > 0){
arm_right_thigh.removeChild(arm_right_thigh.getChildAt(0));
};
if (arm_right_calf.numChildren > 0){
arm_right_calf.removeChild(arm_right_calf.getChildAt(0));
};
if (arm_right_foot.numChildren > 0){
arm_right_foot.removeChild(arm_right_foot.getChildAt(0));
};
}
public function remove_skin_left_upperarm():Object{
var obj:*;
if (skin_left_upperarm.numChildren > 0){
obj = skin_left_upperarm.getChildAt(0);
skin_left_upperarm.removeChild(skin_left_upperarm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_right_upperarm():Object{
var obj:*;
if (skin_right_upperarm.numChildren > 0){
obj = skin_right_upperarm.getChildAt(0);
skin_right_upperarm.removeChild(skin_right_upperarm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_left_upperarm():Object{
var obj:*;
if (arm_left_upperarm.numChildren > 0){
obj = arm_left_upperarm.getChildAt(0);
arm_left_upperarm.removeChild(arm_left_upperarm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_right_thigh():Object{
var obj:*;
if (arm_right_thigh.numChildren > 0){
obj = arm_right_thigh.getChildAt(0);
arm_right_thigh.removeChild(arm_right_thigh.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_left_foot():Object{
var obj:*;
if (arm_left_foot.numChildren > 0){
obj = arm_left_foot.getChildAt(0);
arm_left_foot.removeChild(arm_left_foot.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_right_upperarm():Object{
var obj:*;
if (arm_right_upperarm.numChildren > 0){
obj = arm_right_upperarm.getChildAt(0);
arm_right_upperarm.removeChild(arm_right_upperarm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_upperbody():Object{
var obj:*;
if (skin_upperbody.numChildren > 0){
obj = skin_upperbody.getChildAt(0);
skin_upperbody.removeChild(skin_upperbody.getChildAt(0));
return (obj);
};
return (null);
}
public function getLeftCalfObject():Object{
var obj:*;
if (skin_left_calf.numChildren > 0){
obj = skin_left_calf.getChildAt(0);
return (obj);
};
return (null);
}
public function setBody(_head=null, _upperbody=null, _lowerbody=null, _left_upperarm=null, _left_forearm=null, _left_hand=null, _right_upperarm=null, _right_forearm=null, _right_hand=null, _left_thigh=null, _left_calf=null, _left_foot=null, _right_thigh=null, _right_calf=null, _right_foot=null){
if (_head){
skin_head.addChild(_head);
_head.cacheAsBitmap = true;
};
if (_upperbody){
skin_upperbody.addChild(_upperbody);
_upperbody.cacheAsBitmap = true;
};
if (_lowerbody){
skin_lowerbody.addChild(_lowerbody);
_lowerbody.cacheAsBitmap = true;
};
if (_left_upperarm){
skin_left_upperarm.addChild(_left_upperarm);
_left_upperarm.cacheAsBitmap = true;
};
if (_left_forearm){
skin_left_forearm.addChild(_left_forearm);
_left_forearm.cacheAsBitmap = true;
};
if (_left_hand){
skin_left_hand.addChild(_left_hand);
_left_hand.cacheAsBitmap = true;
};
if (_right_upperarm){
skin_right_upperarm.addChild(_right_upperarm);
_right_upperarm.cacheAsBitmap = true;
};
if (_right_forearm){
skin_right_forearm.addChild(_right_forearm);
_right_forearm.cacheAsBitmap = true;
};
if (_right_hand){
skin_right_hand.addChild(_right_hand);
_right_hand.cacheAsBitmap = true;
};
if (_left_thigh){
skin_left_thigh.addChild(_left_thigh);
_left_thigh.cacheAsBitmap = true;
};
if (_left_calf){
skin_left_calf.addChild(_left_calf);
_left_calf.cacheAsBitmap = true;
};
if (_left_foot){
skin_left_foot.addChild(_left_foot);
_left_foot.cacheAsBitmap = true;
};
if (_right_thigh){
skin_right_thigh.addChild(_right_thigh);
_right_thigh.cacheAsBitmap = true;
};
if (_right_calf){
skin_right_calf.addChild(_right_calf);
_right_calf.cacheAsBitmap = true;
};
if (_right_foot){
skin_right_foot.addChild(_right_foot);
_right_foot.cacheAsBitmap = true;
};
}
public function setWeapon(_left_hand, _right_hand){
if (_left_hand){
wpn_left_hand.addChild(_left_hand);
_left_hand.cacheAsBitmap = true;
};
if (_right_hand){
wpn_right_hand.addChild(_right_hand);
_right_hand.cacheAsBitmap = true;
};
}
public function remove_wpn_left_hand():Object{
var obj:*;
if (wpn_left_hand.numChildren > 0){
obj = wpn_left_hand.getChildAt(0);
wpn_left_hand.removeChild(wpn_left_hand.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_left_thigh():Object{
var obj:*;
if (skin_left_thigh.numChildren > 0){
obj = skin_left_thigh.getChildAt(0);
skin_left_thigh.removeChild(skin_left_thigh.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_head():Object{
var obj:*;
if (arm_head.numChildren > 0){
obj = arm_head.getChildAt(0);
arm_head.removeChild(arm_head.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_left_forearm():Object{
var obj:*;
if (arm_left_forearm.numChildren > 0){
obj = arm_left_forearm.getChildAt(0);
arm_left_forearm.removeChild(arm_left_forearm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_right_forearm():Object{
var obj:*;
if (skin_right_forearm.numChildren > 0){
obj = skin_right_forearm.getChildAt(0);
skin_right_forearm.removeChild(skin_right_forearm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_right_forearm():Object{
var obj:*;
if (arm_right_forearm.numChildren > 0){
obj = arm_right_forearm.getChildAt(0);
arm_right_forearm.removeChild(arm_right_forearm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_head():Object{
var obj:*;
if (skin_head.numChildren > 0){
obj = skin_head.getChildAt(0);
skin_head.removeChild(skin_head.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_left_calf():Object{
var obj:*;
if (skin_left_calf.numChildren > 0){
obj = skin_left_calf.getChildAt(0);
skin_left_calf.removeChild(skin_left_calf.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_left_forearm():Object{
var obj:*;
if (skin_left_forearm.numChildren > 0){
obj = skin_left_forearm.getChildAt(0);
skin_left_forearm.removeChild(skin_left_forearm.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_right_calf():Object{
var obj:*;
if (arm_right_calf.numChildren > 0){
obj = arm_right_calf.getChildAt(0);
arm_right_calf.removeChild(arm_right_calf.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_left_foot():Object{
var obj:*;
if (skin_left_foot.numChildren > 0){
obj = skin_left_foot.getChildAt(0);
skin_left_foot.removeChild(skin_left_foot.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_lowerbody():Object{
var obj:*;
if (arm_lowerbody.numChildren > 0){
obj = arm_lowerbody.getChildAt(0);
arm_lowerbody.removeChild(arm_lowerbody.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_left_hand():Object{
var obj:*;
if (skin_left_hand.numChildren > 0){
obj = skin_left_hand.getChildAt(0);
skin_left_hand.removeChild(skin_left_hand.getChildAt(0));
return (obj);
};
return (null);
}
public function remove(){
skeleton.removeEventListener(Event.ENTER_FRAME, skeletonHandle);
while (thisCont.numChildren > 0) {
thisCont.removeChild(thisCont.getChildAt(0));
};
thisCont = null;
}
public function remove_arm_right_foot():Object{
var obj:*;
if (arm_right_foot.numChildren > 0){
obj = arm_right_foot.getChildAt(0);
arm_right_foot.removeChild(arm_right_foot.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_right_hand():Object{
var obj:*;
if (arm_right_hand.numChildren > 0){
obj = arm_right_hand.getChildAt(0);
arm_right_hand.removeChild(arm_right_hand.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_wpn_right_hand():Object{
var obj:*;
if (wpn_right_hand.numChildren > 0){
obj = wpn_right_hand.getChildAt(0);
wpn_right_hand.removeChild(wpn_right_hand.getChildAt(0));
return (obj);
};
return (null);
}
public function getLeftWeaponObject():Object{
var obj:*;
if (wpn_left_hand.numChildren > 0){
obj = wpn_left_hand.getChildAt(0);
return (obj);
};
return (null);
}
public function remove_arm_upperbody():Object{
var obj:*;
if (arm_upperbody.numChildren > 0){
obj = arm_upperbody.getChildAt(0);
arm_upperbody.removeChild(arm_upperbody.getChildAt(0));
return (obj);
};
return (null);
}
public function getLeftFootObject():Object{
var obj:*;
if (skin_left_calf.numChildren > 0){
obj = skin_left_foot.getChildAt(0);
return (obj);
};
return (null);
}
public function remove_all_skin(){
if (skin_head.numChildren > 0){
skin_head.removeChild(skin_head.getChildAt(0));
};
if (skin_upperbody.numChildren > 0){
skin_upperbody.removeChild(skin_upperbody.getChildAt(0));
};
if (skin_lowerbody.numChildren > 0){
skin_lowerbody.removeChild(skin_lowerbody.getChildAt(0));
};
if (skin_left_upperarm.numChildren > 0){
skin_left_upperarm.removeChild(skin_left_upperarm.getChildAt(0));
};
if (skin_left_forearm.numChildren > 0){
skin_left_forearm.removeChild(skin_left_forearm.getChildAt(0));
};
if (skin_left_hand.numChildren > 0){
skin_left_hand.removeChild(skin_left_hand.getChildAt(0));
};
if (skin_right_upperarm.numChildren > 0){
skin_right_upperarm.removeChild(skin_right_upperarm.getChildAt(0));
};
if (skin_right_forearm.numChildren > 0){
skin_right_forearm.removeChild(skin_right_forearm.getChildAt(0));
};
if (skin_right_hand.numChildren > 0){
skin_right_hand.removeChild(skin_right_hand.getChildAt(0));
};
if (skin_left_thigh.numChildren > 0){
skin_left_thigh.removeChild(skin_left_thigh.getChildAt(0));
};
if (skin_left_calf.numChildren > 0){
skin_left_calf.removeChild(skin_left_calf.getChildAt(0));
};
if (skin_left_foot.numChildren > 0){
skin_left_foot.removeChild(skin_left_foot.getChildAt(0));
};
if (skin_right_thigh.numChildren > 0){
skin_right_thigh.removeChild(skin_right_thigh.getChildAt(0));
};
if (skin_right_calf.numChildren > 0){
skin_right_calf.removeChild(skin_right_calf.getChildAt(0));
};
if (skin_right_foot.numChildren > 0){
skin_right_foot.removeChild(skin_right_foot.getChildAt(0));
};
}
public function remove_arm_left_thigh():Object{
var obj:*;
if (arm_left_thigh.numChildren > 0){
obj = arm_left_thigh.getChildAt(0);
arm_left_thigh.removeChild(arm_left_thigh.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_right_thigh():Object{
var obj:*;
if (skin_right_thigh.numChildren > 0){
obj = skin_right_thigh.getChildAt(0);
skin_right_thigh.removeChild(skin_right_thigh.getChildAt(0));
return (obj);
};
return (null);
}
private function skeletonHandle(event:Event):void{
if (skeleton){
skin_head.x = (arm_head.x = skeleton._head.x);
skin_head.y = (arm_head.y = skeleton._head.y);
skin_head.rotation = (arm_head.rotation = skeleton._head.rotation);
skin_upperbody.x = (arm_upperbody.x = skeleton._upperbody.x);
skin_upperbody.y = (arm_upperbody.y = skeleton._upperbody.y);
skin_upperbody.rotation = (arm_upperbody.rotation = skeleton._upperbody.rotation);
skin_lowerbody.x = (arm_lowerbody.x = skeleton._lowerbody.x);
skin_lowerbody.y = (arm_lowerbody.y = skeleton._lowerbody.y);
skin_lowerbody.rotation = (arm_lowerbody.rotation = skeleton._lowerbody.rotation);
skin_left_upperarm.x = (arm_left_upperarm.x = skeleton._left_upperarm.x);
skin_left_upperarm.y = (arm_left_upperarm.y = skeleton._left_upperarm.y);
skin_left_upperarm.rotation = (arm_left_upperarm.rotation = skeleton._left_upperarm.rotation);
skin_left_forearm.x = (arm_left_forearm.x = skeleton._left_forearm.x);
skin_left_forearm.y = (arm_left_forearm.y = skeleton._left_forearm.y);
skin_left_forearm.rotation = (arm_left_forearm.rotation = skeleton._left_forearm.rotation);
skin_left_hand.x = (arm_left_hand.x = (wpn_left_hand.x = skeleton._left_hand.x));
skin_left_hand.y = (arm_left_hand.y = (wpn_left_hand.y = skeleton._left_hand.y));
skin_left_hand.rotation = (arm_left_hand.rotation = (wpn_left_hand.rotation = skeleton._left_hand.rotation));
skin_right_upperarm.x = (arm_right_upperarm.x = skeleton._right_upperarm.x);
skin_right_upperarm.y = (arm_right_upperarm.y = skeleton._right_upperarm.y);
skin_right_upperarm.rotation = (arm_right_upperarm.rotation = skeleton._right_upperarm.rotation);
skin_right_forearm.x = (arm_right_forearm.x = skeleton._right_forearm.x);
skin_right_forearm.y = (arm_right_forearm.y = skeleton._right_forearm.y);
skin_right_forearm.rotation = (arm_right_forearm.rotation = skeleton._right_forearm.rotation);
skin_right_hand.x = (arm_right_hand.x = (wpn_right_hand.x = skeleton._right_hand.x));
skin_right_hand.y = (arm_right_hand.y = (wpn_right_hand.y = skeleton._right_hand.y));
skin_right_hand.rotation = (arm_right_hand.rotation = (wpn_right_hand.rotation = skeleton._right_hand.rotation));
skin_left_thigh.x = (arm_left_thigh.x = skeleton._left_thigh.x);
skin_left_thigh.y = (arm_left_thigh.y = skeleton._left_thigh.y);
skin_left_thigh.rotation = (arm_left_thigh.rotation = skeleton._left_thigh.rotation);
skin_left_calf.x = (arm_left_calf.x = skeleton._left_calf.x);
skin_left_calf.y = (arm_left_calf.y = skeleton._left_calf.y);
skin_left_calf.rotation = (arm_left_calf.rotation = skeleton._left_calf.rotation);
skin_left_foot.x = (arm_left_foot.x = skeleton._left_foot.x);
skin_left_foot.y = (arm_left_foot.y = skeleton._left_foot.y);
skin_left_foot.rotation = (arm_left_foot.rotation = skeleton._left_foot.rotation);
skin_right_thigh.x = (arm_right_thigh.x = skeleton._right_thigh.x);
skin_right_thigh.y = (arm_right_thigh.y = skeleton._right_thigh.y);
skin_right_thigh.rotation = (arm_right_thigh.rotation = skeleton._right_thigh.rotation);
skin_right_calf.x = (arm_right_calf.x = skeleton._right_calf.x);
skin_right_calf.y = (arm_right_calf.y = skeleton._right_calf.y);
skin_right_calf.rotation = (arm_right_calf.rotation = skeleton._right_calf.rotation);
skin_right_foot.x = (arm_right_foot.x = skeleton._right_foot.x);
skin_right_foot.y = (arm_right_foot.y = skeleton._right_foot.y);
skin_right_foot.rotation = (arm_right_foot.rotation = skeleton._right_foot.rotation);
};
}
public function remove_skin_right_calf():Object{
var obj:*;
if (skin_right_calf.numChildren > 0){
obj = skin_right_calf.getChildAt(0);
skin_right_calf.removeChild(skin_right_calf.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_arm_left_calf():Object{
var obj:*;
if (arm_left_calf.numChildren > 0){
obj = arm_left_calf.getChildAt(0);
arm_left_calf.removeChild(arm_left_calf.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_right_foot():Object{
var obj:*;
if (skin_right_foot.numChildren > 0){
obj = skin_right_foot.getChildAt(0);
skin_right_foot.removeChild(skin_right_foot.getChildAt(0));
return (obj);
};
return (null);
}
public function remove_skin_right_hand():Object{
var obj:*;
if (skin_right_hand.numChildren > 0){
obj = skin_right_hand.getChildAt(0);
skin_right_hand.removeChild(skin_right_hand.getChildAt(0));
return (obj);
};
return (null);
}
public function create(_thisCont, _skeleton){
thisCont = _thisCont;
skeleton = _skeleton;
thisCont.addChild(skeleton);
skeleton.cacheAsBitmap = true;
skeleton.visible = false;
skin_head = new Sprite();
skin_upperbody = new Sprite();
skin_lowerbody = new Sprite();
skin_left_upperarm = new Sprite();
skin_left_forearm = new Sprite();
skin_left_hand = new Sprite();
skin_right_upperarm = new Sprite();
skin_right_forearm = new Sprite();
skin_right_hand = new Sprite();
skin_left_thigh = new Sprite();
skin_left_calf = new Sprite();
skin_left_foot = new Sprite();
skin_right_thigh = new Sprite();
skin_right_calf = new Sprite();
skin_right_foot = new Sprite();
arm_head = new Sprite();
arm_upperbody = new Sprite();
arm_lowerbody = new Sprite();
arm_left_upperarm = new Sprite();
arm_left_forearm = new Sprite();
arm_left_hand = new Sprite();
arm_right_upperarm = new Sprite();
arm_right_forearm = new Sprite();
arm_right_hand = new Sprite();
arm_left_thigh = new Sprite();
arm_left_calf = new Sprite();
arm_left_foot = new Sprite();
arm_right_thigh = new Sprite();
arm_right_calf = new Sprite();
arm_right_foot = new Sprite();
wpn_left_hand = new Sprite();
wpn_right_hand = new Sprite();
thisCont.addChild(wpn_right_hand);
thisCont.addChild(skin_right_hand);
thisCont.addChild(skin_right_forearm);
thisCont.addChild(skin_right_upperarm);
thisCont.addChild(arm_right_hand);
thisCont.addChild(arm_right_forearm);
thisCont.addChild(arm_right_upperarm);
thisCont.addChild(skin_right_foot);
thisCont.addChild(skin_right_calf);
thisCont.addChild(skin_right_thigh);
thisCont.addChild(arm_right_foot);
thisCont.addChild(arm_right_calf);
thisCont.addChild(arm_right_thigh);
thisCont.addChild(skin_lowerbody);
thisCont.addChild(skin_upperbody);
thisCont.addChild(skin_head);
thisCont.addChild(arm_lowerbody);
thisCont.addChild(arm_upperbody);
thisCont.addChild(arm_head);
thisCont.addChild(skin_left_thigh);
thisCont.addChild(skin_left_calf);
thisCont.addChild(skin_left_foot);
thisCont.addChild(arm_left_thigh);
thisCont.addChild(arm_left_calf);
thisCont.addChild(arm_left_foot);
thisCont.addChild(skin_left_upperarm);
thisCont.addChild(skin_left_forearm);
thisCont.addChild(arm_left_upperarm);
thisCont.addChild(arm_left_forearm);
thisCont.addChild(wpn_left_hand);
thisCont.addChild(skin_left_hand);
thisCont.addChild(arm_left_hand);
skeleton.addEventListener(Event.ENTER_FRAME, skeletonHandle, false, 0, true);
}
public function setArmor(_head=null, _upperbody=null, _lowerbody=null, _left_upperarm=null, _left_forearm=null, _left_hand=null, _right_upperarm=null, _right_forearm=null, _right_hand=null, _left_thigh=null, _left_calf=null, _left_foot=null, _right_thigh=null, _right_calf=null, _right_foot=null){
if (_head){
arm_head.addChild(_head);
_head.cacheAsBitmap = true;
};
if (_upperbody){
arm_upperbody.addChild(_upperbody);
_upperbody.cacheAsBitmap = true;
};
if (_lowerbody){
arm_lowerbody.addChild(_lowerbody);
_lowerbody.cacheAsBitmap = true;
};
if (_left_upperarm){
arm_left_upperarm.addChild(_left_upperarm);
_left_upperarm.cacheAsBitmap = true;
};
if (_left_forearm){
arm_left_forearm.addChild(_left_forearm);
_left_forearm.cacheAsBitmap = true;
};
if (_left_hand){
arm_left_hand.addChild(_left_hand);
_left_hand.cacheAsBitmap = true;
};
if (_right_upperarm){
arm_right_upperarm.addChild(_right_upperarm);
_right_upperarm.cacheAsBitmap = true;
};
if (_right_forearm){
arm_right_forearm.addChild(_right_forearm);
_right_forearm.cacheAsBitmap = true;
};
if (_right_hand){
arm_right_hand.addChild(_right_hand);
_right_hand.cacheAsBitmap = true;
};
if (_left_thigh){
arm_left_thigh.addChild(_left_thigh);
_left_thigh.cacheAsBitmap = true;
};
if (_left_calf){
arm_left_calf.addChild(_left_calf);
_left_calf.cacheAsBitmap = true;
};
if (_left_foot){
arm_left_foot.addChild(_left_foot);
_left_foot.cacheAsBitmap = true;
};
if (_right_thigh){
arm_right_thigh.addChild(_right_thigh);
_right_thigh.cacheAsBitmap = true;
};
if (_right_calf){
arm_right_calf.addChild(_right_calf);
_right_calf.cacheAsBitmap = true;
};
if (_right_foot){
arm_right_foot.addChild(_right_foot);
_right_foot.cacheAsBitmap = true;
};
}
}
}//package FZBase.RDCharacter
Section 68
//BGM (FZBase.Sound.BGM)
package FZBase.Sound {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class BGM extends Sound {
private var sndTransform:SoundTransform;
private var sndFadeOut:Boolean;
private var sndFadeIn:Boolean;
private var sndPosTime:Number;
private var loop:Boolean;
private var sndObj:Sound;
private var sndChannel:SoundChannel;
private var sndTimer:Timer;
private var sndVolume:Number;
private var sndPan:Number;
public function BGM(){
super();
sndObj = this;
sndChannel = null;
sndTransform = null;
sndVolume = 1;
sndPan = 0;
sndPosTime = 0;
sndFadeIn = false;
sndFadeOut = false;
sndTimer = new Timer(50);
sndTimer.addEventListener(TimerEvent.TIMER, sndTimerHandler);
sndTimer.start();
}
public function setVolume(vol:Number):void{
var sndTransform:SoundTransform;
sndVolume = vol;
if (sndChannel){
sndTransform = sndChannel.soundTransform;
sndTransform.volume = sndVolume;
sndChannel.soundTransform = sndTransform;
};
}
public function stopSound():void{
if (sndChannel != null){
sndChannel.stop();
sndChannel.removeEventListener(Event.SOUND_COMPLETE, loopSound);
trace("stopSound() ");
};
}
public function fadeOut(init:Boolean):void{
sndFadeOut = true;
sndFadeIn = false;
if (init){
setVolume(1);
};
trace("Fade Out Effect ");
}
public function pauseSound():void{
if (sndChannel){
sndPosTime = sndChannel.position;
sndChannel.stop();
trace(("pauseSound(), Position :" + String(sndPosTime)));
};
}
public function playSound():void{
stopSound();
sndChannel = sndObj.play();
setVolume(sndVolume);
setPan(sndPan);
trace("playSound() ");
}
public function fadeIn(init:Boolean):void{
sndFadeIn = true;
sndFadeOut = false;
if (init){
setVolume(0);
};
trace("Fade In Effect ");
}
public function loopSound(e:Event):void{
if (sndChannel != null){
sndChannel.removeEventListener(Event.SOUND_COMPLETE, loopSound);
loopingSound();
};
}
private function sndTimerHandler(event:TimerEvent):void{
if (((sndFadeIn) && (sndFadeOut))){
sndFadeIn = false;
sndFadeOut = false;
setVolume(1);
};
if (sndFadeIn){
sndVolume = (sndVolume + 0.01);
if (sndVolume > 1){
setVolume(1);
sndFadeIn = false;
} else {
setVolume(sndVolume);
};
};
if (sndFadeOut){
sndVolume = (sndVolume - 0.01);
if (sndVolume < 0){
setVolume(0);
sndFadeOut = false;
} else {
setVolume(sndVolume);
};
};
}
public function setPan(pan:Number):void{
var sndTransform:SoundTransform;
sndPan = pan;
if (sndChannel){
sndTransform = sndChannel.soundTransform;
sndTransform.pan = sndPan;
sndChannel.soundTransform = sndTransform;
};
}
public function resumeSound():void{
stopSound();
sndChannel = sndObj.play(sndPosTime);
setVolume(sndVolume);
setPan(sndPan);
trace("resumeSound() ");
}
private function loopingSound():void{
sndChannel = sndObj.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, loopSound);
trace("Loop Back ");
}
public function playSoundLoop():void{
stopSound();
sndChannel = sndObj.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, loopSound);
setVolume(sndVolume);
setPan(sndPan);
trace("playSoundLoop() ");
}
}
}//package FZBase.Sound
Section 69
//SE (FZBase.Sound.SE)
package FZBase.Sound {
import flash.media.*;
public class SE extends Sound {
private var sndChannel:SoundChannel;
private var sndObj:Sound;
private var sndVolume:Number;
public function SE(){
super();
sndObj = this;
sndChannel = null;
sndVolume = 1;
}
public function playSound(vol:Number=1):void{
stopSound();
sndChannel = sndObj.play();
sndVolume = vol;
setVolume(sndVolume);
}
public function setVolume(vol:Number):void{
var sndTransform:SoundTransform;
sndVolume = vol;
if (sndChannel){
sndTransform = sndChannel.soundTransform;
sndTransform.volume = sndVolume;
sndChannel.soundTransform = sndTransform;
};
}
public function stopSound():void{
if (sndChannel){
sndChannel.stop();
};
}
}
}//package FZBase.Sound
Section 70
//MochiBot (FZBase.System.MochiBot)
package FZBase.System {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public function MochiBot(){
super();
}
public static function track(parent:Sprite, tag:String):MochiBot{
var self:MochiBot;
var server:String;
var lv:URLVariables;
var url:String;
var req:URLRequest;
var loader:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
self = new (MochiBot);
parent.addChild(self);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
server = "http://core.mochibot.com/my/core.swf";
lv = new URLVariables();
lv["sb"] = Security.sandboxType;
lv["v"] = Capabilities.version;
lv["swfid"] = tag;
lv["mv"] = "8";
lv["fv"] = "9";
url = self.root.loaderInfo.loaderURL;
if (url.indexOf("http") == 0){
lv["url"] = url;
} else {
lv["url"] = "local";
};
req = new URLRequest(server);
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader = new Loader();
self.addChild(loader);
loader.load(req);
return (self);
}
}
}//package FZBase.System
Section 71
//Background (FZGame.Action.Background)
package FZGame.Action {
import FZGame.System.*;
public class Background {
public var BOTTOM_BORDER;// = 480
public var RIGHT_BORDER;// = 1920
public var LEFT_SCREEN_SHIFT;// = 200
public var LEFT_BORDER;// = 0
private var coreSys;
public var RIGHT_SCREEN_SHIFT;// = 440
private var dispCont;
public var TOP_BORDER;// = 310
private var objBG;
public function Background(_coreSys){
TOP_BORDER = 310;
BOTTOM_BORDER = 480;
LEFT_BORDER = 0;
RIGHT_BORDER = 1920;
LEFT_SCREEN_SHIFT = 200;
RIGHT_SCREEN_SHIFT = 440;
super();
coreSys = _coreSys;
dispCont = coreSys.contBG;
}
public function scrollBK(val){
coreSys.contSCROLL.x = Math.max((coreSys.contSCROLL.x - val), -((1920 - 640)));
LEFT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 200);
RIGHT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 440);
}
public function scrollFW(val){
coreSys.contSCROLL.x = Math.min((coreSys.contSCROLL.x + val), 0);
LEFT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 200);
RIGHT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 440);
}
public function initialise(){
if (coreSys.gmLevel == 1){
objBG = new bg_2_mc();
dispCont.addChild(objBG);
objBG.cacheAsBitmap = true;
coreSys.playBgmBattle2();
} else {
if (coreSys.gmLevel == 2){
objBG = new bg_4_mc();
dispCont.addChild(objBG);
objBG.cacheAsBitmap = true;
coreSys.playBgmBattle4();
} else {
if (coreSys.gmLevel == 3){
objBG = new bg_3_mc();
dispCont.addChild(objBG);
objBG.cacheAsBitmap = true;
coreSys.playBgmBattle3();
} else {
if (Math.random() < 0.5){
objBG = new bg_1_mc();
dispCont.addChild(objBG);
objBG.cacheAsBitmap = true;
coreSys.playBgmBattle1();
} else {
if ((((Math.random() >= 0.5)) && ((Math.random() < 0.65)))){
objBG = new bg_2_mc();
dispCont.addChild(objBG);
objBG.cacheAsBitmap = true;
coreSys.playBgmBattle2();
} else {
if ((((Math.random() >= 0.65)) && ((Math.random() < 0.8)))){
objBG = new bg_3_mc();
dispCont.addChild(objBG);
objBG.cacheAsBitmap = true;
coreSys.playBgmBattle3();
} else {
objBG = new bg_4_mc();
dispCont.addChild(objBG);
objBG.cacheAsBitmap = true;
coreSys.playBgmBattle4();
};
};
};
};
};
};
coreSys.contSCROLL.x = 0;
coreSys.contSCROLL.y = 0;
LEFT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 200);
RIGHT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 440);
}
public function destroy(){
if (objBG){
dispCont.removeChild(objBG);
};
objBG = null;
dispCont = null;
coreSys.contSCROLL.x = 0;
coreSys.contSCROLL.y = 0;
LEFT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 200);
RIGHT_SCREEN_SHIFT = ((0 - coreSys.contSCROLL.x) + 440);
}
}
}//package FZGame.Action
Section 72
//BattleManager (FZGame.Action.BattleManager)
package FZGame.Action {
import flash.display.*;
import FZGame.Menu.*;
public class BattleManager {
private var isClear:Boolean;// = false
private var enemyMgr;// = null
private var coreSys;
private var objMenu;// = null
private var playerMgr;// = null
private var objBG;// = null
private var isActive:Boolean;// = false
public function BattleManager(_coreSys){
playerMgr = null;
enemyMgr = null;
objMenu = null;
objBG = null;
isActive = false;
isClear = false;
super();
coreSys = _coreSys;
}
private function sortChildrenByFauxZ(container:DisplayObjectContainer):Boolean{
var numChildren:int;
var depthsSwapped:Boolean;
var children:Array;
var i:int;
var child:DisplayObject;
numChildren = container.numChildren;
if (numChildren < 2){
return (false);
};
children = new Array(numChildren);
i = -1;
while (++i < numChildren) {
children[i] = container.getChildAt(i);
};
children.sort(zSorting);
i = -1;
while (++i < numChildren) {
child = DisplayObject(children[i]);
if (i != container.getChildIndex(child)){
depthsSwapped = true;
container.setChildIndex(child, i);
};
};
return (depthsSwapped);
}
public function update(){
if (isActive == false){
return;
};
if (objMenu){
if (objMenu.isQuit){
destroy();
coreSys.gmState.setState(coreSys.gmState.ST_MAINMENU);
isActive = false;
return;
};
};
if (playerMgr){
playerMgr.update();
};
if (enemyMgr){
enemyMgr.update();
};
sortChildrenByFauxZ(coreSys.contFIELD);
if (isClear == false){
if (coreSys.gmLevel == 1){
if (enemyMgr.isSpawnLV1_Clear()){
isClear = true;
coreSys.gmDat.stat_level1_complete++;
objMenu.showResult();
};
};
if (coreSys.gmLevel == 2){
if (enemyMgr.isSpawnLV2_Clear()){
isClear = true;
coreSys.gmDat.stat_level2_complete++;
objMenu.showResult();
};
};
if (coreSys.gmLevel == 3){
if (enemyMgr.isSpawnLV3_Clear()){
isClear = true;
coreSys.gmDat.stat_level3_complete++;
objMenu.showResult();
};
};
};
}
private function zSorting(a, b):int{
if (Math.round(a._ZDepth) < Math.round(b._ZDepth)){
return (-1);
};
if (a._ZDepth > b._ZDepth){
return (1);
};
return (0);
}
public function destroy(){
var container:*;
var numChild:int;
var children:Array;
var i:int;
objBG.destroy();
objMenu.destroy();
enemyMgr.destroy();
playerMgr.destroy();
objBG = null;
objMenu = null;
enemyMgr = null;
playerMgr = null;
isActive = false;
isClear = false;
container = coreSys.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
i = 0;
while (i < numChild) {
children[i].destroy();
i++;
};
}
public function initialise(){
objBG = new Background(coreSys);
objBG.initialise();
objMenu = new BattleUI(coreSys);
objMenu.initialise();
playerMgr = new PlayerManager(coreSys, objMenu, objBG);
playerMgr.initialise();
enemyMgr = new EnemyManager(coreSys, objMenu, objBG);
enemyMgr.initialise();
isActive = true;
isClear = false;
}
}
}//package FZGame.Action
Section 73
//EnemyManager (FZGame.Action.EnemyManager)
package FZGame.Action {
import FZGame.Object.*;
public class EnemyManager {
private var limit_enemy:int;// = 4
private var target_kill:int;// = 1
private var total_enemy_alive:int;// = 0
private var coreSys;// = null
private var delay_frame:int;// = 60
private var objMenu;// = null
private var num_enemySpawn:int;// = 0
private var objBG;// = null
public function EnemyManager(_coreSys, _objMenu, _objBG){
coreSys = null;
objMenu = null;
objBG = null;
limit_enemy = 4;
total_enemy_alive = 0;
target_kill = 1;
num_enemySpawn = 0;
delay_frame = 60;
super();
coreSys = _coreSys;
objMenu = _objMenu;
objBG = _objBG;
}
public function isSpawnLV2_Clear():Boolean{
if ((((num_enemySpawn > 50)) && ((total_enemy_alive == 0)))){
return (true);
};
return (false);
}
public function isSpawnLV3_Clear():Boolean{
if ((((num_enemySpawn > 80)) && ((total_enemy_alive == 0)))){
return (true);
};
return (false);
}
public function update(){
if (coreSys.isPaused){
return;
};
statUpdateEnemy();
if (coreSys.gmLevel == 1){
spawnLV1();
};
if (coreSys.gmLevel == 2){
spawnLV2();
};
if (coreSys.gmLevel == 3){
spawnLV3();
};
if (coreSys.gmLevel == 4){
spawnSURVIVAL();
};
}
public function isSpawnLV1_Clear():Boolean{
if ((((num_enemySpawn > 30)) && ((total_enemy_alive == 0)))){
return (true);
};
return (false);
}
public function spawnLV1(){
var randVal:*;
var newChar:*;
objMenu.updateBattleInfo(total_enemy_alive, Math.max(((30 - num_enemySpawn) + 1), 0));
if ((((num_enemySpawn <= 30)) && ((total_enemy_alive < limit_enemy)))){
delay_frame = Math.max((delay_frame - 1), 0);
if (delay_frame <= 0){
randVal = Math.random();
newChar = new Enemy(coreSys, objBG);
if (num_enemySpawn < 10){
if (randVal < 0.6){
newChar.EnemyRank_F();
} else {
newChar.EnemyRank_E();
};
limit_enemy = 2;
delay_frame = 150;
};
if (num_enemySpawn == 10){
newChar.EnemyRank_D();
limit_enemy = 2;
delay_frame = 150;
};
if ((((num_enemySpawn > 10)) && ((num_enemySpawn < 20)))){
if (randVal < 0.6){
newChar.EnemyRank_E();
} else {
newChar.EnemyRank_D();
};
limit_enemy = 3;
delay_frame = 120;
};
if (num_enemySpawn == 20){
newChar.EnemyRank_C();
limit_enemy = 3;
delay_frame = 120;
};
if ((((num_enemySpawn > 20)) && ((num_enemySpawn < 30)))){
if (randVal < 0.6){
newChar.EnemyRank_D();
} else {
newChar.EnemyRank_C();
};
limit_enemy = 4;
delay_frame = 100;
};
if (num_enemySpawn == 30){
newChar.EnemyRank_B();
limit_enemy = 4;
delay_frame = 100;
};
newChar.initialise();
num_enemySpawn++;
};
};
}
public function spawnLV2(){
var randVal:*;
var newChar:*;
objMenu.updateBattleInfo(total_enemy_alive, Math.max(((50 - num_enemySpawn) + 1), 0));
if ((((num_enemySpawn <= 50)) && ((total_enemy_alive < limit_enemy)))){
delay_frame = Math.max((delay_frame - 1), 0);
if (delay_frame <= 0){
randVal = Math.random();
newChar = new Enemy(coreSys, objBG);
if (num_enemySpawn < 20){
if (randVal < 0.5){
newChar.EnemyRank_F();
} else {
if ((((randVal >= 0.5)) && ((randVal < 0.8)))){
newChar.EnemyRank_E();
} else {
newChar.EnemyRank_D();
};
};
limit_enemy = 3;
delay_frame = 120;
};
if (num_enemySpawn == 20){
newChar.EnemyRank_C();
limit_enemy = 3;
delay_frame = 120;
};
if ((((num_enemySpawn > 20)) && ((num_enemySpawn < 40)))){
if (randVal < 0.5){
newChar.EnemyRank_E();
} else {
if ((((randVal >= 0.5)) && ((randVal < 0.8)))){
newChar.EnemyRank_D();
} else {
newChar.EnemyRank_C();
};
};
limit_enemy = 4;
delay_frame = 100;
};
if (num_enemySpawn == 40){
newChar.EnemyRank_B();
limit_enemy = 4;
delay_frame = 100;
};
if ((((num_enemySpawn > 40)) && ((num_enemySpawn < 50)))){
if (randVal < 0.5){
newChar.EnemyRank_D();
} else {
if ((((randVal >= 0.5)) && ((randVal < 0.8)))){
newChar.EnemyRank_C();
} else {
newChar.EnemyRank_B();
};
};
limit_enemy = 4;
delay_frame = 80;
};
if (num_enemySpawn == 50){
newChar.EnemyRank_A();
limit_enemy = 4;
delay_frame = 80;
};
newChar.initialise();
num_enemySpawn++;
};
};
}
public function spawnLV3(){
var randVal:*;
var newChar:*;
objMenu.updateBattleInfo(total_enemy_alive, Math.max(((80 - num_enemySpawn) + 1), 0));
if ((((num_enemySpawn <= 80)) && ((total_enemy_alive < limit_enemy)))){
delay_frame = Math.max((delay_frame - 1), 0);
if (delay_frame <= 0){
randVal = Math.random();
newChar = new Enemy(coreSys, objBG);
if (num_enemySpawn < 30){
if (randVal < 0.4){
newChar.EnemyRank_F();
} else {
if ((((randVal >= 0.4)) && ((randVal < 0.7)))){
newChar.EnemyRank_E();
} else {
if ((((randVal >= 0.7)) && ((randVal < 0.9)))){
newChar.EnemyRank_D();
} else {
newChar.EnemyRank_C();
};
};
};
limit_enemy = 2;
delay_frame = 120;
};
if (num_enemySpawn == 30){
newChar.EnemyRank_A();
limit_enemy = 2;
delay_frame = 120;
};
if ((((num_enemySpawn > 30)) && ((num_enemySpawn < 60)))){
if (randVal < 0.4){
newChar.EnemyRank_E();
} else {
if ((((randVal >= 0.4)) && ((randVal < 0.7)))){
newChar.EnemyRank_D();
} else {
if ((((randVal >= 0.7)) && ((randVal < 0.9)))){
newChar.EnemyRank_C();
} else {
newChar.EnemyRank_B();
};
};
};
limit_enemy = 3;
delay_frame = 100;
};
if (num_enemySpawn == 60){
newChar.EnemyRank_S();
limit_enemy = 3;
delay_frame = 100;
};
if ((((num_enemySpawn > 60)) && ((num_enemySpawn < 80)))){
if (randVal < 0.4){
newChar.EnemyRank_D();
} else {
if ((((randVal >= 0.4)) && ((randVal < 0.7)))){
newChar.EnemyRank_C();
} else {
if ((((randVal >= 0.7)) && ((randVal < 0.9)))){
newChar.EnemyRank_B();
} else {
newChar.EnemyRank_A();
};
};
};
limit_enemy = 4;
delay_frame = 80;
};
if (num_enemySpawn == 80){
newChar.EnemyRank_SS();
limit_enemy = 4;
delay_frame = 80;
};
newChar.initialise();
num_enemySpawn++;
};
};
}
public function statUpdateEnemy(){
var container:*;
var numChild:int;
var children:Array;
var i:int;
container = coreSys.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
total_enemy_alive = 0;
i = 0;
while (i < numChild) {
if ((((children[i].objType == 2)) || ((children[i].objType == 3)))){
if (children[i].isActive()){
total_enemy_alive++;
};
};
i++;
};
}
public function testDestroy(){
var container:*;
var numChild:int;
var children:Array;
var i:int;
container = coreSys.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
i = 0;
while (i < numChild) {
if ((((children[i].objType == 2)) || ((children[i].objType == 3)))){
children[i].destroy();
};
i++;
};
}
public function testCreate(){
var charX:*;
charX = new Enemy(coreSys, objBG);
charX.EnemyRank_E();
charX.initialise();
}
public function initialise(){
trace(" initialise enemy manager .... ok!");
limit_enemy = 3;
delay_frame = 150;
num_enemySpawn = 1;
}
public function spawnSURVIVAL(){
var randVal:*;
var newChar:*;
objMenu.updateBattleInfo();
if (total_enemy_alive < limit_enemy){
delay_frame = Math.max((delay_frame - 1), 0);
if (delay_frame <= 0){
randVal = Math.random();
newChar = new Enemy(coreSys, objBG);
if (num_enemySpawn < 20){
if (randVal < 0.2){
newChar.EnemyRank_F();
} else {
if ((((randVal >= 0.2)) && ((randVal < 0.4)))){
newChar.EnemyRank_E();
} else {
if ((((randVal >= 0.4)) && ((randVal < 0.6)))){
newChar.EnemyRank_D();
} else {
if ((((randVal >= 0.6)) && ((randVal < 0.8)))){
newChar.EnemyRank_C();
} else {
newChar.EnemyRank_B();
};
};
};
};
limit_enemy = 3;
delay_frame = 80;
};
if (num_enemySpawn == 30){
newChar.EnemyRank_S();
limit_enemy = 3;
delay_frame = 80;
};
if ((((num_enemySpawn > 20)) && ((num_enemySpawn < 40)))){
if (randVal < 0.2){
newChar.EnemyRank_E();
} else {
if ((((randVal >= 0.2)) && ((randVal < 0.4)))){
newChar.EnemyRank_D();
} else {
if ((((randVal >= 0.4)) && ((randVal < 0.6)))){
newChar.EnemyRank_C();
} else {
if ((((randVal >= 0.6)) && ((randVal < 0.8)))){
newChar.EnemyRank_B();
} else {
newChar.EnemyRank_A();
};
};
};
};
limit_enemy = 4;
delay_frame = 60;
};
if (num_enemySpawn == 40){
newChar.EnemyRank_S();
limit_enemy = 4;
delay_frame = 60;
};
if ((((num_enemySpawn > 40)) && ((num_enemySpawn < 50)))){
if (randVal < 0.2){
newChar.EnemyRank_D();
} else {
if ((((randVal >= 0.2)) && ((randVal < 0.4)))){
newChar.EnemyRank_C();
} else {
if ((((randVal >= 0.4)) && ((randVal < 0.6)))){
newChar.EnemyRank_B();
} else {
if ((((randVal >= 0.6)) && ((randVal < 0.8)))){
newChar.EnemyRank_A();
} else {
newChar.EnemyRank_S();
};
};
};
};
limit_enemy = 5;
delay_frame = 40;
};
if (num_enemySpawn == 80){
newChar.EnemyRank_SS();
limit_enemy = 5;
delay_frame = 40;
};
newChar.initialise();
num_enemySpawn++;
if (num_enemySpawn > 50){
num_enemySpawn = 1;
};
};
};
}
public function destroy(){
var container:*;
var numChild:int;
var children:Array;
var i:int;
container = coreSys.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
i = 0;
while (i < numChild) {
if ((((children[i].objType == 2)) || ((children[i].objType == 3)))){
children[i].destroy();
};
i++;
};
coreSys = null;
objMenu = null;
objBG = null;
}
}
}//package FZGame.Action
Section 74
//PlayerManager (FZGame.Action.PlayerManager)
package FZGame.Action {
import FZGame.Object.*;
public class PlayerManager {
private var _pause_idle_time:int;// = 0
private var avatar;// = null
private var _no_attack_idle_time:int;// = 0
private var _survive_time:int;// = 0
private var _move_x:Number;// = 0
private var _move_y:Number;// = 0
private var coreSys;// = null
private var objMenu;// = null
private var _move_step:int;// = 0
private var objBG;// = null
public function PlayerManager(_coreSys, _objMenu, _objBG){
coreSys = null;
objMenu = null;
objBG = null;
avatar = null;
_survive_time = 0;
_pause_idle_time = 0;
_no_attack_idle_time = 0;
_move_step = 0;
_move_x = 0;
_move_y = 0;
super();
coreSys = _coreSys;
objMenu = _objMenu;
objBG = _objBG;
}
public function hitTest(){
var container:*;
var numChild:int;
var children:Array;
var i:int;
container = coreSys.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
i = 0;
while (i < numChild) {
if ((((((children[i].objType == 2)) || ((children[i].objType == 3)))) && (children[i].isActive()))){
if (((avatar.getZoneAttackBox().hitTestObject(children[i].getBodyBox())) && (avatar.getAttackBox().hitTestObject(children[i].getBodyBox())))){
if (avatar.isBasicSlashHit()){
children[i].playHit(1, (avatar._power * 0.75), 90, (0.5 + (Math.random() * 0.4)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.1)));
objMenu.increaseStatCombo();
avatar.addScore(50);
avatar.gainOverdrive(1);
};
if (avatar.isRapidStabHit()){
children[i].playHit(1, (avatar._power * 0.4), 90, (0.4 + (Math.random() * 0.4)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.1)));
objMenu.increaseStatCombo();
avatar.addScore(20);
avatar.gainOverdrive(1);
};
if (avatar.isRunSlashHit()){
children[i].playHit(3, (avatar._power * 1.8), 100, (1.5 + (Math.random() * 0.4)));
children[i].randomBreakHead(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakLeg(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.1));
children[i].randomHeadCut((avatar._break * 0.1));
children[i].randomBodyCut((avatar._break * 0.05));
objMenu.increaseStatCombo();
avatar.addScore(120);
avatar.gainOverdrive(1);
};
if (avatar.isGroundCombo1Hit()){
children[i].playHit(1, (avatar._power * 0.3), 90, (0.5 + (Math.random() * 0.4)));
children[i].randomBreakLeg(((avatar._break * 0.1) + (Math.random() * 0.1)));
objMenu.increaseStatCombo();
avatar.addScore(25);
avatar.gainOverdrive(1);
};
if (avatar.isGroundCombo2Hit()){
children[i].playHit(3, (avatar._power * 2.2), 100, (1.5 + (Math.random() * 1)));
children[i].randomBreakHead(((avatar._break * 0.25) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.25) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.25) + (Math.random() * 0.1)));
children[i].randomBreakLeg(((avatar._break * 0.25) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.15));
children[i].randomHeadCut((avatar._break * 0.1));
children[i].randomLeftArmCut((avatar._break * 0.1));
children[i].randomRightArmCut((avatar._break * 0.1));
children[i].randomBodyCut((avatar._break * 0.05));
objMenu.increaseStatCombo();
avatar.addScore(150);
avatar.gainOverdrive(1);
};
if (avatar.isShockwaveHit()){
children[i].playHit(3, (avatar._power * 2), 100, (1.5 + (Math.random() * 1)));
children[i].randomBreakHead(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakLeg(((avatar._break * 0.4) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.15));
children[i].randomLeftArmCut((avatar._break * 0.1));
children[i].randomRightArmCut((avatar._break * 0.1));
children[i].randomBodyCut((avatar._break * 0.05));
objMenu.increaseStatCombo();
avatar.addScore(100);
avatar.gainOverdrive(1);
};
if (avatar.isSomesaultHit()){
children[i].playHit(3, (avatar._power * 1.5), 100, (1.2 + (Math.random() * 0.7)));
children[i].randomBreakHead(((avatar._break * 0.3) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.2) + (Math.random() * 0.1)));
children[i].randomBreakLeg(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.15));
children[i].randomHeadCut((avatar._break * 0.1));
children[i].randomLeftArmCut((avatar._break * 0.1));
children[i].randomRightArmCut((avatar._break * 0.1));
objMenu.increaseStatCombo();
avatar.addScore(75);
avatar.gainOverdrive(1);
};
if (avatar.isScorpionComboHit()){
children[i].playHit(1, (avatar._power * 0.2), 70, (0.5 + (Math.random() * 0.5)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.1)));
objMenu.increaseStatCombo();
avatar.addScore(10);
avatar.gainOverdrive(2);
};
if (avatar.isScorpionCombo2Hit()){
children[i].playHit(2, (avatar._power * 1), 90, (1 + (Math.random() * 0.5)));
children[i].randomBreakHead(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakLeg(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.1));
children[i].randomHeadCut((avatar._break * 0.1));
children[i].randomLeftArmCut((avatar._break * 0.1));
children[i].randomRightArmCut((avatar._break * 0.1));
objMenu.increaseStatCombo();
avatar.addScore(50);
avatar.gainOverdrive(1);
};
if (avatar.isUpperSlashHit()){
children[i].playHit(2, (avatar._power * 0.8), 110, (1 + (Math.random() * 0.5)));
children[i].randomBreakHead(((avatar._break * 0.3) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomHeadCut((avatar._break * 0.25));
objMenu.increaseStatCombo();
avatar.addScore(40);
avatar.gainOverdrive(1);
};
if (avatar.isFatalStabHit()){
children[i].playHit(2, (avatar._power * 1.4), 90, (1 + (Math.random() * 1)));
children[i].randomBreakHead(((avatar._break * 0.1) + (Math.random() * 0.2)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.2)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.2)));
children[i].randomBreakLeg(((avatar._break * 0.1) + (Math.random() * 0.2)));
children[i].randomBreakWeapon((avatar._break * 0.2));
objMenu.increaseStatCombo();
avatar.addScore(90);
avatar.gainOverdrive(1);
};
if (avatar.isSpecialHit()){
children[i].playHit(2, (avatar._power * 1.2), 80, (1.5 + (Math.random() * 1)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.05));
objMenu.increaseStatCombo();
avatar.addScore(50);
avatar.gainOverdrive(1);
};
if (avatar.isSpecialBlowHit()){
children[i].playHit(3, (avatar._power * 5), 70, (2.5 + (Math.random() * 1)));
children[i].randomBreakHead(((avatar._break * 0.4) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.4) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.4) + (Math.random() * 0.1)));
children[i].randomBreakLeg(((avatar._break * 0.4) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.2));
children[i].randomHeadCut((avatar._break * 0.2));
children[i].randomLeftArmCut((avatar._break * 2));
children[i].randomRightArmCut((avatar._break * 2));
children[i].randomBodyCut((avatar._break * 0.2));
children[i].instantBreakAllBody((avatar._break * 0.15));
objMenu.increaseStatCombo();
avatar.addScore(500);
avatar.gainOverdrive(1);
};
if (avatar.isCounterHit()){
children[i].playHit(1, (avatar._power * 0.6), 100, (1 + (Math.random() * 1)));
children[i].randomBreakBody(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.1) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.05));
objMenu.increaseStatCombo();
avatar.addScore(50);
avatar.gainOverdrive(1);
};
if (avatar.isCounterBlowHit()){
children[i].playHit(3, (avatar._power * 4), 70, (2.2 + (Math.random() * 1)));
children[i].randomBreakHead(((avatar._break * 0.3) + (Math.random() * 0.1)));
children[i].randomBreakBody(((avatar._break * 0.3) + (Math.random() * 0.1)));
children[i].randomBreakArm(((avatar._break * 0.3) + (Math.random() * 0.1)));
children[i].randomBreakLeg(((avatar._break * 0.3) + (Math.random() * 0.1)));
children[i].randomBreakWeapon((avatar._break * 0.15));
children[i].randomHeadCut((avatar._break * 0.15));
children[i].randomLeftArmCut((avatar._break * 15));
children[i].randomRightArmCut((avatar._break * 15));
children[i].randomBodyCut((avatar._break * 0.15));
children[i].instantBreakAllBody((avatar._break * 0.1));
objMenu.increaseStatCombo();
avatar.addScore(500);
avatar.gainOverdrive(1);
};
};
};
i++;
};
}
public function update(){
if (coreSys.isPaused){
_pause_idle_time++;
} else {
if (avatar){
avatar.keyUpdate();
avatar.frameUpdate();
avatar.parameterUpdate();
hitTest();
};
if (objMenu.objStat){
objMenu.objStat.lifeBar.scaleX = Math.max((avatar._health / avatar._max_health), 0);
objMenu.objStat.powerBar.scaleX = Math.max((avatar._overdrive / 1000), 0);
};
if (_pause_idle_time > 0){
if (coreSys.gmDat.stat_pause_wait < Math.round((_pause_idle_time / 30))){
coreSys.gmDat.stat_pause_wait = Math.round((_pause_idle_time / 30));
};
_pause_idle_time = 0;
};
if (avatar.isIdle()){
_no_attack_idle_time++;
} else {
if (_no_attack_idle_time > 0){
if (coreSys.gmDat.stat_no_attack_wait < Math.round((_no_attack_idle_time / 30))){
coreSys.gmDat.stat_no_attack_wait = Math.round((_no_attack_idle_time / 30));
};
_no_attack_idle_time = 0;
};
};
if (((!((_move_x == avatar.x))) || (!((_move_y == avatar.y))))){
_move_step = ((_move_step + Math.abs((_move_x - avatar.x))) + Math.abs((_move_y - avatar.y)));
_move_x = avatar.x;
_move_y = avatar.y;
if (coreSys.gmDat.stat_moving_step < Math.round((_move_step / 100))){
coreSys.gmDat.stat_moving_step = Math.round((_move_step / 100));
};
};
if (avatar._health > 0){
_survive_time++;
if (coreSys.gmDat.stat_survive_time < Math.round((_survive_time / 30))){
coreSys.gmDat.stat_survive_time = Math.round((_survive_time / 30));
};
};
};
if (objMenu.objDebug){
objMenu.objDebug.txt1.htmlText = String((("<b>" + "Play Time = ") + Math.round((_survive_time / 30))));
objMenu.objDebug.txt2.htmlText = String((("<b>" + "Moving Step = ") + Math.round((_move_step / 100))));
objMenu.objDebug.txt3.htmlText = String((("<b>" + "Pause Time = ") + Math.round((_pause_idle_time / 30))));
objMenu.objDebug.txt4.htmlText = String((("<b>" + "Idle Time = ") + Math.round((_no_attack_idle_time / 30))));
};
}
public function reset(){
_survive_time = 0;
_pause_idle_time = 0;
_no_attack_idle_time = 0;
_move_step = 0;
_move_x = avatar.x;
_move_y = avatar.y;
}
public function initialise(){
avatar = new Player();
avatar.initialise(coreSys, objMenu, objBG, 200, 400);
reset();
trace(" initialise player manager .... ok!");
}
public function destroy(){
if (avatar){
avatar.destroy();
avatar = null;
};
objMenu = null;
objBG = null;
coreSys = null;
}
}
}//package FZGame.Action
Section 75
//BattleUI (FZGame.Menu.BattleUI)
package FZGame.Menu {
import flash.events.*;
import FZBase.Sound.*;
import flash.net.*;
public class BattleUI {
public var _boss_kill:int;// = 0
private var objResult;
public var _special:int;// = 0
private var dispCont;
public var _score:int;// = 0
public var _combo:int;// = 0
public var isQuit:Boolean;// = false
public var objDebug;
private var delayFrame:int;// = 0
private var coreSys;
public var _counter:int;// = 0
private var objPause;
public var _kill:int;// = 0
private var isDebug:Boolean;// = false
private var _combo_counter:int;// = 0
public var objStat;
public function BattleUI(_coreSys){
isQuit = false;
isDebug = false;
_kill = 0;
_boss_kill = 0;
_score = 0;
_special = 0;
_counter = 0;
_combo = 0;
_combo_counter = 0;
delayFrame = 0;
super();
coreSys = _coreSys;
dispCont = coreSys.contMENU;
}
private function quitClick(event:MouseEvent):void{
showResult(0);
}
public function addCounter(){
if (objStat){
_counter = Math.min((_counter + 1), 9999999999);
};
}
public function addBigKill(){
if (objStat){
_boss_kill = Math.min((_boss_kill + 1), 9999999999);
};
}
private function continueClick(event:MouseEvent):void{
isQuit = true;
objResult.bContinue.removeEventListener(MouseEvent.CLICK, continueClick);
}
private function resultHandle(event:Event):void{
delayFrame = Math.max((delayFrame - 1), 0);
if (delayFrame == 0){
objResult = new scoring_mc();
dispCont.addChild(objResult);
objResult.cacheAsBitmap = true;
objResult.x = 0;
objResult.y = 0;
objResult.score.htmlText = String(_score);
objResult.small_kill.htmlText = String((_kill * 100));
objResult.big_kill.htmlText = String((_boss_kill * 1000));
objResult.special.htmlText = String((_special * 400));
objResult.counter.htmlText = String((_counter * 500));
objResult.combo.htmlText = String((_combo * 100));
_score = (((((_score + (_kill * 100)) + (_boss_kill * 1000)) + (_special * 400)) + (_counter * 500)) + (_combo * 100));
objResult.total_score.htmlText = String(_score);
dataProcess();
objResult.bContinue.addEventListener(MouseEvent.CLICK, continueClick, false, 0, true);
dispCont.removeEventListener(Event.ENTER_FRAME, resultHandle);
};
}
public function updateBattleInfo(val:int=1, val2:int=1){
if (objStat){
if (((coreSys.gmKey.getKeyPress().KEY_P) || (coreSys.gmKey.getKeyPress().KEY_SPACE))){
if (objPause == null){
showPause();
} else {
closePause();
};
};
if (coreSys.gmLevel == 4){
objStat.kill.htmlText = String(("Total Kill " + String((_kill + _boss_kill))));
} else {
objStat.kill.htmlText = String(((("Enemy Left " + String(val)) + " / ") + String(val2)));
};
};
}
private function pauseClick(event:MouseEvent):void{
showPause();
}
public function initialise(){
_kill = 0;
_boss_kill = 0;
_score = 0;
_special = 0;
_counter = 0;
_combo = 0;
objStat = new battle_status_mc();
dispCont.addChild(objStat);
objStat.cacheAsBitmap = true;
objStat.x = 0;
objStat.y = 0;
if (isDebug){
objDebug = new debug_mc();
dispCont.addChild(objDebug);
objDebug.cacheAsBitmap = true;
objDebug.x = 400;
objDebug.y = 0;
};
objStat.bPause.addEventListener(MouseEvent.CLICK, pauseClick, false, 0, true);
isQuit = false;
}
public function showResult(delay:int=100){
if (objResult == null){
if (objStat){
objStat.bPause.removeEventListener(MouseEvent.CLICK, pauseClick);
dispCont.removeChild(objStat);
objStat = null;
};
closePause();
dispCont.addEventListener(Event.ENTER_FRAME, resultHandle, false, 0, true);
delayFrame = delay;
trace("BATTLE END !!");
};
}
public function reset(){
_kill = 0;
_boss_kill = 0;
_score = 0;
_special = 0;
_counter = 0;
_combo = 0;
}
public function addSpecial(){
if (objStat){
_special = Math.min((_special + 1), 9999999999);
};
}
private function resumeClick(event:MouseEvent):void{
var container:*;
var numChild:int;
var children:Array;
var i:int;
closePause();
container = coreSys.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
i = 0;
while (i < numChild) {
if ((((((children[i].objType == 1)) || ((children[i].objType == 2)))) || ((children[i].objType == 3)))){
children[i].getMC().play();
};
i++;
};
}
public function closePause(){
if (objPause){
objPause.bResume.removeEventListener(MouseEvent.CLICK, resumeClick);
objPause.bPlayMore.removeEventListener(MouseEvent.CLICK, playMoreClick);
objPause.bQuit.removeEventListener(MouseEvent.CLICK, quitClick);
dispCont.removeChild(objPause);
objPause = null;
coreSys.isPaused = false;
};
}
private function playMoreClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest(coreSys.sponsorLink);
navigateToURL(targetURL, "_blank");
}
public function addSmallKill(){
if (objStat){
_kill = Math.min((_kill + 1), 9999999999);
};
}
public function setHealth(val:Number=0, val_max:Number=0){
if (objStat){
val = Math.min(val, 9999999999);
objStat.lifeBar.scaleX = (val / val_max);
};
}
private function commentHandle(event:Event):void{
var snd:*;
if (((((objStat) && (objStat.combo))) && (objStat.combo.comment))){
if (objStat.combo.currentFrame == 90){
snd = null;
if (objStat.combo.comment.currentFrame == 2){
snd = new khronos_combo_good_take_1();
} else {
if (objStat.combo.comment.currentFrame == 3){
snd = new khronos_combo_great_take_1();
} else {
if (objStat.combo.comment.currentFrame == 4){
snd = new khronos_combo_crazy_take_1();
} else {
if (objStat.combo.comment.currentFrame == 5){
snd = new khronos_combo_marvelous_take_1();
} else {
if (objStat.combo.comment.currentFrame == 6){
snd = new khronos_combo_madness_take_1();
} else {
if (objStat.combo.comment.currentFrame == 7){
snd = new khronos_combo_EPIC_take_1();
};
};
};
};
};
};
if (snd){
snd.playSound(coreSys.gmSound);
};
objStat.combo.removeEventListener(Event.ENTER_FRAME, commentHandle);
};
};
}
private function dataProcess(){
coreSys.gmDat.stat_gameover = Math.min((coreSys.gmDat.stat_gameover + 1), 999);
if (coreSys.gmDat.stat_kill < (_kill + _boss_kill)){
coreSys.gmDat.stat_kill = (_kill + _boss_kill);
};
if (coreSys.gmDat.stat_bosskill_counter < _boss_kill){
coreSys.gmDat.stat_bosskill_counter = _boss_kill;
};
if (coreSys.gmDat.stat_best_score < _score){
coreSys.gmDat.stat_best_score = _score;
};
if (coreSys.gmDat.stat_using_special < _special){
coreSys.gmDat.stat_using_special = _special;
};
if (coreSys.gmDat.stat_using_counter < _counter){
coreSys.gmDat.stat_using_counter = _counter;
};
if (coreSys.gmDat.stat_best_combo_hit < _combo){
coreSys.gmDat.stat_best_combo_hit = _combo;
};
coreSys.gmDat.saveData();
coreSys.submitStat();
coreSys.gmDat.calculateFlag();
if (coreSys.gmDat.isNewAchivement()){
coreSys.popNewAchivement();
};
}
public function addScore(val:int=0){
if (objStat){
_score = Math.min((_score + val), 9999999999);
objStat.score.htmlText = ("Score " + String(_score));
};
}
public function increaseStatCombo(){
if (objStat){
if (objStat.combo.currentLabel == "init"){
_combo_counter = 0;
};
_combo_counter = Math.min((_combo_counter + 1), 999);
if (_combo < _combo_counter){
_combo = _combo_counter;
};
objStat.combo.numMC.num.htmlText = String(_combo_counter);
if (_combo_counter == 1){
objStat.combo.gotoAndPlay("first");
};
if (_combo_counter > 1){
objStat.combo.gotoAndPlay("second");
};
if (_combo_counter < 10){
objStat.combo.comment.gotoAndStop(1);
} else {
if ((((_combo_counter >= 10)) && ((_combo_counter < 20)))){
objStat.combo.comment.gotoAndStop(2);
} else {
if ((((_combo_counter >= 20)) && ((_combo_counter < 30)))){
objStat.combo.comment.gotoAndStop(3);
} else {
if ((((_combo_counter >= 30)) && ((_combo_counter < 50)))){
objStat.combo.comment.gotoAndStop(4);
} else {
if ((((_combo_counter >= 50)) && ((_combo_counter < 70)))){
objStat.combo.comment.gotoAndStop(5);
} else {
if ((((_combo_counter >= 70)) && ((_combo_counter < 90)))){
objStat.combo.comment.gotoAndStop(6);
} else {
if (_combo_counter >= 90){
objStat.combo.comment.gotoAndStop(7);
};
};
};
};
};
};
};
objStat.combo.addEventListener(Event.ENTER_FRAME, commentHandle, false, 0, true);
};
}
public function showPause(){
var container:*;
var numChild:int;
var children:Array;
var i:int;
if (objPause == null){
objPause = new battle_pause_mc();
dispCont.addChild(objPause);
objPause.cacheAsBitmap = true;
objPause.x = 0;
objPause.y = 0;
if (objPause.bResume){
objPause.bResume.addEventListener(MouseEvent.CLICK, resumeClick, false, 0, true);
};
if (objPause.bPlayMore){
objPause.bPlayMore.addEventListener(MouseEvent.CLICK, playMoreClick, false, 0, true);
};
if (objPause.bQuit){
objPause.bQuit.addEventListener(MouseEvent.CLICK, quitClick, false, 0, true);
};
coreSys.isPaused = true;
container = coreSys.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
i = 0;
while (i < numChild) {
if ((((((children[i].objType == 1)) || ((children[i].objType == 2)))) || ((children[i].objType == 3)))){
children[i].getMC().stop();
};
i++;
};
};
}
public function destroy(){
closePause();
if (isDebug){
dispCont.removeChild(objDebug);
objDebug = null;
};
if (objStat){
objStat.combo.removeEventListener(Event.ENTER_FRAME, commentHandle);
objStat.bPause.removeEventListener(MouseEvent.CLICK, pauseClick);
dispCont.removeChild(objStat);
objStat = null;
};
if (objResult){
objResult.bContinue.removeEventListener(MouseEvent.CLICK, continueClick);
dispCont.removeChild(objResult);
objResult = null;
};
}
public function setOverdrive(val:Number=0, val_max:Number=1000){
if (objStat){
val = Math.min(val, 9999999999);
objStat.powerBar.scaleX = (val / val_max);
objStat.glow1.gotoAndStop(1);
objStat.glow2.gotoAndStop(1);
objStat.glow3.gotoAndStop(1);
objStat.glow4.gotoAndStop(1);
objStat.glow5.gotoAndStop(1);
if (val >= 200){
objStat.glow1.gotoAndStop(2);
};
if (val >= 400){
objStat.glow2.gotoAndStop(2);
};
if (val >= 600){
objStat.glow3.gotoAndStop(2);
};
if (val >= 800){
objStat.glow4.gotoAndStop(2);
};
if (val >= 1000){
objStat.glow5.gotoAndStop(2);
};
};
}
public function resetCombo(){
if (objStat){
objStat.combo.gotoAndStop(1);
};
_combo_counter = 0;
}
}
}//package FZGame.Menu
Section 76
//LoaderUI (FZGame.Menu.LoaderUI)
package FZGame.Menu {
import flash.events.*;
import flash.net.*;
public class LoaderUI {
private var coreSys;
private var objArtLogic;
private var dispCont;
private var objArmorGames;
public function LoaderUI(_coreSys){
super();
coreSys = _coreSys;
dispCont = coreSys.contMENU;
}
private function logoHandle(event:Event):void{
if (objArtLogic.currentFrame == objArtLogic.totalFrames){
destroy();
coreSys.gmState.setState(coreSys.gmState.ST_PROLOGUE);
};
}
public function initialise(){
objArtLogic = new bomb_preloader();
dispCont = coreSys.contMENU;
dispCont.addChild(objArtLogic);
objArtLogic.x = 0;
objArtLogic.y = 0;
objArtLogic.scaleX = 1;
objArtLogic.scaleY = 1;
objArtLogic.gotoAndPlay(1);
objArtLogic.addEventListener(Event.ENTER_FRAME, logoHandle, false, 0, true);
objArtLogic.addEventListener(MouseEvent.CLICK, logoClick, false, 0, true);
}
public function destroy(){
objArtLogic.removeEventListener(Event.ENTER_FRAME, logoHandle);
dispCont.removeChild(objArtLogic);
objArtLogic = null;
}
private function logoClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest(coreSys.sponsorLink);
navigateToURL(targetURL, "_blank");
}
}
}//package FZGame.Menu
Section 77
//MainMenuUI (FZGame.Menu.MainMenuUI)
package FZGame.Menu {
import flash.events.*;
import flash.net.*;
public class MainMenuUI {
private var objMainMenu;
private var objCredit;
private var objInstruction;
private var objStatistic;
private var insPage:int;// = 1
private var objAward;
private var objAchive;
private var dispCont;
private var coreSys;
public function MainMenuUI(_coreSys){
insPage = 1;
super();
coreSys = _coreSys;
dispCont = coreSys.contMENU;
}
private function level2Click(event:MouseEvent):void{
coreSys.gmLevel = 2;
objMainMenu.gotoAndStop(3);
}
private function closeStaticticClick(event:MouseEvent):void{
objStatistic.bClose.removeEventListener(MouseEvent.CLICK, closeStaticticClick);
dispCont.removeChild(objStatistic);
objStatistic = null;
}
private function awardClick(event:MouseEvent):void{
objAward = new award_mc();
dispCont.addChild(objAward);
objAward.x = 0;
objAward.y = 0;
coreSys.gmDat.calculateFlag();
objAward.award1.gotoAndStop(1);
objAward.award2.gotoAndStop(1);
objAward.award3.gotoAndStop(1);
objAward.award4.gotoAndStop(1);
objAward.award5.gotoAndStop(1);
if (coreSys.gmDat.totalAchivement >= 6){
objAward.award1.gotoAndStop(2);
};
if (coreSys.gmDat.totalAchivement >= 12){
objAward.award2.gotoAndStop(2);
};
if (coreSys.gmDat.totalAchivement >= 18){
objAward.award3.gotoAndStop(2);
};
if (coreSys.gmDat.totalAchivement >= 24){
objAward.award4.gotoAndStop(2);
};
if (coreSys.gmDat.totalAchivement >= 30){
objAward.award5.gotoAndStop(2);
};
objAward.bClose.addEventListener(MouseEvent.CLICK, closeAwardClick, false, 0, true);
}
private function soundToggleClick(event:MouseEvent):void{
if (coreSys.gmSound){
coreSys.gmSound = 0;
} else {
coreSys.gmSound = 1;
};
coreSys.toggleSound();
}
private function startClick(event:MouseEvent):void{
coreSys.gmDat.calculateFlag();
objMainMenu.gotoAndStop(2);
}
private function closeAwardClick(event:MouseEvent):void{
objAward.bClose.removeEventListener(MouseEvent.CLICK, closeAwardClick);
dispCont.removeChild(objAward);
objAward = null;
}
private function prevInsClick(event:MouseEvent):void{
insPage = Math.max((insPage - 1), 1);
objInstruction.gotoAndStop(insPage);
trace("prev click");
}
private function listenerMainMenu(event:Event):void{
if (objMainMenu.bStart){
objMainMenu.bStart.addEventListener(MouseEvent.CLICK, startClick, false, 0, true);
};
if (objMainMenu.bInstruction){
objMainMenu.bInstruction.addEventListener(MouseEvent.CLICK, instructionClick, false, 0, true);
};
if (objMainMenu.bPlayMore){
objMainMenu.bPlayMore.addEventListener(MouseEvent.CLICK, playMoreClick, false, 0, true);
};
if (objMainMenu.bAddGame){
objMainMenu.bAddGame.addEventListener(MouseEvent.CLICK, addGameClick, false, 0, true);
};
if (objMainMenu.bCredit){
objMainMenu.bCredit.addEventListener(MouseEvent.CLICK, creditClick, false, 0, true);
};
if (objMainMenu.bCredit){
objMainMenu.bArcadeBombLink.addEventListener(MouseEvent.CLICK, arcadeBombClick, false, 0, true);
};
if (objMainMenu.bCredit){
objMainMenu.bArtLogicLink.addEventListener(MouseEvent.CLICK, artLogicClick, false, 0, true);
};
if (objMainMenu.soundToggle){
objMainMenu.soundToggle.addEventListener(MouseEvent.CLICK, soundToggleClick, false, 0, true);
if (coreSys.gmSound){
objMainMenu.soundToggle.gotoAndStop(1);
} else {
objMainMenu.soundToggle.gotoAndStop(2);
};
};
if (objMainMenu.bLevel1){
objMainMenu.bLevel1.addEventListener(MouseEvent.CLICK, level1Click, false, 0, true);
};
if (objMainMenu.bLevel2){
objMainMenu.bLevel2.addEventListener(MouseEvent.CLICK, level2Click, false, 0, true);
};
if (objMainMenu.bLevel3){
objMainMenu.bLevel3.addEventListener(MouseEvent.CLICK, level3Click, false, 0, true);
};
if (objMainMenu.bSurvival){
objMainMenu.bSurvival.addEventListener(MouseEvent.CLICK, survivalClick, false, 0, true);
};
if (objMainMenu.bAchive){
objMainMenu.bAchive.addEventListener(MouseEvent.CLICK, achiveClick, false, 0, true);
};
if (objMainMenu.bAward){
objMainMenu.bAward.addEventListener(MouseEvent.CLICK, awardClick, false, 0, true);
};
if (objMainMenu.bStatistic){
objMainMenu.bStatistic.addEventListener(MouseEvent.CLICK, statisticClick, false, 0, true);
};
if (objMainMenu.bBack){
objMainMenu.bBack.addEventListener(MouseEvent.CLICK, backClick, false, 0, true);
};
if (objMainMenu.bPrev){
objMainMenu.bPrev.addEventListener(MouseEvent.CLICK, prevClick, false, 0, true);
};
if (objMainMenu.bNext){
objMainMenu.bNext.addEventListener(MouseEvent.CLICK, nextClick, false, 0, true);
};
if (objMainMenu.bPlay){
objMainMenu.bPlay.addEventListener(MouseEvent.CLICK, playClick, false, 0, true);
};
}
private function nextInsClick(event:MouseEvent):void{
insPage = Math.min((insPage + 1), 3);
objInstruction.gotoAndStop(insPage);
trace("next click");
}
private function addGameClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest("http://www.arcadebomb.com/free_website_games.html");
navigateToURL(targetURL, "_blank");
}
private function statisticClick(event:MouseEvent):void{
objStatistic = new statistic_mc();
dispCont.addChild(objStatistic);
objStatistic.x = 0;
objStatistic.y = 0;
coreSys.gmDat.calculateFlag();
objStatistic.best_kill.htmlText = String(coreSys.gmDat.stat_kill);
objStatistic.best_step.htmlText = String(coreSys.gmDat.stat_moving_step);
objStatistic.best_combo.htmlText = String(coreSys.gmDat.stat_best_combo_hit);
objStatistic.total_achiev.htmlText = String((coreSys.gmDat.totalAchivement + " / 32"));
objStatistic.best_score.htmlText = String(coreSys.gmDat.stat_best_score);
objStatistic.bClose.addEventListener(MouseEvent.CLICK, closeStaticticClick, false, 0, true);
}
private function instructionClick(event:MouseEvent):void{
objInstruction = new instruction_mc();
dispCont.addChild(objInstruction);
objInstruction.x = 0;
objInstruction.y = 0;
objInstruction.gotoAndStop(1);
objInstruction.bClose.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
objInstruction.bPrev.addEventListener(MouseEvent.CLICK, prevInsClick, false, 0, true);
objInstruction.bNext.addEventListener(MouseEvent.CLICK, nextInsClick, false, 0, true);
coreSys.gmDat.stat_read_instruction++;
coreSys.gmDat.calculateFlag();
coreSys.gmDat.saveData();
if (coreSys.gmDat.isNewAchivement()){
coreSys.popNewAchivement();
};
insPage = 1;
}
private function level1Click(event:MouseEvent):void{
coreSys.gmLevel = 1;
objMainMenu.gotoAndStop(3);
}
private function playMoreClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest(coreSys.sponsorLink);
navigateToURL(targetURL, "_blank");
}
private function backClick(event:MouseEvent):void{
objMainMenu.gotoAndStop(1);
}
private function prevClick(event:MouseEvent):void{
if (objMainMenu.select.currentFrame > 1){
objMainMenu.select.gotoAndStop((objMainMenu.select.currentFrame - 1));
coreSys.gmChar = objMainMenu.select.currentFrame;
};
}
private function arcadeBombClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest(coreSys.sponsorLink);
navigateToURL(targetURL, "_blank");
}
private function creditClick(event:MouseEvent):void{
objCredit = new credit_mc();
dispCont.addChild(objCredit);
objCredit.x = 0;
objCredit.y = 0;
objCredit.bClose.addEventListener(MouseEvent.CLICK, closeCreditClick, false, 0, true);
coreSys.gmDat.stat_read_credit++;
coreSys.gmDat.calculateFlag();
coreSys.gmDat.saveData();
if (coreSys.gmDat.isNewAchivement()){
coreSys.popNewAchivement();
};
}
private function survivalClick(event:MouseEvent):void{
coreSys.gmLevel = 4;
objMainMenu.gotoAndStop(3);
}
private function closeAchiveClick(event:MouseEvent):void{
objAchive.bClose.removeEventListener(MouseEvent.CLICK, closeAchiveClick);
dispCont.removeChild(objAchive);
objAchive = null;
}
private function nextClick(event:MouseEvent):void{
var charNum:int;
if (objMainMenu.select.currentFrame < 6){
charNum = ((coreSys.gmDat.totalAchivement / 6) + 1);
if (charNum > objMainMenu.select.currentFrame){
objMainMenu.select.gotoAndStop((objMainMenu.select.currentFrame + 1));
coreSys.gmChar = objMainMenu.select.currentFrame;
};
};
}
private function artLogicClick(event:MouseEvent):void{
var targetURL:URLRequest;
targetURL = new URLRequest("http://www.artlogicgames.com");
navigateToURL(targetURL, "_blank");
}
private function closeClick(event:MouseEvent):void{
objInstruction.bClose.removeEventListener(MouseEvent.CLICK, closeClick);
objInstruction.bPrev.removeEventListener(MouseEvent.CLICK, prevInsClick);
objInstruction.bNext.removeEventListener(MouseEvent.CLICK, nextInsClick);
if (objInstruction){
dispCont.removeChild(objInstruction);
objInstruction = null;
};
}
private function level3Click(event:MouseEvent):void{
coreSys.gmLevel = 3;
objMainMenu.gotoAndStop(3);
}
public function initialise(){
var snd:*;
objMainMenu = new main_menu_mc();
dispCont.addChild(objMainMenu);
objMainMenu.cacheAsBitmap = true;
objMainMenu.x = 0;
objMainMenu.y = 0;
coreSys.playBgmCover();
snd = new khonros_take_1();
snd.playSound(coreSys.gmSound);
objMainMenu.addEventListener(Event.ENTER_FRAME, listenerMainMenu, false, 0, true);
if (coreSys.gmDat.isNewAchivement()){
coreSys.popNewAchivement();
};
}
private function achiveClick(event:MouseEvent):void{
objAchive = new achievement_mc();
dispCont.addChild(objAchive);
objAchive.x = 0;
objAchive.y = 0;
coreSys.gmDat.calculateFlag();
objAchive.achive01.gotoAndStop(1);
objAchive.achive02.gotoAndStop(1);
objAchive.achive03.gotoAndStop(1);
objAchive.achive04.gotoAndStop(1);
objAchive.achive05.gotoAndStop(1);
objAchive.achive06.gotoAndStop(1);
objAchive.achive07.gotoAndStop(1);
objAchive.achive08.gotoAndStop(1);
objAchive.achive09.gotoAndStop(1);
objAchive.achive10.gotoAndStop(1);
objAchive.achive11.gotoAndStop(1);
objAchive.achive12.gotoAndStop(1);
objAchive.achive13.gotoAndStop(1);
objAchive.achive14.gotoAndStop(1);
objAchive.achive15.gotoAndStop(1);
objAchive.achive16.gotoAndStop(1);
objAchive.achive17.gotoAndStop(1);
objAchive.achive18.gotoAndStop(1);
objAchive.achive19.gotoAndStop(1);
objAchive.achive20.gotoAndStop(1);
objAchive.achive21.gotoAndStop(1);
objAchive.achive22.gotoAndStop(1);
objAchive.achive23.gotoAndStop(1);
objAchive.achive24.gotoAndStop(1);
objAchive.achive25.gotoAndStop(1);
objAchive.achive26.gotoAndStop(1);
objAchive.achive27.gotoAndStop(1);
objAchive.achive28.gotoAndStop(1);
objAchive.achive29.gotoAndStop(1);
objAchive.achive30.gotoAndStop(1);
objAchive.achive31.gotoAndStop(1);
objAchive.achive32.gotoAndStop(1);
objAchive.achive01.gotoAndStop((coreSys.gmDat.achv01_play_game_2x + 1));
objAchive.achive02.gotoAndStop((coreSys.gmDat.achv02_read_instruction + 1));
objAchive.achive03.gotoAndStop((coreSys.gmDat.achv03_read_credit + 1));
objAchive.achive04.gotoAndStop((coreSys.gmDat.achv04_survive_10minute + 1));
objAchive.achive05.gotoAndStop((coreSys.gmDat.achv05_survive_20minute + 1));
objAchive.achive06.gotoAndStop((coreSys.gmDat.achv06_survive_35minute + 1));
objAchive.achive07.gotoAndStop((coreSys.gmDat.achv07_gameover_5x + 1));
objAchive.achive08.gotoAndStop((coreSys.gmDat.achv08_gameover_20x + 1));
objAchive.achive09.gotoAndStop((coreSys.gmDat.achv09_complete_level1 + 1));
objAchive.achive10.gotoAndStop((coreSys.gmDat.achv10_complete_level2 + 1));
objAchive.achive11.gotoAndStop((coreSys.gmDat.achv11_complete_level3 + 1));
objAchive.achive12.gotoAndStop((coreSys.gmDat.achv12_best_hiscore + 1));
objAchive.achive13.gotoAndStop((coreSys.gmDat.achv13_kill_10enemy + 1));
objAchive.achive14.gotoAndStop((coreSys.gmDat.achv14_kill_30enemy + 1));
objAchive.achive15.gotoAndStop((coreSys.gmDat.achv15_kill_50enemy + 1));
objAchive.achive16.gotoAndStop((coreSys.gmDat.achv16_kill_100enemy + 1));
objAchive.achive17.gotoAndStop((coreSys.gmDat.achv17_bestcombo_15hit + 1));
objAchive.achive18.gotoAndStop((coreSys.gmDat.achv18_bestcombo_30hit + 1));
objAchive.achive19.gotoAndStop((coreSys.gmDat.achv19_bestcombo_50hit + 1));
objAchive.achive20.gotoAndStop((coreSys.gmDat.achv20_using_special + 1));
objAchive.achive21.gotoAndStop((coreSys.gmDat.achv21_using_counter + 1));
objAchive.achive22.gotoAndStop((coreSys.gmDat.achv22_kill_boss_1x + 1));
objAchive.achive23.gotoAndStop((coreSys.gmDat.achv23_kill_boss_5x + 1));
objAchive.achive24.gotoAndStop((coreSys.gmDat.achv24_kill_boss_10x + 1));
objAchive.achive25.gotoAndStop((coreSys.gmDat.achv25_paused_1minutes + 1));
objAchive.achive26.gotoAndStop((coreSys.gmDat.achv26_paused_2minutes + 1));
objAchive.achive27.gotoAndStop((coreSys.gmDat.achv27_no_attack_1minutes + 1));
objAchive.achive28.gotoAndStop((coreSys.gmDat.achv28_no_attack_2minutes + 1));
objAchive.achive29.gotoAndStop((coreSys.gmDat.achv29_moving_250step + 1));
objAchive.achive30.gotoAndStop((coreSys.gmDat.achv30_moving_500step + 1));
objAchive.achive31.gotoAndStop((coreSys.gmDat.achv31_moving_1200step + 1));
objAchive.achive32.gotoAndStop((coreSys.gmDat.achv32_play_game_10x + 1));
coreSys.gmDat.refreshFlag();
objAchive.bClose.addEventListener(MouseEvent.CLICK, closeAchiveClick, false, 0, true);
}
public function destroy(){
objMainMenu.removeEventListener(Event.ENTER_FRAME, listenerMainMenu);
dispCont.removeChild(objMainMenu);
objMainMenu = null;
}
private function playClick(event:MouseEvent):void{
coreSys.gmChar = objMainMenu.select.currentFrame;
destroy();
coreSys.gmState.setState(coreSys.gmState.ST_BATTLE);
}
private function closeCreditClick(event:MouseEvent):void{
objCredit.bClose.removeEventListener(MouseEvent.CLICK, closeCreditClick);
if (objCredit){
dispCont.removeChild(objCredit);
objCredit = null;
};
}
}
}//package FZGame.Menu
Section 78
//PrologueUI (FZGame.Menu.PrologueUI)
package FZGame.Menu {
import flash.events.*;
public class PrologueUI {
private var coreSys;
private var dispCont;
private var objPrologue;
public function PrologueUI(_coreSys){
super();
coreSys = _coreSys;
dispCont = coreSys.contMENU;
}
private function skipClick(event:MouseEvent):void{
destroy();
coreSys.gmState.setState(coreSys.gmState.ST_MAINMENU);
}
private function prologueHandle(event:Event):void{
if (objPrologue.bSkip){
objPrologue.bSkip.addEventListener(MouseEvent.CLICK, skipClick, false, 0, true);
};
if (objPrologue.bPlay){
objPrologue.bPlay.addEventListener(MouseEvent.CLICK, playClick, false, 0, true);
};
}
public function initialise(){
objPrologue = new prologue_mc();
dispCont.addChild(objPrologue);
objPrologue.x = 0;
objPrologue.y = 0;
objPrologue.addEventListener(Event.ENTER_FRAME, prologueHandle, false, 0, true);
coreSys.playBgmPrologue();
}
public function destroy(){
objPrologue.removeEventListener(Event.ENTER_FRAME, prologueHandle);
dispCont.removeChild(objPrologue);
objPrologue = null;
}
private function playClick(event:MouseEvent):void{
destroy();
coreSys.gmState.setState(coreSys.gmState.ST_MAINMENU);
}
}
}//package FZGame.Menu
Section 79
//Blood (FZGame.Object.Blood)
package FZGame.Object {
import flash.events.*;
import flash.display.*;
public class Blood extends Sprite {
private var dispCont;// = null
private var _TIMEUP:int;// = 300
private var _VY:Number;// = 0
private var _VX:Number;// = 0
private var _FRICTION:Number;// = 0.98
public var _ZDepth:int;// = 0
private var coreSys;// = null
private var objMC;// = null
public var objType:int;// = 66
private var _FLOOR:Number;// = 0
private var _GRAVITY:Number;// = 0.3
public function Blood(){
objType = 66;
_ZDepth = 0;
coreSys = null;
dispCont = null;
objMC = null;
_FRICTION = 0.98;
_GRAVITY = 0.3;
_VX = 0;
_VY = 0;
_FLOOR = 0;
_TIMEUP = 300;
super();
}
public function initialise(_coreSys, _X:int=0, _Y:int=0, _Z:int=0, _ANGLE:Number=0, _VELOCITY:Number=0){
coreSys = _coreSys;
dispCont = coreSys.contFIELD;
_ZDepth = (_Z + 1);
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _X;
this.y = _Y;
this.rotation = _ANGLE;
objMC = new blood_effect();
this.addChild(objMC);
_VX = Math.cos(((_ANGLE * Math.PI) / 180));
_VY = Math.sin(((_ANGLE * Math.PI) / 180));
_VX = (_VELOCITY * _VX);
_VY = (_VELOCITY * _VY);
_FLOOR = _ZDepth;
_FRICTION = 0.98;
_GRAVITY = 0.3;
_TIMEUP = (5 + (Math.random() * 25));
this.addEventListener(Event.ENTER_FRAME, bloodHandle, false, 0, true);
}
private function bloodHandle(event:Event):void{
if (coreSys.isPaused){
return;
};
if (this.y > _FLOOR){
this.y = _FLOOR;
_VY = 0;
_GRAVITY = 0;
_VX = 0;
_FRICTION = 0;
destroy();
return;
};
_VX = (_VX * _FRICTION);
_VY = (_VY + _GRAVITY);
this.x = (this.x + _VX);
this.y = (this.y + _VY);
this.rotation = ((Math.atan2(_VY, _VX) * 180) / Math.PI);
_TIMEUP = Math.max((_TIMEUP - 1), 0);
if (_TIMEUP <= 0){
destroy();
};
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, bloodHandle);
this.removeChild(objMC);
objMC = null;
dispCont.removeChild(this);
dispCont = null;
coreSys = null;
}
}
}//package FZGame.Object
Section 80
//Enemy (FZGame.Object.Enemy)
package FZGame.Object {
import flash.events.*;
public class Enemy extends EnemyBase {
const _MOVING_CLOSE = 1;
const _MOVING_AWAY = 2;
const _HIT = 4;
const _DEAD = 5;
const _ATTACK = 3;
const _STANDING = 0;
private var _power:int;// = 0
private var lifeBarShowTime:int;// = 0
private var timeIdle:int;// = 0
private var objBGT;// = null
private var objLifeBar;// = null
private var AI_TYPE;// = 1
private var AI_LV;// = 1
private var _max_health:int;// = 1000
private var _speed:Number;// = 3
private var coreSysT;// = null
private var _health:int;// = 1000
private var objTarget;// = null
private var AI_STATE;// = 0
private var _score:int;// = 500
public function Enemy(_coreSys, _objBG){
coreSysT = null;
objBGT = null;
_max_health = 1000;
_health = 1000;
_power = 0;
_speed = 3;
_score = 500;
objLifeBar = null;
lifeBarShowTime = 0;
objTarget = null;
AI_STATE = 0;
AI_LV = 1;
AI_TYPE = 1;
timeIdle = 0;
super();
coreSysT = _coreSys;
objBGT = _objBG;
}
public function executeAttack():Boolean{
var retVal:*;
retVal = false;
if (objType == 2){
retVal = executeAttack1();
};
if (objType == 3){
retVal = executeAttack2();
};
return (retVal);
}
public function executeCombo1():Boolean{
if ((((objSkeleton.currentLabel == "attack_1")) && ((objSkeleton.currentFrame == 89)))){
if (((isRightArmOK()) && ((Math.random() < 0.5)))){
objSkeleton.gotoAndPlay("attack_2");
return (true);
};
};
if ((((objSkeleton.currentLabel == "attack_2")) && ((objSkeleton.currentFrame == 136)))){
if (((((isLeftArmOK()) && (isRightArmOK()))) && ((Math.random() < 0.8)))){
objSkeleton.gotoAndPlay("attack_3");
return (true);
};
};
if ((((objSkeleton.currentLabel == "attack_4")) && ((objSkeleton.currentFrame == 343)))){
if (((isLeftArmOK()) && ((Math.random() < 0.5)))){
objSkeleton.gotoAndPlay("attack_5");
return (true);
};
};
if ((((objSkeleton.currentLabel == "attack_5")) && ((objSkeleton.currentFrame == 386)))){
if (((((isLeftArmOK()) && (isRightArmOK()))) && ((Math.random() < 0.8)))){
objSkeleton.gotoAndPlay("attack_3");
return (true);
};
};
return (false);
}
public function executeCombo2():Boolean{
if ((((objSkeleton.currentLabel == "attack_1")) && ((objSkeleton.currentFrame == 110)))){
if (((((isLeftArmOK()) && (isRightArmOK()))) && ((Math.random() < 0.6)))){
objSkeleton.gotoAndPlay("attack_3");
return (true);
};
};
if ((((objSkeleton.currentLabel == "attack_2")) && ((objSkeleton.currentFrame == 205)))){
if (((((isLeftArmOK()) && (isRightArmOK()))) && ((Math.random() < 0.8)))){
objSkeleton.gotoAndPlay("attack_3");
return (true);
};
};
if ((((objSkeleton.currentLabel == "attack_3")) && ((objSkeleton.currentFrame == 307)))){
if (((isLeftArmOK()) && ((Math.random() < 0.3)))){
objSkeleton.gotoAndPlay("attack_2");
return (true);
};
};
return (false);
}
public function motionAttack2(){
var snd:*;
if (((((!((objSkeleton.currentLabel == "attack_1"))) && (!((objSkeleton.currentLabel == "attack_2"))))) && (!((objSkeleton.currentLabel == "attack_3"))))){
getAction();
} else {
AI_STATE = _ATTACK;
if (((((objTarget.isEnableHit()) && ((objTarget.y < (this.y + 25))))) && ((objTarget.y > (this.y - 25))))){
if ((((objSkeleton.currentLabel == "attack_1")) && ((objSkeleton.currentFrame == 103)))){
if (getRightWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(2, (_power * 1), 100, (1 + (Math.random() * 1)));
};
};
if ((((objSkeleton.currentLabel == "attack_2")) && ((objSkeleton.currentFrame == 195)))){
if (getRightWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(2, (_power * 1.3), 100, (1 + (Math.random() * 1)));
};
};
if ((((objSkeleton.currentLabel == "attack_3")) && ((objSkeleton.currentFrame == 288)))){
if (getRightWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(2, (_power * 2.5), 100, (2 + (Math.random() * 1)));
};
};
};
executeCombo();
};
snd = null;
if (objSkeleton.currentFrame == 103){
snd = new se_thurst();
snd.playSound(coreSysT.gmSound);
};
if (objSkeleton.currentFrame == 195){
snd = new se_thurst();
snd.playSound(coreSysT.gmSound);
};
if (objSkeleton.currentFrame == 288){
snd = new se_swing3();
snd.playSound(coreSysT.gmSound);
};
}
public function moveAway(){
var vx:Number;
var vy:Number;
var vlength:Number;
if (timeIdle > 0){
AI_STATE = _MOVING_AWAY;
if (objSkeleton.currentLabel != "walk2"){
objSkeleton.gotoAndPlay("walk2");
};
vx = (objTarget.x - this.x);
vy = (objTarget.y - this.y);
vlength = Math.sqrt(((vx * vx) + (vy * vy)));
vx = (vx / vlength);
vy = (vy / vlength);
this.x = (this.x + (vx * -(_speed)));
this.y = (this.y + (vy * -(_speed)));
if (this.y < objBGT.TOP_BORDER){
this.y = objBGT.TOP_BORDER;
};
if (this.y > objBGT.BOTTOM_BORDER){
this.y = objBGT.BOTTOM_BORDER;
};
} else {
getAction();
};
}
public function motionAttack1(){
var snd:*;
if (((((((((((!((objSkeleton.currentLabel == "attack_1"))) && (!((objSkeleton.currentLabel == "attack_2"))))) && (!((objSkeleton.currentLabel == "attack_3"))))) && (!((objSkeleton.currentLabel == "attack_4"))))) && (!((objSkeleton.currentLabel == "attack_5"))))) && (!((objSkeleton.currentLabel == "kick"))))){
getAction();
} else {
AI_STATE = _ATTACK;
if (((((objTarget.isEnableHit()) && ((objTarget.y < (this.y + 25))))) && ((objTarget.y > (this.y - 25))))){
if ((((objSkeleton.currentLabel == "attack_1")) && ((objSkeleton.currentFrame == 70)))){
if (getRightWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(1, (_power * 1), 100, (1 + (Math.random() * 0.5)));
};
};
if ((((objSkeleton.currentLabel == "attack_2")) && ((objSkeleton.currentFrame == 119)))){
if (getRightWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(1, (_power * 0.6), 100, (0.6 + (Math.random() * 0.6)));
};
};
if ((((objSkeleton.currentLabel == "attack_3")) && ((objSkeleton.currentFrame == 203)))){
if (getRightWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(2, (_power * 2), 100, (2 + (Math.random() * 1)));
};
};
if ((((objSkeleton.currentLabel == "attack_4")) && ((objSkeleton.currentFrame == 330)))){
if (getLeftWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(1, (_power * 0.9), 100, (1 + (Math.random() * 0.5)));
};
};
if ((((objSkeleton.currentLabel == "attack_5")) && ((objSkeleton.currentFrame == 378)))){
if (getLeftWeaponObject().hitTestObject(objTarget.getBodyBox())){
objTarget.playHit(1, (_power * 0.8), 100, (0.8 + (Math.random() * 0.8)));
};
};
if ((((objSkeleton.currentLabel == "kick")) && ((objSkeleton.currentFrame == 304)))){
if (((getLeftCalfObject().hitTestObject(objTarget.getBodyBox())) || (getLeftFootObject().hitTestObject(objTarget.getBodyBox())))){
objTarget.playHit(1, (_power * 0.4), 100, (0.4 + (Math.random() * 0.4)));
};
};
};
executeCombo();
};
snd = null;
if (objSkeleton.currentFrame == 70){
snd = new se_swing1();
snd.playSound((coreSysT.gmSound * 0.9));
};
if (objSkeleton.currentFrame == 119){
snd = new se_thurst();
snd.playSound((coreSysT.gmSound * 0.7));
};
if (objSkeleton.currentFrame == 203){
snd = new se_swing2();
snd.playSound(coreSysT.gmSound);
};
if (objSkeleton.currentFrame == 330){
snd = new se_swing1();
snd.playSound(coreSysT.gmSound);
};
if (objSkeleton.currentFrame == 378){
snd = new se_thurst();
snd.playSound((coreSysT.gmSound * 0.8));
};
if (objSkeleton.currentFrame == 304){
snd = new se_thurst();
snd.playSound((coreSysT.gmSound * 0.5));
};
}
private function AIHandle(event:Event):void{
if (coreSysT.isPaused){
return;
};
if (objTarget.x > this.x){
if ((((((((AI_STATE == _STANDING)) || ((AI_STATE == _MOVING_CLOSE)))) || ((AI_STATE == _MOVING_AWAY)))) || ((AI_STATE == _HIT)))){
if (this.scaleX > 0){
this.scaleX = -1;
};
};
} else {
if ((((((((AI_STATE == _STANDING)) || ((AI_STATE == _MOVING_CLOSE)))) || ((AI_STATE == _MOVING_AWAY)))) || ((AI_STATE == _HIT)))){
if (this.scaleX < 0){
this.scaleX = 1;
};
};
};
timeIdle = Math.max((timeIdle - 1), 0);
lifeBarShowTime = Math.max((lifeBarShowTime - 1), 0);
if (lifeBarShowTime > 0){
objLifeBar.visible = true;
objLifeBar.life.scaleX = Math.max((_health / _max_health), 0);
} else {
objLifeBar.visible = false;
};
if (isAllDestroy()){
objTarget.addScore(_score);
destroy();
return;
};
if (objSkeleton){
if (AI_STATE == _STANDING){
standIdle();
};
if (AI_STATE == _MOVING_CLOSE){
moveClose();
};
if (AI_STATE == _MOVING_AWAY){
moveAway();
};
if (AI_STATE == _ATTACK){
motionAttack();
};
if (AI_STATE == _HIT){
motionHit();
};
if (AI_STATE == _DEAD){
deadDestroy();
};
};
}
public function EnemyRank_A(){
var rand:*;
rand = Math.random();
if (rand < 0.3){
initialiseBase(coreSysT, objBGT, 1, 40);
} else {
initialiseBase(coreSysT, objBGT, 1, 22);
};
_max_health = (_health = 2500);
_power = 140;
_score = 3000;
}
public function EnemyRank_B(){
var rand:*;
rand = Math.random();
if (rand < 0.3){
initialiseBase(coreSysT, objBGT, 1, 12);
} else {
if ((((rand >= 0.3)) && ((rand < 0.7)))){
initialiseBase(coreSysT, objBGT, 1, 21);
} else {
initialiseBase(coreSysT, objBGT, 1, 31);
};
};
_max_health = (_health = 2100);
_power = 130;
_score = 2500;
}
public function EnemyRank_F(){
var rand:*;
rand = Math.random();
if (rand < 0.3){
initialiseBase(coreSysT, objBGT, 1, 1);
} else {
if ((((rand >= 0.3)) && ((rand < 0.7)))){
initialiseBase(coreSysT, objBGT, 1, 2);
} else {
initialiseBase(coreSysT, objBGT, 1, 6);
};
};
_max_health = (_health = 500);
_power = 90;
_score = 500;
}
public function EnemyRank_C(){
var rand:*;
rand = Math.random();
if (rand < 0.3){
initialiseBase(coreSysT, objBGT, 1, 11);
} else {
if ((((rand >= 0.3)) && ((rand < 0.7)))){
initialiseBase(coreSysT, objBGT, 1, 30);
} else {
initialiseBase(coreSysT, objBGT, 1, 20);
};
};
_max_health = (_health = 1800);
_power = 120;
_score = 2000;
}
public function EnemyRank_S(){
var rand:*;
rand = Math.random();
if (rand < 0.3){
initialiseBase(coreSysT, objBGT, 2, 40);
} else {
if ((((rand >= 0.3)) && ((rand < 0.7)))){
initialiseBase(coreSysT, objBGT, 2, 31);
} else {
initialiseBase(coreSysT, objBGT, 2, 21);
};
};
_max_health = (_health = 5000);
_power = 150;
_score = 5000;
}
public function EnemyRank_D(){
var rand:*;
rand = Math.random();
if (rand < 0.3){
initialiseBase(coreSysT, objBGT, 1, 8);
} else {
if ((((rand >= 0.3)) && ((rand < 0.7)))){
initialiseBase(coreSysT, objBGT, 1, 5);
} else {
initialiseBase(coreSysT, objBGT, 1, 10);
};
};
_max_health = (_health = 1500);
_power = 110;
_score = 1500;
}
public function EnemyRank_E(){
var rand:*;
rand = Math.random();
if (rand < 0.3){
initialiseBase(coreSysT, objBGT, 1, 3);
} else {
if ((((rand >= 0.3)) && ((rand < 0.7)))){
initialiseBase(coreSysT, objBGT, 1, 4);
} else {
initialiseBase(coreSysT, objBGT, 1, 7);
};
};
_max_health = (_health = 900);
_power = 100;
_score = 1000;
}
public function moveClose(){
var vx:Number;
var vy:Number;
var vlength:Number;
if (timeIdle > 0){
AI_STATE = _MOVING_CLOSE;
if (objSkeleton.currentLabel != "walk"){
objSkeleton.gotoAndPlay("walk");
};
vx = (objTarget.x - this.x);
vy = (objTarget.y - this.y);
vlength = Math.sqrt(((vx * vx) + (vy * vy)));
vx = (vx / vlength);
vy = (vy / vlength);
this.x = (this.x + (vx * _speed));
this.y = (this.y + (vy * _speed));
if (this.y < objBGT.TOP_BORDER){
this.y = objBGT.TOP_BORDER;
};
if (this.y > objBGT.BOTTOM_BORDER){
this.y = objBGT.BOTTOM_BORDER;
};
if ((((Math.abs((objTarget.x - this.x)) <= 150)) && ((Math.abs((objTarget.y - this.y)) <= 20)))){
getAction();
};
} else {
getAction();
};
}
public function initialise(){
if (objType == 2){
_speed = (2 + (Math.random() * 2));
} else {
_speed = (1.5 + (Math.random() * 1));
};
objLifeBar = new lifeBar();
this.addChild(objLifeBar);
objLifeBar.x = 0;
objLifeBar.y = -150;
objLifeBar.visible = false;
initAI();
}
public function standIdle(){
if (timeIdle > 0){
AI_STATE = _STANDING;
if (objSkeleton.currentLabel != "standby"){
objSkeleton.gotoAndPlay("standby");
};
} else {
getAction();
};
}
public function EnemyRank_SS(){
var rand:*;
rand = Math.random();
initialiseBase(coreSysT, objBGT, 2, 41);
_max_health = (_health = 10000);
_power = 200;
_score = 20000;
_NULL_CUT = true;
}
public function isActive():Boolean{
if (objSkeleton.currentLabel == "dead"){
return (false);
};
return (true);
}
public function deadDestroy(){
if (timeIdle > 0){
AI_STATE = _DEAD;
if (objSkeleton.currentLabel != "dead"){
objSkeleton.gotoAndPlay("dead");
};
} else {
destroy();
};
}
public function executeCombo():Boolean{
var retVal:*;
retVal = false;
if (objType == 2){
retVal = executeCombo1();
};
if (objType == 3){
retVal = executeCombo2();
};
return (retVal);
}
public function getAction(){
var randVal:*;
randVal = Math.random();
if (objTarget.isActive()){
if ((((Math.abs((objTarget.x - this.x)) <= 150)) && ((Math.abs((objTarget.y - this.y)) <= 20)))){
if (randVal < 0.8){
executeAttack();
trace("ATTACK");
} else {
if ((((randVal >= 0.8)) && ((randVal < 0.9)))){
AI_STATE = _MOVING_AWAY;
timeIdle = (30 + (Math.random() * 60));
trace("MOVING AWAY");
} else {
AI_STATE = _STANDING;
timeIdle = (10 + (Math.random() * 30));
trace("STANDING");
};
};
} else {
if (randVal < 0.8){
AI_STATE = _MOVING_CLOSE;
timeIdle = (200 + (Math.random() * 200));
trace("MOVING CLOSE");
} else {
AI_STATE = _STANDING;
timeIdle = (10 + (Math.random() * 30));
trace("STANDING");
};
};
} else {
AI_STATE = _STANDING;
timeIdle = 30;
};
}
public function initAI(_level:int=1, _type:int=1){
var randVal:*;
AI_LV = _level;
AI_TYPE = _type;
searchTarget();
AI_STATE = _STANDING;
getAction();
randVal = Math.random();
if (randVal < 0.5){
setPosition((objTarget.x - 700), (450 - (Math.random() * 150)));
} else {
setPosition((objTarget.x + 700), (450 - (Math.random() * 150)));
};
this.addEventListener(Event.ENTER_FRAME, AIHandle, false, 0, true);
}
public function searchTarget(){
var container:*;
var numChild:int;
var children:Array;
var i:int;
if (objTarget == null){
container = coreSysT.contFIELD;
numChild = container.numChildren;
children = new Array(numChild);
i = 0;
i = 0;
while (i < numChild) {
children[i] = container.getChildAt(i);
i++;
};
i = 0;
while (i < numChild) {
if (children[i].objType == 1){
objTarget = children[i];
return;
};
i++;
};
};
}
public function getMC():Object{
if (objSkeleton){
return (objSkeleton);
};
return (null);
}
public function motionAttack(){
if (objType == 2){
motionAttack1();
};
if (objType == 3){
motionAttack2();
};
}
public function removeAI(){
this.removeEventListener(Event.ENTER_FRAME, AIHandle);
objTarget = null;
}
public function executeAttack1():Boolean{
var randVal:*;
randVal = Math.random();
if (((isLeftArmOK()) && (isRightArmOK()))){
if (randVal < 0.3){
objSkeleton.gotoAndPlay("attack_1");
} else {
if ((((randVal >= 0.3)) && ((randVal < 0.6)))){
objSkeleton.gotoAndPlay("attack_2");
} else {
if ((((randVal >= 0.6)) && ((randVal < 0.9)))){
objSkeleton.gotoAndPlay("attack_4");
} else {
objSkeleton.gotoAndPlay("attack_3");
};
};
};
AI_STATE = _ATTACK;
return (true);
};
if (isLeftArmOK()){
if (randVal < 0.5){
objSkeleton.gotoAndPlay("attack_4");
} else {
if ((((randVal >= 0.5)) && ((randVal < 0.9)))){
objSkeleton.gotoAndPlay("attack_5");
} else {
objSkeleton.gotoAndPlay("kick");
};
};
AI_STATE = _ATTACK;
return (true);
};
if (isRightArmOK()){
if (randVal < 0.5){
objSkeleton.gotoAndPlay("attack_1");
} else {
if ((((randVal >= 0.5)) && ((randVal < 0.9)))){
objSkeleton.gotoAndPlay("attack_2");
} else {
objSkeleton.gotoAndPlay("kick");
};
};
AI_STATE = _ATTACK;
return (true);
};
if (isLegOK()){
objSkeleton.gotoAndPlay("kick");
AI_STATE = _ATTACK;
return (true);
};
return (false);
}
public function executeAttack2():Boolean{
var randVal:*;
randVal = Math.random();
if (((isLeftArmOK()) && (isRightArmOK()))){
if (randVal < 0.3){
objSkeleton.gotoAndPlay("attack_1");
} else {
if ((((randVal >= 0.3)) && ((randVal < 0.6)))){
objSkeleton.gotoAndPlay("attack_2");
} else {
objSkeleton.gotoAndPlay("attack_3");
};
};
AI_STATE = _ATTACK;
return (true);
};
if (isRightArmOK()){
objSkeleton.gotoAndPlay("attack_1");
AI_STATE = _ATTACK;
return (true);
};
if (isLeftArmOK()){
objSkeleton.gotoAndPlay("attack_2");
AI_STATE = _ATTACK;
return (true);
};
return (false);
}
public function playHit(type:int=1, dmg:int=0, yOff:int=0, effectScale:Number=1){
var snd:*;
var splashBloodEffect:*;
if (objSkeleton.currentLabel != "dead"){
hitEffect(this.x, (this.y - yOff), effectScale);
_health = Math.max((_health - dmg), 0);
snd = null;
if (_health <= 0){
objSkeleton.gotoAndPlay("dead");
snd = new se_hit3();
snd.playSound(coreSysT.gmSound);
forceBreakWeapon();
AI_STATE = _DEAD;
timeIdle = 150;
objTarget.addScore(_score);
if (objType == 2){
objTarget.addSmallKill();
} else {
objTarget.addBigKill();
};
splashBloodEffect = new Splash();
splashBloodEffect.initialise(coreSysT, this.x, this.y);
splashBloodEffect.scaleX = 3;
splashBloodEffect.scaleY = 1.5;
} else {
if (type == 1){
objSkeleton.gotoAndPlay("hit_1");
snd = new se_hit1();
snd.playSound((coreSysT.gmSound * 0.6));
};
if (type == 2){
objSkeleton.gotoAndPlay("hit_2");
snd = new se_hit1();
snd.playSound(coreSysT.gmSound);
};
if (type == 3){
objSkeleton.gotoAndPlay("hit_3");
snd = new se_hit2();
snd.playSound(coreSysT.gmSound);
};
AI_STATE = _HIT;
};
lifeBarShowTime = 30;
};
}
public function destroy(){
if (objLifeBar){
this.removeChild(objLifeBar);
};
removeAI();
destroyBase();
coreSysT = null;
objBGT = null;
trace(" cleaning enemy ..... ");
}
public function motionHit(){
if (((((!((objSkeleton.currentLabel == "hit_1"))) && (!((objSkeleton.currentLabel == "hit_2"))))) && (!((objSkeleton.currentLabel == "hit_3"))))){
getAction();
} else {
AI_STATE = _HIT;
};
}
}
}//package FZGame.Object
Section 81
//EnemyBase (FZGame.Object.EnemyBase)
package FZGame.Object {
import flash.events.*;
import flash.display.*;
import FZBase.RDCharacter.*;
import flash.geom.*;
public class EnemyBase extends Sprite {
private var objScaleX:Number;// = 1
private var objScaleY:Number;// = 1
private var _PART_RIGHT_ARM:Boolean;// = true
public var objSkeleton;// = null
private var coreSys;// = null
public var _NULL_CUT:Boolean;// = false
public var objType:int;// = 2
private var _PART_LEFT_ARM:Boolean;// = true
private var _PART_BODY:Boolean;// = true
public var ragdoll;// = null
private var objBG;// = null
public var _ZDepth:int;// = 0
private var dispCont;// = null
private var bodyType:int;// = 1
public function EnemyBase(){
objType = 2;
_ZDepth = 0;
coreSys = null;
objBG = null;
dispCont = null;
ragdoll = null;
objSkeleton = null;
objScaleX = 1;
objScaleY = 1;
bodyType = 1;
_PART_LEFT_ARM = true;
_PART_RIGHT_ARM = true;
_PART_BODY = true;
_NULL_CUT = false;
super();
}
public function getRightWeaponObject():Object{
var obj:*;
obj = ragdoll.getRightWeaponObject();
return (obj);
}
public function randomBreakHead(val:Number=0){
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_arm_head();
};
}
public function forceBreakWeapon(){
break_arm_left_weapon();
break_arm_right_weapon();
}
private function break_body_right_calf(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_right_calf();
obj = ragdoll.remove_skin_right_calf();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_calf.x, objSkeleton._right_calf.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_calf.x, objSkeleton._right_calf.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
public function getLeftCalfObject():Object{
var obj:*;
obj = ragdoll.getLeftCalfObject();
return (obj);
}
private function break_body_upperbody(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_upperbody();
obj = ragdoll.remove_skin_upperbody();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._upperbody.x, objSkeleton._upperbody.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._upperbody.x, objSkeleton._upperbody.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
public function initialiseBase(_coreSys, _objBG, _bodytype:int=1, _armortype:int=1){
coreSys = _coreSys;
objBG = _objBG;
dispCont = coreSys.contFIELD;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = -10000;
this.y = 0;
if (_bodytype == 1){
objSkeleton = new enemy_mc();
} else {
objSkeleton = new enemy_boss_mc();
objType = 3;
};
ragdoll = new RDHumanClass();
ragdoll.create(this, objSkeleton);
if (_bodytype == 1){
ragdoll.setBody(new head01(), new upperbody01(), new lowerbody01(), new left_upperarm01(), new left_forearm01(), new left_hand01(), new right_upperarm01(), new right_forearm01(), new right_hand01(), new left_thigh01(), new left_calf01(), new left_foot01(), new right_thigh01(), new right_calf01(), new right_foot01());
} else {
ragdoll.setBody(new head02(), new upperbody02(), new lowerbody02(), new left_upperarm02(), new left_forearm02(), new left_hand02(), new right_upperarm02(), new right_forearm02(), new right_hand02(), new left_thigh02(), new left_calf02(), new left_foot02(), new right_thigh02(), new right_calf02(), new right_foot02());
};
if (_armortype == 1){
ragdoll.setArmor(null, new bodyarmor_upper07(), new bodyarmor_lower07(), new bodyarmor_leftupperarm07(), new glove_leftforearm07(), new glove_lefthand07(), null, new glove_rightforearm07(), null, new bodyarmor_leftthigh07(), new boot_leftcalf07(), new boot_leftfoot07(), new bodyarmor_rightthigh07(), new boot_rightcalf07(), new boot_rightfoot07());
ragdoll.setWeapon(null, new wpn_blade01());
};
if (_armortype == 2){
ragdoll.setArmor(new head_helmet05(), new bodyarmor_upper05(), new bodyarmor_lower05(), new bodyarmor_leftupperarm05(), new glove_leftforearm05(), null, new bodyarmor_rightupperarm05(), new glove_rightforearm05(), new glove_righthand05(), new bodyarmor_leftthigh05(), new boot_leftcalf05(), new boot_leftfoot05(), new bodyarmor_rightthigh05(), new boot_rightcalf05(), new boot_rightfoot05());
ragdoll.setWeapon(null, new wpn_blade01());
};
if (_armortype == 3){
ragdoll.setArmor(null, new bodyarmor_upper05(), new bodyarmor_lower05(), new bodyarmor_leftupperarm05(), new glove_leftforearm05(), null, new bodyarmor_rightupperarm05(), new glove_rightforearm05(), new glove_righthand05(), new bodyarmor_leftthigh05(), new boot_leftcalf05(), new boot_leftfoot05(), new bodyarmor_rightthigh05(), new boot_rightcalf05(), new boot_rightfoot05());
ragdoll.setWeapon(null, new wpn_blade03());
};
if (_armortype == 4){
ragdoll.setArmor(new head_helmet06(), new bodyarmor_upper06(), new bodyarmor_lower06(), new bodyarmor_leftupperarm06(), new glove_leftforearm06(), new glove_lefthand06(), new bodyarmor_rightupperarm06(), new glove_rightforearm06(), null, new bodyarmor_leftthigh06(), new boot_leftcalf06(), new boot_leftfoot06(), new bodyarmor_rightthigh06(), new boot_rightcalf06(), new boot_rightfoot06());
ragdoll.setWeapon(null, new wpn_blade04());
};
if (_armortype == 5){
ragdoll.setArmor(new head_helmet06(), new bodyarmor_upper06(), new bodyarmor_lower06(), new bodyarmor_leftupperarm06(), new glove_leftforearm06(), new glove_lefthand06(), new bodyarmor_rightupperarm06(), new glove_rightforearm06(), null, new bodyarmor_leftthigh06(), new boot_leftcalf06(), new boot_leftfoot06(), new bodyarmor_rightthigh06(), new boot_rightcalf06(), new boot_rightfoot06());
ragdoll.setWeapon(new wpn_blade04(), new wpn_blade04());
};
if (_armortype == 6){
ragdoll.setArmor(new head_helmet07(), new bodyarmor_upper07(), new bodyarmor_lower07(), new bodyarmor_leftupperarm07(), new glove_leftforearm07(), new glove_lefthand07(), null, new glove_rightforearm07(), null, new bodyarmor_leftthigh07(), new boot_leftcalf07(), new boot_leftfoot07(), new bodyarmor_rightthigh07(), new boot_rightcalf07(), new boot_rightfoot07());
ragdoll.setWeapon(null, new wpn_blade01());
};
if (_armortype == 7){
ragdoll.setArmor(new head_helmet07(), new bodyarmor_upper07(), new bodyarmor_lower07(), new bodyarmor_leftupperarm07(), new glove_leftforearm07(), new glove_lefthand07(), null, new glove_rightforearm07(), null, new bodyarmor_leftthigh07(), new boot_leftcalf07(), new boot_leftfoot07(), new bodyarmor_rightthigh07(), new boot_rightcalf07(), new boot_rightfoot07());
ragdoll.setWeapon(new wpn_blade01(), new wpn_blade01());
};
if (_armortype == 8){
ragdoll.setArmor(new head_helmet07(), new bodyarmor_upper07(), new bodyarmor_lower07(), new bodyarmor_leftupperarm07(), new glove_leftforearm07(), new glove_lefthand07(), null, new glove_rightforearm07(), null, new bodyarmor_leftthigh07(), new boot_leftcalf07(), new boot_leftfoot07(), new bodyarmor_rightthigh07(), new boot_rightcalf07(), new boot_rightfoot07());
ragdoll.setWeapon(new wpn_blade03(), new wpn_blade03());
};
if (_armortype == 10){
ragdoll.setArmor(new head_helmet01(), new bodyarmor_upper01(), new bodyarmor_lower01(), new bodyarmor_leftupperarm01(), new glove_leftforearm01(), new glove_lefthand01(), null, new glove_rightforearm01(), null, new bodyarmor_leftthigh01(), new boot_leftcalf01(), new boot_leftfoot01(), new bodyarmor_rightthigh01(), new boot_rightcalf01(), new boot_rightfoot01());
ragdoll.setWeapon(null, new wpn_blade02());
};
if (_armortype == 11){
ragdoll.setArmor(null, new bodyarmor_upper01(), new bodyarmor_lower01(), new bodyarmor_leftupperarm01(), new glove_leftforearm01(), new glove_lefthand01(), null, new glove_rightforearm01(), null, new bodyarmor_leftthigh01(), new boot_leftcalf01(), new boot_leftfoot01(), new bodyarmor_rightthigh01(), new boot_rightcalf01(), new boot_rightfoot01());
ragdoll.setWeapon(new wpn_blade01(), new wpn_blade01());
};
if (_armortype == 12){
ragdoll.setArmor(new head_helmet01(), new bodyarmor_upper01(), new bodyarmor_lower01(), new bodyarmor_leftupperarm01(), new glove_leftforearm01(), new glove_lefthand01(), null, new glove_rightforearm01(), null, new bodyarmor_leftthigh01(), new boot_leftcalf01(), new boot_leftfoot01(), new bodyarmor_rightthigh01(), new boot_rightcalf01(), new boot_rightfoot01());
ragdoll.setWeapon(new wpn_blade07(), new wpn_blade07());
};
if (_armortype == 20){
ragdoll.setArmor(new head_helmet02(), new bodyarmor_upper02(), new bodyarmor_lower02(), new bodyarmor_leftupperarm02(), new glove_leftforearm02(), new glove_lefthand02(), null, new glove_rightforearm02(), new glove_righthand02(), new bodyarmor_leftthigh02(), new boot_leftcalf02(), new boot_leftfoot02(), new bodyarmor_rightthigh02(), new boot_rightcalf02(), new boot_rightfoot02());
ragdoll.setWeapon(null, new wpn_blade05());
};
if (_armortype == 21){
ragdoll.setArmor(new head_helmet02(), new bodyarmor_upper02(), new bodyarmor_lower02(), new bodyarmor_leftupperarm02(), new glove_leftforearm02(), new glove_lefthand02(), null, new glove_rightforearm02(), new glove_righthand02(), new bodyarmor_leftthigh02(), new boot_leftcalf02(), new boot_leftfoot02(), new bodyarmor_rightthigh02(), new boot_rightcalf02(), new boot_rightfoot02());
ragdoll.setWeapon(new wpn_blade05(), new wpn_blade05());
};
if (_armortype == 22){
ragdoll.setArmor(new head_helmet02(), new bodyarmor_upper02(), new bodyarmor_lower02(), new bodyarmor_leftupperarm02(), new glove_leftforearm02(), new glove_lefthand02(), null, new glove_rightforearm02(), new glove_righthand02(), new bodyarmor_leftthigh02(), new boot_leftcalf02(), new boot_leftfoot02(), new bodyarmor_rightthigh02(), new boot_rightcalf02(), new boot_rightfoot02());
ragdoll.setWeapon(new wpn_blade07(), new wpn_blade07());
};
if (_armortype == 30){
ragdoll.setArmor(new head_helmet03(), new bodyarmor_upper03(), new bodyarmor_lower03(), new bodyarmor_leftupperarm03(), new glove_leftforearm03(), new glove_lefthand03(), new bodyarmor_rightupperarm03(), new glove_rightforearm03(), new glove_righthand03(), new bodyarmor_leftthigh03(), new boot_leftcalf03(), new boot_leftfoot03(), new bodyarmor_rightthigh03(), new boot_rightcalf03(), new boot_rightfoot03());
ragdoll.setWeapon(null, new wpn_blade06());
};
if (_armortype == 31){
ragdoll.setArmor(new head_helmet03(), new bodyarmor_upper03(), new bodyarmor_lower03(), new bodyarmor_leftupperarm03(), new glove_leftforearm03(), new glove_lefthand03(), new bodyarmor_rightupperarm03(), new glove_rightforearm03(), new glove_righthand03(), new bodyarmor_leftthigh03(), new boot_leftcalf03(), new boot_leftfoot03(), new bodyarmor_rightthigh03(), new boot_rightcalf03(), new boot_rightfoot03());
ragdoll.setWeapon(new wpn_blade02(), new wpn_blade06());
};
if (_armortype == 40){
ragdoll.setArmor(new head_helmet04(), new bodyarmor_upper04(), new bodyarmor_lower04(), new bodyarmor_leftupperarm04(), new glove_leftforearm04(), new glove_lefthand04(), new bodyarmor_rightupperarm04(), new glove_rightforearm04(), null, new bodyarmor_leftthigh04(), new boot_leftcalf04(), new boot_leftfoot04(), new bodyarmor_rightthigh04(), new boot_rightcalf04(), new boot_rightfoot04());
ragdoll.setWeapon(null, new wpn_blade08());
};
if (_armortype == 41){
ragdoll.setArmor(new head_helmet04(), new bodyarmor_upper04(), new bodyarmor_lower04(), new bodyarmor_leftupperarm04(), new glove_leftforearm04(), new glove_lefthand04(), new bodyarmor_rightupperarm04(), new glove_rightforearm04(), null, new bodyarmor_leftthigh04(), new boot_leftcalf04(), new boot_leftfoot04(), new bodyarmor_rightthigh04(), new boot_rightcalf04(), new boot_rightfoot04());
ragdoll.setWeapon(new wpn_blade08(), new wpn_blade08());
};
this.addEventListener(Event.ENTER_FRAME, enemyHandle, false, 0, true);
}
private function break_arm_left_forearm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_left_forearm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_forearm.x, objSkeleton._left_forearm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_forearm.x, objSkeleton._left_forearm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_body_left_forearm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_left_forearm();
obj = ragdoll.remove_skin_left_forearm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_forearm.x, objSkeleton._left_forearm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_forearm.x, objSkeleton._left_forearm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function break_arm_left_calf(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_left_calf();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_calf.x, objSkeleton._left_calf.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_calf.x, objSkeleton._left_calf.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_body_right_foot(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_right_foot();
obj = ragdoll.remove_skin_right_foot();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
public function bloodEffect(_X:int, _Y:int){
var i:int;
var num:int;
var blood:Array;
var angle:int;
i = 1;
num = (20 + (Math.random() * 10));
blood = new Array(num);
angle = 0;
i = 0;
while (i < num) {
if (this.scaleX > 0){
angle = (-180 + (Math.random() * 80));
} else {
angle = (0 + (Math.random() * -80));
};
blood[i] = new Blood();
blood[i].initialise(coreSys, _X, _Y, (this.y + 1), angle, (4 + (Math.random() * 6)));
i++;
};
randomCutSound();
}
private function break_body_right_hand(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_right_weapon();
break_arm_right_hand();
obj = ragdoll.remove_skin_right_hand();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_hand.x, objSkeleton._right_hand.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_hand.x, objSkeleton._right_hand.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function break_body_right_upperarm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_right_upperarm();
obj = ragdoll.remove_skin_right_upperarm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_upperarm.x, objSkeleton._right_upperarm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_upperarm.x, objSkeleton._right_upperarm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function break_arm_left_foot(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_left_foot();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_foot.x, objSkeleton._left_foot.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_foot.x, objSkeleton._left_foot.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_arm_left_hand(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_left_hand();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_hand.x, objSkeleton._left_hand.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_hand.x, objSkeleton._left_hand.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function randomLeftArmCut(val:Number=0){
if (_NULL_CUT){
return;
};
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_body_left_hand();
break_body_left_forearm();
break_body_left_upperarm();
_PART_LEFT_ARM = false;
};
}
private function break_body_right_thigh(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_right_thigh();
obj = ragdoll.remove_skin_right_thigh();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_thigh.x, objSkeleton._right_thigh.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_thigh.x, objSkeleton._right_thigh.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function break_body_right_forearm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_right_forearm();
obj = ragdoll.remove_skin_right_forearm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_forearm.x, objSkeleton._right_forearm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_forearm.x, objSkeleton._right_forearm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function break_body_left_calf(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_left_calf();
obj = ragdoll.remove_skin_left_calf();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_calf.x, objSkeleton._left_calf.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_calf.x, objSkeleton._left_calf.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function randomBreakSound(){
var snd:*;
var randVal:*;
snd = null;
randVal = Math.random();
if (randVal < 0.8){
if (Math.random() < 0.3){
snd = new se_break1();
} else {
if ((((Math.random() >= 0.3)) && ((Math.random() < 0.6)))){
snd = new se_break2();
} else {
snd = new se_break3();
};
};
snd.playSound(coreSys.gmSound);
};
}
public function randomBreakLeg(val:Number=0){
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_arm_left_thigh();
};
if (Math.random() <= val){
break_arm_left_calf();
};
if (Math.random() <= val){
break_arm_left_foot();
};
if (Math.random() <= val){
break_arm_right_thigh();
};
if (Math.random() <= val){
break_arm_right_calf();
};
if (Math.random() <= val){
break_arm_right_foot();
};
}
private function break_body_left_foot(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_left_foot();
obj = ragdoll.remove_skin_left_foot();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_foot.x, objSkeleton._left_foot.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_foot.x, objSkeleton._left_foot.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function break_body_left_hand(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_left_weapon();
break_arm_left_hand();
obj = ragdoll.remove_skin_left_hand();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_hand.x, objSkeleton._left_hand.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_hand.x, objSkeleton._left_hand.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
public function getBodyBox():Object{
return (objSkeleton.bodyBox);
}
public function randomBreakArmor(val:Number=0){
randomBreakHead(val);
randomBreakBody(val);
randomBreakArm(val);
randomBreakLeg(val);
}
private function break_arm_left_weapon(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_wpn_left_hand();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function randomRightArmCut(val:Number=0){
if (_NULL_CUT){
return;
};
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_body_right_hand();
break_body_right_forearm();
break_body_right_upperarm();
_PART_RIGHT_ARM = false;
};
}
public function randomBreakArm(val:Number=0){
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_arm_left_upperarm();
};
if (Math.random() <= val){
break_arm_left_forearm();
};
if (Math.random() <= val){
break_arm_left_hand();
};
if (Math.random() <= val){
break_arm_right_upperarm();
};
if (Math.random() <= val){
break_arm_right_forearm();
};
if (Math.random() <= val){
break_arm_right_hand();
};
}
private function break_arm_lowerbody(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_lowerbody();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._lowerbody.x, objSkeleton._lowerbody.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._lowerbody.x, objSkeleton._lowerbody.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_arm_left_thigh(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_left_thigh();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_thigh.x, objSkeleton._left_thigh.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_thigh.x, objSkeleton._left_thigh.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_arm_right_upperarm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_right_upperarm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_upperarm.x, objSkeleton._right_upperarm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_upperarm.x, objSkeleton._right_upperarm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function randomBodyCut(val:Number=0){
if (_NULL_CUT){
return;
};
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_body_head();
break_body_upperbody();
break_body_left_upperarm();
break_body_left_forearm();
break_body_left_hand();
break_body_right_upperarm();
break_body_right_forearm();
break_body_right_hand();
_PART_LEFT_ARM = false;
_PART_RIGHT_ARM = false;
};
}
public function playStand(){
objSkeleton.gotoAndPlay("standby");
}
public function hitEffect(_X:int, _Y:int, _SCALE:Number=1){
var splat:*;
splat = new Hit();
splat.initialise(coreSys, _X, _Y, (this.y + 1), _SCALE);
if (Math.random() < 0.6){
bloodEffect(_X, _Y);
};
}
private function break_body_lowerbody(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_lowerbody();
obj = ragdoll.remove_skin_lowerbody();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._lowerbody.x, objSkeleton._lowerbody.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._lowerbody.x, objSkeleton._lowerbody.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
public function playAttack1():Boolean{
if (_PART_RIGHT_ARM){
objSkeleton.gotoAndPlay("attack_1");
};
return (_PART_RIGHT_ARM);
}
public function playAttack3():Boolean{
if (((_PART_RIGHT_ARM) && (_PART_LEFT_ARM))){
objSkeleton.gotoAndPlay("attack_3");
};
return (((_PART_RIGHT_ARM) && (_PART_LEFT_ARM)));
}
public function playAttack5():Boolean{
if (_PART_LEFT_ARM){
objSkeleton.gotoAndPlay("attack_5");
};
return (_PART_LEFT_ARM);
}
private function break_arm_right_forearm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_right_forearm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_forearm.x, objSkeleton._right_forearm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_forearm.x, objSkeleton._right_forearm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_body_left_upperarm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_left_upperarm();
obj = ragdoll.remove_skin_left_upperarm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_upperarm.x, objSkeleton._left_upperarm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_upperarm.x, objSkeleton._left_upperarm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
private function break_arm_head(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_head();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._head.x, objSkeleton._head.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._head.x, objSkeleton._head.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function playAttack2():Boolean{
if (_PART_RIGHT_ARM){
objSkeleton.gotoAndPlay("attack_2");
};
return (_PART_RIGHT_ARM);
}
private function break_body_head(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_head();
obj = ragdoll.remove_skin_head();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._head.x, objSkeleton._head.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._head.x, objSkeleton._head.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
public function playAttack4():Boolean{
if (_PART_LEFT_ARM){
objSkeleton.gotoAndPlay("attack_4");
};
return (_PART_LEFT_ARM);
}
public function randomBreakWeapon(val:Number=0){
if (_NULL_CUT){
return;
};
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_arm_left_weapon();
_PART_LEFT_ARM = false;
};
if (Math.random() <= val){
break_arm_right_weapon();
_PART_RIGHT_ARM = false;
};
}
public function isRightArmOK():Boolean{
var wpnFlag:Boolean;
wpnFlag = false;
if (getRightWeaponObject() != null){
wpnFlag = true;
};
return (((_PART_RIGHT_ARM) && (wpnFlag)));
}
private function break_body_left_thigh(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
break_arm_left_thigh();
obj = ragdoll.remove_skin_left_thigh();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_thigh.x, objSkeleton._left_thigh.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_thigh.x, objSkeleton._left_thigh.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY, 2);
bloodEffect(posX, posY);
};
}
public function instantBreakAllBody(val:Number=0){
if (_NULL_CUT){
return;
};
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_body_head();
break_body_upperbody();
break_body_lowerbody();
break_body_left_upperarm();
break_body_left_forearm();
break_body_left_hand();
break_body_right_upperarm();
break_body_right_forearm();
break_body_right_hand();
break_body_left_thigh();
break_body_left_calf();
break_body_left_foot();
break_body_right_thigh();
break_body_right_calf();
break_body_right_foot();
_PART_BODY = false;
_PART_LEFT_ARM = false;
_PART_RIGHT_ARM = false;
};
}
public function isLeftArmOK():Boolean{
var wpnFlag:Boolean;
wpnFlag = false;
if (getLeftWeaponObject() != null){
wpnFlag = true;
};
return (((_PART_LEFT_ARM) && (wpnFlag)));
}
public function isLegOK():Boolean{
if ((((isLeftArmOK() == false)) && ((isRightArmOK() == false)))){
if (getLeftCalfObject() != null){
return (true);
};
};
return (false);
}
private function break_arm_right_thigh(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_right_thigh();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_thigh.x, objSkeleton._right_thigh.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_thigh.x, objSkeleton._right_thigh.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function getLeftWeaponObject():Object{
var obj:*;
obj = ragdoll.getLeftWeaponObject();
return (obj);
}
public function playKick(){
objSkeleton.gotoAndPlay("kick");
}
private function break_arm_right_calf(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_right_calf();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_calf.x, objSkeleton._right_calf.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_calf.x, objSkeleton._right_calf.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function getLeftFootObject():Object{
var obj:*;
obj = ragdoll.getLeftFootObject();
return (obj);
}
public function setPosition(_X:int, _Y:int){
this.x = _X;
this.y = _Y;
}
public function playMoveAway(){
objSkeleton.gotoAndPlay("walk2");
}
private function break_arm_right_foot(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_right_foot();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_arm_right_hand(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_right_hand();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_hand.x, objSkeleton._right_hand.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_hand.x, objSkeleton._right_hand.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function randomBreakBody(val:Number=0){
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_arm_upperbody();
};
if (Math.random() <= val){
break_arm_lowerbody();
};
}
public function breakPartEffect(_X:int, _Y:int){
var i:int;
var num:int;
var light:Array;
var angle:int;
i = 1;
num = (10 + (Math.random() * 10));
light = new Array(num);
angle = 0;
i = 0;
while (i < num) {
if (this.scaleX > 0){
angle = (-220 + (Math.random() * 90));
} else {
angle = (40 + (Math.random() * -90));
};
light[i] = new Light();
light[i].initialise(coreSys, _X, _Y, (this.y + 1), angle, (10 + (Math.random() * 20)));
i++;
};
randomBreakSound();
}
private function break_arm_left_upperarm(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_left_upperarm();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._left_upperarm.x, objSkeleton._left_upperarm.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._left_upperarm.x, objSkeleton._left_upperarm.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function randomCutSound(){
var snd:*;
var randVal:*;
snd = null;
randVal = Math.random();
if (randVal < 0.8){
if (Math.random() < 0.3){
snd = new se_cut1();
} else {
if ((((Math.random() >= 0.3)) && ((Math.random() < 0.6)))){
snd = new se_cut2();
} else {
snd = new se_cut3();
};
};
snd.playSound(coreSys.gmSound);
};
}
public function playMoveClose(){
objSkeleton.gotoAndPlay("walk");
}
private function enemyHandle(event:Event):void{
if (coreSys.isPaused){
return;
};
if (objSkeleton.currentLabel == "hit_1"){
if (this.scaleX > 0){
this.x = (this.x + 0.5);
} else {
this.x = (this.x - 0.5);
};
};
if (objSkeleton.currentLabel == "hit_2"){
if (this.scaleX > 0){
this.x = (this.x + 1);
} else {
this.x = (this.x - 1);
};
};
if (objSkeleton.currentLabel == "hit_3"){
if (this.scaleX > 0){
this.x = (this.x + 1.5);
} else {
this.x = (this.x - 1.5);
};
};
_ZDepth = this.y;
}
private function break_arm_upperbody(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_arm_upperbody();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._upperbody.x, objSkeleton._upperbody.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._upperbody.x, objSkeleton._upperbody.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
private function break_arm_right_weapon(){
var obj:*;
var part:*;
var posX:int;
var posY:int;
obj = ragdoll.remove_wpn_right_hand();
if (obj){
part = new Part();
posX = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).x;
posY = objSkeleton.localToGlobal(new Point(objSkeleton._right_foot.x, objSkeleton._right_foot.y)).y;
posX = (posX + (0 - coreSys.contSCROLL.x));
part.initialise(coreSys, obj, posX, posY, this.y, objScaleX, objScaleY);
breakPartEffect(posX, posY);
};
}
public function isAllDestroy():Boolean{
if (_PART_BODY){
return (false);
};
return (true);
}
public function destroyBase(){
this.removeEventListener(Event.ENTER_FRAME, enemyHandle);
ragdoll.remove();
objSkeleton = null;
dispCont.removeChild(this);
dispCont = null;
coreSys = null;
objBG = null;
}
public function randomHeadCut(val:Number=0){
if (_NULL_CUT){
return;
};
if (objType == 3){
val = (val * 0.5);
};
if (Math.random() <= val){
break_body_head();
};
}
}
}//package FZGame.Object
Section 82
//Hit (FZGame.Object.Hit)
package FZGame.Object {
import flash.events.*;
import flash.display.*;
public class Hit extends MovieClip {
private var dispCont;// = null
public var _ZDepth:int;// = 0
private var coreSys;// = null
private var objMC;// = null
public var objType:int;// = 77
public function Hit(){
objType = 77;
_ZDepth = 0;
coreSys = null;
dispCont = null;
objMC = null;
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, hitHandle);
this.removeChild(objMC);
objMC = null;
dispCont.removeChild(this);
dispCont = null;
coreSys = null;
}
private function hitHandle(event:Event):void{
if (coreSys.isPaused){
objMC.stop();
return;
};
objMC.play();
if (objMC.currentFrame == objMC.totalFrames){
destroy();
};
}
public function initialise(_coreSys, _X:int=0, _Y:int=0, _Z:int=0, _SCALE:Number=1){
coreSys = _coreSys;
dispCont = coreSys.contFIELD;
_ZDepth = (_Z + 1);
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _X;
this.y = _Y;
this.scaleX = _SCALE;
this.scaleY = _SCALE;
objMC = new hit_effect();
this.addChild(objMC);
this.addEventListener(Event.ENTER_FRAME, hitHandle, false, 0, true);
}
}
}//package FZGame.Object
Section 83
//Light (FZGame.Object.Light)
package FZGame.Object {
import flash.events.*;
import flash.display.*;
public class Light extends Sprite {
private var dispCont;// = null
private var _TIMEUP:int;// = 300
private var _VY:Number;// = 0
private var _VX:Number;// = 0
private var _FRICTION:Number;// = 0.98
private var _BOUNCE:Number;// = -0.7
public var _ZDepth:int;// = 0
private var coreSys;// = null
private var objMC;// = null
public var objType:int;// = 66
private var _FLOOR:Number;// = 0
private var _GRAVITY:Number;// = 0.3
public function Light(){
objType = 66;
_ZDepth = 0;
coreSys = null;
dispCont = null;
objMC = null;
_FRICTION = 0.98;
_GRAVITY = 0.3;
_BOUNCE = -0.7;
_VX = 0;
_VY = 0;
_FLOOR = 0;
_TIMEUP = 300;
super();
}
public function initialise(_coreSys, _X:int=0, _Y:int=0, _Z:int=0, _ANGLE:Number=0, _VELOCITY:Number=0){
coreSys = _coreSys;
dispCont = coreSys.contFIELD;
_ZDepth = (_Z + 1);
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _X;
this.y = _Y;
this.rotation = _ANGLE;
objMC = new slash_effect();
this.addChild(objMC);
_VX = Math.cos(((_ANGLE * Math.PI) / 180));
_VY = Math.sin(((_ANGLE * Math.PI) / 180));
_VX = (_VELOCITY * _VX);
_VY = (_VELOCITY * _VY);
_FLOOR = _ZDepth;
_FRICTION = 0.98;
_GRAVITY = 0.3;
_TIMEUP = (10 + (Math.random() * 30));
this.addEventListener(Event.ENTER_FRAME, lightHandle, false, 0, true);
}
private function lightHandle(event:Event):void{
if (coreSys.isPaused){
return;
};
if (this.y > _FLOOR){
this.y = _FLOOR;
_VY = (_VY * _BOUNCE);
} else {
_VX = (_VX * _FRICTION);
_VY = (_VY + _GRAVITY);
this.x = (this.x + _VX);
this.y = (this.y + _VY);
this.rotation = ((Math.atan2(_VY, _VX) * 180) / Math.PI);
};
_TIMEUP = Math.max((_TIMEUP - 1), 0);
if (_TIMEUP <= 0){
destroy();
};
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, lightHandle);
this.removeChild(objMC);
objMC = null;
dispCont.removeChild(this);
dispCont = null;
coreSys = null;
}
}
}//package FZGame.Object
Section 84
//Part (FZGame.Object.Part)
package FZGame.Object {
import flash.events.*;
import flash.display.*;
public class Part extends Sprite {
private var dispCont;// = null
private var _VR:Number;// = 0
private var _TIMEUP:int;// = 300
private var _VY:Number;// = 0
private var _VX:Number;// = 0
private var _FRICTION:Number;// = 0.98
public var _ZDepth:int;// = 0
private var coreSys;// = null
private var objMC;// = null
public var objType:int;// = 10
private var splashBlood:Boolean;// = false
private var _FLOOR:Number;// = 0
private var _GRAVITY:Number;// = 0.3
public function Part(){
objType = 10;
_ZDepth = 0;
coreSys = null;
dispCont = null;
objMC = null;
_FRICTION = 0.98;
_GRAVITY = 0.3;
_VX = 0;
_VY = 0;
_VR = 0;
_FLOOR = 0;
_TIMEUP = 300;
splashBlood = false;
super();
}
private function partHandle(event:Event):void{
var splashBloodEffect:*;
if (coreSys.isPaused){
return;
};
if (this.y > _FLOOR){
this.y = _FLOOR;
_VY = 0;
_GRAVITY = 0;
_VX = 0;
_VR = 0;
_FRICTION = 0;
this.removeEventListener(Event.ENTER_FRAME, partHandle);
this.addEventListener(Event.ENTER_FRAME, timeUpHandle, false, 0, true);
_TIMEUP = (200 + (Math.random() * 200));
if (splashBlood){
splashBloodEffect = new Splash();
splashBloodEffect.initialise(coreSys, this.x, this.y);
};
} else {
_VX = (_VX * _FRICTION);
_VY = (_VY + _GRAVITY);
_VR = (_VR * _FRICTION);
this.x = (this.x + _VX);
this.y = (this.y + _VY);
this.rotation = (this.rotation + _VR);
};
}
private function timeUpHandle(event:Event):void{
_TIMEUP = Math.max((_TIMEUP - 1), 0);
if (_TIMEUP <= 0){
this.removeEventListener(Event.ENTER_FRAME, timeUpHandle);
destroy();
};
}
public function setFlying(){
var num:int;
num = 1;
if (Math.random() < 0.5){
num = -1;
};
_VX = ((5 + (Math.random() * 4)) * num);
_VY = -((10 + (Math.random() * 4)));
_VR = ((20 + (Math.random() * 20)) * num);
_FLOOR = _ZDepth;
_FRICTION = 0.97;
_GRAVITY = 0.9;
this.addEventListener(Event.ENTER_FRAME, partHandle, false, 0, true);
}
public function initialise(_coreSys, _objMC, _X:int=0, _Y:int=0, _Z:int=0, _scaleX:Number=1, _scaleY:Number=1, _TYPE:int=1){
coreSys = _coreSys;
dispCont = coreSys.contFIELD;
_ZDepth = ((_Z - 10) + (Math.random() * 20));
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _X;
this.y = _Y;
this.scaleX = _scaleX;
this.scaleY = _scaleY;
objMC = _objMC;
this.addChild(objMC);
if (_TYPE > 1){
splashBlood = true;
};
setFlying();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, timeUpHandle);
this.removeEventListener(Event.ENTER_FRAME, partHandle);
this.removeChild(objMC);
objMC = null;
dispCont.removeChild(this);
dispCont = null;
coreSys = null;
}
}
}//package FZGame.Object
Section 85
//Player (FZGame.Object.Player)
package FZGame.Object {
import flash.display.*;
public class Player extends Sprite {
const _MO_LEFT = 1;
const _WALK_UP = 3;
const _WALK_RIGHT = 2;
const _WALK_DOWN = 4;
public var _break:Number;// = 1
public var _power:int;// = 100
public var _run_speed:Number;// = 8
private var dispCont;// = null
public var _max_health:int;// = 1000
private var _overdrive_regen_counter:int;// = 0
private var _health_regen_counter:int;// = 0
private var _walk_frame_input:int;// = 10
private var objBG;// = null
public var _health:int;// = 1000
public var _health_regen:int;// = 5
public var _ZDepth:int;// = 0
private var coreSys;// = null
public var _overdrive:int;// = 0
private var objMC;// = null
public var objType:int;// = 1
public var _overdrive_regen:int;// = 5
public var _walk_speed:Number;// = 3
private var objMenu;// = null
public function Player(){
objType = 1;
_ZDepth = 0;
coreSys = null;
dispCont = null;
objMenu = null;
objBG = null;
objMC = null;
_max_health = 1000;
_health = 1000;
_overdrive = 0;
_power = 100;
_break = 1;
_walk_speed = 3;
_run_speed = 8;
_health_regen = 5;
_overdrive_regen = 5;
_walk_frame_input = 10;
_health_regen_counter = 0;
_overdrive_regen_counter = 0;
super();
}
private function attackAnimHandle(){
var snd:*;
if (objMC.currentLabel == "basic_slash"){
if ((((objMC.currentFrame >= 441)) && ((objMC.currentFrame <= 445)))){
if (this.scaleX == -1){
this.x = (this.x - 2);
adjustScreenPos(-2);
} else {
this.x = (this.x + 2);
adjustScreenPos(2);
};
};
};
if (objMC.currentLabel == "run_slash"){
if ((((objMC.currentFrame >= 80)) && ((objMC.currentFrame <= 98)))){
if (this.scaleX == -1){
this.x = (this.x - 6);
adjustScreenPos(-6);
} else {
this.x = (this.x + 6);
adjustScreenPos(6);
};
};
};
if (objMC.currentLabel == "upper_slash"){
if ((((objMC.currentFrame >= 486)) && ((objMC.currentFrame <= 498)))){
if (this.scaleX == -1){
this.x = (this.x - 3);
adjustScreenPos(-3);
} else {
this.x = (this.x + 3);
adjustScreenPos(3);
};
};
};
if (objMC.currentLabel == "ground_combo"){
if ((((objMC.currentFrame >= 133)) && ((objMC.currentFrame <= 155)))){
if (this.scaleX == -1){
this.x = (this.x - 4);
adjustScreenPos(-4);
} else {
this.x = (this.x + 4);
adjustScreenPos(4);
};
};
};
if (objMC.currentLabel == "scorpion_combo"){
if ((((objMC.currentFrame >= 330)) && ((objMC.currentFrame <= 332)))){
if (this.scaleX == -1){
this.x = (this.x - 1.5);
adjustScreenPos(-1.5);
} else {
this.x = (this.x + 1.5);
adjustScreenPos(1.5);
};
};
};
if (objMC.currentLabel == "somesault_attack"){
if ((((objMC.currentFrame >= 232)) && ((objMC.currentFrame <= 263)))){
if (this.scaleX == -1){
this.x = (this.x - 5);
adjustScreenPos(-5);
} else {
this.x = (this.x + 5);
adjustScreenPos(5);
};
};
};
if (objMC.currentLabel == "fatal_stab"){
if ((((objMC.currentFrame >= 363)) && ((objMC.currentFrame <= 389)))){
if (this.scaleX == -1){
this.x = (this.x - 2);
adjustScreenPos(-2);
} else {
this.x = (this.x + 2);
adjustScreenPos(2);
};
};
};
snd = null;
if (objMC.currentFrame == 81){
snd = new se_jump();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 98){
snd = new se_swing1();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 99){
snd = new se_landing();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 134){
snd = new se_swing1();
snd.playSound((coreSys.gmSound * 0.4));
};
if (objMC.currentFrame == 156){
snd = new se_swing1();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 189){
snd = new se_wave();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 234){
snd = new se_jump();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 248){
snd = new se_jump();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 264){
snd = new se_landing();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 262){
snd = new se_swing1();
snd.playSound((coreSys.gmSound * 0.8));
};
if (objMC.currentFrame == 520){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 526){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 532){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 539){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 300){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 310){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 325){
snd = new se_swing1();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 440){
snd = new se_swing1();
snd.playSound((coreSys.gmSound * 0.5));
};
if (objMC.currentFrame == 363){
snd = new se_jump();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 392){
snd = new se_thurst();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 473){
snd = new se_swing1();
snd.playSound((coreSys.gmSound * 0.7));
};
if (objMC.currentFrame == 491){
snd = new se_swing1();
snd.playSound((coreSys.gmSound * 0.9));
};
if (objMC.currentFrame == 497){
snd = new se_landing();
snd.playSound((coreSys.gmSound * 0.8));
};
if (objMC.currentFrame == 590){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.9));
};
if (objMC.currentFrame == 590){
snd = new se_thurst();
snd.playSound((coreSys.gmSound * 0.9));
};
if (objMC.currentFrame == 601){
snd = new se_thurst();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 610){
snd = new se_swing1();
snd.playSound((coreSys.gmSound * 0.9));
};
if (objMC.currentFrame == 616){
snd = new se_swing1();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 631){
snd = new se_clang();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 665){
snd = new se_flash();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 720){
snd = new se_clang();
snd.playSound(coreSys.gmSound);
};
if (objMC.currentFrame == 749){
snd = new se_evilsmile();
snd.playSound(coreSys.gmSound);
};
if ((((objMC.currentFrame == 725)) || ((objMC.currentFrame == 636)))){
if (Math.random() < 0.5){
snd = new khronos_combo_mutelation_take_2();
snd.playSound(coreSys.gmSound);
} else {
snd = new khronos_combo_killing_spree_take_1();
snd.playSound(coreSys.gmSound);
};
};
}
public function keyUpdate(){
if (((coreSys.gmKey.getKeyPress().KEY_K) || (coreSys.gmKey.getKeyPress().KEY_Z))){
playAttack();
};
if (((coreSys.gmKey.getKeyPress().KEY_L) || (coreSys.gmKey.getKeyPress().KEY_X))){
playSpecial();
};
attackAnimHandle();
if (((coreSys.gmKey.getKeyHold().KEY_A) || (coreSys.gmKey.getKeyHold().KEY_LEFT))){
playMoveLeft();
};
if (((coreSys.gmKey.getKeyHold().KEY_D) || (coreSys.gmKey.getKeyHold().KEY_RIGHT))){
playMoveRight();
};
if (((coreSys.gmKey.getKeyHold().KEY_W) || (coreSys.gmKey.getKeyHold().KEY_UP))){
playMoveUp();
};
if (((coreSys.gmKey.getKeyHold().KEY_S) || (coreSys.gmKey.getKeyHold().KEY_DOWN))){
playMoveDown();
};
if (((((((((((((((!(coreSys.gmKey.getKeyHold().KEY_A)) && (!(coreSys.gmKey.getKeyHold().KEY_D)))) && (!(coreSys.gmKey.getKeyHold().KEY_W)))) && (!(coreSys.gmKey.getKeyHold().KEY_S)))) && (!(coreSys.gmKey.getKeyHold().KEY_LEFT)))) && (!(coreSys.gmKey.getKeyHold().KEY_RIGHT)))) && (!(coreSys.gmKey.getKeyHold().KEY_UP)))) && (!(coreSys.gmKey.getKeyHold().KEY_DOWN)))){
returnToStand();
};
}
public function hitEffect(_X:int, _Y:int, _SCALE:Number=1){
var splat:*;
splat = new Hit();
splat.initialise(coreSys, _X, _Y, (this.y + 1), _SCALE);
if (Math.random() < 0.6){
bloodEffect(_X, _Y);
};
}
public function isEnableHit():Boolean{
if ((((((((objMC.currentLabel == "dead")) || ((objMC.currentLabel == "fatal_stab")))) || ((objMC.currentLabel == "special")))) || ((objMC.currentLabel == "counter")))){
return (false);
};
return (true);
}
public function isRunSlashHit():Boolean{
if (objMC.currentFrame == 98){
return (true);
};
return (false);
}
public function isBasicSlashHit():Boolean{
if (objMC.currentFrame == 443){
return (true);
};
return (false);
}
public function isIdle():Boolean{
if ((((((objMC.currentLabel == "standby")) || ((objMC.currentLabel == "walk")))) || ((objMC.currentLabel == "run")))){
return (true);
};
return (false);
}
public function bloodEffect(_X:int, _Y:int){
var i:int;
var num:int;
var blood:Array;
var angle:int;
i = 1;
num = (10 + (Math.random() * 10));
blood = new Array(num);
angle = 0;
i = 0;
while (i < num) {
if (this.scaleX < 0){
angle = (-180 + (Math.random() * 80));
} else {
angle = (0 + (Math.random() * -80));
};
blood[i] = new Blood();
blood[i].initialise(coreSys, _X, _Y, (this.y + 1), angle, (4 + (Math.random() * 6)));
i++;
};
}
public function isGroundCombo2Hit():Boolean{
if (objMC.currentFrame == 155){
return (true);
};
return (false);
}
public function isShockwaveHit():Boolean{
if (objMC.currentFrame == 199){
return (true);
};
return (false);
}
public function isSpecialBlowHit():Boolean{
if (objMC.currentFrame == 720){
return (true);
};
return (false);
}
private function playMoveUp(){
if (objMC.currentLabel == "standby"){
objMC.gotoAndPlay("walk");
_walk_frame_input = 0;
};
if (objMC.currentLabel == "walk"){
this.y = (this.y - (_walk_speed * 0.5));
};
if (objMC.currentLabel == "run"){
this.y = (this.y - (_run_speed * 0.5));
};
if (this.y < objBG.TOP_BORDER){
this.y = objBG.TOP_BORDER;
};
}
private function playMoveDown(){
if (objMC.currentLabel == "standby"){
objMC.gotoAndPlay("walk");
_walk_frame_input = 0;
};
if (objMC.currentLabel == "walk"){
this.y = (this.y + (_walk_speed * 0.5));
};
if (objMC.currentLabel == "run"){
this.y = (this.y + (_run_speed * 0.5));
};
if (this.y > objBG.BOTTOM_BORDER){
this.y = objBG.BOTTOM_BORDER;
};
}
public function addSmallKill(){
objMenu.addSmallKill();
}
public function addScore(val:int=0){
objMenu.addScore(val);
}
public function gainOverdrive(mult:Number=1){
_overdrive = Math.min((_overdrive + (_overdrive_regen * mult)), 1000);
objMenu.setOverdrive(_overdrive, 1000);
}
public function getZoneAttackBox():Object{
return (objMC.zoneAttackBox);
}
public function getMC():Object{
if (objMC){
return (objMC);
};
return (null);
}
public function isUpperSlashHit():Boolean{
if (objMC.currentFrame == 473){
return (true);
};
if (objMC.currentFrame == 491){
return (true);
};
return (false);
}
public function frameUpdate(){
_walk_frame_input = Math.max((_walk_frame_input - 1), 0);
_ZDepth = this.y;
}
public function isFatalStabHit():Boolean{
if (objMC.currentFrame == 392){
return (true);
};
return (false);
}
public function addBigKill(){
objMenu.addBigKill();
}
public function isRapidStabHit():Boolean{
if (objMC.currentFrame == 522){
return (true);
};
if (objMC.currentFrame == 529){
return (true);
};
if (objMC.currentFrame == 535){
return (true);
};
if (objMC.currentFrame == 542){
return (true);
};
return (false);
}
private function adjustScreenPos(_move:Number=0){
if (_move < 0){
if (this.x < (objBG.LEFT_BORDER + 50)){
this.x = (objBG.LEFT_BORDER + 50);
};
if (this.x < objBG.LEFT_SCREEN_SHIFT){
objBG.scrollFW(Math.abs(_move));
};
} else {
if (this.x > (objBG.RIGHT_BORDER - 50)){
this.x = (objBG.RIGHT_BORDER - 50);
};
if (this.x > objBG.RIGHT_SCREEN_SHIFT){
objBG.scrollBK(Math.abs(_move));
};
};
}
public function isScorpionCombo2Hit():Boolean{
if (objMC.currentFrame == 330){
return (true);
};
return (false);
}
public function getAttackBox():Object{
return (objMC.attackBox);
}
public function isCounterBlowHit():Boolean{
if (objMC.currentFrame == 631){
return (true);
};
return (false);
}
public function isSomesaultHit():Boolean{
if (objMC.currentFrame == 265){
return (true);
};
return (false);
}
public function isDead():Boolean{
if ((((objMC.currentLabel == "dead")) && ((_health <= 0)))){
return (true);
};
return (false);
}
public function initialise(_coreSys, _objMenu, _objBG, _X:int=300, _Y:int=200){
coreSys = _coreSys;
dispCont = coreSys.contFIELD;
objMenu = _objMenu;
objBG = _objBG;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _X;
this.y = _Y;
if (coreSys.gmChar == 1){
objMC = new main_chara_mc();
_health = (_max_health = 1000);
_power = 100;
_break = 1;
_walk_speed = 4;
_run_speed = 9;
_health_regen = 5;
_overdrive_regen = 2;
} else {
if (coreSys.gmChar == 2){
objMC = new main_chara_2_mc();
_health = (_max_health = 800);
_power = 120;
_break = 1;
_walk_speed = 4;
_run_speed = 9;
_health_regen = 5;
_overdrive_regen = 5;
} else {
if (coreSys.gmChar == 3){
objMC = new main_chara_3_mc();
_health = (_max_health = 1200);
_power = 120;
_break = 0.5;
_walk_speed = 3;
_run_speed = 8;
_health_regen = 10;
_overdrive_regen = 2;
} else {
if (coreSys.gmChar == 4){
objMC = new main_chara_4_mc();
_health = (_max_health = 1500);
_power = 200;
_break = 1;
_walk_speed = 3;
_run_speed = 6;
_health_regen = 5;
_overdrive_regen = 2;
} else {
if (coreSys.gmChar == 5){
objMC = new main_chara_5_mc();
_health = (_max_health = 10);
_power = 800;
_break = 1.2;
_walk_speed = 7;
_run_speed = 16;
_health_regen = 20;
_overdrive_regen = 5;
} else {
objMC = new main_chara_berserk_mc();
_health = (_max_health = 2000);
_power = 300;
_break = 2;
_walk_speed = 7;
_run_speed = 17;
_health_regen = 20;
_overdrive_regen = 10;
};
};
};
};
};
this.addChild(objMC);
objMC.cacheAsBitmap = true;
_overdrive = 0;
objMenu.reset();
objMenu.setHealth((1000 / 1000));
objMenu.setOverdrive((0 / 1000));
}
public function isCounterHit():Boolean{
if (objMC.currentFrame == 590){
return (true);
};
if (objMC.currentFrame == 601){
return (true);
};
if (objMC.currentFrame == 610){
return (true);
};
if (objMC.currentFrame == 616){
return (true);
};
return (false);
}
private function playMoveRight(){
if (objMC.currentLabel == "standby"){
if ((((_walk_frame_input > 0)) && ((this.scaleX == 1)))){
objMC.gotoAndPlay("run");
} else {
objMC.gotoAndPlay("walk");
};
_walk_frame_input = 0;
};
if (objMC.currentLabel == "walk"){
if (this.scaleX == -1){
this.scaleX = 1;
};
this.x = (this.x + _walk_speed);
adjustScreenPos(_walk_speed);
};
if (objMC.currentLabel == "run"){
if (this.scaleX == -1){
this.scaleX = 1;
objMC.gotoAndPlay("walk");
};
this.x = (this.x + _run_speed);
adjustScreenPos(_run_speed);
};
}
public function getBodyBox():Object{
return (objMC.bodyBox);
}
public function playHit(type:int=1, dmg:int=0, yOff:int=0, effectScale:Number=1){
var snd:*;
var splashBloodEffect:*;
if (objMC.currentLabel != "dead"){
hitEffect(this.x, (this.y - yOff), effectScale);
_health = Math.max((_health - dmg), 0);
snd = null;
if (_health <= 0){
objMC.gotoAndPlay("dead");
snd = new se_hit3();
snd.playSound(coreSys.gmSound);
splashBloodEffect = new Splash();
splashBloodEffect.initialise(coreSys, this.x, this.y);
splashBloodEffect.scaleX = 1.5;
splashBloodEffect.scaleY = 1.2;
objMenu.showResult();
} else {
if (type == 1){
objMC.gotoAndPlay("hit");
gainOverdrive(10);
snd = new se_hit3();
snd.playSound((coreSys.gmSound * 0.5));
};
if (type == 2){
objMC.gotoAndPlay("hit2");
gainOverdrive(15);
snd = new se_hit3();
snd.playSound((coreSys.gmSound * 0.8));
};
};
objMenu.resetCombo();
trace(((("damage = -" + String(dmg)) + " health = ") + String(_health)));
};
}
public function isActive():Boolean{
if (objMC.currentLabel != "dead"){
return (true);
};
return (false);
}
private function returnToStand(){
if ((((objMC.currentLabel == "walk")) || ((objMC.currentLabel == "run")))){
objMC.gotoAndPlay("standby");
_walk_frame_input = 4;
};
}
private function playMoveLeft(){
if (objMC.currentLabel == "standby"){
if ((((_walk_frame_input > 0)) && ((this.scaleX == -1)))){
objMC.gotoAndPlay("run");
} else {
objMC.gotoAndPlay("walk");
};
_walk_frame_input = 0;
};
if (objMC.currentLabel == "walk"){
if (this.scaleX == 1){
this.scaleX = -1;
};
this.x = (this.x - _walk_speed);
adjustScreenPos(-(_walk_speed));
};
if (objMC.currentLabel == "run"){
if (this.scaleX == 1){
this.scaleX = -1;
objMC.gotoAndPlay("walk");
};
this.x = (this.x - _run_speed);
adjustScreenPos(-(_run_speed));
};
}
private function playAttack(){
if (((coreSys.gmKey.getKeyHold().KEY_W) || (coreSys.gmKey.getKeyHold().KEY_UP))){
if ((((((objMC.currentLabel == "standby")) || ((objMC.currentLabel == "walk")))) || ((objMC.currentLabel == "run")))){
objMC.gotoAndPlay("upper_slash");
};
if ((((objMC.currentLabel == "basic_slash")) && ((((objMC.currentFrame >= 450)) && ((objMC.currentFrame <= 457)))))){
objMC.gotoAndPlay("upper_slash");
};
if ((((objMC.currentLabel == "rapid_stab")) && ((((objMC.currentFrame >= 546)) && ((objMC.currentFrame <= 551)))))){
objMC.gotoAndPlay("fatal_stab");
};
if ((((objMC.currentLabel == "ground_combo")) && ((((objMC.currentFrame >= 164)) && ((objMC.currentFrame <= 169)))))){
objMC.gotoAndPlay("fatal_stab");
};
};
if (((coreSys.gmKey.getKeyHold().KEY_S) || (coreSys.gmKey.getKeyHold().KEY_DOWN))){
if ((((((objMC.currentLabel == "standby")) || ((objMC.currentLabel == "walk")))) || ((objMC.currentLabel == "run")))){
objMC.gotoAndPlay("ground_combo");
};
if ((((objMC.currentLabel == "rapid_stab")) && ((((objMC.currentFrame >= 546)) && ((objMC.currentFrame <= 551)))))){
objMC.gotoAndPlay("shockwave_attack");
};
if ((((objMC.currentLabel == "scorpion_combo")) && ((((objMC.currentFrame >= 317)) && ((objMC.currentFrame <= 322)))))){
objMC.gotoAndPlay("ground_combo");
};
};
if (((((((coreSys.gmKey.getKeyHold().KEY_A) || (coreSys.gmKey.getKeyHold().KEY_LEFT))) && ((this.scaleX == -1)))) || (((((coreSys.gmKey.getKeyHold().KEY_D) || (coreSys.gmKey.getKeyHold().KEY_RIGHT))) && ((this.scaleX == 1)))))){
if ((((objMC.currentLabel == "standby")) || ((objMC.currentLabel == "walk")))){
objMC.gotoAndPlay("rapid_stab");
};
if ((((objMC.currentLabel == "rapid_stab")) && ((((objMC.currentFrame >= 546)) && ((objMC.currentFrame <= 551)))))){
objMC.gotoAndPlay("somesault_attack");
};
if ((((objMC.currentLabel == "ground_combo")) && ((((objMC.currentFrame >= 164)) && ((objMC.currentFrame <= 169)))))){
objMC.gotoAndPlay("somesault_attack");
};
if ((((objMC.currentLabel == "scorpion_combo")) && ((((objMC.currentFrame >= 317)) && ((objMC.currentFrame <= 322)))))){
objMC.gotoAndPlay("rapid_stab");
};
};
if ((((objMC.currentLabel == "ground_combo")) && ((((objMC.currentFrame >= 164)) && ((objMC.currentFrame <= 169)))))){
objMC.gotoAndPlay("shockwave_attack");
};
if ((((objMC.currentLabel == "upper_slash")) && ((((objMC.currentFrame >= 498)) && ((objMC.currentFrame <= 503)))))){
objMC.gotoAndPlay("somesault_attack");
};
if ((((objMC.currentLabel == "shockwave_attack")) && ((((objMC.currentFrame >= 205)) && ((objMC.currentFrame <= 210)))))){
objMC.gotoAndPlay("somesault_attack");
};
if ((((objMC.currentLabel == "basic_slash")) && ((((objMC.currentFrame >= 450)) && ((objMC.currentFrame <= 457)))))){
objMC.gotoAndPlay("scorpion_combo");
};
if ((((objMC.currentLabel == "scorpion_combo")) && ((((objMC.currentFrame >= 317)) && ((objMC.currentFrame <= 322)))))){
objMC.gotoAndPlay("run_slash");
};
if ((((objMC.currentLabel == "rapid_stab")) && ((((objMC.currentFrame >= 546)) && ((objMC.currentFrame <= 551)))))){
objMC.gotoAndPlay("run_slash");
};
if (objMC.currentLabel == "run"){
objMC.gotoAndPlay("run_slash");
};
if (objMC.currentLabel == "standby"){
objMC.gotoAndPlay("basic_slash");
};
}
public function isScorpionComboHit():Boolean{
if (objMC.currentFrame == 300){
return (true);
};
if (objMC.currentFrame == 303){
return (true);
};
return (false);
}
public function parameterUpdate(){
if ((((_health <= 0)) || ((objMC.currentLabel == "dead")))){
return;
};
_health_regen_counter = Math.max((_health_regen_counter - 1), 0);
if (_health_regen_counter == 0){
_health_regen_counter = 30;
_health = Math.min((_health + _health_regen), _max_health);
objMenu.setHealth(_health, _max_health);
};
_overdrive_regen_counter = Math.max((_overdrive_regen_counter - 1), 0);
if (_overdrive_regen_counter == 0){
_overdrive_regen_counter = 30;
_overdrive = Math.min((_overdrive + _overdrive_regen), 1000);
objMenu.setOverdrive(_overdrive, 1000);
};
}
private function playSpecial(){
if ((((((objMC.currentLabel == "standby")) || ((objMC.currentLabel == "walk")))) || ((objMC.currentLabel == "run")))){
if (_overdrive >= 200){
objMC.gotoAndPlay("special");
_overdrive = Math.max((_overdrive - 200), 0);
objMenu.setOverdrive(_overdrive, 1000);
objMenu.addSpecial();
};
};
if ((((objMC.currentLabel == "hit")) || ((objMC.currentLabel == "hit2")))){
if (_overdrive >= 200){
objMC.gotoAndPlay("counter");
_overdrive = Math.max((_overdrive - 200), 0);
objMenu.setOverdrive(_overdrive, 1000);
objMenu.addCounter();
};
};
}
public function isGroundCombo1Hit():Boolean{
if (objMC.currentFrame == 138){
return (true);
};
return (false);
}
public function isSpecialHit():Boolean{
if (objMC.currentFrame == 672){
return (true);
};
if (objMC.currentFrame == 676){
return (true);
};
return (false);
}
public function destroy(){
this.removeChild(objMC);
objMenu = null;
objMC = null;
dispCont.removeChild(this);
dispCont = null;
coreSys = null;
}
}
}//package FZGame.Object
Section 86
//Splash (FZGame.Object.Splash)
package FZGame.Object {
import flash.events.*;
import flash.display.*;
public class Splash extends Sprite {
private var dispCont;// = null
private var lifeSpan:int;// = 150
public var _ZDepth:int;// = 0
private var coreSys;// = null
private var objMC;// = null
public var objType:int;// = 77
public function Splash(){
objType = 77;
_ZDepth = 0;
coreSys = null;
dispCont = null;
objMC = null;
lifeSpan = 150;
super();
}
private function splashHandle(event:Event):void{
if (coreSys.isPaused){
return;
};
lifeSpan = Math.max((lifeSpan - 1), 0);
if (lifeSpan <= 0){
destroy();
};
}
public function initialise(_coreSys, _X:int=0, _Y:int=0){
coreSys = _coreSys;
dispCont = coreSys.contBLOOD;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _X;
this.y = _Y;
objMC = new blood_splash();
this.addChild(objMC);
lifeSpan = ((Math.random() * 300) + 300);
this.addEventListener(Event.ENTER_FRAME, splashHandle, false, 0, true);
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, splashHandle);
this.removeChild(objMC);
objMC = null;
dispCont.removeChild(this);
dispCont = null;
coreSys = null;
}
}
}//package FZGame.Object
Section 87
//CoreSystem (FZGame.System.CoreSystem)
package FZGame.System {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.*;
import FZBase.Control.*;
import FZBase.Sound.*;
public class CoreSystem {
public var stageRoot;
public var contBLOOD:Sprite;
var kongregateServiceLoaded:Boolean;// = false
public var contMENU:Sprite;
public var leftBorder:int;// = -100
public var TOTAL_ACHIVE:int;// = 0
public var contFIELD:Sprite;
public var contFRONT:Sprite;
public var gmKey;
private var sndBgm;// = null
public var upBorder:int;// = 0
public var sponsorLink;// = "http://www.arcadebomb.com"
public var gmLevel:int;// = 1
public var contEFFECT:Sprite;
public var BEST_STEP:int;// = 0
public var gmSound:Number;// = 1
public var gmState;
private var objInfo;// = null
public var gmDat;
public var BEST_COMBO:int;// = 0
public var BEST_KILL:int;// = 0
public var BEST_SCORE:int;// = 0
var kongregate:KongregateAPI;
public var gmChar:int;// = 1
public var rightBorder:int;// = 1300
public var landBorder:int;// = 410
public var isPaused:Boolean;// = false
public var downBorder:int;// = 600
public var contBG:Sprite;
public var contSCROLL:Sprite;
public function CoreSystem(){
isPaused = false;
leftBorder = -100;
rightBorder = 1300;
upBorder = 0;
downBorder = 600;
landBorder = 410;
gmLevel = 1;
gmChar = 1;
gmSound = 1;
sponsorLink = "http://www.arcadebomb.com";
sndBgm = null;
objInfo = null;
kongregateServiceLoaded = false;
BEST_KILL = 0;
BEST_STEP = 0;
BEST_COMBO = 0;
TOTAL_ACHIVE = 0;
BEST_SCORE = 0;
super();
}
public function popNewAchivement(){
if (objInfo == null){
objInfo = new achiev_announce_mc();
contFRONT.addChild(objInfo);
objInfo.cacheAsBitmap = true;
objInfo.gotoAndPlay(1);
objInfo.addEventListener(Event.ENTER_FRAME, infoHandle, false, 0, true);
};
}
private function serviceLoaded(e:KongregateEvent):void{
kongregate.services.connect();
kongregateServiceLoaded = true;
}
public function toggleSound(){
if (sndBgm){
sndBgm.setVolume(gmSound);
};
}
private function initKongregateAPI(){
kongregate = new KongregateAPI();
stageRoot.addChild(kongregate);
kongregate.addEventListener(KongregateEvent.COMPLETE, serviceLoaded);
}
public function playBgmBattle4(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_battle4();
sndBgm.playSoundLoop();
sndBgm.setVolume(gmSound);
}
public function playBgmCover(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_cover();
sndBgm.playSoundLoop();
sndBgm.setVolume(gmSound);
}
public function submitStat(){
gmDat.calculateFlag();
BEST_KILL = gmDat.stat_kill;
BEST_STEP = gmDat.stat_moving_step;
BEST_COMBO = gmDat.stat_best_combo_hit;
TOTAL_ACHIVE = gmDat.totalAchivement;
BEST_SCORE = gmDat.stat_best_score;
if (((kongregate) && (kongregateServiceLoaded))){
kongregate.stats.submit("BEST_KILL", BEST_KILL);
kongregate.stats.submit("BEST_STEP", BEST_STEP);
kongregate.stats.submit("BEST_COMBO", BEST_COMBO);
kongregate.stats.submit("TOTAL_ACHIVE", TOTAL_ACHIVE);
kongregate.stats.submit("BEST_SCORE", BEST_SCORE);
trace("data submitted !!");
};
}
private function zSorting(a, b):int{
if (a._ZDepth < b._ZDepth){
return (-1);
};
if (a._ZDepth > b._ZDepth){
return (1);
};
return (0);
}
public function scrollX(val:int){
contSCROLL.x = Math.min(Math.max((contSCROLL.x + val), -400), 0);
}
public function initialise(_stageRoot){
stageRoot = _stageRoot;
contSCROLL = new Sprite();
stageRoot.addChild(contSCROLL);
contBG = new Sprite();
contSCROLL.addChild(contBG);
contBLOOD = new Sprite();
contSCROLL.addChild(contBLOOD);
contFIELD = new Sprite();
contSCROLL.addChild(contFIELD);
contEFFECT = new Sprite();
contSCROLL.addChild(contEFFECT);
contMENU = new Sprite();
stageRoot.addChild(contMENU);
contFRONT = new Sprite();
stageRoot.addChild(contFRONT);
gmState = new GameState();
gmState.setState(gmState.ST_NONE);
gmKey = new ControlKey();
gmKey.initialise(stageRoot);
gmDat = new Statistic();
gmDat.resetStatistic();
reset();
initKongregateAPI();
}
public function reset(){
isPaused = false;
gmState.setState(gmState.ST_NONE);
contSCROLL.x = 0;
}
public function playBgmPrologue(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_prologue();
sndBgm.playSound();
sndBgm.setVolume(gmSound);
}
public function playBgmBattle1(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_battle1();
sndBgm.playSoundLoop();
sndBgm.setVolume(gmSound);
}
public function playBgmEndBattle(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_endbattle();
sndBgm.playSoundLoop();
sndBgm.setVolume(gmSound);
}
public function playBgmBattle3(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_battle3();
sndBgm.playSoundLoop();
sndBgm.setVolume(gmSound);
}
public function playBgmBattle2(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_battle2();
sndBgm.playSoundLoop();
sndBgm.setVolume(gmSound);
}
private function infoHandle(event:Event):void{
if (objInfo.currentFrame == objInfo.totalFrames){
objInfo.removeEventListener(Event.ENTER_FRAME, infoHandle);
contFRONT.removeChild(objInfo);
objInfo = null;
};
}
}
}//package FZGame.System
Section 88
//GameState (FZGame.System.GameState)
package FZGame.System {
public class GameState {
public var ST_PROLOGUE;// = 3
public var ST_BATTLE;// = 5
public var ST_LOADER;// = 1
public var ST_ENDING;// = 6
public var ST_WORLD;// = 4
public var ST_NONE;// = 0
public var ST_MAINMENU;// = 2
private var _state:int;// = 0
public function GameState(){
ST_NONE = 0;
ST_LOADER = 1;
ST_MAINMENU = 2;
ST_PROLOGUE = 3;
ST_WORLD = 4;
ST_BATTLE = 5;
ST_ENDING = 6;
_state = 0;
super();
}
public function isState(val:int=0):Boolean{
if (val == _state){
return (true);
};
return (false);
}
public function getState():int{
return (_state);
}
public function setState(val:int=0){
_state = val;
}
}
}//package FZGame.System
Section 89
//Statistic (FZGame.System.Statistic)
package FZGame.System {
import flash.net.*;
public class Statistic {
public var stat_survive_time:int;// = 0
public var achv06_survive_35minute:int;// = 0
public var achv16_kill_100enemy:int;// = 0
public var stat_best_combo_hit:int;// = 0
public var achv26_paused_2minutes:int;// = 0
public var stat_level1_complete:int;// = 0
public var achv08_gameover_20x:int;// = 0
public var achv17_bestcombo_15hit:int;// = 0
public var achv25_paused_1minutes:int;// = 0
public var achv13_kill_10enemy:int;// = 0
public var achv03_read_credit:int;// = 0
public var stat_level2_complete:int;// = 0
public var stat_best_score:int;// = 0
public var stat_play:int;// = 0
public var init_save:Boolean;// = false
public var stat_gameover:int;// = 0
public var achv02_read_instruction:int;// = 0
public var stat_using_special:int;// = 0
public var totalAchivement:int;// = 0
public var achv14_kill_30enemy:int;// = 0
public var stat_read_credit:int;// = 0
public var achv18_bestcombo_30hit:int;// = 0
public var achv19_bestcombo_50hit:int;// = 0
public var stat_level3_complete:int;// = 0
public var achv09_complete_level1:int;// = 0
public var stat_kill:int;// = 0
public var achv07_gameover_5x:int;// = 0
public var achv15_kill_50enemy:int;// = 0
public var achv20_using_special:int;// = 0
public var achv11_complete_level3:int;// = 0
public var achv22_kill_boss_1x:int;// = 0
public var achv10_complete_level2:int;// = 0
public var stat_bosskill_counter:int;// = 0
public var stat_using_counter:int;// = 0
public var achv24_kill_boss_10x:int;// = 0
public var achv12_best_hiscore:int;// = 0
public var achv23_kill_boss_5x:int;// = 0
public var achv27_no_attack_1minutes:int;// = 0
public var achv01_play_game_2x:int;// = 0
public var stat_moving_step:int;// = 0
public var achv30_moving_500step:int;// = 0
public var achv05_survive_20minute:int;// = 0
public var achv04_survive_10minute:int;// = 0
public var achv31_moving_1200step:int;// = 0
public var tempAchivement:int;// = 0
public var stat_no_attack_wait:int;// = 0
public var stat_pause_wait:int;// = 0
public var stat_read_instruction:int;// = 0
public var achv21_using_counter:int;// = 0
public var achv28_no_attack_2minutes:int;// = 0
public var achv29_moving_250step:int;// = 0
public var achv32_play_game_10x:int;// = 0
public function Statistic(){
totalAchivement = 0;
tempAchivement = 0;
init_save = false;
stat_play = 0;
stat_read_instruction = 0;
stat_read_credit = 0;
stat_survive_time = 0;
stat_gameover = 0;
stat_kill = 0;
stat_best_combo_hit = 0;
stat_using_special = 0;
stat_using_counter = 0;
stat_bosskill_counter = 0;
stat_pause_wait = 0;
stat_no_attack_wait = 0;
stat_moving_step = 0;
stat_level1_complete = 0;
stat_level2_complete = 0;
stat_level3_complete = 0;
stat_best_score = 0;
achv01_play_game_2x = 0;
achv02_read_instruction = 0;
achv03_read_credit = 0;
achv04_survive_10minute = 0;
achv05_survive_20minute = 0;
achv06_survive_35minute = 0;
achv07_gameover_5x = 0;
achv08_gameover_20x = 0;
achv09_complete_level1 = 0;
achv10_complete_level2 = 0;
achv11_complete_level3 = 0;
achv12_best_hiscore = 0;
achv13_kill_10enemy = 0;
achv14_kill_30enemy = 0;
achv15_kill_50enemy = 0;
achv16_kill_100enemy = 0;
achv17_bestcombo_15hit = 0;
achv18_bestcombo_30hit = 0;
achv19_bestcombo_50hit = 0;
achv20_using_special = 0;
achv21_using_counter = 0;
achv22_kill_boss_1x = 0;
achv23_kill_boss_5x = 0;
achv24_kill_boss_10x = 0;
achv25_paused_1minutes = 0;
achv26_paused_2minutes = 0;
achv27_no_attack_1minutes = 0;
achv28_no_attack_2minutes = 0;
achv29_moving_250step = 0;
achv30_moving_500step = 0;
achv31_moving_1200step = 0;
achv32_play_game_10x = 0;
super();
}
public function refreshFlag(){
if (achv01_play_game_2x >= 2){
achv01_play_game_2x = 1;
};
if (achv02_read_instruction >= 2){
achv02_read_instruction = 1;
};
if (achv03_read_credit >= 2){
achv03_read_credit = 1;
};
if (achv04_survive_10minute >= 2){
achv04_survive_10minute = 1;
};
if (achv05_survive_20minute >= 2){
achv05_survive_20minute = 1;
};
if (achv06_survive_35minute >= 2){
achv06_survive_35minute = 1;
};
if (achv07_gameover_5x >= 2){
achv07_gameover_5x = 1;
};
if (achv08_gameover_20x >= 2){
achv08_gameover_20x = 1;
};
if (achv09_complete_level1 >= 2){
achv09_complete_level1 = 1;
};
if (achv10_complete_level2 >= 2){
achv10_complete_level2 = 1;
};
if (achv11_complete_level3 >= 2){
achv11_complete_level3 = 1;
};
if (achv12_best_hiscore >= 2){
achv12_best_hiscore = 1;
};
if (achv13_kill_10enemy >= 2){
achv13_kill_10enemy = 1;
};
if (achv14_kill_30enemy >= 2){
achv14_kill_30enemy = 1;
};
if (achv15_kill_50enemy >= 2){
achv15_kill_50enemy = 1;
};
if (achv16_kill_100enemy >= 2){
achv16_kill_100enemy = 1;
};
if (achv17_bestcombo_15hit >= 2){
achv17_bestcombo_15hit = 1;
};
if (achv18_bestcombo_30hit >= 2){
achv18_bestcombo_30hit = 1;
};
if (achv19_bestcombo_50hit >= 2){
achv19_bestcombo_50hit = 1;
};
if (achv20_using_special >= 2){
achv20_using_special = 1;
};
if (achv21_using_counter >= 2){
achv21_using_counter = 1;
};
if (achv22_kill_boss_1x >= 2){
achv22_kill_boss_1x = 1;
};
if (achv23_kill_boss_5x >= 2){
achv23_kill_boss_5x = 1;
};
if (achv24_kill_boss_10x >= 2){
achv24_kill_boss_10x = 1;
};
if (achv25_paused_1minutes >= 2){
achv25_paused_1minutes = 1;
};
if (achv26_paused_2minutes >= 2){
achv26_paused_2minutes = 1;
};
if (achv27_no_attack_1minutes >= 2){
achv27_no_attack_1minutes = 1;
};
if (achv28_no_attack_2minutes >= 2){
achv28_no_attack_2minutes = 1;
};
if (achv29_moving_250step >= 2){
achv29_moving_250step = 1;
};
if (achv30_moving_500step >= 2){
achv30_moving_500step = 1;
};
if (achv31_moving_1200step >= 2){
achv31_moving_1200step = 1;
};
if (achv32_play_game_10x >= 2){
achv32_play_game_10x = 1;
};
}
public function cheatMode(){
stat_play = 100;
stat_read_instruction = 100;
stat_read_credit = 100;
stat_survive_time = 1000000;
stat_gameover = 100;
stat_kill = 1000;
stat_best_combo_hit = 100;
stat_using_special = 10;
stat_using_counter = 10;
stat_bosskill_counter = 100;
stat_pause_wait = 10000;
stat_no_attack_wait = 10000;
stat_moving_step = 10000;
stat_level1_complete = 10;
stat_level2_complete = 10;
stat_level3_complete = 10;
stat_best_score = 1000000;
resetFlag();
}
public function resetFlag(){
achv01_play_game_2x = 0;
achv02_read_instruction = 0;
achv03_read_credit = 0;
achv04_survive_10minute = 0;
achv05_survive_20minute = 0;
achv06_survive_35minute = 0;
achv07_gameover_5x = 0;
achv08_gameover_20x = 0;
achv09_complete_level1 = 0;
achv10_complete_level2 = 0;
achv11_complete_level3 = 0;
achv12_best_hiscore = 0;
achv13_kill_10enemy = 0;
achv14_kill_30enemy = 0;
achv15_kill_50enemy = 0;
achv16_kill_100enemy = 0;
achv17_bestcombo_15hit = 0;
achv18_bestcombo_30hit = 0;
achv19_bestcombo_50hit = 0;
achv20_using_special = 0;
achv21_using_counter = 0;
achv22_kill_boss_1x = 0;
achv23_kill_boss_5x = 0;
achv24_kill_boss_10x = 0;
achv25_paused_1minutes = 0;
achv26_paused_2minutes = 0;
achv27_no_attack_1minutes = 0;
achv28_no_attack_2minutes = 0;
achv29_moving_250step = 0;
achv30_moving_500step = 0;
achv31_moving_1200step = 0;
achv32_play_game_10x = 0;
}
public function isNewAchivement():Boolean{
calculateFlag();
if (tempAchivement < totalAchivement){
tempAchivement = totalAchivement;
return (true);
};
tempAchivement = totalAchivement;
return (false);
}
public function loadData(mName:String="ACTX_SAVE"){
var so:SharedObject;
so = SharedObject.getLocal(mName);
init_save = so.data.init_save;
stat_play = so.data.stat_play;
stat_read_instruction = so.data.stat_read_instruction;
stat_read_credit = so.data.stat_read_credit;
stat_survive_time = so.data.stat_survive_time;
stat_gameover = so.data.stat_gameover;
stat_kill = so.data.stat_kill;
stat_best_combo_hit = so.data.stat_best_combo_hit;
stat_using_special = so.data.stat_using_special;
stat_using_counter = so.data.stat_using_counter;
stat_bosskill_counter = so.data.stat_bosskill_counter;
stat_pause_wait = so.data.stat_pause_wait;
stat_no_attack_wait = so.data.stat_no_attack_wait;
stat_moving_step = so.data.stat_moving_step;
stat_level1_complete = so.data.stat_level1_complete;
stat_level2_complete = so.data.stat_level2_complete;
stat_level3_complete = so.data.stat_level3_complete;
stat_best_score = so.data.stat_best_score;
trace("load data ..... ok");
}
public function saveData(mName:String="ACTX_SAVE"){
var so:SharedObject;
so = SharedObject.getLocal(mName);
so.data.init_save = new Boolean(true);
so.data.stat_play = new int(stat_play);
so.data.stat_read_instruction = new int(stat_read_instruction);
so.data.stat_read_credit = new int(stat_read_credit);
so.data.stat_survive_time = new int(stat_survive_time);
so.data.stat_gameover = new int(stat_gameover);
so.data.stat_kill = new int(stat_kill);
so.data.stat_best_combo_hit = new int(stat_best_combo_hit);
so.data.stat_using_special = new int(stat_using_special);
so.data.stat_using_counter = new int(stat_using_counter);
so.data.stat_bosskill_counter = new int(stat_bosskill_counter);
so.data.stat_pause_wait = new int(stat_pause_wait);
so.data.stat_no_attack_wait = new int(stat_no_attack_wait);
so.data.stat_moving_step = new int(stat_moving_step);
so.data.stat_level1_complete = new int(stat_level1_complete);
so.data.stat_level2_complete = new int(stat_level2_complete);
so.data.stat_level3_complete = new int(stat_level3_complete);
so.data.stat_best_score = new int(stat_best_score);
so.flush();
trace("save data ..... ok");
}
public function resetStatistic(){
stat_play = 0;
stat_read_instruction = 0;
stat_read_credit = 0;
stat_survive_time = 0;
stat_gameover = 0;
stat_kill = 0;
stat_best_combo_hit = 0;
stat_using_special = 0;
stat_using_counter = 0;
stat_bosskill_counter = 0;
stat_pause_wait = 0;
stat_no_attack_wait = 0;
stat_moving_step = 0;
stat_level1_complete = 0;
stat_level2_complete = 0;
stat_level3_complete = 0;
stat_best_score = 0;
resetFlag();
}
public function calculateFlag(){
totalAchivement = 0;
if (stat_play >= 2){
if (achv01_play_game_2x <= 0){
achv01_play_game_2x = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_read_instruction >= 1){
if (achv02_read_instruction <= 0){
achv02_read_instruction = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_read_credit >= 1){
if (achv03_read_credit <= 0){
achv03_read_credit = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_survive_time >= 600){
if (achv04_survive_10minute <= 0){
achv04_survive_10minute = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_survive_time >= 1200){
if (achv05_survive_20minute <= 0){
achv05_survive_20minute = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_survive_time >= 2100){
if (achv06_survive_35minute <= 0){
achv06_survive_35minute = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_gameover >= 5){
if (achv07_gameover_5x <= 0){
achv07_gameover_5x = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_gameover >= 20){
if (achv08_gameover_20x <= 0){
achv08_gameover_20x = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_level1_complete >= 1){
if (achv09_complete_level1 <= 0){
achv09_complete_level1 = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_level2_complete >= 1){
if (achv10_complete_level2 <= 0){
achv10_complete_level2 = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_level3_complete >= 1){
if (achv11_complete_level3 <= 0){
achv11_complete_level3 = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_best_score >= 500000){
if (achv12_best_hiscore <= 0){
achv12_best_hiscore = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_kill >= 10){
if (achv13_kill_10enemy <= 0){
achv13_kill_10enemy = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_kill >= 30){
if (achv14_kill_30enemy <= 0){
achv14_kill_30enemy = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_kill >= 50){
if (achv15_kill_50enemy <= 0){
achv15_kill_50enemy = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_kill >= 100){
if (achv16_kill_100enemy <= 0){
achv16_kill_100enemy = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_best_combo_hit >= 15){
if (achv17_bestcombo_15hit <= 0){
achv17_bestcombo_15hit = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_best_combo_hit >= 30){
if (achv18_bestcombo_30hit <= 0){
achv18_bestcombo_30hit = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_best_combo_hit >= 50){
if (achv19_bestcombo_50hit <= 0){
achv19_bestcombo_50hit = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_using_special >= 1){
if (achv20_using_special <= 0){
achv20_using_special = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_using_counter >= 1){
if (achv21_using_counter <= 0){
achv21_using_counter = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_bosskill_counter >= 1){
if (achv22_kill_boss_1x <= 0){
achv22_kill_boss_1x = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_bosskill_counter >= 5){
if (achv23_kill_boss_5x <= 0){
achv23_kill_boss_5x = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_bosskill_counter >= 10){
if (achv24_kill_boss_10x <= 0){
achv24_kill_boss_10x = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_pause_wait >= 60){
if (achv25_paused_1minutes <= 0){
achv25_paused_1minutes = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_pause_wait >= 120){
if (achv26_paused_2minutes <= 0){
achv26_paused_2minutes = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_no_attack_wait >= 60){
if (achv27_no_attack_1minutes <= 0){
achv27_no_attack_1minutes = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_no_attack_wait >= 120){
if (achv28_no_attack_2minutes <= 0){
achv28_no_attack_2minutes = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_moving_step >= 250){
if (achv29_moving_250step <= 0){
achv29_moving_250step = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_moving_step >= 500){
if (achv30_moving_500step <= 0){
achv30_moving_500step = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_moving_step >= 1200){
if (achv31_moving_1200step <= 0){
achv31_moving_1200step = 2;
};
totalAchivement = (totalAchivement + 1);
};
if (stat_play >= 10){
if (achv32_play_game_10x <= 0){
achv32_play_game_10x = 2;
};
totalAchivement = (totalAchivement + 1);
};
}
}
}//package FZGame.System
Section 90
//DocumentClass (FZGame.DocumentClass)
package FZGame {
import flash.events.*;
import FZBase.System.*;
import FZGame.System.*;
import FZGame.Action.*;
import FZGame.Menu.*;
import flash.net.*;
public class DocumentClass {
private var stageRoot;// = null
private var loaderMgr;// = null
private var battleMgr;// = null
private var coreSys;// = null
private var prologueMgr;// = null
private var gameOverMgr;// = null
private var currentState;// = null
private var mainMenuMgr;// = null
public function DocumentClass(){
stageRoot = null;
coreSys = null;
currentState = null;
battleMgr = null;
loaderMgr = null;
mainMenuMgr = null;
prologueMgr = null;
gameOverMgr = null;
super();
}
private function stateHandle(event:Event):void{
battleMgr.update();
if (currentState.getState() != coreSys.gmState.getState()){
if (coreSys.gmState.isState(coreSys.gmState.ST_LOADER)){
loaderMgr.initialise();
currentState.setState(coreSys.gmState.getState());
};
if (coreSys.gmState.isState(coreSys.gmState.ST_PROLOGUE)){
prologueMgr.initialise();
currentState.setState(coreSys.gmState.getState());
};
if (coreSys.gmState.isState(coreSys.gmState.ST_MAINMENU)){
mainMenuMgr.initialise();
currentState.setState(coreSys.gmState.getState());
};
if (coreSys.gmState.isState(coreSys.gmState.ST_BATTLE)){
battleMgr.initialise();
currentState.setState(coreSys.gmState.getState());
};
};
}
public function startRun(){
}
public function initialise(_stageRoot){
var so:SharedObject;
stageRoot = _stageRoot;
currentState = new GameState();
currentState.setState(currentState.ST_NONE);
MochiBot.track(stageRoot, "f4354068");
coreSys = new CoreSystem();
coreSys.initialise(_stageRoot);
so = SharedObject.getLocal("ACTX_SAVE");
if (((so) && (so.data.init_save))){
coreSys.gmDat.loadData();
coreSys.gmDat.cheatMode();
coreSys.gmDat.calculateFlag();
coreSys.gmDat.refreshFlag();
coreSys.gmDat.stat_play++;
coreSys.gmDat.tempAchivement = coreSys.gmDat.totalAchivement;
} else {
coreSys.gmDat.saveData();
};
loaderMgr = new LoaderUI(coreSys);
prologueMgr = new PrologueUI(coreSys);
battleMgr = new BattleManager(coreSys);
mainMenuMgr = new MainMenuUI(coreSys);
stageRoot.addEventListener(Event.ENTER_FRAME, stateHandle, false, 0, true);
coreSys.gmState.setState(coreSys.gmState.ST_LOADER);
}
}
}//package FZGame
Section 91
//achiev_announce_mc (achiev_announce_mc)
package {
import flash.display.*;
public dynamic class achiev_announce_mc extends MovieClip {
public function achiev_announce_mc(){
super();
}
}
}//package
Section 92
//achievement_mc (achievement_mc)
package {
import flash.display.*;
public dynamic class achievement_mc extends MovieClip {
public var achive05:MovieClip;
public var achive01:MovieClip;
public var achive02:MovieClip;
public var achive03:MovieClip;
public var achive09:MovieClip;
public var achive04:MovieClip;
public var achive08:MovieClip;
public var achive06:MovieClip;
public var achive07:MovieClip;
public var achive12:MovieClip;
public var achive14:MovieClip;
public var achive15:MovieClip;
public var achive17:MovieClip;
public var achive13:MovieClip;
public var achive16:MovieClip;
public var achive18:MovieClip;
public var achive20:MovieClip;
public var achive27:MovieClip;
public var achive24:MovieClip;
public var achive26:MovieClip;
public var achive28:MovieClip;
public var achive23:MovieClip;
public var achive25:MovieClip;
public var achive29:MovieClip;
public var achive30:MovieClip;
public var achive22:MovieClip;
public var achive21:MovieClip;
public var achive11:MovieClip;
public var achive19:MovieClip;
public var achive32:MovieClip;
public var bClose:SimpleButton;
public var achive31:MovieClip;
public var achive10:MovieClip;
public function achievement_mc(){
super();
}
}
}//package
Section 93
//award_mc (award_mc)
package {
import flash.display.*;
public dynamic class award_mc extends MovieClip {
public var award2:MovieClip;
public var award3:MovieClip;
public var award4:MovieClip;
public var award5:MovieClip;
public var award1:MovieClip;
public var bClose:SimpleButton;
public function award_mc(){
super();
}
}
}//package
Section 94
//battle_pause_mc (battle_pause_mc)
package {
import flash.display.*;
public dynamic class battle_pause_mc extends MovieClip {
public var bPlayMore:SimpleButton;
public var bResume:SimpleButton;
public var bQuit:SimpleButton;
public function battle_pause_mc(){
super();
}
}
}//package
Section 95
//battle_status_mc (battle_status_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class battle_status_mc extends MovieClip {
public var glow1:MovieClip;
public var glow2:MovieClip;
public var glow5:MovieClip;
public var glow4:MovieClip;
public var kill:TextField;
public var glow3:MovieClip;
public var score:TextField;
public var combo:MovieClip;
public var lifeBar:MovieClip;
public var bPause:SimpleButton;
public var powerBar:MovieClip;
public function battle_status_mc(){
super();
}
}
}//package
Section 96
//bg_1_mc (bg_1_mc)
package {
import flash.display.*;
public dynamic class bg_1_mc extends Sprite {
public function bg_1_mc(){
super();
}
}
}//package
Section 97
//bg_2_mc (bg_2_mc)
package {
import flash.display.*;
public dynamic class bg_2_mc extends Sprite {
public function bg_2_mc(){
super();
}
}
}//package
Section 98
//bg_3_mc (bg_3_mc)
package {
import flash.display.*;
public dynamic class bg_3_mc extends Sprite {
public function bg_3_mc(){
super();
}
}
}//package
Section 99
//bg_4_mc (bg_4_mc)
package {
import flash.display.*;
public dynamic class bg_4_mc extends Sprite {
public function bg_4_mc(){
super();
}
}
}//package
Section 100
//bgm_battle1 (bgm_battle1)
package {
import FZBase.Sound.*;
public dynamic class bgm_battle1 extends BGM {
public function bgm_battle1(){
super();
}
}
}//package
Section 101
//bgm_battle2 (bgm_battle2)
package {
import FZBase.Sound.*;
public dynamic class bgm_battle2 extends BGM {
public function bgm_battle2(){
super();
}
}
}//package
Section 102
//bgm_battle3 (bgm_battle3)
package {
import FZBase.Sound.*;
public dynamic class bgm_battle3 extends BGM {
public function bgm_battle3(){
super();
}
}
}//package
Section 103
//bgm_battle4 (bgm_battle4)
package {
import FZBase.Sound.*;
public dynamic class bgm_battle4 extends BGM {
public function bgm_battle4(){
super();
}
}
}//package
Section 104
//bgm_cover (bgm_cover)
package {
import FZBase.Sound.*;
public dynamic class bgm_cover extends BGM {
public function bgm_cover(){
super();
}
}
}//package
Section 105
//bgm_endbattle (bgm_endbattle)
package {
import FZBase.Sound.*;
public dynamic class bgm_endbattle extends BGM {
public function bgm_endbattle(){
super();
}
}
}//package
Section 106
//bgm_prologue (bgm_prologue)
package {
import FZBase.Sound.*;
public dynamic class bgm_prologue extends BGM {
public function bgm_prologue(){
super();
}
}
}//package
Section 107
//blood_effect (blood_effect)
package {
import flash.display.*;
public dynamic class blood_effect extends Sprite {
public function blood_effect(){
super();
}
}
}//package
Section 108
//blood_splash (blood_splash)
package {
import flash.display.*;
public dynamic class blood_splash extends Sprite {
public function blood_splash(){
super();
}
}
}//package
Section 109
//bodyarmor_leftthigh01 (bodyarmor_leftthigh01)
package {
import flash.display.*;
public dynamic class bodyarmor_leftthigh01 extends Sprite {
public function bodyarmor_leftthigh01(){
super();
}
}
}//package
Section 110
//bodyarmor_leftthigh02 (bodyarmor_leftthigh02)
package {
import flash.display.*;
public dynamic class bodyarmor_leftthigh02 extends Sprite {
public function bodyarmor_leftthigh02(){
super();
}
}
}//package
Section 111
//bodyarmor_leftthigh03 (bodyarmor_leftthigh03)
package {
import flash.display.*;
public dynamic class bodyarmor_leftthigh03 extends Sprite {
public function bodyarmor_leftthigh03(){
super();
}
}
}//package
Section 112
//bodyarmor_leftthigh04 (bodyarmor_leftthigh04)
package {
import flash.display.*;
public dynamic class bodyarmor_leftthigh04 extends Sprite {
public function bodyarmor_leftthigh04(){
super();
}
}
}//package
Section 113
//bodyarmor_leftthigh05 (bodyarmor_leftthigh05)
package {
import flash.display.*;
public dynamic class bodyarmor_leftthigh05 extends Sprite {
public function bodyarmor_leftthigh05(){
super();
}
}
}//package
Section 114
//bodyarmor_leftthigh06 (bodyarmor_leftthigh06)
package {
import flash.display.*;
public dynamic class bodyarmor_leftthigh06 extends Sprite {
public function bodyarmor_leftthigh06(){
super();
}
}
}//package
Section 115
//bodyarmor_leftthigh07 (bodyarmor_leftthigh07)
package {
import flash.display.*;
public dynamic class bodyarmor_leftthigh07 extends Sprite {
public function bodyarmor_leftthigh07(){
super();
}
}
}//package
Section 116
//bodyarmor_leftupperarm01 (bodyarmor_leftupperarm01)
package {
import flash.display.*;
public dynamic class bodyarmor_leftupperarm01 extends Sprite {
public function bodyarmor_leftupperarm01(){
super();
}
}
}//package
Section 117
//bodyarmor_leftupperarm02 (bodyarmor_leftupperarm02)
package {
import flash.display.*;
public dynamic class bodyarmor_leftupperarm02 extends Sprite {
public function bodyarmor_leftupperarm02(){
super();
}
}
}//package
Section 118
//bodyarmor_leftupperarm03 (bodyarmor_leftupperarm03)
package {
import flash.display.*;
public dynamic class bodyarmor_leftupperarm03 extends Sprite {
public function bodyarmor_leftupperarm03(){
super();
}
}
}//package
Section 119
//bodyarmor_leftupperarm04 (bodyarmor_leftupperarm04)
package {
import flash.display.*;
public dynamic class bodyarmor_leftupperarm04 extends Sprite {
public function bodyarmor_leftupperarm04(){
super();
}
}
}//package
Section 120
//bodyarmor_leftupperarm05 (bodyarmor_leftupperarm05)
package {
import flash.display.*;
public dynamic class bodyarmor_leftupperarm05 extends Sprite {
public function bodyarmor_leftupperarm05(){
super();
}
}
}//package
Section 121
//bodyarmor_leftupperarm06 (bodyarmor_leftupperarm06)
package {
import flash.display.*;
public dynamic class bodyarmor_leftupperarm06 extends Sprite {
public function bodyarmor_leftupperarm06(){
super();
}
}
}//package
Section 122
//bodyarmor_leftupperarm07 (bodyarmor_leftupperarm07)
package {
import flash.display.*;
public dynamic class bodyarmor_leftupperarm07 extends Sprite {
public function bodyarmor_leftupperarm07(){
super();
}
}
}//package
Section 123
//bodyarmor_lower01 (bodyarmor_lower01)
package {
import flash.display.*;
public dynamic class bodyarmor_lower01 extends Sprite {
public function bodyarmor_lower01(){
super();
}
}
}//package
Section 124
//bodyarmor_lower02 (bodyarmor_lower02)
package {
import flash.display.*;
public dynamic class bodyarmor_lower02 extends Sprite {
public function bodyarmor_lower02(){
super();
}
}
}//package
Section 125
//bodyarmor_lower03 (bodyarmor_lower03)
package {
import flash.display.*;
public dynamic class bodyarmor_lower03 extends Sprite {
public function bodyarmor_lower03(){
super();
}
}
}//package
Section 126
//bodyarmor_lower04 (bodyarmor_lower04)
package {
import flash.display.*;
public dynamic class bodyarmor_lower04 extends Sprite {
public function bodyarmor_lower04(){
super();
}
}
}//package
Section 127
//bodyarmor_lower05 (bodyarmor_lower05)
package {
import flash.display.*;
public dynamic class bodyarmor_lower05 extends Sprite {
public function bodyarmor_lower05(){
super();
}
}
}//package
Section 128
//bodyarmor_lower06 (bodyarmor_lower06)
package {
import flash.display.*;
public dynamic class bodyarmor_lower06 extends Sprite {
public function bodyarmor_lower06(){
super();
}
}
}//package
Section 129
//bodyarmor_lower07 (bodyarmor_lower07)
package {
import flash.display.*;
public dynamic class bodyarmor_lower07 extends Sprite {
public function bodyarmor_lower07(){
super();
}
}
}//package
Section 130
//bodyarmor_rightthigh01 (bodyarmor_rightthigh01)
package {
import flash.display.*;
public dynamic class bodyarmor_rightthigh01 extends Sprite {
public function bodyarmor_rightthigh01(){
super();
}
}
}//package
Section 131
//bodyarmor_rightthigh02 (bodyarmor_rightthigh02)
package {
import flash.display.*;
public dynamic class bodyarmor_rightthigh02 extends Sprite {
public function bodyarmor_rightthigh02(){
super();
}
}
}//package
Section 132
//bodyarmor_rightthigh03 (bodyarmor_rightthigh03)
package {
import flash.display.*;
public dynamic class bodyarmor_rightthigh03 extends Sprite {
public function bodyarmor_rightthigh03(){
super();
}
}
}//package
Section 133
//bodyarmor_rightthigh04 (bodyarmor_rightthigh04)
package {
import flash.display.*;
public dynamic class bodyarmor_rightthigh04 extends Sprite {
public function bodyarmor_rightthigh04(){
super();
}
}
}//package
Section 134
//bodyarmor_rightthigh05 (bodyarmor_rightthigh05)
package {
import flash.display.*;
public dynamic class bodyarmor_rightthigh05 extends Sprite {
public function bodyarmor_rightthigh05(){
super();
}
}
}//package
Section 135
//bodyarmor_rightthigh06 (bodyarmor_rightthigh06)
package {
import flash.display.*;
public dynamic class bodyarmor_rightthigh06 extends Sprite {
public function bodyarmor_rightthigh06(){
super();
}
}
}//package
Section 136
//bodyarmor_rightthigh07 (bodyarmor_rightthigh07)
package {
import flash.display.*;
public dynamic class bodyarmor_rightthigh07 extends Sprite {
public function bodyarmor_rightthigh07(){
super();
}
}
}//package
Section 137
//bodyarmor_rightupperarm03 (bodyarmor_rightupperarm03)
package {
import flash.display.*;
public dynamic class bodyarmor_rightupperarm03 extends Sprite {
public function bodyarmor_rightupperarm03(){
super();
}
}
}//package
Section 138
//bodyarmor_rightupperarm04 (bodyarmor_rightupperarm04)
package {
import flash.display.*;
public dynamic class bodyarmor_rightupperarm04 extends Sprite {
public function bodyarmor_rightupperarm04(){
super();
}
}
}//package
Section 139
//bodyarmor_rightupperarm05 (bodyarmor_rightupperarm05)
package {
import flash.display.*;
public dynamic class bodyarmor_rightupperarm05 extends Sprite {
public function bodyarmor_rightupperarm05(){
super();
}
}
}//package
Section 140
//bodyarmor_rightupperarm06 (bodyarmor_rightupperarm06)
package {
import flash.display.*;
public dynamic class bodyarmor_rightupperarm06 extends Sprite {
public function bodyarmor_rightupperarm06(){
super();
}
}
}//package
Section 141
//bodyarmor_upper01 (bodyarmor_upper01)
package {
import flash.display.*;
public dynamic class bodyarmor_upper01 extends Sprite {
public function bodyarmor_upper01(){
super();
}
}
}//package
Section 142
//bodyarmor_upper02 (bodyarmor_upper02)
package {
import flash.display.*;
public dynamic class bodyarmor_upper02 extends Sprite {
public function bodyarmor_upper02(){
super();
}
}
}//package
Section 143
//bodyarmor_upper03 (bodyarmor_upper03)
package {
import flash.display.*;
public dynamic class bodyarmor_upper03 extends Sprite {
public function bodyarmor_upper03(){
super();
}
}
}//package
Section 144
//bodyarmor_upper04 (bodyarmor_upper04)
package {
import flash.display.*;
public dynamic class bodyarmor_upper04 extends Sprite {
public function bodyarmor_upper04(){
super();
}
}
}//package
Section 145
//bodyarmor_upper05 (bodyarmor_upper05)
package {
import flash.display.*;
public dynamic class bodyarmor_upper05 extends Sprite {
public function bodyarmor_upper05(){
super();
}
}
}//package
Section 146
//bodyarmor_upper06 (bodyarmor_upper06)
package {
import flash.display.*;
public dynamic class bodyarmor_upper06 extends Sprite {
public function bodyarmor_upper06(){
super();
}
}
}//package
Section 147
//bodyarmor_upper07 (bodyarmor_upper07)
package {
import flash.display.*;
public dynamic class bodyarmor_upper07 extends Sprite {
public function bodyarmor_upper07(){
super();
}
}
}//package
Section 148
//bomb_preloader (bomb_preloader)
package {
import flash.display.*;
public dynamic class bomb_preloader extends MovieClip {
public function bomb_preloader(){
super();
addFrameScript(192, frame193);
}
function frame193(){
stop();
}
}
}//package
Section 149
//boot_leftcalf01 (boot_leftcalf01)
package {
import flash.display.*;
public dynamic class boot_leftcalf01 extends Sprite {
public function boot_leftcalf01(){
super();
}
}
}//package
Section 150
//boot_leftcalf02 (boot_leftcalf02)
package {
import flash.display.*;
public dynamic class boot_leftcalf02 extends Sprite {
public function boot_leftcalf02(){
super();
}
}
}//package
Section 151
//boot_leftcalf03 (boot_leftcalf03)
package {
import flash.display.*;
public dynamic class boot_leftcalf03 extends Sprite {
public function boot_leftcalf03(){
super();
}
}
}//package
Section 152
//boot_leftcalf04 (boot_leftcalf04)
package {
import flash.display.*;
public dynamic class boot_leftcalf04 extends Sprite {
public function boot_leftcalf04(){
super();
}
}
}//package
Section 153
//boot_leftcalf05 (boot_leftcalf05)
package {
import flash.display.*;
public dynamic class boot_leftcalf05 extends Sprite {
public function boot_leftcalf05(){
super();
}
}
}//package
Section 154
//boot_leftcalf06 (boot_leftcalf06)
package {
import flash.display.*;
public dynamic class boot_leftcalf06 extends Sprite {
public function boot_leftcalf06(){
super();
}
}
}//package
Section 155
//boot_leftcalf07 (boot_leftcalf07)
package {
import flash.display.*;
public dynamic class boot_leftcalf07 extends Sprite {
public function boot_leftcalf07(){
super();
}
}
}//package
Section 156
//boot_leftfoot01 (boot_leftfoot01)
package {
import flash.display.*;
public dynamic class boot_leftfoot01 extends Sprite {
public function boot_leftfoot01(){
super();
}
}
}//package
Section 157
//boot_leftfoot02 (boot_leftfoot02)
package {
import flash.display.*;
public dynamic class boot_leftfoot02 extends Sprite {
public function boot_leftfoot02(){
super();
}
}
}//package
Section 158
//boot_leftfoot03 (boot_leftfoot03)
package {
import flash.display.*;
public dynamic class boot_leftfoot03 extends Sprite {
public function boot_leftfoot03(){
super();
}
}
}//package
Section 159
//boot_leftfoot04 (boot_leftfoot04)
package {
import flash.display.*;
public dynamic class boot_leftfoot04 extends Sprite {
public function boot_leftfoot04(){
super();
}
}
}//package
Section 160
//boot_leftfoot05 (boot_leftfoot05)
package {
import flash.display.*;
public dynamic class boot_leftfoot05 extends Sprite {
public function boot_leftfoot05(){
super();
}
}
}//package
Section 161
//boot_leftfoot06 (boot_leftfoot06)
package {
import flash.display.*;
public dynamic class boot_leftfoot06 extends Sprite {
public function boot_leftfoot06(){
super();
}
}
}//package
Section 162
//boot_leftfoot07 (boot_leftfoot07)
package {
import flash.display.*;
public dynamic class boot_leftfoot07 extends Sprite {
public function boot_leftfoot07(){
super();
}
}
}//package
Section 163
//boot_rightcalf01 (boot_rightcalf01)
package {
import flash.display.*;
public dynamic class boot_rightcalf01 extends Sprite {
public function boot_rightcalf01(){
super();
}
}
}//package
Section 164
//boot_rightcalf02 (boot_rightcalf02)
package {
import flash.display.*;
public dynamic class boot_rightcalf02 extends Sprite {
public function boot_rightcalf02(){
super();
}
}
}//package
Section 165
//boot_rightcalf03 (boot_rightcalf03)
package {
import flash.display.*;
public dynamic class boot_rightcalf03 extends Sprite {
public function boot_rightcalf03(){
super();
}
}
}//package
Section 166
//boot_rightcalf04 (boot_rightcalf04)
package {
import flash.display.*;
public dynamic class boot_rightcalf04 extends Sprite {
public function boot_rightcalf04(){
super();
}
}
}//package
Section 167
//boot_rightcalf05 (boot_rightcalf05)
package {
import flash.display.*;
public dynamic class boot_rightcalf05 extends Sprite {
public function boot_rightcalf05(){
super();
}
}
}//package
Section 168
//boot_rightcalf06 (boot_rightcalf06)
package {
import flash.display.*;
public dynamic class boot_rightcalf06 extends Sprite {
public function boot_rightcalf06(){
super();
}
}
}//package
Section 169
//boot_rightcalf07 (boot_rightcalf07)
package {
import flash.display.*;
public dynamic class boot_rightcalf07 extends Sprite {
public function boot_rightcalf07(){
super();
}
}
}//package
Section 170
//boot_rightfoot01 (boot_rightfoot01)
package {
import flash.display.*;
public dynamic class boot_rightfoot01 extends Sprite {
public function boot_rightfoot01(){
super();
}
}
}//package
Section 171
//boot_rightfoot02 (boot_rightfoot02)
package {
import flash.display.*;
public dynamic class boot_rightfoot02 extends Sprite {
public function boot_rightfoot02(){
super();
}
}
}//package
Section 172
//boot_rightfoot03 (boot_rightfoot03)
package {
import flash.display.*;
public dynamic class boot_rightfoot03 extends Sprite {
public function boot_rightfoot03(){
super();
}
}
}//package
Section 173
//boot_rightfoot04 (boot_rightfoot04)
package {
import flash.display.*;
public dynamic class boot_rightfoot04 extends Sprite {
public function boot_rightfoot04(){
super();
}
}
}//package
Section 174
//boot_rightfoot05 (boot_rightfoot05)
package {
import flash.display.*;
public dynamic class boot_rightfoot05 extends Sprite {
public function boot_rightfoot05(){
super();
}
}
}//package
Section 175
//boot_rightfoot06 (boot_rightfoot06)
package {
import flash.display.*;
public dynamic class boot_rightfoot06 extends Sprite {
public function boot_rightfoot06(){
super();
}
}
}//package
Section 176
//boot_rightfoot07 (boot_rightfoot07)
package {
import flash.display.*;
public dynamic class boot_rightfoot07 extends Sprite {
public function boot_rightfoot07(){
super();
}
}
}//package
Section 177
//credit_mc (credit_mc)
package {
import flash.display.*;
public dynamic class credit_mc extends MovieClip {
public var bClose:SimpleButton;
public function credit_mc(){
super();
}
}
}//package
Section 178
//debug_mc (debug_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class debug_mc extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt5:TextField;
public var txt6:TextField;
public var txt7:TextField;
public var txt8:TextField;
public var txt4:TextField;
public function debug_mc(){
super();
}
}
}//package
Section 179
//enemy_boss_mc (enemy_boss_mc)
package {
import flash.display.*;
public dynamic class enemy_boss_mc extends MovieClip {
public var _right_forearm:MovieClip;
public var _left_calf:MovieClip;
public var _left_foot:MovieClip;
public var _right_foot:MovieClip;
public var _right_upperarm:MovieClip;
public var _right_hand:MovieClip;
public var _right_thigh:MovieClip;
public var _left_hand:MovieClip;
public var _left_thigh:MovieClip;
public var _right_calf:MovieClip;
public var zoneBodyBox:MovieClip;
public var _left_upperarm:MovieClip;
public var _upperbody:MovieClip;
public var bodyBox:MovieClip;
public var _left_forearm:MovieClip;
public var _lowerbody:MovieClip;
public var _head:MovieClip;
public function enemy_boss_mc(){
super();
addFrameScript(16, frame17, 80, frame81, 145, frame146, 250, frame251, 318, frame319, 332, frame333, 364, frame365, 428, frame429, 459, frame460, 475, frame476);
}
function frame319(){
gotoAndPlay("standby");
}
function frame81(){
gotoAndPlay("walk");
}
function frame17(){
gotoAndPlay("standby");
}
function frame460(){
gotoAndPlay("standby");
}
function frame333(){
gotoAndPlay("standby");
}
function frame476(){
gotoAndPlay("standby");
}
function frame365(){
stop();
}
function frame251(){
gotoAndPlay("standby");
}
function frame146(){
gotoAndPlay("standby");
}
function frame429(){
gotoAndPlay("walk2");
}
}
}//package
Section 180
//enemy_mc (enemy_mc)
package {
import flash.display.*;
public dynamic class enemy_mc extends MovieClip {
public var _right_forearm:MovieClip;
public var _left_calf:MovieClip;
public var _left_foot:MovieClip;
public var _right_foot:MovieClip;
public var _right_upperarm:MovieClip;
public var _right_hand:MovieClip;
public var _right_thigh:MovieClip;
public var _left_hand:MovieClip;
public var _left_thigh:MovieClip;
public var _right_calf:MovieClip;
public var zoneBodyBox:MovieClip;
public var _left_upperarm:MovieClip;
public var _upperbody:MovieClip;
public var bodyBox:MovieClip;
public var _left_forearm:MovieClip;
public var _lowerbody:MovieClip;
public var _head:MovieClip;
public function enemy_mc(){
super();
addFrameScript(18, frame19, 52, frame53, 103, frame104, 156, frame157, 240, frame241, 252, frame253, 285, frame286, 320, frame321, 363, frame364, 413, frame414, 447, frame448, 483, frame484, 499, frame500);
}
function frame157(){
gotoAndPlay("standby");
}
function frame286(){
stop();
}
function frame321(){
gotoAndPlay("standby");
}
function frame448(){
gotoAndPlay("walk2");
}
function frame19(){
gotoAndPlay("standby");
}
function frame104(){
gotoAndPlay("standby");
}
function frame500(){
gotoAndPlay("standby");
}
function frame241(){
gotoAndPlay("standby");
}
function frame484(){
gotoAndPlay("standby");
}
function frame253(){
gotoAndPlay("standby");
}
function frame414(){
gotoAndPlay("standby");
}
function frame53(){
gotoAndPlay("walk");
}
function frame364(){
gotoAndPlay("standby");
}
}
}//package
Section 181
//glove_leftforearm01 (glove_leftforearm01)
package {
import flash.display.*;
public dynamic class glove_leftforearm01 extends Sprite {
public function glove_leftforearm01(){
super();
}
}
}//package
Section 182
//glove_leftforearm02 (glove_leftforearm02)
package {
import flash.display.*;
public dynamic class glove_leftforearm02 extends Sprite {
public function glove_leftforearm02(){
super();
}
}
}//package
Section 183
//glove_leftforearm03 (glove_leftforearm03)
package {
import flash.display.*;
public dynamic class glove_leftforearm03 extends Sprite {
public function glove_leftforearm03(){
super();
}
}
}//package
Section 184
//glove_leftforearm04 (glove_leftforearm04)
package {
import flash.display.*;
public dynamic class glove_leftforearm04 extends Sprite {
public function glove_leftforearm04(){
super();
}
}
}//package
Section 185
//glove_leftforearm05 (glove_leftforearm05)
package {
import flash.display.*;
public dynamic class glove_leftforearm05 extends Sprite {
public function glove_leftforearm05(){
super();
}
}
}//package
Section 186
//glove_leftforearm06 (glove_leftforearm06)
package {
import flash.display.*;
public dynamic class glove_leftforearm06 extends Sprite {
public function glove_leftforearm06(){
super();
}
}
}//package
Section 187
//glove_leftforearm07 (glove_leftforearm07)
package {
import flash.display.*;
public dynamic class glove_leftforearm07 extends Sprite {
public function glove_leftforearm07(){
super();
}
}
}//package
Section 188
//glove_lefthand01 (glove_lefthand01)
package {
import flash.display.*;
public dynamic class glove_lefthand01 extends Sprite {
public function glove_lefthand01(){
super();
}
}
}//package
Section 189
//glove_lefthand02 (glove_lefthand02)
package {
import flash.display.*;
public dynamic class glove_lefthand02 extends Sprite {
public function glove_lefthand02(){
super();
}
}
}//package
Section 190
//glove_lefthand03 (glove_lefthand03)
package {
import flash.display.*;
public dynamic class glove_lefthand03 extends Sprite {
public function glove_lefthand03(){
super();
}
}
}//package
Section 191
//glove_lefthand04 (glove_lefthand04)
package {
import flash.display.*;
public dynamic class glove_lefthand04 extends Sprite {
public function glove_lefthand04(){
super();
}
}
}//package
Section 192
//glove_lefthand06 (glove_lefthand06)
package {
import flash.display.*;
public dynamic class glove_lefthand06 extends Sprite {
public function glove_lefthand06(){
super();
}
}
}//package
Section 193
//glove_lefthand07 (glove_lefthand07)
package {
import flash.display.*;
public dynamic class glove_lefthand07 extends Sprite {
public function glove_lefthand07(){
super();
}
}
}//package
Section 194
//glove_rightforearm01 (glove_rightforearm01)
package {
import flash.display.*;
public dynamic class glove_rightforearm01 extends Sprite {
public function glove_rightforearm01(){
super();
}
}
}//package
Section 195
//glove_rightforearm02 (glove_rightforearm02)
package {
import flash.display.*;
public dynamic class glove_rightforearm02 extends Sprite {
public function glove_rightforearm02(){
super();
}
}
}//package
Section 196
//glove_rightforearm03 (glove_rightforearm03)
package {
import flash.display.*;
public dynamic class glove_rightforearm03 extends Sprite {
public function glove_rightforearm03(){
super();
}
}
}//package
Section 197
//glove_rightforearm04 (glove_rightforearm04)
package {
import flash.display.*;
public dynamic class glove_rightforearm04 extends Sprite {
public function glove_rightforearm04(){
super();
}
}
}//package
Section 198
//glove_rightforearm05 (glove_rightforearm05)
package {
import flash.display.*;
public dynamic class glove_rightforearm05 extends Sprite {
public function glove_rightforearm05(){
super();
}
}
}//package
Section 199
//glove_rightforearm06 (glove_rightforearm06)
package {
import flash.display.*;
public dynamic class glove_rightforearm06 extends Sprite {
public function glove_rightforearm06(){
super();
}
}
}//package
Section 200
//glove_rightforearm07 (glove_rightforearm07)
package {
import flash.display.*;
public dynamic class glove_rightforearm07 extends Sprite {
public function glove_rightforearm07(){
super();
}
}
}//package
Section 201
//glove_righthand02 (glove_righthand02)
package {
import flash.display.*;
public dynamic class glove_righthand02 extends Sprite {
public function glove_righthand02(){
super();
}
}
}//package
Section 202
//glove_righthand03 (glove_righthand03)
package {
import flash.display.*;
public dynamic class glove_righthand03 extends Sprite {
public function glove_righthand03(){
super();
}
}
}//package
Section 203
//glove_righthand05 (glove_righthand05)
package {
import flash.display.*;
public dynamic class glove_righthand05 extends Sprite {
public function glove_righthand05(){
super();
}
}
}//package
Section 204
//head_helmet01 (head_helmet01)
package {
import flash.display.*;
public dynamic class head_helmet01 extends Sprite {
public function head_helmet01(){
super();
}
}
}//package
Section 205
//head_helmet02 (head_helmet02)
package {
import flash.display.*;
public dynamic class head_helmet02 extends Sprite {
public function head_helmet02(){
super();
}
}
}//package
Section 206
//head_helmet03 (head_helmet03)
package {
import flash.display.*;
public dynamic class head_helmet03 extends Sprite {
public function head_helmet03(){
super();
}
}
}//package
Section 207
//head_helmet04 (head_helmet04)
package {
import flash.display.*;
public dynamic class head_helmet04 extends Sprite {
public function head_helmet04(){
super();
}
}
}//package
Section 208
//head_helmet05 (head_helmet05)
package {
import flash.display.*;
public dynamic class head_helmet05 extends Sprite {
public function head_helmet05(){
super();
}
}
}//package
Section 209
//head_helmet06 (head_helmet06)
package {
import flash.display.*;
public dynamic class head_helmet06 extends Sprite {
public function head_helmet06(){
super();
}
}
}//package
Section 210
//head_helmet07 (head_helmet07)
package {
import flash.display.*;
public dynamic class head_helmet07 extends Sprite {
public function head_helmet07(){
super();
}
}
}//package
Section 211
//head01 (head01)
package {
import flash.display.*;
public dynamic class head01 extends Sprite {
public function head01(){
super();
}
}
}//package
Section 212
//head02 (head02)
package {
import flash.display.*;
public dynamic class head02 extends Sprite {
public function head02(){
super();
}
}
}//package
Section 213
//hit_effect (hit_effect)
package {
import flash.display.*;
public dynamic class hit_effect extends MovieClip {
public function hit_effect(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 214
//instruction_mc (instruction_mc)
package {
import flash.display.*;
public dynamic class instruction_mc extends MovieClip {
public var bNext:SimpleButton;
public var bPrev:SimpleButton;
public var bClose:SimpleButton;
public function instruction_mc(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 215
//khonros_take_1 (khonros_take_1)
package {
import FZBase.Sound.*;
public dynamic class khonros_take_1 extends SE {
public function khonros_take_1(){
super();
}
}
}//package
Section 216
//khronos_combo_crazy_take_1 (khronos_combo_crazy_take_1)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_crazy_take_1 extends SE {
public function khronos_combo_crazy_take_1(){
super();
}
}
}//package
Section 217
//khronos_combo_EPIC_take_1 (khronos_combo_EPIC_take_1)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_EPIC_take_1 extends SE {
public function khronos_combo_EPIC_take_1(){
super();
}
}
}//package
Section 218
//khronos_combo_good_take_1 (khronos_combo_good_take_1)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_good_take_1 extends SE {
public function khronos_combo_good_take_1(){
super();
}
}
}//package
Section 219
//khronos_combo_great_take_1 (khronos_combo_great_take_1)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_great_take_1 extends SE {
public function khronos_combo_great_take_1(){
super();
}
}
}//package
Section 220
//khronos_combo_killing_spree_take_1 (khronos_combo_killing_spree_take_1)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_killing_spree_take_1 extends SE {
public function khronos_combo_killing_spree_take_1(){
super();
}
}
}//package
Section 221
//khronos_combo_madness_take_1 (khronos_combo_madness_take_1)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_madness_take_1 extends SE {
public function khronos_combo_madness_take_1(){
super();
}
}
}//package
Section 222
//khronos_combo_marvelous_take_1 (khronos_combo_marvelous_take_1)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_marvelous_take_1 extends SE {
public function khronos_combo_marvelous_take_1(){
super();
}
}
}//package
Section 223
//khronos_combo_mutelation_take_2 (khronos_combo_mutelation_take_2)
package {
import FZBase.Sound.*;
public dynamic class khronos_combo_mutelation_take_2 extends SE {
public function khronos_combo_mutelation_take_2(){
super();
}
}
}//package
Section 224
//left_calf01 (left_calf01)
package {
import flash.display.*;
public dynamic class left_calf01 extends Sprite {
public function left_calf01(){
super();
}
}
}//package
Section 225
//left_calf02 (left_calf02)
package {
import flash.display.*;
public dynamic class left_calf02 extends Sprite {
public function left_calf02(){
super();
}
}
}//package
Section 226
//left_foot01 (left_foot01)
package {
import flash.display.*;
public dynamic class left_foot01 extends Sprite {
public function left_foot01(){
super();
}
}
}//package
Section 227
//left_foot02 (left_foot02)
package {
import flash.display.*;
public dynamic class left_foot02 extends Sprite {
public function left_foot02(){
super();
}
}
}//package
Section 228
//left_forearm01 (left_forearm01)
package {
import flash.display.*;
public dynamic class left_forearm01 extends Sprite {
public function left_forearm01(){
super();
}
}
}//package
Section 229
//left_forearm02 (left_forearm02)
package {
import flash.display.*;
public dynamic class left_forearm02 extends Sprite {
public function left_forearm02(){
super();
}
}
}//package
Section 230
//left_hand01 (left_hand01)
package {
import flash.display.*;
public dynamic class left_hand01 extends Sprite {
public function left_hand01(){
super();
}
}
}//package
Section 231
//left_hand02 (left_hand02)
package {
import flash.display.*;
public dynamic class left_hand02 extends Sprite {
public function left_hand02(){
super();
}
}
}//package
Section 232
//left_thigh01 (left_thigh01)
package {
import flash.display.*;
public dynamic class left_thigh01 extends Sprite {
public function left_thigh01(){
super();
}
}
}//package
Section 233
//left_thigh02 (left_thigh02)
package {
import flash.display.*;
public dynamic class left_thigh02 extends Sprite {
public function left_thigh02(){
super();
}
}
}//package
Section 234
//left_upperarm01 (left_upperarm01)
package {
import flash.display.*;
public dynamic class left_upperarm01 extends Sprite {
public function left_upperarm01(){
super();
}
}
}//package
Section 235
//left_upperarm02 (left_upperarm02)
package {
import flash.display.*;
public dynamic class left_upperarm02 extends Sprite {
public function left_upperarm02(){
super();
}
}
}//package
Section 236
//lifeBar (lifeBar)
package {
import flash.display.*;
public dynamic class lifeBar extends MovieClip {
public var life:MovieClip;
public function lifeBar(){
super();
}
}
}//package
Section 237
//logo_mc (logo_mc)
package {
import flash.display.*;
public dynamic class logo_mc extends MovieClip {
public function logo_mc(){
super();
addFrameScript(234, frame235);
}
function frame235(){
stop();
}
}
}//package
Section 238
//lowerbody01 (lowerbody01)
package {
import flash.display.*;
public dynamic class lowerbody01 extends Sprite {
public function lowerbody01(){
super();
}
}
}//package
Section 239
//lowerbody02 (lowerbody02)
package {
import flash.display.*;
public dynamic class lowerbody02 extends Sprite {
public function lowerbody02(){
super();
}
}
}//package
Section 240
//main_chara_2_mc (main_chara_2_mc)
package {
import flash.display.*;
public dynamic class main_chara_2_mc extends MovieClip {
public var zoneAttackBox:MovieClip;
public var attackBox:MovieClip;
public var zoneBodyBox:MovieClip;
public var right_grip_mc:MovieClip;
public var bodyBox:MovieClip;
public function main_chara_2_mc(){
super();
addFrameScript(19, frame20, 62, frame63, 78, frame79, 116, frame117, 175, frame176, 219, frame220, 285, frame286, 346, frame347, 432, frame433, 464, frame465, 515, frame516, 565, frame566, 636, frame637, 645, frame646, 728, frame729, 749, frame750, 757, frame758);
}
function frame433(){
gotoAndPlay("standby");
}
function frame79(){
gotoAndPlay("run");
}
function frame286(){
gotoAndPlay("standby");
}
function frame729(){
gotoAndPlay("standby");
}
function frame176(){
gotoAndPlay("standby");
}
function frame465(){
gotoAndPlay("standby");
}
function frame347(){
gotoAndPlay("standby");
}
function frame220(){
gotoAndPlay("standby");
}
function frame20(){
gotoAndPlay("standby");
}
function frame566(){
gotoAndPlay("standby");
}
function frame117(){
gotoAndPlay("standby");
}
function frame750(){
stop();
}
function frame516(){
gotoAndPlay("standby");
}
function frame637(){
gotoAndPlay("standby");
}
function frame646(){
gotoAndPlay("standby");
}
function frame758(){
gotoAndPlay("standby");
}
function frame63(){
gotoAndPlay("walk");
}
}
}//package
Section 241
//main_chara_3_mc (main_chara_3_mc)
package {
import flash.display.*;
public dynamic class main_chara_3_mc extends MovieClip {
public var zoneAttackBox:MovieClip;
public var attackBox:MovieClip;
public var zoneBodyBox:MovieClip;
public var right_grip_mc:MovieClip;
public var bodyBox:MovieClip;
public function main_chara_3_mc(){
super();
addFrameScript(19, frame20, 62, frame63, 78, frame79, 116, frame117, 175, frame176, 219, frame220, 285, frame286, 346, frame347, 432, frame433, 464, frame465, 515, frame516, 565, frame566, 636, frame637, 645, frame646, 728, frame729, 749, frame750, 757, frame758);
}
function frame433(){
gotoAndPlay("standby");
}
function frame79(){
gotoAndPlay("run");
}
function frame286(){
gotoAndPlay("standby");
}
function frame729(){
gotoAndPlay("standby");
}
function frame176(){
gotoAndPlay("standby");
}
function frame465(){
gotoAndPlay("standby");
}
function frame347(){
gotoAndPlay("standby");
}
function frame220(){
gotoAndPlay("standby");
}
function frame20(){
gotoAndPlay("standby");
}
function frame566(){
gotoAndPlay("standby");
}
function frame117(){
gotoAndPlay("standby");
}
function frame750(){
stop();
}
function frame516(){
gotoAndPlay("standby");
}
function frame637(){
gotoAndPlay("standby");
}
function frame646(){
gotoAndPlay("standby");
}
function frame758(){
gotoAndPlay("standby");
}
function frame63(){
gotoAndPlay("walk");
}
}
}//package
Section 242
//main_chara_4_mc (main_chara_4_mc)
package {
import flash.display.*;
public dynamic class main_chara_4_mc extends MovieClip {
public var zoneAttackBox:MovieClip;
public var attackBox:MovieClip;
public var zoneBodyBox:MovieClip;
public var right_grip_mc:MovieClip;
public var bodyBox:MovieClip;
public function main_chara_4_mc(){
super();
addFrameScript(19, frame20, 62, frame63, 78, frame79, 116, frame117, 175, frame176, 219, frame220, 285, frame286, 346, frame347, 432, frame433, 464, frame465, 515, frame516, 565, frame566, 636, frame637, 645, frame646, 728, frame729, 749, frame750, 757, frame758);
}
function frame433(){
gotoAndPlay("standby");
}
function frame79(){
gotoAndPlay("run");
}
function frame286(){
gotoAndPlay("standby");
}
function frame729(){
gotoAndPlay("standby");
}
function frame176(){
gotoAndPlay("standby");
}
function frame465(){
gotoAndPlay("standby");
}
function frame347(){
gotoAndPlay("standby");
}
function frame220(){
gotoAndPlay("standby");
}
function frame20(){
gotoAndPlay("standby");
}
function frame566(){
gotoAndPlay("standby");
}
function frame117(){
gotoAndPlay("standby");
}
function frame750(){
stop();
}
function frame516(){
gotoAndPlay("standby");
}
function frame637(){
gotoAndPlay("standby");
}
function frame646(){
gotoAndPlay("standby");
}
function frame758(){
gotoAndPlay("standby");
}
function frame63(){
gotoAndPlay("walk");
}
}
}//package
Section 243
//main_chara_5_mc (main_chara_5_mc)
package {
import flash.display.*;
public dynamic class main_chara_5_mc extends MovieClip {
public var zoneAttackBox:MovieClip;
public var attackBox:MovieClip;
public var zoneBodyBox:MovieClip;
public var right_grip_mc:MovieClip;
public var bodyBox:MovieClip;
public function main_chara_5_mc(){
super();
addFrameScript(19, frame20, 62, frame63, 78, frame79, 116, frame117, 175, frame176, 219, frame220, 285, frame286, 346, frame347, 432, frame433, 464, frame465, 515, frame516, 565, frame566, 636, frame637, 645, frame646, 728, frame729, 749, frame750, 757, frame758);
}
function frame433(){
gotoAndPlay("standby");
}
function frame79(){
gotoAndPlay("run");
}
function frame286(){
gotoAndPlay("standby");
}
function frame729(){
gotoAndPlay("standby");
}
function frame176(){
gotoAndPlay("standby");
}
function frame465(){
gotoAndPlay("standby");
}
function frame347(){
gotoAndPlay("standby");
}
function frame220(){
gotoAndPlay("standby");
}
function frame20(){
gotoAndPlay("standby");
}
function frame566(){
gotoAndPlay("standby");
}
function frame117(){
gotoAndPlay("standby");
}
function frame750(){
stop();
}
function frame516(){
gotoAndPlay("standby");
}
function frame637(){
gotoAndPlay("standby");
}
function frame646(){
gotoAndPlay("standby");
}
function frame758(){
gotoAndPlay("standby");
}
function frame63(){
gotoAndPlay("walk");
}
}
}//package
Section 244
//main_chara_berserk_mc (main_chara_berserk_mc)
package {
import flash.display.*;
public dynamic class main_chara_berserk_mc extends MovieClip {
public var zoneAttackBox:MovieClip;
public var attackBox:MovieClip;
public var zoneBodyBox:MovieClip;
public var right_grip_mc:MovieClip;
public var bodyBox:MovieClip;
public function main_chara_berserk_mc(){
super();
addFrameScript(19, frame20, 62, frame63, 78, frame79, 116, frame117, 175, frame176, 219, frame220, 285, frame286, 346, frame347, 432, frame433, 464, frame465, 515, frame516, 565, frame566, 636, frame637, 645, frame646, 728, frame729, 749, frame750, 757, frame758);
}
function frame433(){
gotoAndPlay("standby");
}
function frame79(){
gotoAndPlay("run");
}
function frame286(){
gotoAndPlay("standby");
}
function frame729(){
gotoAndPlay("standby");
}
function frame176(){
gotoAndPlay("standby");
}
function frame465(){
gotoAndPlay("standby");
}
function frame347(){
gotoAndPlay("standby");
}
function frame220(){
gotoAndPlay("standby");
}
function frame20(){
gotoAndPlay("standby");
}
function frame566(){
gotoAndPlay("standby");
}
function frame117(){
gotoAndPlay("standby");
}
function frame750(){
stop();
}
function frame516(){
gotoAndPlay("standby");
}
function frame637(){
gotoAndPlay("standby");
}
function frame646(){
gotoAndPlay("standby");
}
function frame758(){
gotoAndPlay("standby");
}
function frame63(){
gotoAndPlay("walk");
}
}
}//package
Section 245
//main_chara_mc (main_chara_mc)
package {
import flash.display.*;
public dynamic class main_chara_mc extends MovieClip {
public var zoneAttackBox:MovieClip;
public var attackBox:MovieClip;
public var zoneBodyBox:MovieClip;
public var right_grip_mc:MovieClip;
public var bodyBox:MovieClip;
public function main_chara_mc(){
super();
addFrameScript(19, frame20, 62, frame63, 78, frame79, 116, frame117, 175, frame176, 219, frame220, 285, frame286, 346, frame347, 432, frame433, 464, frame465, 515, frame516, 565, frame566, 636, frame637, 645, frame646, 728, frame729, 749, frame750, 757, frame758);
}
function frame433(){
gotoAndPlay("standby");
}
function frame79(){
gotoAndPlay("run");
}
function frame286(){
gotoAndPlay("standby");
}
function frame729(){
gotoAndPlay("standby");
}
function frame176(){
gotoAndPlay("standby");
}
function frame465(){
gotoAndPlay("standby");
}
function frame347(){
gotoAndPlay("standby");
}
function frame220(){
gotoAndPlay("standby");
}
function frame20(){
gotoAndPlay("standby");
}
function frame566(){
gotoAndPlay("standby");
}
function frame117(){
gotoAndPlay("standby");
}
function frame750(){
stop();
}
function frame516(){
gotoAndPlay("standby");
}
function frame637(){
gotoAndPlay("standby");
}
function frame646(){
gotoAndPlay("standby");
}
function frame758(){
gotoAndPlay("standby");
}
function frame63(){
gotoAndPlay("walk");
}
}
}//package
Section 246
//main_menu_mc (main_menu_mc)
package {
import flash.display.*;
public dynamic class main_menu_mc extends MovieClip {
public var select:MovieClip;
public var bStatistic:SimpleButton;
public var bAward:SimpleButton;
public var bPlayMore:SimpleButton;
public var bLevel2:SimpleButton;
public var bLevel3:SimpleButton;
public var bStart:SimpleButton;
public var bLevel1:SimpleButton;
public var soundToggle:MovieClip;
public var bBack:SimpleButton;
public var bAddGame:SimpleButton;
public var bNext:SimpleButton;
public var bCredit:SimpleButton;
public var bAchive:SimpleButton;
public var bPrev:SimpleButton;
public var bPlay:SimpleButton;
public var bInstruction:SimpleButton;
public var bSurvival:SimpleButton;
public var bArtLogicLink:SimpleButton;
public var bArcadeBombLink:SimpleButton;
public function main_menu_mc(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 247
//part_left_hand (part_left_hand)
package {
import flash.display.*;
public dynamic class part_left_hand extends Sprite {
public function part_left_hand(){
super();
}
}
}//package
Section 248
//prologue_mc (prologue_mc)
package {
import flash.display.*;
public dynamic class prologue_mc extends MovieClip {
public var bSkip:SimpleButton;
public var bPlay:SimpleButton;
public function prologue_mc(){
super();
addFrameScript(2408, frame2409);
}
function frame2409(){
stop();
}
}
}//package
Section 249
//right_calf01 (right_calf01)
package {
import flash.display.*;
public dynamic class right_calf01 extends Sprite {
public function right_calf01(){
super();
}
}
}//package
Section 250
//right_calf02 (right_calf02)
package {
import flash.display.*;
public dynamic class right_calf02 extends Sprite {
public function right_calf02(){
super();
}
}
}//package
Section 251
//right_foot01 (right_foot01)
package {
import flash.display.*;
public dynamic class right_foot01 extends Sprite {
public function right_foot01(){
super();
}
}
}//package
Section 252
//right_foot02 (right_foot02)
package {
import flash.display.*;
public dynamic class right_foot02 extends Sprite {
public function right_foot02(){
super();
}
}
}//package
Section 253
//right_forearm01 (right_forearm01)
package {
import flash.display.*;
public dynamic class right_forearm01 extends Sprite {
public function right_forearm01(){
super();
}
}
}//package
Section 254
//right_forearm02 (right_forearm02)
package {
import flash.display.*;
public dynamic class right_forearm02 extends Sprite {
public function right_forearm02(){
super();
}
}
}//package
Section 255
//right_hand01 (right_hand01)
package {
import flash.display.*;
public dynamic class right_hand01 extends Sprite {
public function right_hand01(){
super();
}
}
}//package
Section 256
//right_hand02 (right_hand02)
package {
import flash.display.*;
public dynamic class right_hand02 extends Sprite {
public function right_hand02(){
super();
}
}
}//package
Section 257
//right_thigh01 (right_thigh01)
package {
import flash.display.*;
public dynamic class right_thigh01 extends Sprite {
public function right_thigh01(){
super();
}
}
}//package
Section 258
//right_thigh02 (right_thigh02)
package {
import flash.display.*;
public dynamic class right_thigh02 extends Sprite {
public function right_thigh02(){
super();
}
}
}//package
Section 259
//right_upperarm01 (right_upperarm01)
package {
import flash.display.*;
public dynamic class right_upperarm01 extends Sprite {
public function right_upperarm01(){
super();
}
}
}//package
Section 260
//right_upperarm02 (right_upperarm02)
package {
import flash.display.*;
public dynamic class right_upperarm02 extends Sprite {
public function right_upperarm02(){
super();
}
}
}//package
Section 261
//scoring_mc (scoring_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class scoring_mc extends MovieClip {
public var counter:TextField;
public var bContinue:SimpleButton;
public var big_kill:TextField;
public var combo:TextField;
public var score:TextField;
public var small_kill:TextField;
public var special:TextField;
public var total_score:TextField;
public function scoring_mc(){
super();
}
}
}//package
Section 262
//se_break1 (se_break1)
package {
import FZBase.Sound.*;
public dynamic class se_break1 extends SE {
public function se_break1(){
super();
}
}
}//package
Section 263
//se_break2 (se_break2)
package {
import FZBase.Sound.*;
public dynamic class se_break2 extends SE {
public function se_break2(){
super();
}
}
}//package
Section 264
//se_break3 (se_break3)
package {
import FZBase.Sound.*;
public dynamic class se_break3 extends SE {
public function se_break3(){
super();
}
}
}//package
Section 265
//se_clang (se_clang)
package {
import FZBase.Sound.*;
public dynamic class se_clang extends SE {
public function se_clang(){
super();
}
}
}//package
Section 266
//se_cut1 (se_cut1)
package {
import FZBase.Sound.*;
public dynamic class se_cut1 extends SE {
public function se_cut1(){
super();
}
}
}//package
Section 267
//se_cut2 (se_cut2)
package {
import FZBase.Sound.*;
public dynamic class se_cut2 extends SE {
public function se_cut2(){
super();
}
}
}//package
Section 268
//se_cut3 (se_cut3)
package {
import FZBase.Sound.*;
public dynamic class se_cut3 extends SE {
public function se_cut3(){
super();
}
}
}//package
Section 269
//se_evilsmile (se_evilsmile)
package {
import FZBase.Sound.*;
public dynamic class se_evilsmile extends SE {
public function se_evilsmile(){
super();
}
}
}//package
Section 270
//se_flash (se_flash)
package {
import FZBase.Sound.*;
public dynamic class se_flash extends SE {
public function se_flash(){
super();
}
}
}//package
Section 271
//se_hit1 (se_hit1)
package {
import FZBase.Sound.*;
public dynamic class se_hit1 extends SE {
public function se_hit1(){
super();
}
}
}//package
Section 272
//se_hit2 (se_hit2)
package {
import FZBase.Sound.*;
public dynamic class se_hit2 extends SE {
public function se_hit2(){
super();
}
}
}//package
Section 273
//se_hit3 (se_hit3)
package {
import FZBase.Sound.*;
public dynamic class se_hit3 extends SE {
public function se_hit3(){
super();
}
}
}//package
Section 274
//se_jump (se_jump)
package {
import FZBase.Sound.*;
public dynamic class se_jump extends SE {
public function se_jump(){
super();
}
}
}//package
Section 275
//se_landing (se_landing)
package {
import FZBase.Sound.*;
public dynamic class se_landing extends SE {
public function se_landing(){
super();
}
}
}//package
Section 276
//se_swing1 (se_swing1)
package {
import FZBase.Sound.*;
public dynamic class se_swing1 extends SE {
public function se_swing1(){
super();
}
}
}//package
Section 277
//se_swing2 (se_swing2)
package {
import FZBase.Sound.*;
public dynamic class se_swing2 extends SE {
public function se_swing2(){
super();
}
}
}//package
Section 278
//se_swing3 (se_swing3)
package {
import FZBase.Sound.*;
public dynamic class se_swing3 extends SE {
public function se_swing3(){
super();
}
}
}//package
Section 279
//se_thurst (se_thurst)
package {
import FZBase.Sound.*;
public dynamic class se_thurst extends SE {
public function se_thurst(){
super();
}
}
}//package
Section 280
//se_wave (se_wave)
package {
import FZBase.Sound.*;
public dynamic class se_wave extends SE {
public function se_wave(){
super();
}
}
}//package
Section 281
//slash_effect (slash_effect)
package {
import flash.display.*;
public dynamic class slash_effect extends Sprite {
public function slash_effect(){
super();
}
}
}//package
Section 282
//statistic_mc (statistic_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class statistic_mc extends MovieClip {
public var best_step:TextField;
public var best_score:TextField;
public var best_combo:TextField;
public var bClose:SimpleButton;
public var best_kill:TextField;
public var total_achiev:TextField;
public function statistic_mc(){
super();
}
}
}//package
Section 283
//upperbody01 (upperbody01)
package {
import flash.display.*;
public dynamic class upperbody01 extends Sprite {
public function upperbody01(){
super();
}
}
}//package
Section 284
//upperbody02 (upperbody02)
package {
import flash.display.*;
public dynamic class upperbody02 extends Sprite {
public function upperbody02(){
super();
}
}
}//package
Section 285
//wpn_blade01 (wpn_blade01)
package {
import flash.display.*;
public dynamic class wpn_blade01 extends Sprite {
public function wpn_blade01(){
super();
}
}
}//package
Section 286
//wpn_blade02 (wpn_blade02)
package {
import flash.display.*;
public dynamic class wpn_blade02 extends Sprite {
public function wpn_blade02(){
super();
}
}
}//package
Section 287
//wpn_blade03 (wpn_blade03)
package {
import flash.display.*;
public dynamic class wpn_blade03 extends Sprite {
public function wpn_blade03(){
super();
}
}
}//package
Section 288
//wpn_blade04 (wpn_blade04)
package {
import flash.display.*;
public dynamic class wpn_blade04 extends Sprite {
public function wpn_blade04(){
super();
}
}
}//package
Section 289
//wpn_blade05 (wpn_blade05)
package {
import flash.display.*;
public dynamic class wpn_blade05 extends Sprite {
public function wpn_blade05(){
super();
}
}
}//package
Section 290
//wpn_blade06 (wpn_blade06)
package {
import flash.display.*;
public dynamic class wpn_blade06 extends Sprite {
public function wpn_blade06(){
super();
}
}
}//package
Section 291
//wpn_blade07 (wpn_blade07)
package {
import flash.display.*;
public dynamic class wpn_blade07 extends Sprite {
public function wpn_blade07(){
super();
}
}
}//package
Section 292
//wpn_blade08 (wpn_blade08)
package {
import flash.display.*;
public dynamic class wpn_blade08 extends Sprite {
public function wpn_blade08(){
super();
}
}
}//package