Section 1
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 2
//b__336 (flu_sweeper_fla.b__336)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class b__336 extends MovieClip {
public function b__336(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 20, frame21, 30, frame31);
}
function frame1(){
stop();
}
function frame21(){
this.pic.gotoAndStop("unavailable");
}
function frame2(){
this.pic.gotoAndStop("up");
}
function frame31(){
this.pic.gotoAndStop("lock");
}
function frame11(){
this.pic.gotoAndStop("over");
}
}
}//package flu_sweeper_fla
Section 3
//b_mute_270 (flu_sweeper_fla.b_mute_270)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class b_mute_270 extends MovieClip {
public function b_mute_270(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flu_sweeper_fla
Section 4
//bar_root_18 (flu_sweeper_fla.bar_root_18)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package flu_sweeper_fla
Section 5
//BG_2 (flu_sweeper_fla.BG_2)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).gotoAndStop(2);
}
}
}//package flu_sweeper_fla
Section 6
//im_hero_304 (flu_sweeper_fla.im_hero_304)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class im_hero_304 extends MovieClip {
public function im_hero_304(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flu_sweeper_fla
Section 7
//LOGOEND_43 (flu_sweeper_fla.LOGOEND_43)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class LOGOEND_43 extends MovieClip {
public function LOGOEND_43(){
addFrameScript(132, frame133);
}
function frame133(){
MovieClip(root).play();
stop();
}
}
}//package flu_sweeper_fla
Section 8
//LOGOPRELOAD_0_23 (flu_sweeper_fla.LOGOPRELOAD_0_23)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_0_23 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_0_23(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 9
//LOGOPRELOAD_1_27 (flu_sweeper_fla.LOGOPRELOAD_1_27)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_1_27 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_1_27(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 10
//LOGOPRELOAD_2_30 (flu_sweeper_fla.LOGOPRELOAD_2_30)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_2_30 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_2_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 11
//LOGOPRELOAD_3_32 (flu_sweeper_fla.LOGOPRELOAD_3_32)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_3_32 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_3_32(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 12
//LOGOPRELOAD_4_34 (flu_sweeper_fla.LOGOPRELOAD_4_34)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_4_34 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_4_34(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 13
//LOGOPRELOAD_5_36 (flu_sweeper_fla.LOGOPRELOAD_5_36)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_5_36 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_5_36(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 14
//LOGOPRELOAD_6_38 (flu_sweeper_fla.LOGOPRELOAD_6_38)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_6_38 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_6_38(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 15
//LOGOPRELOAD_7_40 (flu_sweeper_fla.LOGOPRELOAD_7_40)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_7_40 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_7_40(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package flu_sweeper_fla
Section 16
//m_attribute_panel_337 (flu_sweeper_fla.m_attribute_panel_337)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_attribute_panel_337 extends MovieClip {
public var num_mp:TextField;
public var b_up_hp:SimpleButton;
public var b_tomofun:SimpleButton;
public var myLevel:TextField;
public var num_atk:TextField;
public var part;
public var num_hp:TextField;
public var b_up_atk:SimpleButton;
public var atb;
public var b_up_mp:SimpleButton;
public var im_detail:MovieClip;
public var b_okay:SimpleButton;
public var atb_point:TextField;
public function m_attribute_panel_337(){
addFrameScript(0, frame1, 1, frame2);
}
public function tomofun(_arg1:Event){
atb.parent.playMoreGameTitle();
}
public function check_userAttribute(){
if (part.userAttribute == 0){
part.userAttribute = 1;
} else {
if (part.userAttribute == 1){
part.userAttribute = 2;
};
};
}
public function onRoll(_arg1:Event){
trace("onRoll");
}
public function up_hp(_arg1:Event){
var _local2:*;
_local2 = 1;
if (part.atb_point >= _local2){
check_userAttribute();
part.atb_point = (part.atb_point - _local2);
part.atbHp = (part.atbHp + 5);
part.set_status(true, false, false);
};
}
public function up_atk(_arg1:Event){
var _local2:*;
_local2 = 1;
if (part.atb_point >= _local2){
check_userAttribute();
part.atb_point = (part.atb_point - _local2);
part.atbAt = (part.atbAt + 1);
part.set_status(false, false, true);
};
}
function frame1(){
atb = this;
part = MovieClip(atb.parent.gcode);
atb.num_hp.text = (part.atbHp / 5);
atb.num_mp.text = (part.atbMp / 5);
atb.num_atk.text = part.atbAt;
}
public function clear_listener(){
}
function frame2(){
if (atb == null){
atb = this;
part = MovieClip(atb.parent.gcode);
};
atb.myLevel.text = part.myLevel;
atb.atb_point.text = part.atb_point;
atb.im_detail.gotoAndStop(part.rev_data[(part.rev_data.length - 1)]);
atb.b_okay.addEventListener(MouseEvent.MOUSE_DOWN, okay_click);
atb.b_up_hp.addEventListener(MouseEvent.MOUSE_DOWN, up_hp);
atb.b_up_mp.addEventListener(MouseEvent.MOUSE_DOWN, up_mp);
atb.b_up_atk.addEventListener(MouseEvent.MOUSE_DOWN, up_atk);
atb.b_tomofun.addEventListener(MouseEvent.MOUSE_DOWN, tomofun);
}
public function okay_click(_arg1:Event){
part.up_down_sound(part.soundbmg, part.soundNum);
atb.x = (atb.x + atb.width);
part.gamepause = false;
play();
}
public function up_mp(_arg1:Event){
var _local2:*;
_local2 = 1;
if (part.atb_point >= _local2){
check_userAttribute();
part.atb_point = (part.atb_point - _local2);
part.atbMp = (part.atbMp + 5);
part.set_status(false, true, false);
};
}
}
}//package flu_sweeper_fla
Section 17
//m_boss_movie_352 (flu_sweeper_fla.m_boss_movie_352)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_boss_movie_352 extends MovieClip {
public var part;
public var atb;
public var b_next:SimpleButton;
public var nummc;
public function m_boss_movie_352(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 20, frame21, 30, frame31, 40, frame41, 50, frame51, 60, frame61, 70, frame71);
}
function frame71(){
nummc = 2;
part.createSound("stage4b_1");
}
function frame1(){
try {
nummc = 1;
atb = this;
part = MovieClip(atb.parent.gcode);
b_next.addEventListener(MouseEvent.MOUSE_DOWN, b_nextPress);
stop();
} catch(error) {
trace("bug");
};
}
function frame21(){
nummc = 1;
part.createSound("stage2");
}
function frame2(){
part.createSound("stage1_1");
}
public function b_nextPress(_arg1:Event){
var _local2:*;
if (nummc == 1){
atb.x = (atb.x + atb.width);
part.gamepause = false;
part.Startgame();
part.up_down_sound(part.soundbmg, part.soundNum);
part.up_down_sound(part.soundList, 0);
} else {
if (nummc == 2){
part.clear_object();
part.destroy(part.boss);
part.boss = null;
part.apButton = false;
atb.x = (atb.x + atb.width);
_local2 = atb.parent.m_stage_clear;
_local2.x = (part.sw / 2);
_local2.y = (part.sh / 2);
_local2.gotoAndPlay(2);
part.up_down_sound(part.soundbmg, part.soundNum);
part.up_down_sound(part.soundList, 0);
};
};
}
function frame31(){
nummc = 2;
part.createSound("stage2b_1");
}
function frame11(){
nummc = 2;
part.createSound("stage1b_1");
}
function frame41(){
nummc = 1;
part.createSound("stage3");
}
function frame51(){
nummc = 2;
part.createSound("stage3b");
}
function frame61(){
nummc = 1;
part.createSound("stage4_1");
}
}
}//package flu_sweeper_fla
Section 18
//m_bossHp_gauge_297 (flu_sweeper_fla.m_bossHp_gauge_297)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_bossHp_gauge_297 extends MovieClip {
public var maskLine;
public var hp;
public var hpLine;
public var hpTotal;
public var n_hpTotal:TextField;
public var remain;
public var n_hp:TextField;
public var m_bossHp_line:MovieClip;
public function m_bossHp_gauge_297(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
hpLine = this;
}
function frame2(){
try {
if (((!((MovieClip(hpLine.parent).gcode.boss == null))) && ((MovieClip(hpLine.parent).gcode.boss.hp > -1)))){
hpLine.y = (hpLine.height / 2);
if (MovieClip(hpLine.parent).gcode.boss.hp > MovieClip(hpLine.parent).gcode.boss.hpTotal){
MovieClip(hpLine.parent).gcode.boss.hp = MovieClip(hpLine.parent).gcode.boss.hpTotal;
};
hpTotal = MovieClip(hpLine.parent).gcode.boss.hpTotal;
hp = MovieClip(hpLine.parent).gcode.boss.hp;
hpLine.n_hp.text = hp;
hpLine.n_hpTotal.text = hpTotal;
remain = (((hp * 100) / hpTotal) / 100);
maskLine = (m_bossHp_line.width * remain);
m_bossHp_line.x = maskLine;
} else {
hpLine.y = -(hpLine.height);
};
} catch(error) {
trace("bug : MovieClip recovery hp ของ boss ใน flash");
};
}
}
}//package flu_sweeper_fla
Section 19
//m_des_303 (flu_sweeper_fla.m_des_303)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class m_des_303 extends MovieClip {
public function m_des_303(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flu_sweeper_fla
Section 20
//m_exp_gauge_267 (flu_sweeper_fla.m_exp_gauge_267)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_exp_gauge_267 extends MovieClip {
public var maskLine;
public var n_expTotal:TextField;
public var expTotal;
public var m_exp_line:MovieClip;
public var remain;
public var n_EXP:TextField;
public var expLine;
public var EXP;
public function m_exp_gauge_267(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
expLine = this;
}
function frame2(){
try {
if (MovieClip(expLine.parent).gcode.EXP > MovieClip(expLine.parent).gcode.expTotal){
MovieClip(expLine.parent).gcode.EXP = MovieClip(expLine.parent).gcode.expTotal;
};
expTotal = MovieClip(expLine.parent).gcode.expTotal;
EXP = MovieClip(expLine.parent).gcode.EXP;
expLine.n_EXP.text = EXP;
expLine.n_expTotal.text = expTotal;
remain = (((EXP * 100) / expTotal) / 100);
maskLine = (m_exp_line.width * remain);
m_exp_line.x = maskLine;
} catch(error) {
trace("bug : MovieClip m_mo_gauqe ใน flash");
};
}
}
}//package flu_sweeper_fla
Section 21
//m_feature_lock_257 (flu_sweeper_fla.m_feature_lock_257)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_feature_lock_257 extends MovieClip {
public var _this;
public var b_okay:SimpleButton;
public var b_playonweb:MovieClip;
public function m_feature_lock_257(){
addFrameScript(0, frame1);
}
public function okay(_arg1:Event){
_this.visible = false;
}
public function web(_arg1:Event){
var e = _arg1;
try {
_this.parent.achievements();
} catch(e) {
_this.parent.parent.achievements();
};
}
function frame1(){
_this = this;
_this.b_okay.addEventListener(MouseEvent.MOUSE_DOWN, okay);
_this.b_playonweb.addEventListener(MouseEvent.MOUSE_DOWN, web);
}
}
}//package flu_sweeper_fla
Section 22
//m_gameover_261 (flu_sweeper_fla.m_gameover_261)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_gameover_261 extends MovieClip {
public var part;
public function m_gameover_261(){
addFrameScript(0, frame1, 82, frame83);
}
function frame1(){
stop();
}
function frame83(){
part = MovieClip(this.parent).gcode;
this.y = (part.sh + this.height);
part.freeSystemListener();
part.parent.gotoAndPlay(1, "submit");
}
}
}//package flu_sweeper_fla
Section 23
//m_hp_gauge_263 (flu_sweeper_fla.m_hp_gauge_263)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_hp_gauge_263 extends MovieClip {
public var m_hp_line:MovieClip;
public var hp;
public var hpLine;
public var maskLine;
public var hpTotal;
public var n_hpTotal:TextField;
public var remain;
public var n_hp:TextField;
public var recovery;
public function m_hp_gauge_263(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
hpLine = this;
}
function frame2(){
try {
recovery = Math.round((MovieClip(hpLine.parent).gcode.hpTotal * MovieClip(hpLine.parent).gcode.hp_re_per));
if (MovieClip(hpLine.parent).gcode.hp_re_time < MovieClip(hpLine.parent).gcode.mainTime){
MovieClip(hpLine.parent).gcode.hp_re_time = (MovieClip(hpLine.parent).gcode.mainTime + MovieClip(hpLine.parent).gcode.hp_re_next_time);
MovieClip(hpLine.parent).gcode.hp = (MovieClip(hpLine.parent).gcode.hp + recovery);
MovieClip(hpLine.parent).gcode.create_heal(MovieClip(hpLine.parent).gcode.player, recovery);
};
if (MovieClip(hpLine.parent).gcode.hp > MovieClip(hpLine.parent).gcode.hpTotal){
MovieClip(hpLine.parent).gcode.hp = MovieClip(hpLine.parent).gcode.hpTotal;
};
hpTotal = MovieClip(hpLine.parent).gcode.hpTotal;
hp = MovieClip(hpLine.parent).gcode.hp;
hpLine.n_hp.text = hp;
hpLine.n_hpTotal.text = hpTotal;
remain = (((hp * 100) / hpTotal) / 100);
maskLine = (m_hp_line.width * remain);
m_hp_line.x = maskLine;
} catch(error) {
trace("bug : MovieClip recovery hp ใน flash");
};
}
}
}//package flu_sweeper_fla
Section 24
//m_mp_gauge_265 (flu_sweeper_fla.m_mp_gauge_265)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_mp_gauge_265 extends MovieClip {
public var maskLine;
public var n_mp:TextField;
public var m_mp_line:MovieClip;
public var mpLine;
public var remain;
public var mpTotal;
public var n_mpTotal:TextField;
public var mp;
public function m_mp_gauge_265(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
mpLine = this;
}
function frame2(){
try {
if (MovieClip(mpLine.parent).gcode.mp_re_time < MovieClip(mpLine.parent).gcode.mainTime){
MovieClip(mpLine.parent).gcode.mp_re_time = (MovieClip(mpLine.parent).gcode.mainTime + MovieClip(mpLine.parent).gcode.mp_re_next_time);
MovieClip(mpLine.parent).gcode.mp = (MovieClip(mpLine.parent).gcode.mp + Math.round((MovieClip(mpLine.parent).gcode.mpTotal * MovieClip(mpLine.parent).gcode.mp_re_per)));
};
if (MovieClip(mpLine.parent).gcode.mp > MovieClip(mpLine.parent).gcode.mpTotal){
MovieClip(mpLine.parent).gcode.mp = MovieClip(mpLine.parent).gcode.mpTotal;
};
mpTotal = MovieClip(mpLine.parent).gcode.mpTotal;
mp = MovieClip(mpLine.parent).gcode.mp;
mpLine.n_mp.text = mp;
mpLine.n_mpTotal.text = mpTotal;
remain = (((mp * 100) / mpTotal) / 100);
maskLine = (m_mp_line.width * remain);
m_mp_line.x = maskLine;
} catch(error) {
trace("bug : MovieClip m_mo_gauqe ใน flash");
};
}
}
}//package flu_sweeper_fla
Section 25
//m_revolution_panel_299 (flu_sweeper_fla.m_revolution_panel_299)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_revolution_panel_299 extends MovieClip {
public var b_rev_2a:MovieClip;
public var b_rev_2b:MovieClip;
public var letter:Array;
public var b_rev_3a:MovieClip;
public var b_rev_3b:MovieClip;
public var b_rev_3c:MovieClip;
public var b_num;
public var b_rev_3d:MovieClip;
public var b_rev_4a:MovieClip;
public var b_rev_4c:MovieClip;
public var b_rev_4d:MovieClip;
public var b_rev_4e:MovieClip;
public var b_rev_4f:MovieClip;
public var b_rev_4b:MovieClip;
public var a;
public var set_last;
public var b_mfz_logo:SimpleButton;
public var i;
public var n;
public var t;
public var rev;
public var s;
public var b_load:SimpleButton;
public var b_okay:SimpleButton;
public var playMoreGameTitle;
public var m_box:MovieClip;
public var myLevel:TextField;
public var button;
public var b_save:SimpleButton;
public var m_des:MovieClip;
public var pic1a:MovieClip;
public var pic2a:MovieClip;
public var pic2b:MovieClip;
public var pic3b:MovieClip;
public var pic3c:MovieClip;
public var pic3d:MovieClip;
public var tree:Array;
public var pic3a:MovieClip;
public var pic4a:MovieClip;
public var pic4c:MovieClip;
public var pic4d:MovieClip;
public var pic4e:MovieClip;
public var pic4f:MovieClip;
public var im_detail:MovieClip;
public var pic4b:MovieClip;
public var b_rev_1a:MovieClip;
public var part;
public function m_revolution_panel_299(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
if (rev == null){
rev = this;
part = MovieClip(rev.parent.gcode);
};
rev.myLevel.text = part.myLevel;
n = 1;
while (n <= 4) {
b_num = 0;
switch (n){
case 1:
b_num = 1;
break;
case 2:
b_num = 2;
break;
case 3:
b_num = 4;
break;
case 4:
b_num = 6;
break;
};
i = 1;
while (i <= b_num) {
button = rev[(("b_rev_" + n) + letter[i])];
button.n = (("b_rev_" + n) + letter[i]);
button.pic = rev[(("pic" + n) + letter[i])];
if (part.gamelevel == n){
if (part.rev_select == (("b_rev_" + n) + letter[i])){
button.gotoAndStop("over");
} else {
set_last = part.rev_data[(part.rev_data.length - 1)];
for (t in tree[set_last]) {
if (tree[set_last][t] == button.n){
button.gotoAndStop("up");
button.addEventListener(MouseEvent.MOUSE_DOWN, select_click);
button.addEventListener(MouseEvent.MOUSE_OVER, showDetail);
button.addEventListener(MouseEvent.MOUSE_OUT, reDetail);
break;
} else {
button.gotoAndStop("lock");
};
};
};
} else {
if (part.gamelevel > n){
for (a in part.rev_data) {
if (part.rev_data[a] == button.n){
button.gotoAndStop("over");
button.addEventListener(MouseEvent.MOUSE_OVER, showDetail);
button.addEventListener(MouseEvent.MOUSE_OUT, reDetail);
break;
} else {
button.gotoAndStop("lock");
};
};
} else {
if (part.gamelevel < n){
button.gotoAndStop("lock");
};
};
};
i++;
};
n++;
};
rev.b_okay.addEventListener(MouseEvent.MOUSE_DOWN, okay_click);
rev.b_save.addEventListener(MouseEvent.MOUSE_DOWN, save_click);
if (((((!(rev.parent.sObjCon_1.data._date)) && (!(rev.parent.sObjCon_2.data._date)))) && (!(rev.parent.sObjCon_3.data._date)))){
b_load.alpha = 0.3;
} else {
b_load.alpha = 1;
rev.b_load.addEventListener(MouseEvent.MOUSE_DOWN, load_click);
};
if (part.ap_autoSave == true){
trace("save auto");
part.ap_autoSave = false;
rev.parent.savegame(3);
};
playMoreGameTitle = function (){
rev.parent.achievements();
};
rev.b_mfz_logo.addEventListener("click", playMoreGameTitle);
b_rev_4c.addEventListener(MouseEvent.MOUSE_DOWN, open_m_box);
b_rev_4d.addEventListener(MouseEvent.MOUSE_DOWN, open_m_box);
m_box.visible = false;
stop();
}
public function save_click(_arg1:Event){
rev.m_box.visible = true;
}
public function clear_listener(){
var _local1:*;
n = 4;
while (n > 0) {
_local1 = 0;
switch (n){
case 1:
_local1 = 1;
break;
case 2:
_local1 = 2;
break;
case 3:
_local1 = 4;
break;
case 4:
_local1 = 6;
break;
};
i = 1;
while (i <= _local1) {
button = rev[(("b_rev_" + n) + letter[i])];
button.removeEventListener(MouseEvent.MOUSE_DOWN, select_click);
button.removeEventListener(MouseEvent.MOUSE_OVER, showDetail);
i++;
};
n--;
};
}
public function reDetail(_arg1:Event){
rev.im_detail.gotoAndStop(part.rev_select);
rev.m_des.gotoAndStop(part.rev_select);
}
function frame1(){
rev = this;
part = MovieClip(rev.parent.gcode);
letter = new Array("", "a", "b", "c", "d", "e", "f");
part.up_down_sound(part.soundbmg, 0.1);
tree = new Array();
tree["b_rev_1a"] = ["b_rev_2a", "b_rev_2b"];
tree["b_rev_2a"] = ["b_rev_3a", "b_rev_3b"];
tree["b_rev_2b"] = ["b_rev_3c", "b_rev_3d"];
tree["b_rev_3a"] = ["b_rev_4a", "b_rev_4b"];
tree["b_rev_3b"] = ["b_rev_4b", "b_rev_4c"];
tree["b_rev_3c"] = ["b_rev_4d", "b_rev_4e"];
tree["b_rev_3d"] = ["b_rev_4e", "b_rev_4f"];
}
public function okay_click(_arg1:Event){
trace(part.ap_okay, part.gamelevel, part.gotoStage);
if ((((((part.ap_okay == true)) || ((part.gamelevel == 1)))) || ((part.gotoStage == true)))){
part.gotoStage = false;
part.ap_okay = false;
clear_listener();
part.rev_data.push(part.rev_select);
rev.im_detail.gotoAndStop(part.rev_data[(part.rev_data.length - 1)]);
part.set_level();
rev.x = (rev.x + rev.width);
play();
} else {
rev.parent.m_txt_choose.x = mouseX;
rev.parent.m_txt_choose.y = mouseY;
};
}
public function select_click(_arg1:Event){
var _local2:*;
_local2 = _arg1.target.n;
if ((((_local2 == "b_rev_4c")) || ((_local2 == "b_rev_4d")))){
return (false);
};
part.ap_okay = true;
part.rev_select = _arg1.target.n;
clear_listener();
play();
}
public function open_m_box(_arg1:Event){
m_box.visible = true;
}
public function load_click(_arg1:Event){
rev.m_box.visible = true;
}
public function showDetail(_arg1:Event){
rev.im_detail.gotoAndStop(_arg1.target.n);
rev.m_des.gotoAndStop(_arg1.target.n);
}
}
}//package flu_sweeper_fla
Section 26
//m_save_load_347 (flu_sweeper_fla.m_save_load_347)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_save_load_347 extends MovieClip {
public var txt_auto_save:TextField;
public var b_cancel:SimpleButton;
public var b_slot3:SimpleButton;
public var part;
public var keepnum_warning:Number;
public var txt_button_2:TextField;
public var txt_button_3:TextField;
public var sl;
public var txt_button_1:TextField;
public var b;
public var m_savewarning:MovieClip;
public var i;
public var txt_detail_2:TextField;
public var txt_detail_1:TextField;
public var txt_detail_3:TextField;
public var txt_title:TextField;
public var sha;
public var b_slot1:SimpleButton;
public var b_slot2:SimpleButton;
public var _sl;
public function m_save_load_347(){
addFrameScript(0, frame1, 1, frame2);
}
public function loadCancel(_arg1:Event){
var _local2:*;
if (_sl.apContinue == true){
_sl.gotoAndPlay("m", "title");
} else {
i = 3;
while (i > 0) {
_local2 = sl[("b_slot" + i)];
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, load_click);
i--;
};
sl.x = (sl.x + sl.width);
};
}
public function saveCancel(_arg1:Event){
var _local2:*;
sl.x = (sl.x + sl.width);
i = 3;
while (i > 0) {
_local2 = sl[("b_slot" + i)];
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, save_click);
i--;
};
}
public function save_warning_ok(_arg1:Event){
sl.m_savewarning.x = (sl.m_savewarning.x + sl.m_savewarning.width);
_sl.savegame(keepnum_warning);
_sl.selectSaveNum = keepnum_warning;
sl.x = (sl.x + sl.width);
keepnum_warning = 0;
_sl.gotoAndPlay(1, "save_load");
}
public function save_click(_arg1:Event){
var _local2:String;
_local2 = _arg1.target.name;
_sl.savegame(_local2.slice(6, 7));
_sl.selectSaveNum = _local2.slice(6, 7);
sl.x = (sl.x + sl.width);
_sl.gotoAndPlay(1, "save_load");
}
function frame2(){
if (part.goto_saveOrLoad == "Load"){
sl.txt_title.text = part.goto_saveOrLoad;
sl.txt_auto_save.alpha = 1;
i = 3;
while (i > 0) {
b = sl[("b_slot" + i)];
b.visible = true;
if (_sl[("sObjCon_" + i)].data._date){
sha = _sl[("sObjCon_" + i)];
if (sha.data._date){
b.alpha = 1;
sl[("txt_button_" + i)].alpha = 1;
sl[("txt_detail_" + i)].text = sha.data._date;
b.addEventListener(MouseEvent.MOUSE_DOWN, load_click);
};
} else {
b.alpha = 0.3;
sl[("txt_button_" + i)].alpha = 0.3;
sl[("txt_detail_" + i)].text = "Empty";
};
sl[("txt_button_" + i)].text = part.goto_saveOrLoad;
sl[("txt_detail_" + i)].visible = true;
sl[("txt_button_" + i)].visible = true;
sl[("txt_detail_" + i)].mouseEnabled = false;
sl[("txt_button_" + i)].mouseEnabled = false;
i--;
};
sl.b_cancel.addEventListener(MouseEvent.MOUSE_DOWN, loadCancel);
} else {
if (part.goto_saveOrLoad == "Save"){
sl.txt_title.text = part.goto_saveOrLoad;
i = 3;
while (i > 0) {
b = sl[("b_slot" + i)];
if (i == 3){
b.visible = false;
sl[("txt_detail_" + i)].visible = false;
sl[("txt_button_" + i)].visible = false;
sl.txt_auto_save.alpha = 0;
} else {
if (_sl[("sObjCon_" + i)].data._date){
sha = _sl[("sObjCon_" + i)];
if (sha.data._date){
b.alpha = 1;
sl[("txt_button_" + i)].alpha = 1;
sl[("txt_detail_" + i)].text = sha.data._date;
b.addEventListener(MouseEvent.MOUSE_DOWN, save_warning);
};
} else {
b.alpha = 0.3;
sl[("txt_button_" + i)].alpha = 0.3;
sl[("txt_detail_" + i)].text = "Empty";
b.addEventListener(MouseEvent.MOUSE_DOWN, save_click);
};
sl[("txt_button_" + i)].text = part.goto_saveOrLoad;
sl[("txt_detail_" + i)].mouseEnabled = false;
sl[("txt_button_" + i)].mouseEnabled = false;
};
i--;
};
sl.b_cancel.addEventListener(MouseEvent.MOUSE_DOWN, saveCancel);
};
};
stop();
}
function frame1(){
sl = this;
_sl = sl.parent;
part = MovieClip(sl.parent).gcode;
keepnum_warning = 0;
}
public function save_warning_cancel(_arg1:Event){
sl.m_savewarning.x = (sl.m_savewarning.x + sl.m_savewarning.width);
}
public function save_warning(_arg1:Event){
var _local2:String;
_local2 = _arg1.target.name;
keepnum_warning = int(_local2.slice(6, 7));
sl.m_savewarning.x = 0;
sl.m_savewarning.y = 0;
sl.m_savewarning.b_save_cancel.addEventListener(MouseEvent.MOUSE_DOWN, save_warning_cancel);
sl.m_savewarning.b_save_warning.addEventListener(MouseEvent.MOUSE_DOWN, save_warning_ok);
}
public function load_click(_arg1:Event){
var _local2:String;
_local2 = _arg1.target.name;
_sl.apContinue = false;
_sl.selectSaveNum = _local2.slice(6, 7);
sl.x = (sl.x + sl.width);
_sl.gotoAndPlay(1, "save_load");
}
}
}//package flu_sweeper_fla
Section 27
//m_savewarning_350 (flu_sweeper_fla.m_savewarning_350)
package flu_sweeper_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_savewarning_350 extends MovieClip {
public var b_save_cancel:SimpleButton;
public var b_save_warning:SimpleButton;
public var txt_title:TextField;
}
}//package flu_sweeper_fla
Section 28
//m_score_273 (flu_sweeper_fla.m_score_273)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_score_273 extends MovieClip {
public var sc;
public var score:TextField;
public var _sc;
public function m_score_273(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
sc = this;
_sc = sc.parent;
}
function frame2(){
sc.score.text = _sc.keep_scorefinal;
}
}
}//package flu_sweeper_fla
Section 29
//m_stageclear_262 (flu_sweeper_fla.m_stageclear_262)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_stageclear_262 extends MovieClip {
public var part;
public var atbnum;
public function m_stageclear_262(){
addFrameScript(0, frame1, 84, frame85);
}
function frame85(){
part = MovieClip(this.parent).gcode;
if (part.gamelevel < 4){
part.levelUp();
} else {
part.addAchivment("Beat the game");
if (part.rev_select == "b_rev_4a"){
part.addAchivment("9_tails");
};
if (part.rev_select == "b_rev_4b"){
part.addAchivment("lion");
};
if (part.rev_select == "b_rev_4c"){
part.addAchivment("bear");
};
if (part.rev_select == "b_rev_4d"){
part.addAchivment("griffin");
};
if (part.rev_select == "b_rev_4e"){
part.addAchivment("wyvren");
};
if (part.rev_select == "b_rev_4f"){
part.addAchivment("dragon");
};
atbnum = 0;
if (part.atbHp != 0){
atbnum++;
};
if (part.atbMp != 0){
atbnum++;
};
if (part.atbAt != 0){
atbnum++;
};
if (atbnum == 0){
part.addAchivment("Supreme Weakling");
} else {
if (atbnum == 1){
part.addAchivment("Pure Blood");
};
};
part.freeSystemListener();
part.parent.gotoAndPlay(1, "ending");
};
this.y = (part.sh + this.height);
}
function frame1(){
stop();
}
}
}//package flu_sweeper_fla
Section 30
//m_time_272 (flu_sweeper_fla.m_time_272)
package flu_sweeper_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_time_272 extends MovieClip {
public var minute:TextField;
public var second:TextField;
}
}//package flu_sweeper_fla
Section 31
//m_txt_choose_296 (flu_sweeper_fla.m_txt_choose_296)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class m_txt_choose_296 extends MovieClip {
public function m_txt_choose_296(){
addFrameScript(43, frame44);
}
function frame44(){
this.x = -200;
}
}
}//package flu_sweeper_fla
Section 32
//MainTimeline (flu_sweeper_fla.MainTimeline)
package flu_sweeper_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var apContinue:Boolean;
public var urlCSS;
public var playMoreGameSub;
public var m_bossHp_gauge:MovieClip;
public var selectSaveNum:Number;
public var player_3a_ic1:MovieClip;
public var player_3a_ic2:MovieClip;
public var submitClick;
public var b_highscores:SimpleButton;
public var player_4b_ic2:MovieClip;
public var b_mfz_logo:SimpleButton;
public var b_skipPress;
public var player_4f_ic1:MovieClip;
public var player_4f_ic2:MovieClip;
public var bmoregames:SimpleButton;
public var player_4b_ic1:MovieClip;
public var i;
public var m_txt_godmode:MovieClip;
public var bgmtitle;
public var bmenu_click;
public var m_stage_over:MovieClip;
public var b_back:SimpleButton;
public var b_moregame1:SimpleButton;
public var b_next:SimpleButton;
public var bmenu:SimpleButton;
public var player_3d_ic1:MovieClip;
public var m_skip_op:SimpleButton;
public var m_attribute_panel:MovieClip;
public var now;
public var bcontinue_click;
public var player_4a_ic1:MovieClip;
public var player_4a_ic2:MovieClip;
public var player_4e_ic1:MovieClip;
public var player_4e_ic2:MovieClip;
public var EPOCH_TIME;
public var playername:TextField;
public var playMoreGameTitle;
public var m_box:MovieClip;
public var m_stage_clear:MovieClip;
public var bsubmit:SimpleButton;
public var bcontinue:SimpleButton;
public var sound;
public var m_revolution_panel:MovieClip;
public var m_save_load:MovieClip;
public var player_2b_ic1:MovieClip;
public var s_bgm:SoundChannel;
public var b_preload:SimpleButton;
public var keep_scorefinal:Number;
public var b_preloadRelease;
public var b_skip:SimpleButton;
public var allcssfile;
public var player_3c_ic2:MovieClip;
public var player_3c_ic1:MovieClip;
public var bstart:SimpleButton;
public var achievements;
public var m_time:MovieClip;
public var designCSS;
public var player_4d_ic1:MovieClip;
public var player_4d_ic2:MovieClip;
public var tot;
public var b_nextPress;
public var completecount;
public var sObjCon_1:SharedObject;
public var sObjCon_2:SharedObject;
public var sObjCon_3:SharedObject;
public var loadCSSComplete;
public var mt;
public var ldrCSS;
public var player_2a_ic1:MovieClip;
public var csstext;
public var g_root;
public var player_3b_ic1:MovieClip;
public var bstart_click;
public var cssstring;
public var player_3b_ic2:MovieClip;
public var b_mute:MovieClip;
public var m_txt_choose:MovieClip;
public var b_pause:SimpleButton;
public var b_achievements:SimpleButton;
public var m_bossms:MovieClip;
public var finishscore:TextField;
public var player_4c_ic2:MovieClip;
public var game:gameinline;
public var ldr:URLLoader;
public var outcss;
public var player_4c_ic1:MovieClip;
public var b_backPress;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 15, frame16, 91, frame92, 92, frame93, 101, frame102, 313, frame314, 320, frame321, 323, frame324, 433, frame434, 523, frame524, 524, frame525, 525, frame526, 526, frame527, 527, frame528, 528, frame529, 529, frame530, 530, frame531, 562, frame563);
}
public function call_attribute(_arg1:Event){
if ((((MovieClip(_arg1.target.parent).gcode.gamepause == false)) && ((MovieClip(_arg1.target.parent).gcode.apButton == true)))){
MovieClip(_arg1.target.parent).gcode.up_down_sound(MovieClip(_arg1.target.parent).gcode.soundbmg, 0.1);
MovieClip(_arg1.target.parent).gcode.gamepause = true;
MovieClip(_arg1.target.parent).gcode.ap_okay = false;
m_attribute_panel.gotoAndPlay(1);
m_attribute_panel.x = 0;
m_attribute_panel.y = 0;
};
}
public function relesefocus2(_arg1){
stage.focus = playername;
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame16(){
gotoAndPlay("go");
}
function frame11(){
}
function frame1(){
}
function frame2(){
now = new Date();
EPOCH_TIME = now.getTime();
mt = this;
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
stop();
}
public function muteOut(_arg1:Event){
if (b_mute.currentLabel != "mute"){
b_mute.gotoAndStop("open");
};
}
public function muteOver(_arg1:Event){
if (b_mute.currentLabel != "mute"){
b_mute.gotoAndStop("over");
};
}
public function muteUp(_arg1:Event){
if (b_mute.currentLabel != "mute"){
b_mute.gotoAndStop("mute");
} else {
b_mute.gotoAndStop("open");
};
}
public function skip_op(_arg1:Event){
trace(("this :" + this));
gotoAndStop("m");
}
function frame525(){
Mouse.show();
stop();
SoundMixer.stopAll();
tot = this;
b_nextPress = function (){
trace(tot.currentFrame);
play();
};
b_skipPress = function (){
tot.removeEventListener(Event.ENTER_FRAME, relesefocus);
tot.removeEventListener("keyDown", onKeySkip);
tot.gotoAndPlay("skip");
};
b_backPress = function (){
trace(tot.currentFrame);
gotoAndStop((tot.currentFrame - 1));
};
b_next.addEventListener("click", b_nextPress);
b_skip.addEventListener("click", b_skipPress);
b_back.addEventListener("click", b_backPress);
tot.addEventListener(Event.ENTER_FRAME, relesefocus);
tot.addEventListener("keyDown", onKeySkip);
b_back.visible = false;
s_bgm = bgmtitle.play();
s_bgm.soundTransform = new SoundTransform(0.2);
}
function frame526(){
stop();
b_back.visible = false;
}
function frame528(){
stop();
}
function frame529(){
stop();
}
function frame524(){
g_root = this;
this.addEventListener(Event.ENTER_FRAME, relesefocus2);
SoundMixer.stopAll();
stage.focus = playername;
Mouse.show();
trace(keep_scorefinal);
finishscore.text = String(keep_scorefinal);
g_root.playername.text = "";
bmenu_click = function (){
bmenu.removeEventListener("click", bmenu_click);
g_root.removeEventListener(Event.ENTER_FRAME, relesefocus2);
g_root.gotoAndStop("m", "title");
};
bmenu.addEventListener("click", bmenu_click);
submitClick = function (_arg1):void{
g_root.removeEventListener(Event.ENTER_FRAME, relesefocus2);
g_root.apContinue = false;
g_root.selectSaveNum = 3;
g_root.gotoAndPlay(1, "save_load");
};
bsubmit.addEventListener("click", submitClick);
playMoreGameSub = function (_arg1):void{
getURL("http://www.mofunzone.com/online_games/the_final_death_wish.shtml", "_blank");
};
bmoregames.addEventListener("click", playMoreGameSub);
stop();
Mouse.show();
SoundMixer.stopAll();
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
function frame527(){
stop();
b_back.visible = true;
}
function frame531(){
gotoAndPlay(1, "game");
tot.removeEventListener(Event.ENTER_FRAME, relesefocus);
tot.removeEventListener("keyDown", onKeySkip);
}
public function savegame(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:Array;
_local3 = this.game;
_local4 = this[("sObjCon_" + _arg1)];
_local4.data._date = new Date();
_local4.data.rev_select = _local3.rev_select;
_local5 = new Array();
for (_local2 in _local3.rev_data) {
_local5[_local2] = _local3.rev_data[_local2];
};
_local4.data.rev_data = _local5;
_local4.data.gamelevel = _local3.gamelevel;
_local4.data.atbHp = _local3.atbHp;
_local4.data.atbMp = _local3.atbMp;
_local4.data.at_all = _local3.at_all;
_local4.data.atbAt = _local3.atbAt;
_local4.data.myLevel = _local3.myLevel;
_local4.data.expTotal = _local3.expTotal;
_local4.data.EXP = _local3.EXP;
_local4.data.atb_point = _local3.atb_point;
_local4.data.keep_scorefinal = keep_scorefinal;
}
function frame434(){
gotoAndPlay(1, "submit");
}
function frame314(){
sObjCon_1 = SharedObject.getLocal("flu_sweeper_1", "/");
sObjCon_2 = SharedObject.getLocal("flu_sweeper_2", "/");
sObjCon_3 = SharedObject.getLocal("flu_sweeper_3", "/");
apContinue = false;
selectSaveNum = 0;
keep_scorefinal = 0;
bstart_click = function (){
gotoAndStop(1, "tutorial");
};
bcontinue_click = function (){
m_box.visible = true;
};
playMoreGameTitle = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_moregame1.addEventListener("click", playMoreGameTitle);
achievements = function (){
getURL("http://www.mofunzone.com/online_games/flu_sweeper.shtml", "_blank");
};
b_achievements.addEventListener("click", achievements);
m_box.visible = false;
stop();
bstart.addEventListener("click", bstart_click);
if (((((!(sObjCon_1.data._date)) && (!(sObjCon_2.data._date)))) && (!(sObjCon_3.data._date)))){
bcontinue.alpha = 0.3;
} else {
bcontinue.alpha = 1;
bcontinue.addEventListener("click", bcontinue_click);
};
b_mfz_logo.addEventListener("click", achievements);
stop();
}
function frame530(){
Mouse.show();
stop();
}
function frame321(){
game.visible = true;
stage.quality = "medium";
b_pause.addEventListener(MouseEvent.MOUSE_DOWN, call_attribute);
b_mute.addEventListener(MouseEvent.MOUSE_DOWN, mutePress);
b_mute.addEventListener(MouseEvent.MOUSE_OVER, muteOver);
b_mute.addEventListener(MouseEvent.MOUSE_OUT, muteOut);
b_mute.addEventListener(MouseEvent.MOUSE_UP, muteUp);
stop();
SoundMixer.stopAll();
}
function frame92(){
outcss = false;
designCSS = new StyleSheet();
allcssfile = new Array("design.css");
ldrCSS = new Array();
loadCSSComplete = new Array();
urlCSS = new Array();
completecount = 0;
cssstring = "";
if (outcss){
i = 0;
while (i < allcssfile.length) {
ldrCSS[i] = new URLLoader();
loadCSSComplete[i] = function (_arg1){
ldr = _arg1.target;
cssstring = (cssstring + ldr.data);
completecount++;
if (completecount >= allcssfile.length){
trace(cssstring);
designCSS.parseCSS(cssstring);
play();
};
};
trace(allcssfile[i]);
urlCSS[i] = new URLRequest(("project/css/" + allcssfile[i]));
ldrCSS[i].addEventListener(Event.COMPLETE, loadCSSComplete[i]);
ldrCSS[i].load(urlCSS[i]);
stop();
i++;
};
} else {
csstext = "m_boss_st1{hp:200;damage:6;mp:0;jump:85;linkage:m_boss_st1;layer:boss_layer1;Deray:0;speed:1;}bullet_4f_1{layer:playerbullet_layer;speed:10;linkage:bullet_4f_1;}m_boss_st3{hp:1120;damage:7;mp:0;jump:85;linkage:m_boss_st3;layer:boss_layer;Deray:0;speed:0;}m_eff_create{linkage:m_eff_create;layer:gfx_layer;}bullet_poo2{layer:bossbullet_layer_front;speed:5;linkage:bullet_poo2;}poison_cloud{linkage:gfx_poison;layer:obj_layer;}gfx_cell_explode{layer:bossbullet_layer_front;speed:0;linkage:gfx_cell_explode;}m_block_mapping1{linkage:m_block_mapping1;layer:mapping_layer;}gfx_hp_attack{linkage:gfx_hp_attack;layer:gfx_layer;}m_boss_st2{hp:480;damage:8;mp:0;jump:85;linkage:m_boss_st2;layer:boss_layer1;Deray:0;speed:5;}enemy_em3{hp:30;damage:8;mp:0;jump:150;linkage:m_em3;layer:enemy_layer;Deray:3;speed:5;}bullet_poo1{layer:bossbullet_layer_front;speed:5;linkage:bullet_poo1;}gfx_leap{layer:enemybullet_layer;speed:5;linkage:gfx_leap;}m_hp_enemy{linkage:m_hp_enemy;layer:obj_layer;}gfx_not_ready{linkage:gfx_not_ready;layer:gfx_layer;}bullet_4e{layer:playerbullet_layer;speed:10;linkage:bullet_4e;}m_boss_st4{hp:2560;damage:9;mp:0;jump:85;linkage:m_boss_st4;layer:boss_layer2;Deray:0;speed:3;}raser_wing{layer:playerbullet_layer;speed:5;linkage:gfx_raser_wing;}bullet_2b{layer:playerbullet_layer;speed:15;linkage:bullet_2b;}enemy_er1{hp:8;damage:4;mp:0;jump:85;linkage:m_er1;layer:enemy_layer;Deray:3;speed:4;}bash{layer:playerbullet_layer;speed:5;linkage:gfx_bash;}berserg2{linkage:gfx_berserg2;layer:playerbullet_layer;}player_4c{distance:110;hp:85;damage:8;mp:30;jump:90;linkage:m_hero_4c;layer:player_layer;kb:40;speed:8;}bullet_3d{layer:playerbullet_layer;speed:10;linkage:bullet_3d;}m_bg_mapping1{linkage:m_bg_mapping1;layer:bg_layer;}player_4b{distance:110;hp:70;damage:9;mp:40;jump:90;linkage:m_hero_4b;layer:player_layer;kb:20;speed:11;}m_boss_st2_tentacle{layer:bossbullet_layer_front;speed:10;linkage:m_boss_st2_tentacle;}monster_gate{linkage:m_monster_gate;layer:bg_layer;}txt_damage{linkage:m_text_damage;layer:obj_layer;}gfx_heal{linkage:gfx_heal;layer:gfx_layer;}m_bg{linkage:m_bg;layer:bg_layer;}player_1{distance:80;hp:25;damage:6;mp:0;jump:90;linkage:m_hero_1;layer:player_layer;kb:20;speed:8;}gfx_explodion{linkage:gfx_explodion;layer:bg_layer;}m_bg_mapping2{linkage:m_bg_mapping2;layer:bg_layer;}gfx_hit4{linkage:gfx_hit4;layer:gfx_layer;}power_main2{layer:playerbullet_layer;speed:10;linkage:gfx_wave_attack2;}m_block_mapping4{linkage:m_block_mapping4;layer:mapping_layer;}power_main3{layer:playerbullet_layer;speed:12;linkage:gfx_wave_attack3;}m_block_mapping3{linkage:m_block_mapping3;layer:mapping_layer;}player_3b{distance:105;hp:55;damage:8;mp:30;jump:90;linkage:m_hero_3b;layer:player_layer;kb:40;speed:8;}gfx_rejuvenation{linkage:gfx_Rejuvenation;layer:gfx_layer;}m_bg_mapping4{linkage:m_bg_mapping4;layer:bg_layer;}gfx_poison_explode{linkage:gfx_poison_explode;layer:gfx_layer;}fire_explode1{linkage:gfx_fire_explode1;layer:playerbullet_layer;}bullet_4f_2{layer:playerbullet_layer;speed:10;linkage:bullet_4f_2;}air_box{linkage:m_air_box;layer:obj_layer;}enemy_er3{hp:18;damage:4;mp:0;jump:95;linkage:m_er3;layer:enemy_layer;Deray:3;speed:4;}power_main1{layer:playerbullet_layer;speed:8;linkage:gfx_wave_attack1;}bullet_boss2_mucus{layer:bossbullet_layer_front;speed:10;linkage:bullet_boss2_mucus;}bullet_4d{layer:playerbullet_layer;speed:5;linkage:bullet_4d;}gsystem{linkage:m_gameSystem;layer:obj_layer;}player_4a{distance:100;hp:65;damage:8;mp:30;jump:90;linkage:m_hero_4a;layer:player_layer;kb:20;speed:12;}player_4d{distance:40;hp:55;damage:8;mp:70;jump:90;linkage:m_hero_4d;layer:player_layer;kb:30;speed:10;}player_2b{distance:30;hp:30;damage:5;mp:60;jump:90;linkage:m_hero_2b;layer:player_layer;kb:20;speed:8;}power_main4{layer:playerbullet_layer;speed:15;linkage:gfx_wave_attack4;}player_4e{distance:120;hp:60;damage:7;mp:100;jump:90;linkage:m_hero_4e;layer:player_layer;kb:30;speed:9;}m_bg_mapping3{linkage:m_bg_mapping3;layer:bg_layer;}m_block_mapping2{linkage:m_block_mapping2;layer:mapping_layer;}gfx_hit3{linkage:gfx_hit3;layer:gfx_layer;}gfx_mana_attack{linkage:gfx_mana_attack;layer:gfx_layer;}gfx_slow{linkage:gfx_slow;layer:gfx_layer;}player_3a{distance:100;hp:45;damage:9;mp:40;jump:90;linkage:m_hero_3a;layer:player_layer;kb:20;speed:10;}m_point_poo{linkage:m_point_poo;layer:obj_layer;}enemy_em1{hp:10;damage:5;mp:0;jump:85;linkage:m_em1;layer:enemy_layer;Deray:3;speed:2;}player_2a{distance:90;hp:40;damage:8;mp:30;jump:90;linkage:m_hero_2a;layer:player_layer;kb:20;speed:9;}m_boss_st4_body{linkage:m_boss_st4_body;layer:boss_layer2;}txt_heal{linkage:m_text_heal;layer:obj_layer;}gfx_poison_em2{layer:enemybullet_layer;speed:5;linkage:gfx_poison_em2;}bullet_mucus1{layer:enemybullet_layer;speed:7;linkage:bullet_mucus1;}player_4f{distance:30;hp:45;damage:6;mp:140;jump:90;linkage:m_hero_4f;layer:player_layer;kb:20;speed:7;}player_3d{distance:30;hp:35;damage:5;mp:90;jump:105;linkage:m_hero_3d;layer:player_layer;kb:20;speed:10;}m_boss_st1_tentacle{layer:bossbullet_layer_back;speed:10;linkage:m_boss_st1_tentacle;}gfx_particle_mana{layer:obj_layer;speed:10;linkage:gfx_particle_mana;}gfx_levelup{linkage:gfx_levelUP;layer:obj_layer;}gfx_hit1{linkage:gfx_hit1;layer:gfx_layer;}bullet_poo3{layer:bossbullet_layer_front;speed:5;linkage:bullet_poo3;}fire_explode2{linkage:gfx_fire_explode2;layer:playerbullet_layer;}redius_growl{linkage:m_redius_growl;layer:playerbullet_layer;}enemy_em2{hp:15;damage:4;mp:0;jump:85;linkage:m_em2;layer:enemy_layer;Deray:3;speed:2;}bullet_3c{layer:playerbullet_layer;speed:10;linkage:bullet_3c;}power_nomal{layer:enemybullet_layer;speed:5;linkage:gfx_en_wave_attack;}enemy_er2{hp:13;damage:4;mp:0;jump:85;linkage:m_er2;layer:enemy_layer;Deray:3;speed:2;}enemy_er4{hp:30;damage:5;mp:0;jump:95;linkage:m_er4;layer:enemy_layer;Deray:3;speed:4;}berserg1{linkage:gfx_berserg1;layer:playerbullet_layer;}player_3c{distance:30;hp:35;damage:7;mp:80;jump:105;linkage:m_hero_3c;layer:player_layer;kb:20;speed:10;}gfx_stun{linkage:gfx_stun;layer:gfx_layer;}gfx_hit2{linkage:gfx_hit2;layer:gfx_layer;}bullet_big_mucus{layer:enemybullet_layer;speed:10;linkage:bullet_big_mucus;}rabbid{layer:playerbullet_layer;speed:10;linkage:gfx_rabbid;}m_er3_bomb{hp:25;damage:7;mp:0;jump:120;linkage:m_er3_bomb;layer:enemy_layer;Deray:3;speed:2;}blackhole{linkage:gfx_blackhole;layer:obj_layer;}gfx_particle_energy{layer:obj_layer;speed:10;linkage:gfx_particle_energy;}";
designCSS.parseCSS(csstext);
};
}
function frame93(){
m_skip_op.addEventListener(MouseEvent.MOUSE_DOWN, skip_op);
}
public function relesefocus(_arg1){
stage.focus = tot;
}
function frame563(){
gotoAndPlay(1, "game");
}
function frame102(){
bgmtitle = new BGM3();
sound = bgmtitle.play();
sound.soundTransform = new SoundTransform(0.3);
}
function frame324(){
Mouse.show();
SoundMixer.stopAll();
}
public function onKeySkip(_arg1){
if (_arg1.keyCode == 75){
tot.gotoAndPlay("skip");
tot.removeEventListener(Event.ENTER_FRAME, relesefocus);
tot.removeEventListener("keyDown", onKeySkip);
};
}
public function mutePress(_arg1:Event){
if (MovieClip(_arg1.target.parent).gcode.mute == 1){
b_mute.gotoAndStop("press");
SoundMixer.stopAll();
MovieClip(_arg1.target.parent).gcode.mute = 0;
} else {
MovieClip(_arg1.target.parent).gcode.mute = 1;
MovieClip(_arg1.target.parent).gcode.createSound("bgm");
};
}
}
}//package flu_sweeper_fla
Section 33
//mallclip_46 (flu_sweeper_fla.mallclip_46)
package flu_sweeper_fla {
import flash.display.*;
public dynamic class mallclip_46 extends MovieClip {
public function mallclip_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package flu_sweeper_fla
Section 34
//THEPRELOADER_1 (flu_sweeper_fla.THEPRELOADER_1)
package flu_sweeper_fla {
import flash.display.*;
import flash.events.*;
public dynamic class THEPRELOADER_1 extends MovieClip {
public var shiftamt;
public var bar:MovieClip;
public var onRelease;
public var isloaded;
public function THEPRELOADER_1(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stage.removeEventListener(MouseEvent.CLICK, onRelease);
}
function frame1(){
stop();
shiftamt = 17;
isloaded = false;
parent.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
onRelease = function (){
};
stage.addEventListener(MouseEvent.CLICK, onRelease);
if (parent.loaderInfo.bytesLoaded >= parent.loaderInfo.bytesTotal){
parent.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING);
gotoAndStop(10);
};
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Math.round(_arg1.bytesLoaded);
_local3 = Math.round(_arg1.bytesTotal);
_local4 = (_local2 / _local3);
MovieClip(MovieClip(getChildByName("bar")).getChildByName("barmask")).scaleX = _local4;
if (_local2 == _local3){
isloaded = true;
};
}
}
}//package flu_sweeper_fla
Section 35
//AlarmClock (GREENHERMIT.GHDurationControl.AlarmClock)
package GREENHERMIT.GHDurationControl {
public class AlarmClock extends TimerBase {
public var timecount:Number;
public var stoptimer:Boolean;
public var timearray:Object;
public var getupfn:Function;
public function AlarmClock(_arg1:Function, _arg2:Array){
this.getupfn = _arg1;
this.timearray = _arg2;
timecount = 0;
stoptimer = false;
}
public function stop(){
stoptimer = true;
}
public function resume(){
stoptimer = false;
}
override public function process(){
if (stoptimer){
return;
};
if (timearray[timecount] != null){
getupfn(timearray[timecount], objectduration);
};
timecount++;
}
}
}//package GREENHERMIT.GHDurationControl
Section 36
//Duration (GREENHERMIT.GHDurationControl.Duration)
package GREENHERMIT.GHDurationControl {
public class Duration extends TimerBase {
public var durationEvent:Function;
public var countdown:Number;
public var duration:Number;
public function Duration(_arg1:Number, _arg2:Function){
this.duration = _arg1;
this.countdown = _arg1;
this.durationEvent = _arg2;
}
override public function process(){
if (this.duration <= 0){
return;
};
if (this.countdown > 0){
this.countdown--;
if (this.countdown == 0){
if (durationEvent != null){
durationEvent(objectduration);
};
};
};
}
}
}//package GREENHERMIT.GHDurationControl
Section 37
//TimerBase (GREENHERMIT.GHDurationControl.TimerBase)
package GREENHERMIT.GHDurationControl {
public class TimerBase {
public var objectduration:Object;
public function process(){
}
}
}//package GREENHERMIT.GHDurationControl
Section 38
//GunDesc (GREENHERMIT.GHGun.GunDesc)
package GREENHERMIT.GHGun {
public class GunDesc {
public var gun:String;
public var reloadEvent:Function;
public var workEvent:Function;
public var cooldowncount:Number;
public var fullEvent:Function;
public var mag:Number;
public var reloadcount:Number;
public var shootClass:Object;
public var magcount:Number;
public var reload:Number;
public var frequency:Number;
public var cooldown:Number;
public var frequencycount:Number;
public var gageframe:Number;
public var shootEvent:Function;
public var pause:Boolean;
public function GunDesc(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0){
this.mag = _arg2;
this.magcount = _arg2;
this.reload = _arg3;
this.reloadcount = 0;
this.frequency = _arg4;
this.frequencycount = 0;
this.pause = false;
this.gun = _arg1;
this.cooldown = _arg5;
this.cooldowncount = 0;
gageframe = int(((magcount / _arg2) * 100));
}
public function fullMag(){
reloadcount = 0;
magcount = mag;
frequencycount = 0;
gageframe = int(((magcount / mag) * 100));
}
public function process(){
if (mag <= 0){
return;
};
if (frequency <= 0){
return;
};
if (reload < 0){
return;
};
if (workEvent != null){
workEvent();
};
if (cooldown != 0){
cooldowncount++;
if (cooldowncount == cooldown){
if ((((reloadcount == 0)) && ((magcount < mag)))){
magcount++;
gageframe = int(((magcount / mag) * 100));
};
cooldowncount = 0;
};
};
if (frequencycount > 50000000){
frequencycount = 0;
};
if (reloadcount > 0){
reloadcount--;
gageframe = int((((reload - reloadcount) / (reload + 1)) * 100));
if (reloadcount == 0){
if (fullEvent != null){
gageframe = 100;
fullEvent();
};
magcount = mag;
gageframe = int(((magcount / mag) * 100));
frequencycount = 0;
};
};
if (pause){
return;
};
frequencycount++;
if (frequencycount == frequency){
if (magcount > 0){
shootClass.process(this);
if (shootEvent != null){
shootEvent(shootClass.bulletlist);
};
frequencycount = 0;
gageframe = int(((magcount / mag) * 100));
magcount--;
if (magcount == 0){
reloadcount = reload;
if (reloadEvent != null){
reloadEvent();
};
};
};
};
}
public function pauseToggle(_arg1:Object=null){
if (_arg1 != null){
this.pause = _arg1;
} else {
this.pause = !(this.pause);
};
}
public function shootNow(){
if (magcount > 0){
shootClass.process(this);
if (shootEvent != null){
shootEvent(shootClass.bulletlist);
};
gageframe = int(((magcount / mag) * 100));
magcount--;
if (magcount == 0){
if (reloadEvent != null){
reloadEvent();
};
reloadcount = reload;
};
};
}
}
}//package GREENHERMIT.GHGun
Section 39
//AngleMove (GREENHERMIT.GHMovement.AngleMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class AngleMove extends LineMove {
public function AngleMove(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Boolean=true){
this.angle = _arg2;
this.speed = _arg3;
super(_arg1, (_arg3 * Math.cos(((_arg2 * Math.PI) / 180))), (_arg3 * Math.sin(((_arg2 * Math.PI) / 180))), _arg4);
}
}
}//package GREENHERMIT.GHMovement
Section 40
//LineMove (GREENHERMIT.GHMovement.LineMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class LineMove extends MoveBaseClass {
public var speed:Number;
public var speedx:Number;
public var speedy:Number;
public var angle:Number;
public var rotation:Boolean;
public function LineMove(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Boolean=true){
control = _arg1;
this.speedx = _arg2;
this.speedy = _arg3;
angle = ((Math.atan2(_arg3, _arg2) * 180) / Math.PI);
speed = Math.sqrt(((_arg2 * _arg2) + (_arg3 * _arg3)));
this.rotation = _arg4;
}
override public function setSpeed(_arg1:Number){
this.speed = _arg1;
this.speedx = (this.speed * Math.cos(((angle * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((angle * Math.PI) / 180)));
}
override public function process(){
control.x = (control.x + speedx);
control.y = (control.y + speedy);
if (rotation){
control.rotation = ((((Math.atan2(speedy, speedx) * 180) / Math.PI) + 360) % 360);
};
}
override public function getSpeed():Number{
return (speed);
}
}
}//package GREENHERMIT.GHMovement
Section 41
//MapMove (GREENHERMIT.GHMovement.MapMove)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class MapMove extends MoveBaseClass {
public var dashdirect:Number;
private var speedx:Number;
private var SLOPELEFT:Number;// = 0xFF0000
public var ground:Boolean;
private var SLOPEB:Number;// = 0x800000
private var speedy:Number;
public var right:Number;
public var left:Number;
public var dashground:Boolean;
public var dash:Number;
private var CLOSEALL:Number;// = 0xFF
private var speed:Number;
public var jumplimit:Number;
private var SLOPERIGHT:Number;// = 0xFFFF00
private var CLOSETOP:Number;// = 0xFF00
private var map:BitmapData;
public var isjump:Boolean;
public var outAreaWalk:Function;
public var cannotWalk:Function;
private var mapscale:Number;
private var FREE:Number;// = 0
private var SLOPEB2:Number;// = 0x808000
public var jumpfactor:Number;
public var jumpbase:Number;
public function MapMove(_arg1:MovieClip, _arg2:BitmapData, _arg3:Number, _arg4:Number=40){
CLOSEALL = 0xFF;
CLOSETOP = 0xFF00;
SLOPELEFT = 0xFF0000;
SLOPERIGHT = 0xFFFF00;
SLOPEB = 0x800000;
SLOPEB2 = 0x808000;
FREE = 0;
super();
control = _arg1;
if (control.gravity == null){
control.gravity = 3;
control.movegravity = control.gravity;
} else {
control.movegravity = control.gravity;
};
if (control.direct == null){
control.direct = 0;
control.movedirect = control.direct;
} else {
control.movedirect = control.direct;
};
this.speedy = 0;
this.speedx = 0;
this.speed = _arg3;
this.map = _arg2;
this.mapscale = _arg4;
this.ground = false;
this.jumpfactor = 0;
this.jumplimit = 0;
isjump = false;
jumpbase = 0;
dash = 0;
dashground = false;
}
override public function setSpeed(_arg1:Number){
this.speed = _arg1;
}
override public function getSpeed():Number{
return (speed);
}
public function setZone(_arg1:Number, _arg2:Number){
this.left = _arg1;
this.right = _arg2;
}
public function jumpNow(_arg1:Number=10, _arg2:Number=81):Boolean{
if (((ground) && ((dash == 0)))){
ground = false;
isjump = !(ground);
speedy = control.movegravity;
speedy = (speedy - (_arg1 * control.movegravity));
jumpbase = control.y;
this.jumplimit = _arg2;
return (true);
};
return (false);
}
public function getDirect():Number{
return (control.direct);
}
override public function process(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
dash--;
if (dash > 0){
_local2 = dash;
} else {
_local2 = 1;
dash = 0;
};
_local1 = 0;
while (_local1 < _local2) {
_local3 = control.x;
_local4 = control.y;
speedx = speed;
if (speed > mapscale){
speedx = mapscale;
};
speedx = (control.movedirect * speedx);
if (dash > 0){
speedx = ((dash / 2) * dashdirect);
};
speedy = (speedy + control.movegravity);
if (speedy > mapscale){
speedy = mapscale;
};
if (speedy < -(mapscale)){
speedy = -(mapscale);
};
if (dash > 0){
if (!dashground){
speedy = 1;
} else {
_local10 = int((_local3 / mapscale));
_local11 = int(((_local4 + 10) / mapscale));
_local12 = map.getPixel(_local7, _local8);
if (_local12 == FREE){
dashground = false;
};
};
};
_local5 = (_local4 + speedy);
_local6 = (_local3 + speedx);
_local7 = int((_local6 / mapscale));
_local8 = int((_local4 / mapscale));
_local9 = map.getPixel(_local7, _local8);
if ((((_local9 == SLOPEB)) || ((_local9 == SLOPEB2)))){
_local5 = ((_local8 * mapscale) - 1);
_local4 = _local5;
_local3 = _local6;
ground = true;
isjump = !(ground);
speedy = 0;
} else {
if (_local9 == CLOSEALL){
if (cannotWalk != null){
cannotWalk(control);
};
} else {
_local3 = _local6;
};
};
control.x = _local3;
if (speedy >= 0){
_local7 = int((_local3 / mapscale));
_local8 = int((_local5 / mapscale));
_local9 = map.getPixel(_local7, _local8);
_local13 = int((_local4 / mapscale));
_local14 = map.getPixel(_local7, _local13);
if ((((_local14 == SLOPEB)) || ((_local14 == SLOPEB2)))){
_local5 = ((_local13 * mapscale) - 1);
_local4 = _local5;
ground = true;
isjump = !(ground);
speedy = 0;
};
if (_local14 == SLOPERIGHT){
_local15 = ((((_local13 + 1) * mapscale) - 1) - (mapscale - (_local3 % mapscale)));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if (_local14 == SLOPELEFT){
_local15 = ((((_local13 + 1) * mapscale) - 1) - (_local3 % mapscale));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if ((((_local14 == FREE)) || ((_local14 == CLOSETOP)))){
if (_local9 == FREE){
_local4 = _local5;
} else {
if (_local9 == CLOSEALL){
_local5 = ((_local8 * mapscale) - 1);
_local4 = _local5;
speedy = 0;
ground = true;
isjump = !(ground);
} else {
if (_local9 == CLOSETOP){
_local16 = ((_local8 * mapscale) - 1);
if ((jumpbase - jumplimit) < _local16){
_local4 = _local16;
speedy = 0;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if (_local9 == SLOPELEFT){
_local15 = ((((_local8 + 1) * mapscale) - 1) - (_local3 % mapscale));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if (_local9 == SLOPERIGHT){
_local15 = ((((_local8 + 1) * mapscale) - 1) - (mapscale - (_local3 % mapscale)));
if (_local5 > _local15){
_local5 = _local15;
_local4 = _local5;
ground = true;
isjump = !(ground);
} else {
_local4 = _local5;
};
} else {
if ((((_local9 == SLOPEB)) || ((_local9 == SLOPEB2)))){
_local5 = ((_local8 * mapscale) - 1);
_local4 = _local5;
ground = true;
isjump = !(ground);
speedy = 0;
};
};
};
};
};
};
};
};
};
} else {
if (speedy < 0){
_local7 = int((_local3 / mapscale));
_local8 = int((_local5 / mapscale));
_local9 = map.getPixel(_local7, _local8);
if (_local9 == CLOSEALL){
speedy = control.movegravity;
} else {
_local4 = _local5;
};
};
};
if (!isjump){
jumpbase = 0;
};
control.y = _local4;
_local1++;
};
if (control.x > right){
if (outAreaWalk != null){
outAreaWalk(control);
};
};
if (control.x < left){
if (outAreaWalk != null){
outAreaWalk(control);
};
};
if (ai != null){
ai(control);
};
}
public function setDirect(_arg1:Number){
control.movedirect = _arg1;
control.direct = _arg1;
}
public function dashNow(_arg1:Number, _arg2:Number=10){
this.dashdirect = _arg1;
this.dash = _arg2;
if (ground){
dashground = true;
} else {
dashground = false;
};
}
}
}//package GREENHERMIT.GHMovement
Section 42
//MoveBaseClass (GREENHERMIT.GHMovement.MoveBaseClass)
package GREENHERMIT.GHMovement {
import flash.display.*;
public class MoveBaseClass {
public var ai:Function;
private var testcounter:Number;
public var control:MovieClip;
public function setSpeed(_arg1:Number){
trace(("Not impliment" + this));
}
public function process(){
trace(("Not impliment" + this));
}
public function getSpeed():Number{
trace(("Not impliment" + this));
return (0);
}
}
}//package GREENHERMIT.GHMovement
Section 43
//RandomShoot (GREENHERMIT.GHShootingStyle.RandomShoot)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class RandomShoot extends ShootBaseMethod {
var bullet:Object;
public function RandomShoot(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist = new Array();
bulletlist.push(_local4);
if (_local3 != null){
_local4.x = _local3.x;
_local4.y = _local3.y;
} else {
_local4.x = shooter.x;
_local4.y = shooter.y;
};
API.setMotion(_local4, new AngleMove(_local4, (Math.random() * 360), _local4.speed));
}
}
}//package GREENHERMIT.GHShootingStyle
Section 44
//RandomShootEx (GREENHERMIT.GHShootingStyle.RandomShootEx)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class RandomShootEx extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function RandomShootEx(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = (Math.random() * 360);
bulletlist = new Array();
_local5 = 0;
while (_local5 < info.way) {
_local6 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local6);
if (_local3 != null){
_local6.x = _local3.x;
_local6.y = _local3.y;
} else {
_local6.x = shooter.x;
_local6.y = shooter.y;
};
_local6.rotation = (_local4 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local6, new AngleMove(_local6, (_local4 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle)), _local6.speed));
_local5++;
};
}
}
}//package GREENHERMIT.GHShootingStyle
Section 45
//ShootBaseMethod (GREENHERMIT.GHShootingStyle.ShootBaseMethod)
package GREENHERMIT.GHShootingStyle {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import flash.geom.*;
public dynamic class ShootBaseMethod {
var bulletlist:Array;
public var shooter:Object;
public var game:Object;
public var world:MovieClip;
public function getGunPoint(_arg1:MovieClip):Point{
var _local2:*;
if (_arg1 != null){
_local2 = new Point(_arg1.x, _arg1.y);
_local2 = _arg1.parent.localToGlobal(_local2);
_local2 = MovieClip(_arg1.parent).objectin.globalToLocal(_local2);
return (_local2);
};
return (null);
}
public function getGunObject(_arg1:GunDesc):MovieClip{
if (shooter[_arg1.gun] == null){
throw (Error(((("Error: " + shooter) + " need") + _arg1.gun)));
};
return (shooter[_arg1.gun]);
}
public function clear(){
}
public function getWorldPoint(_arg1:MovieClip):Point{
var gp:*;
var object = _arg1;
if (object != null){
try {
gp = new Point(object.x, object.y);
gp = object.parent.localToGlobal(gp);
gp = MovieClip(object.parent).objectin.globalToLocal(gp);
} catch(e) {
gp = null;
};
return (gp);
//unresolved jump
};
return (null);
}
public function process(_arg1:GunDesc){
}
}
}//package GREENHERMIT.GHShootingStyle
Section 46
//ShootLookingObject (GREENHERMIT.GHShootingStyle.ShootLookingObject)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import flash.geom.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootLookingObject extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function ShootLookingObject(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (shooter.looking == null){
return;
};
if (!shooter.looking.visible){
return;
};
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
_local4 = new Point(shooter.looking.x, shooter.looking.y);
if (shooter.looking.hit != null){
_local4 = getWorldPoint(shooter.looking.hit);
};
bulletlist = new Array();
_local5 = 0;
while (_local5 < info.way) {
_local6 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local6);
if (_local3 != null){
_local6.x = _local3.x;
_local6.y = _local3.y;
} else {
_local6.x = shooter.x;
_local6.y = shooter.y;
};
_local7 = API.findAngle(_local3, _local4);
if (info.err != null){
_local7 = (_local7 + ((Math.random() * info.err) - (info.err / 2)));
};
_local6.rotation = (_local7 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local6, new AngleMove(_local6, (_local7 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle)), _local6.speed));
_local5++;
};
_local4 = null;
}
}
}//package GREENHERMIT.GHShootingStyle
Section 47
//ShootMouse (GREENHERMIT.GHShootingStyle.ShootMouse)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import flash.geom.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootMouse extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function ShootMouse(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local2 = super.game;
_local3 = getGunObject(_arg1);
_local4 = getGunPoint(_local3);
_local5 = new Point(_local3.parent.objectin.mouseX, _local3.parent.objectin.mouseY);
bulletlist = new Array();
_local6 = 0;
while (_local6 < info.way) {
_local7 = API.createMovieFromBase(_local3.parent.objectin, bullet);
bulletlist.push(_local7);
if (_local4 != null){
_local7.x = _local4.x;
_local7.y = _local4.y;
} else {
_local7.x = shooter.x;
_local7.y = shooter.y;
};
_local8 = API.findAngle(_local4, _local5);
if (info.err != null){
_local8 = (_local8 + ((Math.random() * info.err) - (info.err / 2)));
};
API.setMotion(_local7, new AngleMove(_local7, (_local8 - ((_local6 - ((info.way - 1) * 0.5)) * info.angle)), _local7.speed));
_local6++;
};
_local5 = null;
}
}
}//package GREENHERMIT.GHShootingStyle
Section 48
//ShootOwnerAngle (GREENHERMIT.GHShootingStyle.ShootOwnerAngle)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootOwnerAngle extends ShootBaseMethod {
var bullet:Object;
var info:Object;
public function ShootOwnerAngle(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
bulletlist = new Array();
_local4 = 0;
while (_local4 < info.way) {
_local5 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local5);
if (_local3 != null){
_local5.x = _local3.x;
_local5.y = _local3.y;
} else {
_local5.x = shooter.x;
_local5.y = shooter.y;
};
_local6 = _local2.parent.rotation;
if (info.err != null){
_local6 = (_local6 + ((Math.random() * info.err) - (info.err / 2)));
};
_local5.rotation = (_local6 - ((_local4 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local5, new AngleMove(_local5, (_local6 - ((_local4 - ((info.way - 1) * 0.5)) * info.angle)), _local5.speed));
_local4++;
};
}
}
}//package GREENHERMIT.GHShootingStyle
Section 49
//ShootOwnerAngleLoop (GREENHERMIT.GHShootingStyle.ShootOwnerAngleLoop)
package GREENHERMIT.GHShootingStyle {
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHUtils.*;
public dynamic final class ShootOwnerAngleLoop extends ShootBaseMethod {
var bullet:Object;
var info:Object;
var shootorder:Number;
public function ShootOwnerAngleLoop(_arg1:Object, _arg2:Object){
this.bullet = _arg1;
this.info = _arg2;
shootorder = 0;
}
override public function process(_arg1:GunDesc){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = getGunObject(_arg1);
_local3 = getGunPoint(_local2);
bulletlist = new Array();
_local4 = API.createMovieFromBase(_local2.parent.objectin, bullet);
bulletlist.push(_local4);
_local5 = (shootorder % info.way);
if (_local3 != null){
_local4.x = _local3.x;
_local4.y = _local3.y;
} else {
_local4.x = shooter.x;
_local4.y = shooter.y;
};
_local6 = _local2.parent.rotation;
if (info.err != null){
_local6 = (_local6 + ((Math.random() * info.err) - (info.err / 2)));
};
_local4.rotation = (_local6 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle));
API.setMotion(_local4, new AngleMove(_local4, (_local6 - ((_local5 - ((info.way - 1) * 0.5)) * info.angle)), _local4.speed));
shootorder++;
}
}
}//package GREENHERMIT.GHShootingStyle
Section 50
//KeyframeTemplate (GREENHERMIT.GHTemplate.KeyframeTemplate)
package GREENHERMIT.GHTemplate {
import flash.events.*;
public class KeyframeTemplate extends TemplateBaseClass {
public var keyFrameStyleEnterFrame:Function;
public var EventKBRelease:Function;
public var EventKBPress:Function;
override public function keyboardRelease(_arg1:Number){
if (EventKBRelease != null){
EventKBRelease(_arg1);
};
}
override public function EnterFrame(_arg1:Event){
var e = _arg1;
try {
super.EnterFrame(e);
if (this.keyFrameStyleEnterFrame != null){
this.keyFrameStyleEnterFrame(e);
};
} catch(e) {
};
}
override public function keyboardPress(_arg1:Number){
if (EventKBPress != null){
EventKBPress(_arg1);
};
}
}
}//package GREENHERMIT.GHTemplate
Section 51
//TemplateBaseClass (GREENHERMIT.GHTemplate.TemplateBaseClass)
package GREENHERMIT.GHTemplate {
import flash.display.*;
import GREENHERMIT.GHShootingStyle.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
public class TemplateBaseClass extends MovieClip {
public var space:Object;
public var css:Object;
public var gamewidth:Number;
public var worldlist:Array;
public var gamepause:Boolean;
public var GHLINK:DisplayObject;
public var key:Array;
public var processfn:Array;
public var world:Object;
public var gameheight:Number;
public var processlist:Array;
public var spacelist:Array;
public var spaceprocesslist:Array;
public var cam:Object;
public var GHDESIGNCSS:StyleSheet;
public var keyfocus:MovieClip;
public var game:Object;
public function TemplateBaseClass(){
var _local1:RandomShoot;
var _local2:RandomShootEx;
var _local3:ShootLookingObject;
var _local4:ShootMouse;
var _local5:ShootOwnerAngle;
var _local6:ShootOwnerAngleLoop;
super();
game = this;
gamepause = false;
GHDESIGNCSS = MovieClip(parent).designCSS;
GHLINK = MovieClip(parent).llink;
css = CSSToVar.createVariable(this);
worldlist = new Array();
spacelist = new Array();
spaceprocesslist = new Array();
processlist = new Array();
processfn = new Array();
gamewidth = 640;
gameheight = 480;
key = new Array();
API.setLibrary(GHLINK);
cam = {x:0, y:0, focusobject:{x:(gamewidth / 2), y:(gameheight / 2)}, round:{x1:0, y1:0, x2:640, y2:480}};
keyfocus = new MovieClip();
keyfocus.addEventListener(KeyboardEvent.KEY_DOWN, keydown);
keyfocus.addEventListener(KeyboardEvent.KEY_UP, keyup);
this.addEventListener(Event.ENTER_FRAME, EnterFrame);
stop();
}
public function releaseFocus(){
try {
stage.focus = keyfocus;
} catch(e) {
};
}
public function keyboardRelease(_arg1:Number){
}
public function keydown(_arg1:KeyboardEvent){
keyboardPress(_arg1.keyCode);
key[_arg1.keyCode] = true;
}
public function keyup(_arg1:KeyboardEvent){
key[_arg1.keyCode] = false;
keyboardRelease(_arg1.keyCode);
delete key[_arg1.keyCode];
}
public function camProcess(){
if (cam.focusobject != null){
cam.smoothx = (cam.focusobject.x - (gamewidth / 2));
cam.smoothy = (cam.focusobject.y - (gameheight / 2));
if (cam.round != null){
if (cam.smoothx > (cam.round.x2 - gamewidth)){
cam.smoothx = (cam.round.x2 - gamewidth);
};
if (cam.smoothx < cam.round.x1){
cam.smoothx = cam.round.x1;
};
if (cam.smoothy > (cam.round.y2 - gameheight)){
cam.smoothy = (cam.round.y2 - gameheight);
};
if (cam.smoothy < cam.round.y1){
cam.smoothy = cam.round.y1;
};
};
API.smoothCamY(cam);
API.smoothCamX(cam);
API.updateWorld(world, cam);
};
}
public function freeSystemListener(){
this.removeEventListener(Event.ENTER_FRAME, EnterFrame);
keyfocus.removeEventListener(KeyboardEvent.KEY_DOWN, keydown);
keyfocus.removeEventListener(KeyboardEvent.KEY_UP, keyup);
}
public function createLayer(){
LayerCore.addGroup(this, "world", 0, 0);
LayerCore.addGroup(this, "space", 0, 0);
LayerCore.createLayerFromList(world, worldlist);
LayerCore.createLayerFromList(space, spacelist);
}
public function EnterFrame(_arg1:Event){
var e = _arg1;
if (gamepause){
return;
};
try {
stage.focus = keyfocus;
} catch(e) {
};
if (world != null){
try {
camProcess();
LayerCore.processListGroup(world, processlist, processfn);
LayerCore.processListGroup(space, spaceprocesslist, processfn);
} catch(e) {
gamepause = true;
trace(e);
};
};
}
public function keyboardPress(_arg1:Number){
}
public function readDesignDoc(_arg1:String):Object{
var _local2:*;
var _local3:*;
_local2 = GHDESIGNCSS.getStyle(_arg1);
for (_local3 in _local2) {
if (isNaN(Number(_local2[_local3]))){
} else {
_local2[_local3] = Number(_local2[_local3]);
};
};
return (_local2);
}
public function createWorld(){
createLayer();
}
}
}//package GREENHERMIT.GHTemplate
Section 52
//API (GREENHERMIT.GHUtils.API)
package GREENHERMIT.GHUtils {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHShootingStyle.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHTemplate.*;
import GREENHERMIT.GHDurationControl.*;
import flash.utils.*;
public class API {
private static var createcount:Number = 0;
private static var camspeed:Number = 40;
private static var library:DisplayObject = null;
public static function setTimeCount(_arg1:MovieClip, _arg2:Number){
if (_arg1.durationclass != null){
_arg1.durationclass.timecount = _arg2;
};
}
public static function getClass(_arg1:String):Class{
if (library != null){
return (MovieClip(library).getClass(_arg1));
};
return ((getDefinitionByName(_arg1) as Class));
}
public static function setSpeed(_arg1:MovieClip, _arg2:Number){
if (_arg1.motclass == null){
trace((_arg1.name + " need GHMotion setSpeed"));
return (0);
};
_arg1.motclass.setSpeed(_arg2);
}
public static function smoothCamY(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = (_arg1.y - _arg1.smoothy);
_local3 = int((Math.abs((_arg1.y - _arg1.smoothy)) / 3));
if (_local3 > camspeed){
_local3 = camspeed;
};
if (_local2 < 0){
_arg1.y = (_arg1.y + _local3);
} else {
if (_local2 > 0){
_arg1.y = (_arg1.y - _local3);
};
};
}
public static function updateWorld(_arg1:Object, _arg2:Object){
_arg1.x = -(_arg2.x);
_arg1.y = -(_arg2.y);
}
public static function getDuration(_arg1:MovieClip){
return (_arg1.durationclass);
}
public static function getTimeCount(_arg1:MovieClip):Number{
if (_arg1.durationclass != null){
return (_arg1.durationclass.timecount);
};
return (0);
}
public static function createMovieFromBase(_arg1:Object, _arg2:Object, _arg3:Object=null, _arg4:String=null){
var world:*;
var imgclass:*;
var newclip:*;
var backup:*;
var field:*;
var worldobj = _arg1;
var base = _arg2;
var addition = _arg3;
var name = _arg4;
world = MovieClip(worldobj);
imgclass = null;
newclip = null;
backup = new Object();
if (base.editfrom != null){
for (field in base) {
backup[field] = base[field];
};
base = TemplateBaseClass(world.parent).css[base.editfrom];
};
if (backup.linkage != null){
try {
newclip = new (getClass(backup.linkage));
} catch(e) {
try {
newclip = new (getClass("cerror"));
} catch(e) {
trace("Create cerror::linkage in library to Show Error Object");
return (base);
};
};
} else {
try {
newclip = new (getClass(base.linkage));
} catch(e) {
try {
newclip = new (getClass("cerror"));
} catch(e) {
trace("Create cerror::linkage in library to Show Error Object");
return (base);
};
};
};
for (field in base) {
newclip[field] = base[field];
};
if (backup != null){
for (field in backup) {
newclip[field] = backup[field];
};
};
if (addition != null){
for (field in addition) {
newclip[field] = addition[field];
};
};
if (name == null){
createcount++;
newclip.name = (((((((base.layer + "/") + "[css:") + newclip.__ghbasename) + "]/") + newclip) + ".") + createcount);
} else {
newclip.name = name;
};
if (newclip.createMovieFinish != null){
newclip.createMovieFinish(newclip, base);
};
newclip.objectin = world;
world[newclip.layer].addChild(newclip);
return (newclip);
}
public static function getSpeed(_arg1:MovieClip):Number{
if (_arg1.motclass == null){
trace((_arg1.name + " need GHMotion getSpeed"));
return (0);
};
return (_arg1.motclass.getSpeed());
}
public static function setDuration(_arg1:MovieClip, _arg2:Number, _arg3:Function){
_arg1.durationclass = new Duration(_arg2, _arg3);
_arg1.durationclass.objectduration = _arg1;
}
public static function removeMotion(_arg1:MovieClip){
_arg1.motclass = null;
}
public static function resumeTime(_arg1:MovieClip){
if (_arg1.durationclass != null){
_arg1.durationclass.resume();
};
}
public static function setShooterType(_arg1:MovieClip){
_arg1.gunclasslist = new Array();
}
public static function setDurationEx(_arg1:MovieClip, _arg2:Array, _arg3:Function){
_arg1.durationclass = new AlarmClock(_arg3, _arg2);
_arg1.durationclass.objectduration = _arg1;
}
public static function getMotion(_arg1:MovieClip):MoveBaseClass{
return (_arg1.motclass);
}
public static function stopTime(_arg1:MovieClip){
if (_arg1.durationclass != null){
_arg1.durationclass.stop();
};
}
public static function findAngle(_arg1:Object, _arg2:Object):Number{
var dx:*;
var dy:*;
var red:*;
var p1 = _arg1;
var p2 = _arg2;
try {
dx = (p2.x - p1.x);
dy = (p2.y - p1.y);
red = Math.atan2(dy, dx);
} catch(e) {
red = ((Math.random() * 2) * Math.PI);
};
return (((red * 180) / Math.PI));
}
public static function smoothCamX(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = (_arg1.x - _arg1.smoothx);
_local3 = int((Math.abs((_arg1.x - _arg1.smoothx)) / 3));
if (_local3 > camspeed){
_local3 = camspeed;
};
if (_local2 < 0){
_arg1.x = (_arg1.x + _local3);
} else {
if (_local2 > 0){
_arg1.x = (_arg1.x - _local3);
};
};
}
public static function setMotion(_arg1:MovieClip, _arg2:MoveBaseClass){
_arg2.control = _arg1;
_arg1.motclass = _arg2;
}
public static function setLibrary(_arg1:DisplayObject){
library = _arg1;
}
public static function setCamSpeed(_arg1:Number){
camspeed = _arg1;
}
public static function setAlarmTime(_arg1:MovieClip, _arg2:Number){
if (_arg1.durationclass != null){
_arg1.durationclass.timecount = _arg2;
};
}
public static function removeAllCompositClass(_arg1:MovieClip){
var _local2:*;
var _local3:*;
_local2 = 0;
if (_arg1.motclass != null){
delete _arg1.motclass;
};
if (_arg1.gunclasslist != null){
_local2 = (_arg1.gunclasslist.length - 1);
while (_local2 >= 0) {
_arg1.gunclasslist[_local2].shootClass.clear();
delete _arg1.gunclasslist[_local2].shootClass;
delete _arg1.gunclasslist[_local2];
_local2--;
};
delete _arg1.gunclasslist;
};
if (_arg1.durationclass != null){
delete _arg1.durationclass;
};
for (_local3 in _arg1) {
if (_arg1[_local3] != null){
delete _arg1[_local3];
};
};
}
public static function addShootMethod(_arg1:Object, _arg2:Object, _arg3:MovieClip, _arg4:GunDesc, _arg5:ShootBaseMethod){
if (_arg3.gunclasslist == null){
trace(("setShooterType First " + _arg3.name));
return;
};
_arg5.game = MovieClip(_arg1);
_arg5.world = MovieClip(_arg2);
_arg5.shooter = _arg3;
_arg4.shootClass = _arg5;
_arg3.gunclasslist.push(_arg4);
}
}
}//package GREENHERMIT.GHUtils
Section 53
//CSSToVar (GREENHERMIT.GHUtils.CSSToVar)
package GREENHERMIT.GHUtils {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHTemplate.*;
import flash.utils.*;
import GREENHERMIT.GHDataType.*;
public class CSSToVar {
public static function CSSCreateShootSet(_arg1:Object, _arg2:Object, _arg3:MovieClip, _arg4:Object){
var shootclass:Class;
var gun:GunDesc;
var shoot:*;
var game = _arg1;
var world = _arg2;
var obj = _arg3;
var css = _arg4;
try {
shootclass = (getDefinitionByName(("GREENHERMIT.GHShootingStyle." + css.shoot)) as Class);
gun = new GunDesc(css.gun, css.mag, css.reload, css.frq, css.cooldown);
shoot = new shootclass(game.css[css.bullet], css);
API.addShootMethod(game, world, obj, gun, shoot);
} catch(e) {
trace(((((("GREENHERMIT.GHShootingStyle." + css.shoot) + " not found\n") + "\t 1.ปัญหาอาจเกิดจาก เขียนชื่อ Class ผิดลองสะกดดู\n") + "\t 2.ไม่ได้ประกาศไว้ใน registerClass.as\n") + "\t 3.ไม่มี Class อยู่ใน package GREENHERMIT.GHShootingStyle ควร impliment ก่อน"));
};
}
public static function importCSSObject(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Function){
var _local5:*;
_local5 = 0;
while (_local5 < _arg3) {
if (_arg1[(_arg2 + _local5)] != null){
_arg1[(_arg2 + _local5)].createMovieFinish = _arg4;
};
_local5++;
};
}
public static function CSSEvent(_arg1:Object):Array{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = new Array();
for (_local3 in _arg1) {
_local4 = String(_local3).substr(0, 5);
if (_local4 == "frame"){
_local5 = String(_local3).substr(5, 500);
_local2[Number(_local5)] = _arg1[_local3];
};
};
return (_local2);
}
public static function createVariable(_arg1:TemplateBaseClass):Object{
var _local2:*;
var _local3:*;
_local2 = new Object();
_local3 = 0;
while (_local3 < _arg1.GHDESIGNCSS.styleNames.length) {
_local2[_arg1.GHDESIGNCSS.styleNames[_local3]] = _arg1.readDesignDoc(_arg1.GHDESIGNCSS.styleNames[_local3]);
_local2[_arg1.GHDESIGNCSS.styleNames[_local3]].__ghbasename = _arg1.GHDESIGNCSS.styleNames[_local3];
_local3++;
};
return (_local2);
}
public static function CSSApplyObject(_arg1:Object, _arg2:Object, _arg3:MovieClip, _arg4:Object){
if (_arg4.process != null){
_arg3.process = _arg1[_arg4.process];
};
if (_arg4.initobject != null){
_arg3.initobject = _arg1[_arg4.initobject];
};
if (_arg4.gun != null){
CSSCreateShootSet(_arg1, _arg2, _arg3, _arg1.css[_arg4.gun]);
};
if (_arg4.clock != null){
API.setDurationEx(_arg3, CSSEvent(_arg1.css[_arg4.clock]), _arg1[_arg4.clockfunction]);
};
if (_arg3.initobject != null){
_arg3.initobject(_arg3);
};
}
public static function CSSGun(_arg1:Object){
return (new GunDesc(_arg1.gun, _arg1.mag, _arg1.reload, _arg1.frq, _arg1.cooldown));
}
public static function createGlobal(_arg1:TemplateBaseClass):Object{
var _local2:*;
_local2 = 0;
while (_local2 < _arg1.GHDESIGNCSS.styleNames.length) {
_arg1[_arg1.GHDESIGNCSS.styleNames[_local2]] = _arg1.readDesignDoc(_arg1.GHDESIGNCSS.styleNames[_local2]);
_local2++;
};
return (_arg1);
}
}
}//package GREENHERMIT.GHUtils
Section 54
//LayerCore (GREENHERMIT.GHUtils.LayerCore)
package GREENHERMIT.GHUtils {
import flash.display.*;
import flash.utils.*;
public class LayerCore {
public static function processGroup(_arg1:Object, _arg2:Array){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (_arg1.pause == (((1 + 2) + 4) + 8)){
return;
};
_local3 = (_arg1.numChildren - 1);
for (;_local3 >= 0;_local3--) {
_local4 = _arg1.getChildAt(_local3);
if ((_local4 is MovieClip)){
} else {
continue;
};
if (!(_arg1.pause & 1)){
_local5 = 0;
while (_local5 < _arg2.length) {
if ((_local4[_arg2[_local5]] as Function)){
var _local7 = _local4;
_local7[_arg2[_local5]](_local4);
};
_local5++;
};
};
if (!(_arg1.pause & 2)){
if (_local4.motclass != null){
_local4.motclass.process();
};
};
if (!(_arg1.pause & 4)){
if (_local4.gunclasslist != null){
_local6 = 0;
while (_local6 < _local4.gunclasslist.length) {
_local4.gunclasslist[_local6].process();
_local6++;
};
};
};
if (!(_arg1.pause & 8)){
if (_local4.durationclass != null){
_local4.durationclass.process();
};
};
};
}
public static function USER_PAUSE(){
return (1);
}
public static function createLayerFromList(_arg1:Object, _arg2:Array, _arg3:Object=null){
var _local4:*;
if (_arg3 == null){
_arg3 = _arg1;
};
_local4 = 0;
while (_local4 < _arg2.length) {
if (_arg2[_local4].movieclip == null){
addGroup(_arg1, _arg2[_local4].layername, 0, 0, _arg3);
} else {
addGroupByClip(_arg1, _arg2[_local4].layername, 0, 0, _arg2[_local4].movieclip, _arg3);
};
_local4++;
};
}
public static function CLOCK_PAUSE(){
return (8);
}
public static function GUN_PAUSE(){
return (4);
}
public static function ALL_PAUSE(){
return (15);
}
public static function MOT_PAUSE(){
return (2);
}
public static function processListGroup(_arg1:Object, _arg2:Array, _arg3:Array){
var _local4:*;
_local4 = 0;
while (_local4 < _arg2.length) {
processGroup(_arg1[_arg2[_local4]], _arg3);
_local4++;
};
}
public static function addGroupByClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Object){
var _local7:*;
if (_arg6 == null){
_arg6 = _arg1;
};
_local7 = new ((getDefinitionByName(_arg5) as Class));
_local7.x = _arg3;
_local7.y = _arg4;
_local7.pause = 0;
_arg6[_arg2] = _arg1.addChild(_local7);
return (_arg6[_arg2]);
}
public static function ALL_RUN(){
return (0);
}
public static function addGroup(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Object=null){
var _local6:*;
if (_arg5 == null){
_arg5 = _arg1;
};
_local6 = new MovieClip();
_local6.x = _arg3;
_local6.y = _arg4;
_local6.pause = 0;
_arg5[_arg2] = _arg1.addChild(_local6);
return (_arg5[_arg2]);
}
}
}//package GREENHERMIT.GHUtils
Section 55
//MapHelper (GREENHERMIT.GHUtils.MapHelper)
package GREENHERMIT.GHUtils {
import flash.display.*;
public class MapHelper {
public static var view:BitmapData;
public static var width:Number;
public static var where:MovieClip;
public static var scale:Number;
public static var index:BitmapData;
public static var tileset:Class;
public static var height:Number;
public static var dat:BitmapData;
public static var maptable:Array;
public static function DrawSectionMap(_arg1:Object, _arg2:Object){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local3 = int((_arg2.width / scale));
_local4 = int((_arg2.height / scale));
_local5 = int((_arg1.x / scale));
_local6 = int((_arg1.y / scale));
_local7 = (_local6 - 3);
while (_local7 < ((_local6 + _local4) + 3)) {
_local8 = (_local5 - 3);
while (_local8 < ((_local5 + _local3) + 3)) {
_local9 = view.getPixel(_local8, _local7);
_local10 = ((("block" + _local8) + "_") + _local7);
if (maptable[_local9] != null){
if (where.getChildByName(_local10) == null){
_local11 = new tileset();
_local11.x = (scale * _local8);
_local11.y = (scale * _local7);
if (_local11.width != scale){
_local11.width = scale;
_local11.height = scale;
};
_local11.name = _local10;
_local11.gotoAndStop(maptable[_local9]);
where.addChild(_local11);
};
};
_local8++;
};
_local7++;
};
_local8 = (where.numChildren - 1);
while (_local8 >= 0) {
_local11 = where.getChildAt(_local8);
if ((((((((_local11.x < ((_local5 - 3) * scale))) || ((_local11.x > (((_local5 + _local3) + 3) * scale))))) || ((_local11.y < ((_local6 - 3) * scale))))) || ((_local11.y > (((_local6 + _local4) + 3) * scale))))){
delete ??getglobalscope
[where.removeChildAt(_local8)];
};
_local8--;
};
}
public static function getStatus(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:Number=40):Number{
return (_arg1.getPixel(int((_arg2 / _arg4)), int((_arg3 / _arg4))));
}
public static function getMapdata():BitmapData{
return (dat);
}
public static function CreateSectionMap(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=40){
var i:*;
var iwhere = _arg1;
var dats = _arg2;
var views = _arg3;
var indexs = _arg4;
var tilesets = _arg5;
var iscale = _arg6;
try {
dat = new API.getClass(dats)(0, 0);
} catch(e) {
dat = new API.getClass("daterror")(0, 0);
};
try {
view = new API.getClass(views)(0, 0);
} catch(e) {
view = dat;
};
try {
index = new API.getClass(indexs)(0, 0);
} catch(e) {
index = new API.getClass("tileerrorindex")(0, 0);
};
try {
tileset = API.getClass(tilesets);
} catch(e) {
tileset = API.getClass("tileerror");
};
where = iwhere;
scale = iscale;
width = (dat.width * scale);
height = (dat.height * scale);
maptable = new Array();
i = 0;
while (i < index.width) {
if (index.getPixel(i, 0) != 0){
maptable[index.getPixel(i, 0)] = (i + 1);
};
i = (i + 1);
};
}
public static function CreateFullMap(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=40){
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
dat = new API.getClass(_arg2)(0, 0);
view = new API.getClass(_arg3)(0, 0);
index = new API.getClass(_arg4)(0, 0);
tileset = API.getClass(_arg5);
where = _arg1;
scale = _arg6;
width = (dat.width * scale);
height = (dat.height * scale);
maptable = new Array();
_local7 = 0;
while (_local7 < index.width) {
if (index.getPixel(_local7, 0) != 0){
maptable[index.getPixel(_local7, 0)] = (_local7 + 1);
};
_local7++;
};
_local8 = 0;
while (_local8 < view.height) {
_local7 = 0;
while (_local7 < view.width) {
_local9 = view.getPixel(_local7, _local8);
if (maptable[_local9] != null){
_local10 = new tileset();
_local10.x = (scale * _local7);
_local10.y = (scale * _local8);
_local10.gotoAndStop(maptable[_local9]);
where.addChild(_local10);
};
_local7++;
};
_local8++;
};
}
}
}//package GREENHERMIT.GHUtils
Section 56
//MFZAchievement (MoFunZoneAPI.MFZAchievement)
package MoFunZoneAPI {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MFZAchievement {
private static var _config:MFZAchievementConfig;
private static var _user:String;
private static var _resource:MovieClip = null;
private static var _readyFuntion:Function = null;
private static var _debug:Object;
private static var _resourceAPI:Object;
public static function success(_arg1:String){
if (_resource != null){
_resource.success(_arg1);
};
}
public static function loadMe(_arg1:String, _arg2:Object, _arg3:Function, ... _args){
readyCallBack(_arg3);
loadAchievement(_arg1, MFZAchievementConfig(_arg2), _args[0].getAPI(), _args[1].getUserName());
}
private static function _http(_arg1){
if (_debug != null){
_debug.text = ("httpstatus: " + _arg1.status);
};
}
private static function _progress(_arg1){
if (_debug != null){
_debug.text = (_debug.text + ((("progressHandler: bytesLoaded=" + _arg1.bytesLoaded) + " bytesTotal=") + _arg1.bytesTotal));
};
}
public static function loadAchievement(_arg1:String, _arg2:MFZAchievementConfig, _arg3:Object, _arg4:String, _arg5=null){
var resourceload:Loader;
var resource_request:URLRequest;
var resource_address = _arg1;
var config = _arg2;
var resource = _arg3;
var username = _arg4;
var debug = _arg5;
Security.allowDomain("*");
_debug = debug;
_config = config;
_user = username;
_resourceAPI = resource;
if (_resource != null){
return;
};
resourceload = new Loader();
resource_request = new URLRequest(resource_address);
resourceload.contentLoaderInfo.addEventListener(Event.COMPLETE, _complete);
resourceload.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _security);
resourceload.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _ioerror);
resourceload.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, _http);
resourceload.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, _progress);
try {
resourceload.load(resource_request);
if (_debug != null){
_debug.text = "loading";
};
} catch(error) {
if (_debug != null){
_debug.text = "loaderror";
};
};
}
private static function _ioerror(_arg1){
if (_debug != null){
_debug.text = "Achievement SWF not found";
};
}
public static function readyCallBack(_arg1:Function){
_readyFuntion = _arg1;
}
private static function _complete(_arg1){
if (_debug != null){
_debug.text = "complete";
};
_resource = _arg1.target.loader.content;
_resource.resourceAPI = _resourceAPI;
_resource.readyFuntion = _readyFuntion;
if (_debug != null){
_debug.text = "config setup";
};
_resource.gameid = _config.gameID;
_resource.test = _config.testMode;
_resource.username = _user;
_resource.play();
if (_debug != null){
_debug.text = "complete";
};
}
public static function getAchievement(){
return (_resource);
}
private static function _security(_arg1){
if (_debug != null){
_debug.text = _arg1;
};
}
}
}//package MoFunZoneAPI
Section 57
//MFZAchievementConfig (MoFunZoneAPI.MFZAchievementConfig)
package MoFunZoneAPI {
public class MFZAchievementConfig {
public var testMode:Boolean;
public var gameID:String;
public function MFZAchievementConfig(){
gameID = "";
testMode = true;
}
}
}//package MoFunZoneAPI
Section 58
//MFZDisplayConfig (MoFunZoneAPI.MFZDisplayConfig)
package MoFunZoneAPI {
public class MFZDisplayConfig {
public var bringToTop:Boolean;// = false
public var dialogScale:Number;// = 1
public var workspaceWidth:Number;// = 550
public var workspaceHeight:Number;// = 400
public var autoPosition:String;// = "cc"
public function MFZDisplayConfig(){
workspaceWidth = 550;
workspaceHeight = 400;
autoPosition = "cc";
bringToTop = false;
dialogScale = 1;
super();
workspaceWidth = 550;
workspaceHeight = 400;
autoPosition = "cc";
bringToTop = false;
dialogScale = 1;
}
}
}//package MoFunZoneAPI
Section 59
//MFZEasyAPI (MoFunZoneAPI.MFZEasyAPI)
package MoFunZoneAPI {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MFZEasyAPI {
private static var displayconfig:MFZDisplayConfig = new MFZDisplayConfig();
private static var systemcount:Number;
public static var achievementConfig:MFZAchievementConfig = achievementconfig;
public static var achievementEnabled = false;
public static var displayConfig:MFZDisplayConfig = displayconfig;
public static var userInfoEnabled = false;
private static var _readyCallBack:Function;
private static var achievementconfig:MFZAchievementConfig = new MFZAchievementConfig();
private static var apilist:Array = new Array();
public static function success(_arg1:String){
if (MFZAchievement.getAchievement() != null){
MFZAchievement.success(_arg1);
};
}
public static function showLoginStatus(){
if (MFZUserLogin.getUserName() != null){
MFZResource.getAPI().showLogin();
};
}
public static function readyCallBack(_arg1:Function){
_readyCallBack = _arg1;
}
private static function turnOnSystem(_arg1:Class, _arg2:Object, _arg3:String){
apilist.push({api:_arg1, config:_arg2, file:_arg3});
}
public static function configAchievement(_arg1:String, _arg2:Boolean){
achievementconfig = new MFZAchievementConfig();
achievementconfig.testMode = _arg2;
achievementconfig.gameID = _arg1;
}
public static function showNotifyDialog(_arg1:String){
if (MFZResource.getAPI() != null){
MFZResource.getAPI().showNotifyDialog(_arg1);
};
}
private static function connectToSystem(_arg1:Object, _arg2:String){
var ready:Function;
var readyGUI:Function;
var maintimeline = _arg1;
var guiswf = _arg2;
ready = function (_arg1){
systemcount++;
if ((((systemcount == apilist.length)) || ((apilist.length == 0)))){
if (_readyCallBack != null){
_readyCallBack(true);
};
} else {
apilist[systemcount].api.loadMe(apilist[systemcount].file, apilist[systemcount].config, ready, MFZResource, MFZUserLogin);
};
};
readyGUI = function (_arg1){
if (_arg1){
if (apilist.length > 0){
apilist[systemcount].api.loadMe(apilist[systemcount].file, apilist[systemcount].config, ready, MFZResource, MFZUserLogin);
} else {
_readyCallBack(true);
};
} else {
_readyCallBack(false);
};
};
systemcount = 0;
if (displayconfig == null){
trace("MFZ GUI/Display Resource create error: call configDisplay() first");
return;
};
MFZResource.readyCallBack(readyGUI);
MFZResource.loadResource(guiswf, maintimeline, displayconfig);
}
public static function hideLoginStatus(){
if (MFZUserLogin.getUserName() != null){
MFZResource.getAPI().hideLogin();
};
}
public static function autoBring(){
if (MFZResource.getAPI() != null){
MFZResource.getAPI().autoBring();
};
}
public static function getEXP():String{
return (MFZUserLogin.getEXP());
}
public static function getUserName():String{
return (MFZUserLogin.getUserName());
}
public static function configDisplay(_arg1:Number, _arg2:Number, _arg3:String, _arg4:Number){
displayconfig = new MFZDisplayConfig();
displayconfig.workspaceWidth = _arg1;
displayconfig.workspaceHeight = _arg2;
displayconfig.autoPosition = _arg3;
displayconfig.bringToTop = false;
displayconfig.dialogScale = _arg4;
}
public static function downloadAPI(_arg1:Object){
if (displayconfig == null){
trace("API Download : Call configDisplay( ) before downloadAPI()");
return;
};
if (userInfoEnabled){
MFZEasyAPI.turnOnSystem(MFZUserLogin, null, "http://www.mofunzone.com/api/as3/user_info.swf");
};
if (achievementEnabled){
if (achievementconfig != null){
MFZEasyAPI.turnOnSystem(MFZAchievement, achievementconfig, "http://www.mofunzone.com/api/as3/achievement.swf");
} else {
trace("achievementEnabled : Call configAchievement() before downloadAPI()");
return;
};
};
MFZEasyAPI.connectToSystem(_arg1, "http://www.mofunzone.com/api/as3/resources.swf");
}
public static function stopBring(){
if (MFZResource.getAPI() != null){
MFZResource.getAPI().stopBring();
};
}
public static function getGender():String{
return (MFZUserLogin.getGender());
}
}
}//package MoFunZoneAPI
Section 60
//MFZResource (MoFunZoneAPI.MFZResource)
package MoFunZoneAPI {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MFZResource {
private static var _resourceconfig:MFZDisplayConfig;
private static var _resource:MovieClip = null;
private static var _topleveltimeline:Object;
private static var _debug:Object;
private static var _readyFuntion:Function = null;
private static var _intervalId:uint;
private static function _ioerror(_arg1){
if (_debug != null){
_debug.text = "Achievement SWF not found";
};
if (_readyFuntion != null){
_readyFuntion(false);
};
}
public static function getAPI(){
return (_resource);
}
private static function _security(_arg1){
if (_debug != null){
_debug.text = _arg1;
};
if (_readyFuntion != null){
_readyFuntion(false);
};
}
private static function _progress(_arg1){
if (_debug != null){
_debug.text = (_debug.text + ((("progressHandler: bytesLoaded=" + _arg1.bytesLoaded) + " bytesTotal=") + _arg1.bytesTotal));
};
}
private static function _http(_arg1){
if (_debug != null){
_debug.text = ("httpstatus: " + _arg1.status);
};
}
public static function readyCallBack(_arg1:Function){
_readyFuntion = _arg1;
}
private static function _complete(_arg1){
var status_loop:Function;
var e = _arg1;
status_loop = function (){
if (_debug != null){
_debug.text = "ready";
};
if (_readyFuntion != null){
_readyFuntion(true);
};
clearInterval(_intervalId);
};
if (_debug != null){
_debug.text = "complete";
};
_resource = _topleveltimeline.addChild(e.target.loader.content);
_resource.screenwidth = _resourceconfig.workspaceWidth;
_resource.screenheight = _resourceconfig.workspaceHeight;
_resource.dialogpositionmode = _resourceconfig.autoPosition;
_resource.dialogscale = _resourceconfig.dialogScale;
_resource.bring = _resourceconfig.bringToTop;
if (_debug != null){
_debug.text = "config setup";
};
_resource.play();
if (_debug != null){
_debug.text = "complete";
};
_intervalId = setInterval(status_loop, 1000);
}
public static function loadResource(_arg1:String, _arg2:Object, _arg3:MFZDisplayConfig, _arg4=null){
var resourceload:Loader;
var resource_request:URLRequest;
var resource_address = _arg1;
var topleveltimeline = _arg2;
var config = _arg3;
var debug = _arg4;
Security.allowDomain("*");
_debug = debug;
if (_resource != null){
return;
};
resourceload = new Loader();
resource_request = new URLRequest(resource_address);
_resourceconfig = config;
_topleveltimeline = topleveltimeline;
resourceload.contentLoaderInfo.addEventListener(Event.COMPLETE, _complete);
resourceload.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _security);
resourceload.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _ioerror);
resourceload.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, _http);
resourceload.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, _progress);
try {
resourceload.load(resource_request);
if (_debug != null){
_debug.text = "loading";
};
} catch(error) {
if (_debug != null){
_debug.text = "loaderror";
};
};
}
}
}//package MoFunZoneAPI
Section 61
//MFZUserLogin (MoFunZoneAPI.MFZUserLogin)
package MoFunZoneAPI {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MFZUserLogin {
private static var _resource:MovieClip = null;
private static var _readyFuntion:Function = null;
private static var _debug:Object;
private static var _resourceAPI:Object;
public static function readyCallBack(_arg1:Function){
_readyFuntion = _arg1;
}
private static function _ioerror(_arg1){
trace("USER file not found.");
if (_debug != null){
_debug.text = "Achievement SWF not found";
};
}
public static function loadMe(_arg1:String, _arg2:Object, _arg3:Function, ... _args){
readyCallBack(_arg3);
MFZUserLogin.loadUserName(_arg1, _args[0].getAPI());
}
public static function getEXP(){
if (_resource != null){
return (_resource.exp);
};
return (null);
}
public static function loadUserName(_arg1:String, _arg2:Object, _arg3=null){
var resourceload:Loader;
var resource_request:URLRequest;
var resource_address = _arg1;
var resource = _arg2;
var debug = _arg3;
Security.allowDomain("*");
_debug = debug;
if (_resource != null){
return;
};
resourceload = new Loader();
resource_request = new URLRequest(resource_address);
_resourceAPI = resource;
resourceload.contentLoaderInfo.addEventListener(Event.COMPLETE, _complete);
resourceload.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _security);
resourceload.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _ioerror);
resourceload.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, _http);
resourceload.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, _progress);
try {
resourceload.load(resource_request);
if (_debug != null){
_debug.text = "loading";
};
} catch(error) {
trace("USER file not found.");
if (_debug != null){
_debug.text = "loaderror";
};
};
}
public static function getUserName(){
if (_resource != null){
return (_resource.username);
};
return (null);
}
private static function _http(_arg1){
if (_debug != null){
_debug.text = ("httpstatus: " + _arg1.status);
};
}
private static function _progress(_arg1){
if (_debug != null){
_debug.text = (_debug.text + ((("progressHandler: bytesLoaded=" + _arg1.bytesLoaded) + " bytesTotal=") + _arg1.bytesTotal));
};
}
public static function getGender(){
if (_resource != null){
return (_resource.gender);
};
return (null);
}
private static function _complete(_arg1){
if (_debug != null){
_debug.text = "complete";
};
_resource = _arg1.target.loader.content;
_resource.resourceAPI = _resourceAPI;
_resource.readyFuntion = _readyFuntion;
if (_debug != null){
_debug.text = "config setup";
};
_resource.play();
if (_debug != null){
_debug.text = "complete";
};
}
private static function _security(_arg1){
trace("USER Security block");
if (_debug != null){
_debug.text = _arg1;
};
}
}
}//package MoFunZoneAPI
Section 62
//backhole (backhole)
package {
import flash.media.*;
public dynamic class backhole extends Sound {
}
}//package
Section 63
//bash (bash)
package {
import flash.media.*;
public dynamic class bash extends Sound {
}
}//package
Section 64
//basic_attack (basic_attack)
package {
import flash.media.*;
public dynamic class basic_attack extends Sound {
}
}//package
Section 65
//berserk (berserk)
package {
import flash.media.*;
public dynamic class berserk extends Sound {
}
}//package
Section 66
//BGM1 (BGM1)
package {
import flash.media.*;
public dynamic class BGM1 extends Sound {
}
}//package
Section 67
//BGM2 (BGM2)
package {
import flash.media.*;
public dynamic class BGM2 extends Sound {
}
}//package
Section 68
//BGM3 (BGM3)
package {
import flash.media.*;
public dynamic class BGM3 extends Sound {
}
}//package
Section 69
//bomb (bomb)
package {
import flash.media.*;
public dynamic class bomb extends Sound {
}
}//package
Section 70
//boss_die (boss_die)
package {
import flash.media.*;
public dynamic class boss_die extends Sound {
}
}//package
Section 71
//bullet_2b (bullet_2b)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_2b extends MovieClip {
public function bullet_2b(){
addFrameScript(1, frame2, 2, frame3);
}
function frame3(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame2(){
gotoAndPlay(1);
}
}
}//package
Section 72
//bullet_3c (bullet_3c)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_3c extends MovieClip {
public function bullet_3c(){
addFrameScript(2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay(1);
}
function frame4(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 73
//bullet_3d (bullet_3d)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_3d extends MovieClip {
public function bullet_3d(){
addFrameScript(2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay(1);
}
function frame4(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 74
//bullet_4d (bullet_4d)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_4d extends MovieClip {
public function bullet_4d(){
addFrameScript(29, frame30, 37, frame38, 42, frame43);
}
function frame30(){
gotoAndPlay(1);
}
function frame38(){
this.visible = false;
gotoAndPlay(1);
}
function frame43(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 75
//bullet_4e (bullet_4e)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_4e extends MovieClip {
public function bullet_4e(){
addFrameScript(2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay(1);
}
function frame4(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 76
//bullet_4f_1 (bullet_4f_1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_4f_1 extends MovieClip {
public function bullet_4f_1(){
addFrameScript(3, frame4, 4, frame5);
}
function frame4(){
gotoAndPlay(1);
}
function frame5(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 77
//bullet_4f_2 (bullet_4f_2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_4f_2 extends MovieClip {
public function bullet_4f_2(){
addFrameScript(2, frame3, 7, frame8);
}
function frame3(){
gotoAndPlay(1);
}
function frame8(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 78
//bullet_big_mucus (bullet_big_mucus)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_big_mucus extends MovieClip {
public function bullet_big_mucus(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay(1);
}
}
}//package
Section 79
//bullet_boss2_mucus (bullet_boss2_mucus)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_boss2_mucus extends MovieClip {
public function bullet_boss2_mucus(){
addFrameScript(7, frame8, 12, frame13);
}
function frame8(){
gotoAndPlay(1);
}
function frame13(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 80
//bullet_mucus1 (bullet_mucus1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_mucus1 extends MovieClip {
public function bullet_mucus1(){
addFrameScript(8, frame9, 16, frame17);
}
function frame17(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay(1);
}
}
}//package
Section 81
//bullet_poo1 (bullet_poo1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_poo1 extends MovieClip {
public function bullet_poo1(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
stop();
}
}
}//package
Section 82
//bullet_poo2 (bullet_poo2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_poo2 extends MovieClip {
public function bullet_poo2(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
stop();
}
}
}//package
Section 83
//bullet_poo3 (bullet_poo3)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class bullet_poo3 extends MovieClip {
public function bullet_poo3(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
stop();
}
}
}//package
Section 84
//cell_explodion (cell_explodion)
package {
import flash.media.*;
public dynamic class cell_explodion extends Sound {
}
}//package
Section 85
//cerror (cerror)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
public dynamic class cerror extends MovieClip {
public var gun1:hittemp;
public var gun5:hittemp;
public var gun3:hittemp;
public var gun4:hittemp;
public var nametext:TextField;
public var hit:hittemp;
public var gun2:hittemp;
public function cerror(){
addFrameScript(15, frame16, 17, frame18);
}
function frame18(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
function frame16(){
gotoAndPlay(1);
}
}
}//package
Section 86
//dash (dash)
package {
import flash.media.*;
public dynamic class dash extends Sound {
}
}//package
Section 87
//daterror (daterror)
package {
import flash.display.*;
public dynamic class daterror extends BitmapData {
public function daterror(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 88
//feather (feather)
package {
import flash.media.*;
public dynamic class feather extends Sound {
}
}//package
Section 89
//fireball (fireball)
package {
import flash.media.*;
public dynamic class fireball extends Sound {
}
}//package
Section 90
//gameinline (gameinline)
package {
import flash.display.*;
import GREENHERMIT.GHGun.*;
import GREENHERMIT.GHShootingStyle.*;
import GREENHERMIT.GHMovement.*;
import GREENHERMIT.GHTemplate.*;
import flash.geom.*;
import MoFunZoneAPI.*;
import fl.motion.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import GREENHERMIT.GHDurationControl.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
import GREENHERMIT.GHBulletCollection.*;
public dynamic class gameinline extends KeyframeTemplate {
public var soundNum;
public var rev_select:String;
public var godmode:Boolean;
public var mainTime:Number;
public var hp_re_per:Number;
public var expNum:Number;
public var apButton:Boolean;
public var airBoxList:Array;
public var featherTotal;
public var second:Number;
public var all_airBox:Array;
public var playermot;
public var atbMp:Number;
public var noHitBoss:Boolean;
public var monsterGate_list:Array;
public var gate_empty:Array;
public var hp:Number;
public var hp_re_time:Number;
public var ap_okay:Boolean;
public var myLevel:Number;
public var getTime1:Number;
public var getTime2:Number;
public var monCount:Number;
public var numMonster:Number;
public var numGate:Number;
public var apRabid:Boolean;
public var goto_saveOrLoad:String;
public var mp:Number;
public var nameNumber:Number;
public var canHit:Boolean;
public var rev_data:Array;
public var ap_autoSave:Boolean;
public var EXP:Number;
public var soundbmg:SoundChannel;
public var iconSkillList;
public var minute:Number;
public var numMonsterTotal:Number;
public var absorb_mana:Boolean;
public var apAbsorb_blood:Boolean;
public var map_h:Number;
public var mute;
public var map_w:Number;
public var soundList:SoundChannel;
public var sw:Number;
public var sh:Number;
public var mapH;
public var mp_re_next_time:Number;
public var floorColor;
public var monMax:Number;
public var mp_re_time:Number;
public var levelMax_on_stage:Array;
public var atTotal:Number;
public var gamelevel;
public var numChange;
public var superclass:KeyframeTemplate;
public var apBerserk_2:Boolean;
public var player;
public var apBerserk_1:Boolean;
public var monsterSet1:Array;
public var monsterSet3:Array;
public var monsterSet4:Array;
public var monsterSet5:Array;
public var monsterSet6:Array;
public var monsterSet8:Array;
public var monsterSet2:Array;
public var pooList:Array;
public var monsterSet7:Array;
public var hpTotal:Number;
public var userAttribute;
public var atbAt:Number;
public var pooNum:Number;
public var expTotal:Number;
public var mp_re_per:Number;
public var gotoStage;
public var hp_re_next_time:Number;
public var boss;
public var mpTotal:Number;
public var at_all:Number;
public var atb_point:Number;
public var featherNum:Array;
public var atbHp:Number;
public function gameinline(){
addFrameScript(0, frame1);
}
public function success(_arg1){
var Id = _arg1;
try {
trace(("success :" + Id));
MFZEasyAPI.success(Id);
} catch(error) {
};
}
public function skill_bash(){
var _local1:*;
if (player.currentFrame != "bash"){
player.gotoAndPlay("bash");
};
createSound("bash");
_local1 = create_bullet_hero("bash");
_local1.distanceTotal = 120;
_local1.process = powerSkill_move3;
}
public function check_on_airBox(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = false;
for (_local3 in all_airBox) {
_local4 = world.obj_layer.getChildByName(all_airBox[_local3]);
if (_local4.hitTestObject(_arg1)){
_local2 = true;
break;
};
};
if (_local2 == true){
return (true);
};
return (false);
}
public function create_damage(_arg1, _arg2:Number, _arg3){
var txt:*;
var eff:*;
var obj = _arg1;
var damage = _arg2;
var per = _arg3;
try {
txt = API.createMovieFromBase(world, css["txt_damage"]);
if ((((((((obj.name == "m_boss_st1")) || ((obj.name == "m_boss_st2")))) || ((obj.name == "m_boss_st3")))) || ((obj.name == "m_boss_st4")))){
txt.x = obj.x;
txt.y = obj.y;
} else {
txt.x = obj.x;
txt.y = ((obj.y - obj.height) - 10);
};
txt.tx_num.text = damage;
if (per < 0.7){
txt.scaleX = 0.7;
txt.scaleY = 0.7;
txt.m_hothit.visible = false;
} else {
txt.scaleX = 1.5;
txt.scaleY = 1.5;
txt.m_hothit.visible = true;
};
txt.obj = obj;
txt.count = 0;
txt.process = textNumber_move;
if (per <= 0.2){
eff = API.createMovieFromBase(world, css["gfx_hit1"]);
} else {
if (per <= 0.4){
eff = API.createMovieFromBase(world, css["gfx_hit2"]);
} else {
if (per <= 0.6){
eff = API.createMovieFromBase(world, css["gfx_hit3"]);
} else {
eff = API.createMovieFromBase(world, css["gfx_hit4"]);
};
};
};
eff.x = obj.x;
if ((((((((obj.type == "boss_st1")) || ((obj.type == "boss_st2")))) || ((obj.type == "boss_st3")))) || ((obj.type == "boss_st4")))){
eff.y = obj.y;
eff.scaleX = (eff.scaleX + 3);
eff.scaleY = (eff.scaleY + 3);
} else {
eff.y = (obj.y - (obj.height / 2));
};
} catch(error) {
trace("bug : create_damage");
};
}
public function createMonster_start(){
var _local1:*;
var _local2:*;
var _local3:*;
trace("สร้างมอนสเตอร์เริ่มต้นเล็กน้อย");
_local1 = 1;
while (_local1 <= 1) {
_local3 = world.bg_layer.getChildByName(("g" + _local1));
createMonster(_local3);
_local1++;
};
_local2 = create_gameSystem("createMonster", control_createMonster);
_local2.derayCreate = 0;
}
public function skill_mucus(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_arg1.gotoAndPlay("mucus");
_local4 = new Point(boss.mouth.x, boss.mouth.y);
_local4 = boss.localToGlobal(_local4);
_local4 = world.globalToLocal(_local4);
_local5 = API.createMovieFromBase(world, css["bullet_boss2_mucus"]);
_local5.x = _local4.x;
_local5.y = _local4.y;
_local6 = Math.round(((boss.x - _local4.x) / 10));
_local7 = Math.round(((boss.y - _local4.y) / 10));
_local8 = Math.abs(_local6);
_local9 = Math.abs(_local7);
if (_local8 == 0){
_local8 = 1;
};
if (_local9 == 0){
_local9 = 1;
};
_local5.move_x = (((Math.random() * _local5.speed) + 1) * (_local6 / _local8));
_local5.move_y = (((Math.random() * _local5.speed) + 1) * (_local7 / _local9));
_local5.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local5.process = enemyBullet_move4;
_local5.durationAttack = (mainTime + 10000);
}
public function boss_st3_useSkill(_arg1){
var _local2:*;
var _local3:*;
if (_arg1.useSkill == null){
_local3 = Math.round((Math.random() * 100));
for (_local2 in _arg1.setPerUse) {
if (_local3 <= _arg1.setPerUse[_local2]){
_arg1.useSkill = _arg1[("skill_" + _local2)];
break;
};
};
};
if ((((_arg1.useSkill[2] <= mainTime)) && ((_arg1.timeDelayAttack <= mainTime)))){
_arg1.timeDelayAttack = (mainTime + 3000);
_arg1.useSkill[2] = (mainTime + _arg1.useSkill[1]);
check_typeSkill(_arg1, _arg1.useSkill[4], _arg1.useSkill[0], _arg1.useSkill[3]);
};
}
public function add_skill_to_hero(_arg1:Object){
apRabid = false;
apBerserk_1 = false;
apBerserk_2 = false;
apAbsorb_blood = false;
absorb_mana = false;
switch (_arg1.name){
case "player_2a":
_arg1.skill_1 = new Array("growl", 9, 3000, 0);
create_skillIcon(1, _arg1.name);
break;
case "player_2b":
_arg1.skill_1 = new Array("slat_feather", 6, 500, 0);
create_skillIcon(1, _arg1.name);
break;
case "player_3a":
_arg1.skill_1 = new Array("dash_1", 3, 500, 0);
_arg1.skill_2 = new Array("rabid", 20, 0, 0);
create_skillIcon(2, _arg1.name);
break;
case "player_3b":
_arg1.skill_1 = new Array("rejuvination", 24, 18000, 0);
_arg1.skill_2 = new Array("Berserk_1", 0, 30000, 0);
apBerserk_1 = true;
create_skillIcon(2, _arg1.name);
break;
case "player_3c":
_arg1.skill_1 = new Array("heal", 45, 5000, 0);
_arg1.skill_2 = new Array("razor", 7, 400, 0);
create_skillIcon(2, _arg1.name);
break;
case "player_3d":
_arg1.skill_1 = new Array("fireball", 7, 300, 0);
create_skillIcon(1, _arg1.name);
break;
case "player_4a":
_arg1.skill_1 = new Array("dash_2", 15, 500, 0);
_arg1.skill_2 = new Array("absorb_blood", 0, 1000, 0);
apAbsorb_blood = true;
create_skillIcon(2, _arg1.name);
break;
case "player_4b":
_arg1.skill_1 = new Array("blackhole", 40, 5000, 0);
_arg1.skill_2 = new Array("absorb_mana", 0, 1000, 0);
absorb_mana = true;
create_skillIcon(2, _arg1.name);
break;
case "player_4c":
_arg1.skill_1 = new Array("bash", 20, 500, 0);
_arg1.skill_2 = new Array("Berserk_2", 0, 30000, 0);
apBerserk_2 = true;
create_skillIcon(2, _arg1.name);
break;
case "player_4d":
_arg1.skill_1 = new Array("razor_wing", 15, 1000, 0);
skill_feather_barier();
create_skillIcon(1, _arg1.name);
break;
case "player_4e":
_arg1.skill_1 = new Array("poison_cloud", 75, 10000, 0);
create_skillIcon(1, _arg1.name);
break;
case "player_4f":
_arg1.skill_1 = new Array("fireball_2", 42, 6000, 0);
_arg1.skill_2 = new Array("fire_strom", 7, 500, 0);
create_skillIcon(2, _arg1.name);
break;
};
}
public function initEnemy(_arg1:MovieClip, _arg2:Object){
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
}
public function monster_jump_front(_arg1){
if ((((_arg1.jumpNow == null)) || ((_arg1.jumpNow <= 0)))){
_arg1.jumpNow = 2;
};
_arg1.gotoAndPlay("jump");
_arg1.monMot.jumpNow(((4 * _arg1.jumpNow) + 2), ((40 * _arg1.jumpNow) + 20));
_arg1.monMot.setDirect(-((0.8 * _arg1.scaleX)));
}
function frame1(){
superclass = this;
MovieClip.prototype.gcode = this;
createGameStage();
CSSToVar.importCSSObject(css, "bullet", 100, initBullet);
CSSToVar.importCSSObject(css, "enemy", 100, initEnemy);
CSSToVar.importCSSObject(css, "creator", 100, initCreator);
gamelevel = 0;
player = null;
hpTotal = 0;
hp = 0;
atbHp = 0;
mpTotal = 0;
mp = 0;
atbMp = 0;
atTotal = 0;
at_all = 0;
atbAt = 0;
myLevel = 1;
canHit = true;
playermot = null;
apRabid = false;
apBerserk_1 = false;
apBerserk_2 = false;
apAbsorb_blood = false;
absorb_mana = false;
featherNum = new Array(0, 0);
godmode = false;
iconSkillList = new Array("player_2a_ic1", "player_2b_ic1", "player_3a_ic1", "player_3a_ic2", "player_3b_ic1", "player_3b_ic2", "player_3c_ic1", "player_3c_ic2", "player_3d_ic1", "player_4a_ic1", "player_4a_ic2", "player_4b_ic1", "player_4b_ic2", "player_4c_ic1", "player_4c_ic2", "player_4d_ic1", "player_4d_ic2", "player_4e_ic1", "player_4e_ic2", "player_4f_ic1", "player_4f_ic2");
hp_re_time = 0;
hp_re_next_time = 1000;
hp_re_per = 0.02;
mp_re_time = 0;
mp_re_next_time = 1000;
mp_re_per = 0.05;
sw = superclass.gamewidth;
sh = superclass.gameheight;
map_w = 0;
map_h = 0;
monsterGate_list = new Array();
numGate = 0;
gate_empty = new Array();
numMonster = 0;
numMonsterTotal = 0;
mainTime = 0;
airBoxList = new Array();
all_airBox = new Array();
apButton = true;
levelMax_on_stage = new Array(0, 5, 15, 25, 30);
expTotal = 50;
EXP = 0;
expNum = 10;
atb_point = 0;
monCount = 0;
monMax = 0;
getTime1 = 0;
getTime2 = 0;
soundbmg = new SoundChannel();
soundNum = 0.3;
soundList = new SoundChannel();
mute = 1;
rev_select = "b_rev_1a";
rev_data = new Array("b_rev_1a");
ap_okay = false;
monsterSet1 = [["enemy_er1", 100]];
monsterSet2 = [["enemy_em1", 100]];
monsterSet3 = [["enemy_em2", 100]];
monsterSet4 = [["enemy_er2", 100]];
monsterSet5 = [["enemy_er2", 70], ["enemy_em2", 100]];
monsterSet6 = [["enemy_em3", 100]];
monsterSet7 = [["enemy_er3", 100]];
monsterSet8 = [["enemy_er4", 100]];
nameNumber = 0;
pooList = new Array();
pooNum = 0;
noHitBoss = false;
ap_autoSave = false;
goto_saveOrLoad = "";
userAttribute = 0;
numChange = 1;
gotoStage = false;
gamelevel = 0;
createSound("bgm");
levelUp();
superclass.EventKBRelease = keyRelease;
superclass.EventKBPress = keyPress;
game.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
game.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
superclass.keyFrameStyleEnterFrame = function (_arg1){
stage.focus = keyfocus;
MapHelper.DrawSectionMap(cam, {width:gamewidth, height:gameheight});
};
featherTotal = 8;
stop();
}
public function eat_move(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (boss.currentLabel != "eat"){
boss.gotoAndPlay("eat");
};
_local3 = new Point(boss.eatBox.x, boss.eatBox.y);
_local3 = boss.localToGlobal(_local3);
_local3 = world.globalToLocal(_local3);
_local4 = Math.round(((_local3.x - _arg1.x) / 100));
_local5 = Math.round(((_local3.y - _arg1.y) / 100));
_arg1.x = (_arg1.x + _local4);
_arg1.y = (_arg1.y + _local5);
if ((((_local4 <= 0)) && ((_local5 <= 0)))){
boss.gotoAndPlay("heal");
boss.useSkill = null;
_arg1.tint = null;
_arg1.process = null;
_arg1.attack = null;
_arg1.time = null;
if (_arg1.gate.mon != null){
_arg1.gate.mon = null;
gate_empty.push(_arg1.gate.name);
} else {
trace("ไม่มีการอ้างถึงประตู ในมอนสเตอร์นี้");
};
_arg1.status = null;
destroy2(_arg1, "die2");
monCount--;
};
}
public function skill_eat(_arg1:Object, _arg2:Number, _arg3:Number){
var m:*;
var i:*;
var mon = _arg1;
var distance = _arg2;
var damageUp = _arg3;
m = null;
try {
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
m = world.enemy_layer.getChildAt(i);
if (m.type != "m_er3_bomb"){
if (m.type == "enemy_er3"){
if (m.myBomb != null){
m.myBomb.process = null;
destroy2(m.myBomb, "die2");
m.myBomb = null;
};
};
break;
};
i = (i - 1);
};
if (m != null){
m.airBox_close = true;
m.monMot = null;
API.removeMotion(m);
m.time = null;
m.duty = eat_move;
m.process = m.duty;
} else {
trace("หาmonsterตัวที่จะกินไม่เจอแล้ว");
boss.skill_1[2] = (mainTime + 2000);
};
} catch(error) {
trace("bug : skill_eat");
};
}
public function addAchivment(_arg1:String){
trace(("achivement :" + _arg1));
switch (_arg1){
};
}
public function skill_dash_2(_arg1){
var i:*;
var nameObj:*;
var hero = _arg1;
createSound("dash");
apButton = false;
canHit = false;
hero.count++;
if (hero.currentFrame != "dash"){
hero.gotoAndPlay("dash");
};
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((checkHitTest(player, nameObj)) && ((nameObj.hp > 0)))){
player.hitList.push(nameObj.name);
check_enemy_hp(nameObj, Math.round((atTotal * 0.5)));
};
i = (i - 1);
};
trace("---0");
if (boss != null){
if (((checkHitTest(player, boss)) && ((boss.hp > 0)))){
trace("----1");
try {
player.hitList.push(boss.name);
check_boss_hp(boss, Math.round((atTotal - (atTotal * 0.5))));
} catch(e) {
trace("Bug : skill_dash_2");
};
trace("----2");
};
};
trace("----3");
playermot.setDirect((3 * player.scaleX));
if (hero.count >= 10){
trace("----4");
canHit = true;
hero.count = 0;
hero.process = keyProcess;
apButton = true;
player.hitList = new Array();
trace("----5");
};
}
public function upFinding(_arg1, _arg2:Array, _arg3:Array){
var jumpNum:*;
var apMove:Boolean;
var out_do:Boolean;
var count:Number;
var checkCount:Number;
var scale_x:*;
var blockColor1:*;
var blockColor2:*;
var blockColor3:*;
var monster = _arg1;
var mon = _arg2;
var player = _arg3;
if (gamelevel != 3){
jumpNum = Math.floor((monster.jump / 40));
monster.jumpNow = jumpNum;
apMove = false;
out_do = true;
count = mon[0];
checkCount = 1;
try {
monster_turn(mon, true);
scale_x = monster.scaleX;
do {
count = (count - (1 * scale_x));
blockColor1 = MapHelper.dat.getPixel(count, (mon[1] - 1));
blockColor2 = MapHelper.dat.getPixel(count, mon[1]);
blockColor3 = MapHelper.dat.getPixel(count, (mon[1] + 1));
if ((((((blockColor1 == 0xFF00)) && ((blockColor2 == 0)))) && (!((blockColor3 == 0))))){
apMove = true;
out_do = false;
monster.scaleX = scale_x;
if (MapHelper.dat.getPixel(mon[0], (mon[1] - 1)) == 0xFF00){
setTimeDeray(monster, "monster_jump");
} else {
monster_walk(monster);
};
} else {
if ((((((blockColor1 == 0xFF00)) && ((blockColor2 == 0)))) && ((blockColor3 == 0)))){
apMove = true;
out_do = false;
monster.scaleX = scale_x;
if (MapHelper.dat.getPixel((mon[0] - scale_x), (mon[1] + 1)) == 0){
setTimeDeray(monster, "monster_jump_front");
} else {
monster_walk(monster);
};
} else {
if ((((((blockColor1 == 0)) && ((blockColor2 == 0xFF00)))) && ((blockColor3 == 0)))){
apMove = true;
out_do = false;
monster.scaleX = scale_x;
if (MapHelper.dat.getPixel((mon[0] - scale_x), (mon[1] + 1)) == 0){
setTimeDeray(monster, "monster_jump_front");
} else {
monster_walk(monster);
};
} else {
if ((((((blockColor1 == 0xFF)) && ((blockColor2 == 0xFF)))) && ((blockColor3 == 0xFF)))){
if (checkCount == 1){
checkCount = (checkCount + 1);
count = mon[0];
if (scale_x == 1){
scale_x = -1;
} else {
scale_x = 1;
};
} else {
apMove = false;
out_do = false;
};
};
};
};
};
} while (out_do);
return (apMove);
} catch(error) {
trace("bug :upFinding");
};
} else {
return (false);
};
}
public function create_bullet_enemy(_arg1, _arg2:String, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){
var _local6:*;
if (_arg4 == 0){
_arg4 = (_arg1.x - ((_arg1.width / 2) * _arg1.scaleX));
};
if (_arg5 == 0){
_arg5 = (_arg1.y - (_arg1.height / 2));
};
_local6 = API.createMovieFromBase(world, css[_arg2]);
_local6.x = _arg4;
_local6.y = _arg5;
_local6.angle = _arg3;
_local6.distance = 0;
_local6.hitList = new Array();
motAngle(_local6, false, -(_arg1.scaleX));
_local6.scaleX = _arg1.scaleX;
return (_local6);
}
public function downFinding(_arg1, _arg2:Array, _arg3:Array){
var i:*;
var num:*;
var b_check:Array;
var mon = _arg1;
var m_direct = _arg2;
var p_direct = _arg3;
try {
num = 0;
b_check = new Array();
if (((!((MapHelper.dat.getPixel(m_direct[0], (m_direct[1] + 1)) == 0xFF))) && (!((m_direct[1] == p_direct[1]))))){
num = (m_direct[1] + 2);
while (num <= (p_direct[1] + 1)) {
b_check[num] = MapHelper.dat.getPixel(m_direct[0], num);
if (b_check[num] != 0){
break;
};
num = (num + 1);
};
if ((((num <= (p_direct[1] + 1))) && (!((b_check[num] == 0))))){
return (true);
} else {
return (false);
};
} else {
return (false);
};
} catch(error) {
trace("bug : downFinding");
};
}
public function bomb_start(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = new Array(int((player.x / 40)), int((player.y / 40)));
_local3 = new Array(int((_arg1.x / 40)), int((_arg1.y / 40)));
_local4 = Math.abs(((_arg1.x - ((_arg1.width / 2) * _arg1.scaleX)) - (player.x + ((player.width / 2) * _arg1.scaleX))));
if (((!(_arg1.apBomb)) && ((((_arg1.durationAttack <= mainTime)) || ((((_local4 <= _arg1.distanceAttack)) && ((_local3[1] == _local2[1])))))))){
_arg1.apBomb = true;
_arg1.durationAttack = (mainTime + 1000);
_local5 = API.createMovieFromBase(world, css["txt_heal"]);
_local5.for_mon = _arg1;
_local5.process = bomb_create_number_countDown;
} else {
if ((((_arg1.apBomb == true)) && ((_arg1.durationAttack <= mainTime)))){
_arg1.monMot.setDirect(0);
_arg1.countDown--;
if (_arg1.countDown < 0){
_arg1.hp = -1;
_arg1.attack = null;
_arg1.process = null;
_arg1.time = null;
_arg1.gotoAndPlay("attack");
} else {
_arg1.durationAttack = (mainTime + 1000);
};
};
};
}
public function createGameStage(){
superclass.worldlist.push({layername:"map_layer", movieclip:null});
superclass.worldlist.push({layername:"bg_layer", movieclip:null});
superclass.worldlist.push({layername:"boss_layer", movieclip:null});
superclass.worldlist.push({layername:"mapping_layer", movieclip:null});
superclass.worldlist.push({layername:"bossbullet_layer_back", movieclip:null});
superclass.worldlist.push({layername:"boss_layer1", movieclip:null});
superclass.worldlist.push({layername:"boss_layer2", movieclip:null});
superclass.worldlist.push({layername:"obj_layer", movieclip:null});
superclass.worldlist.push({layername:"bossbullet_layer_front", movieclip:null});
superclass.worldlist.push({layername:"enemy_layer", movieclip:null});
superclass.worldlist.push({layername:"player_layer", movieclip:null});
superclass.worldlist.push({layername:"enemybullet_layer", movieclip:null});
superclass.worldlist.push({layername:"playerbullet_layer", movieclip:null});
superclass.worldlist.push({layername:"gfx_layer", movieclip:null});
superclass.processlist.push("player_layer");
superclass.processlist.push("boss_layer");
superclass.processlist.push("boss_layer1");
superclass.processlist.push("boss_layer2");
superclass.processlist.push("enemy_layer");
superclass.processlist.push("bossbullet_layer_back");
superclass.processlist.push("bossbullet_layer_front");
superclass.processlist.push("enemybullet_layer");
superclass.processlist.push("playerbullet_layer");
superclass.processlist.push("obj_layer");
superclass.processlist.push("gfx_layer");
superclass.processfn.push("process", "time", "attack", "status", "tint");
superclass.gamewidth = 640;
superclass.gameheight = 480;
superclass.cam = {x:0, y:0, focusobject:{x:(gamewidth / 2), y:(gameheight / 2)}, round:null};
gamepause = false;
}
public function skill_tentacle2(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
_arg1.gotoAndPlay("attack");
_local4 = API.createMovieFromBase(world, css["m_boss_st2_tentacle"]);
if (player.x <= (map_w / 2)){
_local4.scaleX = -1;
_local4.x = -500;
} else {
_local4.scaleX = 1;
_local4.x = (map_w + 500);
};
_local4.y = (player.y - (player.width / 2));
_local4.process = tentacle_move2;
_local4.durationAttack = (mainTime + 2000);
}
public function skill_leap(_arg1){
_arg1.gotoAndPlay("leap_2");
_arg1.x = player.x;
_arg1.y = (player.y - 20);
_arg1.monMot = new MapMove(_arg1, MapHelper.dat, 10);
API.setMotion(_arg1, _arg1.monMot);
_arg1.process = _arg1.duty;
}
public function doSoundComplete(_arg1:Event){
var _local2:*;
_local2 = (Math.round((Math.random() * 2)) + 1);
createSound("bgm");
}
public function check_hp_hero(_arg1:Number){
var damageN:*;
var act:*;
var text:*;
var eff:*;
var damage = _arg1;
try {
if (((((canHit) && ((hp > 0)))) && ((godmode == false)))){
damageN = damage;
createSound("hit");
tintColor(player, 0xFF0000, 0.6);
player.tint = tintCount;
player.tintCount = 26;
act = player.currentLabel;
if ((((act == "stand")) || ((act == "walk")))){
player.gotoAndPlay("hurt");
};
damage = rate_damage(damage);
create_damage(player, damage, (damage / damageN));
hp = (hp - damage);
if (hp < 1){
destroy(player);
clear_object();
boss = null;
apButton = false;
text = game.parent.m_stage_over;
text.x = (sw / 2);
text.y = (sh / 2);
text.gotoAndPlay(2);
} else {
if (apBerserk_1 == true){
if (((chance_on_hit(10)) && ((player.skill_2[3] <= mainTime)))){
createSound("berserk");
apBerserk_1 = false;
eff = API.createMovieFromBase(world, css["berserg1"]);
eff.duration = (mainTime + 20000);
eff.process = skill_berserk_1;
player.skill_2[3] = (mainTime + player.skill_2[2]);
player.skill_2[4] = mainTime;
player.gotoAndPlay("berserg");
eff.old_speed_player = player.speed;
player.speed = (player.speed + (eff.old_speed_player * 0.1));
eff.old_damage_player = atTotal;
atTotal = (atTotal + (eff.old_damage_player * 1.15));
};
};
};
};
} catch(error) {
trace("bug : check_hp_hero");
};
}
public function checkHitTest(_arg1:Object, _arg2:Object){
var objmain1:*;
var objmain2:*;
var obj1 = _arg1;
var obj2 = _arg2;
try {
objmain1 = obj1;
objmain2 = obj2;
if (obj1.hitBox != null){
obj1 = obj1.hitBox;
};
if (obj2.hitBox != null){
obj2 = obj2.hitBox;
};
if (obj1.hitTestObject(obj2)){
if (((!((objmain1.hitList == null))) && (!((objmain1.hitList.indexOf(objmain2.name) == -1))))){
return (false);
} else {
return (true);
};
} else {
return (false);
};
} catch(error) {
trace("bug : checkHitTest");
};
}
public function chance_on_hit(_arg1:Number, _arg2:Number=100){
var _local3:*;
_local3 = Math.round((Math.random() * _arg2));
if (_local3 <= _arg1){
return (true);
};
return (false);
}
public function add_skill_to_monster(_arg1){
switch (_arg1.type){
case "enemy_em1":
_arg1.skill_0 = new Array(15, 3000, 0, 0, "nomal_1");
_arg1.setPerUse = new Array(100, 0);
break;
case "enemy_em2":
_arg1.skill_0 = new Array(50, 3000, 0, -30, "poison");
_arg1.setPerUse = new Array(100, 0);
break;
case "enemy_em3":
_arg1.skill_0 = new Array(30, 3000, 0, 0, "nomal_1");
_arg1.skill_1 = new Array(500, 7000, (mainTime + 5000), 0, "leap");
_arg1.setPerUse = new Array(70, 100);
break;
case "enemy_er1":
_arg1.skill_0 = new Array(700, 3000, 0, 0, "nomal_2");
_arg1.setPerUse = new Array(100, 0);
break;
case "enemy_er2":
_arg1.skill_0 = new Array(600, 4000, 0, 0, "nomal_2");
_arg1.setPerUse = new Array(100, 0);
break;
case "enemy_er3":
_arg1.skill_0 = new Array(800, 6000, (mainTime + 6000), 0, "bomb");
_arg1.setPerUse = new Array(100, 0);
break;
case "enemy_er4":
_arg1.skill_0 = new Array(800, 3000, 0, 50, "nomal_2");
_arg1.skill_1 = new Array(550, 6000, 0, 100, "big_mucus");
_arg1.setPerUse = new Array(90, 100);
break;
case "boss_st1":
_arg1.skill_0 = new Array(600, 6000, 0, 50, "tentacle");
_arg1.skill_1 = new Array(640, 3000, 0, 0, "spit");
_arg1.setPerUse = new Array(100, 100);
break;
case "boss_st2":
_arg1.skill_0 = new Array(640, 3000, 0, 0, "tentacle2");
_arg1.skill_1 = new Array(800, 2000, 0, 0, "mucus");
_arg1.setPerUse = new Array(50, 100);
break;
case "boss_st3":
_arg1.skill_0 = new Array(map_w, 40000, 0, 40, "cell_explodion");
_arg1.skill_1 = new Array(800, 15000, 0, 0, "eat");
_arg1.setPerUse = new Array(50, 100);
break;
case "boss_st4":
_arg1.skill_0 = new Array(map_w, 5000, 0, 40, "poo");
_arg1.skill_1 = new Array(map_w, 12000, 0, 20, "swallow");
_arg1.skill_2 = new Array(map_w, 12000, 0, 20, "puff_out");
_arg1.setPerUse = new Array(50, 100);
break;
};
if (_arg1.type == "enemy_er3"){
_arg1.attack = bomb_to_set;
} else {
if (_arg1.type == "boss_st3"){
_arg1.duty = boss_st3_useSkill;
_arg1.process = _arg1.duty;
} else {
if ((((((((_arg1.type == "enemy_em2")) || ((_arg1.type == "boss_st1")))) || ((_arg1.type == "boss_st2")))) || ((_arg1.type == "boss_st4")))){
} else {
_arg1.attack = attacking;
};
};
};
_arg1.useSkill = null;
}
public function enemyBullet_move1(_arg1){
var _local2:*;
_local2 = MapHelper.dat.getPixel(int((_arg1.x / 40)), int((_arg1.y / 40)));
_arg1.distance = (_arg1.distance + _arg1.speed);
if (checkHitTest(_arg1, player)){
check_hp_hero(_arg1.damage);
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
if ((((_arg1.distance >= _arg1.distanceper)) || (!((_local2 == 0))))){
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
}
public function enemyBullet_move2(_arg1){
var _local2:*;
_local2 = MapHelper.dat.getPixel(int((_arg1.x / 40)), int((_arg1.y / 40)));
_arg1.distance = (_arg1.distance + _arg1.speed);
if (checkHitTest(_arg1, player)){
if (MapHelper.dat.getPixel((int((player.x / 40)) - _arg1.scaleX), int((player.y / 40))) == 0){
player.x = (player.x - (_arg1.speed * _arg1.scaleX));
};
if (_arg1.durationAttack <= mainTime){
check_hp_hero(_arg1.damage);
_arg1.durationAttack = (mainTime + 500);
};
};
if ((((_arg1.distance >= _arg1.distanceper)) || (!((_local2 == 0))))){
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
}
public function enemyBullet_move3(_arg1){
var floorColor_b:*;
var eff:*;
var b = _arg1;
floorColor_b = MapHelper.dat.getPixel(int((b.x / 40)), int((b.y / 40)));
b.distance = (b.distance + b.speed);
if (checkHitTest(b, player)){
check_hp_hero(b.damage);
if (player.status == null){
player.keepSpeed = player.speed;
player.speed = (player.speed - Math.round((player.speed * 0.5)));
player.duration_slow = (mainTime + (((Math.random() * 2) + 4) * 1000));
player.status = slow_poison;
eff = API.createMovieFromBase(world, css["gfx_slow"]);
eff.name = "eff_slow";
eff.process = function (_arg1){
if (player != null){
_arg1.x = player.x;
_arg1.y = player.y;
} else {
_arg1.process = null;
destroy(_arg1);
};
};
};
b.process = null;
API.removeMotion(b);
destroy(b);
};
if ((((b.distance >= b.distanceper)) || (!((floorColor_b == 0))))){
b.process = null;
API.removeMotion(b);
destroy(b);
};
}
public function enemyBullet_move4(_arg1){
if ((_arg1.y - (_arg1.height / 2)) <= 0){
_arg1.move_y = ((Math.random() * _arg1.speed) + 1);
} else {
if ((_arg1.y + (_arg1.height / 2)) >= map_h){
_arg1.move_y = -(((Math.random() * _arg1.speed) + 1));
};
};
if ((_arg1.x - (_arg1.width / 2)) <= 0){
_arg1.move_x = ((Math.random() * _arg1.speed) + 1);
} else {
if ((_arg1.x + (_arg1.width / 2)) >= map_w){
_arg1.move_x = -(((Math.random() * _arg1.speed) + 1));
};
};
_arg1.x = (_arg1.x + _arg1.move_x);
_arg1.y = (_arg1.y + _arg1.move_y);
if (checkHitTest(_arg1, player)){
check_hp_hero(_arg1.damage);
_arg1.process = null;
destroy(_arg1);
};
if (_arg1.durationAttack <= mainTime){
_arg1.process = null;
destroy(_arg1);
};
}
public function keyRelease(_arg1:Number){
}
public function enemyBullet_move6(_arg1){
var b = _arg1;
try {
if (checkHitTest(b, player)){
check_hp_hero(b.damage);
b.process = null;
API.removeMotion(b);
destroy(b);
};
if ((((((((b.x < 0)) || ((b.x > map_w)))) || ((b.y < 0)))) || ((b.y > map_h)))){
b.process = null;
API.removeMotion(b);
destroy(b);
};
} catch(error) {
trace("bug : enemyBullet_move6");
};
}
public function power_main(){
var i:*;
var bullet:*;
try {
if (player.delayAttack <= mainTime){
player.gotoAndPlay("attack");
createSound("basic_attack");
i = 1;
while (i <= 4) {
bullet = API.createMovieFromBase(world, css[("power_main" + i)]);
bullet.x = (player.x + ((player.width / 2) * player.scaleX));
bullet.y = (player.y - (player.height / 2));
if (i == 4){
bullet.name = "power4";
bullet.hitList = new Array();
bullet.damage = atTotal;
};
bullet.process = powermain_move;
bullet.distanceper = ((60 + (i * 10)) / 100);
bullet.angle = 0;
bullet.distance = 0;
motAngle(bullet, false, player.scaleX);
i = (i + 1);
};
player.delayAttack = (mainTime + 200);
};
} catch(error) {
trace("bug : power_main");
};
}
public function enemyBullet_move7(_arg1){
var i:*;
var gs:*;
var poo:*;
var b = _arg1;
try {
b.x = (b.x + b.xx);
b.y = (b.y + b.yy);
if (checkHitTest(b, player)){
pooNum--;
check_hp_hero(b.damage);
b.process = null;
API.removeMotion(b);
destroy(b);
};
if ((((((((((b.x < 0)) || ((b.x > map_w)))) || ((b.y < 0)))) || ((b.y > map_h)))) || (checkHitTest(b, boss)))){
pooNum--;
b.process = null;
API.removeMotion(b);
destroy(b);
};
if (pooNum <= 0){
boss.process = boss.duty;
for (i in pooList) {
poo = pooList[i];
poo.process = poo.duty;
};
boss.gotoAndPlay("puff_out");
boss.useSkill = boss["skill_2"];
boss.timeDelayAttack = (mainTime + 20000);
boss.useSkill[2] = (mainTime + boss.useSkill[1]);
gs = create_gameSystem("puff_out_gs", puff_out_system);
gs.durationAttack = (mainTime + 5000);
gs.countTimeCreateBullet = 0;
};
} catch(error) {
trace("bug : enemyBullet_move7");
};
}
public function enemyBullet_move8(_arg1){
var b = _arg1;
try {
b.x = (b.x + b.xx);
b.y = (b.y + b.yy);
if (checkHitTest(b, player)){
check_hp_hero(b.damage);
b.process = null;
API.removeMotion(b);
destroy(b);
};
if ((((((((b.x < 0)) || ((b.x > map_w)))) || ((b.y < 0)))) || ((b.y > map_h)))){
b.process = null;
API.removeMotion(b);
destroy(b);
};
} catch(error) {
trace("bug : enemyBullet_move8");
};
}
public function attacking(_arg1){
var p:*;
var m:*;
var floorColor_m:*;
var distance_check:*;
var i:*;
var randomSkill:*;
var mon = _arg1;
try {
p = new Array(int((player.x / 40)), int((player.y / 40)));
m = new Array(int((mon.x / 40)), int((mon.y / 40)));
floorColor_m = MapHelper.dat.getPixel(m[0], (m[1] + 1));
distance_check = Math.abs(((mon.x - ((mon.width / 2) * mon.scaleX)) - (player.x + ((player.width / 2) * mon.scaleX))));
if ((((((mon.useSkill == null)) && (!((player == null))))) && (!((player.visible == false))))){
randomSkill = Math.round((Math.random() * 100));
for (i in mon.setPerUse) {
if (randomSkill <= mon.setPerUse[i]){
mon.useSkill = mon[("skill_" + i)];
if (mon.useSkill[0] <= 15){
mon.distanceAttack = 15;
} else {
if (mon.useSkill[4] == "leap"){
if ((((((((distance_check < 500)) && ((distance_check < 200)))) || ((((Math.abs((player.y - mon.y)) > 200)) && ((Math.abs((player.y - mon.y)) < 500)))))) && ((mon.useSkill[2] <= mainTime)))){
trace("leap");
mon.timeDelayAttack = (getTimer() + 1000);
mon.useSkill[2] = (mainTime + 7000);
mon.process = null;
mon.time = null;
mon.monMot = null;
API.removeMotion(mon);
check_typeSkill(mon, "leap", distance_check, 0);
mon.useSkill = null;
} else {
mon.useSkill = null;
};
} else {
if (mon.useSkill[4] == "tentacle"){
mon.distanceAttack = 300;
} else {
mon.distanceAttack = (Math.round((Math.random() * (mon.useSkill[0] - Math.round((mon.useSkill[0] * 0.4))))) + Math.round((mon.useSkill[0] * 0.4)));
};
};
};
break;
};
};
};
if ((((((((((((((distance_check <= mon.distanceAttack)) || (checkHitTest(mon, player)))) && ((mon.timeDelayAttack <= getTimer())))) && ((player.y > (mon.y - 10))))) && ((player.y < (mon.y + 10))))) && (!((player == null))))) && (!((player.visible == false))))){
if (mon.useSkill[2] <= mainTime){
mon.monMot.setDirect(0);
monster_turn(mon, true);
mon.timeDelayAttack = (getTimer() + 1000);
mon.useSkill[2] = (getTimer() + mon.useSkill[1]);
check_typeSkill(mon, mon.useSkill[4], mon.useSkill[0], mon.useSkill[3]);
mon.useSkill = null;
mon.process = null;
mon.time = null;
} else {
if (mon.process == null){
mon.process = mon.duty;
};
};
} else {
if ((((((distance_check > mon.distanceAttack)) || (!((m[1] == p[1]))))) && ((mon.timeDelayAttack <= getTimer())))){
if (mon.process == null){
mon.process = mon.duty;
};
};
};
} catch(error) {
trace("bug : attacking");
};
}
public function check_typeSkill(_arg1, _arg2:String, _arg3:Number, _arg4:Number){
switch (_arg2){
case "nomal_1":
skill_nomal_1(_arg1, _arg3, _arg4);
break;
case "nomal_2":
skill_nomal_2(_arg1, _arg3, _arg4);
break;
case "big_mucus":
skill_big_mucus(_arg1, _arg3, _arg4);
break;
case "poison":
skill_poison(_arg1, _arg3, _arg4);
break;
case "shake":
skill_shake(_arg1, _arg3, _arg4);
break;
case "leap":
_arg1.gotoAndPlay("leap_1");
break;
case "tentacle":
skill_tentacle(_arg1, _arg3, _arg4);
break;
case "spit":
skill_spit(_arg1, _arg3, _arg4);
break;
case "tentacle2":
skill_tentacle2(_arg1, _arg3, _arg4);
break;
case "mucus":
skill_mucus(_arg1, _arg3, _arg4);
break;
case "cell_explodion":
skill_cell_explodion(_arg1, _arg3, _arg4);
break;
case "eat":
skill_eat(_arg1, _arg3, _arg4);
break;
case "poo":
skill_poo(_arg1, _arg3, _arg4);
break;
case "swallow":
skill_swallow(_arg1, _arg3, _arg4);
break;
case "puff_out":
skill_puff_out(_arg1, _arg3, _arg4);
break;
};
}
public function create_airBox(_arg1:Array){
var _local2:*;
var _local3:*;
for (_local2 in _arg1) {
_local3 = API.createMovieFromBase(world, css["air_box"]);
_local3.x = (_arg1[_local2][0] * 40);
_local3.y = (_arg1[_local2][1] * 40);
_local3.name = ("airBox" + _local2);
all_airBox.push(_local3.name);
_local3.box_number.text = _local2;
_local3.process = airBox_move;
_local3.distance = (_arg1[_local2][2] * 40);
_local3.moveNum = 0;
};
create_gameSystem("check_player_on_airBox", check_player_on_airBox);
}
public function skill_dash_1(_arg1){
createSound("dash");
apButton = false;
canHit = false;
_arg1.count++;
if (_arg1.currentFrame != "dash"){
_arg1.gotoAndPlay("dash");
};
playermot.setDirect((3 * player.scaleX));
if (_arg1.count >= 7){
canHit = true;
_arg1.count = 0;
_arg1.process = keyProcess;
apButton = true;
};
}
public function enemyBullet_move5(_arg1){
var b = _arg1;
try {
if (((checkHitTest(b, player)) && ((b.hp > 0)))){
check_hp_hero(b.damage);
b.process = null;
API.removeMotion(b);
destroy(b);
};
if ((((((((b.x < 0)) || ((b.x > map_w)))) || ((b.y < 0)))) || ((b.y > map_h)))){
b.process = null;
API.removeMotion(b);
destroy(b);
};
} catch(error) {
trace("bug : enemyBullet_move5");
};
}
public function powerSkill_move1(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_arg1.distance = (_arg1.distance + _arg1.speed);
_local2 = MapHelper.dat.getPixel(int((_arg1.x / 40)), int((_arg1.y / 40)));
_local3 = (world.enemy_layer.numChildren - 1);
while (_local3 >= 0) {
_local4 = world.enemy_layer.getChildAt(_local3);
if (((checkHitTest(_arg1, _local4)) && ((_local4.hp > 0)))){
check_enemy_hp(_local4, _arg1.damage);
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
_local3--;
};
if (boss != null){
if (((((checkHitTest(_arg1, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
check_boss_hp(boss, _arg1.damage);
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
};
if ((((_arg1.distance >= _arg1.distanceTotal)) || (!((_local2 == 0))))){
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
}
public function skill_poison(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
_arg1.gotoAndPlay("attack");
_local4 = create_bullet_enemy(_arg1, "gfx_poison_em2");
_local4.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local4.process = enemyBullet_move3;
_local4.distanceper = _arg2;
}
public function skill_feather_barier(){
var _local1:*;
var _local2:*;
var _local3:*;
featherNum[0] = 0;
_local1 = 100;
_local2 = 0;
while (_local2 < featherTotal) {
_local3 = API.createMovieFromBase(world, css["bullet_4d"]);
_local3.x = (player.x + (_local1 * Math.cos((((Math.PI * 2) / featherTotal) * _local2))));
_local3.y = ((player.y - (player.height / 2)) + (_local1 * Math.sin((((Math.PI * 2) / featherTotal) * _local2))));
_local3.i = _local2;
_local3.freamCount = 0;
_local3.name = ("f" + _local2);
_local3.process = feather_barier_move;
var _local4 = featherNum;
var _local5:int;
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
_local2++;
};
create_gameSystem("gs_feather_barier", create_featherBarier_control);
}
public function powerSkill_move4(_arg1){
var floorColor_b:*;
var i:*;
var nameObj:*;
var eff:*;
var b = _arg1;
b.distance = (b.distance + b.speed);
floorColor_b = MapHelper.dat.getPixel(int((b.x / 40)), int((b.y / 40)));
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((checkHitTest(b, nameObj)) && ((nameObj.hp > 0)))){
b.hitList.push(nameObj.name);
nameObj.process = monster_stun;
nameObj.time = null;
nameObj.attack = null;
nameObj.stun = (mainTime + 3000);
nameObj.gotoAndStop("hurt");
check_enemy_hp(nameObj, b.damage);
if (nameObj.type == "enemy_er3"){
if (nameObj.myBomb != null){
nameObj.myBomb.process = null;
destroy2(nameObj.myBomb, "die2");
nameObj.myBomb = null;
};
};
eff = API.createMovieFromBase(world, css["gfx_stun"]);
eff.name = ("gfx_stun_" + nameObj.name);
eff.nameObj = nameObj;
eff.process = function (_arg1){
if (_arg1.nameObj.parent != null){
_arg1.x = _arg1.nameObj.x;
_arg1.y = (_arg1.nameObj.y - _arg1.nameObj.height);
} else {
_arg1.process = null;
destroy(_arg1);
};
};
};
i = (i - 1);
};
if (boss != null){
if (((((checkHitTest(b, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
b.hitList.push(boss.name);
check_boss_hp(boss, b.damage);
};
};
if ((((b.distance >= b.distanceTotal)) || ((floorColor_b == 0xFF)))){
b.process = null;
API.removeMotion(b);
destroy(b);
};
}
public function skill_blackhole(_arg1){
var i:*;
var nameObj:*;
var mon:*;
var mot:*;
var eff = _arg1;
try {
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((((checkHitTest(eff, nameObj)) && (!((nameObj.duty == enemyBullet_move5))))) && (!((nameObj.type == "m_er3_bomb"))))){
eff.hitList.push(nameObj.name);
nameObj.process = null;
nameObj.time = null;
nameObj.attack = null;
nameObj.status = null;
if (nameObj.monMot != null){
nameObj.monMot.setDirect(0);
nameObj.airBox_close = true;
};
if (nameObj.type == "enemy_er3"){
if (nameObj.myBomb != null){
nameObj.myBomb.process = null;
destroy2(nameObj.myBomb, "die2");
nameObj.myBomb = null;
};
};
API.removeMotion(nameObj);
nameObj.process = monster_blackhole;
};
i = (i - 1);
};
if (eff.dot <= mainTime){
for (i in eff.hitList) {
if (world.enemy_layer.getChildByName(eff.hitList[i]) != null){
mon = world.enemy_layer.getChildByName(eff.hitList[i]);
if (mon.hp > 0){
check_enemy_hp(mon, (atTotal + (atTotal * 0.2)));
} else {
check_enemy_hp(mon, 0);
};
};
};
eff.dot = (mainTime + 1000);
};
if (eff.duration <= mainTime){
eff.process = null;
for (i in eff.hitList) {
if (world.enemy_layer.getChildByName(eff.hitList[i]) != null){
mon = world.enemy_layer.getChildByName(eff.hitList[i]);
if (mon.hp > 0){
if (mon.monMot != null){
mon.airBox_close = false;
mot = new MapMove(mon, MapHelper.dat, 10);
API.setMotion(mon, mot);
mon.monMot = mot;
};
mon.process = mon.duty;
if (((!((mon.type == "enemy_er3"))) || (!((mon.type == "enemy_em2"))))){
mon.attack = attacking;
};
} else {
check_enemy_hp(mon, 0);
};
};
};
destroy(eff);
};
} catch(error) {
trace("bug : skill_blackhole");
};
}
public function powerSkill_move6(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_arg1.distance = (_arg1.distance + _arg1.speed);
_local2 = MapHelper.dat.getPixel(int((_arg1.x / 40)), int((_arg1.y / 40)));
_local3 = (world.enemy_layer.numChildren - 1);
while (_local3 >= 0) {
_local4 = world.enemy_layer.getChildAt(_local3);
if (((((checkHitTest(_arg1, _local4)) && ((_local4.hp > 0)))) && ((_local4.status == null)))){
_local4.status = monster_poison;
_local4.poison_duration = (mainTime + 15000);
_local4.poisonTime = (mainTime + 1000);
check_enemy_hp(_local4, _arg1.damage);
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
_local3--;
};
if (boss != null){
if (((((checkHitTest(_arg1, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
check_boss_hp(boss, _arg1.damage);
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
};
if ((((((((_arg1.x < 0)) || ((_arg1.x > map_w)))) || ((_arg1.y < 0)))) || ((_arg1.y > map_h)))){
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
}
public function powerSkill_move7(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_arg1.distance = (_arg1.distance + _arg1.speed);
_local2 = MapHelper.dat.getPixel(int((_arg1.x / 40)), int((_arg1.y / 40)));
_local3 = (world.enemy_layer.numChildren - 1);
while (_local3 >= 0) {
_local4 = world.enemy_layer.getChildAt(_local3);
if (((checkHitTest(_arg1, _local4)) && ((_local4.hp > 0)))){
check_enemy_hp(_local4, _arg1.damage);
if ((((_local4.x < _arg1.x)) && ((MapHelper.dat.getPixel(int(((_local4.x / 40) - 1)), int((_local4.y / 40))) == 0)))){
_local4.x = (_local4.x - 5);
} else {
if ((((_local4.x > _arg1.x)) && ((MapHelper.dat.getPixel(int(((_local4.x / 40) + 1)), int((_local4.y / 40))) == 0)))){
_local4.x = (_local4.x + 5);
};
};
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
_local3--;
};
if (boss != null){
if (((((checkHitTest(_arg1, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
check_boss_hp(boss, _arg1.damage);
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
};
if (_arg1.distance >= _arg1.distanceTotal){
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
}
public function powerSkill_move2(_arg1){
var _local2:*;
var _local3:*;
var _local4:Boolean;
var _local5:*;
var _local6:*;
_local4 = false;
_arg1.distance = (_arg1.distance + _arg1.speed);
_local5 = MapHelper.dat.getPixel(int((_arg1.x / 40)), int((_arg1.y / 40)));
_local2 = (world.enemy_layer.numChildren - 1);
while (_local2 >= 0) {
_local3 = world.enemy_layer.getChildAt(_local2);
if (((checkHitTest(_arg1, _local3)) && ((_local3.hp > 0)))){
_local4 = true;
break;
};
_local2--;
};
if (boss != null){
if (((((checkHitTest(_arg1, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
_local4 = true;
};
};
if (_arg1.distance >= _arg1.distanceTotal){
_local4 = true;
};
if (_local4 == true){
createSound(_arg1.sound_boom);
_local6 = API.createMovieFromBase(world, css[_arg1.name_boom]);
_local6.x = _arg1.x;
_local6.y = _arg1.y;
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
_local2 = (world.enemy_layer.numChildren - 1);
while (_local2 >= 0) {
_local3 = world.enemy_layer.getChildAt(_local2);
if (((checkHitTest(_local6, _local3)) && ((_local3.hp > 0)))){
check_enemy_hp(_local3, _arg1.damage);
};
_local2--;
};
if (boss != null){
if (((checkHitTest(_local6, boss)) && ((boss.hp > 0)))){
check_boss_hp(boss, _arg1.damage);
};
};
};
}
public function powerSkill_move3(_arg1){
var floorColor_b:*;
var i:*;
var nameObj:*;
var b = _arg1;
try {
b.distance = (b.distance + b.speed);
floorColor_b = MapHelper.dat.getPixel(int((b.x / 40)), int((b.y / 40)));
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((((((checkHitTest(b, nameObj)) && ((nameObj.hp > 0)))) && (!((nameObj.duty == enemyBullet_move5))))) && (!((nameObj.type == "m_er3_bomb"))))){
nameObj.time = null;
nameObj.attack = null;
if (nameObj.type == "enemy_er3"){
if (nameObj.myBomb != null){
nameObj.myBomb.process = null;
destroy2(nameObj.myBomb, "die2");
nameObj.myBomb = null;
};
};
if ((((nameObj.type == "enemy_er3")) || ((nameObj.type == "enemy_em2")))){
nameObj.monMot = new MapMove(nameObj, MapHelper.dat, 10);
API.setMotion(nameObj, nameObj.monMot);
};
nameObj.hitList = new Array();
nameObj.process = monster_bullet;
};
i = (i - 1);
};
if (boss != null){
if (((((checkHitTest(b, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
check_boss_hp(boss, (atTotal + (atTotal * 1)));
b.process = null;
API.removeMotion(b);
destroy(b);
};
};
if ((((b.distance >= b.distanceTotal)) || (!((floorColor_b == 0))))){
b.process = null;
API.removeMotion(b);
destroy(b);
};
} catch(error) {
trace("bug : powerSkill_move3");
};
}
public function create_boss(_arg1:String){
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:*;
var _local6:*;
boss = API.createMovieFromBase(world, css[_arg1]);
boss.x = (game.x + (map_w / 2));
boss.y = (game.y + (map_h / 2));
boss.name = _arg1;
boss.hpTotal = boss.hp;
if (_arg1 == "m_boss_st1"){
boss.duty = monster_boss_st1_move;
boss.type = "boss_st1";
} else {
if (_arg1 == "m_boss_st2"){
boss.duty = monster_boss_st2_move;
boss.type = "boss_st2";
boss.move_y = (Math.random() * map_h);
boss.num_y = Math.round(((boss.move_y - boss.y) / 50));
boss.abs_y = Math.abs(boss.num_y);
boss.move_x = (Math.random() * map_w);
boss.num_x = Math.round(((boss.move_x - boss.x) / 50));
boss.abs_x = Math.abs(boss.num_x);
} else {
if (_arg1 == "m_boss_st3"){
boss.x = (map_w / 2);
boss.y = (map_h * 0.35);
boss.type = "boss_st3";
} else {
if (_arg1 == "m_boss_st4"){
_local3 = API.createMovieFromBase(world, css["m_boss_st4_body"]);
_local3.x = (game.x + (map_w / 2));
_local3.y = (game.y + (map_h / 2));
boss.x = (map_w - (boss.width / 2));
boss.y = (map_h / 2);
boss.freamCount = 0;
boss.direction = "ccw";
boss.m_count = 160;
boss.number_move = 2;
boss.move = -(boss.speed);
world.boss_layer2.swapChildren(world.boss_layer2.getChildAt(0), world.boss_layer2.getChildAt(1));
boss.duty = monster_boss_st4_move;
boss.type = "boss_st4";
_local6 = map_w;
_local4 = 0;
while (_local4 < 4) {
_local5 = create_point_poo(_local4, 1, boss.speed);
_local6 = (_local6 - ((Math.random() * 100) + 120));
_local5.x = _local6;
_local5.y = 50;
_local4++;
};
_local6 = map_h;
_local4 = 4;
while (_local4 < 6) {
_local5 = create_point_poo(_local4, 4, -(boss.speed));
_local6 = (_local6 - ((Math.random() * 200) + 200));
_local5.x = 60;
_local5.y = _local6;
_local4++;
};
_local6 = map_w;
_local4 = 6;
while (_local4 < 9) {
_local5 = create_point_poo(_local4, 3, boss.speed);
_local6 = (_local6 - ((Math.random() * 100) + 180));
_local5.x = _local6;
_local5.y = 850;
_local4++;
};
};
};
};
};
boss.timeDelayAttack = (mainTime + 5000);
boss.process = boss.duty;
add_skill_to_monster(boss);
_local2 = API.createMovieFromBase(world, css["m_eff_create"]);
_local2.x = boss.x;
_local2.y = boss.y;
_local2.width = (boss.width - (boss.width * 0.7));
_local2.scaleY = _local2.scaleX;
}
public function bomb_to_set(_arg1){
if ((((_arg1.skill_0[2] <= mainTime)) && (!((_arg1.myBomb == null))))){
_arg1.skill_0[2] = (mainTime + _arg1.skill_0[1]);
_arg1.gotoAndPlay("attack");
_arg1.myBomb.monMot = new MapMove(_arg1.myBomb, MapHelper.dat, 10);
API.setMotion(_arg1.myBomb, _arg1.myBomb.monMot);
_arg1.myBomb.process = _arg1.myBomb.duty;
_arg1.myBomb.attack = bomb_start;
_arg1.myBomb.durationAttack = (mainTime + 9000);
_arg1.apBomb = false;
_arg1.myBomb.countDown = 3;
_arg1.myBomb.distanceAttack = 10;
_arg1.myBomb = null;
};
}
public function powerSkill_move5(_arg1){
var _local2:Boolean;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = false;
_arg1.distance = (_arg1.distance + _arg1.speed);
_local3 = MapHelper.dat.getPixel(int((_arg1.x / 40)), int((_arg1.y / 40)));
_local4 = (world.enemy_layer.numChildren - 1);
while (_local4 >= 0) {
_local5 = world.enemy_layer.getChildAt(_local4);
if (((checkHitTest(_arg1, _local5)) && ((_local5.hp > 0)))){
_local2 = true;
};
_local4--;
};
if ((((_arg1.distance >= _arg1.distanceTotal)) || (!((_local3 == 0))))){
_local2 = true;
};
if (_local2 == true){
_local6 = API.createMovieFromBase(world, css["poison_cloud"]);
_local6.x = _arg1.x;
_local6.y = _arg1.y;
_local6.duration = (mainTime + 10000);
_local6.process = poison_cloud;
_arg1.process = null;
API.removeMotion(_arg1);
destroy(_arg1);
};
}
public function motAngle(_arg1, _arg2:Boolean, _arg3:Number){
if (_arg3 == 1){
_arg1.mot = new AngleMove(_arg1, _arg1.angle, _arg1.speed, _arg2);
} else {
if (_arg3 == -1){
_arg1.mot = new AngleMove(_arg1, -((_arg1.angle + 180)), _arg1.speed, _arg2);
_arg1.scaleX = -1;
};
};
API.setMotion(_arg1, _arg1.mot);
}
public function check_player_on_airBox(_arg1){
var _local2:*;
_local2 = check_on_airBox(player);
if (_local2 == true){
player.airBox = true;
} else {
player.airBox = false;
};
}
public function initCreator(_arg1:MovieClip, _arg2:Object){
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
}
public function skill_rabid(){
var _local1:*;
apRabid = true;
if (player.currentFrame != "rabbid"){
player.gotoAndPlay("rabbid");
};
createSound("rabid");
_local1 = create_bullet_hero("rabbid");
_local1.damage = (atTotal + Math.round((atTotal * 1.2)));
_local1.distanceTotal = 200;
_local1.process = powerSkill_move1;
}
public function monster_bullet(_arg1){
var n:*;
var floorColor_b:*;
var i:*;
var nameObj:*;
var mon = _arg1;
try {
if (mon.x < player.x){
n = -1;
} else {
if (mon.x > player.x){
n = 1;
};
};
mon.monMot.setDirect(n);
floorColor_b = MapHelper.dat.getPixel(int(((mon.x / 40) + n)), int((mon.y / 40)));
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((((checkHitTest(mon, nameObj)) && ((nameObj.hp > 0)))) && (!((mon.name == nameObj.name))))){
mon.hitList.push(nameObj.name);
check_enemy_hp(nameObj, (atTotal + (atTotal * 1)));
};
i = (i - 1);
};
if (boss != null){
if (((checkHitTest(mon, boss)) && ((boss.hp > 0)))){
check_boss_hp(boss, (atTotal + (atTotal * 1)));
};
};
if (floorColor_b != 0){
mon.hitList = new Array();
if (mon.monMot != null){
mon.monMot.setDirect(0);
};
if ((((mon.type == "enemy_er3")) || ((mon.type == "enemy_em2")))){
mon.monMot = null;
API.removeMotion(mon);
} else {
mon.attack = attacking;
};
mon.process = mon.duty;
};
} catch(error) {
trace("bug : monster_bullet");
};
}
public function skill_razor_wing(){
var _local1:*;
if (player.currentFrame != "fire"){
player.gotoAndPlay("fire");
};
createSound("razor_wing");
_local1 = create_bullet_hero("raser_wing");
_local1.damage = (atTotal + Math.round((atTotal * 0.8)));
_local1.distanceTotal = 250;
_local1.process = powerSkill_move4;
}
public function tintColor(_arg1:Sprite, _arg2:Number, _arg3:Number){
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
public function airBox_move(_arg1){
var i:*;
var speed:*;
var floorColor_b:*;
var mot:*;
var nameObj:*;
var mon_mot:*;
var cell_ex:*;
var a = _arg1;
try {
speed = 4;
floorColor_b = MapHelper.dat.getPixel(int((a.x / 40)), (int((a.y / 40)) + 2));
if (a.distance < 0){
a.moveNum = (a.moveNum - speed);
a.y = (a.y + speed);
if ((((a.moveNum <= a.distance)) || (!((floorColor_b == 0))))){
a.distance = Math.abs(a.distance);
};
} else {
if (a.distance > 0){
a.moveNum = (a.moveNum + speed);
a.y = (a.y - speed);
if (a.moveNum >= a.distance){
a.distance = (a.distance * -1);
};
};
};
mot = API.getMotion(player);
if (a.by == null){
a.by = a.y;
};
if (checkHitTest(a.m_hitBox, player)){
mot.ground = true;
if (!((!((key[38] == null))) || (!((key[87] == null))))){
player.y = a.y;
};
};
a.by = a.y;
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((((((checkHitTest(a.m_hitBox, nameObj)) && (!((nameObj.type == "m_er3_bomb"))))) && (!((nameObj.type == "enemy_er3"))))) && ((nameObj.airBox_close == false)))){
mon_mot = API.getMotion(nameObj);
mon_mot.ground = true;
nameObj.y = a.y;
};
i = (i - 1);
};
i = (world.bossbullet_layer_front.numChildren - 1);
while (i >= 0) {
cell_ex = world.bossbullet_layer_front.getChildAt(i);
if (((checkHitTest(a, cell_ex)) && ((cell_ex.airBox_close == false)))){
cell_ex.y = a.y;
};
i = (i - 1);
};
} catch(error) {
trace("EROOR : airBox_move");
};
}
public function keyPress(_arg1:Number){
var mon:*;
var g:*;
var gs:*;
var text:*;
var canChange:*;
var name:String;
var i:*;
var nameObj:*;
var keycode = _arg1;
try {
if (((apButton) && ((gamepause == false)))){
if ((((keycode == 38)) || ((keycode == 87)))){
player.gotoAndPlay("jump");
playermot.jumpNow(((player.jump / 10) + 0.5), player.jump);
};
if ((((((keycode == 40)) || ((keycode == 83)))) && ((floorColor == 0xFF00)))){
player.y = (player.y + 40);
};
if ((((keycode == 32)) || ((keycode == 74)))){
power_main();
};
if (keycode == 80){
up_down_sound(soundbmg, 0.1);
gamepause = true;
ap_okay = false;
game.parent.m_attribute_panel.gotoAndPlay(1);
game.parent.m_attribute_panel.x = 0;
game.parent.m_attribute_panel.y = 0;
};
if ((((((keycode == 49)) || ((keycode == 97)))) || ((keycode == 75)))){
use_skill(1);
};
if ((((((keycode == 50)) || ((keycode == 98)))) || ((keycode == 76)))){
use_skill(2);
};
if (keycode == 71){
if (godmode == false){
godmode = true;
game.parent.m_txt_godmode.y = (sh - (game.parent.m_txt_godmode.height * 2));
} else {
godmode = false;
game.parent.m_txt_godmode.y = (sh + (game.parent.m_txt_godmode.height * 2));
};
};
if ((((keycode == 188)) || ((keycode == 190)))){
canChange = false;
if (keycode == 188){
if (numChange > 2){
numChange--;
canChange = true;
};
} else {
if (keycode == 190){
if (numChange < 13){
numChange++;
canChange = true;
};
};
};
if (canChange == true){
switch (numChange){
case 2:
name = "2a";
break;
case 3:
name = "2b";
break;
case 4:
name = "3a";
break;
case 5:
name = "3b";
break;
case 6:
name = "3c";
break;
case 7:
name = "3d";
break;
case 8:
name = "4a";
break;
case 9:
name = "4b";
break;
case 10:
name = "4c";
break;
case 11:
name = "4d";
break;
case 12:
name = "4e";
break;
case 13:
name = "4f";
break;
};
i = (world.playerbullet_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.playerbullet_layer.getChildAt(i);
nameObj.process = null;
API.removeMotion(nameObj);
destroy(nameObj);
i = (i - 1);
};
destroy2(player, "die2");
create_hero(("player_" + name));
};
};
if ((((keycode == 105)) || ((keycode == 57)))){
if (gamelevel < 4){
gotoStage = true;
clear_object();
boss = null;
apButton = false;
text = game.parent.m_stage_clear;
text.x = (sw / 2);
text.y = (sh / 2);
text.gotoAndPlay(2);
};
};
};
} catch(error) {
trace("keyPress ไม่สามารถทำงานได้อาจจะหาตัว heroไม่เจอเป็นต้น");
};
}
public function levelUp(){
var _local1:*;
var _local2:*;
var _local3:*;
trace(("slot :" + game.parent.selectSaveNum));
gamepause = true;
if (game.parent.apContinue == true){
trace("LOAD");
goto_saveOrLoad = "Load";
game.parent.m_save_load.gotoAndPlay(1);
game.parent.m_save_load.x = 0;
game.parent.m_save_load.y = 0;
} else {
if (game.parent.selectSaveNum > 0){
trace(("Load slot :" + game.parent.selectSaveNum));
_local2 = game.parent.selectSaveNum;
game.parent.selectSaveNum = 0;
_local3 = game.parent[("sObjCon_" + _local2)];
gamelevel = _local3.data.gamelevel;
rev_select = "";
for (_local1 in _local3.data.rev_data) {
rev_data[_local1] = _local3.data.rev_data[_local1];
};
atbHp = _local3.data.atbHp;
atbMp = _local3.data.atbMp;
at_all = _local3.data.at_all;
atbAt = _local3.data.atbAt;
myLevel = _local3.data.myLevel;
expTotal = _local3.data.expTotal;
EXP = _local3.data.EXP;
atb_point = _local3.data.atb_point;
game.parent.keep_scorefinal = _local3.data.keep_scorefinal;
game.parent.m_revolution_panel.gotoAndPlay(1);
game.parent.m_revolution_panel.x = 0;
game.parent.m_revolution_panel.y = 0;
} else {
ap_autoSave = true;
gamelevel++;
game.parent.m_revolution_panel.gotoAndPlay(1);
game.parent.m_revolution_panel.x = 0;
game.parent.m_revolution_panel.y = 0;
};
};
}
public function create_hero(_arg1:Object){
var mot:*;
var name = _arg1;
try {
player = API.createMovieFromBase(world, css[name]);
player.x = (sw / 2);
player.y = 40;
player.hp = player.hp;
player.hptotal = player.hp;
player.name = name;
player.airBox = false;
at_all = (at_all + player.damage);
set_status();
add_skill_to_hero(player);
player.duty = keyProcess;
player.type = "hero";
player.process = player.duty;
cam.focusobject = player;
mot = new MapMove(player, MapHelper.dat, 10);
API.setMotion(player, mot);
playermot = mot;
player.delayAttack = 0;
hp_re_time = (getTimer() + hp_re_next_time);
mp_re_time = (getTimer() + mp_re_next_time);
} catch(error) {
trace("bug :create_hero");
};
}
public function cell_explodion_work(_arg1){
if (_arg1.durationAttack <= mainTime){
_arg1.gotoAndPlay("explode");
if (checkHitTest(_arg1, player)){
check_hp_hero(_arg1.damage);
};
_arg1.process = null;
};
}
public function goto(_arg1:MovieClip, _arg2){
API.setTimeCount(_arg1, int(_arg2[1]));
}
public function skill_poison_cloud(){
var _local1:*;
if (player.currentFrame != "fire"){
player.gotoAndPlay("fire");
};
_local1 = create_bullet_hero("bullet_4e");
_local1.distanceTotal = 150;
_local1.process = powerSkill_move5;
}
public function clear_object(_arg1=null){
var i:*;
var num:*;
var obj:*;
var layer = _arg1;
trace("Clear");
try {
if (layer == null){
layer = new Array("bossbullet_layer_back", "bossbullet_layer_front", "enemy_layer", "enemybullet_layer", "playerbullet_layer", "gfx_layer", "obj_layer", "boss_layer", "boss_layer1", "boss_layer2");
};
for (i in layer) {
if (world[layer[i]] != null){
num = (world[layer[i]].numChildren - 1);
while (num >= 0) {
obj = world[layer[i]].getChildAt(num);
obj.tint = null;
obj.process = null;
obj.attack = null;
obj.time = null;
obj.status = null;
destroy(obj);
num = (num - 1);
};
};
};
} catch(error) {
trace("bug :clear_object");
};
}
public function createSound(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
if (mute == 1){
switch (_arg1){
case "bgm":
_local3 = (Math.round((Math.random() * 2)) + 1);
if (_local3 == 1){
_local4 = new BGM1();
};
if (_local3 == 2){
_local4 = new BGM2();
};
if (_local3 == 3){
_local4 = new BGM3();
};
soundbmg = _local4.play();
up_down_sound(soundbmg, soundNum);
soundbmg.addEventListener(Event.SOUND_COMPLETE, doSoundComplete);
break;
case "melee_die":
_local2 = new melee_die();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "range_die":
_local2 = new range_die();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "hit":
_local2 = new hit();
soundList = _local2.play();
break;
case "basic_attack":
_local2 = new basic_attack();
soundList = _local2.play();
break;
case "grow":
_local2 = new grow();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "feather":
_local2 = new feather();
soundList = _local2.play();
break;
case "rabid":
_local2 = new rabid();
soundList = _local2.play();
break;
case "dash":
_local2 = new dash();
soundList = _local2.play();
up_down_sound(soundList, 0.3);
break;
case "heal":
_local2 = new heal();
soundList = _local2.play();
up_down_sound(soundList, 5);
break;
case "berserk":
_local2 = new berserk();
soundList = _local2.play();
up_down_sound(soundList, 4);
break;
case "bomb1":
_local2 = new bomb();
soundList = _local2.play();
up_down_sound(soundList, 0.3);
break;
case "bomb2":
_local2 = new bomb();
soundList = _local2.play();
up_down_sound(soundList, 0.3);
break;
case "backhole":
_local2 = new backhole();
soundList = _local2.play();
break;
case "bash":
_local2 = new bash();
soundList = _local2.play();
break;
case "razor_wing":
_local2 = new razor_wing();
soundList = _local2.play();
up_down_sound(soundList, 0.3);
break;
case "poison_nova":
_local2 = new poison_nova();
soundList = _local2.play();
break;
case "boss_die":
_local2 = new boss_die();
soundList = _local2.play();
up_down_sound(soundList, 3);
break;
case "stage1_1":
_local2 = new stage1_1();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "stage1b_1":
_local2 = new stage1b_1();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "stage2":
_local2 = new stage2();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "stage2b_1":
_local2 = new stage2b_1();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "stage3":
_local2 = new stage3();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "stage3b":
_local2 = new stage3b();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "stage4_1":
_local2 = new stage4_1();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
case "stage4b_1":
_local2 = new stage4b_1();
soundList = _local2.play();
up_down_sound(soundList, 2);
break;
};
};
}
public function time_monster_deray(_arg1){
if (mainTime >= _arg1.timeStart){
if (_arg1.timeDeray > 0){
_arg1.timeDeray--;
_arg1.timeStart = (_arg1.timeStart + 500);
} else {
_arg1.time = null;
switch (_arg1.action){
case "monster_jump":
monster_jump(_arg1);
break;
case "monster_jump_front":
monster_jump_front(_arg1);
break;
case "monster_down":
monster_down(_arg1);
break;
case "wait":
break;
};
};
};
}
public function skill_spit(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
var _local5:*;
var _local6:*;
_local4 = new Point(boss.mouth.x, boss.mouth.y);
_local4 = boss.localToGlobal(_local4);
_local4 = world.globalToLocal(_local4);
_arg1.gotoAndPlay("spit");
_local5 = 0;
while (_local5 < 5) {
nameNumber++;
_local6 = API.createMovieFromBase(world, css["enemy_em1"]);
_local6.x = _local4.x;
_local6.y = _local4.y;
_local6.name = ("m" + nameNumber);
_local6.hp = 1;
_local6.hpTotal = _local6.hp;
_local6.type = "enemy_em1";
_local6.angle = ((360 / 5) * _local5);
_local6.distance = 0;
_local6.hitList = new Array();
_local6.scaleX = _arg1.scaleX;
motAngle(_local6, false, -(_arg1.scaleX));
_local6.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local6.duty = enemyBullet_move5;
_local6.process = _local6.duty;
_local5++;
};
boss.useSkill = null;
}
public function monster_jump(_arg1){
if ((((_arg1.jumpNow == null)) || ((_arg1.jumpNow <= 0)))){
_arg1.jumpNow = 2;
};
_arg1.gotoAndPlay("jump");
_arg1.monMot.jumpNow(((4 * _arg1.jumpNow) + 2), ((40 * _arg1.jumpNow) + 20));
}
public function soldier(_arg1){
}
public function main_time(_arg1){
mainTime = getTimer();
}
public function use_skill(_arg1:Number){
var not_yet:*;
var sys:*;
var eff_gfx_re:*;
var eff_blackhole:*;
var eff_not_ready:*;
var num = _arg1;
not_yet = false;
if (((((!((player[("skill_" + num)] == null))) && ((player[("skill_" + num)][3] <= mainTime)))) && (!((player[("skill_" + num)][1] == 0))))){
if (mp >= player[("skill_" + num)][1]){
if (godmode == false){
mp = (mp - player[("skill_" + num)][1]);
};
player[("skill_" + num)][3] = (mainTime + player[("skill_" + num)][2]);
player[("skill_" + num)][4] = mainTime;
switch (player[("skill_" + num)][0]){
case "growl":
skill_growl();
break;
case "slat_feather":
skill_slat_feather();
break;
case "dash_1":
player.count = 0;
player.process = skill_dash_1;
break;
case "rabid":
skill_rabid();
break;
case "rejuvination":
createSound("heal");
sys = create_gameSystem("sys_rejuvination", skill_rejuvination);
sys.duration = (mainTime + 18000);
hp_re_per = 0.15;
eff_gfx_re = API.createMovieFromBase(world, css["gfx_rejuvenation"]);
eff_gfx_re.name = "gfx_rejuvenation";
eff_gfx_re.process = function (_arg1){
if (player != null){
_arg1.x = player.x;
_arg1.y = (player.y - (player.height / 2));
} else {
_arg1.process = null;
destroy(_arg1);
};
};
break;
case "heal":
skill_heal();
break;
case "razor":
skill_razor();
break;
case "fireball":
skill_fireball("bullet_3d", 1, 640);
break;
case "dash_2":
player.hitList = new Array();
player.count = 0;
player.process = skill_dash_2;
break;
case "blackhole":
if (player.currentFrame != "blackhole"){
player.gotoAndPlay("blackhole");
};
createSound("backhole");
eff_blackhole = API.createMovieFromBase(world, css["blackhole"]);
eff_blackhole.x = (player.x + (50 * player.scaleX));
eff_blackhole.y = (player.y - (player.height / 2));
eff_blackhole.dot = (mainTime + 1000);
eff_blackhole.process = skill_blackhole;
eff_blackhole.duration = (mainTime + 10000);
eff_blackhole.hitList = new Array();
eff_blackhole.name = "blackhole";
break;
case "bash":
skill_bash();
break;
case "razor_wing":
skill_razor_wing();
break;
case "poison_cloud":
skill_poison_cloud();
break;
case "fireball_2":
skill_fireball("bullet_4f_1", 3, 480);
break;
case "fire_strom":
skill_fire_strom();
break;
};
} else {
not_yet = true;
};
} else {
not_yet = true;
};
if (not_yet){
eff_not_ready = API.createMovieFromBase(world, css["gfx_not_ready"]);
eff_not_ready.name = "gfx_not_ready";
eff_not_ready.process = function (_arg1){
if (player != null){
_arg1.x = player.x;
_arg1.y = ((player.y - player.height) - 20);
} else {
_arg1.process = null;
destroy(_arg1);
};
};
};
}
public function tentacle_move2(_arg1){
var arm = _arg1;
try {
if (arm.durationAttack <= mainTime){
arm.x = (arm.x - (arm.speed * arm.scaleX));
if (arm.attackBox.hitTestObject(player)){
check_hp_hero((boss.damage + Math.round((boss.damage * (boss.skill_0[3] / 100)))));
};
};
if ((((((arm.scaleX == -1)) && ((arm.x > -10)))) || ((((arm.scaleX == 1)) && ((arm.x < (map_w + 10))))))){
arm.process = null;
destroy(arm);
};
} catch(error) {
trace("bug : tentacle_move2");
};
}
public function set_level(){
try {
if (superclass.world != null){
superclass.game.removeChild(world);
superclass.world = null;
};
createWorld();
player = null;
boss = null;
nameNumber = 0;
monsterGate_list = new Array();
monCount = 0;
getTime1 = (getTimer() + 1000);
getTime2 = 0;
gate_empty = new Array();
if (gamelevel == 1){
game.parent.keep_scorefinal = 0;
monsterGate_list = [[5, 6, monsterSet1], [13, 8, monsterSet2], [20, 6, monsterSet1], [5, 13, monsterSet2], [20, 13, monsterSet2], [5, 15, monsterSet1], [20, 15, monsterSet1]];
map_w = 960;
map_h = 720;
monMax = monsterGate_list.length;
minute = 2;
second = 59;
create_map("mapdata1");
} else {
if (gamelevel == 2){
monsterGate_list = [[15, 5, monsterSet4], [9, 7, monsterSet5], [2, 13, monsterSet4], [15, 17, monsterSet4], [9, 19, monsterSet5], [2, 21, monsterSet4], [15, 29, monsterSet4], [9, 31, monsterSet5], [2, 33, monsterSet4], [2, 4, monsterSet3], [15, 7, monsterSet3], [2, 15, monsterSet3], [15, 19, monsterSet3], [2, 35, monsterSet3], [15, 31, monsterSet3]];
map_w = 640;
map_h = 1440;
monMax = monsterGate_list.length;
minute = 2;
second = 59;
create_map("mapdata2");
} else {
if (gamelevel == 3){
monsterGate_list = [[17, 18, monsterSet6], [7, 19, monsterSet6], [26, 19, monsterSet6], [31, 7, monsterSet7], [3, 7, monsterSet7]];
map_w = 0x0500;
map_h = 960;
monMax = monsterGate_list.length;
minute = 2;
second = 59;
airBoxList = [[2, 17, 4], [10, 20, -4], [20, 20, 4], [28, 17, -4], [6, 13, -3], [25, 13, 3], [10, 10, -2], [14, 13, -5], [18, 10, 2]];
create_map("mapdata3");
create_airBox(airBoxList);
} else {
if (gamelevel == 4){
monsterGate_list = [[20, 4, monsterSet8], [20, 8, monsterSet8], [20, 12, monsterSet8], [20, 16, monsterSet8], [20, 20, monsterSet8], [4, 4, monsterSet8], [4, 8, monsterSet8], [4, 12, monsterSet8], [4, 16, monsterSet8], [4, 20, monsterSet8]];
map_w = 920;
map_h = 920;
monMax = monsterGate_list.length;
minute = 2;
second = 59;
create_map("mapdata4");
};
};
};
};
minute = 0;
second = 11;
} catch(error) {
trace("bug :levelUp() ");
};
}
public function monster_boss_st1_move(_arg1){
var i:*;
var num_x:*;
var num_y:*;
var abs_x:*;
var abs_y:*;
var randomSkill:*;
var boss = _arg1;
num_x = Math.round(((boss.x - player.x) / 100));
num_y = Math.round(((boss.y - (player.y - 200)) / 13));
abs_x = Math.abs(num_x);
abs_y = Math.abs(num_y);
try {
monster_turn(boss, true);
if (abs_x == 0){
abs_x = 1;
};
if (abs_y == 0){
abs_y = 1;
};
boss.x = (boss.x - (((Math.random() * boss.speed) + 1) * (num_x / abs_x)));
boss.y = (boss.y - (((Math.random() * boss.speed) + 1) * (num_y / abs_y)));
if (boss.useSkill == null){
randomSkill = Math.round((Math.random() * 100));
for (i in boss.setPerUse) {
if (randomSkill <= boss.setPerUse[i]){
boss.useSkill = boss[("skill_" + i)];
break;
};
};
};
if ((((boss.useSkill[2] <= mainTime)) && ((boss.timeDelayAttack <= mainTime)))){
boss.timeDelayAttack = ((mainTime + Math.round((Math.random() * 5000))) + 3000);
boss.useSkill[2] = (mainTime + boss.useSkill[1]);
check_typeSkill(boss, boss.useSkill[4], boss.useSkill[0], boss.useSkill[3]);
};
} catch(error) {
trace("มีปัญหาที่ monster_boss_st1_move ");
};
}
public function traceString(_arg1:MovieClip, _arg2){
trace(((_arg1.name + " trace : ") + _arg2));
}
public function createBomb(_arg1){
var _local2:*;
nameNumber++;
_local2 = API.createMovieFromBase(world, css["m_er3_bomb"]);
_local2.name = ("m" + nameNumber);
_local2.hpTotal = _local2.hp;
_local2.type = "m_er3_bomb";
_local2.durationAttack = 0;
_local2.x = _arg1.x;
_local2.y = (_arg1.y + _local2.height);
_local2.duty = hunter;
_local2.for_mon = _arg1;
return (_local2);
}
public function get_exp(){
var num:*;
var eff:*;
if (myLevel < levelMax_on_stage[4]){
num = (levelMax_on_stage[gamelevel] - myLevel);
if (num == -1){
EXP = (EXP + (expNum - (expNum * 0.3)));
} else {
if (num == -2){
EXP = (EXP + (expNum - (expNum * 0.6)));
} else {
if (num <= -3){
EXP = (EXP + (expNum - (expNum * 0.9)));
} else {
EXP = (EXP + expNum);
};
};
};
if (EXP >= expTotal){
set_status();
myLevel++;
atb_point++;
if (myLevel == 5){
addAchivment("Reach level 5");
};
if (myLevel == 10){
addAchivment("Reach level 10");
};
if (myLevel == 15){
addAchivment("Reach level 15");
};
if (myLevel < levelMax_on_stage[4]){
EXP = 0;
expTotal = (expTotal + Math.round((expTotal * 0.3)));
};
try {
eff = API.createMovieFromBase(world, css["gfx_levelup"]);
eff.name = "gfx_levelup";
eff.process = function (_arg1){
if (player != null){
_arg1.x = player.x;
_arg1.y = (player.y - (player.height / 2));
} else {
_arg1.process = null;
destroy(_arg1);
};
};
} catch(error) {
trace("bug level");
};
};
};
}
public function monster_turn(_arg1:Object, _arg2:Boolean){
var _local3:*;
var _local4:*;
_local3 = new Array(Math.round((player.x / 40)), Math.round((player.y / 40)));
_local4 = new Array(Math.round((_arg1.x / 40)), Math.round((_arg1.y / 40)));
if (_arg2){
if (_local4[0] < _local3[0]){
_arg1.scaleX = -1;
} else {
if (_local4[0] > _local3[0]){
_arg1.scaleX = 1;
};
};
} else {
if (_arg1.scaleX == 1){
_arg1.scaleX = -1;
} else {
_arg1.scaleX = 1;
};
};
}
public function create_enegy(_arg1, _arg2:String, _arg3:String){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local6 = (player.x + ((player.width / 2) * player.scaleX));
_local7 = (player.y - (player.height / 2));
_local5 = API.createMovieFromBase(world, css[_arg3]);
_local5.x = _local6;
_local5.y = _local7;
_local5.scaleX = player.scaleX;
_local4 = 0;
while (_local4 < 5) {
_local5 = API.createMovieFromBase(world, css[_arg2]);
_local5.x = (_arg1.x - ((_arg1.width / 2) * _arg1.scaleX));
_local5.y = (_arg1.y - (_arg1.height / 2));
_local5.angle = ((360 / 5) * _local4);
motAngle(_local5, false, -(_arg1.scaleX));
_local5.distance = 10;
_local5.duration = 10;
_local5.process = enegy_move_to_player;
_local4++;
};
}
public function skill_berserk_1(_arg1){
_arg1.x = player.x;
_arg1.y = (player.y - (player.height / 2));
if (_arg1.duration <= mainTime){
player.speed = _arg1.old_speed_player;
atTotal = (at_all + atbAt);
_arg1.process = null;
destroy(_arg1);
apBerserk_1 = true;
};
}
public function hero_stun(_arg1){
playermot.setDirect(0);
apButton = false;
if (_arg1.duration_stun <= mainTime){
if (world.gfx_layer.getChildByName("gfx_stun") != null){
destroy(world.gfx_layer.getChildByName("gfx_stun"));
};
_arg1.status = null;
apButton = true;
};
}
public function helloWorld(_arg1:MovieClip, _arg2){
trace("Hello World");
}
public function skill_berserk_2(_arg1){
_arg1.x = player.x;
_arg1.y = (player.y - (player.height / 2));
if (_arg1.duration <= mainTime){
player.speed = _arg1.old_speed_player;
atTotal = (at_all + atbAt);
hp_re_per = 0.01;
_arg1.process = null;
destroy(_arg1);
apBerserk_2 = true;
};
}
public function monster_down(_arg1){
_arg1.y = (_arg1.y + 40);
setTimeDeray(_arg1, "wait");
}
public function quake_monitor(_arg1){
if ((((_arg1.duration == null)) || ((_arg1.duration == 0)))){
_arg1.duratio = (mainTime + 1000);
};
if (_arg1.duration <= mainTime){
game.x = 0;
game.y = 0;
_arg1.process = null;
destroy(_arg1);
} else {
game.x = (Math.random() * 4);
game.y = (Math.random() * 4);
};
}
public function skill_nomal_1(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
_arg1.gotoAndPlay("attack");
_local4 = create_bullet_enemy(_arg1, "power_nomal");
_local4.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local4.process = enemyBullet_move1;
_local4.distanceper = _arg2;
}
public function skill_nomal_2(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
_arg1.gotoAndPlay("attack");
_local4 = create_bullet_enemy(_arg1, "bullet_mucus1");
_local4.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local4.process = enemyBullet_move1;
_local4.distanceper = _arg2;
}
public function monster_stun(_arg1){
var mon = _arg1;
try {
if (mon.monMot != null){
mon.monMot.setDirect(0);
};
if (mon.stun <= mainTime){
if (world.gfx_layer.getChildByName(("gfx_stun_" + mon.name)) != null){
destroy(world.gfx_layer.getChildByName(("gfx_stun_" + mon.name)));
};
mon.stun = 0;
mon.gotoAndPlay("stand");
mon.process = mon.duty;
if (((((((((((!((mon.type == "enemy_er3"))) || (!((mon.type == "enemy_em2"))))) || (!((mon.type == "boss_st1"))))) || (!((mon.type == "boss_st2"))))) || (!((mon.type == "boss_st3"))))) || (!((mon.type == "boss_st4"))))){
mon.attack = attacking;
};
};
} catch(error) {
trace("bug : monster_stun");
};
}
public function skill_poison_nova(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:*;
var _local5:*;
var _local6:*;
createSound("poison_nova");
_local4 = API.createMovieFromBase(world, css["gfx_poison_explode"]);
_local4.x = _arg1;
_local4.y = _arg2;
if (player.currentFrame != "fire"){
player.gotoAndPlay("fire");
};
_local5 = 0;
while (_local5 < 12) {
_local6 = API.createMovieFromBase(world, css["bullet_4e"]);
_local6.x = _local4.x;
_local6.y = _local4.y;
_local6.distance = 0;
_local6.hitList = new Array();
_local6.damage = _arg3;
_local6.distanceTotal = 700;
_local6.mot = new AngleMove(_local6, ((360 / 12) * _local5), _local6.speed, true);
API.setMotion(_local6, _local6.mot);
_local6.rotation = (_local6.rotation + 180);
_local6.process = powerSkill_move6;
_local5++;
};
}
public function mouseUp(_arg1:MouseEvent){
releaseFocus();
}
public function initBullet(_arg1:MovieClip, _arg2:Object){
CSSToVar.CSSApplyObject(game, world, _arg1, _arg2);
}
public function point_poo_move(_arg1){
var _local2:*;
if (boss.direction != null){
_local2 = false;
if ((((((((((_arg1.y <= 50)) && ((_arg1.x <= 60)))) || ((((_arg1.x >= 860)) && ((_arg1.y <= 50)))))) || ((((_arg1.y >= 850)) && ((_arg1.x >= 860)))))) || ((((_arg1.x <= 60)) && ((_arg1.y >= 850)))))){
_local2 = true;
if (boss.direction == "cw"){
_arg1.number_move++;
if (_arg1.number_move > 4){
_arg1.number_move = 1;
};
} else {
_arg1.number_move--;
if (_arg1.number_move < 1){
_arg1.number_move = 4;
};
};
};
if (_local2 == true){
_local2 = false;
if (_arg1.move > 0){
_arg1.move = -(boss.speed);
} else {
_arg1.move = boss.speed;
};
};
if (_arg1.number_move == 1){
_arg1.x = (_arg1.x - _arg1.move);
} else {
if (_arg1.number_move == 2){
_arg1.y = (_arg1.y + _arg1.move);
} else {
if (_arg1.number_move == 3){
_arg1.x = (_arg1.x + _arg1.move);
} else {
if (_arg1.number_move == 4){
_arg1.y = (_arg1.y - _arg1.move);
};
};
};
};
};
}
public function playSound(_arg1, _arg2){
var _local3:*;
_local3 = _arg1.play();
_local3.soundTransform = new SoundTransform(_arg2);
}
public function poison_cloud(_arg1){
var _local2:*;
var _local3:*;
_local2 = (world.enemy_layer.numChildren - 1);
while (_local2 >= 0) {
_local3 = world.enemy_layer.getChildAt(_local2);
if (((((checkHitTest(_arg1, _local3)) && ((_local3.hp > 0)))) && ((_local3.status == null)))){
_local3.status = monster_poison;
_local3.poison_duration = (mainTime + 50000);
_local3.poisonTime = (mainTime + 1000);
};
_local2--;
};
if (_arg1.duration <= mainTime){
_arg1.process = null;
destroy(_arg1);
};
}
public function patrol(_arg1){
var p_direct:*;
var m_direct:*;
var i:*;
var jumpNum:*;
var b_check:Array;
var scaleMon:*;
var bnum:*;
var mon = _arg1;
try {
mon.monMot.setDirect(0);
p_direct = new Array(int((player.x / 40)), int((player.y / 40)));
m_direct = new Array(int((mon.x / 40)), int((mon.y / 40)));
jumpNum = Math.floor((mon.jump / 40));
b_check = new Array();
scaleMon = mon.scaleX;
bnum = 1;
i = 0;
while (i <= (jumpNum + 1)) {
b_check[i] = MapHelper.dat.getPixel((m_direct[0] - scaleMon), (m_direct[1] + bnum));
bnum = (bnum - 1);
i = (i + 1);
};
i = (jumpNum + 1);
while (i >= 0) {
i = (i - 1);
};
if ((((b_check[0] == 0)) || ((b_check[1] == 0xFF)))){
monster_turn(mon, false);
if (player.airBox != true){
mon.process = mon.duty;
};
} else {
monster_walk(mon);
};
} catch(error) {
trace("bug : patrol");
};
}
public function monster_boss_st2_move(_arg1){
var i:*;
var randomSkill:*;
var boss = _arg1;
try {
if (((((boss.y - (boss.height / 2)) <= 0)) || (((boss.y + (boss.height / 2)) >= map_h)))){
boss.move_y = (Math.random() * map_h);
boss.num_y = Math.round(((boss.move_y - boss.y) / 50));
boss.abs_y = Math.abs(boss.num_y);
};
if (((((boss.x - (boss.width / 2)) <= 0)) || (((boss.x + (boss.width / 2)) >= map_w)))){
boss.move_x = (Math.random() * map_w);
boss.num_x = Math.round(((boss.move_x - boss.x) / 50));
boss.abs_x = Math.abs(boss.num_x);
};
boss.rotation = (boss.rotation + 5);
boss.x = (boss.x + boss.num_x);
boss.y = (boss.y + boss.num_y);
if (boss.useSkill == null){
randomSkill = Math.round((Math.random() * 100));
for (i in boss.setPerUse) {
if (randomSkill <= boss.setPerUse[i]){
boss.useSkill = boss[("skill_" + i)];
break;
};
};
};
if ((((boss.useSkill[2] <= mainTime)) && ((boss.timeDelayAttack <= mainTime)))){
boss.timeDelayAttack = (mainTime + 3000);
boss.useSkill[2] = (mainTime + boss.useSkill[1]);
check_typeSkill(boss, boss.useSkill[4], boss.useSkill[0], boss.useSkill[3]);
boss.useSkill = null;
};
} catch(error) {
trace("bug : monster_boss_st2_move");
};
}
public function tentacle_move(_arg1){
var angle:*;
var arm = _arg1;
try {
arm.distance = (arm.distance + arm.speed);
if (((checkHitTest(arm, player)) && ((arm.mode == "out")))){
boss.process = null;
apButton = false;
player.process = null;
clear_object("playerbullet_layer");
API.removeMotion(arm);
angle = API.findAngle(boss, arm);
boss.angle = angle;
boss.mot = new AngleMove(boss, boss.angle, (boss.speed + (boss.speed * 5)), false);
API.setMotion(boss, boss.mot);
arm.mode = "in";
arm.distance = 0;
boss.gotoAndPlay("eat");
API.removeMotion(player);
check_hp_hero((boss.damage + Math.round((boss.damage * (boss.useSkill[3] / 100)))));
} else {
if ((((arm.distance >= ((boss.height / 2) - 5))) && ((arm.mode == "out")))){
boss.process = null;
API.removeMotion(arm);
angle = API.findAngle(boss, arm);
boss.angle = angle;
boss.mot = new AngleMove(boss, boss.angle, (boss.speed + (boss.speed * 5)), false);
API.setMotion(boss, boss.mot);
arm.mode = "pull";
arm.distance = 0;
} else {
if ((((((arm.mode == "in")) && (((checkHitTest(boss.mouth, player)) || ((arm.distance >= (boss.height / 2))))))) && ((player.hp > 0)))){
arm.process = null;
destroy(arm);
API.removeMotion(boss);
player.visible = false;
} else {
if ((((arm.mode == "pull")) && ((arm.distance >= (boss.height / 2))))){
arm.process = null;
destroy(arm);
API.removeMotion(boss);
boss.process = boss.duty;
noHitBoss = false;
if ((Math.random() * 100) <= 40){
boss.useSkill = boss["skill_1"];
check_typeSkill(boss, boss.useSkill[4], boss.useSkill[0], boss.useSkill[3]);
boss.useSkill = null;
} else {
boss.useSkill = null;
};
};
};
};
};
} catch(error) {
trace("มีความผิดปกติการใช้สกิล tentacle_move");
};
}
public function create_bullet_hero(_arg1:String, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
var _local5:*;
if (_arg3 == 0){
_arg3 = (player.x + ((player.width / 2) * player.scaleX));
};
if (_arg4 == 0){
_arg4 = (player.y - (player.height / 2));
};
_local5 = API.createMovieFromBase(world, css[_arg1]);
_local5.x = _arg3;
_local5.y = _arg4;
_local5.angle = _arg2;
_local5.distance = 0;
_local5.hitList = new Array();
motAngle(_local5, false, player.scaleX);
return (_local5);
}
public function snap_tentacle(_arg1){
var blockColor_p:*;
var blockColor_p2:*;
var hero = _arg1;
try {
player.x = (player.x - (20 * boss.scaleX));
blockColor_p = MapHelper.dat.getPixel((int((player.x / 40)) - boss.scaleX), int((player.y / 40)));
blockColor_p2 = MapHelper.dat.getPixel(int((player.x / 40)), int((player.y / 40)));
if ((((blockColor_p == 0xFF)) || ((blockColor_p2 == 0xFF)))){
player.process = null;
API.setMotion(player, playermot);
apButton = true;
player.process = player.duty;
};
} catch(error) {
trace("bug : snap_tentacle");
};
}
public function set_status(_arg1=true, _arg2=true, _arg3=true){
trace(("gamelevel :" + gamelevel), player.hp, player.mp, at_all);
if (_arg1){
hpTotal = (player.hp + atbHp);
hp = hpTotal;
};
if (_arg2){
mpTotal = (player.mp + atbMp);
mp = mpTotal;
};
if (_arg3){
atTotal = (at_all + atbAt);
};
}
public function check_enemy_hp(_arg1, _arg2:Number){
var num:*;
var randomNum:*;
var i:*;
var eff:*;
var damageN:*;
var mon = _arg1;
var damage = _arg2;
try {
damageN = damage;
mon.kb = 20;
mon.process = knockBack;
if (mon.monMot != null){
mon.monMot.setDirect(0);
};
if ((((mon.type == "enemy_em1")) && ((mon.duty == enemyBullet_move5)))){
mon.gotoAndPlay("hurt");
damage = rate_damage(damage);
create_damage(mon, damage, (damage / damageN));
mon.hp = (mon.hp - damage);
if (mon.hp < 1){
mon.process = null;
destroy(mon);
};
} else {
if (mon.hp > 0){
tintColor(mon, mon.color, 0.6);
mon.tint = tintCount;
mon.tintCount = 18;
mon.gotoAndPlay("hurt");
damage = rate_damage(damage);
create_damage(mon, damage, (damage / damageN));
mon.hp = (mon.hp - damage);
if ((((mon.duty == patrol)) && ((mon.process == patrol)))){
mon.duty = hunter;
mon.process = mon.duty;
};
if (mon.hp < 1){
game.parent.keep_scorefinal = (game.parent.keep_scorefinal + 100);
if (mon.type == "m_er3_bomb"){
mon.monMot.setDirect(0);
tintColor(mon, mon.color, 0);
mon.tint = null;
mon.process = null;
mon.attack = null;
mon.time = null;
destroy(mon);
} else {
tintColor(mon, mon.color, 0);
mon.tint = null;
mon.process = null;
mon.attack = null;
mon.time = null;
if (mon.gate.mon != null){
mon.gate.mon = null;
gate_empty.push(mon.gate.name);
} else {
trace("ไม่มีการอ้างถึงประตู ในมอนสเตอร์นี้");
};
if (mon.type == "enemy_er3"){
if (mon.myBomb != null){
mon.myBomb.process = null;
destroy2(mon.myBomb, "die2");
mon.myBomb = null;
};
};
if (mon.status == monster_poison){
mon.status = null;
skill_poison_nova(mon.x, (mon.y - (mon.height / 2)), Math.round((mon.hpTotal * ((Math.round((Math.random() * 30)) + 20) / 100))));
destroy2(mon, "die2");
} else {
mon.status = null;
destroy(mon);
};
monCount--;
get_exp();
};
} else {
if (apRabid == true){
apRabid = false;
num = Math.round((damage * 0.5));
create_heal(player, num);
if ((hp + num) > hpTotal){
hp = hpTotal;
} else {
hp = (hp + num);
};
} else {
if ((((apAbsorb_blood == true)) && ((player.skill_2[3] <= mainTime)))){
if (chance_on_hit(13)){
player.skill_2[3] = (mainTime + player.skill_2[2]);
player.skill_2[4] = mainTime;
num = Math.round((damage * 0.1));
if (num <= 0){
num = 1;
};
create_heal(player, num);
if ((hp + num) > hpTotal){
hp = hpTotal;
} else {
hp = (hp + num);
};
create_enegy(mon, "gfx_particle_energy", "gfx_hp_attack");
};
} else {
if ((((absorb_mana == true)) && ((player.skill_2[3] <= mainTime)))){
if (chance_on_hit(25)){
player.skill_2[3] = (mainTime + player.skill_2[2]);
player.skill_2[4] = mainTime;
num = Math.round((damage * 0.4));
if (num <= 0){
num = 1;
};
create_heal(player, num);
if ((mp + num) > mpTotal){
mp = mpTotal;
} else {
mp = (mp + num);
};
create_enegy(mon, "gfx_particle_mana", "gfx_mana_attack");
};
} else {
if (apBerserk_2 == true){
if (((chance_on_hit(15)) && ((player.skill_2[3] <= mainTime)))){
createSound("berserk");
apBerserk_2 = false;
eff = API.createMovieFromBase(world, css["berserg2"]);
eff.duration = (mainTime + 30000);
eff.process = skill_berserk_2;
player.skill_2[3] = (mainTime + player.skill_2[2]);
player.skill_2[4] = mainTime;
player.gotoAndPlay("berserg");
eff.old_speed_player = player.speed;
player.speed = (player.speed + (eff.old_speed_player * 0.2));
eff.old_damage_player = atTotal;
atTotal = (atTotal + (eff.old_damage_player * 1.1));
hp_re_per = 0.04;
};
};
};
};
};
};
} else {
trace("--- มอน ตายแบบนอกระบบ ----");
mon.tint = null;
mon.process = null;
mon.attack = null;
mon.time = null;
if (mon.gate.mon != null){
mon.gate.mon = null;
gate_empty.push(mon.gate.name);
} else {
trace("ไม่มีการอ้างถึงประตู ในมอนสเตอร์นี้");
};
mon.status = null;
destroy(mon);
monCount--;
};
};
} catch(error) {
trace("bug : check_enemy_hp");
};
}
public function functionMap(_arg1:String, _arg2:MovieClip){
var _local3:*;
_local3 = _arg1.split(",");
if ((game[_local3[0]] is Function)){
var _local4 = game;
_local4[_local3[0]](_arg2, _local3);
};
}
public function flying_1(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = Math.round(((_arg1.x - player.x) / 100));
_local3 = Math.round(((_arg1.y - player.y) / 10));
monster_turn(_arg1, true);
_local4 = Math.abs(_local2);
_local5 = Math.abs(_local3);
if (_local4 == 0){
_local4 = 1;
};
if (_local5 == 0){
_local5 = 1;
};
_arg1.x = (_arg1.x - (((Math.random() * _arg1.speed) + 1) * (_local2 / _local4)));
_arg1.y = (_arg1.y - (((Math.random() * _arg1.speed) + 1) * (_local3 / _local5)));
if ((((_local3 == 0)) && (!((_arg1.skill_0 == null))))){
_local6 = Math.abs(((_arg1.x - ((_arg1.width / 2) * _arg1.scaleX)) - (player.x + ((player.width / 2) * _arg1.scaleX))));
if ((((_arg1.skill_0[2] <= mainTime)) && ((((_local6 <= _arg1.skill_0[0])) || (checkHitTest(_arg1, player)))))){
_arg1.skill_0[2] = (mainTime + _arg1.skill_0[1]);
check_typeSkill(_arg1, _arg1.skill_0[4], _arg1.skill_0[0], _arg1.skill_0[3]);
};
};
}
public function cell_explodion_system(_arg1){
var _local2:*;
var _local3:*;
_local2 = API.getMotion(player);
if ((((_arg1.durationAttack <= mainTime)) && ((_local2.ground == true)))){
boss.gotoAndPlay("cell_explodion");
_arg1.durationAttack = (mainTime + 1500);
_local3 = API.createMovieFromBase(world, css["gfx_cell_explode"]);
_local3.x = player.x;
_local3.y = player.y;
_local3.airBox_close = false;
_local3.damage = _arg1.damage;
_local3.durationAttack = (mainTime + 1000);
_local3.process = cell_explodion_work;
};
if (_arg1.timeWork <= mainTime){
boss.skill_0[2] = (mainTime + boss.skill_0[1]);
boss.gotoAndPlay("stand");
boss.useSkill = null;
_arg1.process = null;
destroy(_arg1);
};
}
public function flying_2(_arg1){
if (_arg1.y != _arg1.ceiling){
_arg1.y = (_arg1.y - (_arg1.speed * ((_arg1.y - _arg1.ceiling) / Math.abs((_arg1.y - _arg1.ceiling)))));
};
if (MapHelper.dat.getPixel((int((_arg1.x / 40)) - _arg1.scaleX), int((player.y / 40))) == 0){
_arg1.x = (_arg1.x - (_arg1.speed * _arg1.scaleX));
} else {
_arg1.scaleX = (_arg1.scaleX * -1);
};
if (_arg1.myBomb != null){
_arg1.myBomb.x = _arg1.x;
_arg1.myBomb.y = (_arg1.y + _arg1.myBomb.height);
_arg1.myBomb.scaleX = _arg1.scaleX;
} else {
if ((((((_arg1.myBomb == null)) && ((_arg1.currentLabel == "stand")))) && ((_arg1.process == flying_2)))){
_arg1.myBomb = createBomb(_arg1);
_arg1.skill_0[2] = (mainTime + _arg1.skill_0[1]);
};
};
}
public function skill_cell_explodion(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
_local4 = create_gameSystem("gs_cell_explodion", cell_explodion_system);
_local4.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local4.durationAttack = 0;
_local4.timeWork = (mainTime + 30000);
}
public function shake_check(_arg1){
var mot:*;
var eff:*;
var eff2:*;
var gs = _arg1;
if ((((gs.durationAttack == null)) || ((gs.durationAttack == 0)))){
gs.durationAttack = (mainTime + 1000);
};
if (gs.durationAttack <= mainTime){
mot = API.getMotion(player);
if ((((mot.ground == true)) && ((player.status == null)))){
eff = create_bullet_enemy(player, "gfx_leap", 0, player.x, player.y);
player.duration_stun = (mainTime + (((Math.random() * 3) + 1) * 1000));
player.status = hero_stun;
eff2 = API.createMovieFromBase(world, css["gfx_stun"]);
eff2.name = "gfx_stun";
eff2.process = function (_arg1){
if (player != null){
_arg1.x = player.x;
_arg1.y = (player.y - player.height);
} else {
_arg1.process = null;
destroy(_arg1);
};
};
};
gs.process = null;
destroy(gs);
};
}
public function timeBossAttack(_arg1){
game.parent.m_time.y = 0;
getTime2 = getTimer();
if (getTime2 >= getTime1){
second--;
if (second == -1){
minute--;
if ((((minute < 0)) && ((second < 0)))){
minute = 0;
second = 0;
game.parent.m_time.second.text = "00";
game.parent.m_time.minute.text = "00";
game.parent.m_time.y = (game.parent.m_time.y - game.parent.m_time.height);
create_boss(("m_boss_st" + gamelevel));
_arg1.process = null;
destroy(_arg1);
} else {
second = 59;
getTime1 = (getTimer() + 1000);
};
} else {
getTime1 = (getTimer() + 1000);
};
};
if (second < 10){
game.parent.m_time.second.text = ("0" + second);
} else {
game.parent.m_time.second.text = second;
};
if (minute < 10){
game.parent.m_time.minute.text = ("0" + minute);
} else {
game.parent.m_time.minute.text = minute;
};
}
public function tintCount(_arg1){
var _local2:*;
_arg1.tintCount--;
if (_arg1.color != null){
_local2 = _arg1.color;
} else {
_local2 = 0xFF0000;
};
if (_arg1.tintCount <= 0){
tintColor(_arg1, _local2, 0);
_arg1.tint = null;
} else {
tintColor(_arg1, _local2, (int((Math.random() * 2)) * 0.6));
};
}
public function skill_slat_feather(){
var _local1:*;
createSound("feather");
player.gotoAndPlay("fire");
_local1 = create_bullet_hero("bullet_2b");
_local1.damage = (atTotal + Math.round((atTotal * 1.2)));
_local1.distanceTotal = 640;
_local1.process = powerSkill_move1;
}
public function mouseDown(_arg1:MouseEvent){
releaseFocus();
if (((apButton) && ((gamepause == false)))){
power_main();
};
}
public function check_boss_hp(_arg1, _arg2:Number){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local7 = _arg2;
if (_arg1.hp > 0){
tintColor(_arg1, 0xFF0000, 0.6);
_arg1.tint = tintCount;
_arg1.tintCount = 18;
_arg1.gotoAndPlay("hurt");
_arg2 = rate_damage(_arg2);
create_damage(_arg1, _arg2, (_arg2 / _local7));
_arg1.hp = (_arg1.hp - _arg2);
if (_arg1.hp < 1){
tintColor(_arg1, 0xFF0000, 0);
_arg1.tint = null;
_arg1.process = null;
_arg1.attack = null;
_arg1.time = null;
_arg1.status = null;
boss_movie((("st" + gamelevel) + "_2"));
} else {
if (apRabid == true){
apRabid = false;
_local4 = Math.round((_arg2 * 0.5));
create_heal(player, _local4);
if ((hp + _local4) > hpTotal){
hp = hpTotal;
} else {
hp = (hp + _local4);
};
} else {
if ((((apAbsorb_blood == true)) && ((player.skill_2[3] <= mainTime)))){
if (chance_on_hit(13)){
player.skill_2[3] = (mainTime + player.skill_2[2]);
player.skill_2[4] = mainTime;
_local4 = Math.round((_arg2 * 0.1));
if (_local4 <= 0){
_local4 = 1;
};
create_heal(player, _local4);
if ((hp + _local4) > hpTotal){
hp = hpTotal;
} else {
hp = (hp + _local4);
};
create_enegy(_local6, "gfx_particle_energy", "gfx_hp_attack");
};
} else {
if ((((absorb_mana == true)) && ((player.skill_2[3] <= mainTime)))){
if (chance_on_hit(25)){
player.skill_2[3] = (mainTime + player.skill_2[2]);
player.skill_2[4] = mainTime;
_local4 = Math.round((_arg2 * 0.4));
if (_local4 <= 0){
_local4 = 1;
};
create_heal(player, _local4);
if ((mp + _local4) > mpTotal){
mp = mpTotal;
} else {
mp = (mp + _local4);
};
create_enegy(_local6, "gfx_particle_mana", "gfx_mana_attack");
};
} else {
if (apBerserk_2 == true){
if (((chance_on_hit(15)) && ((player.skill_2[3] <= mainTime)))){
createSound("berserk");
apBerserk_2 = false;
_local8 = API.createMovieFromBase(world, css["berserg2"]);
_local8.duration = (mainTime + 30000);
_local8.process = skill_berserk_2;
player.skill_2[3] = (mainTime + player.skill_2[2]);
player.skill_2[4] = mainTime;
_local8.old_speed_player = player.speed;
player.speed = (player.speed + (_local8.old_speed_player * 0.2));
_local8.old_damage_player = atTotal;
atTotal = (atTotal + (_local8.old_damage_player * 0.2));
hp_re_per = 0.04;
};
};
};
};
};
};
};
}
public function create_skillIcon(_arg1:Number, _arg2){
var xx:*;
var yy:*;
var ic:*;
var i:*;
var gs:*;
var num = _arg1;
var nameHero = _arg2;
try {
xx = 468;
yy = 450;
for (i in iconSkillList) {
ic = game.parent[iconSkillList[i]];
trace((">>" + ic.name));
ic.gotoAndStop(1);
ic.x = (sw + ic.width);
ic.y = (sh + ic.height);
};
trace("2");
i = 1;
while (i <= num) {
ic = game.parent[((nameHero + "_ic") + i)];
ic.x = xx;
ic.y = yy;
xx = (xx + (ic.width + 10));
gs = API.createMovieFromBase(world, css["gsystem"]);
gs.name = ("icSkillSystem_" + i);
gs.skill = ("skill_" + i);
gs.ic = ic;
ic.gotoAndStop("fs");
gs.fs = ic.currentFrame;
ic.gotoAndStop("fe");
gs.fe = ic.currentFrame;
gs.nameHero = nameHero;
gs.x = -100;
gs.y = -100;
gs.process = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
if (_arg1.nameHero == player.name){
if (player[_arg1.skill][4] != null){
_local2 = player[_arg1.skill][4];
_local3 = player[_arg1.skill][2];
_local4 = (((mainTime - _local2) / _local3) * 100);
_arg1.ic.gotoAndStop((int(_local4) + 1));
} else {
_arg1.ic.gotoAndStop(101);
};
} else {
_arg1.ic.gotoAndStop("fe");
_arg1.process = null;
destroy(_arg1);
};
};
i = (i + 1);
};
trace("3");
} catch(error) {
trace("Bug : create_skillIcon");
};
}
public function setTimeDeray(_arg1:Object, _arg2:String){
_arg1.timeCount = 0;
_arg1.timeStart = (mainTime + 500);
_arg1.action = _arg2;
_arg1.timeDeray = Math.round((Math.random() * _arg1.Deray));
_arg1.time = time_monster_deray;
}
public function slow_poison(_arg1){
if (_arg1.duration_slow <= mainTime){
if (world.gfx_layer.getChildByName("eff_slow") != null){
destroy(world.gfx_layer.getChildByName("eff_slow"));
};
_arg1.speed = _arg1.keepSpeed;
_arg1.status = null;
};
}
public function monster_poison(_arg1){
var _local2:*;
_arg1.color = 0x99FF00;
if (_arg1.poisonTime <= mainTime){
_arg1.poisonTime = (mainTime + 1000);
_local2 = (_arg1.hp * ((Math.round((Math.random() * 2)) + 1) / 100));
if (_local2 <= 0){
_local2 = 1;
};
check_enemy_hp(_arg1, _local2);
};
if (_arg1.poison_duration <= mainTime){
_arg1.color = 0xFF0000;
_arg1.status = null;
};
}
public function keyProcess(_arg1:MovieClip){
var obj = _arg1;
try {
if (((apButton) && ((gamepause == false)))){
floorColor = MapHelper.dat.getPixel(int((player.x / 40)), int(((player.y / 40) + 1)));
if (((key[39]) || (key[68]))){
if (player.currentLabel == "stand"){
player.gotoAndPlay("walk");
};
player.scaleX = 1;
playermot.setDirect((((player.speed * 10) * 1) / 100));
} else {
if (((key[37]) || (key[65]))){
if (player.currentLabel == "stand"){
player.gotoAndPlay("walk");
};
player.scaleX = -1;
playermot.setDirect(-((((player.speed * 10) * 1) / 100)));
} else {
if (player.currentLabel == "walk"){
player.gotoAndPlay("stand");
};
playermot.setDirect(0);
};
};
} else {
if (playermot != null){
playermot.setDirect(0);
};
};
} catch(error) {
trace("bug : keyProcess");
};
}
public function monster_walk(_arg1){
if (_arg1.currentLabel == "stand"){
_arg1.gotoAndPlay("walk");
};
_arg1.monMot.setDirect(-((((_arg1.speed * 10) / 100) * _arg1.scaleX)));
}
public function monster_blackhole(_arg1){
var _local2:*;
_local2 = world.obj_layer.getChildByName("blackhole");
if (_arg1.x > _local2.x){
_arg1.x = (_arg1.x - 2);
};
if (_arg1.x < _local2.x){
_arg1.x = (_arg1.x + 2);
};
if ((_arg1.y - (_arg1.height / 2)) > _local2.y){
_arg1.y = (_arg1.y - 2);
};
if ((_arg1.y - (_arg1.height / 2)) < _local2.y){
_arg1.y = (_arg1.y + 2);
};
}
public function feather_barier_move(_arg1){
var r:*;
var angle:*;
var i:*;
var nameObj:*;
var b = _arg1;
try {
r = 100;
angle = ((((Math.PI * 2) / featherTotal) * b.i) + (b.freamCount / 20));
b.freamCount++;
b.x = (player.x + (r * Math.cos(angle)));
b.y = ((player.y - (player.height / 2)) + (r * Math.sin(angle)));
b.rotation = (angle * (180 / Math.PI));
if (b.visible == true){
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((checkHitTest(b, nameObj)) && ((nameObj.hp > 0)))){
check_enemy_hp(nameObj, Math.round((atTotal * 0.3)));
b.gotoAndPlay("hit");
var _local3 = featherNum;
var _local4:int;
var _local5 = (_local3[_local4] - 1);
_local3[_local4] = _local5;
};
i = (i - 1);
};
if (boss != null){
if (((((checkHitTest(b, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
check_boss_hp(boss, (atTotal + Math.round((atTotal * 0.1))));
b.visible = false;
_local3 = featherNum;
_local4 = 0;
_local5 = (_local3[_local4] - 1);
_local3[_local4] = _local5;
};
};
};
} catch(error) {
trace("bug : feather_barier_move");
};
}
public function skill_heal(){
var _local1:*;
var _local2:*;
player.gotoAndPlay("heal");
createSound("heal");
_local1 = API.createMovieFromBase(world, css["gfx_heal"]);
_local1.x = player.x;
_local1.y = (player.y - (player.height / 2));
_local2 = Math.round((hpTotal * ((Math.round((Math.random() * 10)) + 20) / 100)));
create_heal(player, _local2);
hp = (hp + _local2);
if (hp > hpTotal){
hp = hpTotal;
};
}
public function straightFinding(_arg1, _arg2:Array, _arg3:Array){
var i:*;
var jumpNum:*;
var b_check:Array;
var scaleMon:*;
var bnum:*;
var ck_num:*;
var mon = _arg1;
var m_direct = _arg2;
var p_direct = _arg3;
try {
jumpNum = Math.floor((mon.jump / 40));
b_check = new Array();
scaleMon = mon.scaleX;
bnum = 1;
monster_turn(mon, true);
i = 0;
while (i <= (jumpNum + 1)) {
b_check[i] = MapHelper.dat.getPixel((m_direct[0] - scaleMon), (m_direct[1] + bnum));
bnum = (bnum - 1);
i = (i + 1);
};
if (((!((b_check[0] == 0))) && ((b_check[1] == 0)))){
monster_walk(mon);
return (true);
};
if (((((!((b_check[0] == 0))) && (!((b_check[1] == 0))))) && ((b_check[(b_check.length - 1)] == 0)))){
ck_num = (b_check.length - 2);
i = ck_num;
while (i >= 1) {
if (b_check[i] == 0xFF){
mon.jumpNow = i;
monster_jump_front(mon);
break;
};
i = (i - 1);
};
return (true);
};
if ((((((b_check[0] == 0)) && ((b_check[1] == 0)))) && ((m_direct[1] < p_direct[1])))){
monster_walk(mon);
setTimeDeray(mon, "wait");
return (true);
} else {
return (false);
};
} catch(error) {
trace("bug : straightFinding");
};
}
public function skill_big_mucus(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
_arg3 = (_arg3 / 100);
_arg1.gotoAndPlay("attack");
_local4 = create_bullet_enemy(_arg1, "bullet_big_mucus");
_local4.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local4.process = enemyBullet_move2;
_local4.durationAttack = (mainTime + 500);
_local4.distanceper = _arg2;
}
public function bomb_create_number_countDown(_arg1){
if (_arg1.for_mon.countDown != null){
if (_arg1.for_mon.countDown >= 0){
_arg1.tx_num.text = _arg1.for_mon.countDown;
_arg1.x = _arg1.for_mon.x;
_arg1.y = ((_arg1.for_mon.y - _arg1.for_mon.height) - 10);
} else {
_arg1.process = null;
destroy(_arg1);
};
} else {
_arg1.process = null;
destroy(_arg1);
};
}
public function puff_out_system(_arg1){
var gs = _arg1;
try {
gs.countTimeCreateBullet--;
if (boss.direction != null){
if (gs.durationAttack >= mainTime){
if (gs.countTimeCreateBullet <= 0){
check_typeSkill(boss, boss.useSkill[4], boss.useSkill[0], boss.useSkill[3]);
gs.countTimeCreateBullet = 5;
};
} else {
boss.gotoAndPlay("stand");
gs.process = null;
boss.useSkill[2] = (mainTime + boss.useSkill[1]);
boss.useSkill = null;
destroy(gs);
};
} else {
gs.process = null;
destroy(gs);
};
} catch(error) {
trace("bug : puff_out_system");
};
}
public function Startgame(){
var select:*;
try {
createMonster_start();
select = rev_select;
select = select.slice(6, 8);
if (select == "1a"){
select = "1";
};
create_hero(("player_" + select));
create_gameSystem("maintime", main_time);
create_gameSystem("timeBossAttack", timeBossAttack);
apButton = true;
cam = {x:0, y:0, focusobject:{x:(gamewidth / 2), y:(gameheight / 2)}, round:{x1:0, y1:0, x2:map_w, y2:map_h}};
cam.focusobject = player;
} catch(error) {
trace("bug : Startgame");
};
}
public function createMonster(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
monCount++;
nameNumber++;
if (_arg1.typemon.length > 1){
_local5 = (Math.random() * 100);
for (_local6 in _arg1.typemon) {
if (_local5 <= _arg1.typemon[_local6][1]){
_local2 = _arg1.typemon[_local6][0];
};
};
} else {
_local2 = _arg1.typemon[0][0];
};
if (_local2 == "enemy_em3"){
};
_local3 = API.createMovieFromBase(world, css[_local2]);
_local3.name = ("m" + nameNumber);
_local3.hpTotal = _local3.hp;
_local3.type = _local2;
_local3.totalHp = _local3.hp;
_local3.timeDelayAttack = getTimer();
_local3.x = _arg1.x;
_local3.y = _arg1.y;
_local3.gate = _arg1;
_local3.gate.mon = _local3;
_local3.airBox_close = false;
_local3.airBox = false;
_local3.showHpline = null;
_local3.color = 0xFF0000;
if (gamelevel == 1){
_local3.damage = int((_local3.damage * 0.5));
if (_local3.damage < 1){
_local3.damage = 1;
};
};
if (_local3.type == "enemy_er3"){
_local3.ceiling = _local3.y;
_local3.duty = flying_2;
_local3.process = _local3.duty;
_local3.myBomb = createBomb(_local3);
} else {
if (_local3.type == "enemy_em2"){
_local3.duty = flying_1;
_local3.process = _local3.duty;
} else {
if ((((_local3.type == "enemy_em3")) && ((((_local3.gate.name == "g4")) || ((_local3.gate.name == "g5")))))){
_local3.monMot = new MapMove(_local3, MapHelper.dat, 10);
API.setMotion(_local3, _local3.monMot);
_local3.duty = hunter;
_local3.process = _local3.duty;
} else {
_local3.monMot = new MapMove(_local3, MapHelper.dat, 10);
API.setMotion(_local3, _local3.monMot);
if ((Math.random() * 10) <= 5){
_local3.duty = patrol;
} else {
_local3.duty = hunter;
};
_local3.duty = hunter;
_local3.process = _local3.duty;
};
};
};
add_skill_to_monster(_local3);
_local4 = API.createMovieFromBase(world, css["m_eff_create"]);
_local4.x = _arg1.x;
_local4.y = (_arg1.y - (_local3.height / 2));
}
public function skill_fire_strom(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 15;
if (player.currentFrame != "fire"){
player.gotoAndPlay("fire");
};
_local2 = 1;
while (_local2 <= 6) {
createSound("feather");
_local3 = create_bullet_hero("bullet_4f_2", _local1);
_local3.damage = Math.round((atTotal * 0.3));
_local3.distanceTotal = 300;
_local3.process = powerSkill_move7;
_local1 = (_local1 - 5);
_local2++;
};
}
public function create_heal(_arg1, _arg2:Number){
var txt:*;
var obj = _arg1;
var heal = _arg2;
try {
txt = API.createMovieFromBase(world, css["txt_heal"]);
if ((((((((obj.name == "m_boss_st1")) || ((obj.name == "m_boss_st2")))) || ((obj.name == "m_boss_st3")))) || ((obj.name == "m_boss_st4")))){
txt.x = obj.x;
txt.y = obj.y;
} else {
txt.x = obj.x;
txt.y = ((obj.y - obj.height) - 10);
};
txt.tx_num.text = heal;
txt.scaleX = 1;
txt.scaleY = 1;
txt.obj = obj;
txt.count = 0;
txt.process = textNumber_move;
} catch(error) {
trace("bug : create_heal");
};
}
public function skill_growl(){
var redius_growl:*;
var i:*;
var nameObj:*;
var eff:*;
createSound("grow");
player.gotoAndPlay("growl");
redius_growl = API.createMovieFromBase(world, css["redius_growl"]);
redius_growl.x = player.x;
redius_growl.y = player.y;
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((((((checkHitTest(redius_growl, nameObj)) && ((nameObj.status == null)))) && ((nameObj.hp > 0)))) && (!((nameObj.duty == enemyBullet_move5))))){
nameObj.time = null;
nameObj.attack = null;
nameObj.stun = (mainTime + 3000);
nameObj.gotoAndStop("hurt");
nameObj.process = monster_stun;
eff = API.createMovieFromBase(world, css["gfx_stun"]);
eff.name = ("gfx_stun_" + nameObj.name);
eff.nameObj = nameObj;
eff.process = function (_arg1){
trace(_arg1.nameObj);
if (_arg1.nameObj.parent != null){
_arg1.x = _arg1.nameObj.x;
_arg1.y = (_arg1.nameObj.y - _arg1.nameObj.height);
} else {
_arg1.process = null;
destroy(_arg1);
};
};
};
i = (i - 1);
};
}
public function powermain_move(_arg1){
var i:*;
var nameObj:*;
var b = _arg1;
try {
b.distance = (b.distance + b.speed);
if (b.name == "power4"){
i = (world.enemy_layer.numChildren - 1);
while (i >= 0) {
nameObj = world.enemy_layer.getChildAt(i);
if (((checkHitTest(b, nameObj)) && ((nameObj.hp > 0)))){
b.hitList.push(nameObj.name);
check_enemy_hp(nameObj, b.damage);
};
i = (i - 1);
};
if (boss != null){
if (((((checkHitTest(b, boss)) && ((noHitBoss == false)))) && ((boss.hp > 0)))){
b.hitList.push(boss.name);
check_boss_hp(boss, b.damage);
};
};
};
if (b.distance >= (player.distance * b.distanceper)){
b.process = null;
API.removeMotion(b);
destroy(b);
};
} catch(error) {
trace(("bug : powermain_move :" + error));
};
}
public function up_down_sound(_arg1, _arg2){
_arg1.soundTransform = new SoundTransform(_arg2);
}
public function createObject(_arg1:MovieClip, _arg2){
var _local3:*;
_local3 = API.createMovieFromBase(world, css[_arg2[1]], {x:_arg1.x, y:_arg1.y});
}
public function skill_fireball(_arg1:String, _arg2:Number, _arg3:Number){
var _local4:*;
if (player.currentFrame != "fire"){
player.gotoAndPlay("fire");
};
_local4 = create_bullet_hero(_arg1);
_local4.damage = (atTotal + Math.round((atTotal * _arg2)));
if (_arg1 == "bullet_3d"){
_local4.distanceTotal = _arg3;
_local4.name_boom = "fire_explode1";
_local4.sound_boom = "bomb1";
} else {
if (_arg1 == "bullet_4f_1"){
_local4.distanceTotal = _arg3;
_local4.name_boom = "fire_explode2";
_local4.sound_boom = "bomb2";
};
};
_local4.process = powerSkill_move2;
}
public function skill_poo(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (boss != null){
boss.gotoAndPlay("attack");
_local7 = 0;
for (_local6 in pooList) {
_local4 = pooList[_local6];
if (_local4.number_move == 1){
_local7 = 90;
} else {
if (_local4.number_move == 2){
_local7 = 0;
} else {
if (_local4.number_move == 3){
_local7 = -90;
} else {
if (_local4.number_move == 4){
_local7 = 180;
};
};
};
};
_local5 = create_bullet_enemy(_local4, ("bullet_poo" + Math.round(((Math.random() * 2) + 1))), _local7);
_local5.damage = Math.round((_arg1.damage + (_arg1.damage * (_arg3 / 100))));
_local5.duty = enemyBullet_move6;
_local5.process = _local5.duty;
};
};
}
public function destroy2(_arg1:MovieClip, _arg2:String, _arg3=null){
_arg1.graphics.clear();
_arg1.gotoAndPlay(_arg2);
}
public function hunter(_arg1){
var distance_check:*;
var mot_p:*;
var mot_m:*;
var p:*;
var m:*;
var mon = _arg1;
try {
if (((!((player == null))) && (!((player.visible == false))))){
distance_check = Math.abs(((mon.x - ((mon.width / 2) * mon.scaleX)) - (player.x + ((player.width / 2) * mon.scaleX))));
mot_p = API.getMotion(player);
mot_m = API.getMotion(mon);
p = new Array(int((player.x / 40)), int((player.y / 40)));
m = new Array(int((mon.x / 40)), int((mon.y / 40)));
if (MapHelper.dat.getPixel(m[0], m[1]) == 0xFF){
monster_jump(mon);
mot_m.ground = true;
mon.y = (mon.y - 50);
monster_jump_front(mon);
mot_m.ground = false;
};
if ((((((mot_p.ground == true)) && ((mot_m.ground == true)))) && ((mon.time == null)))){
mon.monMot.setDirect(0);
if ((((m[1] > p[1])) && (upFinding(mon, m, p)))){
} else {
if ((((m[1] < p[1])) && (downFinding(mon, m, p)))){
setTimeDeray(mon, "monster_down");
} else {
if ((((m[0] == p[0])) && ((m[1] == p[1])))){
if (player.airBox != true){
mon.process = patrol;
};
} else {
if (((straightFinding(mon, m, p)) && ((distance_check > 10)))){
} else {
if (gamelevel == 3){
if ((((((player.airBox == true)) && ((distance_check <= 150)))) && ((m[1] > p[1])))){
monster_turn(mon, true);
monster_jump_front(mon);
} else {
if ((((((player.airBox == true)) && (!(check_on_airBox(mon))))) && ((distance_check > 150)))){
mon.process = patrol;
} else {
if (check_on_airBox(mon)){
};
};
};
} else {
mon.process = patrol;
};
};
};
};
};
};
};
} catch(error) {
};
}
public function skill_swallow(_arg1:Object, _arg2:Number, _arg3:Number){
var poo:*;
var bullet:*;
var i:*;
var angle:*;
var mon = _arg1;
var distance = _arg2;
var damageUp = _arg3;
try {
if (boss != null){
mon.gotoAndPlay("swallow");
boss.process = null;
angle = 0;
for (i in pooList) {
poo = pooList[i];
poo.process = null;
bullet = API.createMovieFromBase(world, css[("bullet_poo" + Math.round(((Math.random() * 2) + 1)))]);
pooNum++;
bullet.x = poo.x;
bullet.y = poo.y;
bullet.distance = 0;
bullet.hitList = new Array();
bullet.damage = Math.round((mon.damage + (mon.damage * (damageUp / 100))));
bullet.xx = Math.round(((boss.x - bullet.x) / 100));
bullet.yy = Math.round(((boss.y - bullet.y) / 100));
bullet.duty = enemyBullet_move7;
bullet.process = bullet.duty;
};
};
} catch(error) {
trace("bug :skill_swallow");
};
}
public function monster_boss_st4_move(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local3 = false;
_local4 = false;
_arg1.m_count--;
if ((((_arg1.m_count <= 0)) && ((_arg1.freamCount <= 0)))){
_arg1.m_count = ((Math.random() * 500) + 200);
_local5 = (Math.random() * 10);
if (_local5 < 5){
if (_arg1.direction != "cw"){
_local3 = true;
_local4 = true;
_arg1.direction = "cw";
};
} else {
if (_arg1.direction != "ccw"){
_local3 = true;
_local4 = true;
_arg1.direction = "ccw";
};
};
};
if (_arg1.freamCount > 0){
_arg1.freamCount--;
if (_arg1.direction == "cw"){
_arg1.rotation = (_arg1.rotation + _arg1.speed);
} else {
_arg1.rotation = (_arg1.rotation - _arg1.speed);
};
} else {
if (_arg1.number_move == 1){
_arg1.rotation = -90;
} else {
if (_arg1.number_move == 2){
_arg1.rotation = 0;
} else {
if (_arg1.number_move == 3){
_arg1.rotation = 90;
} else {
if (_arg1.number_move == 4){
_arg1.rotation = -180;
};
};
};
};
};
if ((((((((((_arg1.y <= 50)) && ((_arg1.x <= 130)))) || ((((_arg1.x >= 0x0303)) && ((_arg1.y <= 50)))))) || ((((_arg1.y >= 800)) && ((_arg1.x >= 0x0303)))))) || ((((_arg1.x <= 130)) && ((_arg1.y >= 800)))))){
_local3 = true;
if (_arg1.direction == "cw"){
_arg1.number_move++;
if (_arg1.number_move > 4){
_arg1.number_move = 1;
};
} else {
_arg1.number_move--;
if (_arg1.number_move < 1){
_arg1.number_move = 4;
};
};
if (_arg1.freamCount <= 0){
_arg1.freamCount = 30;
};
};
if (_local3 == true){
_local3 = false;
if (_arg1.move > 0){
_arg1.move = -(_arg1.speed);
} else {
_arg1.move = _arg1.speed;
};
};
if (_local4 == true){
_local4 = false;
for (_local6 in pooList) {
_local7 = pooList[_local6];
if (_local7.move > 0){
_local7.move = -(_arg1.speed);
} else {
_local7.move = _arg1.speed;
};
};
};
if (_arg1.number_move == 1){
_arg1.x = (_arg1.x - _arg1.move);
} else {
if (_arg1.number_move == 2){
_arg1.y = (_arg1.y + _arg1.move);
} else {
if (_arg1.number_move == 3){
_arg1.x = (_arg1.x + _arg1.move);
} else {
if (_arg1.number_move == 4){
_arg1.y = (_arg1.y - _arg1.move);
};
};
};
};
if (_arg1.useSkill == null){
_local8 = Math.round((Math.random() * 100));
for (_local2 in _arg1.setPerUse) {
if (_local8 <= _arg1.setPerUse[_local2]){
_arg1.useSkill = _arg1[("skill_" + _local2)];
break;
};
};
};
if ((((_arg1.useSkill[2] <= mainTime)) && ((_arg1.timeDelayAttack <= mainTime)))){
_arg1.timeDelayAttack = (mainTime + 10000);
_arg1.useSkill[2] = (mainTime + _arg1.useSkill[1]);
check_typeSkill(_arg1, _arg1.useSkill[4], _arg1.useSkill[0], _arg1.useSkill[3]);
_arg1.useSkill = null;
};
}
public function create_featherBarier_control(_arg1){
var _local2:*;
var _local3:*;
if (player.name == "player_4d"){
if ((((featherNum[0] < featherTotal)) && ((featherNum[1] < mainTime)))){
_local2 = 0;
while (_local2 < featherTotal) {
_local3 = world.playerbullet_layer.getChildByName(("f" + _local2));
if (_local3.visible == false){
if (player.currentLabel != "barier"){
player.gotoAndPlay("barier");
};
var _local4 = featherNum;
var _local5:int;
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
_local3.visible = true;
featherNum[1] = (mainTime + 3000);
break;
};
_local2++;
};
} else {
if (featherNum[0] >= featherTotal){
featherNum[1] = (mainTime + 1500);
};
};
} else {
_arg1.process = null;
destroy(_arg1);
};
}
public function skill_shake(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
var _local5:*;
var _local6:*;
_arg1.gotoAndPlay("shake");
_local4 = create_gameSystem("gs_quake", quake_monitor);
_local4.duration = (mainTime + 1000);
_local5 = create_bullet_enemy(_arg1, "gfx_leap", 0, (_arg1.x - ((_arg1.width / 2) * _arg1.scaleX)), _arg1.y);
_local6 = create_gameSystem("gs_shakeCheck", shake_check);
_local6.durationAttack = (mainTime + 500);
}
public function textNumber_move(_arg1){
if (_arg1 != null){
_arg1.count++;
_arg1.x = _arg1.obj.x;
_arg1.y = (_arg1.y - 1);
if (_arg1.count >= 15){
_arg1.process = null;
destroy(_arg1);
};
};
}
public function skill_rejuvination(_arg1){
if (_arg1.duration <= mainTime){
destroy(world.gfx_layer.getChildByName("gfx_rejuvenation"));
hp_re_per = 0.01;
_arg1.process = null;
destroy(_arg1);
};
}
public function create_map(_arg1:String){
var _local2:*;
var _local3:Array;
var _local4:*;
var _local5:*;
var _local6:*;
numGate = 0;
MapHelper.CreateSectionMap(world.map_layer, _arg1, "?", "?", "?", 40);
_local4 = API.createMovieFromBase(world, css[("m_bg_mapping" + gamelevel)]);
_local5 = API.createMovieFromBase(world, css[("m_block_mapping" + gamelevel)]);
for (_local2 in monsterGate_list) {
numGate++;
_local6 = API.createMovieFromBase(world, css["monster_gate"]);
_local6.x = ((monsterGate_list[_local2][0] * 40) - (_local6.width / 2));
_local6.y = (monsterGate_list[_local2][1] * 40);
_local6.name = ("g" + numGate);
_local6.typemon = monsterGate_list[_local2][2];
gate_empty.push(_local6.name);
};
boss_movie((("st" + gamelevel) + "_1"));
}
public function create_point_poo(_arg1:Number, _arg2, _arg3:Number){
var _local4:*;
_local4 = API.createMovieFromBase(world, css["m_point_poo"]);
pooList.push(_local4);
_local4.name = ("p" + _arg1);
_local4.direction = boss.direction;
_local4.number_move = _arg2;
_local4.move = _arg3;
_local4.duty = point_poo_move;
_local4.process = _local4.duty;
return (_local4);
}
public function rate_damage(_arg1:Number){
var _local2:*;
_local2 = (Math.round((Math.random() * (_arg1 - Math.round((_arg1 * 0.2))))) + Math.round((_arg1 * 0.2)));
if (_local2 <= 0){
_local2 = 1;
};
return (_local2);
}
public function skill_puff_out(_arg1:Object, _arg2:Number, _arg3:Number){
var bullet:*;
var i:*;
var angle:*;
var r:*;
var p:*;
var mon = _arg1;
var distance = _arg2;
var damageUp = _arg3;
try {
if (boss != null){
angle = 0;
r = (Math.random() * 3);
i = 0;
while (i <= r) {
p = new Point(boss.mouth.x, boss.mouth.y);
p = boss.localToGlobal(p);
p = world.globalToLocal(p);
bullet = API.createMovieFromBase(world, css[("bullet_poo" + Math.round(((Math.random() * 2) + 1)))]);
bullet.x = p.x;
bullet.y = p.y;
bullet.scaleX = Math.round((((Math.random() * 95) + 20) / 100));
bullet.scaley = Math.round((((Math.random() * 95) + 20) / 100));
bullet.distance = 0;
bullet.hitList = new Array();
bullet.damage = Math.round((mon.damage + (mon.damage * (damageUp / 100))));
bullet.xx = (Math.round((((world.x + (world.width / 2)) - bullet.x) + (Math.random() * 100))) / 50);
bullet.yy = (Math.round((((world.y + (world.height / 2)) - bullet.y) + (Math.random() * 100))) / 50);
bullet.duty = enemyBullet_move8;
bullet.process = bullet.duty;
i = (i + 1);
};
};
} catch(error) {
trace("bug : skill_puff_out");
};
}
public function skill_tentacle(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:*;
var _local5:*;
noHitBoss = true;
_arg1.gotoAndPlay("attack");
_local4 = API.createMovieFromBase(world, css["m_boss_st1_tentacle"]);
_local4.x = _arg1.x;
_local4.y = _arg1.y;
_local4.distance = 0;
_local4.speedUp = 0;
_local5 = API.findAngle(_arg1, player);
_local4.angle = _local5;
_local4.mode = "out";
_local4.mot = new AngleMove(_local4, _local4.angle, _local4.speed, true);
API.setMotion(_local4, _local4.mot);
_local4.process = tentacle_move;
}
public function enegy_move_to_player(_arg1){
var _local2:*;
var _local3:*;
_arg1.distance--;
if (_arg1.distance <= 0){
_arg1.duration--;
_local2 = Math.round(((player.x - _arg1.x) / 5));
_local3 = Math.round(((player.y - _arg1.y) / 5));
_arg1.x = (_arg1.x + _local2);
_arg1.y = (_arg1.y + _local3);
if (_arg1.duration <= 0){
_arg1.process = null;
destroy(_arg1);
};
};
}
public function knockBack(_arg1){
_arg1.kb--;
if (_arg1.kb <= 0){
_arg1.kb = 0;
_arg1.process = _arg1.duty;
};
}
public function control_createMonster(_arg1){
var i:*;
var g:*;
var derayNum:*;
var get_gate:*;
var randomGate:*;
var obj = _arg1;
try {
derayNum = ((Math.round((Math.random() * 5)) + 1) * 1000);
if ((((monCount < monMax)) && ((obj.derayCreate <= mainTime)))){
if ((gate_empty.length - 1) >= 0){
get_gate = world.bg_layer.getChildByName(gate_empty.shift());
if (get_gate.mon == null){
createMonster(get_gate);
obj.derayCreate = (mainTime + derayNum);
};
} else {
trace("หาประตูลงให้ไม่ได้ ทำการสุ่มประตู");
randomGate = (Math.round(((Math.random() * numGate) - 1)) + 1);
g = world.bg_layer.getChildByName(("g" + randomGate));
createMonster(g);
obj.derayCreate = (mainTime + derayNum);
};
} else {
if (obj.derayCreate <= mainTime){
obj.derayCreate = (mainTime + derayNum);
};
};
} catch(error) {
trace("bug : control_createMonster");
};
}
public function boss_movie(_arg1:String){
up_down_sound(soundbmg, 0.1);
gamepause = true;
ap_okay = false;
game.parent.m_bossms.gotoAndStop(_arg1);
game.parent.m_bossms.x = 0;
game.parent.m_bossms.y = 0;
}
public function skill_razor(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 0;
if (player.currentFrame != "fire"){
player.gotoAndPlay("fire");
};
_local2 = 1;
while (_local2 <= 3) {
createSound("feather");
_local3 = create_bullet_hero("bullet_3c", _local1);
_local3.damage = (atTotal + Math.round((atTotal * 0.1)));
_local3.distanceTotal = 640;
_local3.process = powerSkill_move1;
_local1 = (_local1 - 5);
_local2++;
};
}
public function create_gameSystem(_arg1:String, _arg2){
var _local3:*;
_local3 = API.createMovieFromBase(world, css["gsystem"]);
_local3.name = _arg1;
_local3.process = _arg2;
_local3.x = -100;
_local3.y = -100;
return (_local3);
}
public function destroy(_arg1:MovieClip, _arg2=null){
_arg1.graphics.clear();
_arg1.gotoAndPlay("die");
}
public function createObjectRandom(_arg1:MovieClip, _arg2){
var _local3:*;
var _local4:*;
trace((_arg2[1] + (int(_arg2[3]) + int((Math.random() * _arg2[2])))));
_local3 = (_arg2[1] + (int(_arg2[3]) + int((Math.random() * _arg2[2]))));
_local4 = API.createMovieFromBase(world, css[_local3], {x:_arg1.x, y:_arg1.y});
}
}
}//package
Section 91
//gfx (gfx)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx extends MovieClip {
public function gfx(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 92
//gfx_bash (gfx_bash)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_bash extends MovieClip {
public function gfx_bash(){
addFrameScript(2, frame3, 7, frame8);
}
function frame3(){
gotoAndPlay(1);
}
function frame8(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 93
//gfx_berserg1 (gfx_berserg1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_berserg1 extends MovieClip {
public function gfx_berserg1(){
addFrameScript(23, frame24, 24, frame25);
}
function frame25(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame24(){
gotoAndPlay(1);
}
}
}//package
Section 94
//gfx_berserg2 (gfx_berserg2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_berserg2 extends MovieClip {
public function gfx_berserg2(){
addFrameScript(23, frame24, 24, frame25);
}
function frame25(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame24(){
gotoAndPlay(1);
}
}
}//package
Section 95
//gfx_blackhole (gfx_blackhole)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_blackhole extends MovieClip {
public var hitBox:m_redius_growl;
public function gfx_blackhole(){
addFrameScript(24, frame25, 25, frame26);
}
function frame26(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame25(){
gotoAndPlay(1);
}
}
}//package
Section 96
//gfx_cell_explode (gfx_cell_explode)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class gfx_cell_explode extends MovieClip {
public function gfx_cell_explode(){
addFrameScript(19, frame20, 29, frame30);
}
function frame20(){
gotoAndPlay("warn");
this.airBox_close = true;
}
function frame30(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 97
//gfx_en_wave_attack (gfx_en_wave_attack)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_en_wave_attack extends MovieClip {
public function gfx_en_wave_attack(){
addFrameScript(2, frame3, 7, frame8);
}
function frame3(){
gotoAndPlay(1);
}
function frame8(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 98
//gfx_explodion (gfx_explodion)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_explodion extends MovieClip {
public function gfx_explodion(){
addFrameScript(19, frame20, 24, frame25);
}
function frame20(){
gotoAndPlay(1);
}
function frame25(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 99
//gfx_fire_explode1 (gfx_fire_explode1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_fire_explode1 extends MovieClip {
public function gfx_fire_explode1(){
addFrameScript(11, frame12);
}
function frame12(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 100
//gfx_fire_explode2 (gfx_fire_explode2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_fire_explode2 extends MovieClip {
public var hitBox:m_redius_growl;
public function gfx_fire_explode2(){
addFrameScript(10, frame11);
}
function frame11(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 101
//gfx_heal (gfx_heal)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_heal extends MovieClip {
public function gfx_heal(){
addFrameScript(16, frame17, 21, frame22);
}
function frame17(){
stop();
}
function frame22(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 102
//gfx_hit1 (gfx_hit1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_hit1 extends MovieClip {
public function gfx_hit1(){
addFrameScript(9, frame10);
}
function frame10(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 103
//gfx_hit2 (gfx_hit2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_hit2 extends MovieClip {
public function gfx_hit2(){
addFrameScript(9, frame10);
}
function frame10(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 104
//gfx_hit3 (gfx_hit3)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_hit3 extends MovieClip {
public function gfx_hit3(){
addFrameScript(9, frame10);
}
function frame10(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 105
//gfx_hit4 (gfx_hit4)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_hit4 extends MovieClip {
public function gfx_hit4(){
addFrameScript(9, frame10);
}
function frame10(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 106
//gfx_hp_attack (gfx_hp_attack)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_hp_attack extends MovieClip {
public function gfx_hp_attack(){
addFrameScript(1, frame2, 6, frame7);
}
function frame7(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame2(){
}
}
}//package
Section 107
//gfx_leap (gfx_leap)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_leap extends MovieClip {
public function gfx_leap(){
addFrameScript(7, frame8);
}
function frame8(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 108
//gfx_levelUP (gfx_levelUP)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_levelUP extends MovieClip {
public function gfx_levelUP(){
addFrameScript(33, frame34);
}
function frame34(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 109
//gfx_mana_attack (gfx_mana_attack)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_mana_attack extends MovieClip {
public function gfx_mana_attack(){
addFrameScript(1, frame2, 6, frame7);
}
function frame7(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame2(){
}
}
}//package
Section 110
//gfx_not_ready (gfx_not_ready)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_not_ready extends MovieClip {
public function gfx_not_ready(){
addFrameScript(32, frame33);
}
function frame33(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 111
//gfx_particle_energy (gfx_particle_energy)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_particle_energy extends MovieClip {
public function gfx_particle_energy(){
addFrameScript(9, frame10, 18, frame19);
}
function frame10(){
gotoAndPlay(1);
}
function frame19(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 112
//gfx_particle_mana (gfx_particle_mana)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_particle_mana extends MovieClip {
public function gfx_particle_mana(){
addFrameScript(9, frame10, 18, frame19);
}
function frame10(){
gotoAndPlay(1);
}
function frame19(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 113
//gfx_poison (gfx_poison)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_poison extends MovieClip {
public function gfx_poison(){
addFrameScript(49, frame50, 50, frame51);
}
function frame51(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame50(){
stop();
}
}
}//package
Section 114
//gfx_poison_em2 (gfx_poison_em2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_poison_em2 extends MovieClip {
public function gfx_poison_em2(){
addFrameScript(2, frame3, 7, frame8);
}
function frame3(){
gotoAndPlay(1);
}
function frame8(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 115
//gfx_poison_explode (gfx_poison_explode)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_poison_explode extends MovieClip {
public function gfx_poison_explode(){
addFrameScript(19, frame20);
}
function frame20(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 116
//gfx_rabbid (gfx_rabbid)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_rabbid extends MovieClip {
public function gfx_rabbid(){
addFrameScript(13, frame14);
}
function frame14(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 117
//gfx_raser_wing (gfx_raser_wing)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_raser_wing extends MovieClip {
public function gfx_raser_wing(){
addFrameScript(3, frame4, 8, frame9);
}
function frame4(){
gotoAndPlay(1);
}
function frame9(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 118
//gfx_Rejuvenation (gfx_Rejuvenation)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_Rejuvenation extends MovieClip {
public function gfx_Rejuvenation(){
addFrameScript(33, frame34, 39, frame40);
}
function frame34(){
gotoAndPlay(1);
}
function frame40(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 119
//gfx_slow (gfx_slow)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_slow extends MovieClip {
public function gfx_slow(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
stop();
}
}
}//package
Section 120
//gfx_stun (gfx_stun)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_stun extends MovieClip {
public function gfx_stun(){
addFrameScript(29, frame30, 34, frame35);
}
function frame30(){
gotoAndPlay("1");
}
function frame35(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 121
//gfx_wave_attack1 (gfx_wave_attack1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_wave_attack1 extends MovieClip {
public function gfx_wave_attack1(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 122
//gfx_wave_attack2 (gfx_wave_attack2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_wave_attack2 extends MovieClip {
public function gfx_wave_attack2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 123
//gfx_wave_attack3 (gfx_wave_attack3)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_wave_attack3 extends MovieClip {
public function gfx_wave_attack3(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 124
//gfx_wave_attack4 (gfx_wave_attack4)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx_wave_attack4 extends MovieClip {
public function gfx_wave_attack4(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
stop();
}
}
}//package
Section 125
//gfx2 (gfx2)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class gfx2 extends MovieClip {
public function gfx2(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 126
//grow (grow)
package {
import flash.media.*;
public dynamic class grow extends Sound {
}
}//package
Section 127
//heal (heal)
package {
import flash.media.*;
public dynamic class heal extends Sound {
}
}//package
Section 128
//hit (hit)
package {
import flash.media.*;
public dynamic class hit extends Sound {
}
}//package
Section 129
//hittemp (hittemp)
package {
import flash.display.*;
public dynamic class hittemp extends MovieClip {
}
}//package
Section 130
//m_air_box (m_air_box)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
public dynamic class m_air_box extends MovieClip {
public var box_number:TextField;
public var m_hitBox:MovieClip;
public function m_air_box(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 131
//m_bg (m_bg)
package {
import flash.display.*;
public dynamic class m_bg extends MovieClip {
}
}//package
Section 132
//m_bg_mapping1 (m_bg_mapping1)
package {
import flash.display.*;
public dynamic class m_bg_mapping1 extends MovieClip {
}
}//package
Section 133
//m_bg_mapping2 (m_bg_mapping2)
package {
import flash.display.*;
public dynamic class m_bg_mapping2 extends MovieClip {
}
}//package
Section 134
//m_bg_mapping3 (m_bg_mapping3)
package {
import flash.display.*;
public dynamic class m_bg_mapping3 extends MovieClip {
}
}//package
Section 135
//m_bg_mapping4 (m_bg_mapping4)
package {
import flash.display.*;
public dynamic class m_bg_mapping4 extends MovieClip {
}
}//package
Section 136
//m_block_mapping1 (m_block_mapping1)
package {
import flash.display.*;
public dynamic class m_block_mapping1 extends MovieClip {
}
}//package
Section 137
//m_block_mapping2 (m_block_mapping2)
package {
import flash.display.*;
public dynamic class m_block_mapping2 extends MovieClip {
}
}//package
Section 138
//m_block_mapping3 (m_block_mapping3)
package {
import flash.display.*;
public dynamic class m_block_mapping3 extends MovieClip {
}
}//package
Section 139
//m_block_mapping4 (m_block_mapping4)
package {
import flash.display.*;
public dynamic class m_block_mapping4 extends MovieClip {
}
}//package
Section 140
//m_boss_st1 (m_boss_st1)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_boss_st1 extends MovieClip {
public var hitBox:MovieClip;
public var map_w;
public var p;
public var pixel;
public var mouth:MovieClip;
public function m_boss_st1(){
addFrameScript(14, frame15, 29, frame30, 44, frame45, 51, frame52, 79, frame80, 86, frame87, 96, frame97, 106, frame107, 107, frame108, 123, frame124);
}
function frame80(){
try {
p = getPoint();
pixel = MapHelper.dat.getPixel(int((p.x / 40)), int((p.y / 40)));
map_w = MovieClip(this.parent).gcode.map_w;
if ((((((pixel == 0xFF)) || (((this.x - ((this.width / 2) * this.scaleX)) <= 0)))) || (((this.x - ((this.width / 2) * this.scaleX)) >= map_w)))){
if (this.scaleX == 1){
this.scaleX = -1;
} else {
this.scaleX = 1;
};
p = getPoint();
};
MovieClip(this.parent).gcode.player.x = p.x;
MovieClip(this.parent).gcode.player.y = p.y;
MovieClip(this.parent).gcode.player.visible = true;
MovieClip(this.parent).gcode.player.process = MovieClip(this.parent).gcode.snap_tentacle;
this.process = this.duty;
this.useSkill = null;
MovieClip(this.parent).gcode.noHitBoss = false;
} catch(error) {
trace("bug : movieclip boss st1");
};
}
function frame87(){
gotoAndPlay("stand");
}
function frame97(){
gotoAndPlay("stand");
}
function frame15(){
gotoAndPlay("stand");
}
function frame107(){
gotoAndPlay("stand");
}
function frame108(){
MovieClip(this.parent).gcode.createSound("boss_die");
}
function frame30(){
gotoAndPlay("stand");
}
function frame124(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame45(){
gotoAndPlay("stand");
}
function frame52(){
gotoAndPlay("stand");
}
public function getPoint(){
var _local1:*;
_local1 = new Point(this.mouth.x, this.mouth.y);
_local1 = this.localToGlobal(_local1);
_local1 = MovieClip(this.parent).gcode.world.globalToLocal(_local1);
return (_local1);
}
}
}//package
Section 141
//m_boss_st1_tentacle (m_boss_st1_tentacle)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_boss_st1_tentacle extends MovieClip {
public function m_boss_st1_tentacle(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
stop();
}
}
}//package
Section 142
//m_boss_st2 (m_boss_st2)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_boss_st2 extends MovieClip {
public var hitBox:MovieClip;
public var mouth:MovieClip;
public function m_boss_st2(){
addFrameScript(14, frame15, 29, frame30, 44, frame45, 53, frame54, 68, frame69, 78, frame79, 79, frame80, 94, frame95);
}
function frame79(){
gotoAndPlay("stand");
}
function frame80(){
MovieClip(this.parent).gcode.createSound("boss_die");
}
function frame95(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame15(){
gotoAndPlay("stand");
}
function frame30(){
gotoAndPlay("walk");
}
function frame45(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
function frame69(){
gotoAndPlay("stand");
}
}
}//package
Section 143
//m_boss_st2_tentacle (m_boss_st2_tentacle)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_boss_st2_tentacle extends MovieClip {
public var attackBox:MovieClip;
public function m_boss_st2_tentacle(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
stop();
}
}
}//package
Section 144
//m_boss_st3 (m_boss_st3)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_boss_st3 extends MovieClip {
public var hitBox:MovieClip;
public var eatBox:MovieClip;
public function m_boss_st3(){
addFrameScript(14, frame15, 29, frame30, 44, frame45, 59, frame60, 85, frame86, 118, frame119, 138, frame139, 149, frame150, 150, frame151, 165, frame166);
}
function frame151(){
MovieClip(this.parent).gcode.createSound("boss_die");
}
function frame86(){
gotoAndPlay("cell_explodion");
}
function frame166(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame15(){
gotoAndPlay("stand");
}
function frame30(){
gotoAndPlay("walk");
}
function frame45(){
gotoAndPlay("stand");
}
function frame119(){
gotoAndPlay("eat");
}
function frame139(){
gotoAndPlay("stand");
}
function frame60(){
gotoAndPlay("stand");
}
function frame150(){
gotoAndPlay("stand");
}
}
}//package
Section 145
//m_boss_st4 (m_boss_st4)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_boss_st4 extends MovieClip {
public var hitBox:MovieClip;
public var mouth:MovieClip;
public function m_boss_st4(){
addFrameScript(14, frame15, 29, frame30, 44, frame45, 59, frame60, 81, frame82, 95, frame96, 105, frame106, 106, frame107, 158, frame159);
}
function frame159(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame82(){
gotoAndPlay("swallow");
}
function frame15(){
gotoAndPlay("stand");
}
function frame106(){
gotoAndPlay("stand");
}
function frame107(){
MovieClip(this.parent).gcode.createSound("boss_die");
}
function frame96(){
gotoAndPlay("puff_out");
}
function frame30(){
gotoAndPlay("stand");
}
function frame45(){
gotoAndPlay("stand");
}
function frame60(){
gotoAndPlay("stand");
}
}
}//package
Section 146
//m_boss_st4_body (m_boss_st4_body)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_boss_st4_body extends MovieClip {
public function m_boss_st4_body(){
addFrameScript(0, frame1, 58, frame59);
}
function frame1(){
stop();
}
function frame59(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 147
//m_eff_create (m_eff_create)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_eff_create extends MovieClip {
public function m_eff_create(){
addFrameScript(31, frame32);
}
function frame32(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 148
//m_em1 (m_em1)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_em1 extends MovieClip {
public function m_em1(){
addFrameScript(8, frame9, 21, frame22, 31, frame32, 41, frame42, 51, frame52, 52, frame53, 68, frame69);
}
function frame22(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame32(){
gotoAndPlay("stand");
}
function frame42(){
gotoAndPlay("stand");
}
function frame52(){
gotoAndPlay("stand");
}
function frame53(){
MovieClip(this.parent).gcode.createSound("melee_die");
}
function frame69(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 149
//m_em2 (m_em2)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_em2 extends MovieClip {
public function m_em2(){
addFrameScript(9, frame10, 24, frame25, 40, frame41, 51, frame52, 62, frame63, 63, frame64, 78, frame79);
}
function frame64(){
MovieClip(this.parent).gcode.createSound("melee_die");
}
function frame79(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame10(){
gotoAndPlay("stand");
}
function frame25(){
gotoAndPlay("walk");
}
function frame41(){
gotoAndPlay("stand");
}
function frame52(){
gotoAndPlay("stand");
}
function frame63(){
gotoAndPlay("stand");
}
}
}//package
Section 150
//m_em3 (m_em3)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_em3 extends MovieClip {
public function m_em3(){
addFrameScript(8, frame9, 21, frame22, 28, frame29, 38, frame39, 64, frame65, 78, frame79, 89, frame90, 96, frame97, 97, frame98, 112, frame113);
}
function frame65(){
gotoAndPlay("stand");
}
function frame79(){
MovieClip(this.parent).gcode.skill_leap(this);
}
function frame90(){
gotoAndPlay("stand");
}
function frame98(){
MovieClip(this.parent).gcode.createSound("melee_die");
}
function frame97(){
gotoAndPlay("stand");
}
function frame22(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame29(){
gotoAndPlay("stand");
}
function frame113(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame39(){
gotoAndPlay("stand");
}
}
}//package
Section 151
//m_er1 (m_er1)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_er1 extends MovieClip {
public function m_er1(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 53, frame54, 54, frame55, 69, frame70);
}
function frame70(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame34(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
function frame55(){
MovieClip(this.parent).gcode.createSound("range_die");
}
}
}//package
Section 152
//m_er2 (m_er2)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_er2 extends MovieClip {
public function m_er2(){
addFrameScript(8, frame9, 27, frame28, 37, frame38, 48, frame49, 58, frame59, 59, frame60, 75, frame76);
}
function frame76(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
function frame28(){
gotoAndPlay("walk");
}
function frame38(){
gotoAndPlay("stand");
}
function frame49(){
gotoAndPlay("stand");
}
function frame59(){
gotoAndPlay("stand");
}
function frame60(){
MovieClip(this.parent).gcode.createSound("range_die");
}
}
}//package
Section 153
//m_er3 (m_er3)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_er3 extends MovieClip {
public function m_er3(){
addFrameScript(10, frame11, 21, frame22, 32, frame33, 43, frame44, 53, frame54, 54, frame55, 69, frame70);
}
function frame70(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame22(){
gotoAndPlay("walk");
}
function frame11(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame33(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
function frame55(){
MovieClip(this.parent).gcode.createSound("range_die");
}
}
}//package
Section 154
//m_er3_bomb (m_er3_bomb)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_er3_bomb extends MovieClip {
public var part;
public function m_er3_bomb(){
addFrameScript(8, frame9, 27, frame28, 36, frame37, 48, frame49, 57, frame58, 67, frame68, 68, frame69, 80, frame81);
}
function frame81(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
function frame37(){
gotoAndPlay("stand");
}
function frame28(){
gotoAndPlay("walk");
}
function frame49(){
part = MovieClip(this.parent).gcode;
if (part.checkHitTest(this, part.player)){
part.check_hp_hero(this.damage);
};
}
function frame58(){
gotoAndPlay("die2");
}
function frame68(){
gotoAndPlay("stand");
}
function frame69(){
MovieClip(this.parent).gcode.createSound("range_die");
}
}
}//package
Section 155
//m_er4 (m_er4)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_er4 extends MovieClip {
public function m_er4(){
addFrameScript(8, frame9, 21, frame22, 31, frame32, 43, frame44, 53, frame54, 54, frame55, 69, frame70);
}
function frame70(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame22(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame32(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
function frame55(){
MovieClip(this.parent).gcode.createSound("range_die");
}
}
}//package
Section 156
//m_gameSystem (m_gameSystem)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_gameSystem extends MovieClip {
public function m_gameSystem(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 157
//m_hero_1 (m_hero_1)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_1 extends MovieClip {
public function m_hero_1(){
addFrameScript(12, frame13, 22, frame23, 32, frame33, 42, frame43, 52, frame53, 71, frame72);
}
function frame72(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame13(){
gotoAndPlay("stand");
}
function frame23(){
gotoAndPlay("walk");
}
function frame43(){
gotoAndPlay("stand");
}
function frame33(){
gotoAndPlay("stand");
}
function frame53(){
gotoAndPlay("stand");
}
}
}//package
Section 158
//m_hero_2a (m_hero_2a)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_2a extends MovieClip {
public function m_hero_2a(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 64, frame65, 74, frame75, 98, frame99);
}
function frame65(){
gotoAndPlay("stand");
}
function frame75(){
gotoAndPlay("stand");
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame34(){
gotoAndPlay("stand");
}
function frame99(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame44(){
gotoAndPlay("stand");
}
}
}//package
Section 159
//m_hero_2b (m_hero_2b)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_2b extends MovieClip {
public function m_hero_2b(){
addFrameScript(8, frame9, 23, frame24, 31, frame32, 41, frame42, 50, frame51, 62, frame63, 86, frame87);
}
function frame87(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame32(){
gotoAndPlay("stand");
}
function frame42(){
gotoAndPlay("stand");
}
function frame51(){
gotoAndPlay("stand");
}
function frame63(){
gotoAndPlay("stand");
}
}
}//package
Section 160
//m_hero_3a (m_hero_3a)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_3a extends MovieClip {
public function m_hero_3a(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 55, frame56, 69, frame70, 79, frame80, 103, frame104);
}
function frame70(){
gotoAndPlay("stand");
}
function frame80(){
gotoAndPlay("stand");
}
function frame24(){
gotoAndPlay("walk");
}
function frame104(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
function frame34(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame56(){
gotoAndPlay("stand");
}
}
}//package
Section 161
//m_hero_3b (m_hero_3b)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_3b extends MovieClip {
public function m_hero_3b(){
addFrameScript(8, frame9, 23, frame24, 31, frame32, 41, frame42, 64, frame65, 74, frame75, 98, frame99);
}
function frame65(){
gotoAndPlay("stand");
}
function frame75(){
gotoAndPlay("stand");
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame99(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame32(){
gotoAndPlay("stand");
}
function frame42(){
gotoAndPlay("stand");
}
}
}//package
Section 162
//m_hero_3c (m_hero_3c)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_3c extends MovieClip {
public function m_hero_3c(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 53, frame54, 78, frame79, 88, frame89, 111, frame112);
}
function frame79(){
gotoAndPlay("stand");
}
function frame89(){
gotoAndPlay("stand");
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame34(){
gotoAndPlay("stand");
}
function frame112(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame44(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
}
}//package
Section 163
//m_hero_3d (m_hero_3d)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_3d extends MovieClip {
public function m_hero_3d(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 58, frame59, 68, frame69, 91, frame92);
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame92(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame34(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame59(){
gotoAndPlay("stand");
}
function frame69(){
gotoAndPlay("stand");
}
}
}//package
Section 164
//m_hero_4a (m_hero_4a)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_4a extends MovieClip {
public function m_hero_4a(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 53, frame54, 63, frame64, 86, frame87);
}
function frame64(){
gotoAndPlay("stand");
}
function frame87(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame34(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
}
}//package
Section 165
//m_hero_4b (m_hero_4b)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_4b extends MovieClip {
public function m_hero_4b(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 53, frame54, 63, frame64, 85, frame86);
}
function frame64(){
gotoAndPlay("stand");
}
function frame86(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame34(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
}
}//package
Section 166
//m_hero_4c (m_hero_4c)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_4c extends MovieClip {
public function m_hero_4c(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 53, frame54, 76, frame77, 86, frame87, 109, frame110);
}
function frame77(){
gotoAndPlay("stand");
}
function frame87(){
gotoAndPlay("stand");
}
function frame24(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame110(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame34(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
}
}//package
Section 167
//m_hero_4d (m_hero_4d)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_4d extends MovieClip {
public function m_hero_4d(){
addFrameScript(8, frame9, 23, frame24, 33, frame34, 43, frame44, 53, frame54, 72, frame73, 80, frame81, 103, frame104);
}
function frame73(){
gotoAndPlay("stand");
}
function frame81(){
gotoAndPlay("stand");
}
function frame24(){
gotoAndPlay("walk");
}
function frame104(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame9(){
gotoAndPlay("stand");
}
function frame34(){
gotoAndPlay("stand");
}
function frame44(){
gotoAndPlay("stand");
}
function frame54(){
gotoAndPlay("stand");
}
}
}//package
Section 168
//m_hero_4e (m_hero_4e)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_4e extends MovieClip {
public function m_hero_4e(){
addFrameScript(8, frame9, 25, frame26, 35, frame36, 45, frame46, 61, frame62, 71, frame72, 94, frame95);
}
function frame72(){
gotoAndPlay("stand");
}
function frame95(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame26(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame36(){
gotoAndPlay("stand");
}
function frame46(){
gotoAndPlay("stand");
}
function frame62(){
gotoAndPlay("stand");
}
}
}//package
Section 169
//m_hero_4f (m_hero_4f)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_hero_4f extends MovieClip {
public function m_hero_4f(){
addFrameScript(8, frame9, 25, frame26, 35, frame36, 45, frame46, 66, frame67, 76, frame77, 99, frame100);
}
function frame77(){
gotoAndPlay("stand");
}
function frame100(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame26(){
gotoAndPlay("walk");
}
function frame9(){
gotoAndPlay("stand");
}
function frame36(){
gotoAndPlay("stand");
}
function frame46(){
gotoAndPlay("stand");
}
function frame67(){
gotoAndPlay("stand");
}
}
}//package
Section 170
//m_hp_enemy (m_hp_enemy)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import GREENHERMIT.GHUtils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m_hp_enemy extends MovieClip {
public var maskLine;
public var hp;
public var hpLine;
public var hpTotal;
public var remain;
public var recovery;
public var m_hp_line:MovieClip;
public function m_hp_enemy(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
function frame1(){
hpLine = this;
}
function frame2(){
try {
recovery = Math.round((MovieClip(hpLine.parent).gcode.hpTotal * MovieClip(hpLine.parent).gcode.hp_re_per));
if (MovieClip(hpLine.parent).gcode.hp_re_time < MovieClip(hpLine.parent).gcode.mainTime){
MovieClip(hpLine.parent).gcode.hp_re_time = (MovieClip(hpLine.parent).gcode.mainTime + MovieClip(hpLine.parent).gcode.hp_re_next_time);
MovieClip(hpLine.parent).gcode.hp = (MovieClip(hpLine.parent).gcode.hp + recovery);
MovieClip(hpLine.parent).gcode.create_heal(MovieClip(hpLine.parent).gcode.player, recovery);
};
if (MovieClip(hpLine.parent).gcode.hp > MovieClip(hpLine.parent).gcode.hpTotal){
MovieClip(hpLine.parent).gcode.hp = MovieClip(hpLine.parent).gcode.hpTotal;
};
hpTotal = MovieClip(hpLine.parent).gcode.hpTotal;
hp = MovieClip(hpLine.parent).gcode.hp;
hpLine.n_hp.text = hp;
hpLine.n_hpTotal.text = hpTotal;
remain = (((hp * 100) / hpTotal) / 100);
maskLine = (m_hp_line.width * remain);
m_hp_line.x = maskLine;
} catch(error) {
trace("bug : MovieClip recovery hp ใน flash");
};
gotoAndPlay(1);
}
}
}//package
Section 171
//m_monster_gate (m_monster_gate)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_monster_gate extends MovieClip {
public function m_monster_gate(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 172
//m_point_poo (m_point_poo)
package {
import flash.display.*;
public dynamic class m_point_poo extends MovieClip {
}
}//package
Section 173
//m_redius_growl (m_redius_growl)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
public dynamic class m_redius_growl extends MovieClip {
public function m_redius_growl(){
addFrameScript(2, frame3);
}
function frame3(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 174
//m_text_damage (m_text_damage)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
public dynamic class m_text_damage extends MovieClip {
public var m_hothit:MovieClip;
public var tx_num:TextField;
public function m_text_damage(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 175
//m_text_heal (m_text_heal)
package {
import flash.display.*;
import GREENHERMIT.GHUtils.*;
import flash.text.*;
public dynamic class m_text_heal extends MovieClip {
public var tx_num:TextField;
public function m_text_heal(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
if (this.parent != null){
stop();
API.removeAllCompositClass(this);
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 176
//map0 (map0)
package {
import flash.display.*;
public dynamic class map0 extends BitmapData {
public function map0(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 177
//mapdata1 (mapdata1)
package {
import flash.display.*;
public dynamic class mapdata1 extends BitmapData {
public function mapdata1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 178
//mapdata2 (mapdata2)
package {
import flash.display.*;
public dynamic class mapdata2 extends BitmapData {
public function mapdata2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 179
//mapdata3 (mapdata3)
package {
import flash.display.*;
public dynamic class mapdata3 extends BitmapData {
public function mapdata3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 180
//mapdata4 (mapdata4)
package {
import flash.display.*;
public dynamic class mapdata4 extends BitmapData {
public function mapdata4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 181
//melee_die (melee_die)
package {
import flash.media.*;
public dynamic class melee_die extends Sound {
}
}//package
Section 182
//poison_nova (poison_nova)
package {
import flash.media.*;
public dynamic class poison_nova extends Sound {
}
}//package
Section 183
//rabid (rabid)
package {
import flash.media.*;
public dynamic class rabid extends Sound {
}
}//package
Section 184
//range_die (range_die)
package {
import flash.media.*;
public dynamic class range_die extends Sound {
}
}//package
Section 185
//razor_wing (razor_wing)
package {
import flash.media.*;
public dynamic class razor_wing extends Sound {
}
}//package
Section 186
//stage1_1 (stage1_1)
package {
import flash.media.*;
public dynamic class stage1_1 extends Sound {
}
}//package
Section 187
//stage1b_1 (stage1b_1)
package {
import flash.media.*;
public dynamic class stage1b_1 extends Sound {
}
}//package
Section 188
//stage2 (stage2)
package {
import flash.media.*;
public dynamic class stage2 extends Sound {
}
}//package
Section 189
//stage2b_1 (stage2b_1)
package {
import flash.media.*;
public dynamic class stage2b_1 extends Sound {
}
}//package
Section 190
//stage3 (stage3)
package {
import flash.media.*;
public dynamic class stage3 extends Sound {
}
}//package
Section 191
//stage3b (stage3b)
package {
import flash.media.*;
public dynamic class stage3b extends Sound {
}
}//package
Section 192
//stage4_1 (stage4_1)
package {
import flash.media.*;
public dynamic class stage4_1 extends Sound {
}
}//package
Section 193
//stage4b_1 (stage4b_1)
package {
import flash.media.*;
public dynamic class stage4b_1 extends Sound {
}
}//package
Section 194
//tileerror (tileerror)
package {
import flash.display.*;
public dynamic class tileerror extends MovieClip {
}
}//package
Section 195
//tileerrorindex (tileerrorindex)
package {
import flash.display.*;
public dynamic class tileerrorindex extends BitmapData {
public function tileerrorindex(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package